@microsoft/omnichannel-chat-widget 0.1.0-main.07f52ee

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 (561) hide show
  1. package/README.md +235 -0
  2. package/lib/cjs/assets/assets.d.js +1 -0
  3. package/lib/cjs/assets/audios/newMessageNotification.mp3 +0 -0
  4. package/lib/cjs/assets/icons/archiveIcon.svg +3 -0
  5. package/lib/cjs/assets/icons/audioIcon.svg +6 -0
  6. package/lib/cjs/assets/icons/blankIcon.svg +6 -0
  7. package/lib/cjs/assets/icons/excelIcon.svg +6 -0
  8. package/lib/cjs/assets/icons/imageIcon.svg +6 -0
  9. package/lib/cjs/assets/icons/oneNoteIcon.svg +6 -0
  10. package/lib/cjs/assets/icons/pdfIcon.svg +6 -0
  11. package/lib/cjs/assets/icons/powerpointIcon.svg +6 -0
  12. package/lib/cjs/assets/icons/videoIcon.svg +6 -0
  13. package/lib/cjs/assets/icons/visioIcon.svg +6 -0
  14. package/lib/cjs/assets/icons/wordIcon.svg +6 -0
  15. package/lib/cjs/common/Constants.js +305 -0
  16. package/lib/cjs/common/KeyCodes.js +13 -0
  17. package/lib/cjs/common/contextDataStore/DataStoreManager.js +14 -0
  18. package/lib/cjs/common/interfaces/IContextDataStore.js +1 -0
  19. package/lib/cjs/common/interfaces/ITimer.js +1 -0
  20. package/lib/cjs/common/telemetry/TelemetryConstants.js +224 -0
  21. package/lib/cjs/common/telemetry/TelemetryHelper.js +280 -0
  22. package/lib/cjs/common/telemetry/TelemetryManager.js +97 -0
  23. package/lib/cjs/common/telemetry/defaultConfigs/defaultAriaConfig.js +13 -0
  24. package/lib/cjs/common/telemetry/defaultConfigs/defaultTelemetryConfiguration.js +16 -0
  25. package/lib/cjs/common/telemetry/defaultConfigs/defaultTelemetryInternalData.js +12 -0
  26. package/lib/cjs/common/telemetry/definitions/Contracts.js +1 -0
  27. package/lib/cjs/common/telemetry/definitions/Payload.js +1 -0
  28. package/lib/cjs/common/telemetry/interfaces/IAriaConfigurations.js +1 -0
  29. package/lib/cjs/common/telemetry/interfaces/IChatSDKLogger.js +1 -0
  30. package/lib/cjs/common/telemetry/interfaces/IInternalTelemetryData.js +1 -0
  31. package/lib/cjs/common/telemetry/interfaces/ITelemetryConfig.js +1 -0
  32. package/lib/cjs/common/telemetry/interfaces/ITelemetryEvents.js +1 -0
  33. package/lib/cjs/common/telemetry/loggers/ariaTelemetryLogger.js +75 -0
  34. package/lib/cjs/common/telemetry/loggers/consoleLogger.js +50 -0
  35. package/lib/cjs/common/types/types.d.js +1 -0
  36. package/lib/cjs/common/utils.js +337 -0
  37. package/lib/cjs/components/callingcontainerstateful/CallingContainerStateful.js +361 -0
  38. package/lib/cjs/components/callingcontainerstateful/ICallingContainerStatefulProps.js +1 -0
  39. package/lib/cjs/components/chatbuttonstateful/ChatButtonStateful.js +119 -0
  40. package/lib/cjs/components/chatbuttonstateful/common/styleProps/defaultOutOfOfficeChatButtonStyleProps.js +12 -0
  41. package/lib/cjs/components/chatbuttonstateful/interfaces/IChatButtonStatefulParams.js +1 -0
  42. package/lib/cjs/components/confirmationpanestateful/ConfirmationPaneStateful.js +161 -0
  43. package/lib/cjs/components/confirmationpanestateful/common/defaultProps/defaultConfirmationPaneLocalizedTexts.js +17 -0
  44. package/lib/cjs/components/confirmationpanestateful/interfaces/IConfirmationPaneInputs.js +1 -0
  45. package/lib/cjs/components/confirmationpanestateful/interfaces/IConfirmationPaneLocalizedText.js +1 -0
  46. package/lib/cjs/components/confirmationpanestateful/interfaces/IConfirmationPaneStatefulParams.js +1 -0
  47. package/lib/cjs/components/confirmationpanestateful/interfaces/IConfirmationPaneStatefulProps.js +1 -0
  48. package/lib/cjs/components/dimlayer/DimLayer.js +31 -0
  49. package/lib/cjs/components/emailtranscriptpanestateful/EmailTranscriptPaneStateful.js +138 -0
  50. package/lib/cjs/components/emailtranscriptpanestateful/EmailTranscriptPaneStateful.spec.js +73 -0
  51. package/lib/cjs/components/emailtranscriptpanestateful/interfaces/IChatTranscriptBody.js +1 -0
  52. package/lib/cjs/components/emailtranscriptpanestateful/interfaces/IEmailTranscriptPaneProps.js +1 -0
  53. package/lib/cjs/components/footerstateful/FooterStateful.js +133 -0
  54. package/lib/cjs/components/footerstateful/audionotificationstateful/AudioNotificationStateful.js +36 -0
  55. package/lib/cjs/components/footerstateful/audionotificationstateful/interfaces/IAudioNotificationProps.js +1 -0
  56. package/lib/cjs/components/footerstateful/audionotificationstateful/interfaces/IAudioNotificationStatefulParams.js +1 -0
  57. package/lib/cjs/components/footerstateful/downloadtranscriptstateful/DownloadTranscriptStateful.js +216 -0
  58. package/lib/cjs/components/footerstateful/downloadtranscriptstateful/DownloadTranscriptStateful.spec.js +58 -0
  59. package/lib/cjs/components/footerstateful/downloadtranscriptstateful/interfaces/IDownloadTranscriptProps.js +1 -0
  60. package/lib/cjs/components/headerstateful/HeaderStateful.js +118 -0
  61. package/lib/cjs/components/headerstateful/common/styleProps/defaultOutOfOfficeHeaderStyleProps.js +18 -0
  62. package/lib/cjs/components/headerstateful/interfaces/IHeaderStatefulParams.js +1 -0
  63. package/lib/cjs/components/livechatwidget/LiveChatWidget.js +44 -0
  64. package/lib/cjs/components/livechatwidget/common/createAdapter.js +40 -0
  65. package/lib/cjs/components/livechatwidget/common/createFooter.js +42 -0
  66. package/lib/cjs/components/livechatwidget/common/createInternetConnectionChangeHandler.js +42 -0
  67. package/lib/cjs/components/livechatwidget/common/createMarkdown.js +77 -0
  68. package/lib/cjs/components/livechatwidget/common/defaultProps/dummyDefaultProps.js +1709 -0
  69. package/lib/cjs/components/livechatwidget/common/defaultStyles/defaultLiveChatWidgetGeneralStyles.js +12 -0
  70. package/lib/cjs/components/livechatwidget/common/disposeTelemetryLoggers.js +14 -0
  71. package/lib/cjs/components/livechatwidget/common/endChat.js +82 -0
  72. package/lib/cjs/components/livechatwidget/common/getGeneralStylesForButton.js +28 -0
  73. package/lib/cjs/components/livechatwidget/common/initCallingSdk.js +43 -0
  74. package/lib/cjs/components/livechatwidget/common/initConfirmationPropsComposer.js +52 -0
  75. package/lib/cjs/components/livechatwidget/common/initWebChatComposer.js +131 -0
  76. package/lib/cjs/components/livechatwidget/common/reconnectChatHelper.js +93 -0
  77. package/lib/cjs/components/livechatwidget/common/registerTelemetryLoggers.js +71 -0
  78. package/lib/cjs/components/livechatwidget/common/setPostChatContextAndLoadSurvey.js +56 -0
  79. package/lib/cjs/components/livechatwidget/common/startChat.js +188 -0
  80. package/lib/cjs/components/livechatwidget/common/startProactiveChat.js +40 -0
  81. package/lib/cjs/components/livechatwidget/common/updateSessionDataForTelemetry.js +45 -0
  82. package/lib/cjs/components/livechatwidget/interfaces/ILiveChatWidgetComponentOverrides.js +1 -0
  83. package/lib/cjs/components/livechatwidget/interfaces/ILiveChatWidgetControlProps.js +1 -0
  84. package/lib/cjs/components/livechatwidget/interfaces/ILiveChatWidgetProps.js +1 -0
  85. package/lib/cjs/components/livechatwidget/interfaces/ILiveChatWidgetStyleProps.js +1 -0
  86. package/lib/cjs/components/livechatwidget/livechatwidgetstateful/LiveChatWidgetStateful.js +325 -0
  87. package/lib/cjs/components/loadingpanestateful/LoadingPaneStateful.js +63 -0
  88. package/lib/cjs/components/loadingpanestateful/common/defaultStyleProps/defaultgeneralLoadingPaneStyleProps.js +17 -0
  89. package/lib/cjs/components/ooohpanestateful/OOOHPaneStateful.js +62 -0
  90. package/lib/cjs/components/ooohpanestateful/common/defaultStyleProps/defaultgeneralOOOHPaneStyleProps.js +15 -0
  91. package/lib/cjs/components/postchatloadingpanestateful/PostChatLoadingPaneStateful.js +59 -0
  92. package/lib/cjs/components/postchatloadingpanestateful/common/defaultgeneralPostChatLoadingPaneStyleProps.js +17 -0
  93. package/lib/cjs/components/postchatsurveypanestateful/PostChatSurveyPaneStateful.js +70 -0
  94. package/lib/cjs/components/postchatsurveypanestateful/common/defaultStyleProps/defaultgeneralPostChatSurveyPaneStyleProps.js +17 -0
  95. package/lib/cjs/components/postchatsurveypanestateful/enums/PostChatSurveyMode.js +13 -0
  96. package/lib/cjs/components/prechatsurveypanestateful/PreChatSurveyPaneStateful.js +178 -0
  97. package/lib/cjs/components/prechatsurveypanestateful/common/defaultProps/defaultPreChatSurveyLocalizedTexts.js +10 -0
  98. package/lib/cjs/components/prechatsurveypanestateful/common/defaultStyles/defaultGeneralPreChatSurveyPaneStyleProps.js +17 -0
  99. package/lib/cjs/components/prechatsurveypanestateful/interfaces/IPreChatSurveyPaneStatefulParams.js +1 -0
  100. package/lib/cjs/components/proactivechatpanestateful/ProactiveChatPaneStateful.js +140 -0
  101. package/lib/cjs/components/proactivechatpanestateful/interfaces/IProactiveChatPaneStatefulProps.js +1 -0
  102. package/lib/cjs/components/reconnectchatpanestateful/ReconnectChatPaneStateful.js +123 -0
  103. package/lib/cjs/components/reconnectchatpanestateful/interfaces/IReconnectChatContext.js +1 -0
  104. package/lib/cjs/components/reconnectchatpanestateful/interfaces/IReconnectChatOptionalParams.js +1 -0
  105. package/lib/cjs/components/reconnectchatpanestateful/interfaces/IReconnectChatPaneStatefulParams.js +1 -0
  106. package/lib/cjs/components/reconnectchatpanestateful/interfaces/IReconnectChatPaneStatefulProps.js +1 -0
  107. package/lib/cjs/components/webchatcontainerstateful/WebChatContainerStateful.js +86 -0
  108. package/lib/cjs/components/webchatcontainerstateful/common/defaultProps/defaultAttachmentProps.js +12 -0
  109. package/lib/cjs/components/webchatcontainerstateful/common/defaultProps/defaultMarkdownLocalizedTexts.js +10 -0
  110. package/lib/cjs/components/webchatcontainerstateful/common/defaultProps/defaultMiddlewareLocalizedTexts.js +27 -0
  111. package/lib/cjs/components/webchatcontainerstateful/common/defaultProps/defaultWebChatContainerStatefulProps.js +26 -0
  112. package/lib/cjs/components/webchatcontainerstateful/common/defaultProps/defaultWebChatStatefulProps.js +23 -0
  113. package/lib/cjs/components/webchatcontainerstateful/common/defaultStyles/defaultWebChatContainerStatefulStyles.js +39 -0
  114. package/lib/cjs/components/webchatcontainerstateful/common/defaultStyles/defaultWebChatStatefulContainerStyles.js +12 -0
  115. package/lib/cjs/components/webchatcontainerstateful/common/mockadapter.js +104 -0
  116. package/lib/cjs/components/webchatcontainerstateful/common/mockchatsdk.js +59 -0
  117. package/lib/cjs/components/webchatcontainerstateful/common/utils/BrowserInfo.js +88 -0
  118. package/lib/cjs/components/webchatcontainerstateful/common/utils/FileAttachmentIconManager.js +122 -0
  119. package/lib/cjs/components/webchatcontainerstateful/common/utils/isMaskingFromCustomer.js +27 -0
  120. package/lib/cjs/components/webchatcontainerstateful/interfaces/IAttachmentProps.js +1 -0
  121. package/lib/cjs/components/webchatcontainerstateful/interfaces/IDataMaskingInfo.js +1 -0
  122. package/lib/cjs/components/webchatcontainerstateful/interfaces/IDataMaskingRule.js +1 -0
  123. package/lib/cjs/components/webchatcontainerstateful/interfaces/IDataMaskingSetting.js +1 -0
  124. package/lib/cjs/components/webchatcontainerstateful/interfaces/IRenderingMiddlewareProps.js +1 -0
  125. package/lib/cjs/components/webchatcontainerstateful/interfaces/IWebChatAction.js +1 -0
  126. package/lib/cjs/components/webchatcontainerstateful/interfaces/IWebChatContainerStatefulProps.js +1 -0
  127. package/lib/cjs/components/webchatcontainerstateful/interfaces/IWebChatProps.js +1 -0
  128. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/WebChatStoreLoader.js +14 -0
  129. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/enums/BrowserVendor.js +18 -0
  130. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/enums/DirectLineActivityType.js +13 -0
  131. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/enums/DirectLineSenderRole.js +14 -0
  132. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/enums/MessageType.js +20 -0
  133. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/enums/NotificationLevel.js +15 -0
  134. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/enums/NotificationScenarios.js +17 -0
  135. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/enums/SendStatus.js +14 -0
  136. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/enums/WebChatActionType.js +32 -0
  137. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/adaptermiddlewares/formatTagsEgressMiddleware.js +45 -0
  138. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/adaptermiddlewares/formatTagsIngressMiddleware.js +33 -0
  139. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/activityMiddleware.js +163 -0
  140. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/activityStatusMiddleware.js +83 -0
  141. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachmentMiddleware.js +293 -0
  142. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/avatarMiddleware.js +63 -0
  143. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAttachmentContentStyles.js +10 -0
  144. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAttachmentDividerStyles.js +13 -0
  145. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAttachmentDownloadIconStyles.js +14 -0
  146. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAttachmentFileNameStyles.js +13 -0
  147. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAttachmentSizeStyles.js +10 -0
  148. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAtttachmentAdaptiveCardStyles.js +12 -0
  149. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAtttachmentIconStyles.js +12 -0
  150. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAtttachmentStyles.js +17 -0
  151. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAvatarStyles.js +14 -0
  152. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAvatarTextStyles.js +19 -0
  153. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultSystemMessageStyles.js +18 -0
  154. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTimestampContentStyles.js +15 -0
  155. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTimestampFailedStyles.js +13 -0
  156. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTimestampRetryStyles.js +14 -0
  157. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTypingIndicatorBubbleStyles.js +18 -0
  158. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTypingIndicatorContainerStyles.js +14 -0
  159. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTypingIndicatorMessageStyles.js +15 -0
  160. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultUserMessageStyles.js +10 -0
  161. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/groupActivitiesMiddleware.js +63 -0
  162. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/timestamps/DeliveredTimestamp.js +56 -0
  163. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/timestamps/NotDeliveredTimestamp.js +118 -0
  164. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/timestamps/SendingTimestamp.js +46 -0
  165. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/typingIndicatorMiddleware.js +161 -0
  166. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/attachmentProcessingMiddleware.js +51 -0
  167. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/attachmentUploadValidatorMiddleware.js +161 -0
  168. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/channelDataMiddleware.js +54 -0
  169. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/conversationEndMiddleware.js +57 -0
  170. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/dataMaskingMiddleware.js +85 -0
  171. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/gifUploadMiddleware.js +55 -0
  172. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/htmlPlayerMiddleware.js +53 -0
  173. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/htmlTextMiddleware.js +147 -0
  174. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/maxMessageSizeValidator.js +46 -0
  175. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/preProcessingMiddleware.js +54 -0
  176. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/sanitizationMiddleware.js +67 -0
  177. package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/notification/NotificationHandler.js +96 -0
  178. package/lib/cjs/contexts/ChatAdapterStore.js +12 -0
  179. package/lib/cjs/contexts/ChatContextStore.js +12 -0
  180. package/lib/cjs/contexts/ChatSDKStore.js +12 -0
  181. package/lib/cjs/contexts/common/ConversationState.js +19 -0
  182. package/lib/cjs/contexts/common/ILiveChatWidgetAction.js +1 -0
  183. package/lib/cjs/contexts/common/ILiveChatWidgetContext.js +1 -0
  184. package/lib/cjs/contexts/common/ILiveChatWidgetLocalizedTexts.js +1 -0
  185. package/lib/cjs/contexts/common/LiveChatWidgetActionType.js +42 -0
  186. package/lib/cjs/contexts/common/LiveChatWidgetContextInitialState.js +62 -0
  187. package/lib/cjs/contexts/createReducer.js +248 -0
  188. package/lib/cjs/controller/componentController.js +92 -0
  189. package/lib/cjs/hooks/useChatAdapterStore.js +24 -0
  190. package/lib/cjs/hooks/useChatContextStore.js +23 -0
  191. package/lib/cjs/hooks/useChatSDKStore.js +23 -0
  192. package/lib/cjs/index.js +51 -0
  193. package/lib/esm/assets/assets.d.js +0 -0
  194. package/lib/esm/assets/audios/newMessageNotification.mp3 +0 -0
  195. package/lib/esm/assets/icons/archiveIcon.svg +3 -0
  196. package/lib/esm/assets/icons/audioIcon.svg +6 -0
  197. package/lib/esm/assets/icons/blankIcon.svg +6 -0
  198. package/lib/esm/assets/icons/excelIcon.svg +6 -0
  199. package/lib/esm/assets/icons/imageIcon.svg +6 -0
  200. package/lib/esm/assets/icons/oneNoteIcon.svg +6 -0
  201. package/lib/esm/assets/icons/pdfIcon.svg +6 -0
  202. package/lib/esm/assets/icons/powerpointIcon.svg +6 -0
  203. package/lib/esm/assets/icons/videoIcon.svg +6 -0
  204. package/lib/esm/assets/icons/visioIcon.svg +6 -0
  205. package/lib/esm/assets/icons/wordIcon.svg +6 -0
  206. package/lib/esm/common/Constants.js +276 -0
  207. package/lib/esm/common/KeyCodes.js +5 -0
  208. package/lib/esm/common/contextDataStore/DataStoreManager.js +5 -0
  209. package/lib/esm/common/interfaces/IContextDataStore.js +1 -0
  210. package/lib/esm/common/interfaces/ITimer.js +1 -0
  211. package/lib/esm/common/telemetry/TelemetryConstants.js +213 -0
  212. package/lib/esm/common/telemetry/TelemetryHelper.js +262 -0
  213. package/lib/esm/common/telemetry/TelemetryManager.js +76 -0
  214. package/lib/esm/common/telemetry/defaultConfigs/defaultAriaConfig.js +6 -0
  215. package/lib/esm/common/telemetry/defaultConfigs/defaultTelemetryConfiguration.js +7 -0
  216. package/lib/esm/common/telemetry/defaultConfigs/defaultTelemetryInternalData.js +5 -0
  217. package/lib/esm/common/telemetry/definitions/Contracts.js +1 -0
  218. package/lib/esm/common/telemetry/definitions/Payload.js +1 -0
  219. package/lib/esm/common/telemetry/interfaces/IAriaConfigurations.js +1 -0
  220. package/lib/esm/common/telemetry/interfaces/IChatSDKLogger.js +1 -0
  221. package/lib/esm/common/telemetry/interfaces/IInternalTelemetryData.js +1 -0
  222. package/lib/esm/common/telemetry/interfaces/ITelemetryConfig.js +1 -0
  223. package/lib/esm/common/telemetry/interfaces/ITelemetryEvents.js +1 -0
  224. package/lib/esm/common/telemetry/loggers/ariaTelemetryLogger.js +56 -0
  225. package/lib/esm/common/telemetry/loggers/consoleLogger.js +39 -0
  226. package/lib/esm/common/types/types.d.js +0 -0
  227. package/lib/esm/common/utils.js +279 -0
  228. package/lib/esm/components/callingcontainerstateful/CallingContainerStateful.js +321 -0
  229. package/lib/esm/components/callingcontainerstateful/ICallingContainerStatefulProps.js +1 -0
  230. package/lib/esm/components/chatbuttonstateful/ChatButtonStateful.js +92 -0
  231. package/lib/esm/components/chatbuttonstateful/common/styleProps/defaultOutOfOfficeChatButtonStyleProps.js +5 -0
  232. package/lib/esm/components/chatbuttonstateful/interfaces/IChatButtonStatefulParams.js +1 -0
  233. package/lib/esm/components/confirmationpanestateful/ConfirmationPaneStateful.js +126 -0
  234. package/lib/esm/components/confirmationpanestateful/common/defaultProps/defaultConfirmationPaneLocalizedTexts.js +10 -0
  235. package/lib/esm/components/confirmationpanestateful/interfaces/IConfirmationPaneInputs.js +1 -0
  236. package/lib/esm/components/confirmationpanestateful/interfaces/IConfirmationPaneLocalizedText.js +1 -0
  237. package/lib/esm/components/confirmationpanestateful/interfaces/IConfirmationPaneStatefulParams.js +1 -0
  238. package/lib/esm/components/confirmationpanestateful/interfaces/IConfirmationPaneStatefulProps.js +1 -0
  239. package/lib/esm/components/dimlayer/DimLayer.js +19 -0
  240. package/lib/esm/components/emailtranscriptpanestateful/EmailTranscriptPaneStateful.js +106 -0
  241. package/lib/esm/components/emailtranscriptpanestateful/EmailTranscriptPaneStateful.spec.js +69 -0
  242. package/lib/esm/components/emailtranscriptpanestateful/interfaces/IChatTranscriptBody.js +1 -0
  243. package/lib/esm/components/emailtranscriptpanestateful/interfaces/IEmailTranscriptPaneProps.js +1 -0
  244. package/lib/esm/components/footerstateful/FooterStateful.js +104 -0
  245. package/lib/esm/components/footerstateful/audionotificationstateful/AudioNotificationStateful.js +20 -0
  246. package/lib/esm/components/footerstateful/audionotificationstateful/interfaces/IAudioNotificationProps.js +1 -0
  247. package/lib/esm/components/footerstateful/audionotificationstateful/interfaces/IAudioNotificationStatefulParams.js +1 -0
  248. package/lib/esm/components/footerstateful/downloadtranscriptstateful/DownloadTranscriptStateful.js +202 -0
  249. package/lib/esm/components/footerstateful/downloadtranscriptstateful/DownloadTranscriptStateful.spec.js +54 -0
  250. package/lib/esm/components/footerstateful/downloadtranscriptstateful/interfaces/IDownloadTranscriptProps.js +1 -0
  251. package/lib/esm/components/headerstateful/HeaderStateful.js +92 -0
  252. package/lib/esm/components/headerstateful/common/styleProps/defaultOutOfOfficeHeaderStyleProps.js +11 -0
  253. package/lib/esm/components/headerstateful/interfaces/IHeaderStatefulParams.js +1 -0
  254. package/lib/esm/components/livechatwidget/LiveChatWidget.js +21 -0
  255. package/lib/esm/components/livechatwidget/common/createAdapter.js +27 -0
  256. package/lib/esm/components/livechatwidget/common/createFooter.js +27 -0
  257. package/lib/esm/components/livechatwidget/common/createInternetConnectionChangeHandler.js +30 -0
  258. package/lib/esm/components/livechatwidget/common/createMarkdown.js +61 -0
  259. package/lib/esm/components/livechatwidget/common/defaultProps/dummyDefaultProps.js +1690 -0
  260. package/lib/esm/components/livechatwidget/common/defaultStyles/defaultLiveChatWidgetGeneralStyles.js +5 -0
  261. package/lib/esm/components/livechatwidget/common/disposeTelemetryLoggers.js +4 -0
  262. package/lib/esm/components/livechatwidget/common/endChat.js +61 -0
  263. package/lib/esm/components/livechatwidget/common/getGeneralStylesForButton.js +17 -0
  264. package/lib/esm/components/livechatwidget/common/initCallingSdk.js +30 -0
  265. package/lib/esm/components/livechatwidget/common/initConfirmationPropsComposer.js +42 -0
  266. package/lib/esm/components/livechatwidget/common/initWebChatComposer.js +94 -0
  267. package/lib/esm/components/livechatwidget/common/reconnectChatHelper.js +78 -0
  268. package/lib/esm/components/livechatwidget/common/registerTelemetryLoggers.js +54 -0
  269. package/lib/esm/components/livechatwidget/common/setPostChatContextAndLoadSurvey.js +40 -0
  270. package/lib/esm/components/livechatwidget/common/startChat.js +161 -0
  271. package/lib/esm/components/livechatwidget/common/startProactiveChat.js +25 -0
  272. package/lib/esm/components/livechatwidget/common/updateSessionDataForTelemetry.js +28 -0
  273. package/lib/esm/components/livechatwidget/interfaces/ILiveChatWidgetComponentOverrides.js +1 -0
  274. package/lib/esm/components/livechatwidget/interfaces/ILiveChatWidgetControlProps.js +1 -0
  275. package/lib/esm/components/livechatwidget/interfaces/ILiveChatWidgetProps.js +1 -0
  276. package/lib/esm/components/livechatwidget/interfaces/ILiveChatWidgetStyleProps.js +1 -0
  277. package/lib/esm/components/livechatwidget/livechatwidgetstateful/LiveChatWidgetStateful.js +265 -0
  278. package/lib/esm/components/loadingpanestateful/LoadingPaneStateful.js +40 -0
  279. package/lib/esm/components/loadingpanestateful/common/defaultStyleProps/defaultgeneralLoadingPaneStyleProps.js +10 -0
  280. package/lib/esm/components/ooohpanestateful/OOOHPaneStateful.js +39 -0
  281. package/lib/esm/components/ooohpanestateful/common/defaultStyleProps/defaultgeneralOOOHPaneStyleProps.js +8 -0
  282. package/lib/esm/components/postchatloadingpanestateful/PostChatLoadingPaneStateful.js +38 -0
  283. package/lib/esm/components/postchatloadingpanestateful/common/defaultgeneralPostChatLoadingPaneStyleProps.js +10 -0
  284. package/lib/esm/components/postchatsurveypanestateful/PostChatSurveyPaneStateful.js +47 -0
  285. package/lib/esm/components/postchatsurveypanestateful/common/defaultStyleProps/defaultgeneralPostChatSurveyPaneStyleProps.js +10 -0
  286. package/lib/esm/components/postchatsurveypanestateful/enums/PostChatSurveyMode.js +6 -0
  287. package/lib/esm/components/prechatsurveypanestateful/PreChatSurveyPaneStateful.js +149 -0
  288. package/lib/esm/components/prechatsurveypanestateful/common/defaultProps/defaultPreChatSurveyLocalizedTexts.js +3 -0
  289. package/lib/esm/components/prechatsurveypanestateful/common/defaultStyles/defaultGeneralPreChatSurveyPaneStyleProps.js +10 -0
  290. package/lib/esm/components/prechatsurveypanestateful/interfaces/IPreChatSurveyPaneStatefulParams.js +1 -0
  291. package/lib/esm/components/proactivechatpanestateful/ProactiveChatPaneStateful.js +107 -0
  292. package/lib/esm/components/proactivechatpanestateful/interfaces/IProactiveChatPaneStatefulProps.js +1 -0
  293. package/lib/esm/components/reconnectchatpanestateful/ReconnectChatPaneStateful.js +94 -0
  294. package/lib/esm/components/reconnectchatpanestateful/interfaces/IReconnectChatContext.js +1 -0
  295. package/lib/esm/components/reconnectchatpanestateful/interfaces/IReconnectChatOptionalParams.js +1 -0
  296. package/lib/esm/components/reconnectchatpanestateful/interfaces/IReconnectChatPaneStatefulParams.js +1 -0
  297. package/lib/esm/components/reconnectchatpanestateful/interfaces/IReconnectChatPaneStatefulProps.js +1 -0
  298. package/lib/esm/components/webchatcontainerstateful/WebChatContainerStateful.js +61 -0
  299. package/lib/esm/components/webchatcontainerstateful/common/defaultProps/defaultAttachmentProps.js +5 -0
  300. package/lib/esm/components/webchatcontainerstateful/common/defaultProps/defaultMarkdownLocalizedTexts.js +3 -0
  301. package/lib/esm/components/webchatcontainerstateful/common/defaultProps/defaultMiddlewareLocalizedTexts.js +20 -0
  302. package/lib/esm/components/webchatcontainerstateful/common/defaultProps/defaultWebChatContainerStatefulProps.js +12 -0
  303. package/lib/esm/components/webchatcontainerstateful/common/defaultProps/defaultWebChatStatefulProps.js +12 -0
  304. package/lib/esm/components/webchatcontainerstateful/common/defaultStyles/defaultWebChatContainerStatefulStyles.js +32 -0
  305. package/lib/esm/components/webchatcontainerstateful/common/defaultStyles/defaultWebChatStatefulContainerStyles.js +5 -0
  306. package/lib/esm/components/webchatcontainerstateful/common/mockadapter.js +89 -0
  307. package/lib/esm/components/webchatcontainerstateful/common/mockchatsdk.js +47 -0
  308. package/lib/esm/components/webchatcontainerstateful/common/utils/BrowserInfo.js +70 -0
  309. package/lib/esm/components/webchatcontainerstateful/common/utils/FileAttachmentIconManager.js +92 -0
  310. package/lib/esm/components/webchatcontainerstateful/common/utils/isMaskingFromCustomer.js +18 -0
  311. package/lib/esm/components/webchatcontainerstateful/interfaces/IAttachmentProps.js +1 -0
  312. package/lib/esm/components/webchatcontainerstateful/interfaces/IDataMaskingInfo.js +1 -0
  313. package/lib/esm/components/webchatcontainerstateful/interfaces/IDataMaskingRule.js +1 -0
  314. package/lib/esm/components/webchatcontainerstateful/interfaces/IDataMaskingSetting.js +1 -0
  315. package/lib/esm/components/webchatcontainerstateful/interfaces/IRenderingMiddlewareProps.js +1 -0
  316. package/lib/esm/components/webchatcontainerstateful/interfaces/IWebChatAction.js +1 -0
  317. package/lib/esm/components/webchatcontainerstateful/interfaces/IWebChatContainerStatefulProps.js +1 -0
  318. package/lib/esm/components/webchatcontainerstateful/interfaces/IWebChatProps.js +1 -0
  319. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/WebChatStoreLoader.js +5 -0
  320. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/enums/BrowserVendor.js +11 -0
  321. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/enums/DirectLineActivityType.js +6 -0
  322. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/enums/DirectLineSenderRole.js +7 -0
  323. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/enums/MessageType.js +13 -0
  324. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/enums/NotificationLevel.js +8 -0
  325. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/enums/NotificationScenarios.js +10 -0
  326. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/enums/SendStatus.js +7 -0
  327. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/enums/WebChatActionType.js +25 -0
  328. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/adaptermiddlewares/formatTagsEgressMiddleware.js +35 -0
  329. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/adaptermiddlewares/formatTagsIngressMiddleware.js +25 -0
  330. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/activityMiddleware.js +140 -0
  331. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/activityStatusMiddleware.js +66 -0
  332. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachmentMiddleware.js +264 -0
  333. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/avatarMiddleware.js +47 -0
  334. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAttachmentContentStyles.js +3 -0
  335. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAttachmentDividerStyles.js +6 -0
  336. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAttachmentDownloadIconStyles.js +7 -0
  337. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAttachmentFileNameStyles.js +6 -0
  338. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAttachmentSizeStyles.js +3 -0
  339. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAtttachmentAdaptiveCardStyles.js +5 -0
  340. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAtttachmentIconStyles.js +5 -0
  341. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAtttachmentStyles.js +10 -0
  342. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAvatarStyles.js +7 -0
  343. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAvatarTextStyles.js +12 -0
  344. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultSystemMessageStyles.js +11 -0
  345. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTimestampContentStyles.js +8 -0
  346. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTimestampFailedStyles.js +4 -0
  347. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTimestampRetryStyles.js +5 -0
  348. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTypingIndicatorBubbleStyles.js +11 -0
  349. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTypingIndicatorContainerStyles.js +7 -0
  350. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTypingIndicatorMessageStyles.js +8 -0
  351. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultUserMessageStyles.js +3 -0
  352. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/groupActivitiesMiddleware.js +54 -0
  353. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/timestamps/DeliveredTimestamp.js +39 -0
  354. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/timestamps/NotDeliveredTimestamp.js +95 -0
  355. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/timestamps/SendingTimestamp.js +30 -0
  356. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/typingIndicatorMiddleware.js +141 -0
  357. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/attachmentProcessingMiddleware.js +42 -0
  358. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/attachmentUploadValidatorMiddleware.js +149 -0
  359. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/channelDataMiddleware.js +43 -0
  360. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/conversationEndMiddleware.js +45 -0
  361. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/dataMaskingMiddleware.js +73 -0
  362. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/gifUploadMiddleware.js +45 -0
  363. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/htmlPlayerMiddleware.js +44 -0
  364. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/htmlTextMiddleware.js +131 -0
  365. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/maxMessageSizeValidator.js +33 -0
  366. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/preProcessingMiddleware.js +44 -0
  367. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/sanitizationMiddleware.js +53 -0
  368. package/lib/esm/components/webchatcontainerstateful/webchatcontroller/notification/NotificationHandler.js +81 -0
  369. package/lib/esm/contexts/ChatAdapterStore.js +3 -0
  370. package/lib/esm/contexts/ChatContextStore.js +3 -0
  371. package/lib/esm/contexts/ChatSDKStore.js +3 -0
  372. package/lib/esm/contexts/common/ConversationState.js +12 -0
  373. package/lib/esm/contexts/common/ILiveChatWidgetAction.js +1 -0
  374. package/lib/esm/contexts/common/ILiveChatWidgetContext.js +1 -0
  375. package/lib/esm/contexts/common/ILiveChatWidgetLocalizedTexts.js +1 -0
  376. package/lib/esm/contexts/common/LiveChatWidgetActionType.js +35 -0
  377. package/lib/esm/contexts/common/LiveChatWidgetContextInitialState.js +51 -0
  378. package/lib/esm/contexts/createReducer.js +237 -0
  379. package/lib/esm/controller/componentController.js +43 -0
  380. package/lib/esm/hooks/useChatAdapterStore.js +15 -0
  381. package/lib/esm/hooks/useChatContextStore.js +14 -0
  382. package/lib/esm/hooks/useChatSDKStore.js +14 -0
  383. package/lib/esm/index.js +5 -0
  384. package/lib/types/common/Constants.d.ts +149 -0
  385. package/lib/types/common/KeyCodes.d.ts +5 -0
  386. package/lib/types/common/contextDataStore/DataStoreManager.d.ts +4 -0
  387. package/lib/types/common/interfaces/IContextDataStore.d.ts +14 -0
  388. package/lib/types/common/interfaces/ITimer.d.ts +3 -0
  389. package/lib/types/common/telemetry/TelemetryConstants.d.ts +119 -0
  390. package/lib/types/common/telemetry/TelemetryHelper.d.ts +38 -0
  391. package/lib/types/common/telemetry/TelemetryManager.d.ts +12 -0
  392. package/lib/types/common/telemetry/defaultConfigs/defaultAriaConfig.d.ts +2 -0
  393. package/lib/types/common/telemetry/defaultConfigs/defaultTelemetryConfiguration.d.ts +2 -0
  394. package/lib/types/common/telemetry/defaultConfigs/defaultTelemetryInternalData.d.ts +2 -0
  395. package/lib/types/common/telemetry/definitions/Contracts.d.ts +73 -0
  396. package/lib/types/common/telemetry/definitions/Payload.d.ts +80 -0
  397. package/lib/types/common/telemetry/interfaces/IAriaConfigurations.d.ts +18 -0
  398. package/lib/types/common/telemetry/interfaces/IChatSDKLogger.d.ts +5 -0
  399. package/lib/types/common/telemetry/interfaces/IInternalTelemetryData.d.ts +21 -0
  400. package/lib/types/common/telemetry/interfaces/ITelemetryConfig.d.ts +44 -0
  401. package/lib/types/common/telemetry/interfaces/ITelemetryEvents.d.ts +7 -0
  402. package/lib/types/common/telemetry/loggers/ariaTelemetryLogger.d.ts +2 -0
  403. package/lib/types/common/telemetry/loggers/consoleLogger.d.ts +2 -0
  404. package/lib/types/common/utils.d.ts +23 -0
  405. package/lib/types/components/callingcontainerstateful/CallingContainerStateful.d.ts +3 -0
  406. package/lib/types/components/callingcontainerstateful/ICallingContainerStatefulProps.d.ts +4 -0
  407. package/lib/types/components/chatbuttonstateful/ChatButtonStateful.d.ts +3 -0
  408. package/lib/types/components/chatbuttonstateful/common/styleProps/defaultOutOfOfficeChatButtonStyleProps.d.ts +2 -0
  409. package/lib/types/components/chatbuttonstateful/interfaces/IChatButtonStatefulParams.d.ts +17 -0
  410. package/lib/types/components/confirmationpanestateful/ConfirmationPaneStateful.d.ts +3 -0
  411. package/lib/types/components/confirmationpanestateful/common/defaultProps/defaultConfirmationPaneLocalizedTexts.d.ts +2 -0
  412. package/lib/types/components/confirmationpanestateful/interfaces/IConfirmationPaneInputs.d.ts +4 -0
  413. package/lib/types/components/confirmationpanestateful/interfaces/IConfirmationPaneLocalizedText.d.ts +10 -0
  414. package/lib/types/components/confirmationpanestateful/interfaces/IConfirmationPaneStatefulParams.d.ts +11 -0
  415. package/lib/types/components/confirmationpanestateful/interfaces/IConfirmationPaneStatefulProps.d.ts +8 -0
  416. package/lib/types/components/dimlayer/DimLayer.d.ts +5 -0
  417. package/lib/types/components/emailtranscriptpanestateful/EmailTranscriptPaneStateful.d.ts +3 -0
  418. package/lib/types/components/emailtranscriptpanestateful/EmailTranscriptPaneStateful.spec.d.ts +1 -0
  419. package/lib/types/components/emailtranscriptpanestateful/interfaces/IChatTranscriptBody.d.ts +5 -0
  420. package/lib/types/components/emailtranscriptpanestateful/interfaces/IEmailTranscriptPaneProps.d.ts +11 -0
  421. package/lib/types/components/footerstateful/FooterStateful.d.ts +2 -0
  422. package/lib/types/components/footerstateful/audionotificationstateful/AudioNotificationStateful.d.ts +3 -0
  423. package/lib/types/components/footerstateful/audionotificationstateful/interfaces/IAudioNotificationProps.d.ts +3 -0
  424. package/lib/types/components/footerstateful/audionotificationstateful/interfaces/IAudioNotificationStatefulParams.d.ts +5 -0
  425. package/lib/types/components/footerstateful/downloadtranscriptstateful/DownloadTranscriptStateful.d.ts +1 -0
  426. package/lib/types/components/footerstateful/downloadtranscriptstateful/DownloadTranscriptStateful.spec.d.ts +1 -0
  427. package/lib/types/components/footerstateful/downloadtranscriptstateful/interfaces/IDownloadTranscriptProps.d.ts +14 -0
  428. package/lib/types/components/headerstateful/HeaderStateful.d.ts +3 -0
  429. package/lib/types/components/headerstateful/common/styleProps/defaultOutOfOfficeHeaderStyleProps.d.ts +2 -0
  430. package/lib/types/components/headerstateful/interfaces/IHeaderStatefulParams.d.ts +17 -0
  431. package/lib/types/components/livechatwidget/LiveChatWidget.d.ts +3 -0
  432. package/lib/types/components/livechatwidget/common/createAdapter.d.ts +1 -0
  433. package/lib/types/components/livechatwidget/common/createFooter.d.ts +3 -0
  434. package/lib/types/components/livechatwidget/common/createInternetConnectionChangeHandler.d.ts +1 -0
  435. package/lib/types/components/livechatwidget/common/createMarkdown.d.ts +2 -0
  436. package/lib/types/components/livechatwidget/common/defaultProps/dummyDefaultProps.d.ts +2 -0
  437. package/lib/types/components/livechatwidget/common/defaultStyles/defaultLiveChatWidgetGeneralStyles.d.ts +2 -0
  438. package/lib/types/components/livechatwidget/common/disposeTelemetryLoggers.d.ts +1 -0
  439. package/lib/types/components/livechatwidget/common/endChat.d.ts +4 -0
  440. package/lib/types/components/livechatwidget/common/getGeneralStylesForButton.d.ts +3 -0
  441. package/lib/types/components/livechatwidget/common/initCallingSdk.d.ts +1 -0
  442. package/lib/types/components/livechatwidget/common/initConfirmationPropsComposer.d.ts +3 -0
  443. package/lib/types/components/livechatwidget/common/initWebChatComposer.d.ts +6 -0
  444. package/lib/types/components/livechatwidget/common/reconnectChatHelper.d.ts +7 -0
  445. package/lib/types/components/livechatwidget/common/registerTelemetryLoggers.d.ts +4 -0
  446. package/lib/types/components/livechatwidget/common/setPostChatContextAndLoadSurvey.d.ts +3 -0
  447. package/lib/types/components/livechatwidget/common/startChat.d.ts +7 -0
  448. package/lib/types/components/livechatwidget/common/startProactiveChat.d.ts +3 -0
  449. package/lib/types/components/livechatwidget/common/updateSessionDataForTelemetry.d.ts +3 -0
  450. package/lib/types/components/livechatwidget/interfaces/ILiveChatWidgetComponentOverrides.d.ts +15 -0
  451. package/lib/types/components/livechatwidget/interfaces/ILiveChatWidgetControlProps.d.ts +17 -0
  452. package/lib/types/components/livechatwidget/interfaces/ILiveChatWidgetProps.d.ts +52 -0
  453. package/lib/types/components/livechatwidget/interfaces/ILiveChatWidgetStyleProps.d.ts +5 -0
  454. package/lib/types/components/livechatwidget/livechatwidgetstateful/LiveChatWidgetStateful.d.ts +3 -0
  455. package/lib/types/components/loadingpanestateful/LoadingPaneStateful.d.ts +3 -0
  456. package/lib/types/components/loadingpanestateful/common/defaultStyleProps/defaultgeneralLoadingPaneStyleProps.d.ts +2 -0
  457. package/lib/types/components/ooohpanestateful/OOOHPaneStateful.d.ts +3 -0
  458. package/lib/types/components/ooohpanestateful/common/defaultStyleProps/defaultgeneralOOOHPaneStyleProps.d.ts +2 -0
  459. package/lib/types/components/postchatloadingpanestateful/PostChatLoadingPaneStateful.d.ts +3 -0
  460. package/lib/types/components/postchatloadingpanestateful/common/defaultgeneralPostChatLoadingPaneStyleProps.d.ts +2 -0
  461. package/lib/types/components/postchatsurveypanestateful/PostChatSurveyPaneStateful.d.ts +3 -0
  462. package/lib/types/components/postchatsurveypanestateful/common/defaultStyleProps/defaultgeneralPostChatSurveyPaneStyleProps.d.ts +2 -0
  463. package/lib/types/components/postchatsurveypanestateful/enums/PostChatSurveyMode.d.ts +4 -0
  464. package/lib/types/components/prechatsurveypanestateful/PreChatSurveyPaneStateful.d.ts +3 -0
  465. package/lib/types/components/prechatsurveypanestateful/common/defaultProps/defaultPreChatSurveyLocalizedTexts.d.ts +2 -0
  466. package/lib/types/components/prechatsurveypanestateful/common/defaultStyles/defaultGeneralPreChatSurveyPaneStyleProps.d.ts +2 -0
  467. package/lib/types/components/prechatsurveypanestateful/interfaces/IPreChatSurveyPaneStatefulParams.d.ts +5 -0
  468. package/lib/types/components/proactivechatpanestateful/ProactiveChatPaneStateful.d.ts +2 -0
  469. package/lib/types/components/proactivechatpanestateful/interfaces/IProactiveChatPaneStatefulProps.d.ts +4 -0
  470. package/lib/types/components/reconnectchatpanestateful/ReconnectChatPaneStateful.d.ts +3 -0
  471. package/lib/types/components/reconnectchatpanestateful/interfaces/IReconnectChatContext.d.ts +4 -0
  472. package/lib/types/components/reconnectchatpanestateful/interfaces/IReconnectChatOptionalParams.d.ts +3 -0
  473. package/lib/types/components/reconnectchatpanestateful/interfaces/IReconnectChatPaneStatefulParams.d.ts +5 -0
  474. package/lib/types/components/reconnectchatpanestateful/interfaces/IReconnectChatPaneStatefulProps.d.ts +6 -0
  475. package/lib/types/components/webchatcontainerstateful/WebChatContainerStateful.d.ts +3 -0
  476. package/lib/types/components/webchatcontainerstateful/common/defaultProps/defaultAttachmentProps.d.ts +2 -0
  477. package/lib/types/components/webchatcontainerstateful/common/defaultProps/defaultMarkdownLocalizedTexts.d.ts +2 -0
  478. package/lib/types/components/webchatcontainerstateful/common/defaultProps/defaultMiddlewareLocalizedTexts.d.ts +2 -0
  479. package/lib/types/components/webchatcontainerstateful/common/defaultProps/defaultWebChatContainerStatefulProps.d.ts +2 -0
  480. package/lib/types/components/webchatcontainerstateful/common/defaultProps/defaultWebChatStatefulProps.d.ts +2 -0
  481. package/lib/types/components/webchatcontainerstateful/common/defaultStyles/defaultWebChatContainerStatefulStyles.d.ts +2 -0
  482. package/lib/types/components/webchatcontainerstateful/common/defaultStyles/defaultWebChatStatefulContainerStyles.d.ts +2 -0
  483. package/lib/types/components/webchatcontainerstateful/common/mockadapter.d.ts +13 -0
  484. package/lib/types/components/webchatcontainerstateful/common/mockchatsdk.d.ts +17 -0
  485. package/lib/types/components/webchatcontainerstateful/common/utils/BrowserInfo.d.ts +5 -0
  486. package/lib/types/components/webchatcontainerstateful/common/utils/FileAttachmentIconManager.d.ts +7 -0
  487. package/lib/types/components/webchatcontainerstateful/common/utils/isMaskingFromCustomer.d.ts +2 -0
  488. package/lib/types/components/webchatcontainerstateful/interfaces/IAttachmentProps.d.ts +5 -0
  489. package/lib/types/components/webchatcontainerstateful/interfaces/IDataMaskingInfo.d.ts +6 -0
  490. package/lib/types/components/webchatcontainerstateful/interfaces/IDataMaskingRule.d.ts +3 -0
  491. package/lib/types/components/webchatcontainerstateful/interfaces/IDataMaskingSetting.d.ts +4 -0
  492. package/lib/types/components/webchatcontainerstateful/interfaces/IRenderingMiddlewareProps.d.ts +31 -0
  493. package/lib/types/components/webchatcontainerstateful/interfaces/IWebChatAction.d.ts +4 -0
  494. package/lib/types/components/webchatcontainerstateful/interfaces/IWebChatContainerStatefulProps.d.ts +16 -0
  495. package/lib/types/components/webchatcontainerstateful/interfaces/IWebChatProps.d.ts +38 -0
  496. package/lib/types/components/webchatcontainerstateful/webchatcontroller/WebChatStoreLoader.d.ts +3 -0
  497. package/lib/types/components/webchatcontainerstateful/webchatcontroller/enums/BrowserVendor.d.ts +9 -0
  498. package/lib/types/components/webchatcontainerstateful/webchatcontroller/enums/DirectLineActivityType.d.ts +4 -0
  499. package/lib/types/components/webchatcontainerstateful/webchatcontroller/enums/DirectLineSenderRole.d.ts +5 -0
  500. package/lib/types/components/webchatcontainerstateful/webchatcontroller/enums/MessageType.d.ts +11 -0
  501. package/lib/types/components/webchatcontainerstateful/webchatcontroller/enums/NotificationLevel.d.ts +6 -0
  502. package/lib/types/components/webchatcontainerstateful/webchatcontroller/enums/NotificationScenarios.d.ts +8 -0
  503. package/lib/types/components/webchatcontainerstateful/webchatcontroller/enums/SendStatus.d.ts +5 -0
  504. package/lib/types/components/webchatcontainerstateful/webchatcontroller/enums/WebChatActionType.d.ts +23 -0
  505. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/adaptermiddlewares/formatTagsEgressMiddleware.d.ts +2 -0
  506. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/adaptermiddlewares/formatTagsIngressMiddleware.d.ts +2 -0
  507. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/activityMiddleware.d.ts +11 -0
  508. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/activityStatusMiddleware.d.ts +1 -0
  509. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/attachmentMiddleware.d.ts +7 -0
  510. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/avatarMiddleware.d.ts +8 -0
  511. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAttachmentContentStyles.d.ts +2 -0
  512. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAttachmentDividerStyles.d.ts +2 -0
  513. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAttachmentDownloadIconStyles.d.ts +2 -0
  514. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAttachmentFileNameStyles.d.ts +2 -0
  515. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAttachmentSizeStyles.d.ts +2 -0
  516. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAtttachmentAdaptiveCardStyles.d.ts +2 -0
  517. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAtttachmentIconStyles.d.ts +2 -0
  518. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAtttachmentStyles.d.ts +2 -0
  519. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAvatarStyles.d.ts +2 -0
  520. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultAvatarTextStyles.d.ts +2 -0
  521. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultSystemMessageStyles.d.ts +11 -0
  522. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTimestampContentStyles.d.ts +2 -0
  523. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTimestampFailedStyles.d.ts +2 -0
  524. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTimestampRetryStyles.d.ts +2 -0
  525. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTypingIndicatorBubbleStyles.d.ts +2 -0
  526. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTypingIndicatorContainerStyles.d.ts +2 -0
  527. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultTypingIndicatorMessageStyles.d.ts +2 -0
  528. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/defaultStyles/defaultUserMessageStyles.d.ts +3 -0
  529. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/groupActivitiesMiddleware.d.ts +10 -0
  530. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/timestamps/DeliveredTimestamp.d.ts +1 -0
  531. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/timestamps/NotDeliveredTimestamp.d.ts +1 -0
  532. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/timestamps/SendingTimestamp.d.ts +1 -0
  533. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/typingIndicatorMiddleware.d.ts +6 -0
  534. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/attachmentProcessingMiddleware.d.ts +10 -0
  535. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/attachmentUploadValidatorMiddleware.d.ts +11 -0
  536. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/channelDataMiddleware.d.ts +10 -0
  537. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/conversationEndMiddleware.d.ts +11 -0
  538. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/dataMaskingMiddleware.d.ts +11 -0
  539. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/gifUploadMiddleware.d.ts +10 -0
  540. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/htmlPlayerMiddleware.d.ts +10 -0
  541. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/htmlTextMiddleware.d.ts +10 -0
  542. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/maxMessageSizeValidator.d.ts +11 -0
  543. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/preProcessingMiddleware.d.ts +10 -0
  544. package/lib/types/components/webchatcontainerstateful/webchatcontroller/middlewares/storemiddlewares/sanitizationMiddleware.d.ts +10 -0
  545. package/lib/types/components/webchatcontainerstateful/webchatcontroller/notification/NotificationHandler.d.ts +12 -0
  546. package/lib/types/contexts/ChatAdapterStore.d.ts +2 -0
  547. package/lib/types/contexts/ChatContextStore.d.ts +1 -0
  548. package/lib/types/contexts/ChatSDKStore.d.ts +1 -0
  549. package/lib/types/contexts/common/ConversationState.d.ts +10 -0
  550. package/lib/types/contexts/common/ILiveChatWidgetAction.d.ts +5 -0
  551. package/lib/types/contexts/common/ILiveChatWidgetContext.d.ts +49 -0
  552. package/lib/types/contexts/common/ILiveChatWidgetLocalizedTexts.d.ts +22 -0
  553. package/lib/types/contexts/common/LiveChatWidgetActionType.d.ts +33 -0
  554. package/lib/types/contexts/common/LiveChatWidgetContextInitialState.d.ts +3 -0
  555. package/lib/types/contexts/createReducer.d.ts +3 -0
  556. package/lib/types/controller/componentController.d.ts +15 -0
  557. package/lib/types/hooks/useChatAdapterStore.d.ts +2 -0
  558. package/lib/types/hooks/useChatContextStore.d.ts +5 -0
  559. package/lib/types/hooks/useChatSDKStore.d.ts +2 -0
  560. package/lib/types/index.d.ts +5 -0
  561. package/package.json +114 -0
