@microsoft/omnichannel-chat-widget 1.7.8-main.270960e → 1.7.8-main.2bcb0b6
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/common/Constants.js +67 -20
- package/lib/cjs/common/KeyCodes.js +6 -1
- package/lib/cjs/common/contextDataStore/DataStoreManager.js +6 -1
- package/lib/cjs/common/facades/FacadeChatSDK.js +392 -295
- package/lib/cjs/common/storage/default/defaultCacheManager.js +6 -3
- package/lib/cjs/common/telemetry/AppInsightsEvents.js +31 -0
- package/lib/cjs/common/telemetry/ScenarioMarker.js +66 -0
- package/lib/cjs/common/telemetry/TelemetryConstants.js +158 -129
- package/lib/cjs/common/telemetry/TelemetryHelper.js +281 -250
- package/lib/cjs/common/telemetry/TelemetryManager.js +32 -12
- package/lib/cjs/common/telemetry/defaultConfigs/defaultAppInsightsConfig.js +11 -0
- package/lib/cjs/common/telemetry/interfaces/IAppInsightsConfig.js +1 -0
- package/lib/cjs/common/telemetry/loggers/appInsightsLogger.js +149 -0
- package/lib/cjs/components/chatbuttonstateful/ChatButtonStateful.js +17 -14
- package/lib/cjs/components/emailtranscriptpanestateful/EmailTranscriptPaneStateful.js +3 -2
- package/lib/cjs/components/footerstateful/FooterStateful.js +11 -6
- package/lib/cjs/components/headerstateful/HeaderStateful.js +21 -11
- package/lib/cjs/components/livechatwidget/common/ActivityStreamHandler.js +32 -19
- package/lib/cjs/components/livechatwidget/common/ActivitySubscriber/BotAuthActivitySubscriber.js +70 -58
- package/lib/cjs/components/livechatwidget/common/ActivitySubscriber/DefaultActivitySubscriber.js +17 -8
- package/lib/cjs/components/livechatwidget/common/ActivitySubscriber/HiddenAdaptiveCardActivitySubscriber.js +65 -52
- package/lib/cjs/components/livechatwidget/common/ActivitySubscriber/PauseActivitySubscriber.js +31 -18
- package/lib/cjs/components/livechatwidget/common/ChatAdapterShim.js +14 -6
- package/lib/cjs/components/livechatwidget/common/Deferred.js +14 -6
- package/lib/cjs/components/livechatwidget/common/chatDisconnectHelper.js +3 -1
- package/lib/cjs/components/livechatwidget/common/endChat.js +4 -18
- package/lib/cjs/components/livechatwidget/common/reconnectChatHelper.js +0 -5
- package/lib/cjs/components/livechatwidget/common/registerTelemetryLoggers.js +3 -1
- package/lib/cjs/components/livechatwidget/common/renderSurveyHelpers.js +6 -3
- package/lib/cjs/components/livechatwidget/common/setPostChatContextAndLoadSurvey.js +7 -2
- package/lib/cjs/components/livechatwidget/common/startChat.js +8 -25
- package/lib/cjs/components/livechatwidget/common/startChatErrorHandler.js +5 -4
- package/lib/cjs/components/livechatwidget/livechatwidgetstateful/LiveChatWidgetStateful.js +14 -12
- package/lib/cjs/components/ooohpanestateful/OOOHPaneStateful.js +12 -8
- package/lib/cjs/components/postchatsurveypanestateful/PostChatSurveyPaneStateful.js +16 -10
- package/lib/cjs/components/prechatsurveypanestateful/PreChatSurveyPaneStateful.js +9 -6
- package/lib/cjs/components/proactivechatpanestateful/ProactiveChatPaneStateful.js +8 -6
- package/lib/cjs/components/webchatcontainerstateful/WebChatContainerStateful.js +11 -4
- package/lib/cjs/components/webchatcontainerstateful/common/DemoChatAdapter.js +88 -65
- package/lib/cjs/components/webchatcontainerstateful/common/DemoChatSDK.js +26 -7
- package/lib/cjs/components/webchatcontainerstateful/common/DesignerChatAdapter.js +49 -26
- package/lib/cjs/components/webchatcontainerstateful/common/DesignerChatSDK.js +57 -35
- package/lib/cjs/components/webchatcontainerstateful/common/mockadapter.js +62 -52
- package/lib/cjs/components/webchatcontainerstateful/common/mockchatsdk.js +95 -61
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/BotMagicCodeStore.js +6 -1
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/WebChatStoreLoader.js +6 -1
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/markdownrenderers/HyperlinkTextOverrideRenderer.js +53 -39
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/timestamps/DeliveredTimestamp.js +4 -0
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/notification/NotificationHandler.js +88 -60
- package/lib/cjs/contexts/common/LiveChatWidgetContextInitialState.js +18 -6
- package/lib/cjs/firstresponselatency/Constants.js +13 -0
- package/lib/cjs/firstresponselatency/FirstMessageTrackerFromBot.js +118 -0
- package/lib/cjs/firstresponselatency/FirstResponseLatencyTracker.js +201 -0
- package/lib/cjs/firstresponselatency/util.js +98 -0
- package/lib/cjs/plugins/createChatTranscript.js +88 -58
- package/lib/cjs/plugins/newMessageEventHandler.js +102 -88
- package/lib/esm/common/Constants.js +65 -19
- package/lib/esm/common/KeyCodes.js +6 -1
- package/lib/esm/common/contextDataStore/DataStoreManager.js +6 -1
- package/lib/esm/common/facades/FacadeChatSDK.js +392 -295
- package/lib/esm/common/storage/default/defaultCacheManager.js +6 -1
- package/lib/esm/common/telemetry/AppInsightsEvents.js +24 -0
- package/lib/esm/common/telemetry/ScenarioMarker.js +59 -0
- package/lib/esm/common/telemetry/TelemetryConstants.js +158 -129
- package/lib/esm/common/telemetry/TelemetryHelper.js +281 -250
- package/lib/esm/common/telemetry/TelemetryManager.js +32 -12
- package/lib/esm/common/telemetry/defaultConfigs/defaultAppInsightsConfig.js +4 -0
- package/lib/esm/common/telemetry/interfaces/IAppInsightsConfig.js +1 -0
- package/lib/esm/common/telemetry/loggers/appInsightsLogger.js +139 -0
- package/lib/esm/components/chatbuttonstateful/ChatButtonStateful.js +17 -14
- package/lib/esm/components/emailtranscriptpanestateful/EmailTranscriptPaneStateful.js +3 -2
- package/lib/esm/components/footerstateful/FooterStateful.js +11 -6
- package/lib/esm/components/headerstateful/HeaderStateful.js +21 -11
- package/lib/esm/components/livechatwidget/common/ActivityStreamHandler.js +32 -19
- package/lib/esm/components/livechatwidget/common/ActivitySubscriber/BotAuthActivitySubscriber.js +70 -58
- package/lib/esm/components/livechatwidget/common/ActivitySubscriber/DefaultActivitySubscriber.js +17 -8
- package/lib/esm/components/livechatwidget/common/ActivitySubscriber/HiddenAdaptiveCardActivitySubscriber.js +65 -52
- package/lib/esm/components/livechatwidget/common/ActivitySubscriber/PauseActivitySubscriber.js +31 -18
- package/lib/esm/components/livechatwidget/common/ChatAdapterShim.js +14 -6
- package/lib/esm/components/livechatwidget/common/Deferred.js +14 -6
- package/lib/esm/components/livechatwidget/common/chatDisconnectHelper.js +3 -1
- package/lib/esm/components/livechatwidget/common/endChat.js +4 -18
- package/lib/esm/components/livechatwidget/common/reconnectChatHelper.js +1 -6
- package/lib/esm/components/livechatwidget/common/registerTelemetryLoggers.js +3 -1
- package/lib/esm/components/livechatwidget/common/renderSurveyHelpers.js +6 -3
- package/lib/esm/components/livechatwidget/common/setPostChatContextAndLoadSurvey.js +7 -2
- package/lib/esm/components/livechatwidget/common/startChat.js +9 -26
- package/lib/esm/components/livechatwidget/common/startChatErrorHandler.js +5 -4
- package/lib/esm/components/livechatwidget/livechatwidgetstateful/LiveChatWidgetStateful.js +14 -12
- package/lib/esm/components/ooohpanestateful/OOOHPaneStateful.js +12 -8
- package/lib/esm/components/postchatsurveypanestateful/PostChatSurveyPaneStateful.js +16 -10
- package/lib/esm/components/prechatsurveypanestateful/PreChatSurveyPaneStateful.js +9 -6
- package/lib/esm/components/proactivechatpanestateful/ProactiveChatPaneStateful.js +8 -6
- package/lib/esm/components/webchatcontainerstateful/WebChatContainerStateful.js +11 -4
- package/lib/esm/components/webchatcontainerstateful/common/DemoChatAdapter.js +88 -65
- package/lib/esm/components/webchatcontainerstateful/common/DemoChatSDK.js +26 -7
- package/lib/esm/components/webchatcontainerstateful/common/DesignerChatAdapter.js +49 -26
- package/lib/esm/components/webchatcontainerstateful/common/DesignerChatSDK.js +57 -35
- package/lib/esm/components/webchatcontainerstateful/common/mockadapter.js +63 -52
- package/lib/esm/components/webchatcontainerstateful/common/mockchatsdk.js +95 -61
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/BotMagicCodeStore.js +6 -1
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/WebChatStoreLoader.js +6 -1
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/markdownrenderers/HyperlinkTextOverrideRenderer.js +53 -39
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/timestamps/DeliveredTimestamp.js +4 -0
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/notification/NotificationHandler.js +88 -60
- package/lib/esm/contexts/common/LiveChatWidgetContextInitialState.js +18 -6
- package/lib/esm/firstresponselatency/Constants.js +6 -0
- package/lib/esm/firstresponselatency/FirstMessageTrackerFromBot.js +112 -0
- package/lib/esm/firstresponselatency/FirstResponseLatencyTracker.js +194 -0
- package/lib/esm/firstresponselatency/util.js +87 -0
- package/lib/esm/plugins/createChatTranscript.js +88 -58
- package/lib/esm/plugins/newMessageEventHandler.js +100 -86
- package/lib/types/assets/Audios.d.ts +1 -1
- package/lib/types/assets/Icons.d.ts +16 -16
- package/lib/types/common/Constants.d.ts +283 -277
- package/lib/types/common/KeyCodes.d.ts +5 -5
- package/lib/types/common/contextDataStore/DataStoreManager.d.ts +4 -4
- package/lib/types/common/facades/FacadeChatSDK.d.ts +75 -74
- package/lib/types/common/facades/types/IFacadeChatSDKInput.d.ts +13 -13
- package/lib/types/common/interfaces/IContextDataStore.d.ts +14 -14
- package/lib/types/common/interfaces/ITimer.d.ts +3 -3
- package/lib/types/common/storage/default/defaultCacheManager.d.ts +5 -5
- package/lib/types/common/storage/default/defaultClientDataStoreProvider.d.ts +4 -4
- package/lib/types/common/storage/default/defaultInMemoryDataStore.d.ts +6 -6
- package/lib/types/common/telemetry/AppInsightsEvents.d.ts +1 -0
- package/lib/types/common/telemetry/ScenarioMarker.d.ts +19 -0
- package/lib/types/common/telemetry/TelemetryConstants.d.ts +272 -257
- package/lib/types/common/telemetry/TelemetryHelper.d.ts +48 -43
- package/lib/types/common/telemetry/TelemetryManager.d.ts +12 -12
- package/lib/types/common/telemetry/defaultConfigs/defaultAppInsightsConfig.d.ts +2 -0
- package/lib/types/common/telemetry/defaultConfigs/defaultAriaConfig.d.ts +2 -2
- package/lib/types/common/telemetry/defaultConfigs/defaultTelemetryConfiguration.d.ts +2 -2
- package/lib/types/common/telemetry/defaultConfigs/defaultTelemetryInternalData.d.ts +2 -2
- package/lib/types/common/telemetry/definitions/Contracts.d.ts +77 -77
- package/lib/types/common/telemetry/definitions/Payload.d.ts +105 -105
- package/lib/types/common/telemetry/interfaces/IAppInsightsConfig.d.ts +4 -0
- package/lib/types/common/telemetry/interfaces/IAriaConfigurations.d.ts +18 -18
- package/lib/types/common/telemetry/interfaces/IChatSDKLogger.d.ts +6 -5
- package/lib/types/common/telemetry/interfaces/IInternalTelemetryData.d.ts +23 -21
- package/lib/types/common/telemetry/interfaces/ITelemetryConfig.d.ts +48 -48
- package/lib/types/common/telemetry/interfaces/ITelemetryEvents.d.ts +7 -7
- package/lib/types/common/telemetry/loggers/appInsightsLogger.d.ts +10 -0
- package/lib/types/common/telemetry/loggers/ariaTelemetryLogger.d.ts +2 -2
- package/lib/types/common/telemetry/loggers/consoleLogger.d.ts +2 -2
- package/lib/types/common/utils.d.ts +49 -49
- package/lib/types/components/callingcontainerstateful/CallingContainerStateful.d.ts +4 -3
- package/lib/types/components/callingcontainerstateful/ICallingContainerStatefulProps.d.ts +4 -4
- package/lib/types/components/chatbuttonstateful/ChatButtonStateful.d.ts +4 -3
- package/lib/types/components/chatbuttonstateful/common/styleProps/defaultOutOfOfficeChatButtonStyleProps.d.ts +2 -2
- package/lib/types/components/chatbuttonstateful/interfaces/IChatButtonStatefulParams.d.ts +17 -17
- package/lib/types/components/confirmationpanestateful/ConfirmationPaneStateful.d.ts +4 -3
- package/lib/types/components/confirmationpanestateful/common/defaultProps/defaultConfirmationPaneLocalizedTexts.d.ts +2 -2
- package/lib/types/components/confirmationpanestateful/interfaces/IConfirmationPaneInputs.d.ts +4 -4
- package/lib/types/components/confirmationpanestateful/interfaces/IConfirmationPaneLocalizedText.d.ts +10 -10
- package/lib/types/components/confirmationpanestateful/interfaces/IConfirmationPaneStatefulParams.d.ts +13 -13
- package/lib/types/components/confirmationpanestateful/interfaces/IConfirmationPaneStatefulProps.d.ts +8 -8
- package/lib/types/components/dimlayer/DimLayer.d.ts +6 -5
- package/lib/types/components/draggable/DraggableChatWidget.d.ts +9 -9
- package/lib/types/components/draggable/DraggableEventEmitter.d.ts +27 -27
- package/lib/types/components/draggable/DraggableEventNames.d.ts +6 -6
- package/lib/types/components/draggable/DraggableEventReceiver.d.ts +27 -27
- package/lib/types/components/draggable/IDraggableElementPosition.d.ts +5 -5
- package/lib/types/components/draggable/IDraggableElementPositionDelta.d.ts +5 -5
- package/lib/types/components/draggable/IDraggableEvent.d.ts +12 -12
- package/lib/types/components/emailtranscriptpanestateful/EmailTranscriptPaneStateful.d.ts +4 -3
- package/lib/types/components/emailtranscriptpanestateful/interfaces/IChatTranscriptBody.d.ts +5 -5
- package/lib/types/components/emailtranscriptpanestateful/interfaces/IEmailTranscriptPaneProps.d.ts +11 -11
- package/lib/types/components/footerstateful/FooterStateful.d.ts +3 -2
- package/lib/types/components/footerstateful/audionotificationstateful/AudioNotificationStateful.d.ts +4 -3
- package/lib/types/components/footerstateful/audionotificationstateful/interfaces/IAudioNotificationProps.d.ts +3 -3
- package/lib/types/components/footerstateful/audionotificationstateful/interfaces/IAudioNotificationStatefulParams.d.ts +4 -4
- package/lib/types/components/footerstateful/downloadtranscriptstateful/DownloadTranscriptStateful.d.ts +4 -4
- package/lib/types/components/footerstateful/downloadtranscriptstateful/common/defaultLibraryScripts.d.ts +23 -23
- package/lib/types/components/footerstateful/downloadtranscriptstateful/interfaces/IDownloadTranscriptProps.d.ts +19 -19
- package/lib/types/components/footerstateful/downloadtranscriptstateful/interfaces/IWebChatTranscriptConfig.d.ts +14 -14
- package/lib/types/components/footerstateful/downloadtranscriptstateful/interfaces/TranscriptHtmlScripts.d.ts +33 -33
- package/lib/types/components/headerstateful/HeaderStateful.d.ts +4 -3
- package/lib/types/components/headerstateful/common/styleProps/defaultOutOfOfficeHeaderStyleProps.d.ts +2 -2
- package/lib/types/components/headerstateful/interfaces/IHeaderStatefulParams.d.ts +33 -33
- package/lib/types/components/livechatwidget/LiveChatWidget.d.ts +4 -3
- package/lib/types/components/livechatwidget/common/ActivityStreamHandler.d.ts +14 -14
- package/lib/types/components/livechatwidget/common/ActivitySubscriber/BotAuthActivitySubscriber.d.ts +12 -12
- package/lib/types/components/livechatwidget/common/ActivitySubscriber/DefaultActivitySubscriber.d.ts +5 -5
- package/lib/types/components/livechatwidget/common/ActivitySubscriber/HiddenAdaptiveCardActivitySubscriber.d.ts +7 -7
- package/lib/types/components/livechatwidget/common/ActivitySubscriber/IActivitySubscriber.d.ts +6 -6
- package/lib/types/components/livechatwidget/common/ActivitySubscriber/PauseActivitySubscriber.d.ts +7 -7
- package/lib/types/components/livechatwidget/common/ChatAdapterShim.d.ts +7 -7
- package/lib/types/components/livechatwidget/common/Deferred.d.ts +9 -9
- package/lib/types/components/livechatwidget/common/authHelper.d.ts +18 -18
- package/lib/types/components/livechatwidget/common/chatDisconnectHelper.d.ts +4 -4
- package/lib/types/components/livechatwidget/common/createAdapter.d.ts +3 -3
- package/lib/types/components/livechatwidget/common/createDownloadTranscriptProps.d.ts +25 -25
- package/lib/types/components/livechatwidget/common/createFooter.d.ts +4 -3
- package/lib/types/components/livechatwidget/common/createInternetConnectionChangeHandler.d.ts +2 -2
- package/lib/types/components/livechatwidget/common/createMarkdown.d.ts +2 -2
- package/lib/types/components/livechatwidget/common/defaultProps/defaultScrollBarProps.d.ts +2 -2
- package/lib/types/components/livechatwidget/common/defaultStyles/defaultLiveChatWidgetGeneralStyles.d.ts +2 -2
- package/lib/types/components/livechatwidget/common/disposeTelemetryLoggers.d.ts +1 -1
- package/lib/types/components/livechatwidget/common/endChat.d.ts +13 -13
- package/lib/types/components/livechatwidget/common/getGeneralStylesForButton.d.ts +3 -3
- package/lib/types/components/livechatwidget/common/getMockChatSDKIfApplicable.d.ts +1 -1
- package/lib/types/components/livechatwidget/common/helpers/markdownHelper.d.ts +2 -2
- package/lib/types/components/livechatwidget/common/initCallingSdk.d.ts +2 -2
- package/lib/types/components/livechatwidget/common/initConfirmationPropsComposer.d.ts +3 -3
- package/lib/types/components/livechatwidget/common/initWebChatComposer.d.ts +7 -7
- package/lib/types/components/livechatwidget/common/liveChatConfigUtils.d.ts +3 -3
- package/lib/types/components/livechatwidget/common/overridePropsOnMockIfApplicable.d.ts +3 -3
- package/lib/types/components/livechatwidget/common/persistentChatHelper.d.ts +1 -1
- package/lib/types/components/livechatwidget/common/reconnectChatHelper.d.ts +12 -12
- package/lib/types/components/livechatwidget/common/registerTelemetryLoggers.d.ts +4 -4
- package/lib/types/components/livechatwidget/common/renderSurveyHelpers.d.ts +10 -10
- package/lib/types/components/livechatwidget/common/setPostChatContextAndLoadSurvey.d.ts +4 -4
- package/lib/types/components/livechatwidget/common/shareObservable.d.ts +1 -1
- package/lib/types/components/livechatwidget/common/startChat.d.ts +11 -11
- package/lib/types/components/livechatwidget/common/startChatErrorHandler.d.ts +6 -6
- package/lib/types/components/livechatwidget/common/startProactiveChat.d.ts +4 -4
- package/lib/types/components/livechatwidget/common/updateSessionDataForTelemetry.d.ts +4 -4
- package/lib/types/components/livechatwidget/interfaces/IBotAuthActivitySubscriberOptionalParams.d.ts +4 -4
- package/lib/types/components/livechatwidget/interfaces/IDraggableChatWidgetProps.d.ts +10 -10
- package/lib/types/components/livechatwidget/interfaces/IFeatureConfigProps.d.ts +3 -3
- package/lib/types/components/livechatwidget/interfaces/ILiveChatWidgetComponentOverrides.d.ts +17 -17
- package/lib/types/components/livechatwidget/interfaces/ILiveChatWidgetControlProps.d.ts +21 -21
- package/lib/types/components/livechatwidget/interfaces/ILiveChatWidgetProps.d.ts +70 -68
- package/lib/types/components/livechatwidget/interfaces/ILiveChatWidgetStyleProps.d.ts +5 -5
- package/lib/types/components/livechatwidget/interfaces/IMockProps.d.ts +8 -8
- package/lib/types/components/livechatwidget/interfaces/IScrollBarProps.d.ts +22 -22
- package/lib/types/components/livechatwidget/interfaces/ISendBox.d.ts +12 -12
- package/lib/types/components/livechatwidget/livechatwidgetstateful/LiveChatWidgetStateful.d.ts +3 -3
- package/lib/types/components/loadingpanestateful/LoadingPaneStateful.d.ts +3 -2
- package/lib/types/components/loadingpanestateful/common/defaultStyleProps/defaultgeneralLoadingPaneStyleProps.d.ts +2 -2
- package/lib/types/components/loadingpanestateful/common/errorUIStyleProps/errorUILoadingPaneStyleProps.d.ts +2 -2
- package/lib/types/components/notificationpanestateful/NotificationPaneStateful.d.ts +4 -3
- package/lib/types/components/notificationpanestateful/defaultProps/defaultChatDisconnectControlProps.d.ts +2 -2
- package/lib/types/components/notificationpanestateful/defaultProps/defaultChatDisconnectStyleProps.d.ts +2 -2
- package/lib/types/components/notificationpanestateful/interfaces/INotificationPaneStatefulProps.d.ts +13 -13
- package/lib/types/components/ooohpanestateful/OOOHPaneStateful.d.ts +4 -3
- package/lib/types/components/ooohpanestateful/common/defaultStyleProps/defaultgeneralOOOHPaneStyleProps.d.ts +2 -2
- package/lib/types/components/postchatloadingpanestateful/PostChatLoadingPaneStateful.d.ts +4 -3
- package/lib/types/components/postchatloadingpanestateful/common/defaultgeneralPostChatLoadingPaneStyleProps.d.ts +2 -2
- package/lib/types/components/postchatsurveypanestateful/PostChatSurveyPaneStateful.d.ts +4 -3
- package/lib/types/components/postchatsurveypanestateful/common/defaultStyleProps/defaultgeneralPostChatSurveyPaneStyleProps.d.ts +2 -2
- package/lib/types/components/postchatsurveypanestateful/common/isValidSurveyUrl.d.ts +2 -2
- package/lib/types/components/postchatsurveypanestateful/enums/CustomerVoiceEvents.d.ts +5 -5
- package/lib/types/components/postchatsurveypanestateful/enums/PostChatSurveyMode.d.ts +4 -4
- package/lib/types/components/postchatsurveypanestateful/interfaces/IPostChatSurveyPaneStatefulProps.d.ts +5 -5
- package/lib/types/components/prechatsurveypanestateful/PreChatSurveyPaneStateful.d.ts +4 -3
- package/lib/types/components/prechatsurveypanestateful/common/defaultProps/defaultPreChatSurveyLocalizedTexts.d.ts +2 -2
- package/lib/types/components/prechatsurveypanestateful/common/defaultStyles/defaultGeneralPreChatSurveyPaneStyleProps.d.ts +2 -2
- package/lib/types/components/prechatsurveypanestateful/interfaces/IPreChatSurveyPaneStatefulParams.d.ts +5 -5
- package/lib/types/components/proactivechatpanestateful/ProactiveChatPaneStateful.d.ts +3 -2
- package/lib/types/components/proactivechatpanestateful/interfaces/IProactiveChatNotificationConfig.d.ts +3 -3
- package/lib/types/components/proactivechatpanestateful/interfaces/IProactiveChatPaneStatefulProps.d.ts +4 -4
- package/lib/types/components/reconnectchatpanestateful/ReconnectChatPaneStateful.d.ts +4 -3
- package/lib/types/components/reconnectchatpanestateful/interfaces/IReconnectChatContext.d.ts +4 -4
- package/lib/types/components/reconnectchatpanestateful/interfaces/IReconnectChatOptionalParams.d.ts +3 -3
- package/lib/types/components/reconnectchatpanestateful/interfaces/IReconnectChatPaneStatefulParams.d.ts +5 -5
- package/lib/types/components/reconnectchatpanestateful/interfaces/IReconnectChatPaneStatefulProps.d.ts +5 -5
- package/lib/types/components/startchaterrorpanestateful/StartChatErrorPaneStateful.d.ts +4 -3
- package/lib/types/components/startchaterrorpanestateful/common/defaultStartChatErrorPaneGeneralStyleProps.d.ts +2 -2
- package/lib/types/components/startchaterrorpanestateful/common/defaultStartChatErrorPaneIconImageProps.d.ts +2 -2
- package/lib/types/components/startchaterrorpanestateful/common/defaultStartChatErrorPaneIconStyleProps.d.ts +2 -2
- package/lib/types/components/startchaterrorpanestateful/common/defaultStartChatErrorPaneSubtitleStyleProps.d.ts +2 -2
- package/lib/types/components/startchaterrorpanestateful/common/defaultStartChatErrorPaneTitleStyleProps.d.ts +2 -2
- package/lib/types/components/startchaterrorpanestateful/interfaces/IStartChatErrorPaneClassNames.d.ts +5 -5
- package/lib/types/components/startchaterrorpanestateful/interfaces/IStartChatErrorPaneComponentOverrides.d.ts +6 -6
- package/lib/types/components/startchaterrorpanestateful/interfaces/IStartChatErrorPaneControlProps.d.ts +14 -14
- package/lib/types/components/startchaterrorpanestateful/interfaces/IStartChatErrorPaneProps.d.ts +8 -8
- package/lib/types/components/startchaterrorpanestateful/interfaces/IStartChatErrorPaneStyleProps.d.ts +10 -10
- package/lib/types/components/webchatcontainerstateful/WebChatContainerStateful.d.ts +4 -3
- package/lib/types/components/webchatcontainerstateful/common/DemoChatAdapter.d.ts +10 -10
- package/lib/types/components/webchatcontainerstateful/common/DemoChatSDK.d.ts +6 -6
- package/lib/types/components/webchatcontainerstateful/common/DesignerChatAdapter.d.ts +8 -8
- package/lib/types/components/webchatcontainerstateful/common/DesignerChatSDK.d.ts +31 -31
- package/lib/types/components/webchatcontainerstateful/common/MockBotCardCommandType.d.ts +6 -6
- package/lib/types/components/webchatcontainerstateful/common/MockBotCommand.d.ts +11 -11
- package/lib/types/components/webchatcontainerstateful/common/defaultProps/defaultAttachmentProps.d.ts +2 -2
- package/lib/types/components/webchatcontainerstateful/common/defaultProps/defaultMarkdownLocalizedTexts.d.ts +2 -2
- package/lib/types/components/webchatcontainerstateful/common/defaultProps/defaultMiddlewareLocalizedTexts.d.ts +2 -2
- package/lib/types/components/webchatcontainerstateful/common/defaultProps/defaultWebChatContainerStatefulProps.d.ts +2 -2
- package/lib/types/components/webchatcontainerstateful/common/defaultProps/defaultWebChatStatefulProps.d.ts +2 -2
- package/lib/types/components/webchatcontainerstateful/common/defaultStyles/defaultAdaptiveCardStyles.d.ts +2 -2
- package/lib/types/components/webchatcontainerstateful/common/defaultStyles/defaultWebChatStatefulContainerStyles.d.ts +2 -2
- package/lib/types/components/webchatcontainerstateful/common/defaultStyles/defaultWebChatStyles.d.ts +2 -2
- package/lib/types/components/webchatcontainerstateful/common/mockadapter.d.ts +14 -14
- package/lib/types/components/webchatcontainerstateful/common/mockchatsdk.d.ts +45 -45
- package/lib/types/components/webchatcontainerstateful/common/utils/BrowserInfo.d.ts +5 -5
- package/lib/types/components/webchatcontainerstateful/common/utils/FileAttachmentIconManager.d.ts +7 -7
- package/lib/types/components/webchatcontainerstateful/common/utils/attachmentActivityUtils.d.ts +9 -9
- package/lib/types/components/webchatcontainerstateful/common/utils/chatAdapterUtils.d.ts +9 -9
- package/lib/types/components/webchatcontainerstateful/common/utils/isMaskingFromCustomer.d.ts +2 -2
- package/lib/types/components/webchatcontainerstateful/interfaces/IAdaptiveCardStyles.d.ts +8 -8
- package/lib/types/components/webchatcontainerstateful/interfaces/IAttachmentProps.d.ts +5 -5
- package/lib/types/components/webchatcontainerstateful/interfaces/IBotAuthConfig.d.ts +4 -4
- package/lib/types/components/webchatcontainerstateful/interfaces/IBotMagicCodeConfig.d.ts +4 -4
- package/lib/types/components/webchatcontainerstateful/interfaces/IDataMaskingInfo.d.ts +6 -6
- package/lib/types/components/webchatcontainerstateful/interfaces/IDataMaskingRule.d.ts +3 -3
- package/lib/types/components/webchatcontainerstateful/interfaces/IDataMaskingSetting.d.ts +4 -4
- package/lib/types/components/webchatcontainerstateful/interfaces/IRenderingMiddlewareProps.d.ts +37 -37
- package/lib/types/components/webchatcontainerstateful/interfaces/IWebChatAction.d.ts +4 -4
- package/lib/types/components/webchatcontainerstateful/interfaces/IWebChatContainerStatefulProps.d.ts +28 -28
- package/lib/types/components/webchatcontainerstateful/interfaces/IWebChatProps.d.ts +39 -39
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/BotMagicCodeStore.d.ts +3 -3
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/WebChatStoreLoader.d.ts +3 -3
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/enums/BrowserVendor.d.ts +9 -9
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/enums/DirectLineActivityType.d.ts +4 -4
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/enums/DirectLineSenderRole.d.ts +5 -5
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/enums/MessageType.d.ts +11 -11
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/enums/NotificationLevel.d.ts +6 -6
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/enums/NotificationScenarios.d.ts +11 -11
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/enums/SendStatus.d.ts +5 -5
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/enums/WebChatActionType.d.ts +24 -24
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/markdownrenderers/HyperlinkTextOverrideRenderer.d.ts +9 -9
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/adaptermiddlewares/formatTagsEgressMiddleware.d.ts +2 -2
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/adaptermiddlewares/formatTagsIngressMiddleware.d.ts +2 -2
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/activityMiddleware.d.ts +10 -10
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/activityStatusMiddleware.d.ts +1 -1
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachmentMiddleware.d.ts +6 -6
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachments/Attachment.d.ts +3 -2
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachments/AttachmentContent.d.ts +3 -2
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachments/AttachmentIcon.d.ts +3 -2
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachments/DownloadBlockedAttachment.d.ts +3 -2
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachments/FileScanStatus.d.ts +6 -6
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachments/MaliciousAttachment.d.ts +3 -2
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachments/ScanInProgressAttachment.d.ts +3 -2
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachments/Spinner.d.ts +3 -2
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/avatarMiddleware.d.ts +8 -8
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/cardActionMiddleware.d.ts +2 -2
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAttachmentContentStyles.d.ts +1 -2
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAttachmentDividerStyles.d.ts +1 -2
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAttachmentDownloadIconStyles.d.ts +1 -2
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAttachmentFileNameStyles.d.ts +1 -2
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAttachmentSizeStyles.d.ts +1 -2
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAtttachmentAdaptiveCardStyles.d.ts +1 -2
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAtttachmentIconStyles.d.ts +1 -2
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAtttachmentStyles.d.ts +1 -2
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAvatarStyles.d.ts +1 -2
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAvatarTextStyles.d.ts +1 -2
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultReceivedMessageAnchorStyles.d.ts +1 -2
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultSentMessageAnchorStyles.d.ts +1 -2
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultSystemMessageBoxStyles.d.ts +3 -3
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultSystemMessageStyles.d.ts +11 -11
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTimestampContentStyles.d.ts +2 -2
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTimestampFailedStyles.d.ts +1 -2
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTimestampRetryStyles.d.ts +1 -2
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTypingIndicatorBubbleStyles.d.ts +1 -2
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTypingIndicatorContainerStyles.d.ts +1 -2
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTypingIndicatorMessageStyles.d.ts +1 -2
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultUserMessageBoxStyles.d.ts +3 -3
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultUserMessageStyles.d.ts +3 -3
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/groupActivitiesMiddleware.d.ts +10 -10
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/index.d.ts +10 -10
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/messageSequenceIdOverrideMiddleware.d.ts +4 -4
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/messageTimestampMiddleware.d.ts +4 -4
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/timestamps/DeliveredTimestamp.d.ts +2 -1
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/timestamps/NotDeliveredTimestamp.d.ts +2 -1
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/timestamps/SendingTimestamp.d.ts +2 -1
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/toastMiddleware.d.ts +2 -2
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/typingIndicatorMiddleware.d.ts +7 -6
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/attachmentProcessingMiddleware.d.ts +10 -10
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/attachmentUploadValidatorMiddleware.d.ts +11 -11
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/channelDataMiddleware.d.ts +10 -10
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/conversationEndMiddleware.d.ts +11 -11
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/dataMaskingMiddleware.d.ts +11 -11
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/gifUploadMiddleware.d.ts +10 -10
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/htmlPlayerMiddleware.d.ts +10 -10
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/htmlTextMiddleware.d.ts +10 -10
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/maxMessageSizeValidator.d.ts +11 -11
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/preProcessingMiddleware.d.ts +10 -10
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/sanitizationMiddleware.d.ts +10 -10
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/notification/NotificationHandler.d.ts +12 -12
- package/lib/types/components/webchatcontainerstateful/webchatcontroller/webchattelemetry/WebChatLogger.d.ts +1 -1
- package/lib/types/contexts/ChatAdapterStore.d.ts +1 -2
- package/lib/types/contexts/ChatContextStore.d.ts +1 -1
- package/lib/types/contexts/ChatSDKStore.d.ts +1 -1
- package/lib/types/contexts/FacadeChatSDKStore.d.ts +1 -1
- package/lib/types/contexts/common/ConversationState.d.ts +13 -13
- package/lib/types/contexts/common/ILiveChatWidgetAction.d.ts +5 -5
- package/lib/types/contexts/common/ILiveChatWidgetContext.d.ts +63 -63
- package/lib/types/contexts/common/ILiveChatWidgetLocalizedTexts.d.ts +40 -40
- package/lib/types/contexts/common/LiveChatWidgetActionType.d.ts +48 -48
- package/lib/types/contexts/common/LiveChatWidgetContextInitialState.d.ts +3 -3
- package/lib/types/contexts/common/StartChatFailureType.d.ts +5 -5
- package/lib/types/contexts/createReducer.d.ts +4 -4
- package/lib/types/controller/componentController.d.ts +16 -16
- package/lib/types/firstresponselatency/Constants.d.ts +30 -0
- package/lib/types/firstresponselatency/FirstMessageTrackerFromBot.d.ts +1 -0
- package/lib/types/firstresponselatency/FirstResponseLatencyTracker.d.ts +22 -0
- package/lib/types/firstresponselatency/util.d.ts +7 -0
- package/lib/types/hooks/useChatAdapterStore.d.ts +2 -2
- package/lib/types/hooks/useChatContextStore.d.ts +5 -5
- package/lib/types/hooks/useChatSDKStore.d.ts +2 -2
- package/lib/types/hooks/useDebounce.d.ts +3 -3
- package/lib/types/hooks/useFacadeChatSDKStore.d.ts +3 -3
- package/lib/types/hooks/useWindowDimensions.d.ts +4 -4
- package/lib/types/index.d.ts +11 -11
- package/lib/types/plugins/createChatTranscript.d.ts +3 -3
- package/lib/types/plugins/newMessageEventHandler.d.ts +2 -2
- package/package.json +41 -16
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import { IAriaConfigurations } from "./IAriaConfigurations";
|
|
2
|
-
import { IChatSDKLogger } from "./IChatSDKLogger";
|
|
3
|
-
export interface ITelemetryConfig {
|
|
4
|
-
/**
|
|
5
|
-
* Widget app id
|
|
6
|
-
*/
|
|
7
|
-
appId?: string;
|
|
8
|
-
/**
|
|
9
|
-
* Widget org id
|
|
10
|
-
*/
|
|
11
|
-
orgId?: string;
|
|
12
|
-
/**
|
|
13
|
-
* Widget org url
|
|
14
|
-
*/
|
|
15
|
-
orgUrl?: string;
|
|
16
|
-
/**
|
|
17
|
-
* Telemetry disabled
|
|
18
|
-
*/
|
|
19
|
-
telemetryDisabled?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Disable console logs
|
|
22
|
-
*/
|
|
23
|
-
disableConsoleLog?: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* Aria configurations
|
|
26
|
-
*/
|
|
27
|
-
ariaConfigurations?: IAriaConfigurations;
|
|
28
|
-
/**
|
|
29
|
-
* custom loggers list
|
|
30
|
-
*/
|
|
31
|
-
telemetryLoggers?: IChatSDKLogger[];
|
|
32
|
-
/**
|
|
33
|
-
* Omnichannel chat widget version
|
|
34
|
-
*/
|
|
35
|
-
chatWidgetVersion: string;
|
|
36
|
-
/**
|
|
37
|
-
* Omnichannel chat components version
|
|
38
|
-
*/
|
|
39
|
-
chatComponentVersion: string;
|
|
40
|
-
/**
|
|
41
|
-
* Omnichannel Chat SDK Version
|
|
42
|
-
*/
|
|
43
|
-
OCChatSDKVersion: string;
|
|
44
|
-
/**
|
|
45
|
-
* LCW Runtime Id
|
|
46
|
-
*/
|
|
47
|
-
LCWRuntimeId?: string;
|
|
48
|
-
}
|
|
1
|
+
import { IAriaConfigurations } from "./IAriaConfigurations";
|
|
2
|
+
import { IChatSDKLogger } from "./IChatSDKLogger";
|
|
3
|
+
export interface ITelemetryConfig {
|
|
4
|
+
/**
|
|
5
|
+
* Widget app id
|
|
6
|
+
*/
|
|
7
|
+
appId?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Widget org id
|
|
10
|
+
*/
|
|
11
|
+
orgId?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Widget org url
|
|
14
|
+
*/
|
|
15
|
+
orgUrl?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Telemetry disabled
|
|
18
|
+
*/
|
|
19
|
+
telemetryDisabled?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Disable console logs
|
|
22
|
+
*/
|
|
23
|
+
disableConsoleLog?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Aria configurations
|
|
26
|
+
*/
|
|
27
|
+
ariaConfigurations?: IAriaConfigurations;
|
|
28
|
+
/**
|
|
29
|
+
* custom loggers list
|
|
30
|
+
*/
|
|
31
|
+
telemetryLoggers?: IChatSDKLogger[];
|
|
32
|
+
/**
|
|
33
|
+
* Omnichannel chat widget version
|
|
34
|
+
*/
|
|
35
|
+
chatWidgetVersion: string;
|
|
36
|
+
/**
|
|
37
|
+
* Omnichannel chat components version
|
|
38
|
+
*/
|
|
39
|
+
chatComponentVersion: string;
|
|
40
|
+
/**
|
|
41
|
+
* Omnichannel Chat SDK Version
|
|
42
|
+
*/
|
|
43
|
+
OCChatSDKVersion: string;
|
|
44
|
+
/**
|
|
45
|
+
* LCW Runtime Id
|
|
46
|
+
*/
|
|
47
|
+
LCWRuntimeId?: string;
|
|
48
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ICustomEvent } from "@microsoft/omnichannel-chat-components/lib/types/interfaces/ICustomEvent";
|
|
2
|
-
import { LogLevel } from "../TelemetryConstants";
|
|
3
|
-
import { TelemetryData } from "../definitions/Payload";
|
|
4
|
-
export interface ITelemetryEvent extends ICustomEvent {
|
|
5
|
-
logLevel: LogLevel;
|
|
6
|
-
payload?: TelemetryData | any;
|
|
7
|
-
}
|
|
1
|
+
import { ICustomEvent } from "@microsoft/omnichannel-chat-components/lib/types/interfaces/ICustomEvent";
|
|
2
|
+
import { LogLevel } from "../TelemetryConstants";
|
|
3
|
+
import { TelemetryData } from "../definitions/Payload";
|
|
4
|
+
export interface ITelemetryEvent extends ICustomEvent {
|
|
5
|
+
logLevel: LogLevel;
|
|
6
|
+
payload?: TelemetryData | any;
|
|
7
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IChatSDKLogger } from "../interfaces/IChatSDKLogger";
|
|
2
|
+
declare global {
|
|
3
|
+
interface Window {
|
|
4
|
+
appInsights?: any;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
export declare const appInsightsLogger: (appInsightsKey: string, disableCookiesUsage: boolean) => IChatSDKLogger;
|
|
8
|
+
export interface ICustomProperties {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IChatSDKLogger } from "../interfaces/IChatSDKLogger";
|
|
2
|
-
export declare const ariaTelemetryLogger: (ariaTelemetryKey: string, disabledCookieUsage: boolean, collectiorUriForTelemetry: string, ariaTelemetryApplicationName: string) => IChatSDKLogger;
|
|
1
|
+
import { IChatSDKLogger } from "../interfaces/IChatSDKLogger";
|
|
2
|
+
export declare const ariaTelemetryLogger: (ariaTelemetryKey: string, disabledCookieUsage: boolean, collectiorUriForTelemetry: string, ariaTelemetryApplicationName: string) => IChatSDKLogger;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IChatSDKLogger } from "../interfaces/IChatSDKLogger";
|
|
2
|
-
export declare const consoleLogger: () => IChatSDKLogger;
|
|
1
|
+
import { IChatSDKLogger } from "../interfaces/IChatSDKLogger";
|
|
2
|
+
export declare const consoleLogger: () => IChatSDKLogger;
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import { FacadeChatSDK } from "./facades/FacadeChatSDK";
|
|
2
|
-
import { ITimer } from "./interfaces/ITimer";
|
|
3
|
-
export declare const setTabIndices: (elements: HTMLElement[] | null, tabIndexMap: Map<string, number>, shouldBeFocusable: boolean) => void;
|
|
4
|
-
export declare const findParentFocusableElementsWithoutChildContainer: (elementId: string) => HTMLElement[] | null;
|
|
5
|
-
export declare const findAllFocusableElement: (parent: string | HTMLElement) => any[] | null;
|
|
6
|
-
export declare const preventFocusToMoveOutOfElement: (elementId: string) => void;
|
|
7
|
-
export declare const setFocusOnSendBox: () => void;
|
|
8
|
-
export declare const setFocusOnElement: (selector: string | HTMLElement) => void;
|
|
9
|
-
export declare const escapeHtml: (inputString: string) => string;
|
|
10
|
-
export declare const getIconText: (text: string) => string;
|
|
11
|
-
export declare const getLocaleDirection: (localeLCID: string) => string;
|
|
12
|
-
export declare const changeLanguageCodeFormatForWebChat: (languageCode: string) => string;
|
|
13
|
-
export declare const getTimestampHourMinute: (timestampStr: string) => string;
|
|
14
|
-
export declare const parseAdaptiveCardPayload: (payload: string, requiredFieldMissingMessage: string) => string;
|
|
15
|
-
export declare const extractPreChatSurveyResponseValues: (preChatSurvey: string, values: {
|
|
16
|
-
index: number;
|
|
17
|
-
label: any;
|
|
18
|
-
id: any;
|
|
19
|
-
value: string;
|
|
20
|
-
}[]) => {};
|
|
21
|
-
export declare const isNullOrUndefined: (obj: any) => boolean;
|
|
22
|
-
export declare const isNullOrEmptyString: (s: string | null) => boolean;
|
|
23
|
-
export declare const newGuid: () => string;
|
|
24
|
-
export declare const createTimer: () => ITimer;
|
|
25
|
-
export declare const getDomain: (hostValue: any) => string;
|
|
26
|
-
export declare const getWidgetCacheId: (orgId: string, widgetId: string, widgetInstanceId: string, popoutChat?: boolean) => string;
|
|
27
|
-
export declare const getWidgetEndChatEventName: (orgId: string, widgetId: string, widgetInstanceId: string) => string;
|
|
28
|
-
export declare const getStateFromCache: (widgetCacheId: string) => any;
|
|
29
|
-
export declare const isUndefinedOrEmpty: (object: any) => boolean;
|
|
30
|
-
export declare const addDelayInMs: (ms: number) => Promise<void>;
|
|
31
|
-
export declare const getBroadcastChannelName: (widgetId: string, widgetInstanceId: string) => string;
|
|
32
|
-
export declare const getWidgetCacheIdfromProps: (props: any, popoutChat?: boolean) => string;
|
|
33
|
-
export declare const debounceLeading: (fn: any, ms?: number) => (...args: any[]) => void;
|
|
34
|
-
export declare const isThisSessionPopout: (href: string) => boolean;
|
|
35
|
-
export declare const getConversationDetailsCall: (facadeChatSDK: FacadeChatSDK, liveChatContext?: any) => Promise<any>;
|
|
36
|
-
export declare const checkContactIdError: (e: any) => void;
|
|
37
|
-
export declare const createFileAndDownload: (fileName: string, blobData: string, mimeType: string) => void;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* Replace placeholders with format {0}..{n} , in a string with values
|
|
41
|
-
*
|
|
42
|
-
* @param template String with placeholders to be replaced
|
|
43
|
-
* @param values array of values to replace the placeholders
|
|
44
|
-
* @returns formatted string with replaced values
|
|
45
|
-
*/
|
|
46
|
-
export declare const formatTemplateString: (templateMessage: string, values: any) => string;
|
|
47
|
-
export declare const parseLowerCaseString: (property: string | boolean | undefined) => string;
|
|
48
|
-
export declare const setOcUserAgent: (chatSDK: any) => void;
|
|
49
|
-
export declare function getDeviceType(): string;
|
|
1
|
+
import { FacadeChatSDK } from "./facades/FacadeChatSDK";
|
|
2
|
+
import { ITimer } from "./interfaces/ITimer";
|
|
3
|
+
export declare const setTabIndices: (elements: HTMLElement[] | null, tabIndexMap: Map<string, number>, shouldBeFocusable: boolean) => void;
|
|
4
|
+
export declare const findParentFocusableElementsWithoutChildContainer: (elementId: string) => HTMLElement[] | null;
|
|
5
|
+
export declare const findAllFocusableElement: (parent: string | HTMLElement) => any[] | null;
|
|
6
|
+
export declare const preventFocusToMoveOutOfElement: (elementId: string) => void;
|
|
7
|
+
export declare const setFocusOnSendBox: () => void;
|
|
8
|
+
export declare const setFocusOnElement: (selector: string | HTMLElement) => void;
|
|
9
|
+
export declare const escapeHtml: (inputString: string) => string;
|
|
10
|
+
export declare const getIconText: (text: string) => string;
|
|
11
|
+
export declare const getLocaleDirection: (localeLCID: string) => string;
|
|
12
|
+
export declare const changeLanguageCodeFormatForWebChat: (languageCode: string) => string;
|
|
13
|
+
export declare const getTimestampHourMinute: (timestampStr: string) => string;
|
|
14
|
+
export declare const parseAdaptiveCardPayload: (payload: string, requiredFieldMissingMessage: string) => string;
|
|
15
|
+
export declare const extractPreChatSurveyResponseValues: (preChatSurvey: string, values: {
|
|
16
|
+
index: number;
|
|
17
|
+
label: any;
|
|
18
|
+
id: any;
|
|
19
|
+
value: string;
|
|
20
|
+
}[]) => {};
|
|
21
|
+
export declare const isNullOrUndefined: (obj: any) => boolean;
|
|
22
|
+
export declare const isNullOrEmptyString: (s: string | null) => boolean;
|
|
23
|
+
export declare const newGuid: () => string;
|
|
24
|
+
export declare const createTimer: () => ITimer;
|
|
25
|
+
export declare const getDomain: (hostValue: any) => string;
|
|
26
|
+
export declare const getWidgetCacheId: (orgId: string, widgetId: string, widgetInstanceId: string, popoutChat?: boolean) => string;
|
|
27
|
+
export declare const getWidgetEndChatEventName: (orgId: string, widgetId: string, widgetInstanceId: string) => string;
|
|
28
|
+
export declare const getStateFromCache: (widgetCacheId: string) => any;
|
|
29
|
+
export declare const isUndefinedOrEmpty: (object: any) => boolean;
|
|
30
|
+
export declare const addDelayInMs: (ms: number) => Promise<void>;
|
|
31
|
+
export declare const getBroadcastChannelName: (widgetId: string, widgetInstanceId: string) => string;
|
|
32
|
+
export declare const getWidgetCacheIdfromProps: (props: any, popoutChat?: boolean) => string;
|
|
33
|
+
export declare const debounceLeading: (fn: any, ms?: number) => (...args: any[]) => void;
|
|
34
|
+
export declare const isThisSessionPopout: (href: string) => boolean;
|
|
35
|
+
export declare const getConversationDetailsCall: (facadeChatSDK: FacadeChatSDK, liveChatContext?: any) => Promise<any>;
|
|
36
|
+
export declare const checkContactIdError: (e: any) => void;
|
|
37
|
+
export declare const createFileAndDownload: (fileName: string, blobData: string, mimeType: string) => void;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* Replace placeholders with format {0}..{n} , in a string with values
|
|
41
|
+
*
|
|
42
|
+
* @param template String with placeholders to be replaced
|
|
43
|
+
* @param values array of values to replace the placeholders
|
|
44
|
+
* @returns formatted string with replaced values
|
|
45
|
+
*/
|
|
46
|
+
export declare const formatTemplateString: (templateMessage: string, values: any) => string;
|
|
47
|
+
export declare const parseLowerCaseString: (property: string | boolean | undefined) => string;
|
|
48
|
+
export declare const setOcUserAgent: (chatSDK: any) => void;
|
|
49
|
+
export declare function getDeviceType(): string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
export
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ICallingContainerStatefulProps } from "./ICallingContainerStatefulProps";
|
|
3
|
+
export declare const CallingContainerStateful: (props: ICallingContainerStatefulProps) => React.JSX.Element;
|
|
4
|
+
export default CallingContainerStateful;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ICallingContainerProps } from "@microsoft/omnichannel-chat-components/lib/types/components/callingcontainer/interfaces/ICallingContainerProps";
|
|
2
|
-
export interface ICallingContainerStatefulProps extends ICallingContainerProps {
|
|
3
|
-
voiceVideoCallingSdk?: any;
|
|
4
|
-
}
|
|
1
|
+
import { ICallingContainerProps } from "@microsoft/omnichannel-chat-components/lib/types/components/callingcontainer/interfaces/ICallingContainerProps";
|
|
2
|
+
export interface ICallingContainerStatefulProps extends ICallingContainerProps {
|
|
3
|
+
voiceVideoCallingSdk?: any;
|
|
4
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
export
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { IChatButtonStatefulParams } from "./interfaces/IChatButtonStatefulParams";
|
|
3
|
+
export declare const ChatButtonStateful: (props: IChatButtonStatefulParams) => React.JSX.Element;
|
|
4
|
+
export default ChatButtonStateful;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IChatButtonStyleProps } from "@microsoft/omnichannel-chat-components/lib/types/components/chatbutton/interfaces/IChatButtonStyleProps";
|
|
2
|
-
export declare const defaultOutOfOfficeChatButtonStyleProps: IChatButtonStyleProps;
|
|
1
|
+
import { IChatButtonStyleProps } from "@microsoft/omnichannel-chat-components/lib/types/components/chatbutton/interfaces/IChatButtonStyleProps";
|
|
2
|
+
export declare const defaultOutOfOfficeChatButtonStyleProps: IChatButtonStyleProps;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { IChatButtonProps } from "@microsoft/omnichannel-chat-components/lib/types/components/chatbutton/interfaces/IChatButtonProps";
|
|
2
|
-
export interface IChatButtonStatefulParams {
|
|
3
|
-
/**
|
|
4
|
-
* buttonProps: Props for regular chat Button usage
|
|
5
|
-
* These props are used for all regular usages of chat button excluding special scenarios
|
|
6
|
-
*/
|
|
7
|
-
buttonProps?: IChatButtonProps;
|
|
8
|
-
/**
|
|
9
|
-
* outOfOfficeButtonProps: Props for Out of Office chat Button usage
|
|
10
|
-
* These props are used for styling and control of chat Button during Out Of Office actions
|
|
11
|
-
*/
|
|
12
|
-
outOfOfficeButtonProps?: IChatButtonProps;
|
|
13
|
-
/**
|
|
14
|
-
* startChat: Internal Prop injected for triggering start of a chat using chatSDK
|
|
15
|
-
*/
|
|
16
|
-
startChat: () => Promise<void>;
|
|
17
|
-
}
|
|
1
|
+
import { IChatButtonProps } from "@microsoft/omnichannel-chat-components/lib/types/components/chatbutton/interfaces/IChatButtonProps";
|
|
2
|
+
export interface IChatButtonStatefulParams {
|
|
3
|
+
/**
|
|
4
|
+
* buttonProps: Props for regular chat Button usage
|
|
5
|
+
* These props are used for all regular usages of chat button excluding special scenarios
|
|
6
|
+
*/
|
|
7
|
+
buttonProps?: IChatButtonProps;
|
|
8
|
+
/**
|
|
9
|
+
* outOfOfficeButtonProps: Props for Out of Office chat Button usage
|
|
10
|
+
* These props are used for styling and control of chat Button during Out Of Office actions
|
|
11
|
+
*/
|
|
12
|
+
outOfOfficeButtonProps?: IChatButtonProps;
|
|
13
|
+
/**
|
|
14
|
+
* startChat: Internal Prop injected for triggering start of a chat using chatSDK
|
|
15
|
+
*/
|
|
16
|
+
startChat: () => Promise<void>;
|
|
17
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
export
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { IConfirmationPaneStatefulParams } from "./interfaces/IConfirmationPaneStatefulParams";
|
|
3
|
+
export declare const ConfirmationPaneStateful: (props: IConfirmationPaneStatefulParams) => React.JSX.Element;
|
|
4
|
+
export default ConfirmationPaneStateful;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IConfirmationPaneLocalizedTexts } from "../../interfaces/IConfirmationPaneLocalizedText";
|
|
2
|
-
export declare const defaultConfirmationPaneLocalizedTexts: IConfirmationPaneLocalizedTexts;
|
|
1
|
+
import { IConfirmationPaneLocalizedTexts } from "../../interfaces/IConfirmationPaneLocalizedText";
|
|
2
|
+
export declare const defaultConfirmationPaneLocalizedTexts: IConfirmationPaneLocalizedTexts;
|
package/lib/types/components/confirmationpanestateful/interfaces/IConfirmationPaneInputs.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface IConfirmationPaneInputs {
|
|
2
|
-
title?: string;
|
|
3
|
-
description?: string;
|
|
4
|
-
}
|
|
1
|
+
export interface IConfirmationPaneInputs {
|
|
2
|
+
title?: string;
|
|
3
|
+
description?: string;
|
|
4
|
+
}
|
package/lib/types/components/confirmationpanestateful/interfaces/IConfirmationPaneLocalizedText.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export interface IConfirmationPaneLocalizedTexts {
|
|
2
|
-
CLOSE_CONFIRMATION_DIALOG_TITLE_FOR_EMAIL_AND_DOWNLOAD_TRANSCRIPT_ENABLED?: string;
|
|
3
|
-
CLOSE_CONFIRMATION_DIALOG_DESCRIPTION_FOR_EMAIL_AND_DOWNLOAD_TRANSCRIPT_ENABLED?: string;
|
|
4
|
-
CLOSE_CONFIRMATION_DIALOG_TITLE_FOR_EMAIL_TRANSCRIPT_ENABLED?: string;
|
|
5
|
-
CLOSE_CONFIRMATION_DIALOG_DESCRIPTION_FOR_EMAIL_TRANSCRIPT_ENABLED?: string;
|
|
6
|
-
CLOSE_CONFIRMATION_DIALOG_TITLE_FOR_DOWNLOAD_TRANSCRIPT_ENABLED?: string;
|
|
7
|
-
CLOSE_CONFIRMATION_DIALOG_DESCRIPTION_FOR_DOWNLOAD_TRANSCRIPT_ENABLED?: string;
|
|
8
|
-
CLOSE_CONFIRMATION_DIALOG_TITLE_DEFAULT?: string;
|
|
9
|
-
CLOSE_CONFIRMATION_DIALOG_DESCRIPTION_DEFAULT?: string;
|
|
10
|
-
}
|
|
1
|
+
export interface IConfirmationPaneLocalizedTexts {
|
|
2
|
+
CLOSE_CONFIRMATION_DIALOG_TITLE_FOR_EMAIL_AND_DOWNLOAD_TRANSCRIPT_ENABLED?: string;
|
|
3
|
+
CLOSE_CONFIRMATION_DIALOG_DESCRIPTION_FOR_EMAIL_AND_DOWNLOAD_TRANSCRIPT_ENABLED?: string;
|
|
4
|
+
CLOSE_CONFIRMATION_DIALOG_TITLE_FOR_EMAIL_TRANSCRIPT_ENABLED?: string;
|
|
5
|
+
CLOSE_CONFIRMATION_DIALOG_DESCRIPTION_FOR_EMAIL_TRANSCRIPT_ENABLED?: string;
|
|
6
|
+
CLOSE_CONFIRMATION_DIALOG_TITLE_FOR_DOWNLOAD_TRANSCRIPT_ENABLED?: string;
|
|
7
|
+
CLOSE_CONFIRMATION_DIALOG_DESCRIPTION_FOR_DOWNLOAD_TRANSCRIPT_ENABLED?: string;
|
|
8
|
+
CLOSE_CONFIRMATION_DIALOG_TITLE_DEFAULT?: string;
|
|
9
|
+
CLOSE_CONFIRMATION_DIALOG_DESCRIPTION_DEFAULT?: string;
|
|
10
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { IConfirmationPaneStatefulProps } from "./IConfirmationPaneStatefulProps";
|
|
2
|
-
export interface IConfirmationPaneStatefulParams extends IConfirmationPaneStatefulProps {
|
|
3
|
-
/**
|
|
4
|
-
* setPostChatContext: Internal Prop injected for setting Post Chat Context
|
|
5
|
-
*/
|
|
6
|
-
setPostChatContext: () => Promise<void>;
|
|
7
|
-
/**
|
|
8
|
-
* prepareEndChat: Internal Prop injected for checking PostChat contexts and trigerring end of chat
|
|
9
|
-
* @param adapter : The chat adapter for the live chat session
|
|
10
|
-
* @param state : The chat state where the conversation is currently in
|
|
11
|
-
*/
|
|
12
|
-
prepareEndChat: () => Promise<void>;
|
|
13
|
-
}
|
|
1
|
+
import { IConfirmationPaneStatefulProps } from "./IConfirmationPaneStatefulProps";
|
|
2
|
+
export interface IConfirmationPaneStatefulParams extends IConfirmationPaneStatefulProps {
|
|
3
|
+
/**
|
|
4
|
+
* setPostChatContext: Internal Prop injected for setting Post Chat Context
|
|
5
|
+
*/
|
|
6
|
+
setPostChatContext: () => Promise<void>;
|
|
7
|
+
/**
|
|
8
|
+
* prepareEndChat: Internal Prop injected for checking PostChat contexts and trigerring end of chat
|
|
9
|
+
* @param adapter : The chat adapter for the live chat session
|
|
10
|
+
* @param state : The chat state where the conversation is currently in
|
|
11
|
+
*/
|
|
12
|
+
prepareEndChat: () => Promise<void>;
|
|
13
|
+
}
|
package/lib/types/components/confirmationpanestateful/interfaces/IConfirmationPaneStatefulProps.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { IConfirmationPaneLocalizedTexts } from "./IConfirmationPaneLocalizedText";
|
|
2
|
-
import { IConfirmationPaneProps } from "@microsoft/omnichannel-chat-components/lib/types/components/confirmationpane/interfaces/IConfirmationPaneProps";
|
|
3
|
-
export interface IConfirmationPaneStatefulProps extends IConfirmationPaneProps {
|
|
4
|
-
/**
|
|
5
|
-
* confirmationPaneLocalizedTexts: Internal Prop injected for setting localized texts
|
|
6
|
-
*/
|
|
7
|
-
confirmationPaneLocalizedTexts?: IConfirmationPaneLocalizedTexts;
|
|
8
|
-
}
|
|
1
|
+
import { IConfirmationPaneLocalizedTexts } from "./IConfirmationPaneLocalizedText";
|
|
2
|
+
import { IConfirmationPaneProps } from "@microsoft/omnichannel-chat-components/lib/types/components/confirmationpane/interfaces/IConfirmationPaneProps";
|
|
3
|
+
export interface IConfirmationPaneStatefulProps extends IConfirmationPaneProps {
|
|
4
|
+
/**
|
|
5
|
+
* confirmationPaneLocalizedTexts: Internal Prop injected for setting localized texts
|
|
6
|
+
*/
|
|
7
|
+
confirmationPaneLocalizedTexts?: IConfirmationPaneLocalizedTexts;
|
|
8
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export {};
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface DimLayerInterface {
|
|
3
|
+
brightness: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const DimLayer: ({ brightness }: DimLayerInterface) => React.JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
interface IDraggableChatWidgetInternalProps {
|
|
3
|
-
disabled?: boolean;
|
|
4
|
-
channel?: string;
|
|
5
|
-
elementId: string;
|
|
6
|
-
children: ReactNode;
|
|
7
|
-
}
|
|
8
|
-
declare const DraggableChatWidget: (props: IDraggableChatWidgetInternalProps) => JSX.Element;
|
|
9
|
-
export default DraggableChatWidget;
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
interface IDraggableChatWidgetInternalProps {
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
channel?: string;
|
|
5
|
+
elementId: string;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
declare const DraggableChatWidget: (props: IDraggableChatWidgetInternalProps) => React.JSX.Element;
|
|
9
|
+
export default DraggableChatWidget;
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
interface IDraggableEventEmitterProps {
|
|
3
|
-
/**
|
|
4
|
-
* Unique channel name to send/receive draggable events to prevent event collisions
|
|
5
|
-
*/
|
|
6
|
-
channel: string;
|
|
7
|
-
/**
|
|
8
|
-
* React nodes children
|
|
9
|
-
*/
|
|
10
|
-
children: ReactNode;
|
|
11
|
-
/**
|
|
12
|
-
* HTML element ID of the trigger element to send IDraggableEvent to update the draggable element position
|
|
13
|
-
*/
|
|
14
|
-
elementId: string;
|
|
15
|
-
/**
|
|
16
|
-
* Target window to post IDraggableEvent messages
|
|
17
|
-
*/
|
|
18
|
-
targetWindow?: Window;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Trigger component which would send IDraggableEvent to the receiver to update the draggable component position
|
|
22
|
-
*
|
|
23
|
-
* @param props IDraggableEventEmitterProps
|
|
24
|
-
* @returns
|
|
25
|
-
*/
|
|
26
|
-
declare const DraggableEventEmitter: (props: IDraggableEventEmitterProps) => JSX.Element;
|
|
27
|
-
export default DraggableEventEmitter;
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
interface IDraggableEventEmitterProps {
|
|
3
|
+
/**
|
|
4
|
+
* Unique channel name to send/receive draggable events to prevent event collisions
|
|
5
|
+
*/
|
|
6
|
+
channel: string;
|
|
7
|
+
/**
|
|
8
|
+
* React nodes children
|
|
9
|
+
*/
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* HTML element ID of the trigger element to send IDraggableEvent to update the draggable element position
|
|
13
|
+
*/
|
|
14
|
+
elementId: string;
|
|
15
|
+
/**
|
|
16
|
+
* Target window to post IDraggableEvent messages
|
|
17
|
+
*/
|
|
18
|
+
targetWindow?: Window;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Trigger component which would send IDraggableEvent to the receiver to update the draggable component position
|
|
22
|
+
*
|
|
23
|
+
* @param props IDraggableEventEmitterProps
|
|
24
|
+
* @returns
|
|
25
|
+
*/
|
|
26
|
+
declare const DraggableEventEmitter: (props: IDraggableEventEmitterProps) => React.JSX.Element;
|
|
27
|
+
export default DraggableEventEmitter;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
declare enum DraggableEventNames {
|
|
2
|
-
DragStart = "DragStart",
|
|
3
|
-
Dragging = "Dragging",
|
|
4
|
-
DragEnd = "DragEnd"
|
|
5
|
-
}
|
|
6
|
-
export default DraggableEventNames;
|
|
1
|
+
declare enum DraggableEventNames {
|
|
2
|
+
DragStart = "DragStart",
|
|
3
|
+
Dragging = "Dragging",
|
|
4
|
+
DragEnd = "DragEnd"
|
|
5
|
+
}
|
|
6
|
+
export default DraggableEventNames;
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
import IDraggableEvent from "./IDraggableEvent";
|
|
3
|
-
interface IDraggableEventReceiverProps {
|
|
4
|
-
/**
|
|
5
|
-
* Unique channel name to send/receive draggable events to prevent event collisions
|
|
6
|
-
*/
|
|
7
|
-
channel: string;
|
|
8
|
-
/**
|
|
9
|
-
* React nodes children
|
|
10
|
-
*/
|
|
11
|
-
children: ReactNode;
|
|
12
|
-
/**
|
|
13
|
-
* Event handler on receiving draggable events
|
|
14
|
-
*
|
|
15
|
-
* @param event Draggable events
|
|
16
|
-
* @returns
|
|
17
|
-
*/
|
|
18
|
-
onEvent: (event: IDraggableEvent) => void;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Component which would listen to DraggableEvent, update the component position or react accordingly.
|
|
22
|
-
*
|
|
23
|
-
* @param props IDraggableEventReceiverProps
|
|
24
|
-
* @returns
|
|
25
|
-
*/
|
|
26
|
-
declare const DraggableEventReceiver: (props: IDraggableEventReceiverProps) => JSX.Element;
|
|
27
|
-
export default DraggableEventReceiver;
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
import IDraggableEvent from "./IDraggableEvent";
|
|
3
|
+
interface IDraggableEventReceiverProps {
|
|
4
|
+
/**
|
|
5
|
+
* Unique channel name to send/receive draggable events to prevent event collisions
|
|
6
|
+
*/
|
|
7
|
+
channel: string;
|
|
8
|
+
/**
|
|
9
|
+
* React nodes children
|
|
10
|
+
*/
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* Event handler on receiving draggable events
|
|
14
|
+
*
|
|
15
|
+
* @param event Draggable events
|
|
16
|
+
* @returns
|
|
17
|
+
*/
|
|
18
|
+
onEvent: (event: IDraggableEvent) => void;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Component which would listen to DraggableEvent, update the component position or react accordingly.
|
|
22
|
+
*
|
|
23
|
+
* @param props IDraggableEventReceiverProps
|
|
24
|
+
* @returns
|
|
25
|
+
*/
|
|
26
|
+
declare const DraggableEventReceiver: (props: IDraggableEventReceiverProps) => React.JSX.Element;
|
|
27
|
+
export default DraggableEventReceiver;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
interface IDraggableElementPosition {
|
|
2
|
-
offsetLeft: number;
|
|
3
|
-
offsetTop: number;
|
|
4
|
-
}
|
|
5
|
-
export default IDraggableElementPosition;
|
|
1
|
+
interface IDraggableElementPosition {
|
|
2
|
+
offsetLeft: number;
|
|
3
|
+
offsetTop: number;
|
|
4
|
+
}
|
|
5
|
+
export default IDraggableElementPosition;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
interface IDraggableElementPositionDelta {
|
|
2
|
-
left: number;
|
|
3
|
-
top: number;
|
|
4
|
-
}
|
|
5
|
-
export default IDraggableElementPositionDelta;
|
|
1
|
+
interface IDraggableElementPositionDelta {
|
|
2
|
+
left: number;
|
|
3
|
+
top: number;
|
|
4
|
+
}
|
|
5
|
+
export default IDraggableElementPositionDelta;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import DraggableEventNames from "./DraggableEventNames";
|
|
2
|
-
import IDraggableElementPosition from "./IDraggableElementPosition";
|
|
3
|
-
interface IDraggableEvent {
|
|
4
|
-
channel: string;
|
|
5
|
-
eventName: DraggableEventNames | string;
|
|
6
|
-
offset?: {
|
|
7
|
-
x: number;
|
|
8
|
-
y: number;
|
|
9
|
-
};
|
|
10
|
-
position?: IDraggableElementPosition;
|
|
11
|
-
}
|
|
12
|
-
export default IDraggableEvent;
|
|
1
|
+
import DraggableEventNames from "./DraggableEventNames";
|
|
2
|
+
import IDraggableElementPosition from "./IDraggableElementPosition";
|
|
3
|
+
interface IDraggableEvent {
|
|
4
|
+
channel: string;
|
|
5
|
+
eventName: DraggableEventNames | string;
|
|
6
|
+
offset?: {
|
|
7
|
+
x: number;
|
|
8
|
+
y: number;
|
|
9
|
+
};
|
|
10
|
+
position?: IDraggableElementPosition;
|
|
11
|
+
}
|
|
12
|
+
export default IDraggableEvent;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
export
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { IEmailTranscriptPaneProps } from "./interfaces/IEmailTranscriptPaneProps";
|
|
3
|
+
export declare const EmailTranscriptPaneStateful: (props: IEmailTranscriptPaneProps) => React.JSX.Element;
|
|
4
|
+
export default EmailTranscriptPaneStateful;
|
package/lib/types/components/emailtranscriptpanestateful/interfaces/IChatTranscriptBody.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export interface IChatTranscriptBody {
|
|
2
|
-
emailAddress: string;
|
|
3
|
-
attachmentMessage: string;
|
|
4
|
-
locale?: string;
|
|
5
|
-
}
|
|
1
|
+
export interface IChatTranscriptBody {
|
|
2
|
+
emailAddress: string;
|
|
3
|
+
attachmentMessage: string;
|
|
4
|
+
locale?: string;
|
|
5
|
+
}
|