@microsoft/omnichannel-chat-widget 1.7.8-main.29ce174 → 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.
Files changed (398) hide show
  1. package/lib/cjs/common/Constants.js +67 -20
  2. package/lib/cjs/common/KeyCodes.js +6 -1
  3. package/lib/cjs/common/contextDataStore/DataStoreManager.js +6 -1
  4. package/lib/cjs/common/facades/FacadeChatSDK.js +392 -295
  5. package/lib/cjs/common/storage/default/defaultCacheManager.js +6 -3
  6. package/lib/cjs/common/telemetry/AppInsightsEvents.js +31 -0
  7. package/lib/cjs/common/telemetry/ScenarioMarker.js +66 -0
  8. package/lib/cjs/common/telemetry/TelemetryConstants.js +158 -129
  9. package/lib/cjs/common/telemetry/TelemetryHelper.js +281 -250
  10. package/lib/cjs/common/telemetry/TelemetryManager.js +32 -12
  11. package/lib/cjs/common/telemetry/defaultConfigs/defaultAppInsightsConfig.js +11 -0
  12. package/lib/cjs/common/telemetry/interfaces/IAppInsightsConfig.js +1 -0
  13. package/lib/cjs/common/telemetry/loggers/appInsightsLogger.js +149 -0
  14. package/lib/cjs/components/chatbuttonstateful/ChatButtonStateful.js +17 -14
  15. package/lib/cjs/components/emailtranscriptpanestateful/EmailTranscriptPaneStateful.js +3 -2
  16. package/lib/cjs/components/footerstateful/FooterStateful.js +11 -6
  17. package/lib/cjs/components/headerstateful/HeaderStateful.js +21 -11
  18. package/lib/cjs/components/livechatwidget/common/ActivityStreamHandler.js +32 -19
  19. package/lib/cjs/components/livechatwidget/common/ActivitySubscriber/BotAuthActivitySubscriber.js +71 -56
  20. package/lib/cjs/components/livechatwidget/common/ActivitySubscriber/DefaultActivitySubscriber.js +17 -8
  21. package/lib/cjs/components/livechatwidget/common/ActivitySubscriber/HiddenAdaptiveCardActivitySubscriber.js +65 -52
  22. package/lib/cjs/components/livechatwidget/common/ActivitySubscriber/PauseActivitySubscriber.js +31 -18
  23. package/lib/cjs/components/livechatwidget/common/ChatAdapterShim.js +14 -6
  24. package/lib/cjs/components/livechatwidget/common/Deferred.js +14 -6
  25. package/lib/cjs/components/livechatwidget/common/chatDisconnectHelper.js +3 -1
  26. package/lib/cjs/components/livechatwidget/common/endChat.js +4 -18
  27. package/lib/cjs/components/livechatwidget/common/reconnectChatHelper.js +0 -5
  28. package/lib/cjs/components/livechatwidget/common/registerTelemetryLoggers.js +3 -1
  29. package/lib/cjs/components/livechatwidget/common/renderSurveyHelpers.js +6 -3
  30. package/lib/cjs/components/livechatwidget/common/setPostChatContextAndLoadSurvey.js +7 -2
  31. package/lib/cjs/components/livechatwidget/common/startChat.js +8 -25
  32. package/lib/cjs/components/livechatwidget/common/startChatErrorHandler.js +5 -4
  33. package/lib/cjs/components/livechatwidget/livechatwidgetstateful/LiveChatWidgetStateful.js +14 -12
  34. package/lib/cjs/components/ooohpanestateful/OOOHPaneStateful.js +12 -8
  35. package/lib/cjs/components/postchatsurveypanestateful/PostChatSurveyPaneStateful.js +16 -10
  36. package/lib/cjs/components/prechatsurveypanestateful/PreChatSurveyPaneStateful.js +9 -6
  37. package/lib/cjs/components/proactivechatpanestateful/ProactiveChatPaneStateful.js +8 -6
  38. package/lib/cjs/components/webchatcontainerstateful/WebChatContainerStateful.js +11 -4
  39. package/lib/cjs/components/webchatcontainerstateful/common/DemoChatAdapter.js +88 -65
  40. package/lib/cjs/components/webchatcontainerstateful/common/DemoChatSDK.js +26 -7
  41. package/lib/cjs/components/webchatcontainerstateful/common/DesignerChatAdapter.js +49 -26
  42. package/lib/cjs/components/webchatcontainerstateful/common/DesignerChatSDK.js +57 -35
  43. package/lib/cjs/components/webchatcontainerstateful/common/mockadapter.js +62 -52
  44. package/lib/cjs/components/webchatcontainerstateful/common/mockchatsdk.js +95 -61
  45. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/BotMagicCodeStore.js +6 -1
  46. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/WebChatStoreLoader.js +6 -1
  47. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/markdownrenderers/HyperlinkTextOverrideRenderer.js +53 -39
  48. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/timestamps/DeliveredTimestamp.js +4 -0
  49. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/notification/NotificationHandler.js +88 -60
  50. package/lib/cjs/contexts/common/LiveChatWidgetContextInitialState.js +18 -6
  51. package/lib/cjs/firstresponselatency/Constants.js +13 -0
  52. package/lib/cjs/firstresponselatency/FirstMessageTrackerFromBot.js +118 -0
  53. package/lib/cjs/firstresponselatency/FirstResponseLatencyTracker.js +201 -0
  54. package/lib/cjs/firstresponselatency/util.js +98 -0
  55. package/lib/cjs/plugins/createChatTranscript.js +88 -58
  56. package/lib/cjs/plugins/newMessageEventHandler.js +102 -88
  57. package/lib/esm/common/Constants.js +65 -19
  58. package/lib/esm/common/KeyCodes.js +6 -1
  59. package/lib/esm/common/contextDataStore/DataStoreManager.js +6 -1
  60. package/lib/esm/common/facades/FacadeChatSDK.js +392 -295
  61. package/lib/esm/common/storage/default/defaultCacheManager.js +6 -1
  62. package/lib/esm/common/telemetry/AppInsightsEvents.js +24 -0
  63. package/lib/esm/common/telemetry/ScenarioMarker.js +59 -0
  64. package/lib/esm/common/telemetry/TelemetryConstants.js +158 -129
  65. package/lib/esm/common/telemetry/TelemetryHelper.js +281 -250
  66. package/lib/esm/common/telemetry/TelemetryManager.js +32 -12
  67. package/lib/esm/common/telemetry/defaultConfigs/defaultAppInsightsConfig.js +4 -0
  68. package/lib/esm/common/telemetry/interfaces/IAppInsightsConfig.js +1 -0
  69. package/lib/esm/common/telemetry/loggers/appInsightsLogger.js +139 -0
  70. package/lib/esm/components/chatbuttonstateful/ChatButtonStateful.js +17 -14
  71. package/lib/esm/components/emailtranscriptpanestateful/EmailTranscriptPaneStateful.js +3 -2
  72. package/lib/esm/components/footerstateful/FooterStateful.js +11 -6
  73. package/lib/esm/components/headerstateful/HeaderStateful.js +21 -11
  74. package/lib/esm/components/livechatwidget/common/ActivityStreamHandler.js +32 -19
  75. package/lib/esm/components/livechatwidget/common/ActivitySubscriber/BotAuthActivitySubscriber.js +71 -56
  76. package/lib/esm/components/livechatwidget/common/ActivitySubscriber/DefaultActivitySubscriber.js +17 -8
  77. package/lib/esm/components/livechatwidget/common/ActivitySubscriber/HiddenAdaptiveCardActivitySubscriber.js +65 -52
  78. package/lib/esm/components/livechatwidget/common/ActivitySubscriber/PauseActivitySubscriber.js +31 -18
  79. package/lib/esm/components/livechatwidget/common/ChatAdapterShim.js +14 -6
  80. package/lib/esm/components/livechatwidget/common/Deferred.js +14 -6
  81. package/lib/esm/components/livechatwidget/common/chatDisconnectHelper.js +3 -1
  82. package/lib/esm/components/livechatwidget/common/endChat.js +4 -18
  83. package/lib/esm/components/livechatwidget/common/reconnectChatHelper.js +1 -6
  84. package/lib/esm/components/livechatwidget/common/registerTelemetryLoggers.js +3 -1
  85. package/lib/esm/components/livechatwidget/common/renderSurveyHelpers.js +6 -3
  86. package/lib/esm/components/livechatwidget/common/setPostChatContextAndLoadSurvey.js +7 -2
  87. package/lib/esm/components/livechatwidget/common/startChat.js +9 -26
  88. package/lib/esm/components/livechatwidget/common/startChatErrorHandler.js +5 -4
  89. package/lib/esm/components/livechatwidget/livechatwidgetstateful/LiveChatWidgetStateful.js +14 -12
  90. package/lib/esm/components/ooohpanestateful/OOOHPaneStateful.js +12 -8
  91. package/lib/esm/components/postchatsurveypanestateful/PostChatSurveyPaneStateful.js +16 -10
  92. package/lib/esm/components/prechatsurveypanestateful/PreChatSurveyPaneStateful.js +9 -6
  93. package/lib/esm/components/proactivechatpanestateful/ProactiveChatPaneStateful.js +8 -6
  94. package/lib/esm/components/webchatcontainerstateful/WebChatContainerStateful.js +11 -4
  95. package/lib/esm/components/webchatcontainerstateful/common/DemoChatAdapter.js +88 -65
  96. package/lib/esm/components/webchatcontainerstateful/common/DemoChatSDK.js +26 -7
  97. package/lib/esm/components/webchatcontainerstateful/common/DesignerChatAdapter.js +49 -26
  98. package/lib/esm/components/webchatcontainerstateful/common/DesignerChatSDK.js +57 -35
  99. package/lib/esm/components/webchatcontainerstateful/common/mockadapter.js +63 -52
  100. package/lib/esm/components/webchatcontainerstateful/common/mockchatsdk.js +95 -61
  101. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/BotMagicCodeStore.js +6 -1
  102. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/WebChatStoreLoader.js +6 -1
  103. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/markdownrenderers/HyperlinkTextOverrideRenderer.js +53 -39
  104. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/timestamps/DeliveredTimestamp.js +4 -0
  105. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/notification/NotificationHandler.js +88 -60
  106. package/lib/esm/contexts/common/LiveChatWidgetContextInitialState.js +18 -6
  107. package/lib/esm/firstresponselatency/Constants.js +6 -0
  108. package/lib/esm/firstresponselatency/FirstMessageTrackerFromBot.js +112 -0
  109. package/lib/esm/firstresponselatency/FirstResponseLatencyTracker.js +194 -0
  110. package/lib/esm/firstresponselatency/util.js +87 -0
  111. package/lib/esm/plugins/createChatTranscript.js +88 -58
  112. package/lib/esm/plugins/newMessageEventHandler.js +100 -86
  113. package/lib/types/assets/Audios.d.ts +1 -1
  114. package/lib/types/assets/Icons.d.ts +16 -16
  115. package/lib/types/common/Constants.d.ts +283 -277
  116. package/lib/types/common/KeyCodes.d.ts +5 -5
  117. package/lib/types/common/contextDataStore/DataStoreManager.d.ts +4 -4
  118. package/lib/types/common/facades/FacadeChatSDK.d.ts +75 -74
  119. package/lib/types/common/facades/types/IFacadeChatSDKInput.d.ts +13 -13
  120. package/lib/types/common/interfaces/IContextDataStore.d.ts +14 -14
  121. package/lib/types/common/interfaces/ITimer.d.ts +3 -3
  122. package/lib/types/common/storage/default/defaultCacheManager.d.ts +5 -5
  123. package/lib/types/common/storage/default/defaultClientDataStoreProvider.d.ts +4 -4
  124. package/lib/types/common/storage/default/defaultInMemoryDataStore.d.ts +6 -6
  125. package/lib/types/common/telemetry/AppInsightsEvents.d.ts +1 -0
  126. package/lib/types/common/telemetry/ScenarioMarker.d.ts +19 -0
  127. package/lib/types/common/telemetry/TelemetryConstants.d.ts +272 -257
  128. package/lib/types/common/telemetry/TelemetryHelper.d.ts +48 -43
  129. package/lib/types/common/telemetry/TelemetryManager.d.ts +12 -12
  130. package/lib/types/common/telemetry/defaultConfigs/defaultAppInsightsConfig.d.ts +2 -0
  131. package/lib/types/common/telemetry/defaultConfigs/defaultAriaConfig.d.ts +2 -2
  132. package/lib/types/common/telemetry/defaultConfigs/defaultTelemetryConfiguration.d.ts +2 -2
  133. package/lib/types/common/telemetry/defaultConfigs/defaultTelemetryInternalData.d.ts +2 -2
  134. package/lib/types/common/telemetry/definitions/Contracts.d.ts +77 -77
  135. package/lib/types/common/telemetry/definitions/Payload.d.ts +105 -105
  136. package/lib/types/common/telemetry/interfaces/IAppInsightsConfig.d.ts +4 -0
  137. package/lib/types/common/telemetry/interfaces/IAriaConfigurations.d.ts +18 -18
  138. package/lib/types/common/telemetry/interfaces/IChatSDKLogger.d.ts +6 -5
  139. package/lib/types/common/telemetry/interfaces/IInternalTelemetryData.d.ts +23 -21
  140. package/lib/types/common/telemetry/interfaces/ITelemetryConfig.d.ts +48 -48
  141. package/lib/types/common/telemetry/interfaces/ITelemetryEvents.d.ts +7 -7
  142. package/lib/types/common/telemetry/loggers/appInsightsLogger.d.ts +10 -0
  143. package/lib/types/common/telemetry/loggers/ariaTelemetryLogger.d.ts +2 -2
  144. package/lib/types/common/telemetry/loggers/consoleLogger.d.ts +2 -2
  145. package/lib/types/common/utils.d.ts +49 -49
  146. package/lib/types/components/callingcontainerstateful/CallingContainerStateful.d.ts +4 -3
  147. package/lib/types/components/callingcontainerstateful/ICallingContainerStatefulProps.d.ts +4 -4
  148. package/lib/types/components/chatbuttonstateful/ChatButtonStateful.d.ts +4 -3
  149. package/lib/types/components/chatbuttonstateful/common/styleProps/defaultOutOfOfficeChatButtonStyleProps.d.ts +2 -2
  150. package/lib/types/components/chatbuttonstateful/interfaces/IChatButtonStatefulParams.d.ts +17 -17
  151. package/lib/types/components/confirmationpanestateful/ConfirmationPaneStateful.d.ts +4 -3
  152. package/lib/types/components/confirmationpanestateful/common/defaultProps/defaultConfirmationPaneLocalizedTexts.d.ts +2 -2
  153. package/lib/types/components/confirmationpanestateful/interfaces/IConfirmationPaneInputs.d.ts +4 -4
  154. package/lib/types/components/confirmationpanestateful/interfaces/IConfirmationPaneLocalizedText.d.ts +10 -10
  155. package/lib/types/components/confirmationpanestateful/interfaces/IConfirmationPaneStatefulParams.d.ts +13 -13
  156. package/lib/types/components/confirmationpanestateful/interfaces/IConfirmationPaneStatefulProps.d.ts +8 -8
  157. package/lib/types/components/dimlayer/DimLayer.d.ts +6 -5
  158. package/lib/types/components/draggable/DraggableChatWidget.d.ts +9 -9
  159. package/lib/types/components/draggable/DraggableEventEmitter.d.ts +27 -27
  160. package/lib/types/components/draggable/DraggableEventNames.d.ts +6 -6
  161. package/lib/types/components/draggable/DraggableEventReceiver.d.ts +27 -27
  162. package/lib/types/components/draggable/IDraggableElementPosition.d.ts +5 -5
  163. package/lib/types/components/draggable/IDraggableElementPositionDelta.d.ts +5 -5
  164. package/lib/types/components/draggable/IDraggableEvent.d.ts +12 -12
  165. package/lib/types/components/emailtranscriptpanestateful/EmailTranscriptPaneStateful.d.ts +4 -3
  166. package/lib/types/components/emailtranscriptpanestateful/interfaces/IChatTranscriptBody.d.ts +5 -5
  167. package/lib/types/components/emailtranscriptpanestateful/interfaces/IEmailTranscriptPaneProps.d.ts +11 -11
  168. package/lib/types/components/footerstateful/FooterStateful.d.ts +3 -2
  169. package/lib/types/components/footerstateful/audionotificationstateful/AudioNotificationStateful.d.ts +4 -3
  170. package/lib/types/components/footerstateful/audionotificationstateful/interfaces/IAudioNotificationProps.d.ts +3 -3
  171. package/lib/types/components/footerstateful/audionotificationstateful/interfaces/IAudioNotificationStatefulParams.d.ts +4 -4
  172. package/lib/types/components/footerstateful/downloadtranscriptstateful/DownloadTranscriptStateful.d.ts +4 -4
  173. package/lib/types/components/footerstateful/downloadtranscriptstateful/common/defaultLibraryScripts.d.ts +23 -23
  174. package/lib/types/components/footerstateful/downloadtranscriptstateful/interfaces/IDownloadTranscriptProps.d.ts +19 -19
  175. package/lib/types/components/footerstateful/downloadtranscriptstateful/interfaces/IWebChatTranscriptConfig.d.ts +14 -14
  176. package/lib/types/components/footerstateful/downloadtranscriptstateful/interfaces/TranscriptHtmlScripts.d.ts +33 -33
  177. package/lib/types/components/headerstateful/HeaderStateful.d.ts +4 -3
  178. package/lib/types/components/headerstateful/common/styleProps/defaultOutOfOfficeHeaderStyleProps.d.ts +2 -2
  179. package/lib/types/components/headerstateful/interfaces/IHeaderStatefulParams.d.ts +33 -33
  180. package/lib/types/components/livechatwidget/LiveChatWidget.d.ts +4 -3
  181. package/lib/types/components/livechatwidget/common/ActivityStreamHandler.d.ts +14 -14
  182. package/lib/types/components/livechatwidget/common/ActivitySubscriber/BotAuthActivitySubscriber.d.ts +12 -12
  183. package/lib/types/components/livechatwidget/common/ActivitySubscriber/DefaultActivitySubscriber.d.ts +5 -5
  184. package/lib/types/components/livechatwidget/common/ActivitySubscriber/HiddenAdaptiveCardActivitySubscriber.d.ts +7 -7
  185. package/lib/types/components/livechatwidget/common/ActivitySubscriber/IActivitySubscriber.d.ts +6 -6
  186. package/lib/types/components/livechatwidget/common/ActivitySubscriber/PauseActivitySubscriber.d.ts +7 -7
  187. package/lib/types/components/livechatwidget/common/ChatAdapterShim.d.ts +7 -7
  188. package/lib/types/components/livechatwidget/common/Deferred.d.ts +9 -9
  189. package/lib/types/components/livechatwidget/common/authHelper.d.ts +18 -18
  190. package/lib/types/components/livechatwidget/common/chatDisconnectHelper.d.ts +4 -4
  191. package/lib/types/components/livechatwidget/common/createAdapter.d.ts +3 -3
  192. package/lib/types/components/livechatwidget/common/createDownloadTranscriptProps.d.ts +25 -25
  193. package/lib/types/components/livechatwidget/common/createFooter.d.ts +4 -3
  194. package/lib/types/components/livechatwidget/common/createInternetConnectionChangeHandler.d.ts +2 -2
  195. package/lib/types/components/livechatwidget/common/createMarkdown.d.ts +2 -2
  196. package/lib/types/components/livechatwidget/common/defaultProps/defaultScrollBarProps.d.ts +2 -2
  197. package/lib/types/components/livechatwidget/common/defaultStyles/defaultLiveChatWidgetGeneralStyles.d.ts +2 -2
  198. package/lib/types/components/livechatwidget/common/disposeTelemetryLoggers.d.ts +1 -1
  199. package/lib/types/components/livechatwidget/common/endChat.d.ts +13 -13
  200. package/lib/types/components/livechatwidget/common/getGeneralStylesForButton.d.ts +3 -3
  201. package/lib/types/components/livechatwidget/common/getMockChatSDKIfApplicable.d.ts +1 -1
  202. package/lib/types/components/livechatwidget/common/helpers/markdownHelper.d.ts +2 -2
  203. package/lib/types/components/livechatwidget/common/initCallingSdk.d.ts +2 -2
  204. package/lib/types/components/livechatwidget/common/initConfirmationPropsComposer.d.ts +3 -3
  205. package/lib/types/components/livechatwidget/common/initWebChatComposer.d.ts +7 -7
  206. package/lib/types/components/livechatwidget/common/liveChatConfigUtils.d.ts +3 -3
  207. package/lib/types/components/livechatwidget/common/overridePropsOnMockIfApplicable.d.ts +3 -3
  208. package/lib/types/components/livechatwidget/common/persistentChatHelper.d.ts +1 -1
  209. package/lib/types/components/livechatwidget/common/reconnectChatHelper.d.ts +12 -12
  210. package/lib/types/components/livechatwidget/common/registerTelemetryLoggers.d.ts +4 -4
  211. package/lib/types/components/livechatwidget/common/renderSurveyHelpers.d.ts +10 -10
  212. package/lib/types/components/livechatwidget/common/setPostChatContextAndLoadSurvey.d.ts +4 -4
  213. package/lib/types/components/livechatwidget/common/shareObservable.d.ts +1 -1
  214. package/lib/types/components/livechatwidget/common/startChat.d.ts +11 -11
  215. package/lib/types/components/livechatwidget/common/startChatErrorHandler.d.ts +6 -6
  216. package/lib/types/components/livechatwidget/common/startProactiveChat.d.ts +4 -4
  217. package/lib/types/components/livechatwidget/common/updateSessionDataForTelemetry.d.ts +4 -4
  218. package/lib/types/components/livechatwidget/interfaces/IBotAuthActivitySubscriberOptionalParams.d.ts +4 -4
  219. package/lib/types/components/livechatwidget/interfaces/IDraggableChatWidgetProps.d.ts +10 -10
  220. package/lib/types/components/livechatwidget/interfaces/IFeatureConfigProps.d.ts +3 -3
  221. package/lib/types/components/livechatwidget/interfaces/ILiveChatWidgetComponentOverrides.d.ts +17 -17
  222. package/lib/types/components/livechatwidget/interfaces/ILiveChatWidgetControlProps.d.ts +21 -21
  223. package/lib/types/components/livechatwidget/interfaces/ILiveChatWidgetProps.d.ts +70 -68
  224. package/lib/types/components/livechatwidget/interfaces/ILiveChatWidgetStyleProps.d.ts +5 -5
  225. package/lib/types/components/livechatwidget/interfaces/IMockProps.d.ts +8 -8
  226. package/lib/types/components/livechatwidget/interfaces/IScrollBarProps.d.ts +22 -22
  227. package/lib/types/components/livechatwidget/interfaces/ISendBox.d.ts +12 -12
  228. package/lib/types/components/livechatwidget/livechatwidgetstateful/LiveChatWidgetStateful.d.ts +3 -3
  229. package/lib/types/components/loadingpanestateful/LoadingPaneStateful.d.ts +3 -2
  230. package/lib/types/components/loadingpanestateful/common/defaultStyleProps/defaultgeneralLoadingPaneStyleProps.d.ts +2 -2
  231. package/lib/types/components/loadingpanestateful/common/errorUIStyleProps/errorUILoadingPaneStyleProps.d.ts +2 -2
  232. package/lib/types/components/notificationpanestateful/NotificationPaneStateful.d.ts +4 -3
  233. package/lib/types/components/notificationpanestateful/defaultProps/defaultChatDisconnectControlProps.d.ts +2 -2
  234. package/lib/types/components/notificationpanestateful/defaultProps/defaultChatDisconnectStyleProps.d.ts +2 -2
  235. package/lib/types/components/notificationpanestateful/interfaces/INotificationPaneStatefulProps.d.ts +13 -13
  236. package/lib/types/components/ooohpanestateful/OOOHPaneStateful.d.ts +4 -3
  237. package/lib/types/components/ooohpanestateful/common/defaultStyleProps/defaultgeneralOOOHPaneStyleProps.d.ts +2 -2
  238. package/lib/types/components/postchatloadingpanestateful/PostChatLoadingPaneStateful.d.ts +4 -3
  239. package/lib/types/components/postchatloadingpanestateful/common/defaultgeneralPostChatLoadingPaneStyleProps.d.ts +2 -2
  240. package/lib/types/components/postchatsurveypanestateful/PostChatSurveyPaneStateful.d.ts +4 -3
  241. package/lib/types/components/postchatsurveypanestateful/common/defaultStyleProps/defaultgeneralPostChatSurveyPaneStyleProps.d.ts +2 -2
  242. package/lib/types/components/postchatsurveypanestateful/common/isValidSurveyUrl.d.ts +2 -2
  243. package/lib/types/components/postchatsurveypanestateful/enums/CustomerVoiceEvents.d.ts +5 -5
  244. package/lib/types/components/postchatsurveypanestateful/enums/PostChatSurveyMode.d.ts +4 -4
  245. package/lib/types/components/postchatsurveypanestateful/interfaces/IPostChatSurveyPaneStatefulProps.d.ts +5 -5
  246. package/lib/types/components/prechatsurveypanestateful/PreChatSurveyPaneStateful.d.ts +4 -3
  247. package/lib/types/components/prechatsurveypanestateful/common/defaultProps/defaultPreChatSurveyLocalizedTexts.d.ts +2 -2
  248. package/lib/types/components/prechatsurveypanestateful/common/defaultStyles/defaultGeneralPreChatSurveyPaneStyleProps.d.ts +2 -2
  249. package/lib/types/components/prechatsurveypanestateful/interfaces/IPreChatSurveyPaneStatefulParams.d.ts +5 -5
  250. package/lib/types/components/proactivechatpanestateful/ProactiveChatPaneStateful.d.ts +3 -2
  251. package/lib/types/components/proactivechatpanestateful/interfaces/IProactiveChatNotificationConfig.d.ts +3 -3
  252. package/lib/types/components/proactivechatpanestateful/interfaces/IProactiveChatPaneStatefulProps.d.ts +4 -4
  253. package/lib/types/components/reconnectchatpanestateful/ReconnectChatPaneStateful.d.ts +4 -3
  254. package/lib/types/components/reconnectchatpanestateful/interfaces/IReconnectChatContext.d.ts +4 -4
  255. package/lib/types/components/reconnectchatpanestateful/interfaces/IReconnectChatOptionalParams.d.ts +3 -3
  256. package/lib/types/components/reconnectchatpanestateful/interfaces/IReconnectChatPaneStatefulParams.d.ts +5 -5
  257. package/lib/types/components/reconnectchatpanestateful/interfaces/IReconnectChatPaneStatefulProps.d.ts +5 -5
  258. package/lib/types/components/startchaterrorpanestateful/StartChatErrorPaneStateful.d.ts +4 -3
  259. package/lib/types/components/startchaterrorpanestateful/common/defaultStartChatErrorPaneGeneralStyleProps.d.ts +2 -2
  260. package/lib/types/components/startchaterrorpanestateful/common/defaultStartChatErrorPaneIconImageProps.d.ts +2 -2
  261. package/lib/types/components/startchaterrorpanestateful/common/defaultStartChatErrorPaneIconStyleProps.d.ts +2 -2
  262. package/lib/types/components/startchaterrorpanestateful/common/defaultStartChatErrorPaneSubtitleStyleProps.d.ts +2 -2
  263. package/lib/types/components/startchaterrorpanestateful/common/defaultStartChatErrorPaneTitleStyleProps.d.ts +2 -2
  264. package/lib/types/components/startchaterrorpanestateful/interfaces/IStartChatErrorPaneClassNames.d.ts +5 -5
  265. package/lib/types/components/startchaterrorpanestateful/interfaces/IStartChatErrorPaneComponentOverrides.d.ts +6 -6
  266. package/lib/types/components/startchaterrorpanestateful/interfaces/IStartChatErrorPaneControlProps.d.ts +14 -14
  267. package/lib/types/components/startchaterrorpanestateful/interfaces/IStartChatErrorPaneProps.d.ts +8 -8
  268. package/lib/types/components/startchaterrorpanestateful/interfaces/IStartChatErrorPaneStyleProps.d.ts +10 -10
  269. package/lib/types/components/webchatcontainerstateful/WebChatContainerStateful.d.ts +4 -3
  270. package/lib/types/components/webchatcontainerstateful/common/DemoChatAdapter.d.ts +10 -10
  271. package/lib/types/components/webchatcontainerstateful/common/DemoChatSDK.d.ts +6 -6
  272. package/lib/types/components/webchatcontainerstateful/common/DesignerChatAdapter.d.ts +8 -8
  273. package/lib/types/components/webchatcontainerstateful/common/DesignerChatSDK.d.ts +31 -31
  274. package/lib/types/components/webchatcontainerstateful/common/MockBotCardCommandType.d.ts +6 -6
  275. package/lib/types/components/webchatcontainerstateful/common/MockBotCommand.d.ts +11 -11
  276. package/lib/types/components/webchatcontainerstateful/common/defaultProps/defaultAttachmentProps.d.ts +2 -2
  277. package/lib/types/components/webchatcontainerstateful/common/defaultProps/defaultMarkdownLocalizedTexts.d.ts +2 -2
  278. package/lib/types/components/webchatcontainerstateful/common/defaultProps/defaultMiddlewareLocalizedTexts.d.ts +2 -2
  279. package/lib/types/components/webchatcontainerstateful/common/defaultProps/defaultWebChatContainerStatefulProps.d.ts +2 -2
  280. package/lib/types/components/webchatcontainerstateful/common/defaultProps/defaultWebChatStatefulProps.d.ts +2 -2
  281. package/lib/types/components/webchatcontainerstateful/common/defaultStyles/defaultAdaptiveCardStyles.d.ts +2 -2
  282. package/lib/types/components/webchatcontainerstateful/common/defaultStyles/defaultWebChatStatefulContainerStyles.d.ts +2 -2
  283. package/lib/types/components/webchatcontainerstateful/common/defaultStyles/defaultWebChatStyles.d.ts +2 -2
  284. package/lib/types/components/webchatcontainerstateful/common/mockadapter.d.ts +14 -14
  285. package/lib/types/components/webchatcontainerstateful/common/mockchatsdk.d.ts +45 -45
  286. package/lib/types/components/webchatcontainerstateful/common/utils/BrowserInfo.d.ts +5 -5
  287. package/lib/types/components/webchatcontainerstateful/common/utils/FileAttachmentIconManager.d.ts +7 -7
  288. package/lib/types/components/webchatcontainerstateful/common/utils/attachmentActivityUtils.d.ts +9 -9
  289. package/lib/types/components/webchatcontainerstateful/common/utils/chatAdapterUtils.d.ts +9 -9
  290. package/lib/types/components/webchatcontainerstateful/common/utils/isMaskingFromCustomer.d.ts +2 -2
  291. package/lib/types/components/webchatcontainerstateful/interfaces/IAdaptiveCardStyles.d.ts +8 -8
  292. package/lib/types/components/webchatcontainerstateful/interfaces/IAttachmentProps.d.ts +5 -5
  293. package/lib/types/components/webchatcontainerstateful/interfaces/IBotAuthConfig.d.ts +4 -4
  294. package/lib/types/components/webchatcontainerstateful/interfaces/IBotMagicCodeConfig.d.ts +4 -4
  295. package/lib/types/components/webchatcontainerstateful/interfaces/IDataMaskingInfo.d.ts +6 -6
  296. package/lib/types/components/webchatcontainerstateful/interfaces/IDataMaskingRule.d.ts +3 -3
  297. package/lib/types/components/webchatcontainerstateful/interfaces/IDataMaskingSetting.d.ts +4 -4
  298. package/lib/types/components/webchatcontainerstateful/interfaces/IRenderingMiddlewareProps.d.ts +37 -37
  299. package/lib/types/components/webchatcontainerstateful/interfaces/IWebChatAction.d.ts +4 -4
  300. package/lib/types/components/webchatcontainerstateful/interfaces/IWebChatContainerStatefulProps.d.ts +28 -28
  301. package/lib/types/components/webchatcontainerstateful/interfaces/IWebChatProps.d.ts +39 -39
  302. package/lib/types/components/webchatcontainerstateful/webchatcontroller/BotMagicCodeStore.d.ts +3 -3
  303. package/lib/types/components/webchatcontainerstateful/webchatcontroller/WebChatStoreLoader.d.ts +3 -3
  304. package/lib/types/components/webchatcontainerstateful/webchatcontroller/enums/BrowserVendor.d.ts +9 -9
  305. package/lib/types/components/webchatcontainerstateful/webchatcontroller/enums/DirectLineActivityType.d.ts +4 -4
  306. package/lib/types/components/webchatcontainerstateful/webchatcontroller/enums/DirectLineSenderRole.d.ts +5 -5
  307. package/lib/types/components/webchatcontainerstateful/webchatcontroller/enums/MessageType.d.ts +11 -11
  308. package/lib/types/components/webchatcontainerstateful/webchatcontroller/enums/NotificationLevel.d.ts +6 -6
  309. package/lib/types/components/webchatcontainerstateful/webchatcontroller/enums/NotificationScenarios.d.ts +11 -11
  310. package/lib/types/components/webchatcontainerstateful/webchatcontroller/enums/SendStatus.d.ts +5 -5
  311. package/lib/types/components/webchatcontainerstateful/webchatcontroller/enums/WebChatActionType.d.ts +24 -24
  312. package/lib/types/components/webchatcontainerstateful/webchatcontroller/markdownrenderers/HyperlinkTextOverrideRenderer.d.ts +9 -9
  313. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/adaptermiddlewares/formatTagsEgressMiddleware.d.ts +2 -2
  314. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/adaptermiddlewares/formatTagsIngressMiddleware.d.ts +2 -2
  315. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/activityMiddleware.d.ts +10 -10
  316. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/activityStatusMiddleware.d.ts +1 -1
  317. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachmentMiddleware.d.ts +6 -6
  318. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachments/Attachment.d.ts +3 -2
  319. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachments/AttachmentContent.d.ts +3 -2
  320. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachments/AttachmentIcon.d.ts +3 -2
  321. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachments/DownloadBlockedAttachment.d.ts +3 -2
  322. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachments/FileScanStatus.d.ts +6 -6
  323. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachments/MaliciousAttachment.d.ts +3 -2
  324. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachments/ScanInProgressAttachment.d.ts +3 -2
  325. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachments/Spinner.d.ts +3 -2
  326. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/avatarMiddleware.d.ts +8 -8
  327. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/cardActionMiddleware.d.ts +2 -2
  328. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAttachmentContentStyles.d.ts +1 -2
  329. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAttachmentDividerStyles.d.ts +1 -2
  330. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAttachmentDownloadIconStyles.d.ts +1 -2
  331. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAttachmentFileNameStyles.d.ts +1 -2
  332. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAttachmentSizeStyles.d.ts +1 -2
  333. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAtttachmentAdaptiveCardStyles.d.ts +1 -2
  334. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAtttachmentIconStyles.d.ts +1 -2
  335. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAtttachmentStyles.d.ts +1 -2
  336. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAvatarStyles.d.ts +1 -2
  337. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAvatarTextStyles.d.ts +1 -2
  338. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultReceivedMessageAnchorStyles.d.ts +1 -2
  339. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultSentMessageAnchorStyles.d.ts +1 -2
  340. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultSystemMessageBoxStyles.d.ts +3 -3
  341. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultSystemMessageStyles.d.ts +11 -11
  342. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTimestampContentStyles.d.ts +2 -2
  343. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTimestampFailedStyles.d.ts +1 -2
  344. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTimestampRetryStyles.d.ts +1 -2
  345. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTypingIndicatorBubbleStyles.d.ts +1 -2
  346. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTypingIndicatorContainerStyles.d.ts +1 -2
  347. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTypingIndicatorMessageStyles.d.ts +1 -2
  348. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultUserMessageBoxStyles.d.ts +3 -3
  349. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultUserMessageStyles.d.ts +3 -3
  350. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/groupActivitiesMiddleware.d.ts +10 -10
  351. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/index.d.ts +10 -10
  352. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/messageSequenceIdOverrideMiddleware.d.ts +4 -4
  353. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/messageTimestampMiddleware.d.ts +4 -4
  354. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/timestamps/DeliveredTimestamp.d.ts +2 -1
  355. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/timestamps/NotDeliveredTimestamp.d.ts +2 -1
  356. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/timestamps/SendingTimestamp.d.ts +2 -1
  357. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/toastMiddleware.d.ts +2 -2
  358. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/typingIndicatorMiddleware.d.ts +7 -6
  359. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/attachmentProcessingMiddleware.d.ts +10 -10
  360. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/attachmentUploadValidatorMiddleware.d.ts +11 -11
  361. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/channelDataMiddleware.d.ts +10 -10
  362. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/conversationEndMiddleware.d.ts +11 -11
  363. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/dataMaskingMiddleware.d.ts +11 -11
  364. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/gifUploadMiddleware.d.ts +10 -10
  365. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/htmlPlayerMiddleware.d.ts +10 -10
  366. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/htmlTextMiddleware.d.ts +10 -10
  367. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/maxMessageSizeValidator.d.ts +11 -11
  368. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/preProcessingMiddleware.d.ts +10 -10
  369. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/sanitizationMiddleware.d.ts +10 -10
  370. package/lib/types/components/webchatcontainerstateful/webchatcontroller/notification/NotificationHandler.d.ts +12 -12
  371. package/lib/types/components/webchatcontainerstateful/webchatcontroller/webchattelemetry/WebChatLogger.d.ts +1 -1
  372. package/lib/types/contexts/ChatAdapterStore.d.ts +1 -2
  373. package/lib/types/contexts/ChatContextStore.d.ts +1 -1
  374. package/lib/types/contexts/ChatSDKStore.d.ts +1 -1
  375. package/lib/types/contexts/FacadeChatSDKStore.d.ts +1 -1
  376. package/lib/types/contexts/common/ConversationState.d.ts +13 -13
  377. package/lib/types/contexts/common/ILiveChatWidgetAction.d.ts +5 -5
  378. package/lib/types/contexts/common/ILiveChatWidgetContext.d.ts +63 -63
  379. package/lib/types/contexts/common/ILiveChatWidgetLocalizedTexts.d.ts +40 -40
  380. package/lib/types/contexts/common/LiveChatWidgetActionType.d.ts +48 -48
  381. package/lib/types/contexts/common/LiveChatWidgetContextInitialState.d.ts +3 -3
  382. package/lib/types/contexts/common/StartChatFailureType.d.ts +5 -5
  383. package/lib/types/contexts/createReducer.d.ts +4 -4
  384. package/lib/types/controller/componentController.d.ts +16 -16
  385. package/lib/types/firstresponselatency/Constants.d.ts +30 -0
  386. package/lib/types/firstresponselatency/FirstMessageTrackerFromBot.d.ts +1 -0
  387. package/lib/types/firstresponselatency/FirstResponseLatencyTracker.d.ts +22 -0
  388. package/lib/types/firstresponselatency/util.d.ts +7 -0
  389. package/lib/types/hooks/useChatAdapterStore.d.ts +2 -2
  390. package/lib/types/hooks/useChatContextStore.d.ts +5 -5
  391. package/lib/types/hooks/useChatSDKStore.d.ts +2 -2
  392. package/lib/types/hooks/useDebounce.d.ts +3 -3
  393. package/lib/types/hooks/useFacadeChatSDKStore.d.ts +3 -3
  394. package/lib/types/hooks/useWindowDimensions.d.ts +4 -4
  395. package/lib/types/index.d.ts +11 -11
  396. package/lib/types/plugins/createChatTranscript.d.ts +3 -3
  397. package/lib/types/plugins/newMessageEventHandler.d.ts +2 -2
  398. package/package.json +41 -16
