@microsoft/omnichannel-chat-widget 1.7.8-main.d71f599 → 1.7.8

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 (388) 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 +391 -305
  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 +151 -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 +13 -9
  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 +18 -6
  18. package/lib/cjs/components/livechatwidget/common/ActivityStreamHandler.js +32 -19
  19. package/lib/cjs/components/livechatwidget/common/ActivitySubscriber/BotAuthActivitySubscriber.js +70 -58
  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/registerTelemetryLoggers.js +3 -1
  26. package/lib/cjs/components/livechatwidget/common/renderSurveyHelpers.js +6 -3
  27. package/lib/cjs/components/livechatwidget/common/setPostChatContextAndLoadSurvey.js +7 -2
  28. package/lib/cjs/components/livechatwidget/common/startChat.js +43 -17
  29. package/lib/cjs/components/livechatwidget/common/startChatErrorHandler.js +5 -4
  30. package/lib/cjs/components/livechatwidget/livechatwidgetstateful/LiveChatWidgetStateful.js +25 -20
  31. package/lib/cjs/components/ooohpanestateful/OOOHPaneStateful.js +6 -4
  32. package/lib/cjs/components/postchatsurveypanestateful/PostChatSurveyPaneStateful.js +9 -4
  33. package/lib/cjs/components/prechatsurveypanestateful/PreChatSurveyPaneStateful.js +9 -6
  34. package/lib/cjs/components/proactivechatpanestateful/ProactiveChatPaneStateful.js +8 -6
  35. package/lib/cjs/components/webchatcontainerstateful/WebChatContainerStateful.js +7 -1
  36. package/lib/cjs/components/webchatcontainerstateful/common/DemoChatAdapter.js +88 -65
  37. package/lib/cjs/components/webchatcontainerstateful/common/DemoChatSDK.js +26 -7
  38. package/lib/cjs/components/webchatcontainerstateful/common/DesignerChatAdapter.js +49 -26
  39. package/lib/cjs/components/webchatcontainerstateful/common/DesignerChatSDK.js +57 -35
  40. package/lib/cjs/components/webchatcontainerstateful/common/mockadapter.js +62 -52
  41. package/lib/cjs/components/webchatcontainerstateful/common/mockchatsdk.js +95 -61
  42. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/BotMagicCodeStore.js +6 -1
  43. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/WebChatStoreLoader.js +6 -1
  44. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/markdownrenderers/HyperlinkTextOverrideRenderer.js +53 -39
  45. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/attachmentUploadValidatorMiddleware.js +2 -0
  46. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/notification/NotificationHandler.js +88 -60
  47. package/lib/cjs/contexts/common/LiveChatWidgetContextInitialState.js +5 -6
  48. package/lib/cjs/controller/componentController.js +3 -2
  49. package/lib/cjs/firstresponselatency/FirstResponseLatencyTracker.js +138 -116
  50. package/lib/cjs/plugins/createChatTranscript.js +88 -58
  51. package/lib/cjs/plugins/newMessageEventHandler.js +13 -10
  52. package/lib/esm/common/Constants.js +65 -19
  53. package/lib/esm/common/KeyCodes.js +6 -1
  54. package/lib/esm/common/contextDataStore/DataStoreManager.js +6 -1
  55. package/lib/esm/common/facades/FacadeChatSDK.js +391 -305
  56. package/lib/esm/common/storage/default/defaultCacheManager.js +6 -1
  57. package/lib/esm/common/telemetry/AppInsightsEvents.js +24 -0
  58. package/lib/esm/common/telemetry/ScenarioMarker.js +59 -0
  59. package/lib/esm/common/telemetry/TelemetryConstants.js +151 -129
  60. package/lib/esm/common/telemetry/TelemetryHelper.js +281 -250
  61. package/lib/esm/common/telemetry/TelemetryManager.js +32 -12
  62. package/lib/esm/common/telemetry/defaultConfigs/defaultAppInsightsConfig.js +4 -0
  63. package/lib/esm/common/telemetry/interfaces/IAppInsightsConfig.js +1 -0
  64. package/lib/esm/common/telemetry/loggers/appInsightsLogger.js +139 -0
  65. package/lib/esm/components/chatbuttonstateful/ChatButtonStateful.js +13 -9
  66. package/lib/esm/components/emailtranscriptpanestateful/EmailTranscriptPaneStateful.js +3 -2
  67. package/lib/esm/components/footerstateful/FooterStateful.js +11 -6
  68. package/lib/esm/components/headerstateful/HeaderStateful.js +18 -6
  69. package/lib/esm/components/livechatwidget/common/ActivityStreamHandler.js +32 -19
  70. package/lib/esm/components/livechatwidget/common/ActivitySubscriber/BotAuthActivitySubscriber.js +70 -58
  71. package/lib/esm/components/livechatwidget/common/ActivitySubscriber/DefaultActivitySubscriber.js +17 -8
  72. package/lib/esm/components/livechatwidget/common/ActivitySubscriber/HiddenAdaptiveCardActivitySubscriber.js +65 -52
  73. package/lib/esm/components/livechatwidget/common/ActivitySubscriber/PauseActivitySubscriber.js +31 -18
  74. package/lib/esm/components/livechatwidget/common/ChatAdapterShim.js +14 -6
  75. package/lib/esm/components/livechatwidget/common/Deferred.js +14 -6
  76. package/lib/esm/components/livechatwidget/common/registerTelemetryLoggers.js +3 -1
  77. package/lib/esm/components/livechatwidget/common/renderSurveyHelpers.js +6 -3
  78. package/lib/esm/components/livechatwidget/common/setPostChatContextAndLoadSurvey.js +7 -2
  79. package/lib/esm/components/livechatwidget/common/startChat.js +43 -17
  80. package/lib/esm/components/livechatwidget/common/startChatErrorHandler.js +5 -4
  81. package/lib/esm/components/livechatwidget/livechatwidgetstateful/LiveChatWidgetStateful.js +25 -20
  82. package/lib/esm/components/ooohpanestateful/OOOHPaneStateful.js +6 -4
  83. package/lib/esm/components/postchatsurveypanestateful/PostChatSurveyPaneStateful.js +9 -4
  84. package/lib/esm/components/prechatsurveypanestateful/PreChatSurveyPaneStateful.js +9 -6
  85. package/lib/esm/components/proactivechatpanestateful/ProactiveChatPaneStateful.js +8 -6
  86. package/lib/esm/components/webchatcontainerstateful/WebChatContainerStateful.js +7 -1
  87. package/lib/esm/components/webchatcontainerstateful/common/DemoChatAdapter.js +88 -65
  88. package/lib/esm/components/webchatcontainerstateful/common/DemoChatSDK.js +26 -7
  89. package/lib/esm/components/webchatcontainerstateful/common/DesignerChatAdapter.js +49 -26
  90. package/lib/esm/components/webchatcontainerstateful/common/DesignerChatSDK.js +57 -35
  91. package/lib/esm/components/webchatcontainerstateful/common/mockadapter.js +63 -52
  92. package/lib/esm/components/webchatcontainerstateful/common/mockchatsdk.js +95 -61
  93. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/BotMagicCodeStore.js +6 -1
  94. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/WebChatStoreLoader.js +6 -1
  95. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/markdownrenderers/HyperlinkTextOverrideRenderer.js +53 -39
  96. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/attachmentUploadValidatorMiddleware.js +2 -0
  97. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/notification/NotificationHandler.js +88 -60
  98. package/lib/esm/contexts/common/LiveChatWidgetContextInitialState.js +5 -6
  99. package/lib/esm/controller/componentController.js +3 -2
  100. package/lib/esm/firstresponselatency/FirstResponseLatencyTracker.js +138 -116
  101. package/lib/esm/plugins/createChatTranscript.js +88 -58
  102. package/lib/esm/plugins/newMessageEventHandler.js +13 -10
  103. package/lib/types/assets/Audios.d.ts +1 -1
  104. package/lib/types/assets/Icons.d.ts +16 -16
  105. package/lib/types/common/Constants.d.ts +283 -277
  106. package/lib/types/common/KeyCodes.d.ts +5 -5
  107. package/lib/types/common/contextDataStore/DataStoreManager.d.ts +4 -4
  108. package/lib/types/common/facades/FacadeChatSDK.d.ts +75 -75
  109. package/lib/types/common/facades/types/IFacadeChatSDKInput.d.ts +13 -13
  110. package/lib/types/common/interfaces/IContextDataStore.d.ts +14 -14
  111. package/lib/types/common/interfaces/ITimer.d.ts +3 -3
  112. package/lib/types/common/storage/default/defaultCacheManager.d.ts +5 -5
  113. package/lib/types/common/storage/default/defaultClientDataStoreProvider.d.ts +4 -4
  114. package/lib/types/common/storage/default/defaultInMemoryDataStore.d.ts +6 -6
  115. package/lib/types/common/telemetry/AppInsightsEvents.d.ts +1 -0
  116. package/lib/types/common/telemetry/ScenarioMarker.d.ts +19 -0
  117. package/lib/types/common/telemetry/TelemetryConstants.d.ts +272 -264
  118. package/lib/types/common/telemetry/TelemetryHelper.d.ts +48 -43
  119. package/lib/types/common/telemetry/TelemetryManager.d.ts +12 -12
  120. package/lib/types/common/telemetry/defaultConfigs/defaultAppInsightsConfig.d.ts +2 -0
  121. package/lib/types/common/telemetry/defaultConfigs/defaultAriaConfig.d.ts +2 -2
  122. package/lib/types/common/telemetry/defaultConfigs/defaultTelemetryConfiguration.d.ts +2 -2
  123. package/lib/types/common/telemetry/defaultConfigs/defaultTelemetryInternalData.d.ts +2 -2
  124. package/lib/types/common/telemetry/definitions/Contracts.d.ts +77 -77
  125. package/lib/types/common/telemetry/definitions/Payload.d.ts +105 -105
  126. package/lib/types/common/telemetry/interfaces/IAppInsightsConfig.d.ts +4 -0
  127. package/lib/types/common/telemetry/interfaces/IAriaConfigurations.d.ts +18 -18
  128. package/lib/types/common/telemetry/interfaces/IChatSDKLogger.d.ts +6 -5
  129. package/lib/types/common/telemetry/interfaces/IInternalTelemetryData.d.ts +23 -21
  130. package/lib/types/common/telemetry/interfaces/ITelemetryConfig.d.ts +48 -48
  131. package/lib/types/common/telemetry/interfaces/ITelemetryEvents.d.ts +7 -7
  132. package/lib/types/common/telemetry/loggers/appInsightsLogger.d.ts +10 -0
  133. package/lib/types/common/telemetry/loggers/ariaTelemetryLogger.d.ts +2 -2
  134. package/lib/types/common/telemetry/loggers/consoleLogger.d.ts +2 -2
  135. package/lib/types/common/utils.d.ts +49 -49
  136. package/lib/types/components/callingcontainerstateful/CallingContainerStateful.d.ts +4 -3
  137. package/lib/types/components/callingcontainerstateful/ICallingContainerStatefulProps.d.ts +4 -4
  138. package/lib/types/components/chatbuttonstateful/ChatButtonStateful.d.ts +4 -3
  139. package/lib/types/components/chatbuttonstateful/common/styleProps/defaultOutOfOfficeChatButtonStyleProps.d.ts +2 -2
  140. package/lib/types/components/chatbuttonstateful/interfaces/IChatButtonStatefulParams.d.ts +17 -17
  141. package/lib/types/components/confirmationpanestateful/ConfirmationPaneStateful.d.ts +4 -3
  142. package/lib/types/components/confirmationpanestateful/common/defaultProps/defaultConfirmationPaneLocalizedTexts.d.ts +2 -2
  143. package/lib/types/components/confirmationpanestateful/interfaces/IConfirmationPaneInputs.d.ts +4 -4
  144. package/lib/types/components/confirmationpanestateful/interfaces/IConfirmationPaneLocalizedText.d.ts +10 -10
  145. package/lib/types/components/confirmationpanestateful/interfaces/IConfirmationPaneStatefulParams.d.ts +13 -13
  146. package/lib/types/components/confirmationpanestateful/interfaces/IConfirmationPaneStatefulProps.d.ts +8 -8
  147. package/lib/types/components/dimlayer/DimLayer.d.ts +6 -5
  148. package/lib/types/components/draggable/DraggableChatWidget.d.ts +9 -9
  149. package/lib/types/components/draggable/DraggableEventEmitter.d.ts +27 -27
  150. package/lib/types/components/draggable/DraggableEventNames.d.ts +6 -6
  151. package/lib/types/components/draggable/DraggableEventReceiver.d.ts +27 -27
  152. package/lib/types/components/draggable/IDraggableElementPosition.d.ts +5 -5
  153. package/lib/types/components/draggable/IDraggableElementPositionDelta.d.ts +5 -5
  154. package/lib/types/components/draggable/IDraggableEvent.d.ts +12 -12
  155. package/lib/types/components/emailtranscriptpanestateful/EmailTranscriptPaneStateful.d.ts +4 -3
  156. package/lib/types/components/emailtranscriptpanestateful/interfaces/IChatTranscriptBody.d.ts +5 -5
  157. package/lib/types/components/emailtranscriptpanestateful/interfaces/IEmailTranscriptPaneProps.d.ts +11 -11
  158. package/lib/types/components/footerstateful/FooterStateful.d.ts +3 -2
  159. package/lib/types/components/footerstateful/audionotificationstateful/AudioNotificationStateful.d.ts +4 -3
  160. package/lib/types/components/footerstateful/audionotificationstateful/interfaces/IAudioNotificationProps.d.ts +3 -3
  161. package/lib/types/components/footerstateful/audionotificationstateful/interfaces/IAudioNotificationStatefulParams.d.ts +4 -4
  162. package/lib/types/components/footerstateful/downloadtranscriptstateful/DownloadTranscriptStateful.d.ts +4 -4
  163. package/lib/types/components/footerstateful/downloadtranscriptstateful/common/defaultLibraryScripts.d.ts +23 -23
  164. package/lib/types/components/footerstateful/downloadtranscriptstateful/interfaces/IDownloadTranscriptProps.d.ts +19 -19
  165. package/lib/types/components/footerstateful/downloadtranscriptstateful/interfaces/IWebChatTranscriptConfig.d.ts +14 -14
  166. package/lib/types/components/footerstateful/downloadtranscriptstateful/interfaces/TranscriptHtmlScripts.d.ts +33 -33
  167. package/lib/types/components/headerstateful/HeaderStateful.d.ts +4 -3
  168. package/lib/types/components/headerstateful/common/styleProps/defaultOutOfOfficeHeaderStyleProps.d.ts +2 -2
  169. package/lib/types/components/headerstateful/interfaces/IHeaderStatefulParams.d.ts +33 -33
  170. package/lib/types/components/livechatwidget/LiveChatWidget.d.ts +4 -3
  171. package/lib/types/components/livechatwidget/common/ActivityStreamHandler.d.ts +14 -14
  172. package/lib/types/components/livechatwidget/common/ActivitySubscriber/BotAuthActivitySubscriber.d.ts +12 -12
  173. package/lib/types/components/livechatwidget/common/ActivitySubscriber/DefaultActivitySubscriber.d.ts +5 -5
  174. package/lib/types/components/livechatwidget/common/ActivitySubscriber/HiddenAdaptiveCardActivitySubscriber.d.ts +7 -7
  175. package/lib/types/components/livechatwidget/common/ActivitySubscriber/IActivitySubscriber.d.ts +6 -6
  176. package/lib/types/components/livechatwidget/common/ActivitySubscriber/PauseActivitySubscriber.d.ts +7 -7
  177. package/lib/types/components/livechatwidget/common/ChatAdapterShim.d.ts +7 -7
  178. package/lib/types/components/livechatwidget/common/Deferred.d.ts +9 -9
  179. package/lib/types/components/livechatwidget/common/authHelper.d.ts +18 -18
  180. package/lib/types/components/livechatwidget/common/chatDisconnectHelper.d.ts +4 -4
  181. package/lib/types/components/livechatwidget/common/createAdapter.d.ts +3 -3
  182. package/lib/types/components/livechatwidget/common/createDownloadTranscriptProps.d.ts +25 -25
  183. package/lib/types/components/livechatwidget/common/createFooter.d.ts +4 -3
  184. package/lib/types/components/livechatwidget/common/createInternetConnectionChangeHandler.d.ts +2 -2
  185. package/lib/types/components/livechatwidget/common/createMarkdown.d.ts +2 -2
  186. package/lib/types/components/livechatwidget/common/defaultProps/defaultScrollBarProps.d.ts +2 -2
  187. package/lib/types/components/livechatwidget/common/defaultStyles/defaultLiveChatWidgetGeneralStyles.d.ts +2 -2
  188. package/lib/types/components/livechatwidget/common/disposeTelemetryLoggers.d.ts +1 -1
  189. package/lib/types/components/livechatwidget/common/endChat.d.ts +13 -13
  190. package/lib/types/components/livechatwidget/common/getGeneralStylesForButton.d.ts +3 -3
  191. package/lib/types/components/livechatwidget/common/getMockChatSDKIfApplicable.d.ts +1 -1
  192. package/lib/types/components/livechatwidget/common/helpers/markdownHelper.d.ts +2 -2
  193. package/lib/types/components/livechatwidget/common/initCallingSdk.d.ts +2 -2
  194. package/lib/types/components/livechatwidget/common/initConfirmationPropsComposer.d.ts +3 -3
  195. package/lib/types/components/livechatwidget/common/initWebChatComposer.d.ts +7 -7
  196. package/lib/types/components/livechatwidget/common/liveChatConfigUtils.d.ts +3 -3
  197. package/lib/types/components/livechatwidget/common/overridePropsOnMockIfApplicable.d.ts +3 -3
  198. package/lib/types/components/livechatwidget/common/persistentChatHelper.d.ts +1 -1
  199. package/lib/types/components/livechatwidget/common/reconnectChatHelper.d.ts +12 -12
  200. package/lib/types/components/livechatwidget/common/registerTelemetryLoggers.d.ts +4 -4
  201. package/lib/types/components/livechatwidget/common/renderSurveyHelpers.d.ts +10 -10
  202. package/lib/types/components/livechatwidget/common/setPostChatContextAndLoadSurvey.d.ts +4 -4
  203. package/lib/types/components/livechatwidget/common/shareObservable.d.ts +1 -1
  204. package/lib/types/components/livechatwidget/common/startChat.d.ts +11 -11
  205. package/lib/types/components/livechatwidget/common/startChatErrorHandler.d.ts +6 -6
  206. package/lib/types/components/livechatwidget/common/startProactiveChat.d.ts +4 -4
  207. package/lib/types/components/livechatwidget/common/updateSessionDataForTelemetry.d.ts +4 -4
  208. package/lib/types/components/livechatwidget/interfaces/IBotAuthActivitySubscriberOptionalParams.d.ts +4 -4
  209. package/lib/types/components/livechatwidget/interfaces/IDraggableChatWidgetProps.d.ts +10 -10
  210. package/lib/types/components/livechatwidget/interfaces/IFeatureConfigProps.d.ts +3 -3
  211. package/lib/types/components/livechatwidget/interfaces/ILiveChatWidgetComponentOverrides.d.ts +17 -17
  212. package/lib/types/components/livechatwidget/interfaces/ILiveChatWidgetControlProps.d.ts +21 -21
  213. package/lib/types/components/livechatwidget/interfaces/ILiveChatWidgetProps.d.ts +70 -68
  214. package/lib/types/components/livechatwidget/interfaces/ILiveChatWidgetStyleProps.d.ts +5 -5
  215. package/lib/types/components/livechatwidget/interfaces/IMockProps.d.ts +8 -8
  216. package/lib/types/components/livechatwidget/interfaces/IScrollBarProps.d.ts +22 -22
  217. package/lib/types/components/livechatwidget/interfaces/ISendBox.d.ts +12 -12
  218. package/lib/types/components/livechatwidget/livechatwidgetstateful/LiveChatWidgetStateful.d.ts +3 -3
  219. package/lib/types/components/loadingpanestateful/LoadingPaneStateful.d.ts +3 -2
  220. package/lib/types/components/loadingpanestateful/common/defaultStyleProps/defaultgeneralLoadingPaneStyleProps.d.ts +2 -2
  221. package/lib/types/components/loadingpanestateful/common/errorUIStyleProps/errorUILoadingPaneStyleProps.d.ts +2 -2
  222. package/lib/types/components/notificationpanestateful/NotificationPaneStateful.d.ts +4 -3
  223. package/lib/types/components/notificationpanestateful/defaultProps/defaultChatDisconnectControlProps.d.ts +2 -2
  224. package/lib/types/components/notificationpanestateful/defaultProps/defaultChatDisconnectStyleProps.d.ts +2 -2
  225. package/lib/types/components/notificationpanestateful/interfaces/INotificationPaneStatefulProps.d.ts +13 -13
  226. package/lib/types/components/ooohpanestateful/OOOHPaneStateful.d.ts +4 -3
  227. package/lib/types/components/ooohpanestateful/common/defaultStyleProps/defaultgeneralOOOHPaneStyleProps.d.ts +2 -2
  228. package/lib/types/components/postchatloadingpanestateful/PostChatLoadingPaneStateful.d.ts +4 -3
  229. package/lib/types/components/postchatloadingpanestateful/common/defaultgeneralPostChatLoadingPaneStyleProps.d.ts +2 -2
  230. package/lib/types/components/postchatsurveypanestateful/PostChatSurveyPaneStateful.d.ts +4 -3
  231. package/lib/types/components/postchatsurveypanestateful/common/defaultStyleProps/defaultgeneralPostChatSurveyPaneStyleProps.d.ts +2 -2
  232. package/lib/types/components/postchatsurveypanestateful/common/isValidSurveyUrl.d.ts +2 -2
  233. package/lib/types/components/postchatsurveypanestateful/enums/CustomerVoiceEvents.d.ts +5 -5
  234. package/lib/types/components/postchatsurveypanestateful/enums/PostChatSurveyMode.d.ts +4 -4
  235. package/lib/types/components/postchatsurveypanestateful/interfaces/IPostChatSurveyPaneStatefulProps.d.ts +5 -5
  236. package/lib/types/components/prechatsurveypanestateful/PreChatSurveyPaneStateful.d.ts +4 -3
  237. package/lib/types/components/prechatsurveypanestateful/common/defaultProps/defaultPreChatSurveyLocalizedTexts.d.ts +2 -2
  238. package/lib/types/components/prechatsurveypanestateful/common/defaultStyles/defaultGeneralPreChatSurveyPaneStyleProps.d.ts +2 -2
  239. package/lib/types/components/prechatsurveypanestateful/interfaces/IPreChatSurveyPaneStatefulParams.d.ts +5 -5
  240. package/lib/types/components/proactivechatpanestateful/ProactiveChatPaneStateful.d.ts +3 -2
  241. package/lib/types/components/proactivechatpanestateful/interfaces/IProactiveChatNotificationConfig.d.ts +3 -3
  242. package/lib/types/components/proactivechatpanestateful/interfaces/IProactiveChatPaneStatefulProps.d.ts +4 -4
  243. package/lib/types/components/reconnectchatpanestateful/ReconnectChatPaneStateful.d.ts +4 -3
  244. package/lib/types/components/reconnectchatpanestateful/interfaces/IReconnectChatContext.d.ts +4 -4
  245. package/lib/types/components/reconnectchatpanestateful/interfaces/IReconnectChatOptionalParams.d.ts +3 -3
  246. package/lib/types/components/reconnectchatpanestateful/interfaces/IReconnectChatPaneStatefulParams.d.ts +5 -5
  247. package/lib/types/components/reconnectchatpanestateful/interfaces/IReconnectChatPaneStatefulProps.d.ts +5 -5
  248. package/lib/types/components/startchaterrorpanestateful/StartChatErrorPaneStateful.d.ts +4 -3
  249. package/lib/types/components/startchaterrorpanestateful/common/defaultStartChatErrorPaneGeneralStyleProps.d.ts +2 -2
  250. package/lib/types/components/startchaterrorpanestateful/common/defaultStartChatErrorPaneIconImageProps.d.ts +2 -2
  251. package/lib/types/components/startchaterrorpanestateful/common/defaultStartChatErrorPaneIconStyleProps.d.ts +2 -2
  252. package/lib/types/components/startchaterrorpanestateful/common/defaultStartChatErrorPaneSubtitleStyleProps.d.ts +2 -2
  253. package/lib/types/components/startchaterrorpanestateful/common/defaultStartChatErrorPaneTitleStyleProps.d.ts +2 -2
  254. package/lib/types/components/startchaterrorpanestateful/interfaces/IStartChatErrorPaneClassNames.d.ts +5 -5
  255. package/lib/types/components/startchaterrorpanestateful/interfaces/IStartChatErrorPaneComponentOverrides.d.ts +6 -6
  256. package/lib/types/components/startchaterrorpanestateful/interfaces/IStartChatErrorPaneControlProps.d.ts +14 -14
  257. package/lib/types/components/startchaterrorpanestateful/interfaces/IStartChatErrorPaneProps.d.ts +8 -8
  258. package/lib/types/components/startchaterrorpanestateful/interfaces/IStartChatErrorPaneStyleProps.d.ts +10 -10
  259. package/lib/types/components/webchatcontainerstateful/WebChatContainerStateful.d.ts +4 -3
  260. package/lib/types/components/webchatcontainerstateful/common/DemoChatAdapter.d.ts +10 -10
  261. package/lib/types/components/webchatcontainerstateful/common/DemoChatSDK.d.ts +6 -6
  262. package/lib/types/components/webchatcontainerstateful/common/DesignerChatAdapter.d.ts +8 -8
  263. package/lib/types/components/webchatcontainerstateful/common/DesignerChatSDK.d.ts +31 -31
  264. package/lib/types/components/webchatcontainerstateful/common/MockBotCardCommandType.d.ts +6 -6
  265. package/lib/types/components/webchatcontainerstateful/common/MockBotCommand.d.ts +11 -11
  266. package/lib/types/components/webchatcontainerstateful/common/defaultProps/defaultAttachmentProps.d.ts +2 -2
  267. package/lib/types/components/webchatcontainerstateful/common/defaultProps/defaultMarkdownLocalizedTexts.d.ts +2 -2
  268. package/lib/types/components/webchatcontainerstateful/common/defaultProps/defaultMiddlewareLocalizedTexts.d.ts +2 -2
  269. package/lib/types/components/webchatcontainerstateful/common/defaultProps/defaultWebChatContainerStatefulProps.d.ts +2 -2
  270. package/lib/types/components/webchatcontainerstateful/common/defaultProps/defaultWebChatStatefulProps.d.ts +2 -2
  271. package/lib/types/components/webchatcontainerstateful/common/defaultStyles/defaultAdaptiveCardStyles.d.ts +2 -2
  272. package/lib/types/components/webchatcontainerstateful/common/defaultStyles/defaultWebChatStatefulContainerStyles.d.ts +2 -2
  273. package/lib/types/components/webchatcontainerstateful/common/defaultStyles/defaultWebChatStyles.d.ts +2 -2
  274. package/lib/types/components/webchatcontainerstateful/common/mockadapter.d.ts +14 -14
  275. package/lib/types/components/webchatcontainerstateful/common/mockchatsdk.d.ts +45 -45
  276. package/lib/types/components/webchatcontainerstateful/common/utils/BrowserInfo.d.ts +5 -5
  277. package/lib/types/components/webchatcontainerstateful/common/utils/FileAttachmentIconManager.d.ts +7 -7
  278. package/lib/types/components/webchatcontainerstateful/common/utils/attachmentActivityUtils.d.ts +9 -9
  279. package/lib/types/components/webchatcontainerstateful/common/utils/chatAdapterUtils.d.ts +9 -9
  280. package/lib/types/components/webchatcontainerstateful/common/utils/isMaskingFromCustomer.d.ts +2 -2
  281. package/lib/types/components/webchatcontainerstateful/interfaces/IAdaptiveCardStyles.d.ts +8 -8
  282. package/lib/types/components/webchatcontainerstateful/interfaces/IAttachmentProps.d.ts +5 -5
  283. package/lib/types/components/webchatcontainerstateful/interfaces/IBotAuthConfig.d.ts +4 -4
  284. package/lib/types/components/webchatcontainerstateful/interfaces/IBotMagicCodeConfig.d.ts +4 -4
  285. package/lib/types/components/webchatcontainerstateful/interfaces/IDataMaskingInfo.d.ts +6 -6
  286. package/lib/types/components/webchatcontainerstateful/interfaces/IDataMaskingRule.d.ts +3 -3
  287. package/lib/types/components/webchatcontainerstateful/interfaces/IDataMaskingSetting.d.ts +4 -4
  288. package/lib/types/components/webchatcontainerstateful/interfaces/IRenderingMiddlewareProps.d.ts +37 -37
  289. package/lib/types/components/webchatcontainerstateful/interfaces/IWebChatAction.d.ts +4 -4
  290. package/lib/types/components/webchatcontainerstateful/interfaces/IWebChatContainerStatefulProps.d.ts +28 -28
  291. package/lib/types/components/webchatcontainerstateful/interfaces/IWebChatProps.d.ts +39 -39
  292. package/lib/types/components/webchatcontainerstateful/webchatcontroller/BotMagicCodeStore.d.ts +3 -3
  293. package/lib/types/components/webchatcontainerstateful/webchatcontroller/WebChatStoreLoader.d.ts +3 -3
  294. package/lib/types/components/webchatcontainerstateful/webchatcontroller/enums/BrowserVendor.d.ts +9 -9
  295. package/lib/types/components/webchatcontainerstateful/webchatcontroller/enums/DirectLineActivityType.d.ts +4 -4
  296. package/lib/types/components/webchatcontainerstateful/webchatcontroller/enums/DirectLineSenderRole.d.ts +5 -5
  297. package/lib/types/components/webchatcontainerstateful/webchatcontroller/enums/MessageType.d.ts +11 -11
  298. package/lib/types/components/webchatcontainerstateful/webchatcontroller/enums/NotificationLevel.d.ts +6 -6
  299. package/lib/types/components/webchatcontainerstateful/webchatcontroller/enums/NotificationScenarios.d.ts +11 -11
  300. package/lib/types/components/webchatcontainerstateful/webchatcontroller/enums/SendStatus.d.ts +5 -5
  301. package/lib/types/components/webchatcontainerstateful/webchatcontroller/enums/WebChatActionType.d.ts +24 -24
  302. package/lib/types/components/webchatcontainerstateful/webchatcontroller/markdownrenderers/HyperlinkTextOverrideRenderer.d.ts +9 -9
  303. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/adaptermiddlewares/formatTagsEgressMiddleware.d.ts +2 -2
  304. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/adaptermiddlewares/formatTagsIngressMiddleware.d.ts +2 -2
  305. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/activityMiddleware.d.ts +10 -10
  306. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/activityStatusMiddleware.d.ts +1 -1
  307. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachmentMiddleware.d.ts +6 -6
  308. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachments/Attachment.d.ts +3 -2
  309. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachments/AttachmentContent.d.ts +3 -2
  310. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachments/AttachmentIcon.d.ts +3 -2
  311. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachments/DownloadBlockedAttachment.d.ts +3 -2
  312. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachments/FileScanStatus.d.ts +6 -6
  313. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachments/MaliciousAttachment.d.ts +3 -2
  314. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachments/ScanInProgressAttachment.d.ts +3 -2
  315. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachments/Spinner.d.ts +3 -2
  316. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/avatarMiddleware.d.ts +8 -8
  317. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/cardActionMiddleware.d.ts +2 -2
  318. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAttachmentContentStyles.d.ts +1 -2
  319. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAttachmentDividerStyles.d.ts +1 -2
  320. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAttachmentDownloadIconStyles.d.ts +1 -2
  321. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAttachmentFileNameStyles.d.ts +1 -2
  322. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAttachmentSizeStyles.d.ts +1 -2
  323. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAtttachmentAdaptiveCardStyles.d.ts +1 -2
  324. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAtttachmentIconStyles.d.ts +1 -2
  325. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAtttachmentStyles.d.ts +1 -2
  326. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAvatarStyles.d.ts +1 -2
  327. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAvatarTextStyles.d.ts +1 -2
  328. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultReceivedMessageAnchorStyles.d.ts +1 -2
  329. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultSentMessageAnchorStyles.d.ts +1 -2
  330. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultSystemMessageBoxStyles.d.ts +3 -3
  331. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultSystemMessageStyles.d.ts +11 -11
  332. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTimestampContentStyles.d.ts +2 -2
  333. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTimestampFailedStyles.d.ts +1 -2
  334. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTimestampRetryStyles.d.ts +1 -2
  335. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTypingIndicatorBubbleStyles.d.ts +1 -2
  336. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTypingIndicatorContainerStyles.d.ts +1 -2
  337. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTypingIndicatorMessageStyles.d.ts +1 -2
  338. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultUserMessageBoxStyles.d.ts +3 -3
  339. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultUserMessageStyles.d.ts +3 -3
  340. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/groupActivitiesMiddleware.d.ts +10 -10
  341. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/index.d.ts +10 -10
  342. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/messageSequenceIdOverrideMiddleware.d.ts +4 -4
  343. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/messageTimestampMiddleware.d.ts +4 -4
  344. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/timestamps/DeliveredTimestamp.d.ts +2 -1
  345. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/timestamps/NotDeliveredTimestamp.d.ts +2 -1
  346. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/timestamps/SendingTimestamp.d.ts +2 -1
  347. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/toastMiddleware.d.ts +2 -2
  348. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/typingIndicatorMiddleware.d.ts +7 -6
  349. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/attachmentProcessingMiddleware.d.ts +10 -10
  350. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/attachmentUploadValidatorMiddleware.d.ts +11 -11
  351. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/channelDataMiddleware.d.ts +10 -10
  352. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/conversationEndMiddleware.d.ts +11 -11
  353. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/dataMaskingMiddleware.d.ts +11 -11
  354. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/gifUploadMiddleware.d.ts +10 -10
  355. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/htmlPlayerMiddleware.d.ts +10 -10
  356. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/htmlTextMiddleware.d.ts +10 -10
  357. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/maxMessageSizeValidator.d.ts +11 -11
  358. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/preProcessingMiddleware.d.ts +10 -10
  359. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/sanitizationMiddleware.d.ts +10 -10
  360. package/lib/types/components/webchatcontainerstateful/webchatcontroller/notification/NotificationHandler.d.ts +12 -12
  361. package/lib/types/components/webchatcontainerstateful/webchatcontroller/webchattelemetry/WebChatLogger.d.ts +1 -1
  362. package/lib/types/contexts/ChatAdapterStore.d.ts +1 -2
  363. package/lib/types/contexts/ChatContextStore.d.ts +1 -1
  364. package/lib/types/contexts/ChatSDKStore.d.ts +1 -1
  365. package/lib/types/contexts/FacadeChatSDKStore.d.ts +1 -1
  366. package/lib/types/contexts/common/ConversationState.d.ts +13 -13
  367. package/lib/types/contexts/common/ILiveChatWidgetAction.d.ts +5 -5
  368. package/lib/types/contexts/common/ILiveChatWidgetContext.d.ts +63 -63
  369. package/lib/types/contexts/common/ILiveChatWidgetLocalizedTexts.d.ts +40 -40
  370. package/lib/types/contexts/common/LiveChatWidgetActionType.d.ts +48 -48
  371. package/lib/types/contexts/common/LiveChatWidgetContextInitialState.d.ts +3 -3
  372. package/lib/types/contexts/common/StartChatFailureType.d.ts +5 -5
  373. package/lib/types/contexts/createReducer.d.ts +4 -4
  374. package/lib/types/controller/componentController.d.ts +16 -16
  375. package/lib/types/firstresponselatency/Constants.d.ts +30 -30
  376. package/lib/types/firstresponselatency/FirstMessageTrackerFromBot.d.ts +1 -1
  377. package/lib/types/firstresponselatency/FirstResponseLatencyTracker.d.ts +22 -22
  378. package/lib/types/firstresponselatency/util.d.ts +7 -7
  379. package/lib/types/hooks/useChatAdapterStore.d.ts +2 -2
  380. package/lib/types/hooks/useChatContextStore.d.ts +5 -5
  381. package/lib/types/hooks/useChatSDKStore.d.ts +2 -2
  382. package/lib/types/hooks/useDebounce.d.ts +3 -3
  383. package/lib/types/hooks/useFacadeChatSDKStore.d.ts +3 -3
  384. package/lib/types/hooks/useWindowDimensions.d.ts +4 -4
  385. package/lib/types/index.d.ts +11 -11
  386. package/lib/types/plugins/createChatTranscript.d.ts +3 -3
  387. package/lib/types/plugins/newMessageEventHandler.d.ts +2 -2
  388. package/package.json +32 -17