package/README.md ADDED
@@ -0,0 +1,235 @@
1
+ # Omnichannel Live Chat Widget UI Components
2
+
3
+ ![Release CI](https://github.com/microsoft/omnichannel-chat-widget/workflows/chat-components-release/badge.svg) [![npm version](https://badge.fury.io/js/%40microsoft%2Fomnichannel-chat-components.svg)](https://badge.fury.io/js/%40microsoft%2Fomnichannel-chat-components.svg) ![npm](https://img.shields.io/npm/dm/@microsoft/omnichannel-chat-components)\
4
+ ![Release CI](https://github.com/microsoft/omnichannel-chat-widget/workflows/chat-widget-release/badge.svg) [![npm version](https://badge.fury.io/js/%40microsoft%2Fomnichannel-chat-widget.svg)](https://badge.fury.io/js/%40microsoft%2Fomnichannel-chat-widget.svg) ![npm](https://img.shields.io/npm/dm/@microsoft/omnichannel-chat-widget)
5
+
6
+ [@microsoft/omnichannel-chat-widget](https://www.npmjs.com/package/@microsoft/omnichannel-chat-widget) is a React-based UI component library which allows you to build your own live chat widget experience using [@microsoft/omnichannel-chat-sdk](https://www.npmjs.com/package/@microsoft/omnichannel-chat-sdk).
7
+
8
+ ## Table of Contents
9
+
10
+ 1. [Introduction](#introduction)
11
+ 1. [Installation](#installation)
12
+ 1. [Example Usage](#example-usage)
13
+ 1. [Components](#components)
14
+ 1. [Telemetry](#telemetry)
15
+ 1. [Features](#features)
16
+
17
+ ## Introduction
18
+
19
+ Omnichannel Live Chat Widget UI Components offers a re-usable component-based library to help create a custom chat widget that can be connected to the Dynamics 365 Customer Service experience.
20
+
21
+ For more information about Live Chat Widget, see [here](https://docs.microsoft.com/en-us/dynamics365/customer-service/set-up-chat-widget).
22
+
23
+ ## Installation
24
+
25
+ ```powershell
26
+ npm i @microsoft/omnichannel-chat-sdk
27
+ npm i @microsoft/omnichannel-chat-widget
28
+ ```
29
+
30
+ or
31
+
32
+ ```powershell
33
+ yarn add @microsoft/omnichannel-chat-sdk
34
+ yarn add @microsoft/omnichannel-chat-widget
35
+ ```
36
+
37
+ The repo also contains the ```@microsoft/omnichannel-chat-components``` package, which is a collection of UI components. The ```@microsoft/omnichannel-chat-widget``` package is an integration of the Chat SDK and the UI components. To install the UI components separately, do
38
+
39
+ ```powershell
40
+ npm i @microsoft/omnichannel-chat-components
41
+ ```
42
+
43
+ or
44
+
45
+ ```powershell
46
+ yarn add @microsoft/omnichannel-chat-components
47
+ ```
48
+
49
+ ## Example Usage
50
+
51
+ The basic example below takes in the ```<LiveChatWidget/>``` component along with the Chat SDK to create a customized Omnichannel chat widget.
52
+ > :warning: The Chat SDK has to be **_initialized_** before being passed in.
53
+
54
+ ```js
55
+ import * as React from "react";
56
+
57
+ import { LiveChatWidget } from "@microsoft/omnichannel-chat-widget";
58
+ import { OmnichannelChatSDK } from "@microsoft/omnichannel-chat-sdk";
59
+ import ReactDOM from "react-dom";
60
+ //Below version numbers will help us to troubleshoot issues with specific package
61
+ import { version as chatSdkVersion } from "@microsoft/omnichannel-chat-sdk/package.json";
62
+ import { version as chatWidgetVersion } from "../package.json";
63
+ import { version as chatComponentVersion } from "@microsoft/omnichannel-chat-components/package.json";
64
+
65
+ const render = async () => {
66
+ const omnichannelConfig = {
67
+ orgId: "00000000-0000-0000-0000-000000000000", // dummy config
68
+ orgUrl: "https://www.org-url.com", // dummy config
69
+ widgetId: "00000000-0000-0000-0000-000000000000" // dummy config
70
+ };
71
+ const chatSDK = new OmnichannelChatSDK(omnichannelConfig);
72
+ await chatSDK.initialize(); // mandatory
73
+ const chatConfig = await chatSDK.getLiveChatConfig();
74
+ const liveChatWidgetProps = {
75
+ styleProps: {
76
+ generalStyles: {
77
+ width: "700px",
78
+ height: "800px"
79
+ }
80
+ },
81
+ headerProps: {
82
+ controlProps: {
83
+ hideMinimizeButton: true
84
+ }
85
+ },
86
+ chatSDK: chatSDK, // mandatory
87
+ chatConfig: chatConfig, // mandatory
88
+ telemetryConfig: { //mandatory
89
+ orgId: omnichannelConfig.orgId,
90
+ orgUrl: omnichannelConfig.orgUrl,
91
+ appId: omnichannelConfig.widgetId,
92
+ OCChatSDKVersion: chatSdkVersion,
93
+ chatComponentVersion: chatComponentVersion,
94
+ chatWidgetVersion: chatWidgetVersion
95
+ }
96
+ };
97
+
98
+ ReactDOM.render(
99
+ <LiveChatWidget {...liveChatWidgetProps}/>,
100
+ document.getElementById("my-container")
101
+ );
102
+ };
103
+
104
+ render();
105
+ ```
106
+
107
+ A sample widget can be found in this repo [here](https://github.com/microsoft/omnichannel-chat-widget/tree/main/chat-widget/sample). To build it, do ```yarn build-sample``` or ```yarn build-sample:dev``` from project root.
108
+
109
+ ## Components
110
+
111
+ ### Stateless UI Components
112
+
113
+ These are components that are included in the ```@microsoft/omnichannel-chat-components``` package.
114
+
115
+ | Component | Usage | Interface |
116
+ | ----- | -------- | ----- |
117
+ | CallingContainerPane | The container for voice and video feature in the chat widget | [ICallingContainerProps](https://github.com/microsoft/omnichannel-chat-widget/blob/main/chat-components/src/components/callingcontainer/interfaces/ICallingContainerProps.ts) |
118
+ | ChatButton | The button that appears on the user's portal that is designed to be the entry point for the user to initate chat | [IChatButtonProps](https://github.com/microsoft/omnichannel-chat-widget/blob/main/chat-components/src/components/chatbutton/interfaces/IChatButtonProps.ts) |
119
+ | CommandButton | A customizable button component that can be injected to the header and/or footer | [ICommandButtonProps](https://github.com/microsoft/omnichannel-chat-widget/blob/main/chat-components/src/components/common/interfaces/ICommandButtonProps.ts)|
120
+ | ConfirmationPane | The default pane used when the Header close button is launched | [IConfirmationPaneProps](https://github.com/microsoft/omnichannel-chat-widget/blob/main/chat-components/src/components/confirmationpane/interfaces/IConfirmationPaneProps.ts) |
121
+ | Footer | The bottom container of the chat containing the download transcript, notification sound and email transcript buttons by default. | [IFooterProps](https://github.com/microsoft/omnichannel-chat-widget/blob/main/chat-components/src/components/footer/interfaces/IFooterProps.ts) |
122
+ | Header | The top container of the chat containing the default minimize, close and title of the chat widget | [IHeaderProps](https://github.com/microsoft/omnichannel-chat-widget/blob/main/chat-components/src/components/header/interfaces/IHeaderProps.ts) |
123
+ | InputValidationPane | A pop-up input pane with validation. In the default widget this is used as part of [EmailTranscriptPane](https://github.com/microsoft/omnichannel-chat-widget/blob/main/chat-widget/src/components/emailtranscriptpanestateful/interfaces/IEmailTranscriptPaneProps.ts) | [IInputValidationPaneProps](https://github.com/microsoft/omnichannel-chat-widget/blob/main/chat-components/src/components/inputvalidationpane/interfaces/IInputValidationPaneProps.ts) |
124
+ | LoadingPane | The default pane used after the chat button is clicked and before the chat loads completely | [ILoadingPaneProps](https://github.com/microsoft/omnichannel-chat-widget/blob/main/chat-components/src/components/loadingpane/interfaces/ILoadingPaneProps.ts) |
125
+ | OutOfOfficeHoursPane | The pane that is displayed when the chat is outside of operating hours set on admin side | [IOOOHPaneProps](https://github.com/microsoft/omnichannel-chat-widget/blob/main/chat-components/src/components/outofofficehourspane/interfaces/IOOOHPaneProps.ts) |
126
+ | PostChatSurveyPane | The pane that holds the [Customer Voice](https://dynamics.microsoft.com/en-us/customer-voice/overview/) survey which would be used by the customer to input their chat experience, provide user ratings etc. It uses an IFrame to render the survey URL fetched from `getPostChatSurveyContext` call from [OmniChannel ChatSDK](https://github.com/microsoft/omnichannel-chat-sdk#get-postchat-survey). | [IPostChatSurveyPaneProps](https://github.com/microsoft/omnichannel-chat-widget/blob/main/chat-components/src/components/postchatsurveypane/interfaces/IPostChatSurveyPaneProps.ts) |
127
+ | PreChatSurveyPane | The pane that holds the form which would be used by the customer to input helpful information for using the Support Chat before starting up the Chat Process. Makes use of [AdaptiveCards](https://adaptivecards.io/) | [IPreChatSurveyPaneProps](https://github.com/microsoft/omnichannel-chat-widget/blob/main/chat-components/src/components/prechatsurveypane/interfaces/IPreChatSurveyPaneProps.ts) |
128
+ | ProactiveChatSurveyPane | A pane that holds more information than a normal chat button and can be configured to proactively pop up | [IProactiveChatPaneProps](https://github.com/microsoft/omnichannel-chat-widget/blob/main/chat-components/src/components/proactivechatpane/interfaces/IProactiveChatPaneProps.ts) |
129
+ | ReconnectChatPane | The pane that shows up when the customer is re-connecting to the chat to add additional conversation | [IReconnectChatPaneProps](https://github.com/microsoft/omnichannel-chat-widget/blob/main/chat-components/src/components/reconnectchatpane/interfaces/IReconnectChatPaneProps.ts) |
130
+
131
+ > :warning: Because the components extend Microsoft's [Fluent UI](https://developer.microsoft.com/en-us/fluentui#/) components, the base interface for all the ```styleProps``` in the above table is [IStyle](https://github.com/microsoft/fluentui/blob/master/packages/merge-styles/src/IStyle.ts), which extends the [IRawStyleBase](https://docs.microsoft.com/en-us/javascript/api/merge-styles/irawstylebase?view=office-ui-fabric-react-latest) interface, which is the most useful reference.
132
+
133
+ ### Stateful Components
134
+
135
+ | Component | Default Usage | Interface |
136
+ | ----- | -------- | ----- |
137
+ | LiveChatWidget | The default widget that stitches the UI components with Chat SDK | [ILiveChatWidgetProps](https://github.com/microsoft/omnichannel-chat-widget/blob/main/chat-widget/src/components/livechatwidget/interfaces/ILiveChatWidgetProps.ts) |
138
+
139
+ Some of the interfaces listed in the Stateless table have Stateful counterparts defined in the ```@microsoft/omnichannel-chat-widget``` package. For example, [IConfirmationPaneStatefulProps](https://github.com/microsoft/omnichannel-chat-widget/blob/main/chat-widget/src/components/confirmationpanestateful/interfaces/IConfirmationPaneStatefulProps.ts) extends [IConfirmationPaneProps](https://github.com/microsoft/omnichannel-chat-widget/blob/main/chat-components/src/components/confirmationpane/interfaces/IConfirmationPaneProps.ts) with additional attributes that only makes sense in the stateful context.
140
+
141
+ ### Default Props
142
+
143
+ For a list of all default props used in the default stateful widget, please see [here](https://github.com/microsoft/omnichannel-chat-widget/blob/main/chat-widget/src/components/livechatwidget/common/defaultProps/dummyDefaultProps.ts). If you want to change a default prop, you need to explicitly set it and parse the object as the argument to ```<LiveChatWidget/>```
144
+
145
+ ### Custom Components
146
+
147
+ There are two ways to custom the components provided in the library - 1) Replacing components using ComponentOverrides, and 2) Adding custom components in header and footer.
148
+
149
+ #### ComponentOverrides
150
+
151
+ Most sub-components and the default panes provided can be overriden. Components have "componentOverrides" as part of props interface, which consists of ReactNodes or strings for each part of the component. For example, the "ProactiveChatPane" component has a close button, and the close button can be overriden by creating a custom react node and setting it to the "closeButton" attribute of "componentOverrides" interface that is part of the props.
152
+
153
+ ```js
154
+ const customButton = (
155
+ <button style={{
156
+ background: "green",
157
+ height: "80px",
158
+ margin: "30px 15px 0 0",
159
+ padding: "10px",
160
+ width: "160px"
161
+ }}>
162
+ This is a custom button
163
+ </button>
164
+ );
165
+
166
+ const liveChatWidgetProps = {
167
+ proactiveChatPaneProps: {
168
+ componentOverrides: {
169
+ closeButton: customButton
170
+ };
171
+ };
172
+ }
173
+ ```
174
+
175
+ #### Custom Components in Header and Footer
176
+
177
+ Header's and Footer's child components consist of three parts:
178
+
179
+ 1. "leftGroup" - adding child components at the left of the Header/Footer
180
+ 1. "middleGroup" - adding child components in the middle of the Header/Footer
181
+ 1. "rightGroup" - adding child components at the right of the Header/Footer
182
+
183
+ By default Header has the header icon and title on the left and minimize and close buttons on the right, and Footer has Download Transcript and Email Transcript buttons on the left and audio notification button on the right. These components can be overriden with [ComponentOverrides](#ComponentOverrides). In addition, other custom child components can be added to both Header and Footer by creating custom react nodes and adding them to attributes "leftGroup", "middleGroup" or "rightGroup" of "controlProps".
184
+
185
+ ```js
186
+ const buttonStyleProps: IButtonStyles = {
187
+ root: {
188
+ color: "blue",
189
+ height: 25,
190
+ width: 25,
191
+ }
192
+ };
193
+
194
+ const calendarIcon: IIconProps = { iconName: "Calendar" };
195
+ const calendarIconButton = <IconButton
196
+ key="calendarIconButton"
197
+ iconProps={calendarIcon}
198
+ styles={buttonStyleProps}
199
+ title="Calendar">
200
+ </IconButton>;
201
+
202
+ const emojiIcon: IIconProps = { iconName: "Emoji2" };
203
+ const emojiIconButton = <IconButton
204
+ key="emojiIconButton"
205
+ iconProps={emojiIcon}
206
+ styles={buttonStyleProps}
207
+ title="Sentiment">
208
+ </IconButton>;
209
+
210
+ const uploadIcon: IIconProps = { iconName: "Upload" };
211
+ const uploadIconButton = <IconButton
212
+ key="uploadIconButton"
213
+ iconProps={uploadIcon}
214
+ styles={buttonStyleProps}
215
+ title="Upload">
216
+ </IconButton>;
217
+
218
+ const customizedFooterProp: IFooterProps = {
219
+ controlProps: {
220
+ leftGroup: { children: [uploadIconButton] },
221
+ middleGroup: { children: [calendarIconButton] },
222
+ rightGroup: { children: [emojiIconButton] }
223
+ }
224
+ };
225
+ ```
226
+
227
+ > :pushpin: Note that [WebChat hooks](https://github.com/microsoft/BotFramework-WebChat/blob/main/docs/HOOKS.md) can also be used in any custom components.
228
+
229
+ ## See Also
230
+
231
+ [Telemetry](https://github.com/microsoft/omnichannel-chat-widget/blob/main/docs/Telemetry.md)\
232
+ [Create LCW widget with Webpack5 and TypeScript](https://github.com/microsoft/omnichannel-chat-widget/blob/main/docs/BuildingUsingWebpack5.md)\
233
+ [Omnichannel Features](https://github.com/microsoft/omnichannel-chat-widget/blob/main/docs/Features.md)\
234
+ [How to Add Visual Regression Tests](https://github.com/microsoft/omnichannel-chat-widget/blob/main/docs/VisualRegressionTestingGuide.md)\
235
+ [Security](https://github.com/microsoft/omnichannel-chat-widget/blob/main/SECURITY.md)
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2048 2048" width="12px" height="12px">
2
+ <path d="M1792 0q27 0 50 10t40 27 28 41 10 50v480q0 45-9 77t-24 58-31 46-31 40-23 44-10 55v992q0 27-10 50t-27 40-41 28-50 10H256V0h1536zM640 128v384h256V128H640zm1024 800q0-31-9-54t-24-44-31-41-31-45-23-58-10-78V128h-512v512H768v128H640V640H512V128H384v1792h384v-128h128v128h768V928zm128-800h-128v480q0 24 4 42t13 33 20 29 27 32q15-17 26-31t20-30 13-33 5-42V128zM640 896h128v128H640V896zm0 256h128v128H640v-128zm0 256h128v128H640v-128zm128 256v128H640v-128h128zm0-768V768h128v128H768zm0 256v-128h128v128H768zm0 256v-128h128v128H768zm0 256v-128h128v128H768z" />
3
+ </svg>
@@ -0,0 +1,6 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg"
2
+ viewBox="0 0 2048 2048"
3
+ width="12px"
4
+ height="12px">
5
+ <path d="M1792 1408q0 62-29 109t-76 80-104 50-111 17q-54 0-111-17t-103-49-76-80-30-110q0-61 29-109t76-80 104-50 111-17q51 0 100 12t92 39V226L768 450v1214q0 62-29 109t-76 80-104 50-111 17q-54 0-111-17t-103-49-76-80-30-110q0-61 29-109t76-80 104-50 111-17q51 0 100 12t92 39V350L1792 62v1346z" />
6
+ </svg>
@@ -0,0 +1,6 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg"
2
+ viewBox="0 0 2048 2048"
3
+ width="12px"
4
+ height="12px">
5
+ <path d="M549 0h1243v1755l-293 293H256V293L549 0zm1115 1701V128H603L384 347v1573h1061l219-219z" />
6
+ </svg>
@@ -0,0 +1,6 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg"
2
+ viewBox="0 0 2048 2048"
3
+ width="12px"
4
+ height="12px">
5
+ <path d="M2048 475v1445q0 27-10 50t-27 40-41 28-50 10H640q-27 0-50-10t-40-27-28-41-10-50v-256H115q-24 0-44-9t-37-25-25-36-9-45V627q0-24 9-44t25-37 36-25 45-9h397V128q0-27 10-50t27-40 41-28 50-10h933q26 0 49 9t42 28l347 347q18 18 27 41t10 50zm-384-256v165h165l-165-165zM261 1424h189q2-4 12-23t25-45 29-55 29-53 23-41 10-17q27 59 60 118t65 116h187l-209-339 205-333H707q-31 57-60 114t-63 112q-29-57-57-113t-57-113H279l199 335-217 337zm379 496h1280V512h-256q-27 0-50-10t-40-27-28-41-10-50V128H640v384h397q24 0 44 9t37 25 25 36 9 45v922q0 24-9 44t-25 37-36 25-45 9H640v256zm640-1024V768h512v128h-512zm0 256v-128h512v128h-512zm0 256v-128h512v128h-512z" />
6
+ </svg>
@@ -0,0 +1,6 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg"
2
+ viewBox="0 0 2048 2048"
3
+ width="12px"
4
+ height="12px">
5
+ <path d="M256 1920h1536v128H128V0h1115l549 549v91h-640V128H256v1792zM1280 512h293l-293-293v293zm768 256v1024H640V768h1408zM768 896v421l320-319 416 416 160-160 256 256V896H768zm987 768h139l-230-230-69 70 160 160zm-987 0h805l-485-486-320 321v165zm960-512q-26 0-45-19t-19-45q0-26 19-45t45-19q26 0 45 19t19 45q0 26-19 45t-45 19z" />
6
+ </svg>
@@ -0,0 +1,6 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg"
2
+ viewBox="0 0 2048 2048"
3
+ width="12px"
4
+ height="12px">
5
+ <path d="M1963 128q35 0 60 25t25 60v1622q0 35-25 60t-60 25H597q-35 0-60-25t-25-60v-299H85q-35 0-60-25t-25-60V597q0-35 25-60t60-25h427V213q0-35 25-60t60-25h1366zM389 939l242 420h152V689H635v429L402 689H241v670h148V939zm1531 853v-256h-256v256h256zm0-384v-256h-256v256h256zm0-384V768h-256v256h256zm0-384V256H640v256h299q35 0 60 25t25 60v854q0 35-25 60t-60 25H640v256h896V640h384z" />
6
+ </svg>
@@ -0,0 +1,6 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg"
2
+ viewBox="0 0 2048 2048"
3
+ width="12px"
4
+ height="12px">
5
+ <path d="M1920 1664h-128v384H128v-384H0V640h128V0h1243l421 421v219h128v1024zM1408 384h165l-165-165v165zM256 640h1408V512h-384V128H256v512zm1408 1024H256v256h1408v-256zm128-896H128v768h1664V768zM448 896q40 0 75 15t61 41 41 61 15 75q0 40-15 75t-41 61-61 41-75 15h-64v128H256V896h192zm0 256q26 0 45-19t19-45q0-26-19-45t-45-19h-64v128h64zm448-256q53 0 99 20t82 55 55 81 20 100q0 53-20 99t-55 82-81 55-100 20H768V896h128zm0 384q27 0 50-10t40-27 28-41 10-50q0-27-10-50t-27-40-41-28-50-10v256zm384-384h320v128h-192v128h192v128h-192v128h-128V896z" />
6
+ </svg>
@@ -0,0 +1,6 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg"
2
+ viewBox="0 0 2048 2048"
3
+ width="12px"
4
+ height="12px">
5
+ <path d="M2048 475v1445q0 27-10 50t-27 40-41 28-50 10H640q-27 0-50-10t-40-27-28-41-10-50v-256H115q-24 0-44-9t-37-25-25-36-9-45V627q0-24 9-44t25-37 36-25 45-9h397V128q0-27 10-50t27-40 41-28 50-10h933q26 0 49 9t42 28l347 347q18 18 27 41t10 50zm-384-256v165h165l-165-165zM368 752v672h150v-226h100q52 0 97-15t78-46 53-72 20-97q0-56-17-97t-50-67-76-39-97-13H368zm1552 1168V512h-256q-27 0-50-10t-40-27-28-41-10-50V128H640v384h397q24 0 44 9t37 25 25 36 9 45v922q0 24-9 44t-25 37-36 25-45 9H640v256h1280zM1536 640q79 0 149 30t122 82 83 123 30 149h-384V640zm-128 128v384h384q0 80-30 149t-82 122-123 83-149 30q-33 0-65-6t-63-18V792q31-11 63-17t65-7zm-804 300h-86V883h90q47 0 74 20t27 70q0 52-28 73t-77 22z" />
6
+ </svg>
@@ -0,0 +1,6 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg"
2
+ viewBox="0 0 2048 2048"
3
+ width="12px"
4
+ height="12px">
5
+ <path d="M0 256h2048v1408H0V256zm256 1280v-128H128v128h128zm0-256v-128H128v128h128zm0-256V896H128v128h128zm0-256V640H128v128h128zm0-256V384H128v128h128zm1408 786V384H384v823l411-549 741 878-329-558 137-137 320 457zm256 238v-128h-128v128h128zm0-256v-128h-128v128h128zm0-256V896h-128v128h128zm0-256V640h-128v128h128zm0-256V384h-128v128h128z" />
6
+ </svg>
@@ -0,0 +1,6 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg"
2
+ viewBox="0 0 2048 2048"
3
+ width="12px"
4
+ height="12px">
5
+ <path d="M2048 475v1445q0 27-10 50t-27 40-41 28-50 10H640q-27 0-50-10t-40-27-28-41-10-50v-256H115q-24 0-44-9t-37-25-25-36-9-45V627q0-24 9-44t25-37 36-25 45-9h397V128q0-27 10-50t27-40 41-28 50-10h933q26 0 49 9t42 28l347 347q18 18 27 41t10 50zm-384-256v165h165l-165-165zM493 1424h163l255-672H745l-147 427q-5 16-10 31t-11 31q-41-123-82-244t-84-245H241l248 662 4 10zm147 496h1280V512h-256q-27 0-50-10t-40-27-28-41-10-50V128H640v384h397q24 0 44 9t37 25 25 36 9 45v922q0 24-9 44t-25 37-36 25-45 9H640v256zm960-1280l192 192-128 128v448h-256v128h-128v-384h128v128h128V960l-128-128 192-192z" />
6
+ </svg>
@@ -0,0 +1,6 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg"
2
+ viewBox="0 0 2048 2048"
3
+ width="12px"
4
+ height="12px">
5
+ <path d="M2048 475v1445q0 27-10 50t-27 40-41 28-50 10H640q-27 0-50-10t-40-27-28-41-10-50v-256H115q-24 0-44-9t-37-25-25-36-9-45V627q0-24 9-44t25-37 36-25 45-9h397V128q0-27 10-50t27-40 41-28 50-10h933q26 0 49 9t42 28l347 347q18 18 27 41t10 50zm-384-256v165h165l-165-165zM320 1424h161q2-8 9-43t18-83 21-103 22-101 16-76 8-31l7 30q7 30 17 77t23 100 23 103 19 84 10 43h160l148-672H834l-80 438-100-438H502l-96 440-86-440H170l150 672zm320 496h1280V512h-256q-27 0-50-10t-40-27-28-41-10-50V128H640v384h397q24 0 44 9t37 25 25 36 9 45v922q0 24-9 44t-25 37-36 25-45 9H640v256zm640-1024V768h512v128h-512zm0 256v-128h512v128h-512zm0 256v-128h512v128h-512z" />
6
+ </svg>
@@ -0,0 +1,305 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.WebChatMiddlewareConstants = exports.TranscriptConstants = exports.Regex = exports.MimeTypes = exports.LocaleConstants = exports.HtmlIdNames = exports.HtmlElementSelectors = exports.HtmlClassNames = exports.HtmlAttributeNames = exports.ElementType = exports.Constants = exports.ChatSDKError = void 0;
7
+
8
+ var _class;
9
+
10
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
11
+
12
+ class Constants {}
13
+
14
+ exports.Constants = Constants;
15
+
16
+ _defineProperty(Constants, "systemMessageTag", "system");
17
+
18
+ _defineProperty(Constants, "userMessageTag", "user");
19
+
20
+ _defineProperty(Constants, "agentEndConversationMessageTag", "agentendconversation");
21
+
22
+ _defineProperty(Constants, "receivedMessageClassName", "ms_lcw_webchat_received_message");
23
+
24
+ _defineProperty(Constants, "sentMessageClassName", "ms_lcw_webchat_sent_message");
25
+
26
+ _defineProperty(Constants, "webchatChannelId", "webchat");
27
+
28
+ _defineProperty(Constants, "markdown", "markdown");
29
+
30
+ _defineProperty(Constants, "actionType", "actionType");
31
+
32
+ _defineProperty(Constants, "String", "string");
33
+
34
+ _defineProperty(Constants, "ChatMessagesJson", "chatMessagesJson");
35
+
36
+ _defineProperty(Constants, "truePascal", "True");
37
+
38
+ _defineProperty(Constants, "true", "true");
39
+
40
+ _defineProperty(Constants, "false", "false");
41
+
42
+ _defineProperty(Constants, "maximumUnreadMessageCount", 99);
43
+
44
+ _defineProperty(Constants, "widgetStateDataKey", "LcwChatWidgetState");
45
+
46
+ _defineProperty(Constants, "channelIdKey", "ChannelId-");
47
+
48
+ _defineProperty(Constants, "ChannelId", "lcw");
49
+
50
+ _defineProperty(Constants, "CustomerTag", "FromCustomer");
51
+
52
+ _defineProperty(Constants, "GifContentType", "image/gif");
53
+
54
+ _defineProperty(Constants, "video", "video");
55
+
56
+ _defineProperty(Constants, "audio", "audio");
57
+
58
+ _defineProperty(Constants, "controlsList", "controlsList");
59
+
60
+ _defineProperty(Constants, "nodownload", "nodownload");
61
+
62
+ _defineProperty(Constants, "activity", "activity");
63
+
64
+ _defineProperty(Constants, "payload", "payload");
65
+
66
+ _defineProperty(Constants, "text", "text");
67
+
68
+ _defineProperty(Constants, "blank", "_blank");
69
+
70
+ _defineProperty(Constants, "visitorIdPrefix", "8:");
71
+
72
+ _defineProperty(Constants, "left", "left");
73
+
74
+ _defineProperty(Constants, "queuePositionMessageTag", "queueposition");
75
+
76
+ _defineProperty(Constants, "averageWaitTimeMessageTag", "averagewaittime");
77
+
78
+ _defineProperty(Constants, "message", "message");
79
+
80
+ _defineProperty(Constants, "supportedAdaptiveCardContentTypes", ["application/vnd.microsoft.card.adaptive", "application/vnd.microsoft.card.audio", "application/vnd.microsoft.card.hero", "application/vnd.microsoft.card.receipt", "application/vnd.microsoft.card.thumbnail", "application/vnd.microsoft.card.signin", "application/vnd.microsoft.card.oauth"]);
81
+
82
+ _defineProperty(Constants, "maxUploadFileSize", "500000");
83
+
84
+ _defineProperty(Constants, "imageRegex", /(\.)(jpeg|jpg|jiff|png|gif|bmp)$/i);
85
+
86
+ _defineProperty(Constants, "audioMediaRegex", /(\.)(aac|aiff|alac|flac|mp2|mp3|pcm|wav|wma)$/i);
87
+
88
+ _defineProperty(Constants, "videoMediaRegex", /(\.)(avchd|avi|flv|mpe|mpeg|mpg|mpv|mp4|m4p|m4v|mov|qt|swf|webm|wmv)$/i);
89
+
90
+ _defineProperty(Constants, "chromeSupportedInlineMediaRegex", /(\.)(aac|mp3|wav|mp4)$/i);
91
+
92
+ _defineProperty(Constants, "firefoxSupportedInlineMediaRegex", /(\.)(aac|flac|mp3|wav|mp4|mov)$/i);
93
+
94
+ _defineProperty(Constants, "CallAdded", "callAdded");
95
+
96
+ _defineProperty(Constants, "LocalVideoStreamAdded", "localVideoStreamAdded");
97
+
98
+ _defineProperty(Constants, "LocalVideoStreamRemoved", "localVideoStreamRemoved");
99
+
100
+ _defineProperty(Constants, "RemoteVideoStreamAdded", "remoteVideoStreamAdded");
101
+
102
+ _defineProperty(Constants, "RemoteVideoStreamRemoved", "remoteVideoStreamRemoved");
103
+
104
+ _defineProperty(Constants, "CallDisconnected", "callDisconnected");
105
+
106
+ _defineProperty(Constants, "IncomingCallEnded", "incomingCallEnded");
107
+
108
+ _defineProperty(Constants, "VoiceVideoInitialize", "voiceVideoInitialize");
109
+
110
+ _defineProperty(Constants, "VoiceVideoInitializeException", "voiceVideoInitializeOnException");
111
+
112
+ _defineProperty(Constants, "VoiceVideoLoading", "voiceVideoLoading");
113
+
114
+ _defineProperty(Constants, "VoiceVideoNotLoaded", "voiceVideoNotLoaded");
115
+
116
+ _defineProperty(Constants, "VoiceVideoLoadingException", "voiceVideoLoadingOnException");
117
+
118
+ _defineProperty(Constants, "VoiceVideoAcceptCallException", "voiceVideoAcceptCallOnException");
119
+
120
+ _defineProperty(Constants, "VoiceVideoAcceptCallWithVideoException", "voiceVideoAcceptCallWithVideoException");
121
+
122
+ _defineProperty(Constants, "defaultDownloadTranscriptError", "Download transcript failed.");
123
+
124
+ _defineProperty(Constants, "ProactiveChatInviteTimeoutInMs", 60000);
125
+
126
+ _defineProperty(Constants, "InputSubmit", "InputSubmit");
127
+
128
+ _defineProperty(Constants, "ReconnectIdAttributeName", "oc.reconnectid");
129
+
130
+ _defineProperty(Constants, "redirectPageRequest", "redirectPageRequest");
131
+
132
+ _defineProperty(Constants, "LiveChatWidget", "LiveChatWidgetNew");
133
+
134
+ _defineProperty(Constants, "GuidPattern", "xx-x-4m-ym-xxx");
135
+
136
+ _defineProperty(Constants, "Default", "default");
137
+
138
+ _defineProperty(Constants, "Zero", "zero");
139
+
140
+ _defineProperty(Constants, "Title", "title");
141
+
142
+ _defineProperty(Constants, "Target", "target");
143
+
144
+ _defineProperty(Constants, "Blank", "_blank");
145
+
146
+ _defineProperty(Constants, "TargetRelationship", "rel");
147
+
148
+ _defineProperty(Constants, "TargetRelationshipAttributes", "noopener noreferrer");
149
+
150
+ _defineProperty(Constants, "OpenLinkIconCssClass", "webchat__markdown__external-link-icon");
151
+
152
+ _defineProperty(Constants, "internetConnectionTestUrl", "https://ocsdk-prod.azureedge.net/public/connecttest.txt");
153
+
154
+ _defineProperty(Constants, "internetConnectionTestUrlText", "Omnichannel Connect Test");
155
+
156
+ const Regex = (_class = class Regex {}, _defineProperty(_class, "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])+)\\])"), _class);
157
+ exports.Regex = Regex;
158
+
159
+ class HtmlIdNames {}
160
+
161
+ exports.HtmlIdNames = HtmlIdNames;
162
+
163
+ _defineProperty(HtmlIdNames, "MSLiveChatWidget", "MSLiveChatWidget");
164
+
165
+ class HtmlClassNames {}
166
+
167
+ exports.HtmlClassNames = HtmlClassNames;
168
+
169
+ _defineProperty(HtmlClassNames, "webChatBannerCloseButton", "webchat__toast__dismissButton");
170
+
171
+ _defineProperty(HtmlClassNames, "webChatBannerExpandButton", "webchat__toaster__expandIcon");
172
+
173
+ class HtmlElementSelectors {}
174
+
175
+ exports.HtmlElementSelectors = HtmlElementSelectors;
176
+
177
+ _defineProperty(HtmlElementSelectors, "sendBoxSelector", "textarea[data-id=\"webchat-sendbox-input\"]");
178
+
179
+ class HtmlAttributeNames {}
180
+
181
+ exports.HtmlAttributeNames = HtmlAttributeNames;
182
+
183
+ _defineProperty(HtmlAttributeNames, "role", "role");
184
+
185
+ _defineProperty(HtmlAttributeNames, "navigation", "navigation");
186
+
187
+ _defineProperty(HtmlAttributeNames, "ariaLabel", "aria-label");
188
+
189
+ _defineProperty(HtmlAttributeNames, "ariaLive", "aria-live");
190
+
191
+ _defineProperty(HtmlAttributeNames, "ariaDisabled", "aria-disabled");
192
+
193
+ _defineProperty(HtmlAttributeNames, "form", "form");
194
+
195
+ _defineProperty(HtmlAttributeNames, "ariaLabelledby", "aria-labelledby");
196
+
197
+ _defineProperty(HtmlAttributeNames, "tabindex", "tabindex");
198
+
199
+ _defineProperty(HtmlAttributeNames, "ariaRequired", "aria-required");
200
+
201
+ _defineProperty(HtmlAttributeNames, "ariaDesribedby", "aria-describedby");
202
+
203
+ _defineProperty(HtmlAttributeNames, "ariaHidden", "aria-hidden");
204
+
205
+ _defineProperty(HtmlAttributeNames, "disabled", "disabled");
206
+
207
+ _defineProperty(HtmlAttributeNames, "hidden", "hidden");
208
+
209
+ _defineProperty(HtmlAttributeNames, "download", "download");
210
+
211
+ _defineProperty(HtmlAttributeNames, "href", "href");
212
+
213
+ _defineProperty(HtmlAttributeNames, "region", "region");
214
+
215
+ _defineProperty(HtmlAttributeNames, "button", "button");
216
+
217
+ _defineProperty(HtmlAttributeNames, "input", "Input");
218
+
219
+ _defineProperty(HtmlAttributeNames, "style", "style");
220
+
221
+ _defineProperty(HtmlAttributeNames, "head", "head");
222
+
223
+ _defineProperty(HtmlAttributeNames, "type", "type");
224
+
225
+ _defineProperty(HtmlAttributeNames, "csstext", "text/css");
226
+
227
+ _defineProperty(HtmlAttributeNames, "listItem", "LI");
228
+
229
+ _defineProperty(HtmlAttributeNames, "unorderedList", "UL");
230
+
231
+ _defineProperty(HtmlAttributeNames, "div", "div");
232
+
233
+ _defineProperty(HtmlAttributeNames, "aTagName", "a");
234
+
235
+ _defineProperty(HtmlAttributeNames, "noopenerTag", "noopener");
236
+
237
+ _defineProperty(HtmlAttributeNames, "noreferrerTag", "noreferrer");
238
+
239
+ _defineProperty(HtmlAttributeNames, "adaptiveCardClassName", "ac-adaptiveCard");
240
+
241
+ _defineProperty(HtmlAttributeNames, "adaptiveCardTextBlockClassName", "ac-textBlock");
242
+
243
+ _defineProperty(HtmlAttributeNames, "adaptiveCardToggleInputClassName", "ac-toggleInput");
244
+
245
+ class WebChatMiddlewareConstants {}
246
+
247
+ exports.WebChatMiddlewareConstants = WebChatMiddlewareConstants;
248
+
249
+ _defineProperty(WebChatMiddlewareConstants, "nextVisibleActivity", "nextVisibleActivity");
250
+
251
+ _defineProperty(WebChatMiddlewareConstants, "timeBetweenTimestampGroups", 300000);
252
+
253
+ _defineProperty(WebChatMiddlewareConstants, "maxTextLength", 6000);
254
+
255
+ _defineProperty(WebChatMiddlewareConstants, "adaptiveCard", "AdaptiveCard");
256
+
257
+ class MimeTypes {}
258
+
259
+ exports.MimeTypes = MimeTypes;
260
+
261
+ _defineProperty(MimeTypes, "UnknownFileType", "application/octet-stream");
262
+
263
+ class LocaleConstants {}
264
+
265
+ exports.LocaleConstants = LocaleConstants;
266
+
267
+ _defineProperty(LocaleConstants, "RTL_LOCALES", ["1025", "1037"]);
268
+
269
+ let ElementType;
270
+ exports.ElementType = ElementType;
271
+
272
+ (function (ElementType) {
273
+ ElementType["CallingContainerSDK"] = "CallingContainerSDK";
274
+ })(ElementType || (exports.ElementType = ElementType = {}));
275
+
276
+ let ChatSDKError;
277
+ exports.ChatSDKError = ChatSDKError;
278
+
279
+ (function (ChatSDKError) {
280
+ ChatSDKError["WidgetUseOutsideOperatingHour"] = "WidgetUseOutsideOperatingHour";
281
+ })(ChatSDKError || (exports.ChatSDKError = ChatSDKError = {}));
282
+
283
+ class TranscriptConstants {}
284
+
285
+ exports.TranscriptConstants = TranscriptConstants;
286
+
287
+ _defineProperty(TranscriptConstants, "ChatTranscriptsBodyColor", "#F5F5F5");
288
+
289
+ _defineProperty(TranscriptConstants, "TranscriptMessageEmojiMessageType", "http://schema.skype.com/emoji");
290
+
291
+ _defineProperty(TranscriptConstants, "ChatTranscriptDownloadFile", "ChatTranscripts.html");
292
+
293
+ _defineProperty(TranscriptConstants, "DefaultFileAttachmentName", "Untitled.txt");
294
+
295
+ _defineProperty(TranscriptConstants, "CustomerDialogColor", "#E8E8E8");
296
+
297
+ _defineProperty(TranscriptConstants, "CustomerFontColor", "black");
298
+
299
+ _defineProperty(TranscriptConstants, "AdaptiveCardType", "adaptivecard");
300
+
301
+ _defineProperty(TranscriptConstants, "InternalMode", "internal");
302
+
303
+ _defineProperty(TranscriptConstants, "AgentDialogColor", "#2266E3");
304
+
305
+ _defineProperty(TranscriptConstants, "AgentFontColor", "white");
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.KeyCodes = void 0;
7
+
8
+ var _class;
9
+
10
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
11
+
12
+ const KeyCodes = (_class = class KeyCodes {}, _defineProperty(_class, "ENTER", "Enter"), _defineProperty(_class, "TAB", "Tab"), _class);
13
+ exports.KeyCodes = KeyCodes;