@@ -1,277 +1,283 @@
1
- export declare class Constants {
2
- static readonly magicCodeBroadcastChannel = "MagicCodeChannel";
3
- static readonly magicCodeResponseBroadcastChannel = "MagicCodeResponseChannel";
4
- static readonly systemMessageTag = "system";
5
- static readonly userMessageTag = "user";
6
- static readonly historyMessageTag = "history";
7
- static readonly agentEndConversationMessageTag = "agentendconversation";
8
- static readonly supervisorForceCloseMessageTag = "supervisorforceclosedconversation";
9
- static readonly receivedMessageClassName = "ms_lcw_webchat_received_message";
10
- static readonly sentMessageClassName = "ms_lcw_webchat_sent_message";
11
- static readonly webchatChannelId = "webchat";
12
- static readonly markdown = "markdown";
13
- static readonly actionType = "actionType";
14
- static readonly markDownSystemMessageClass = "webchat__basic-transcript__activity-markdown-body";
15
- static readonly String = "string";
16
- static readonly ChatMessagesJson = "chatMessagesJson";
17
- static readonly truePascal = "True";
18
- static readonly true = "true";
19
- static readonly false = "false";
20
- static readonly maximumUnreadMessageCount = 99;
21
- static readonly userParticipantTypeTag = "User";
22
- static readonly botParticipantTypeTag = "Bot";
23
- static readonly channelIdKey = "ChannelId-";
24
- static readonly ChannelId = "lcw";
25
- static readonly CustomerTag = "FromCustomer";
26
- static readonly GifContentType = "image/gif";
27
- static readonly video = "video";
28
- static readonly audio = "audio";
29
- static readonly controlsList = "controlsList";
30
- static readonly nodownload = "nodownload";
31
- static readonly activity = "activity";
32
- static readonly payload = "payload";
33
- static readonly text = "text";
34
- static readonly blank = "_blank";
35
- static readonly visitorIdPrefix = "8:";
36
- static readonly left = "left";
37
- static readonly queuePositionMessageTag = "queueposition";
38
- static readonly averageWaitTimeMessageTag = "averagewaittime";
39
- static readonly message = "message";
40
- static readonly hiddenTag = "Hidden";
41
- static readonly prefixTimestampTag = "ServerMessageTimestamp_";
42
- static readonly acsChannel = "ACS_CHANNEL";
43
- static readonly publicMessageTag = "public";
44
- static readonly supportedAdaptiveCardContentTypes: Array<string>;
45
- static readonly adaptiveCardContentTypePrefix = "application/vnd.microsoft.card";
46
- static readonly maxUploadFileSize = "500000";
47
- static readonly imageRegex: RegExp;
48
- static readonly audioMediaRegex: RegExp;
49
- static readonly videoMediaRegex: RegExp;
50
- static readonly chromeSupportedInlineMediaRegex: RegExp;
51
- static readonly firefoxSupportedInlineMediaRegex: RegExp;
52
- static readonly CallAdded = "callAdded";
53
- static readonly LocalVideoStreamAdded = "localVideoStreamAdded";
54
- static readonly LocalVideoStreamRemoved = "localVideoStreamRemoved";
55
- static readonly RemoteVideoStreamAdded = "remoteVideoStreamAdded";
56
- static readonly RemoteVideoStreamRemoved = "remoteVideoStreamRemoved";
57
- static readonly CallDisconnected = "callDisconnected";
58
- static readonly IncomingCallEnded = "incomingCallEnded";
59
- static readonly VoiceVideoInitialize = "voiceVideoInitialize";
60
- static readonly VoiceVideoInitializeException = "voiceVideoInitializeOnException";
61
- static readonly VoiceVideoLoading = "voiceVideoLoading";
62
- static readonly VoiceVideoNotLoaded = "voiceVideoNotLoaded";
63
- static readonly VoiceVideoLoadingException = "voiceVideoLoadingOnException";
64
- static readonly VoiceVideoAcceptCallException = "voiceVideoAcceptCallOnException";
65
- static readonly VoiceVideoAcceptCallWithVideoException = "voiceVideoAcceptCallWithVideoException";
66
- static readonly defaultDownloadTranscriptError = "Download transcript failed.";
67
- static readonly ProactiveChatInviteTimeoutInMs = 60000;
68
- static readonly InputSubmit = "InputSubmit";
69
- static readonly ReconnectIdAttributeName = "oc.reconnectid";
70
- static readonly LiveChatWidget = "LiveChatWidgetNew";
71
- static readonly GuidPattern = "xx-x-4m-ym-xxx";
72
- static readonly Default = "default";
73
- static readonly Zero = "zero";
74
- static readonly Title = "title";
75
- static readonly Target = "target";
76
- static readonly Blank = "_blank";
77
- static readonly TargetSelf = "_self";
78
- static readonly TargetTop = "_top";
79
- static readonly TargetRelationship = "rel";
80
- static readonly TargetRelationshipAttributes = "noopener noreferrer";
81
- static readonly OpenLinkIconCssClass = "webchat__render-markdown__external-link-icon";
82
- static readonly internetConnectionTestUrl = "https://ocsdk-prod.azureedge.net/public/connecttest.txt";
83
- static readonly internetConnectionTestUrlText = "Omnichannel Connect Test";
84
- static readonly ChatWidgetStateChangedPrefix = "ChatWidgetStateChanged";
85
- static readonly PostChatLoadingDurationInMs = 2000;
86
- static readonly BrowserUnloadConfirmationMessage = "Do you want to leave chat?";
87
- static readonly CacheTtlInMinutes = 15;
88
- static readonly SessionCacheSuffix = "session";
89
- static readonly PopoutCacheSuffix = "popout";
90
- static readonly LWICheckOnVisibilityTimeout: number;
91
- static readonly InitContextParamsRequest = "initContextParamsRequest";
92
- static readonly InitContextParamsResponse = "initContextParamsResponse";
93
- static readonly OCOriginalMessageId = "OriginalMessageId";
94
- static readonly WebchatSequenceIdAttribute = "webchat:sequence-id";
95
- static readonly MessageSequenceIdOverride = "MessageSequenceIdOverride";
96
- }
97
- export declare const Regex: {
98
- new (): {};
99
- 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])+)\\])";
100
- };
101
- export declare class HtmlIdNames {
102
- static readonly MSLiveChatWidget = "MSLiveChatWidget";
103
- }
104
- export declare class HtmlClassNames {
105
- static readonly webChatBannerCloseButton = "webchat__toast__dismissButton";
106
- static readonly webChatBannerExpandButton = "webchat__toaster__expandIcon";
107
- static readonly webChatHistoryContainer = "webchat__basic-transcript";
108
- }
109
- export declare class HtmlElementSelectors {
110
- static readonly sendBoxSelector = "textarea[data-id=\"webchat-sendbox-input\"]";
111
- }
112
- export declare class HtmlAttributeNames {
113
- static readonly role = "role";
114
- static readonly navigation = "navigation";
115
- static readonly ariaLabel = "aria-label";
116
- static readonly ariaLive = "aria-live";
117
- static readonly ariaDisabled = "aria-disabled";
118
- static readonly form = "form";
119
- static readonly ariaLabelledby = "aria-labelledby";
120
- static readonly tabindex = "tabindex";
121
- static readonly ariaRequired = "aria-required";
122
- static readonly ariaDesribedby = "aria-describedby";
123
- static readonly ariaHidden = "aria-hidden";
124
- static readonly disabled = "disabled";
125
- static readonly hidden = "hidden";
126
- static readonly download = "download";
127
- static readonly href = "href";
128
- static readonly region = "region";
129
- static readonly button = "button";
130
- static readonly input = "Input";
131
- static readonly style = "style";
132
- static readonly head = "head";
133
- static readonly type = "type";
134
- static readonly csstext = "text/css";
135
- static readonly listItem = "LI";
136
- static readonly unorderedList = "UL";
137
- static readonly div = "div";
138
- static readonly aTagName = "a";
139
- static readonly pTagName = "p";
140
- static readonly noopenerTag = "noopener";
141
- static readonly noreferrerTag = "noreferrer";
142
- static readonly adaptiveCardClassName = "ac-adaptiveCard";
143
- static readonly adaptiveCardTextBlockClassName = "ac-textBlock";
144
- static readonly adaptiveCardToggleInputClassName = "ac-toggleInput";
145
- static readonly adaptiveCardActionSetClassName = "ac-actionSet";
146
- }
147
- export declare class WebChatMiddlewareConstants {
148
- static readonly nextVisibleActivity = "nextVisibleActivity";
149
- static readonly timeBetweenTimestampGroups = 300000;
150
- static readonly maxTextLength = 6000;
151
- static readonly adaptiveCard = "AdaptiveCard";
152
- }
153
- export declare class AMSConstants {
154
- static readonly supportedImagesMimeTypes: string[];
155
- static readonly maxSupportedImageSize = 20;
156
- static readonly maxSupportedFileSize = 300;
157
- }
158
- export declare class MimeTypes {
159
- static readonly UnknownFileType = "application/octet-stream";
160
- }
161
- export declare class LocaleConstants {
162
- static readonly RTL_LOCALES: string[];
163
- }
164
- export declare enum ElementType {
165
- CallingContainerSDK = "CallingContainerSDK"
166
- }
167
- export declare enum EnvironmentVersion {
168
- prod = "prod",
169
- dogfood = "df",
170
- int = "int",
171
- test = "test"
172
- }
173
- export declare enum E2VVOptions {
174
- NoCalling = "192350000",
175
- VideoAndVoiceCalling = "192350001",
176
- VoiceOnly = "192350002"
177
- }
178
- export declare enum ConversationMode {
179
- Regular = "192350000",
180
- Persistent = "192350001"
181
- }
182
- export declare enum LiveWorkItemState {
183
- Active = "Active",
184
- Closed = "Closed",
185
- Open = "Open",
186
- Waiting = "Waiting",
187
- WrapUp = "WrapUp"
188
- }
189
- export declare enum StorageType {
190
- "localStorage" = 0,
191
- "sessionStorage" = 1
192
- }
193
- export declare enum ParticipantType {
194
- User = "User",
195
- Bot = "Bot"
196
- }
197
- export declare enum ConversationEndEntity {
198
- Customer = "Customer",
199
- Agent = "Agent",
200
- Bot = "Bot",
201
- NotSet = "NotSet"
202
- }
203
- export declare enum ConfirmationState {
204
- Ok = "Ok",
205
- Cancel = "Cancel",
206
- NotSet = "NotSet"
207
- }
208
- export declare class TranscriptConstants {
209
- static readonly ChatTranscriptsBodyColor = "#F5F5F5";
210
- static readonly TranscriptMessageEmojiMessageType = "http://schema.skype.com/emoji";
211
- static readonly ChatTranscriptDownloadFile = "ChatTranscripts.html";
212
- static readonly DefaultFileAttachmentName = "Untitled.txt";
213
- static readonly CustomerDialogColor = "#E8E8E8";
214
- static readonly CustomerFontColor = "black";
215
- static readonly AdaptiveCardType = "adaptivecard";
216
- static readonly InternalMode = "internal";
217
- static readonly AgentDialogColor = "#2266E3";
218
- static readonly AgentFontColor = "white";
219
- }
220
- export declare class NotificationPaneConstants {
221
- static readonly DefaultNotificationPaneId = "lcw-notification-pane";
222
- static readonly DismissId = "lcw-notification-pane-dismiss-button";
223
- static readonly DismissText = "Dismiss";
224
- static readonly DismissAriaLabel = "Notification dismiss";
225
- static readonly CloseChatId = "lcw-notification-pane-close-chat-button";
226
- static readonly CloseChatText = "Close Chat";
227
- static readonly CloseChatAriaLabel = "Close chat";
228
- static readonly IconId = "lcw-notification-pane-icon";
229
- static readonly IconText = "Notification Icon";
230
- static readonly ChatDisconnectTitleText = "Chat disconnected";
231
- static readonly ChatDisconnectSubtitleText = "For additional assistance, please close the chat and try again.";
232
- static readonly ChromeCloseIconName = "ChromeClose";
233
- }
234
- export declare class StartChatErrorPaneConstants {
235
- static readonly DefaultStartChatErrorPaneId = "oc-lcw-start-chat-error-pane";
236
- static readonly DefaultStartChatErrorTitleText = "We are unable to load chat at this time.";
237
- static readonly DefaultStartChatErrorSubtitleText = "Please try again later.";
238
- static readonly DefaultStartChatErrorUnauthorizedTitleText = "Chat authentication has failed.";
239
- static readonly DefaultStartChatErrorAuthSetupErrorTitleText = "Chat authentication has failed.";
240
- static readonly DefaultStartChatErrorUnauthorizedSubtitleText = "UNAUTHORIZED";
241
- static readonly DefaultStartChatErrorAuthSetupErrorSubtitleText = "AUTH SETUP ERROR";
242
- }
243
- export declare class AriaTelemetryConstants {
244
- static readonly GERMANY_ENDPOINT: string;
245
- static readonly GCCH_ENDPOINT: string;
246
- static readonly DOD_ENDPOINT: string;
247
- static readonly EUROPE_ENDPOINT: string;
248
- static readonly MOONCAKE_ENDPOINT: string;
249
- static readonly Public: string;
250
- static readonly EU: string;
251
- static readonly lcwEUDomainNames: Array<string>;
252
- }
253
- export declare class WidgetLoadTelemetryMessage {
254
- static readonly OOOHMessage = "Widget is OOOH";
255
- static readonly PersistedStateRetrievedMessage = "Persisted state retrieved";
256
- }
257
- export declare class WidgetLoadCustomErrorString {
258
- static readonly AuthenticationFailedErrorString = "Authentication was not successful";
259
- static readonly NetworkErrorString = "Network Error";
260
- static readonly CloseAdapterAfterDisconnectionErrorString = "Error trying to end/close chat adapter after the widget is back on-line, for an already disconnected session";
261
- }
262
- export declare class PrepareEndChatDescriptionConstants {
263
- static readonly ConversationEndedByCustomerWithoutPostChat = "Conversation ended by customer. Post chat not configured or should not show.";
264
- static readonly ConversationEndedByCustomerWithInvalidPostChat = "Conversation ended by customer. Post chat context is invalid.";
265
- static readonly ConversationEndedBy = "Conversation ended by";
266
- static readonly PrepareEndChatError = "There's an error while preparing to end chat. Closing chat widget.";
267
- static readonly WidgetLoadFailedAfterSessionInit = "SessionInit was successful, but widget load failed. Ending chat to avoid ghost chats in OC.";
268
- static readonly InitiateEndChatReceived = "Received InitiateEndChat BroadcastEvent while conversation state is not Active. Ending chat.";
269
- static readonly EndChatReceivedFromOtherTabs = "Received EndChat BroadcastEvent from other tabs. Closing this chat.";
270
- static readonly CustomerCloseChatOnFailureOrPostChat = "Customer is trying to close chat widget on start chat failure or post chat pane.";
271
- static readonly CustomerCloseInactiveChat = "Chat was Inactive and customer is trying to close chat widget or refreshing the page.";
272
- static readonly BrowserUnload = "Browser unload event received. Ending chat.";
273
- }
274
- export declare class PostChatSurveyTelemetryMessage {
275
- static readonly PostChatContextCallFailed = "Failed to get post chat context.";
276
- static readonly PostChatContextCallSucceed = "Postchat context call succeed.";
277
- }
1
+ export declare class Constants {
2
+ static readonly magicCodeBroadcastChannel = "MagicCodeChannel";
3
+ static readonly magicCodeResponseBroadcastChannel = "MagicCodeResponseChannel";
4
+ static readonly systemMessageTag = "system";
5
+ static readonly userMessageTag = "user";
6
+ static readonly historyMessageTag = "history";
7
+ static readonly agentEndConversationMessageTag = "agentendconversation";
8
+ static readonly supervisorForceCloseMessageTag = "supervisorforceclosedconversation";
9
+ static readonly receivedMessageClassName = "ms_lcw_webchat_received_message";
10
+ static readonly sentMessageClassName = "ms_lcw_webchat_sent_message";
11
+ static readonly webchatChannelId = "webchat";
12
+ static readonly markdown = "markdown";
13
+ static readonly actionType = "actionType";
14
+ static readonly markDownSystemMessageClass = "webchat__basic-transcript__activity-markdown-body";
15
+ static readonly String = "string";
16
+ static readonly ChatMessagesJson = "chatMessagesJson";
17
+ static readonly truePascal = "True";
18
+ static readonly true = "true";
19
+ static readonly false = "false";
20
+ static readonly maximumUnreadMessageCount = 99;
21
+ static readonly userParticipantTypeTag = "User";
22
+ static readonly botParticipantTypeTag = "Bot";
23
+ static readonly channelIdKey = "ChannelId-";
24
+ static readonly ChannelId = "lcw";
25
+ static readonly CustomerTag = "FromCustomer";
26
+ static readonly GifContentType = "image/gif";
27
+ static readonly video = "video";
28
+ static readonly audio = "audio";
29
+ static readonly controlsList = "controlsList";
30
+ static readonly nodownload = "nodownload";
31
+ static readonly activity = "activity";
32
+ static readonly payload = "payload";
33
+ static readonly text = "text";
34
+ static readonly blank = "_blank";
35
+ static readonly visitorIdPrefix = "8:";
36
+ static readonly left = "left";
37
+ static readonly queuePositionMessageTag = "queueposition";
38
+ static readonly averageWaitTimeMessageTag = "averagewaittime";
39
+ static readonly message = "message";
40
+ static readonly hiddenTag = "Hidden";
41
+ static readonly prefixTimestampTag = "ServerMessageTimestamp_";
42
+ static readonly acsChannel = "ACS_CHANNEL";
43
+ static readonly publicMessageTag = "public";
44
+ static readonly supportedAdaptiveCardContentTypes: Array<string>;
45
+ static readonly adaptiveCardContentTypePrefix = "application/vnd.microsoft.card";
46
+ static readonly maxUploadFileSize = "500000";
47
+ static readonly imageRegex: RegExp;
48
+ static readonly audioMediaRegex: RegExp;
49
+ static readonly videoMediaRegex: RegExp;
50
+ static readonly chromeSupportedInlineMediaRegex: RegExp;
51
+ static readonly firefoxSupportedInlineMediaRegex: RegExp;
52
+ static readonly CallAdded = "callAdded";
53
+ static readonly LocalVideoStreamAdded = "localVideoStreamAdded";
54
+ static readonly LocalVideoStreamRemoved = "localVideoStreamRemoved";
55
+ static readonly RemoteVideoStreamAdded = "remoteVideoStreamAdded";
56
+ static readonly RemoteVideoStreamRemoved = "remoteVideoStreamRemoved";
57
+ static readonly CallDisconnected = "callDisconnected";
58
+ static readonly IncomingCallEnded = "incomingCallEnded";
59
+ static readonly VoiceVideoInitialize = "voiceVideoInitialize";
60
+ static readonly VoiceVideoInitializeException = "voiceVideoInitializeOnException";
61
+ static readonly VoiceVideoLoading = "voiceVideoLoading";
62
+ static readonly VoiceVideoNotLoaded = "voiceVideoNotLoaded";
63
+ static readonly VoiceVideoLoadingException = "voiceVideoLoadingOnException";
64
+ static readonly VoiceVideoAcceptCallException = "voiceVideoAcceptCallOnException";
65
+ static readonly VoiceVideoAcceptCallWithVideoException = "voiceVideoAcceptCallWithVideoException";
66
+ static readonly defaultDownloadTranscriptError = "Download transcript failed.";
67
+ static readonly ProactiveChatInviteTimeoutInMs = 60000;
68
+ static readonly InputSubmit = "InputSubmit";
69
+ static readonly ReconnectIdAttributeName = "oc.reconnectid";
70
+ static readonly LiveChatWidget = "LiveChatWidgetNew";
71
+ static readonly GuidPattern = "xx-x-4m-ym-xxx";
72
+ static readonly Default = "default";
73
+ static readonly Zero = "zero";
74
+ static readonly Title = "title";
75
+ static readonly Target = "target";
76
+ static readonly Blank = "_blank";
77
+ static readonly TargetSelf = "_self";
78
+ static readonly TargetTop = "_top";
79
+ static readonly TargetRelationship = "rel";
80
+ static readonly TargetRelationshipAttributes = "noopener noreferrer";
81
+ static readonly OpenLinkIconCssClass = "webchat__render-markdown__external-link-icon";
82
+ static readonly internetConnectionTestUrl = "https://ocsdk-prod.azureedge.net/public/connecttest.txt";
83
+ static readonly internetConnectionTestUrlText = "Omnichannel Connect Test";
84
+ static readonly ChatWidgetStateChangedPrefix = "ChatWidgetStateChanged";
85
+ static readonly PostChatLoadingDurationInMs = 2000;
86
+ static readonly BrowserUnloadConfirmationMessage = "Do you want to leave chat?";
87
+ static readonly CacheTtlInMinutes = 15;
88
+ static readonly SessionCacheSuffix = "session";
89
+ static readonly PopoutCacheSuffix = "popout";
90
+ static readonly LWICheckOnVisibilityTimeout: number;
91
+ static readonly InitContextParamsRequest = "initContextParamsRequest";
92
+ static readonly InitContextParamsResponse = "initContextParamsResponse";
93
+ static readonly OCOriginalMessageId = "OriginalMessageId";
94
+ static readonly WebchatSequenceIdAttribute = "webchat:sequence-id";
95
+ static readonly MessageSequenceIdOverride = "MessageSequenceIdOverride";
96
+ }
97
+ export declare const Regex: {
98
+ new (): {};
99
+ 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])+)\\])";
100
+ };
101
+ export declare class HtmlIdNames {
102
+ static readonly MSLiveChatWidget = "MSLiveChatWidget";
103
+ }
104
+ export declare class HtmlClassNames {
105
+ static readonly webChatBannerCloseButton = "webchat__toast__dismissButton";
106
+ static readonly webChatBannerExpandButton = "webchat__toaster__expandIcon";
107
+ static readonly webChatHistoryContainer = "webchat__basic-transcript";
108
+ }
109
+ export declare class HtmlElementSelectors {
110
+ static readonly sendBoxSelector = "textarea[data-id=\"webchat-sendbox-input\"]";
111
+ }
112
+ export declare class HtmlAttributeNames {
113
+ static readonly role = "role";
114
+ static readonly navigation = "navigation";
115
+ static readonly ariaLabel = "aria-label";
116
+ static readonly ariaLive = "aria-live";
117
+ static readonly ariaDisabled = "aria-disabled";
118
+ static readonly form = "form";
119
+ static readonly ariaLabelledby = "aria-labelledby";
120
+ static readonly tabindex = "tabindex";
121
+ static readonly ariaRequired = "aria-required";
122
+ static readonly ariaDesribedby = "aria-describedby";
123
+ static readonly ariaHidden = "aria-hidden";
124
+ static readonly disabled = "disabled";
125
+ static readonly hidden = "hidden";
126
+ static readonly download = "download";
127
+ static readonly href = "href";
128
+ static readonly region = "region";
129
+ static readonly button = "button";
130
+ static readonly input = "Input";
131
+ static readonly style = "style";
132
+ static readonly head = "head";
133
+ static readonly type = "type";
134
+ static readonly csstext = "text/css";
135
+ static readonly listItem = "LI";
136
+ static readonly unorderedList = "UL";
137
+ static readonly div = "div";
138
+ static readonly aTagName = "a";
139
+ static readonly pTagName = "p";
140
+ static readonly noopenerTag = "noopener";
141
+ static readonly noreferrerTag = "noreferrer";
142
+ static readonly adaptiveCardClassName = "ac-adaptiveCard";
143
+ static readonly adaptiveCardTextBlockClassName = "ac-textBlock";
144
+ static readonly adaptiveCardToggleInputClassName = "ac-toggleInput";
145
+ static readonly adaptiveCardActionSetClassName = "ac-actionSet";
146
+ }
147
+ export declare class WebChatMiddlewareConstants {
148
+ static readonly nextVisibleActivity = "nextVisibleActivity";
149
+ static readonly timeBetweenTimestampGroups = 300000;
150
+ static readonly maxTextLength = 6000;
151
+ static readonly adaptiveCard = "AdaptiveCard";
152
+ }
153
+ export declare class AMSConstants {
154
+ static readonly supportedImagesMimeTypes: string[];
155
+ static readonly maxSupportedImageSize = 20;
156
+ static readonly maxSupportedFileSize = 300;
157
+ }
158
+ export declare class MimeTypes {
159
+ static readonly UnknownFileType = "application/octet-stream";
160
+ }
161
+ export declare class LocaleConstants {
162
+ static readonly RTL_LOCALES: string[];
163
+ }
164
+ export declare enum ElementType {
165
+ CallingContainerSDK = "CallingContainerSDK"
166
+ }
167
+ export declare enum EnvironmentVersion {
168
+ prod = "prod",
169
+ dogfood = "df",
170
+ int = "int",
171
+ test = "test"
172
+ }
173
+ export declare enum E2VVOptions {
174
+ NoCalling = "192350000",
175
+ VideoAndVoiceCalling = "192350001",
176
+ VoiceOnly = "192350002"
177
+ }
178
+ export declare enum ConversationMode {
179
+ Regular = "192350000",
180
+ Persistent = "192350001"
181
+ }
182
+ export declare enum LiveWorkItemState {
183
+ Active = "Active",
184
+ Closed = "Closed",
185
+ Open = "Open",
186
+ Waiting = "Waiting",
187
+ WrapUp = "WrapUp"
188
+ }
189
+ export declare enum StorageType {
190
+ "localStorage" = 0,
191
+ "sessionStorage" = 1
192
+ }
193
+ export declare enum ParticipantType {
194
+ User = "User",
195
+ Bot = "Bot"
196
+ }
197
+ export declare enum ConversationEndEntity {
198
+ Customer = "Customer",
199
+ Agent = "Agent",// Currently covers both for human agent and bot
200
+ Bot = "Bot",
201
+ NotSet = "NotSet"
202
+ }
203
+ export declare enum ConfirmationState {
204
+ Ok = "Ok",
205
+ Cancel = "Cancel",
206
+ NotSet = "NotSet"
207
+ }
208
+ export declare class TranscriptConstants {
209
+ static readonly ChatTranscriptsBodyColor = "#F5F5F5";
210
+ static readonly TranscriptMessageEmojiMessageType = "http://schema.skype.com/emoji";
211
+ static readonly ChatTranscriptDownloadFile = "ChatTranscripts.html";
212
+ static readonly DefaultFileAttachmentName = "Untitled.txt";
213
+ static readonly CustomerDialogColor = "#E8E8E8";
214
+ static readonly CustomerFontColor = "black";
215
+ static readonly AdaptiveCardType = "adaptivecard";
216
+ static readonly InternalMode = "internal";
217
+ static readonly AgentDialogColor = "#2266E3";
218
+ static readonly AgentFontColor = "white";
219
+ }
220
+ export declare class NotificationPaneConstants {
221
+ static readonly DefaultNotificationPaneId = "lcw-notification-pane";
222
+ static readonly DismissId = "lcw-notification-pane-dismiss-button";
223
+ static readonly DismissText = "Dismiss";
224
+ static readonly DismissAriaLabel = "Notification dismiss";
225
+ static readonly CloseChatId = "lcw-notification-pane-close-chat-button";
226
+ static readonly CloseChatText = "Close Chat";
227
+ static readonly CloseChatAriaLabel = "Close chat";
228
+ static readonly IconId = "lcw-notification-pane-icon";
229
+ static readonly IconText = "Notification Icon";
230
+ static readonly ChatDisconnectTitleText = "Chat disconnected";
231
+ static readonly ChatDisconnectSubtitleText = "For additional assistance, please close the chat and try again.";
232
+ static readonly ChromeCloseIconName = "ChromeClose";
233
+ }
234
+ export declare class StartChatErrorPaneConstants {
235
+ static readonly DefaultStartChatErrorPaneId = "oc-lcw-start-chat-error-pane";
236
+ static readonly DefaultStartChatErrorTitleText = "We are unable to load chat at this time.";
237
+ static readonly DefaultStartChatErrorSubtitleText = "Please try again later.";
238
+ static readonly DefaultStartChatErrorUnauthorizedTitleText = "Chat authentication has failed.";
239
+ static readonly DefaultStartChatErrorAuthSetupErrorTitleText = "Chat authentication has failed.";
240
+ static readonly DefaultStartChatErrorUnauthorizedSubtitleText = "UNAUTHORIZED";
241
+ static readonly DefaultStartChatErrorAuthSetupErrorSubtitleText = "AUTH SETUP ERROR";
242
+ }
243
+ export declare class AriaTelemetryConstants {
244
+ static readonly GERMANY_ENDPOINT: string;
245
+ static readonly GCCH_ENDPOINT: string;
246
+ static readonly DOD_ENDPOINT: string;
247
+ static readonly EUROPE_ENDPOINT: string;
248
+ static readonly MOONCAKE_ENDPOINT: string;
249
+ static readonly Public: string;
250
+ static readonly EU: string;
251
+ static readonly lcwEUDomainNames: Array<string>;
252
+ }
253
+ export declare class WidgetLoadTelemetryMessage {
254
+ static readonly OOOHMessage = "Widget is OOOH";
255
+ static readonly PersistedStateRetrievedMessage = "Persisted state retrieved";
256
+ }
257
+ export declare class WidgetLoadCustomErrorString {
258
+ static readonly AuthenticationFailedErrorString = "Authentication was not successful";
259
+ static readonly NetworkErrorString = "Network Error";
260
+ static readonly CloseAdapterAfterDisconnectionErrorString = "Error trying to end/close chat adapter after the widget is back on-line, for an already disconnected session";
261
+ }
262
+ export declare class PrepareEndChatDescriptionConstants {
263
+ static readonly ConversationEndedByCustomerWithoutPostChat = "Conversation ended by customer. Post chat not configured or should not show.";
264
+ static readonly ConversationEndedByCustomerWithInvalidPostChat = "Conversation ended by customer. Post chat context is invalid.";
265
+ static readonly ConversationEndedBy = "Conversation ended by";
266
+ static readonly PrepareEndChatError = "There's an error while preparing to end chat. Closing chat widget.";
267
+ static readonly WidgetLoadFailedAfterSessionInit = "SessionInit was successful, but widget load failed. Ending chat to avoid ghost chats in OC.";
268
+ static readonly InitiateEndChatReceived = "Received InitiateEndChat BroadcastEvent while conversation state is not Active. Ending chat.";
269
+ static readonly EndChatReceivedFromOtherTabs = "Received EndChat BroadcastEvent from other tabs. Closing this chat.";
270
+ static readonly CustomerCloseChatOnFailureOrPostChat = "Customer is trying to close chat widget on start chat failure or post chat pane.";
271
+ static readonly CustomerCloseInactiveChat = "Chat was Inactive and customer is trying to close chat widget or refreshing the page.";
272
+ static readonly BrowserUnload = "Browser unload event received. Ending chat.";
273
+ }
274
+ export declare class PostChatSurveyTelemetryMessage {
275
+ static readonly PostChatContextCallFailed = "Failed to get post chat context.";
276
+ static readonly PostChatContextCallSucceed = "Postchat context call succeed.";
277
+ static readonly PostChatContextCallStarted = "Postchat context call started.";
278
+ }
279
+ export declare class AppInsightsTelemetryMessage {
280
+ static readonly AppInsightsInitialized = "Application Insights initialized successfully.";
281
+ static readonly AppInsightsInitError = "Error initializing Application Insights";
282
+ static readonly AppInsightsKeyError = "Invalid Application Insights key provided.";
283
+ }
@@ -1,5 +1,5 @@
1
- export declare const KeyCodes: {
2
- new (): {};
3
- readonly ENTER: "Enter";
4
- readonly TAB: "Tab";
5
- };
1
+ export declare const KeyCodes: {
2
+ new (): {};
3
+ readonly ENTER: "Enter";
4
+ readonly TAB: "Tab";
5
+ };
@@ -1,4 +1,4 @@
1
- import { IContextDataStore } from "../interfaces/IContextDataStore";
2
- export declare class DataStoreManager {
3
- static clientDataStore?: IContextDataStore;
4
- }
1
+ import { IContextDataStore } from "../interfaces/IContextDataStore";
2
+ export declare class DataStoreManager {
3
+ static clientDataStore?: IContextDataStore;
4
+ }