@@ -1,41 +1,63 @@
1
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
3
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
4
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
5
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
6
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
7
+ function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
8
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
10
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
1
11
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
12
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
3
13
  function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
4
14
  import { DesignerChatAdapter } from "./DesignerChatAdapter";
5
15
  import { MockChatSDK } from "./mockchatsdk";
6
- export class DesignerChatSDK extends MockChatSDK {
7
- constructor() {
8
- super();
9
- _defineProperty(this, "localeId", this.getLiveChatConfig().ChatWidgetLanguage.msdyn_localeid);
16
+ export let DesignerChatSDK = /*#__PURE__*/function (_MockChatSDK) {
17
+ _inherits(DesignerChatSDK, _MockChatSDK);
18
+ var _super = _createSuper(DesignerChatSDK);
19
+ function DesignerChatSDK() {
20
+ var _this;
21
+ _classCallCheck(this, DesignerChatSDK);
22
+ _this = _super.call(this);
23
+ _defineProperty(_assertThisInitialized(_this), "localeId", _this.getLiveChatConfig().ChatWidgetLanguage.msdyn_localeid);
24
+ return _this;
10
25
  }
11
- createChatAdapter() {
12
- return new DesignerChatAdapter();
13
- }
14
- /**
15
- * If the widget is running in designer mode, we mock the initialize response. We don't want
16
- * any interactions with a real server in when designing LCW widget visually in Modern Admin.
17
- *
18
- * - All GUIDs were changed to 00000000-0000-0000-0000-000000000000.
19
- * - msdyn_callingoptions was changed to disable calling functionality
20
- */
21
- getLiveChatConfig() {
22
- return {
23
- LiveWSAndLiveChatEngJoin: {
24
- msdyn_widgetthemecolor: "19236002",
25
- // msdyn_callingoptions was changed to disable calling functionality
26
- msdyn_callingoptions: "192350000",
27
- msdyn_widgettitle: "Let\u0027s chat",
28
- msdyn_conversationmode: "192350000",
29
- msdyn_avatarurl: "https://oc-cdn-ocprod.azureedge.net/livechatwidget/images/chatIcon.svg",
30
- msdyn_name: "Let's Chat",
31
- msdyn_postconversationsurveyenable: "false",
32
- OutOfOperatingHours: "False",
33
- ShowWidget: "True"
34
- },
35
- ChatWidgetLanguage: {
36
- msdyn_localeid: "1033",
37
- msdyn_languagename: "English - United States"
38
- }
39
- };
40
- }
41
- }
26
+ _createClass(DesignerChatSDK, [{
27
+ key: "createChatAdapter",
28
+ value: function createChatAdapter() {
29
+ return new DesignerChatAdapter();
30
+ }
31
+ }, {
32
+ key: "getLiveChatConfig",
33
+ value:
34
+ /**
35
+ * If the widget is running in designer mode, we mock the initialize response. We don't want
36
+ * any interactions with a real server in when designing LCW widget visually in Modern Admin.
37
+ *
38
+ * - All GUIDs were changed to 00000000-0000-0000-0000-000000000000.
39
+ * - msdyn_callingoptions was changed to disable calling functionality
40
+ */
41
+ function getLiveChatConfig() {
42
+ return {
43
+ LiveWSAndLiveChatEngJoin: {
44
+ msdyn_widgetthemecolor: "19236002",
45
+ // msdyn_callingoptions was changed to disable calling functionality
46
+ msdyn_callingoptions: "192350000",
47
+ msdyn_widgettitle: "Let\u0027s chat",
48
+ msdyn_conversationmode: "192350000",
49
+ msdyn_avatarurl: "https://oc-cdn-ocprod.azureedge.net/livechatwidget/images/chatIcon.svg",
50
+ msdyn_name: "Let's Chat",
51
+ msdyn_postconversationsurveyenable: "false",
52
+ OutOfOperatingHours: "False",
53
+ ShowWidget: "True"
54
+ },
55
+ ChatWidgetLanguage: {
56
+ msdyn_localeid: "1033",
57
+ msdyn_languagename: "English - United States"
58
+ }
59
+ };
60
+ }
61
+ }]);
62
+ return DesignerChatSDK;
63
+ }(MockChatSDK);
@@ -1,3 +1,6 @@
1
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
3
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
1
4
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
5
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
3
6
  function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
@@ -7,8 +10,9 @@ import { ConnectionStatus } from "botframework-directlinejs";
7
10
  import { BehaviorSubject } from "rxjs";
8
11
  import { Observable } from "rxjs/Observable";
9
12
  import { uuidv4 } from "@microsoft/omnichannel-chat-sdk";
10
- export default class MockAdapter {
11
- constructor() {
13
+ let MockAdapter = /*#__PURE__*/function () {
14
+ function MockAdapter() {
15
+ _classCallCheck(this, MockAdapter);
12
16
  _defineProperty(this, "activityObserver", void 0);
13
17
  _defineProperty(this, "activity$", void 0);
14
18
  _defineProperty(this, "connectionStatus$", new BehaviorSubject(ConnectionStatus.Uninitialized));
@@ -27,56 +31,63 @@ export default class MockAdapter {
27
31
  });
28
32
  }).share();
29
33
  }
30
- postActivity(activity) {
31
- if (activity) {
32
- var _activity$text;
33
- let modActivity;
34
- let typingActivity;
35
- const userId = "userId",
36
- botId = "botId";
37
- if ((_activity$text = activity.text) !== null && _activity$text !== void 0 && _activity$text.startsWith(":")) {
38
- var _this$activityObserve, _this$activityObserve2;
39
- modActivity = {
40
- ...activity,
41
- id: uuidv4(),
42
- from: {
43
- ...activity.from,
44
- id: botId,
45
- name: "Bot",
46
- role: "bot"
47
- },
48
- text: activity.text.substr(1)
49
- };
50
- typingActivity = {
51
- id: uuidv4(),
52
- from: {
34
+ _createClass(MockAdapter, [{
35
+ key: "postActivity",
36
+ value: function postActivity(activity) {
37
+ if (activity) {
38
+ var _activity$text;
39
+ let modActivity;
40
+ let typingActivity;
41
+ const userId = "userId",
42
+ botId = "botId";
43
+ if ((_activity$text = activity.text) !== null && _activity$text !== void 0 && _activity$text.startsWith(":")) {
44
+ var _this$activityObserve, _this$activityObserve2;
45
+ modActivity = {
46
+ ...activity,
53
47
  id: uuidv4(),
54
- name: "Bot",
55
- role: "bot"
56
- },
57
- type: "typing"
58
- };
59
- (_this$activityObserve = this.activityObserver) === null || _this$activityObserve === void 0 ? void 0 : _this$activityObserve.next(modActivity); // mock echo message
60
- (_this$activityObserve2 = this.activityObserver) === null || _this$activityObserve2 === void 0 ? void 0 : _this$activityObserve2.next(typingActivity); // mock typing
61
- } else {
62
- var _this$activityObserve3;
63
- modActivity = {
64
- ...activity,
65
- id: uuidv4(),
66
- from: {
67
- ...activity.from,
68
- id: userId,
69
- name: "User",
70
- role: "user"
71
- }
72
- };
73
- (_this$activityObserve3 = this.activityObserver) === null || _this$activityObserve3 === void 0 ? void 0 : _this$activityObserve3.next(modActivity); // mock message sent
48
+ from: {
49
+ ...activity.from,
50
+ id: botId,
51
+ name: "Bot",
52
+ role: "bot"
53
+ },
54
+ text: activity.text.substr(1)
55
+ };
56
+ typingActivity = {
57
+ id: uuidv4(),
58
+ from: {
59
+ id: uuidv4(),
60
+ name: "Bot",
61
+ role: "bot"
62
+ },
63
+ type: "typing"
64
+ };
65
+ (_this$activityObserve = this.activityObserver) === null || _this$activityObserve === void 0 ? void 0 : _this$activityObserve.next(modActivity); // mock echo message
66
+ (_this$activityObserve2 = this.activityObserver) === null || _this$activityObserve2 === void 0 ? void 0 : _this$activityObserve2.next(typingActivity); // mock typing
67
+ } else {
68
+ var _this$activityObserve3;
69
+ modActivity = {
70
+ ...activity,
71
+ id: uuidv4(),
72
+ from: {
73
+ ...activity.from,
74
+ id: userId,
75
+ name: "User",
76
+ role: "user"
77
+ }
78
+ };
79
+ (_this$activityObserve3 = this.activityObserver) === null || _this$activityObserve3 === void 0 ? void 0 : _this$activityObserve3.next(modActivity); // mock message sent
80
+ }
74
81
  }
75
- }
76
82
 
77
- return Observable.of(activity.id || "");
78
- }
79
- end() {
80
- return;
81
- }
82
- }
83
+ return Observable.of(activity.id || "");
84
+ }
85
+ }, {
86
+ key: "end",
87
+ value: function end() {
88
+ return;
89
+ }
90
+ }]);
91
+ return MockAdapter;
92
+ }();
93
+ export { MockAdapter as default };
@@ -1,10 +1,14 @@
1
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
3
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
1
4
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
5
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
3
6
  function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
