@microsoft/omnichannel-chat-widget 0.1.0-main.1a61ea0
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/assets.d.js +1 -0
- package/lib/cjs/assets/audios/newMessageNotification.mp3 +0 -0
- package/lib/cjs/assets/icons/archiveIcon.svg +3 -0
- package/lib/cjs/assets/icons/audioIcon.svg +6 -0
- package/lib/cjs/assets/icons/blankIcon.svg +6 -0
- package/lib/cjs/assets/icons/excelIcon.svg +6 -0
- package/lib/cjs/assets/icons/imageIcon.svg +6 -0
- package/lib/cjs/assets/icons/oneNoteIcon.svg +6 -0
- package/lib/cjs/assets/icons/pdfIcon.svg +6 -0
- package/lib/cjs/assets/icons/powerpointIcon.svg +6 -0
- package/lib/cjs/assets/icons/videoIcon.svg +6 -0
- package/lib/cjs/assets/icons/visioIcon.svg +6 -0
- package/lib/cjs/assets/icons/wordIcon.svg +6 -0
- package/lib/cjs/common/Constants.js +303 -0
- package/lib/cjs/common/KeyCodes.js +13 -0
- package/lib/cjs/common/interfaces/ITimer.js +1 -0
- package/lib/cjs/common/telemetry/TelemetryConstants.js +223 -0
- package/lib/cjs/common/telemetry/TelemetryHelper.js +275 -0
- package/lib/cjs/common/telemetry/TelemetryManager.js +89 -0
- package/lib/cjs/common/telemetry/defaultConfigs/defaultAriaConfig.js +13 -0
- package/lib/cjs/common/telemetry/defaultConfigs/defaultTelemetryConfiguration.js +16 -0
- package/lib/cjs/common/telemetry/defaultConfigs/defaultTelemetryInternalData.js +12 -0
- package/lib/cjs/common/telemetry/definitions/Contracts.js +1 -0
- package/lib/cjs/common/telemetry/definitions/Payload.js +1 -0
- package/lib/cjs/common/telemetry/interfaces/IAriaConfigurations.js +1 -0
- package/lib/cjs/common/telemetry/interfaces/IChatSDKLogger.js +1 -0
- package/lib/cjs/common/telemetry/interfaces/IInternalTelemetryData.js +1 -0
- package/lib/cjs/common/telemetry/interfaces/ITelemetryConfig.js +1 -0
- package/lib/cjs/common/telemetry/interfaces/ITelemetryEvents.js +1 -0
- package/lib/cjs/common/telemetry/loggers/ariaTelemetryLogger.js +62 -0
- package/lib/cjs/common/telemetry/loggers/consoleLogger.js +47 -0
- package/lib/cjs/common/types/types.d.js +1 -0
- package/lib/cjs/common/utils.js +337 -0
- package/lib/cjs/components/callingcontainerstateful/CallingContainerStateful.js +361 -0
- package/lib/cjs/components/callingcontainerstateful/ICallingContainerStatefulProps.js +1 -0
- package/lib/cjs/components/chatbuttonstateful/ChatButtonStateful.js +119 -0
- package/lib/cjs/components/chatbuttonstateful/common/styleProps/defaultOutOfOfficeChatButtonStyleProps.js +12 -0
- package/lib/cjs/components/chatbuttonstateful/interfaces/IChatButtonStatefulParams.js +1 -0
- package/lib/cjs/components/confirmationpanestateful/ConfirmationPaneStateful.js +174 -0
- package/lib/cjs/components/confirmationpanestateful/common/defaultProps/defaultConfirmationPaneLocalizedTexts.js +17 -0
- package/lib/cjs/components/confirmationpanestateful/interfaces/IConfirmationPaneInputs.js +1 -0
- package/lib/cjs/components/confirmationpanestateful/interfaces/IConfirmationPaneLocalizedText.js +1 -0
- package/lib/cjs/components/confirmationpanestateful/interfaces/IConfirmationPaneStatefulParams.js +1 -0
- package/lib/cjs/components/confirmationpanestateful/interfaces/IConfirmationPaneStatefulProps.js +1 -0
- package/lib/cjs/components/dimlayer/DimLayer.js +31 -0
- package/lib/cjs/components/emailtranscriptpanestateful/EmailTranscriptPaneStateful.js +138 -0
- package/lib/cjs/components/emailtranscriptpanestateful/EmailTranscriptPaneStateful.spec.js +73 -0
- package/lib/cjs/components/emailtranscriptpanestateful/interfaces/IChatTranscriptBody.js +1 -0
- package/lib/cjs/components/emailtranscriptpanestateful/interfaces/IEmailTranscriptPaneProps.js +1 -0
- package/lib/cjs/components/footerstateful/FooterStateful.js +133 -0
- package/lib/cjs/components/footerstateful/audionotificationstateful/AudioNotificationStateful.js +36 -0
- package/lib/cjs/components/footerstateful/audionotificationstateful/interfaces/IAudioNotificationProps.js +1 -0
- package/lib/cjs/components/footerstateful/audionotificationstateful/interfaces/IAudioNotificationStatefulParams.js +1 -0
- package/lib/cjs/components/footerstateful/downloadtranscriptstateful/DownloadTranscriptStateful.js +216 -0
- package/lib/cjs/components/footerstateful/downloadtranscriptstateful/DownloadTranscriptStateful.spec.js +58 -0
- package/lib/cjs/components/footerstateful/downloadtranscriptstateful/interfaces/IDownloadTranscriptProps.js +1 -0
- package/lib/cjs/components/headerstateful/HeaderStateful.js +118 -0
- package/lib/cjs/components/headerstateful/common/styleProps/defaultOutOfOfficeHeaderStyleProps.js +18 -0
- package/lib/cjs/components/headerstateful/interfaces/IHeaderStatefulParams.js +1 -0
- package/lib/cjs/components/livechatwidget/LiveChatWidget.js +44 -0
- package/lib/cjs/components/livechatwidget/common/createAdapter.js +40 -0
- package/lib/cjs/components/livechatwidget/common/createFooter.js +42 -0
- package/lib/cjs/components/livechatwidget/common/createInternetConnectionChangeHandler.js +42 -0
- package/lib/cjs/components/livechatwidget/common/createMarkdown.js +77 -0
- package/lib/cjs/components/livechatwidget/common/defaultProps/dummyDefaultProps.js +1708 -0
- package/lib/cjs/components/livechatwidget/common/defaultStyles/defaultLiveChatWidgetGeneralStyles.js +12 -0
- package/lib/cjs/components/livechatwidget/common/endChat.js +74 -0
- package/lib/cjs/components/livechatwidget/common/getGeneralStylesForButton.js +28 -0
- package/lib/cjs/components/livechatwidget/common/initCallingSdk.js +38 -0
- package/lib/cjs/components/livechatwidget/common/initConfirmationPropsComposer.js +52 -0
- package/lib/cjs/components/livechatwidget/common/initWebChatComposer.js +132 -0
- package/lib/cjs/components/livechatwidget/common/reconnectChatHelper.js +93 -0
- package/lib/cjs/components/livechatwidget/common/registerTelemetryLoggers.js +56 -0
- package/lib/cjs/components/livechatwidget/common/setPostChatContextAndLoadSurvey.js +55 -0
- package/lib/cjs/components/livechatwidget/common/startChat.js +142 -0
- package/lib/cjs/components/livechatwidget/common/startProactiveChat.js +40 -0
- package/lib/cjs/components/livechatwidget/common/updateSessionDataForTelemetry.js +45 -0
- package/lib/cjs/components/livechatwidget/interfaces/ILiveChatWidgetComponentOverrides.js +1 -0
- package/lib/cjs/components/livechatwidget/interfaces/ILiveChatWidgetControlProps.js +1 -0
- package/lib/cjs/components/livechatwidget/interfaces/ILiveChatWidgetProps.js +1 -0
- package/lib/cjs/components/livechatwidget/interfaces/ILiveChatWidgetStyleProps.js +1 -0
- package/lib/cjs/components/livechatwidget/livechatwidgetstateful/LiveChatWidgetStateful.js +311 -0
- package/lib/cjs/components/loadingpanestateful/LoadingPaneStateful.js +63 -0
- package/lib/cjs/components/loadingpanestateful/common/defaultStyleProps/defaultgeneralLoadingPaneStyleProps.js +17 -0
- package/lib/cjs/components/ooohpanestateful/OOOHPaneStateful.js +54 -0
- package/lib/cjs/components/ooohpanestateful/common/defaultStyleProps/defaultgeneralOOOHPaneStyleProps.js +15 -0
- package/lib/cjs/components/postchatloadingpanestateful/PostChatLoadingPaneStateful.js +59 -0
- package/lib/cjs/components/postchatloadingpanestateful/common/defaultgeneralPostChatLoadingPaneStyleProps.js +17 -0
- package/lib/cjs/components/postchatsurveypanestateful/PostChatSurveyPaneStateful.js +70 -0
- package/lib/cjs/components/postchatsurveypanestateful/common/defaultStyleProps/defaultgeneralPostChatSurveyPaneStyleProps.js +17 -0
- package/lib/cjs/components/postchatsurveypanestateful/enums/PostChatSurveyMode.js +13 -0
- package/lib/cjs/components/prechatsurveypanestateful/PreChatSurveyPaneStateful.js +161 -0
- package/lib/cjs/components/prechatsurveypanestateful/common/defaultProps/defaultPreChatSurveyLocalizedTexts.js +10 -0
- package/lib/cjs/components/prechatsurveypanestateful/common/defaultStyles/defaultGeneralPreChatSurveyPaneStyleProps.js +17 -0
- package/lib/cjs/components/prechatsurveypanestateful/interfaces/IPreChatSurveyPaneStatefulParams.js +1 -0
- package/lib/cjs/components/proactivechatpanestateful/ProactiveChatPaneStateful.js +140 -0
- package/lib/cjs/components/proactivechatpanestateful/interfaces/IProactiveChatPaneStatefulProps.js +1 -0
- package/lib/cjs/components/reconnectchatpanestateful/ReconnectChatPaneStateful.js +123 -0
- package/lib/cjs/components/reconnectchatpanestateful/interfaces/IReconnectChatContext.js +1 -0
- package/lib/cjs/components/reconnectchatpanestateful/interfaces/IReconnectChatOptionalParams.js +1 -0
- package/lib/cjs/components/reconnectchatpanestateful/interfaces/IReconnectChatPaneStatefulParams.js +1 -0
- package/lib/cjs/components/reconnectchatpanestateful/interfaces/IReconnectChatPaneStatefulProps.js +1 -0
- package/lib/cjs/components/webchatcontainerstateful/WebChatContainerStateful.js +86 -0
- package/lib/cjs/components/webchatcontainerstateful/common/defaultProps/defaultAttachmentProps.js +12 -0
- package/lib/cjs/components/webchatcontainerstateful/common/defaultProps/defaultMarkdownLocalizedTexts.js +10 -0
- package/lib/cjs/components/webchatcontainerstateful/common/defaultProps/defaultMiddlewareLocalizedTexts.js +27 -0
- package/lib/cjs/components/webchatcontainerstateful/common/defaultProps/defaultWebChatContainerStatefulProps.js +26 -0
- package/lib/cjs/components/webchatcontainerstateful/common/defaultProps/defaultWebChatStatefulProps.js +23 -0
- package/lib/cjs/components/webchatcontainerstateful/common/defaultStyles/defaultWebChatContainerStatefulStyles.js +39 -0
- package/lib/cjs/components/webchatcontainerstateful/common/defaultStyles/defaultWebChatStatefulContainerStyles.js +12 -0
- package/lib/cjs/components/webchatcontainerstateful/common/mockadapter.js +104 -0
- package/lib/cjs/components/webchatcontainerstateful/common/mockchatsdk.js +59 -0
- package/lib/cjs/components/webchatcontainerstateful/common/utils/BrowserInfo.js +88 -0
- package/lib/cjs/components/webchatcontainerstateful/common/utils/FileAttachmentIconManager.js +122 -0
- package/lib/cjs/components/webchatcontainerstateful/common/utils/isMaskingFromCustomer.js +27 -0
- package/lib/cjs/components/webchatcontainerstateful/interfaces/IAttachmentProps.js +1 -0
- package/lib/cjs/components/webchatcontainerstateful/interfaces/IDataMaskingInfo.js +1 -0
- package/lib/cjs/components/webchatcontainerstateful/interfaces/IDataMaskingRule.js +1 -0
- package/lib/cjs/components/webchatcontainerstateful/interfaces/IDataMaskingSetting.js +1 -0
- package/lib/cjs/components/webchatcontainerstateful/interfaces/IRenderingMiddlewareProps.js +1 -0
- package/lib/cjs/components/webchatcontainerstateful/interfaces/IWebChatAction.js +1 -0
- package/lib/cjs/components/webchatcontainerstateful/interfaces/IWebChatContainerStatefulProps.js +1 -0
- package/lib/cjs/components/webchatcontainerstateful/interfaces/IWebChatProps.js +1 -0
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/WebChatStoreLoader.js +14 -0
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/enums/BrowserVendor.js +18 -0
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/enums/DirectLineActivityType.js +13 -0
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/enums/DirectLineSenderRole.js +14 -0
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/enums/MessageType.js +20 -0
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/enums/NotificationLevel.js +15 -0
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/enums/NotificationScenarios.js +17 -0
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/enums/SendStatus.js +14 -0
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/enums/WebChatActionType.js +32 -0
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/adaptermiddlewares/formatTagsEgressMiddleware.js +45 -0
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/adaptermiddlewares/formatTagsIngressMiddleware.js +33 -0
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/activityMiddleware.js +163 -0
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/activityStatusMiddleware.js +83 -0
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachmentMiddleware.js +293 -0
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/avatarMiddleware.js +63 -0
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAttachmentContentStyles.js +10 -0
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAttachmentDividerStyles.js +13 -0
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAttachmentDownloadIconStyles.js +14 -0
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAttachmentFileNameStyles.js +13 -0
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAttachmentSizeStyles.js +10 -0
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAtttachmentAdaptiveCardStyles.js +12 -0
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAtttachmentIconStyles.js +12 -0
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAtttachmentStyles.js +17 -0
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAvatarStyles.js +14 -0
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAvatarTextStyles.js +19 -0
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultSystemMessageStyles.js +18 -0
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTimestampContentStyles.js +15 -0
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTimestampFailedStyles.js +13 -0
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTimestampRetryStyles.js +14 -0
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTypingIndicatorBubbleStyles.js +18 -0
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTypingIndicatorContainerStyles.js +14 -0
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTypingIndicatorMessageStyles.js +15 -0
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultUserMessageStyles.js +10 -0
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/groupActivitiesMiddleware.js +63 -0
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/timestamps/DeliveredTimestamp.js +56 -0
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/timestamps/NotDeliveredTimestamp.js +118 -0
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/timestamps/SendingTimestamp.js +46 -0
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/typingIndicatorMiddleware.js +161 -0
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/attachmentProcessingMiddleware.js +51 -0
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/attachmentUploadValidatorMiddleware.js +161 -0
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/channelDataMiddleware.js +54 -0
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/conversationEndMiddleware.js +57 -0
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/dataMaskingMiddleware.js +85 -0
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/gifUploadMiddleware.js +55 -0
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/htmlPlayerMiddleware.js +53 -0
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/htmlTextMiddleware.js +147 -0
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/maxMessageSizeValidator.js +46 -0
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/preProcessingMiddleware.js +54 -0
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/sanitizationMiddleware.js +67 -0
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/notification/NotificationHandler.js +96 -0
- package/lib/cjs/contexts/ChatAdapterStore.js +12 -0
- package/lib/cjs/contexts/ChatContextStore.js +12 -0
- package/lib/cjs/contexts/ChatSDKStore.js +12 -0
- package/lib/cjs/contexts/common/ConversationState.js +19 -0
- package/lib/cjs/contexts/common/ILiveChatWidgetAction.js +1 -0
- package/lib/cjs/contexts/common/ILiveChatWidgetContext.js +1 -0
- package/lib/cjs/contexts/common/ILiveChatWidgetLocalizedTexts.js +1 -0
- package/lib/cjs/contexts/common/LiveChatWidgetActionType.js +39 -0
- package/lib/cjs/contexts/common/LiveChatWidgetContextInitialState.js +60 -0
- package/lib/cjs/contexts/createReducer.js +228 -0
- package/lib/cjs/controller/componentController.js +92 -0
- package/lib/cjs/hooks/useChatAdapterStore.js +24 -0
- package/lib/cjs/hooks/useChatContextStore.js +23 -0
- package/lib/cjs/hooks/useChatSDKStore.js +23 -0
- package/lib/cjs/index.js +51 -0
- package/lib/esm/assets/assets.d.js +0 -0
- package/lib/esm/assets/audios/newMessageNotification.mp3 +0 -0
- package/lib/esm/assets/icons/archiveIcon.svg +3 -0
- package/lib/esm/assets/icons/audioIcon.svg +6 -0
- package/lib/esm/assets/icons/blankIcon.svg +6 -0
- package/lib/esm/assets/icons/excelIcon.svg +6 -0
- package/lib/esm/assets/icons/imageIcon.svg +6 -0
- package/lib/esm/assets/icons/oneNoteIcon.svg +6 -0
- package/lib/esm/assets/icons/pdfIcon.svg +6 -0
- package/lib/esm/assets/icons/powerpointIcon.svg +6 -0
- package/lib/esm/assets/icons/videoIcon.svg +6 -0
- package/lib/esm/assets/icons/visioIcon.svg +6 -0
- package/lib/esm/assets/icons/wordIcon.svg +6 -0
- package/lib/esm/common/Constants.js +274 -0
- package/lib/esm/common/KeyCodes.js +5 -0
- package/lib/esm/common/interfaces/ITimer.js +1 -0
- package/lib/esm/common/telemetry/TelemetryConstants.js +212 -0
- package/lib/esm/common/telemetry/TelemetryHelper.js +257 -0
- package/lib/esm/common/telemetry/TelemetryManager.js +72 -0
- package/lib/esm/common/telemetry/defaultConfigs/defaultAriaConfig.js +6 -0
- package/lib/esm/common/telemetry/defaultConfigs/defaultTelemetryConfiguration.js +7 -0
- package/lib/esm/common/telemetry/defaultConfigs/defaultTelemetryInternalData.js +5 -0
- package/lib/esm/common/telemetry/definitions/Contracts.js +1 -0
- package/lib/esm/common/telemetry/definitions/Payload.js +1 -0
- package/lib/esm/common/telemetry/interfaces/IAriaConfigurations.js +1 -0
- package/lib/esm/common/telemetry/interfaces/IChatSDKLogger.js +1 -0
- package/lib/esm/common/telemetry/interfaces/IInternalTelemetryData.js +1 -0
- package/lib/esm/common/telemetry/interfaces/ITelemetryConfig.js +1 -0
- package/lib/esm/common/telemetry/interfaces/ITelemetryEvents.js +1 -0
- package/lib/esm/common/telemetry/loggers/ariaTelemetryLogger.js +43 -0
- package/lib/esm/common/telemetry/loggers/consoleLogger.js +36 -0
- package/lib/esm/common/types/types.d.js +0 -0
- package/lib/esm/common/utils.js +279 -0
- package/lib/esm/components/callingcontainerstateful/CallingContainerStateful.js +321 -0
- package/lib/esm/components/callingcontainerstateful/ICallingContainerStatefulProps.js +1 -0
- package/lib/esm/components/chatbuttonstateful/ChatButtonStateful.js +92 -0
- package/lib/esm/components/chatbuttonstateful/common/styleProps/defaultOutOfOfficeChatButtonStyleProps.js +5 -0
- package/lib/esm/components/chatbuttonstateful/interfaces/IChatButtonStatefulParams.js +1 -0
- package/lib/esm/components/confirmationpanestateful/ConfirmationPaneStateful.js +139 -0
- package/lib/esm/components/confirmationpanestateful/common/defaultProps/defaultConfirmationPaneLocalizedTexts.js +10 -0
- package/lib/esm/components/confirmationpanestateful/interfaces/IConfirmationPaneInputs.js +1 -0
- package/lib/esm/components/confirmationpanestateful/interfaces/IConfirmationPaneLocalizedText.js +1 -0
- package/lib/esm/components/confirmationpanestateful/interfaces/IConfirmationPaneStatefulParams.js +1 -0
- package/lib/esm/components/confirmationpanestateful/interfaces/IConfirmationPaneStatefulProps.js +1 -0
- package/lib/esm/components/dimlayer/DimLayer.js +19 -0
- package/lib/esm/components/emailtranscriptpanestateful/EmailTranscriptPaneStateful.js +106 -0
- package/lib/esm/components/emailtranscriptpanestateful/EmailTranscriptPaneStateful.spec.js +69 -0
- package/lib/esm/components/emailtranscriptpanestateful/interfaces/IChatTranscriptBody.js +1 -0
- package/lib/esm/components/emailtranscriptpanestateful/interfaces/IEmailTranscriptPaneProps.js +1 -0
- package/lib/esm/components/footerstateful/FooterStateful.js +104 -0
- package/lib/esm/components/footerstateful/audionotificationstateful/AudioNotificationStateful.js +20 -0
- package/lib/esm/components/footerstateful/audionotificationstateful/interfaces/IAudioNotificationProps.js +1 -0
- package/lib/esm/components/footerstateful/audionotificationstateful/interfaces/IAudioNotificationStatefulParams.js +1 -0
- package/lib/esm/components/footerstateful/downloadtranscriptstateful/DownloadTranscriptStateful.js +202 -0
- package/lib/esm/components/footerstateful/downloadtranscriptstateful/DownloadTranscriptStateful.spec.js +54 -0
- package/lib/esm/components/footerstateful/downloadtranscriptstateful/interfaces/IDownloadTranscriptProps.js +1 -0
- package/lib/esm/components/headerstateful/HeaderStateful.js +92 -0
- package/lib/esm/components/headerstateful/common/styleProps/defaultOutOfOfficeHeaderStyleProps.js +11 -0
- package/lib/esm/components/headerstateful/interfaces/IHeaderStatefulParams.js +1 -0
- package/lib/esm/components/livechatwidget/LiveChatWidget.js +21 -0
- package/lib/esm/components/livechatwidget/common/createAdapter.js +27 -0
- package/lib/esm/components/livechatwidget/common/createFooter.js +27 -0
- package/lib/esm/components/livechatwidget/common/createInternetConnectionChangeHandler.js +30 -0
- package/lib/esm/components/livechatwidget/common/createMarkdown.js +61 -0
- package/lib/esm/components/livechatwidget/common/defaultProps/dummyDefaultProps.js +1689 -0
- package/lib/esm/components/livechatwidget/common/defaultStyles/defaultLiveChatWidgetGeneralStyles.js +5 -0
- package/lib/esm/components/livechatwidget/common/endChat.js +53 -0
- package/lib/esm/components/livechatwidget/common/getGeneralStylesForButton.js +17 -0
- package/lib/esm/components/livechatwidget/common/initCallingSdk.js +27 -0
- package/lib/esm/components/livechatwidget/common/initConfirmationPropsComposer.js +42 -0
- package/lib/esm/components/livechatwidget/common/initWebChatComposer.js +95 -0
- package/lib/esm/components/livechatwidget/common/reconnectChatHelper.js +78 -0
- package/lib/esm/components/livechatwidget/common/registerTelemetryLoggers.js +38 -0
- package/lib/esm/components/livechatwidget/common/setPostChatContextAndLoadSurvey.js +40 -0
- package/lib/esm/components/livechatwidget/common/startChat.js +116 -0
- package/lib/esm/components/livechatwidget/common/startProactiveChat.js +25 -0
- package/lib/esm/components/livechatwidget/common/updateSessionDataForTelemetry.js +28 -0
- package/lib/esm/components/livechatwidget/interfaces/ILiveChatWidgetComponentOverrides.js +1 -0
- package/lib/esm/components/livechatwidget/interfaces/ILiveChatWidgetControlProps.js +1 -0
- package/lib/esm/components/livechatwidget/interfaces/ILiveChatWidgetProps.js +1 -0
- package/lib/esm/components/livechatwidget/interfaces/ILiveChatWidgetStyleProps.js +1 -0
- package/lib/esm/components/livechatwidget/livechatwidgetstateful/LiveChatWidgetStateful.js +254 -0
- package/lib/esm/components/loadingpanestateful/LoadingPaneStateful.js +40 -0
- package/lib/esm/components/loadingpanestateful/common/defaultStyleProps/defaultgeneralLoadingPaneStyleProps.js +10 -0
- package/lib/esm/components/ooohpanestateful/OOOHPaneStateful.js +33 -0
- package/lib/esm/components/ooohpanestateful/common/defaultStyleProps/defaultgeneralOOOHPaneStyleProps.js +8 -0
- package/lib/esm/components/postchatloadingpanestateful/PostChatLoadingPaneStateful.js +38 -0
- package/lib/esm/components/postchatloadingpanestateful/common/defaultgeneralPostChatLoadingPaneStyleProps.js +10 -0
- package/lib/esm/components/postchatsurveypanestateful/PostChatSurveyPaneStateful.js +47 -0
- package/lib/esm/components/postchatsurveypanestateful/common/defaultStyleProps/defaultgeneralPostChatSurveyPaneStyleProps.js +10 -0
- package/lib/esm/components/postchatsurveypanestateful/enums/PostChatSurveyMode.js +6 -0
- package/lib/esm/components/prechatsurveypanestateful/PreChatSurveyPaneStateful.js +133 -0
- package/lib/esm/components/prechatsurveypanestateful/common/defaultProps/defaultPreChatSurveyLocalizedTexts.js +3 -0
- package/lib/esm/components/prechatsurveypanestateful/common/defaultStyles/defaultGeneralPreChatSurveyPaneStyleProps.js +10 -0
- package/lib/esm/components/prechatsurveypanestateful/interfaces/IPreChatSurveyPaneStatefulParams.js +1 -0
- package/lib/esm/components/proactivechatpanestateful/ProactiveChatPaneStateful.js +107 -0
- package/lib/esm/components/proactivechatpanestateful/interfaces/IProactiveChatPaneStatefulProps.js +1 -0
- package/lib/esm/components/reconnectchatpanestateful/ReconnectChatPaneStateful.js +94 -0
- package/lib/esm/components/reconnectchatpanestateful/interfaces/IReconnectChatContext.js +1 -0
- package/lib/esm/components/reconnectchatpanestateful/interfaces/IReconnectChatOptionalParams.js +1 -0
- package/lib/esm/components/reconnectchatpanestateful/interfaces/IReconnectChatPaneStatefulParams.js +1 -0
- package/lib/esm/components/reconnectchatpanestateful/interfaces/IReconnectChatPaneStatefulProps.js +1 -0
- package/lib/esm/components/webchatcontainerstateful/WebChatContainerStateful.js +61 -0
- package/lib/esm/components/webchatcontainerstateful/common/defaultProps/defaultAttachmentProps.js +5 -0
- package/lib/esm/components/webchatcontainerstateful/common/defaultProps/defaultMarkdownLocalizedTexts.js +3 -0
- package/lib/esm/components/webchatcontainerstateful/common/defaultProps/defaultMiddlewareLocalizedTexts.js +20 -0
- package/lib/esm/components/webchatcontainerstateful/common/defaultProps/defaultWebChatContainerStatefulProps.js +12 -0
- package/lib/esm/components/webchatcontainerstateful/common/defaultProps/defaultWebChatStatefulProps.js +12 -0
- package/lib/esm/components/webchatcontainerstateful/common/defaultStyles/defaultWebChatContainerStatefulStyles.js +32 -0
- package/lib/esm/components/webchatcontainerstateful/common/defaultStyles/defaultWebChatStatefulContainerStyles.js +5 -0
- package/lib/esm/components/webchatcontainerstateful/common/mockadapter.js +89 -0
- package/lib/esm/components/webchatcontainerstateful/common/mockchatsdk.js +47 -0
- package/lib/esm/components/webchatcontainerstateful/common/utils/BrowserInfo.js +70 -0
- package/lib/esm/components/webchatcontainerstateful/common/utils/FileAttachmentIconManager.js +92 -0
- package/lib/esm/components/webchatcontainerstateful/common/utils/isMaskingFromCustomer.js +18 -0
- package/lib/esm/components/webchatcontainerstateful/interfaces/IAttachmentProps.js +1 -0
- package/lib/esm/components/webchatcontainerstateful/interfaces/IDataMaskingInfo.js +1 -0
- package/lib/esm/components/webchatcontainerstateful/interfaces/IDataMaskingRule.js +1 -0
- package/lib/esm/components/webchatcontainerstateful/interfaces/IDataMaskingSetting.js +1 -0
- package/lib/esm/components/webchatcontainerstateful/interfaces/IRenderingMiddlewareProps.js +1 -0
- package/lib/esm/components/webchatcontainerstateful/interfaces/IWebChatAction.js +1 -0
- package/lib/esm/components/webchatcontainerstateful/interfaces/IWebChatContainerStatefulProps.js +1 -0
- package/lib/esm/components/webchatcontainerstateful/interfaces/IWebChatProps.js +1 -0
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/WebChatStoreLoader.js +5 -0
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/enums/BrowserVendor.js +11 -0
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/enums/DirectLineActivityType.js +6 -0
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/enums/DirectLineSenderRole.js +7 -0
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/enums/MessageType.js +13 -0
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/enums/NotificationLevel.js +8 -0
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/enums/NotificationScenarios.js +10 -0
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/enums/SendStatus.js +7 -0
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/enums/WebChatActionType.js +25 -0
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/adaptermiddlewares/formatTagsEgressMiddleware.js +35 -0
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/adaptermiddlewares/formatTagsIngressMiddleware.js +25 -0
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/activityMiddleware.js +140 -0
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/activityStatusMiddleware.js +66 -0
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachmentMiddleware.js +264 -0
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/avatarMiddleware.js +47 -0
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAttachmentContentStyles.js +3 -0
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAttachmentDividerStyles.js +6 -0
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAttachmentDownloadIconStyles.js +7 -0
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAttachmentFileNameStyles.js +6 -0
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAttachmentSizeStyles.js +3 -0
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAtttachmentAdaptiveCardStyles.js +5 -0
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAtttachmentIconStyles.js +5 -0
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAtttachmentStyles.js +10 -0
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAvatarStyles.js +7 -0
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAvatarTextStyles.js +12 -0
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultSystemMessageStyles.js +11 -0
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTimestampContentStyles.js +8 -0
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTimestampFailedStyles.js +4 -0
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTimestampRetryStyles.js +5 -0
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTypingIndicatorBubbleStyles.js +11 -0
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTypingIndicatorContainerStyles.js +7 -0
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTypingIndicatorMessageStyles.js +8 -0
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultUserMessageStyles.js +3 -0
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/groupActivitiesMiddleware.js +54 -0
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/timestamps/DeliveredTimestamp.js +39 -0
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/timestamps/NotDeliveredTimestamp.js +95 -0
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/timestamps/SendingTimestamp.js +30 -0
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/typingIndicatorMiddleware.js +141 -0
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/attachmentProcessingMiddleware.js +42 -0
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/attachmentUploadValidatorMiddleware.js +149 -0
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/channelDataMiddleware.js +43 -0
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/conversationEndMiddleware.js +45 -0
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/dataMaskingMiddleware.js +73 -0
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/gifUploadMiddleware.js +45 -0
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/htmlPlayerMiddleware.js +44 -0
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/htmlTextMiddleware.js +131 -0
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/maxMessageSizeValidator.js +33 -0
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/preProcessingMiddleware.js +44 -0
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/sanitizationMiddleware.js +53 -0
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/notification/NotificationHandler.js +81 -0
- package/lib/esm/contexts/ChatAdapterStore.js +3 -0
- package/lib/esm/contexts/ChatContextStore.js +3 -0
- package/lib/esm/contexts/ChatSDKStore.js +3 -0
- package/lib/esm/contexts/common/ConversationState.js +12 -0
- package/lib/esm/contexts/common/ILiveChatWidgetAction.js +1 -0
- package/lib/esm/contexts/common/ILiveChatWidgetContext.js +1 -0
- package/lib/esm/contexts/common/ILiveChatWidgetLocalizedTexts.js +1 -0
- package/lib/esm/contexts/common/LiveChatWidgetActionType.js +32 -0
- package/lib/esm/contexts/common/LiveChatWidgetContextInitialState.js +49 -0
- package/lib/esm/contexts/createReducer.js +217 -0
- package/lib/esm/controller/componentController.js +43 -0
- package/lib/esm/hooks/useChatAdapterStore.js +15 -0
- package/lib/esm/hooks/useChatContextStore.js +14 -0
- package/lib/esm/hooks/useChatSDKStore.js +14 -0
- package/lib/esm/index.js +5 -0
- package/lib/types/common/Constants.d.ts +148 -0
- package/lib/types/common/KeyCodes.d.ts +5 -0
- package/lib/types/common/interfaces/ITimer.d.ts +3 -0
- package/lib/types/common/telemetry/TelemetryConstants.d.ts +118 -0
- package/lib/types/common/telemetry/TelemetryHelper.d.ts +38 -0
- package/lib/types/common/telemetry/TelemetryManager.d.ts +11 -0
- package/lib/types/common/telemetry/defaultConfigs/defaultAriaConfig.d.ts +2 -0
- package/lib/types/common/telemetry/defaultConfigs/defaultTelemetryConfiguration.d.ts +2 -0
- package/lib/types/common/telemetry/defaultConfigs/defaultTelemetryInternalData.d.ts +2 -0
- package/lib/types/common/telemetry/definitions/Contracts.d.ts +70 -0
- package/lib/types/common/telemetry/definitions/Payload.d.ts +77 -0
- package/lib/types/common/telemetry/interfaces/IAriaConfigurations.d.ts +18 -0
- package/lib/types/common/telemetry/interfaces/IChatSDKLogger.d.ts +4 -0
- package/lib/types/common/telemetry/interfaces/IInternalTelemetryData.d.ts +19 -0
- package/lib/types/common/telemetry/interfaces/ITelemetryConfig.d.ts +32 -0
- package/lib/types/common/telemetry/interfaces/ITelemetryEvents.d.ts +7 -0
- package/lib/types/common/telemetry/loggers/ariaTelemetryLogger.d.ts +2 -0
- package/lib/types/common/telemetry/loggers/consoleLogger.d.ts +2 -0
- package/lib/types/common/utils.d.ts +23 -0
- package/lib/types/components/callingcontainerstateful/CallingContainerStateful.d.ts +3 -0
- package/lib/types/components/callingcontainerstateful/ICallingContainerStatefulProps.d.ts +4 -0
- package/lib/types/components/chatbuttonstateful/ChatButtonStateful.d.ts +3 -0
- package/lib/types/components/chatbuttonstateful/common/styleProps/defaultOutOfOfficeChatButtonStyleProps.d.ts +2 -0
- package/lib/types/components/chatbuttonstateful/interfaces/IChatButtonStatefulParams.d.ts +17 -0
- package/lib/types/components/confirmationpanestateful/ConfirmationPaneStateful.d.ts +3 -0
- package/lib/types/components/confirmationpanestateful/common/defaultProps/defaultConfirmationPaneLocalizedTexts.d.ts +2 -0
- package/lib/types/components/confirmationpanestateful/interfaces/IConfirmationPaneInputs.d.ts +4 -0
- package/lib/types/components/confirmationpanestateful/interfaces/IConfirmationPaneLocalizedText.d.ts +10 -0
- package/lib/types/components/confirmationpanestateful/interfaces/IConfirmationPaneStatefulParams.d.ts +11 -0
- package/lib/types/components/confirmationpanestateful/interfaces/IConfirmationPaneStatefulProps.d.ts +8 -0
- package/lib/types/components/dimlayer/DimLayer.d.ts +5 -0
- package/lib/types/components/emailtranscriptpanestateful/EmailTranscriptPaneStateful.d.ts +3 -0
- package/lib/types/components/emailtranscriptpanestateful/EmailTranscriptPaneStateful.spec.d.ts +1 -0
- package/lib/types/components/emailtranscriptpanestateful/interfaces/IChatTranscriptBody.d.ts +5 -0
- package/lib/types/components/emailtranscriptpanestateful/interfaces/IEmailTranscriptPaneProps.d.ts +11 -0
- package/lib/types/components/footerstateful/FooterStateful.d.ts +2 -0
- package/lib/types/components/footerstateful/audionotificationstateful/AudioNotificationStateful.d.ts +3 -0
- package/lib/types/components/footerstateful/audionotificationstateful/interfaces/IAudioNotificationProps.d.ts +3 -0
- package/lib/types/components/footerstateful/audionotificationstateful/interfaces/IAudioNotificationStatefulParams.d.ts +5 -0
- package/lib/types/components/footerstateful/downloadtranscriptstateful/DownloadTranscriptStateful.d.ts +1 -0
- package/lib/types/components/footerstateful/downloadtranscriptstateful/DownloadTranscriptStateful.spec.d.ts +1 -0
- package/lib/types/components/footerstateful/downloadtranscriptstateful/interfaces/IDownloadTranscriptProps.d.ts +14 -0
- package/lib/types/components/headerstateful/HeaderStateful.d.ts +3 -0
- package/lib/types/components/headerstateful/common/styleProps/defaultOutOfOfficeHeaderStyleProps.d.ts +2 -0
- package/lib/types/components/headerstateful/interfaces/IHeaderStatefulParams.d.ts +17 -0
- package/lib/types/components/livechatwidget/LiveChatWidget.d.ts +3 -0
- package/lib/types/components/livechatwidget/common/createAdapter.d.ts +1 -0
- package/lib/types/components/livechatwidget/common/createFooter.d.ts +3 -0
- package/lib/types/components/livechatwidget/common/createInternetConnectionChangeHandler.d.ts +1 -0
- package/lib/types/components/livechatwidget/common/createMarkdown.d.ts +2 -0
- package/lib/types/components/livechatwidget/common/defaultProps/dummyDefaultProps.d.ts +2 -0
- package/lib/types/components/livechatwidget/common/defaultStyles/defaultLiveChatWidgetGeneralStyles.d.ts +2 -0
- package/lib/types/components/livechatwidget/common/endChat.d.ts +4 -0
- package/lib/types/components/livechatwidget/common/getGeneralStylesForButton.d.ts +3 -0
- package/lib/types/components/livechatwidget/common/initCallingSdk.d.ts +1 -0
- package/lib/types/components/livechatwidget/common/initConfirmationPropsComposer.d.ts +3 -0
- package/lib/types/components/livechatwidget/common/initWebChatComposer.d.ts +6 -0
- package/lib/types/components/livechatwidget/common/reconnectChatHelper.d.ts +7 -0
- package/lib/types/components/livechatwidget/common/registerTelemetryLoggers.d.ts +4 -0
- package/lib/types/components/livechatwidget/common/setPostChatContextAndLoadSurvey.d.ts +3 -0
- package/lib/types/components/livechatwidget/common/startChat.d.ts +7 -0
- package/lib/types/components/livechatwidget/common/startProactiveChat.d.ts +3 -0
- package/lib/types/components/livechatwidget/common/updateSessionDataForTelemetry.d.ts +3 -0
- package/lib/types/components/livechatwidget/interfaces/ILiveChatWidgetComponentOverrides.d.ts +15 -0
- package/lib/types/components/livechatwidget/interfaces/ILiveChatWidgetControlProps.d.ts +17 -0
- package/lib/types/components/livechatwidget/interfaces/ILiveChatWidgetProps.d.ts +50 -0
- package/lib/types/components/livechatwidget/interfaces/ILiveChatWidgetStyleProps.d.ts +5 -0
- package/lib/types/components/livechatwidget/livechatwidgetstateful/LiveChatWidgetStateful.d.ts +3 -0
- package/lib/types/components/loadingpanestateful/LoadingPaneStateful.d.ts +3 -0
- package/lib/types/components/loadingpanestateful/common/defaultStyleProps/defaultgeneralLoadingPaneStyleProps.d.ts +2 -0
- package/lib/types/components/ooohpanestateful/OOOHPaneStateful.d.ts +3 -0
- package/lib/types/components/ooohpanestateful/common/defaultStyleProps/defaultgeneralOOOHPaneStyleProps.d.ts +2 -0
- package/lib/types/components/postchatloadingpanestateful/PostChatLoadingPaneStateful.d.ts +3 -0
- package/lib/types/components/postchatloadingpanestateful/common/defaultgeneralPostChatLoadingPaneStyleProps.d.ts +2 -0
- package/lib/types/components/postchatsurveypanestateful/PostChatSurveyPaneStateful.d.ts +3 -0
- package/lib/types/components/postchatsurveypanestateful/common/defaultStyleProps/defaultgeneralPostChatSurveyPaneStyleProps.d.ts +2 -0
- package/lib/types/components/postchatsurveypanestateful/enums/PostChatSurveyMode.d.ts +4 -0
- package/lib/types/components/prechatsurveypanestateful/PreChatSurveyPaneStateful.d.ts +3 -0
- package/lib/types/components/prechatsurveypanestateful/common/defaultProps/defaultPreChatSurveyLocalizedTexts.d.ts +2 -0
- package/lib/types/components/prechatsurveypanestateful/common/defaultStyles/defaultGeneralPreChatSurveyPaneStyleProps.d.ts +2 -0
- package/lib/types/components/prechatsurveypanestateful/interfaces/IPreChatSurveyPaneStatefulParams.d.ts +5 -0
- package/lib/types/components/proactivechatpanestateful/ProactiveChatPaneStateful.d.ts +2 -0
- package/lib/types/components/proactivechatpanestateful/interfaces/IProactiveChatPaneStatefulProps.d.ts +4 -0
- package/lib/types/components/reconnectchatpanestateful/ReconnectChatPaneStateful.d.ts +3 -0
- package/lib/types/components/reconnectchatpanestateful/interfaces/IReconnectChatContext.d.ts +4 -0
- package/lib/types/components/reconnectchatpanestateful/interfaces/IReconnectChatOptionalParams.d.ts +3 -0
- package/lib/types/components/reconnectchatpanestateful/interfaces/IReconnectChatPaneStatefulParams.d.ts +5 -0
- package/lib/types/components/reconnectchatpanestateful/interfaces/IReconnectChatPaneStatefulProps.d.ts +6 -0
- package/lib/types/components/webchatcontainerstateful/WebChatContainerStateful.d.ts +3 -0
- package/lib/types/components/webchatcontainerstateful/common/defaultProps/defaultAttachmentProps.d.ts +2 -0
- package/lib/types/components/webchatcontainerstateful/common/defaultProps/defaultMarkdownLocalizedTexts.d.ts +2 -0
- package/lib/types/components/webchatcontainerstateful/common/defaultProps/defaultMiddlewareLocalizedTexts.d.ts +2 -0
- package/lib/types/components/webchatcontainerstateful/common/defaultProps/defaultWebChatContainerStatefulProps.d.ts +2 -0
- package/lib/types/components/webchatcontainerstateful/common/defaultProps/defaultWebChatStatefulProps.d.ts +2 -0
- package/lib/types/components/webchatcontainerstateful/common/defaultStyles/defaultWebChatContainerStatefulStyles.d.ts +2 -0
- package/lib/types/components/webchatcontainerstateful/common/defaultStyles/defaultWebChatStatefulContainerStyles.d.ts +2 -0
- package/lib/types/components/webchatcontainerstateful/common/mockadapter.d.ts +13 -0
- package/lib/types/components/webchatcontainerstateful/common/mockchatsdk.d.ts +17 -0
- package/lib/types/components/webchatcontainerstateful/common/utils/BrowserInfo.d.ts +5 -0
- package/lib/types/components/webchatcontainerstateful/common/utils/FileAttachmentIconManager.d.ts +7 -0
- package/lib/types/components/webchatcontainerstateful/common/utils/isMaskingFromCustomer.d.ts +2 -0
- package/lib/types/components/webchatcontainerstateful/interfaces/IAttachmentProps.d.ts +5 -0
- package/lib/types/components/webchatcontainerstateful/interfaces/IDataMaskingInfo.d.ts +6 -0
- package/lib/types/components/webchatcontainerstateful/interfaces/IDataMaskingRule.d.ts +3 -0
- package/lib/types/components/webchatcontainerstateful/interfaces/IDataMaskingSetting.d.ts +4 -0
- package/lib/types/components/webchatcontainerstateful/interfaces/IRenderingMiddlewareProps.d.ts +31 -0
- package/lib/types/components/webchatcontainerstateful/interfaces/IWebChatAction.d.ts +4 -0
- package/lib/types/components/webchatcontainerstateful/interfaces/IWebChatContainerStatefulProps.d.ts +16 -0
- package/lib/types/components/webchatcontainerstateful/interfaces/IWebChatProps.d.ts +38 -0
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/WebChatStoreLoader.d.ts +3 -0
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/enums/BrowserVendor.d.ts +9 -0
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/enums/DirectLineActivityType.d.ts +4 -0
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/enums/DirectLineSenderRole.d.ts +5 -0
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/enums/MessageType.d.ts +11 -0
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/enums/NotificationLevel.d.ts +6 -0
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/enums/NotificationScenarios.d.ts +8 -0
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/enums/SendStatus.d.ts +5 -0
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/enums/WebChatActionType.d.ts +23 -0
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/adaptermiddlewares/formatTagsEgressMiddleware.d.ts +2 -0
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/adaptermiddlewares/formatTagsIngressMiddleware.d.ts +2 -0
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/activityMiddleware.d.ts +11 -0
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/activityStatusMiddleware.d.ts +1 -0
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachmentMiddleware.d.ts +7 -0
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/avatarMiddleware.d.ts +8 -0
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAttachmentContentStyles.d.ts +2 -0
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAttachmentDividerStyles.d.ts +2 -0
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAttachmentDownloadIconStyles.d.ts +2 -0
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAttachmentFileNameStyles.d.ts +2 -0
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAttachmentSizeStyles.d.ts +2 -0
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAtttachmentAdaptiveCardStyles.d.ts +2 -0
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAtttachmentIconStyles.d.ts +2 -0
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAtttachmentStyles.d.ts +2 -0
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAvatarStyles.d.ts +2 -0
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAvatarTextStyles.d.ts +2 -0
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultSystemMessageStyles.d.ts +11 -0
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTimestampContentStyles.d.ts +2 -0
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTimestampFailedStyles.d.ts +2 -0
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTimestampRetryStyles.d.ts +2 -0
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTypingIndicatorBubbleStyles.d.ts +2 -0
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTypingIndicatorContainerStyles.d.ts +2 -0
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTypingIndicatorMessageStyles.d.ts +2 -0
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultUserMessageStyles.d.ts +3 -0
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/groupActivitiesMiddleware.d.ts +10 -0
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/timestamps/DeliveredTimestamp.d.ts +1 -0
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/timestamps/NotDeliveredTimestamp.d.ts +1 -0
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/timestamps/SendingTimestamp.d.ts +1 -0
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/typingIndicatorMiddleware.d.ts +6 -0
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/attachmentProcessingMiddleware.d.ts +10 -0
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/attachmentUploadValidatorMiddleware.d.ts +11 -0
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/channelDataMiddleware.d.ts +10 -0
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/conversationEndMiddleware.d.ts +11 -0
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/dataMaskingMiddleware.d.ts +11 -0
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/gifUploadMiddleware.d.ts +10 -0
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/htmlPlayerMiddleware.d.ts +10 -0
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/htmlTextMiddleware.d.ts +10 -0
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/maxMessageSizeValidator.d.ts +11 -0
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/preProcessingMiddleware.d.ts +10 -0
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/sanitizationMiddleware.d.ts +10 -0
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/notification/NotificationHandler.d.ts +12 -0
- package/lib/types/contexts/ChatAdapterStore.d.ts +2 -0
- package/lib/types/contexts/ChatContextStore.d.ts +1 -0
- package/lib/types/contexts/ChatSDKStore.d.ts +1 -0
- package/lib/types/contexts/common/ConversationState.d.ts +10 -0
- package/lib/types/contexts/common/ILiveChatWidgetAction.d.ts +5 -0
- package/lib/types/contexts/common/ILiveChatWidgetContext.d.ts +47 -0
- package/lib/types/contexts/common/ILiveChatWidgetLocalizedTexts.d.ts +22 -0
- package/lib/types/contexts/common/LiveChatWidgetActionType.d.ts +30 -0
- package/lib/types/contexts/common/LiveChatWidgetContextInitialState.d.ts +3 -0
- package/lib/types/contexts/createReducer.d.ts +3 -0
- package/lib/types/controller/componentController.d.ts +15 -0
- package/lib/types/hooks/useChatAdapterStore.d.ts +2 -0
- package/lib/types/hooks/useChatContextStore.d.ts +5 -0
- package/lib/types/hooks/useChatSDKStore.d.ts +2 -0
- package/lib/types/index.d.ts +5 -0
- package/package.json +112 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ConversationState } from "../contexts/common/ConversationState";
|
|
2
|
+
export const shouldShowChatButton = state => {
|
|
3
|
+
return state.appStates.isMinimized || state.appStates.conversationState === ConversationState.Closed;
|
|
4
|
+
};
|
|
5
|
+
export const shouldShowProactiveChatPane = state => {
|
|
6
|
+
return !state.appStates.isMinimized && state.appStates.conversationState === ConversationState.ProactiveChat;
|
|
7
|
+
};
|
|
8
|
+
export const shouldShowHeader = state => {
|
|
9
|
+
return !state.appStates.isMinimized && state.appStates.conversationState !== ConversationState.Closed && state.appStates.conversationState !== ConversationState.ProactiveChat;
|
|
10
|
+
};
|
|
11
|
+
export const shouldShowFooter = state => {
|
|
12
|
+
return !state.appStates.isMinimized && state.appStates.conversationState === ConversationState.Active;
|
|
13
|
+
};
|
|
14
|
+
export const shouldShowEmailTranscriptPane = state => {
|
|
15
|
+
return state.uiStates.showEmailTranscriptPane;
|
|
16
|
+
};
|
|
17
|
+
export const shouldShowWebChatContainer = state => {
|
|
18
|
+
return state.appStates.conversationState === ConversationState.Active;
|
|
19
|
+
};
|
|
20
|
+
export const shouldShowLoadingPane = state => {
|
|
21
|
+
return !state.appStates.isMinimized && !state.appStates.shouldShowPostChat && state.appStates.conversationState === ConversationState.Loading;
|
|
22
|
+
};
|
|
23
|
+
export const shouldShowReconnectChatPane = state => {
|
|
24
|
+
return !state.appStates.isMinimized && state.appStates.conversationState === ConversationState.ReconnectChat;
|
|
25
|
+
};
|
|
26
|
+
export const shouldShowPostChatLoadingPane = state => {
|
|
27
|
+
return !state.appStates.isMinimized && state.appStates.shouldShowPostChat && state.appStates.conversationState === ConversationState.Loading;
|
|
28
|
+
};
|
|
29
|
+
export const shouldShowOutOfOfficeHoursPane = state => {
|
|
30
|
+
return !state.appStates.isMinimized && state.appStates.conversationState === ConversationState.OutOfOffice;
|
|
31
|
+
};
|
|
32
|
+
export const shouldShowPreChatSurveyPane = state => {
|
|
33
|
+
return state.appStates.conversationState === ConversationState.Prechat;
|
|
34
|
+
};
|
|
35
|
+
export const shouldShowConfirmationPane = state => {
|
|
36
|
+
return state.uiStates.showConfirmationPane;
|
|
37
|
+
};
|
|
38
|
+
export const shouldShowPostChatSurveyPane = state => {
|
|
39
|
+
return state.appStates.conversationState === ConversationState.Postchat;
|
|
40
|
+
};
|
|
41
|
+
export const shouldShowCallingContainer = state => {
|
|
42
|
+
return state.appStates.conversationState === ConversationState.Active && state.appStates.e2vvEnabled;
|
|
43
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ChatAdapterStore } from "../contexts/ChatAdapterStore";
|
|
2
|
+
import { useContext } from "react";
|
|
3
|
+
|
|
4
|
+
const useChatAdapterStore = () => {
|
|
5
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6
|
+
const adapter = useContext(ChatAdapterStore);
|
|
7
|
+
|
|
8
|
+
if (!adapter) {
|
|
9
|
+
throw new Error("This hook can only be used on component that is descendants of <ChatAdapterStore.Provider>");
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
return adapter;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export default useChatAdapterStore;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { useContext } from "react";
|
|
2
|
+
import { ChatContextStore } from "../contexts/ChatContextStore";
|
|
3
|
+
|
|
4
|
+
const useChatContextStore = () => {
|
|
5
|
+
const context = useContext(ChatContextStore);
|
|
6
|
+
|
|
7
|
+
if (!context) {
|
|
8
|
+
throw new Error("This hook can only be used on component that is descendants of <ChatContextStore.Provider>");
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
return context;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export default useChatContextStore;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ChatSDKStore } from "../contexts/ChatSDKStore";
|
|
2
|
+
import { useContext } from "react";
|
|
3
|
+
|
|
4
|
+
const useChatSDKStore = () => {
|
|
5
|
+
const sdk = useContext(ChatSDKStore);
|
|
6
|
+
|
|
7
|
+
if (!sdk) {
|
|
8
|
+
throw new Error("This hook is not called on component that is descendants of <ChatSDKStore.Provider>, or ChatSDK is not passed into LiveChatWidget component.");
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
return sdk;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export default useChatSDKStore;
|
package/lib/esm/index.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { BroadcastService, decodeComponentString, encodeComponentString } from "@microsoft/omnichannel-chat-components";
|
|
2
|
+
import useChatContextStore from "./hooks/useChatContextStore";
|
|
3
|
+
import useChatSDKStore from "./hooks/useChatSDKStore";
|
|
4
|
+
export { default as LiveChatWidget } from "./components/livechatwidget/LiveChatWidget";
|
|
5
|
+
export { encodeComponentString, decodeComponentString, BroadcastService, useChatSDKStore, useChatContextStore };
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
export declare class Constants {
|
|
2
|
+
static readonly systemMessageTag = "system";
|
|
3
|
+
static readonly userMessageTag = "user";
|
|
4
|
+
static readonly agentEndConversationMessageTag = "agentendconversation";
|
|
5
|
+
static readonly receivedMessageClassName = "ms_lcw_webchat_received_message";
|
|
6
|
+
static readonly sentMessageClassName = "ms_lcw_webchat_sent_message";
|
|
7
|
+
static readonly webchatChannelId = "webchat";
|
|
8
|
+
static readonly markdown = "markdown";
|
|
9
|
+
static readonly actionType = "actionType";
|
|
10
|
+
static readonly String = "string";
|
|
11
|
+
static readonly ChatMessagesJson = "chatMessagesJson";
|
|
12
|
+
static readonly truePascal = "True";
|
|
13
|
+
static readonly true = "true";
|
|
14
|
+
static readonly false = "false";
|
|
15
|
+
static readonly maximumUnreadMessageCount = 99;
|
|
16
|
+
static readonly channelIdKey = "ChannelId-";
|
|
17
|
+
static readonly ChannelId = "lcw";
|
|
18
|
+
static readonly CustomerTag = "FromCustomer";
|
|
19
|
+
static readonly GifContentType = "image/gif";
|
|
20
|
+
static readonly video = "video";
|
|
21
|
+
static readonly audio = "audio";
|
|
22
|
+
static readonly controlsList = "controlsList";
|
|
23
|
+
static readonly nodownload = "nodownload";
|
|
24
|
+
static readonly activity = "activity";
|
|
25
|
+
static readonly payload = "payload";
|
|
26
|
+
static readonly text = "text";
|
|
27
|
+
static readonly blank = "_blank";
|
|
28
|
+
static readonly visitorIdPrefix = "8:";
|
|
29
|
+
static readonly left = "left";
|
|
30
|
+
static readonly queuePositionMessageTag = "queueposition";
|
|
31
|
+
static readonly averageWaitTimeMessageTag = "averagewaittime";
|
|
32
|
+
static readonly message = "message";
|
|
33
|
+
static readonly supportedAdaptiveCardContentTypes: Array<string>;
|
|
34
|
+
static readonly maxUploadFileSize = "500000";
|
|
35
|
+
static readonly imageRegex: RegExp;
|
|
36
|
+
static readonly audioMediaRegex: RegExp;
|
|
37
|
+
static readonly videoMediaRegex: RegExp;
|
|
38
|
+
static readonly chromeSupportedInlineMediaRegex: RegExp;
|
|
39
|
+
static readonly firefoxSupportedInlineMediaRegex: RegExp;
|
|
40
|
+
static readonly CallAdded = "callAdded";
|
|
41
|
+
static readonly LocalVideoStreamAdded = "localVideoStreamAdded";
|
|
42
|
+
static readonly LocalVideoStreamRemoved = "localVideoStreamRemoved";
|
|
43
|
+
static readonly RemoteVideoStreamAdded = "remoteVideoStreamAdded";
|
|
44
|
+
static readonly RemoteVideoStreamRemoved = "remoteVideoStreamRemoved";
|
|
45
|
+
static readonly CallDisconnected = "callDisconnected";
|
|
46
|
+
static readonly IncomingCallEnded = "incomingCallEnded";
|
|
47
|
+
static readonly VoiceVideoInitialize = "voiceVideoInitialize";
|
|
48
|
+
static readonly VoiceVideoInitializeException = "voiceVideoInitializeOnException";
|
|
49
|
+
static readonly VoiceVideoLoading = "voiceVideoLoading";
|
|
50
|
+
static readonly VoiceVideoNotLoaded = "voiceVideoNotLoaded";
|
|
51
|
+
static readonly VoiceVideoLoadingException = "voiceVideoLoadingOnException";
|
|
52
|
+
static readonly VoiceVideoAcceptCallException = "voiceVideoAcceptCallOnException";
|
|
53
|
+
static readonly VoiceVideoAcceptCallWithVideoException = "voiceVideoAcceptCallWithVideoException";
|
|
54
|
+
static readonly defaultDownloadTranscriptError = "Download transcript failed.";
|
|
55
|
+
static readonly ProactiveChatInviteTimeoutInMs = 60000;
|
|
56
|
+
static readonly InputSubmit = "InputSubmit";
|
|
57
|
+
static readonly ReconnectIdAttributeName = "oc.reconnectid";
|
|
58
|
+
static readonly redirectPageRequest = "redirectPageRequest";
|
|
59
|
+
static readonly LiveChatWidget = "LiveChatWidgetNew";
|
|
60
|
+
static readonly GuidPattern = "xx-x-4m-ym-xxx";
|
|
61
|
+
static readonly Default = "default";
|
|
62
|
+
static readonly Zero = "zero";
|
|
63
|
+
static readonly Title = "title";
|
|
64
|
+
static readonly Target = "target";
|
|
65
|
+
static readonly Blank = "_blank";
|
|
66
|
+
static readonly TargetRelationship = "rel";
|
|
67
|
+
static readonly TargetRelationshipAttributes = "noopener noreferrer";
|
|
68
|
+
static readonly OpenLinkIconCssClass = "webchat__markdown__external-link-icon";
|
|
69
|
+
static readonly internetConnectionTestUrl = "https://ocsdk-prod.azureedge.net/public/connecttest.txt";
|
|
70
|
+
static readonly internetConnectionTestUrlText = "Omnichannel Connect Test";
|
|
71
|
+
}
|
|
72
|
+
export declare const Regex: {
|
|
73
|
+
new (): {};
|
|
74
|
+
readonly EmailRegex: "(?:[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*|\"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*\")@(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?|\\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-zA-Z0-9-]*[a-zA-Z0-9]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21-\\x5a\\x53-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])+)\\])";
|
|
75
|
+
};
|
|
76
|
+
export declare class HtmlIdNames {
|
|
77
|
+
static readonly MSLiveChatWidget = "MSLiveChatWidget";
|
|
78
|
+
}
|
|
79
|
+
export declare class HtmlClassNames {
|
|
80
|
+
static readonly webChatBannerCloseButton = "webchat__toast__dismissButton";
|
|
81
|
+
static readonly webChatBannerExpandButton = "webchat__toaster__expandIcon";
|
|
82
|
+
}
|
|
83
|
+
export declare class HtmlElementSelectors {
|
|
84
|
+
static readonly sendBoxSelector = "textarea[data-id=\"webchat-sendbox-input\"]";
|
|
85
|
+
}
|
|
86
|
+
export declare class HtmlAttributeNames {
|
|
87
|
+
static readonly role = "role";
|
|
88
|
+
static readonly navigation = "navigation";
|
|
89
|
+
static readonly ariaLabel = "aria-label";
|
|
90
|
+
static readonly ariaLive = "aria-live";
|
|
91
|
+
static readonly ariaDisabled = "aria-disabled";
|
|
92
|
+
static readonly form = "form";
|
|
93
|
+
static readonly ariaLabelledby = "aria-labelledby";
|
|
94
|
+
static readonly tabindex = "tabindex";
|
|
95
|
+
static readonly ariaRequired = "aria-required";
|
|
96
|
+
static readonly ariaDesribedby = "aria-describedby";
|
|
97
|
+
static readonly ariaHidden = "aria-hidden";
|
|
98
|
+
static readonly disabled = "disabled";
|
|
99
|
+
static readonly hidden = "hidden";
|
|
100
|
+
static readonly download = "download";
|
|
101
|
+
static readonly href = "href";
|
|
102
|
+
static readonly region = "region";
|
|
103
|
+
static readonly button = "button";
|
|
104
|
+
static readonly input = "Input";
|
|
105
|
+
static readonly style = "style";
|
|
106
|
+
static readonly head = "head";
|
|
107
|
+
static readonly type = "type";
|
|
108
|
+
static readonly csstext = "text/css";
|
|
109
|
+
static readonly listItem = "LI";
|
|
110
|
+
static readonly unorderedList = "UL";
|
|
111
|
+
static readonly div = "div";
|
|
112
|
+
static readonly aTagName = "a";
|
|
113
|
+
static readonly noopenerTag = "noopener";
|
|
114
|
+
static readonly noreferrerTag = "noreferrer";
|
|
115
|
+
static readonly adaptiveCardClassName = "ac-adaptiveCard";
|
|
116
|
+
static readonly adaptiveCardTextBlockClassName = "ac-textBlock";
|
|
117
|
+
static readonly adaptiveCardToggleInputClassName = "ac-toggleInput";
|
|
118
|
+
}
|
|
119
|
+
export declare class WebChatMiddlewareConstants {
|
|
120
|
+
static readonly nextVisibleActivity = "nextVisibleActivity";
|
|
121
|
+
static readonly timeBetweenTimestampGroups = 300000;
|
|
122
|
+
static readonly maxTextLength = 6000;
|
|
123
|
+
static readonly adaptiveCard = "AdaptiveCard";
|
|
124
|
+
}
|
|
125
|
+
export declare class MimeTypes {
|
|
126
|
+
static readonly UnknownFileType = "application/octet-stream";
|
|
127
|
+
}
|
|
128
|
+
export declare class LocaleConstants {
|
|
129
|
+
static readonly RTL_LOCALES: string[];
|
|
130
|
+
}
|
|
131
|
+
export declare enum ElementType {
|
|
132
|
+
CallingContainerSDK = "CallingContainerSDK"
|
|
133
|
+
}
|
|
134
|
+
export declare enum ChatSDKError {
|
|
135
|
+
WidgetUseOutsideOperatingHour = "WidgetUseOutsideOperatingHour"
|
|
136
|
+
}
|
|
137
|
+
export declare class TranscriptConstants {
|
|
138
|
+
static readonly ChatTranscriptsBodyColor = "#F5F5F5";
|
|
139
|
+
static readonly TranscriptMessageEmojiMessageType = "http://schema.skype.com/emoji";
|
|
140
|
+
static readonly ChatTranscriptDownloadFile = "ChatTranscripts.html";
|
|
141
|
+
static readonly DefaultFileAttachmentName = "Untitled.txt";
|
|
142
|
+
static readonly CustomerDialogColor = "#E8E8E8";
|
|
143
|
+
static readonly CustomerFontColor = "black";
|
|
144
|
+
static readonly AdaptiveCardType = "adaptivecard";
|
|
145
|
+
static readonly InternalMode = "internal";
|
|
146
|
+
static readonly AgentDialogColor = "#2266E3";
|
|
147
|
+
static readonly AgentFontColor = "white";
|
|
148
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { TelemetryData } from "./definitions/Payload";
|
|
2
|
+
export declare enum ScenarioType {
|
|
3
|
+
CONFIG_VALIDATION = "LCW_ConfigValidationEvents",
|
|
4
|
+
LOAD = "LCW_LoadEvents",
|
|
5
|
+
ACTIONS = "LCW_ActionEvents",
|
|
6
|
+
SDK = "LCW_SDKEvents",
|
|
7
|
+
IC3_CLIENT = "LCW_IC3ClientEvents",
|
|
8
|
+
OCCHATSDK = "LCW_OCCHATSDKEvents",
|
|
9
|
+
WEBCHAT = "LCW_WebChatEvents",
|
|
10
|
+
CALLING = "LCW_Calling",
|
|
11
|
+
UNDEFINED = "LCW_Undefined",
|
|
12
|
+
ACS_ADAPTER = "LCW_ACSAdapterEvents"
|
|
13
|
+
}
|
|
14
|
+
export declare enum LogLevel {
|
|
15
|
+
INFO = "INFO",
|
|
16
|
+
DEBUG = "DEBUG",
|
|
17
|
+
WARN = "WARN",
|
|
18
|
+
ERROR = "ERROR"
|
|
19
|
+
}
|
|
20
|
+
export declare enum TelemetryEvent {
|
|
21
|
+
CallAdded = "CallAdded",
|
|
22
|
+
LocalVideoStreamAdded = "LocalVideoStreamAdded",
|
|
23
|
+
LocalVideoStreamRemoved = "LocalVideoStreamRemoved",
|
|
24
|
+
RemoteVideoStreamAdded = "RemoteVideoStreamAdded",
|
|
25
|
+
RemoteVideoStreamRemoved = "RemoteVideoStreamRemoved",
|
|
26
|
+
CallDisconnected = "CallDisconnected",
|
|
27
|
+
CallDisconnectedException = "CallDisconnectedException",
|
|
28
|
+
IncomingCallEnded = "incomingCallEnded",
|
|
29
|
+
VoiceVideoInitialize = "VoiceVideoInitialize",
|
|
30
|
+
VoiceVideoInitializeException = "VoiceVideoInitializeException",
|
|
31
|
+
VoiceVideoLoading = "VoiceVideoLoading",
|
|
32
|
+
VoiceVideoNotLoaded = "VoiceVideoNotLoaded",
|
|
33
|
+
VoiceVideoLoadingException = "VoiceVideoLoadingException",
|
|
34
|
+
VoiceVideoAcceptCallException = "VoiceVideoAcceptCallException",
|
|
35
|
+
VoiceVideoAcceptCallWithVideoException = "VoiceVideoAcceptCallWithVideoException",
|
|
36
|
+
VideoCallAcceptButtonClick = "VideoCallAcceptButtonClick",
|
|
37
|
+
VoiceCallAcceptButtonClick = "VoiceCallAcceptButtonClick",
|
|
38
|
+
CallRejectClick = "CallRejectClick",
|
|
39
|
+
CallRejectClickException = "CallRejectClickException",
|
|
40
|
+
ToggleMuteButtonClick = "ToggleMuteButtonClick",
|
|
41
|
+
ToggleMuteButtonClickException = "ToggleMuteButtonClickException",
|
|
42
|
+
ToggleCameraButtonClick = "ToggleCameraButtonClick",
|
|
43
|
+
ToggleCameraButtonClickException = "ToggleCameraButtonClickException",
|
|
44
|
+
EndCallButtonClick = "EndCallButtonClick",
|
|
45
|
+
EndCallButtonClickException = "EndCallButtonClickException",
|
|
46
|
+
CallingSDKInitSuccess = "CallingSDKInitSuccess",
|
|
47
|
+
CallingSDKInitFailed = "CallingSDKInitFailed",
|
|
48
|
+
CallingSDKLoadSuccess = "CallingSDKLoadSuccess",
|
|
49
|
+
CallingSDKLoadFailed = "CallingSDKLoadFailed",
|
|
50
|
+
GetConversationDetailsCallFailed = "GetConversationDetailsCallFailed",
|
|
51
|
+
EndChatSDKCallFailed = "EndChatSDKCallFailed",
|
|
52
|
+
GetChatReconnectContextSDKCallFailed = "GetChatReconnectContextSDKCallFailed",
|
|
53
|
+
PostChatContextCallSucceed = "PostChatContextCallSucceed",
|
|
54
|
+
PostChatContextCallFailed = "PostChatContextCallFailed",
|
|
55
|
+
ParseAdaptiveCardFailed = "ParseAdaptiveCardFailed",
|
|
56
|
+
WebChatLoaded = "WebChatLoaded",
|
|
57
|
+
LCWChatButtonClicked = "LCWChatButtonClicked",
|
|
58
|
+
LCWChatButtonShow = "LCWChatButtonShow",
|
|
59
|
+
WidgetLoadComplete = "WidgetLoadComplete",
|
|
60
|
+
WidgetLoadFailed = "WidgetLoadFailed",
|
|
61
|
+
StartChatMethodException = "StartChatMethodException",
|
|
62
|
+
CloseChatMethodException = "CloseChatMethodException",
|
|
63
|
+
PrechatSurveyLoaded = "PrechatSurveyLoaded",
|
|
64
|
+
PrechatSubmitted = "PrechatSubmitted",
|
|
65
|
+
StartChatSDKCall = "StartChatCall",
|
|
66
|
+
EndChatSDKCall = "EndChatCall",
|
|
67
|
+
OnNewMessageFailed = "OnNewMessageFailed",
|
|
68
|
+
OnNewMessageAudioNotificationFailed = "OnNewMessageAudioNotificationFailed",
|
|
69
|
+
DownloadTranscriptResponseNullOrUndefined = "DownloadTranscriptResponseNullOrUndefined",
|
|
70
|
+
EmailTranscriptSent = "EmailTranscriptSent",
|
|
71
|
+
EmailTranscriptFailed = "EmailTranscriptFailed",
|
|
72
|
+
DownloadTranscriptFailed = "DownloadTranscriptFailed",
|
|
73
|
+
StartChatFailed = "StartChatFailed",
|
|
74
|
+
IC3ThreadUpdateEventReceived = "IC3ThreadUpdateEventReceived",
|
|
75
|
+
ConfirmationCancelButtonClicked = "ConfirmationCancelButtonClicked",
|
|
76
|
+
ConfirmationConfirmButtonClicked = "ConfirmationConfirmButtonClicked",
|
|
77
|
+
LoadingPaneLoaded = "LoadingPaneLoaded",
|
|
78
|
+
EmailTranscriptLoaded = "EmailTranscriptLoaded",
|
|
79
|
+
OutOfOfficePaneLoaded = "OutOfOfficePaneLoaded",
|
|
80
|
+
PostChatSurveyLoaded = "PostChatSurveyLoaded",
|
|
81
|
+
ConfirmationPaneLoaded = "ConfirmationPaneLoaded",
|
|
82
|
+
ProactiveChatPaneLoaded = "ProactiveChatPaneLoaded",
|
|
83
|
+
ReconnectChatPaneLoaded = "ReconnectChatPaneLoaded",
|
|
84
|
+
HeaderCloseButtonClicked = "HeaderCloseButtonClicked",
|
|
85
|
+
HeaderMinimizeButtonClicked = "HeaderMinimizeButtonClicked",
|
|
86
|
+
DownloadTranscriptButtonClicked = "DownloadTranscriptButtonClicked",
|
|
87
|
+
EmailTranscriptButtonClicked = "EmailTranscriptButtonClicked",
|
|
88
|
+
EmailTranscriptCancelButtonClicked = "EmailTranscriptCancelButtonClicked",
|
|
89
|
+
AudioToggleButtonClicked = "AudioToggleButtonClicked",
|
|
90
|
+
ProcessingHTMLTextMiddlewareFailed = "ProcessingHTMLTextMiddlewareFailed",
|
|
91
|
+
ProcessingSanitizationMiddlewareFailed = "ProcessingSanitizationMiddlewareFailed",
|
|
92
|
+
FormatTagsMiddlewareJSONStringifyFailed = "FormatTagsMiddlewareJSONStringifyFailed",
|
|
93
|
+
QueuePositionMessageRecieved = "QueuePositionMessageRecieved",
|
|
94
|
+
AverageWaitTimeMessageRecieved = "AverageWaitTimeMessageRecieved",
|
|
95
|
+
DataMaskingRuleApplied = "DataMaskingRuleApplied",
|
|
96
|
+
IC3ClientEvent = "IC3ClientEvent",
|
|
97
|
+
ConversationEndedThreadEventReceived = "ConversationEndedThreadEventReceived",
|
|
98
|
+
InvalidConfiguration = "InvalidConfiguration",
|
|
99
|
+
SendTypingIndicatorSucceeded = "SendTypingIndicatorSucceeded",
|
|
100
|
+
SendTypingIndicatorFailed = "SendTypingIndicatorFailed",
|
|
101
|
+
PreChatSurveyStartChatMethodFailed = "PreChatSurveyStartChatMethodFailed",
|
|
102
|
+
StartProactiveChatMethodFailed = "StartProactiveChatMethodFailed",
|
|
103
|
+
ProactiveChatAccepted = "ProactiveChatAccepted",
|
|
104
|
+
ProactiveChatRejected = "ProactiveChatRejected",
|
|
105
|
+
IncomingProactiveChatScreenLoaded = "IncomingProactiveChatScreenLoaded",
|
|
106
|
+
ProactiveChatClosed = "ProactiveChatClosed",
|
|
107
|
+
ReconnectChatContinueConversation = "ReconnectChatContinueConversation",
|
|
108
|
+
ReconnectChatStartNewConversation = "ReconnectChatStartNewConversation",
|
|
109
|
+
ReconnectChatMinimize = "ReconnectChatMinimize"
|
|
110
|
+
}
|
|
111
|
+
export interface TelemetryInput {
|
|
112
|
+
scenarioType: ScenarioType;
|
|
113
|
+
payload: TelemetryData;
|
|
114
|
+
}
|
|
115
|
+
export declare class TelemetryConstants {
|
|
116
|
+
private static map;
|
|
117
|
+
static mapEventToScenario(eventTypeOrScenarioType: TelemetryEvent): ScenarioType;
|
|
118
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { LogLevel, TelemetryEvent, TelemetryInput } from "./TelemetryConstants";
|
|
2
|
+
import { BaseContract, TelemetryContract } from "./definitions/Contracts";
|
|
3
|
+
import { TelemetryData } from "./definitions/Payload";
|
|
4
|
+
import ChatConfig from "@microsoft/omnichannel-chat-sdk/lib/core/ChatConfig";
|
|
5
|
+
import LiveChatContext from "@microsoft/omnichannel-chat-sdk/lib/core/LiveChatContext";
|
|
6
|
+
import LiveWorkItemDetails from "@microsoft/omnichannel-chat-sdk/lib/core/LiveWorkItemDetails";
|
|
7
|
+
import { IInternalTelemetryData } from "./interfaces/IInternalTelemetryData";
|
|
8
|
+
import { ITelemetryConfig } from "./interfaces/ITelemetryConfig";
|
|
9
|
+
export interface TelemetryEventWrapper {
|
|
10
|
+
Event: TelemetryEvent;
|
|
11
|
+
Description?: string;
|
|
12
|
+
ExceptionDetails?: any;
|
|
13
|
+
ElapsedTimeInMilliseconds?: number;
|
|
14
|
+
}
|
|
15
|
+
export declare class TelemetryHelper {
|
|
16
|
+
static callId: string;
|
|
17
|
+
static elapsedTime: string;
|
|
18
|
+
static buildTelemetryEvent(level: LogLevel, input: TelemetryInput): TelemetryContract;
|
|
19
|
+
static populateBasicProperties(level: LogLevel, telemetryData: TelemetryData): BaseContract;
|
|
20
|
+
private static populate;
|
|
21
|
+
private static conformToActionsContract;
|
|
22
|
+
private static conformToWebChatContract;
|
|
23
|
+
private static conformToConfigValidationContract;
|
|
24
|
+
private static conformToLoadContract;
|
|
25
|
+
private static conformToIC3ClientContract;
|
|
26
|
+
private static conformToACSAdapterContract;
|
|
27
|
+
private static conformToCallingContract;
|
|
28
|
+
private static conformToOCChatSDKContract;
|
|
29
|
+
static addChatConfigDataToTelemetry(chatConfig: ChatConfig, telemetryInternalData: IInternalTelemetryData): IInternalTelemetryData;
|
|
30
|
+
static addWidgetDataToTelemetry(telemetryConfig: ITelemetryConfig, telemetryInternalData: IInternalTelemetryData): IInternalTelemetryData;
|
|
31
|
+
static addSessionDataToTelemetry(chatSession: LiveChatContext, telemetryInternalData: IInternalTelemetryData): IInternalTelemetryData;
|
|
32
|
+
static addConversationDataToTelemetry(liveWorkItem: LiveWorkItemDetails, telemetryInternalData: IInternalTelemetryData): IInternalTelemetryData;
|
|
33
|
+
static logCallingEvent: (logLevel: LogLevel, payload: TelemetryEventWrapper, callId?: string | undefined) => void;
|
|
34
|
+
static logLoadingEvent: (logLevel: LogLevel, payload: TelemetryEventWrapper) => void;
|
|
35
|
+
static logActionEvent: (logLevel: LogLevel, payload: TelemetryEventWrapper) => void;
|
|
36
|
+
static logSDKEvent: (logLevel: LogLevel, payload: TelemetryEventWrapper) => void;
|
|
37
|
+
static logConfigDataEvent: (logLevel: LogLevel, payload: TelemetryEventWrapper) => void;
|
|
38
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IInternalTelemetryData } from "./interfaces/IInternalTelemetryData";
|
|
2
|
+
import { ITimer } from "../interfaces/ITimer";
|
|
3
|
+
export declare class TelemetryTimers {
|
|
4
|
+
static LcwLoadToChatButtonTimer: ITimer;
|
|
5
|
+
static ProactiveChatScreenTimer: ITimer;
|
|
6
|
+
static WidgetLoadTimer: ITimer;
|
|
7
|
+
}
|
|
8
|
+
export declare class TelemetryManager {
|
|
9
|
+
static InternalTelemetryData: IInternalTelemetryData;
|
|
10
|
+
}
|
|
11
|
+
export declare const RegisterLoggers: () => void;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
export interface BaseContract {
|
|
2
|
+
WidgetId: string;
|
|
3
|
+
ChatId: string;
|
|
4
|
+
ChannelId: string;
|
|
5
|
+
ConversationId: string;
|
|
6
|
+
ElapsedTimeInMilliseconds?: number;
|
|
7
|
+
OrganizationId: string;
|
|
8
|
+
LCWRuntimeId: string;
|
|
9
|
+
CurrentRequestId: string;
|
|
10
|
+
ExceptionDetails?: string;
|
|
11
|
+
LogLevel: string;
|
|
12
|
+
}
|
|
13
|
+
export interface ConfigValidationContract extends BaseContract {
|
|
14
|
+
Event?: string;
|
|
15
|
+
RequestId?: string;
|
|
16
|
+
LCWVersion?: string;
|
|
17
|
+
CloudType?: string;
|
|
18
|
+
Domain?: string;
|
|
19
|
+
Language?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface LoadContract extends BaseContract {
|
|
22
|
+
Event?: string;
|
|
23
|
+
ResourcePath?: string;
|
|
24
|
+
WidgetState?: string;
|
|
25
|
+
ChatState?: string;
|
|
26
|
+
ChatType?: string;
|
|
27
|
+
}
|
|
28
|
+
export interface ActionsContract extends BaseContract {
|
|
29
|
+
Event?: string;
|
|
30
|
+
ActionType?: string;
|
|
31
|
+
}
|
|
32
|
+
export interface IC3ClientContract extends BaseContract {
|
|
33
|
+
Event?: string;
|
|
34
|
+
IC3ClientVersion?: string;
|
|
35
|
+
SubscriptionId?: string;
|
|
36
|
+
EndpointUrl?: string;
|
|
37
|
+
EndpointId?: string;
|
|
38
|
+
ErrorCode?: string;
|
|
39
|
+
ShouldBubbleToHost?: boolean;
|
|
40
|
+
Description?: string;
|
|
41
|
+
}
|
|
42
|
+
export interface OCChatSDKContract extends BaseContract {
|
|
43
|
+
RequestId: string;
|
|
44
|
+
Event?: string;
|
|
45
|
+
OCChatSDKVersion: string;
|
|
46
|
+
TransactionId: string;
|
|
47
|
+
}
|
|
48
|
+
export interface WebChatContract extends BaseContract {
|
|
49
|
+
Event?: string;
|
|
50
|
+
EventInfo?: string;
|
|
51
|
+
Dimensions?: object;
|
|
52
|
+
Data?: object;
|
|
53
|
+
Duration?: number;
|
|
54
|
+
}
|
|
55
|
+
export interface CallingContract extends BaseContract {
|
|
56
|
+
CallId?: string;
|
|
57
|
+
Event?: string;
|
|
58
|
+
Description?: string;
|
|
59
|
+
}
|
|
60
|
+
export interface ACSAdapterContract extends BaseContract {
|
|
61
|
+
Description?: string;
|
|
62
|
+
ACSUserId?: string;
|
|
63
|
+
ChatThreadId?: string;
|
|
64
|
+
ChatMessageId?: string;
|
|
65
|
+
TimeStamp?: string;
|
|
66
|
+
Event?: string;
|
|
67
|
+
ErrorCode?: string;
|
|
68
|
+
ExceptionDetails?: any;
|
|
69
|
+
}
|
|
70
|
+
export declare type TelemetryContract = OCChatSDKContract | IC3ClientContract | ActionsContract | LoadContract | WebChatContract | ConfigValidationContract | CallingContract | ACSAdapterContract | BaseContract | any;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
export interface ConfigValidationTelemetryData {
|
|
2
|
+
Event?: string;
|
|
3
|
+
RequestId?: string;
|
|
4
|
+
LCWVersion?: string;
|
|
5
|
+
Language?: string;
|
|
6
|
+
ElapsedTimeInMilliseconds?: number;
|
|
7
|
+
CloudType?: string;
|
|
8
|
+
ExceptionDetails?: object;
|
|
9
|
+
Domain?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface LoadTelemetryData {
|
|
12
|
+
Event?: string;
|
|
13
|
+
ResourcePath?: string;
|
|
14
|
+
ElapsedTimeInMilliseconds?: number;
|
|
15
|
+
WidgetState?: string;
|
|
16
|
+
ChatState?: string;
|
|
17
|
+
ChatType?: string;
|
|
18
|
+
ExceptionDetails?: object;
|
|
19
|
+
}
|
|
20
|
+
export interface MessageProcessingErrorData {
|
|
21
|
+
Event: string;
|
|
22
|
+
ExceptionDetails: object;
|
|
23
|
+
}
|
|
24
|
+
export interface OCChatSDKTelemetryData {
|
|
25
|
+
RequestId: string;
|
|
26
|
+
Event?: string;
|
|
27
|
+
ElapsedTimeInMilliseconds?: number;
|
|
28
|
+
TransactionId: string;
|
|
29
|
+
ExceptionDetails?: object;
|
|
30
|
+
}
|
|
31
|
+
export interface IC3ClientTelemetryData {
|
|
32
|
+
SubscriptionId?: string;
|
|
33
|
+
EndpointUrl?: string;
|
|
34
|
+
EndpointId?: string;
|
|
35
|
+
Event?: string;
|
|
36
|
+
ElapsedTimeInMilliseconds?: number;
|
|
37
|
+
ErrorCode?: string;
|
|
38
|
+
ExceptionDetails?: object;
|
|
39
|
+
ShouldBubbleToHost?: boolean;
|
|
40
|
+
Description?: string;
|
|
41
|
+
}
|
|
42
|
+
export interface WebChatTelemetryData {
|
|
43
|
+
data?: any;
|
|
44
|
+
dimensions?: any;
|
|
45
|
+
duration?: number;
|
|
46
|
+
error?: any;
|
|
47
|
+
fatal?: boolean;
|
|
48
|
+
level?: string;
|
|
49
|
+
Event?: string;
|
|
50
|
+
name?: string;
|
|
51
|
+
type?: string;
|
|
52
|
+
}
|
|
53
|
+
export interface ACSAdapterTelemetryData {
|
|
54
|
+
Description?: string;
|
|
55
|
+
ACSUserId?: string;
|
|
56
|
+
ChatThreadId?: string;
|
|
57
|
+
ChatMessageId?: string;
|
|
58
|
+
TimeStamp?: string;
|
|
59
|
+
Event?: string;
|
|
60
|
+
ErrorCode?: string;
|
|
61
|
+
ExceptionDetails?: any;
|
|
62
|
+
}
|
|
63
|
+
export interface ActionTelemetryData {
|
|
64
|
+
Event?: string;
|
|
65
|
+
ElapsedTimeInMilliseconds?: number;
|
|
66
|
+
ActionType?: string;
|
|
67
|
+
ExceptionDetails?: object;
|
|
68
|
+
Description?: string;
|
|
69
|
+
}
|
|
70
|
+
export interface CallingTelemetryData {
|
|
71
|
+
CallId?: string;
|
|
72
|
+
Event?: string;
|
|
73
|
+
ElapsedTimeInMilliseconds?: number;
|
|
74
|
+
ExceptionDetails?: object;
|
|
75
|
+
Description?: string;
|
|
76
|
+
}
|
|
77
|
+
export declare type TelemetryData = ConfigValidationTelemetryData | OCChatSDKTelemetryData | IC3ClientTelemetryData | LoadTelemetryData | ActionTelemetryData | WebChatTelemetryData | CallingTelemetryData | MessageProcessingErrorData;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface IAriaConfigurations {
|
|
2
|
+
/**
|
|
3
|
+
* Collection uri key for telemetry. Indicates which endpoint to use to post telemetry data
|
|
4
|
+
*/
|
|
5
|
+
collectorUriForTelemetry?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Telemetry key to use for logging
|
|
8
|
+
*/
|
|
9
|
+
ariaTelemetryKey?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Telemetry application name
|
|
12
|
+
*/
|
|
13
|
+
ariaTelemetryApplicationName?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Disable cookie usage
|
|
16
|
+
*/
|
|
17
|
+
disableCookieUsage?: boolean;
|
|
18
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { IAriaConfigurations } from "./IAriaConfigurations";
|
|
2
|
+
import { ITelemetryConfig } from "./ITelemetryConfig";
|
|
3
|
+
export interface IInternalTelemetryData {
|
|
4
|
+
telemetryConfig?: ITelemetryConfig;
|
|
5
|
+
ariaConfig?: IAriaConfigurations;
|
|
6
|
+
widgetId?: string;
|
|
7
|
+
chatId?: string;
|
|
8
|
+
conversationId?: string;
|
|
9
|
+
currentRequestId?: string;
|
|
10
|
+
OCChatSDKVersion?: string;
|
|
11
|
+
IC3ClientVersion?: string;
|
|
12
|
+
hostName?: string;
|
|
13
|
+
environmentVersion?: string;
|
|
14
|
+
chatWidgetLocaleLCID?: string;
|
|
15
|
+
orgId?: string;
|
|
16
|
+
orgUrl?: string;
|
|
17
|
+
lcwRuntimeId?: string;
|
|
18
|
+
channelId?: string;
|
|
19
|
+
}
|