4
7
  import MockAdapter from "./mockadapter";
5
8
  import { ParticipantType } from "../../../common/Constants";
6
- export class MockChatSDK {
7
- constructor() {
9
+ export let MockChatSDK = /*#__PURE__*/function () {
10
+ function MockChatSDK() {
11
+ _classCallCheck(this, MockChatSDK);
8
12
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
9
13
  _defineProperty(this, "sleep", ms => new Promise(r => setTimeout(r, ms)));
10
14
  _defineProperty(this, "isMockModeOn", true);
@@ -14,63 +18,93 @@ export class MockChatSDK {
14
18
  orgUrl: "https://contoso.crm.dynamics.com"
15
19
  });
16
20
  }
17
- async initialize() {
18
- return this.getLiveChatConfig();
19
- }
20
- async startChat() {
21
- await this.sleep(1000);
22
- }
23
- endChat() {
24
- return null;
25
- }
26
- getChatToken() {
27
- return null;
28
- }
29
- createChatAdapter() {
30
- return new MockAdapter();
31
- }
21
+ _createClass(MockChatSDK, [{
22
+ key: "initialize",
23
+ value: async function initialize() {
24
+ return this.getLiveChatConfig();
25
+ }
26
+ }, {
27
+ key: "startChat",
28
+ value: async function startChat() {
29
+ await this.sleep(1000);
30
+ }
31
+ }, {
32
+ key: "endChat",
33
+ value: function endChat() {
34
+ return null;
35
+ }
36
+ }, {
37
+ key: "getChatToken",
38
+ value: function getChatToken() {
39
+ return null;
40
+ }
41
+ }, {
42
+ key: "createChatAdapter",
43
+ value: function createChatAdapter() {
44
+ return new MockAdapter();
45
+ }
32
46
 
33
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
34
- getPreChatSurvey(parseToJson) {
35
- return "";
36
- }
37
- getConversationDetails() {
38
- return {
39
- State: "Active",
40
- conversationId: "",
41
- canRenderPostChat: "",
42
- participantType: ParticipantType.User
43
- };
44
- }
45
- getCurrentLiveChatContext() {
46
- return {
47
- chatToken: {},
48
- requestId: ""
49
- };
50
- }
51
- onNewMessage() {
52
- return null;
53
- }
54
- getChatReconnectContext() {
55
- return {
56
- reconnectId: "123"
57
- };
58
- }
59
- getVoiceVideoCalling() {
60
- return null;
61
- }
62
- setAuthTokenProvider() {
63
- return null;
64
- }
65
- getLiveChatConfig() {
66
- return {
67
- LiveWSAndLiveChatEngJoin: {
68
- msdyn_postconversationsurveyenable: "true",
69
- msdyn_conversationmode: "192350000"
70
- }
71
- };
72
- }
73
- sendTypingEvent() {
74
- return null;
75
- }
76
- }
47
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
48
+ }, {
49
+ key: "getPreChatSurvey",
50
+ value: function getPreChatSurvey(parseToJson) {
51
+ return "";
52
+ }
53
+ }, {
54
+ key: "getConversationDetails",
55
+ value: function getConversationDetails() {
56
+ return {
57
+ State: "Active",
58
+ conversationId: "",
59
+ canRenderPostChat: "",
60
+ participantType: ParticipantType.User
61
+ };
62
+ }
63
+ }, {
64
+ key: "getCurrentLiveChatContext",
65
+ value: function getCurrentLiveChatContext() {
66
+ return {
67
+ chatToken: {},
68
+ requestId: ""
69
+ };
70
+ }
71
+ }, {
72
+ key: "onNewMessage",
73
+ value: function onNewMessage() {
74
+ return null;
75
+ }
76
+ }, {
77
+ key: "getChatReconnectContext",
78
+ value: function getChatReconnectContext() {
79
+ return {
80
+ reconnectId: "123"
81
+ };
82
+ }
83
+ }, {
84
+ key: "getVoiceVideoCalling",
85
+ value: function getVoiceVideoCalling() {
86
+ return null;
87
+ }
88
+ }, {
89
+ key: "setAuthTokenProvider",
90
+ value: function setAuthTokenProvider() {
91
+ return null;
92
+ }
93
+ }, {
94
+ key: "getLiveChatConfig",
95
+ value: function getLiveChatConfig() {
96
+ return {
97
+ LiveWSAndLiveChatEngJoin: {
98
+ msdyn_postconversationsurveyenable: "true",
99
+ msdyn_conversationmode: "192350000"
100
+ }
101
+ };
102
+ }
103
+ }, {
104
+ key: "sendTypingEvent",
105
+ value: function sendTypingEvent() {
106
+ return null;
107
+ }
108
+ }]);
109
+ return MockChatSDK;
110
+ }();
@@ -1,5 +1,10 @@
1
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
2
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
3
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1
4
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
5
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
3
6
  function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
4
- export class BotMagicCodeStore {}
7
+ export let BotMagicCodeStore = /*#__PURE__*/_createClass(function BotMagicCodeStore() {
8
+ _classCallCheck(this, BotMagicCodeStore);
9
+ });
5
10
  _defineProperty(BotMagicCodeStore, "botOAuthSignInId", "");
@@ -1,6 +1,11 @@
1
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
2
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
3
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1
4
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
5
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
3
6
  function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
4
- export class WebChatStoreLoader {}
7
+ export let WebChatStoreLoader = /*#__PURE__*/_createClass(function WebChatStoreLoader() {
8
+ _classCallCheck(this, WebChatStoreLoader);
9
+ });
5
10
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6
11
  _defineProperty(WebChatStoreLoader, "store", void 0);
@@ -1,56 +1,70 @@
1
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
3
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
1
4
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
5
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
3
6
  function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
4
7
  import DOMPurify from "dompurify";
5
8
  import { HtmlAttributeNames } from "../../../../common/Constants";
6
- class HyperlinkTextOverrideRenderer {
7
- constructor(hyperlinkTextOverride) {
9
+ let HyperlinkTextOverrideRenderer = /*#__PURE__*/function () {
10
+ function HyperlinkTextOverrideRenderer(hyperlinkTextOverride) {
11
+ _classCallCheck(this, HyperlinkTextOverrideRenderer);
8
12
  _defineProperty(this, "hyperlinkTextOverride", void 0);
9
13
  this.hyperlinkTextOverride = hyperlinkTextOverride;
10
14
  }
11
- convertTextToHtmlNode(text) {
12
- const htmlNode = document.createElement(HtmlAttributeNames.div);
13
- try {
14
- text = DOMPurify.sanitize(text, {
15
- ADD_ATTR: ["target"]
16
- });
17
- htmlNode.innerHTML = text;
18
- } catch {
15
+ _createClass(HyperlinkTextOverrideRenderer, [{
16
+ key: "convertTextToHtmlNode",
17
+ value: function convertTextToHtmlNode(text) {
18
+ const htmlNode = document.createElement(HtmlAttributeNames.div);
19
+ try {
20
+ text = DOMPurify.sanitize(text, {
21
+ ADD_ATTR: ["target"]
22
+ });
23
+ htmlNode.innerHTML = text;
24
+ } catch {
25
+ return htmlNode;
26
+ }
19
27
  return htmlNode;
20
28
  }
21
- return htmlNode;
22
- }
23
- processANode(htmlNode) {
24
- // eslint-disable-line @typescript-eslint/no-explicit-any
25
- const aTags = htmlNode.getElementsByTagName(HtmlAttributeNames.aTagName);
26
- for (let index = 0; index < aTags.length; index++) {
27
- const aNode = aTags[index];
28
- if (!aNode || !aNode.tagName || aNode.tagName.toLowerCase() !== HtmlAttributeNames.aTagName || !aNode.href) continue;
29
- if (aNode.href !== aNode.text.trim()) {
30
- aNode.text = aNode.href;
29
+ }, {
30
+ key: "processANode",
31
+ value: function processANode(htmlNode) {
32
+ // eslint-disable-line @typescript-eslint/no-explicit-any
33
+ const aTags = htmlNode.getElementsByTagName(HtmlAttributeNames.aTagName);
34
+ for (let index = 0; index < aTags.length; index++) {
35
+ const aNode = aTags[index];
36
+ if (!aNode || !aNode.tagName || aNode.tagName.toLowerCase() !== HtmlAttributeNames.aTagName || !aNode.href) continue;
37
+ if (aNode.href !== aNode.text.trim()) {
38
+ aNode.text = aNode.href;
39
+ }
31
40
  }
32
41
  }
33
- }
34
- applicable(text) {
35
- if (!this.hyperlinkTextOverride) {
36
- return false;
42
+ }, {
43
+ key: "applicable",
44
+ value: function applicable(text) {
45
+ if (!this.hyperlinkTextOverride) {
46
+ return false;
47
+ }
48
+ try {
49
+ const htmlNode = this.convertTextToHtmlNode(text);
50
+ const aNodes = htmlNode.getElementsByTagName(HtmlAttributeNames.aTagName);
51
+ return !!aNodes && aNodes.length && aNodes.length > 0;
52
+ } catch {
53
+ return false;
54
+ }
37
55
  }
38
- try {
56
+ }, {
57
+ key: "render",
58
+ value: function render(text) {
59
+ if (!this.applicable(text)) {
60
+ return text;
61
+ }
39
62
  const htmlNode = this.convertTextToHtmlNode(text);
40
- const aNodes = htmlNode.getElementsByTagName(HtmlAttributeNames.aTagName);
41
- return !!aNodes && aNodes.length && aNodes.length > 0;
42
- } catch {
43
- return false;
44
- }
45
- }
46
- render(text) {
47
- if (!this.applicable(text)) {
63
+ this.processANode(htmlNode);
64
+ text = htmlNode.innerHTML;
48
65
  return text;
49
66
  }
50
- const htmlNode = this.convertTextToHtmlNode(text);
51
- this.processANode(htmlNode);
52
- text = htmlNode.innerHTML;
53
- return text;
54
- }
55
- }
67
+ }]);
68
+ return HyperlinkTextOverrideRenderer;
69
+ }();
56
70
  export default HyperlinkTextOverrideRenderer;
@@ -24,6 +24,8 @@ const validateAttachment = (action, allowedFileExtensions, maxFileSizeSupportedB
24
24
  return action;
25
25
  }
26
26
  if (attachments) {
27
+ NotificationHandler.dismissNotification(NotificationScenarios.AttachmentError); // Dismiss any previous attachment error notification
28
+
27
29
  for (let i = 0; i < attachments.length; i++) {
28
30
  const maxUploadFileSize = getMaxUploadFileSize(maxFileSizeSupportedByDynamics, attachments[i].contentType);
29
31
  const fileExtensionValid = validateFileExtension(attachments[i], allowedFileExtensions);