@microsoft/omnichannel-chat-components 1.1.16 → 1.1.17-main.05edfd3

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 (324) hide show
  1. package/lib/cjs/assets/Icons.js +21 -42
  2. package/lib/cjs/common/Constants.js +14 -31
  3. package/lib/cjs/common/decodeComponentString.js +0 -6
  4. package/lib/cjs/common/encodeComponentString.js +0 -2
  5. package/lib/cjs/common/utils.js +40 -46
  6. package/lib/cjs/components/callingcontainer/CallingContainer.js +3 -18
  7. package/lib/cjs/components/callingcontainer/common/defaultProps/defaultCallingContainerControlProps.js +2 -5
  8. package/lib/cjs/components/callingcontainer/common/defaultProps/defaultCallingContainerProps.js +2 -6
  9. package/lib/cjs/components/callingcontainer/common/defaultStyles/customizedCallingContainerStyles.js +2 -3
  10. package/lib/cjs/components/callingcontainer/common/defaultStyles/defaultCallingContainerStyles.js +2 -3
  11. package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/CurrentCall.js +95 -135
  12. package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/common/defaultProps/defaultCurrentCallControlProps.js +2 -5
  13. package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/common/defaultProps/defaultCurrentCallControlPropsRtl.js +2 -6
  14. package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/common/defaultProps/defaultCurrentCallProps.js +2 -6
  15. package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/common/defaultStyles/componentOverridesStyleProps.js +3 -5
  16. package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/common/defaultStyles/customizedCurrentCallStyleProps.js +2 -3
  17. package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/common/defaultStyles/defaultCurrentCallStyleProps.js +2 -3
  18. package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/IncomingCall.js +51 -78
  19. package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/componentOverrideProps.js +3 -11
  20. package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/componentOverridesControlProps.js +2 -7
  21. package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/defaultIncomingCallControlProps.js +2 -5
  22. package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/defaultIncomingCallControlPropsRtl.js +2 -6
  23. package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/defaultIncomingCallProps.js +2 -6
  24. package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/common/defaultStyles/componentOverridesStyleProps.js +2 -3
  25. package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/common/defaultStyles/defaultIncomingCallStyleProps.js +2 -3
  26. package/lib/cjs/components/callingcontainer/subcomponents/Timer/Timer.js +2 -11
  27. package/lib/cjs/components/chatbutton/ChatButton.blankAnnouncements.a11y.spec.js +162 -0
  28. package/lib/cjs/components/chatbutton/ChatButton.browseMode.a11y.spec.js +236 -0
  29. package/lib/cjs/components/chatbutton/ChatButton.browseMode.unfixed.a11y.spec.js +115 -0
  30. package/lib/cjs/components/chatbutton/ChatButton.js +67 -62
  31. package/lib/cjs/components/chatbutton/common/defaultProps/defaultChatButtonControlProps.js +2 -5
  32. package/lib/cjs/components/chatbutton/common/defaultProps/defaultChatButtonProps.js +2 -6
  33. package/lib/cjs/components/chatbutton/common/defaultStyles/defaultChatButtonGeneralStyles.js +2 -3
  34. package/lib/cjs/components/chatbutton/common/defaultStyles/defaultChatButtonIconContainerStyles.js +2 -5
  35. package/lib/cjs/components/chatbutton/common/defaultStyles/defaultChatButtonNotificationBubbleStyles.js +2 -3
  36. package/lib/cjs/components/chatbutton/common/defaultStyles/defaultChatButtonStyleProps.js +2 -10
  37. package/lib/cjs/components/chatbutton/common/defaultStyles/defaultChatButtonSubTitleStyles.js +2 -3
  38. package/lib/cjs/components/chatbutton/common/defaultStyles/defaultChatButtonTextContainerStyles.js +2 -3
  39. package/lib/cjs/components/chatbutton/common/defaultStyles/defaultChatButtonTitleStyles.js +2 -3
  40. package/lib/cjs/components/citationpane/CitationPane.js +19 -46
  41. package/lib/cjs/components/citationpane/ScalingTest.js +2 -8
  42. package/lib/cjs/components/citationpane/common/defaultProps/defaultCitationPaneControlProps.js +2 -3
  43. package/lib/cjs/components/citationpane/common/defaultProps/defaultCitationPaneProps.js +2 -6
  44. package/lib/cjs/components/citationpane/common/defaultProps/defaultCitationPaneStyleProps.js +2 -13
  45. package/lib/cjs/components/citationpane/common/defaultStyles/defaultCitationPaneCloseButtonFocusedStyles.js +2 -3
  46. package/lib/cjs/components/citationpane/common/defaultStyles/defaultCitationPaneCloseButtonHoveredStyles.js +2 -3
  47. package/lib/cjs/components/citationpane/common/defaultStyles/defaultCitationPaneCloseButtonStyles.js +2 -5
  48. package/lib/cjs/components/citationpane/common/defaultStyles/defaultCitationPaneContentStyles.js +2 -4
  49. package/lib/cjs/components/citationpane/common/defaultStyles/defaultCitationPaneGeneralStyles.js +2 -4
  50. package/lib/cjs/components/citationpane/common/defaultStyles/defaultCitationPaneStyles.js +2 -13
  51. package/lib/cjs/components/citationpane/common/defaultStyles/defaultCitationPaneTitleStyles.js +1 -2
  52. package/lib/cjs/components/citationpane/common/defaultStyles/defaultCitationPaneTopCloseButtonFocusedStyles.js +2 -3
  53. package/lib/cjs/components/citationpane/common/defaultStyles/defaultCitationPaneTopCloseButtonHoveredStyles.js +2 -3
  54. package/lib/cjs/components/citationpane/common/defaultStyles/defaultCitationPaneTopCloseButtonStyles.js +2 -4
  55. package/lib/cjs/components/common/commandbutton/CommandButton.js +16 -27
  56. package/lib/cjs/components/common/subcomponents/CloseButton.js +2 -9
  57. package/lib/cjs/components/confirmationpane/ConfirmationPane.js +26 -55
  58. package/lib/cjs/components/confirmationpane/common/defaultProps/defaultConfirmationPaneControlProps.js +3 -5
  59. package/lib/cjs/components/confirmationpane/common/defaultProps/defaultConfirmationPaneProps.js +2 -6
  60. package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneButtonGroupStyles.js +2 -3
  61. package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneCancelButtonFocusedStyles.js +2 -3
  62. package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneCancelButtonHoveredStyles.js +2 -3
  63. package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneCancelButtonStyles.js +2 -3
  64. package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneConfirmButtonFocusedStyles.js +2 -3
  65. package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneConfirmButtonHoveredStyles.js +2 -3
  66. package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneConfirmButtonStyles.js +2 -3
  67. package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneGeneralStyles.js +2 -3
  68. package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneStyles.js +2 -10
  69. package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneSubtitleStyles.js +2 -3
  70. package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneTitleStyles.js +2 -3
  71. package/lib/cjs/components/footer/Footer.js +9 -28
  72. package/lib/cjs/components/footer/common/defaultProps/customFooterControlProps.js +2 -6
  73. package/lib/cjs/components/footer/common/defaultProps/defaultFooterComponentOverrides.js +2 -11
  74. package/lib/cjs/components/footer/common/defaultProps/defaultFooterControlProps.js +2 -5
  75. package/lib/cjs/components/footer/common/defaultProps/defaultFooterOverridesProps.js +2 -7
  76. package/lib/cjs/components/footer/common/defaultProps/defaultFooterProps.js +2 -6
  77. package/lib/cjs/components/footer/common/defaultStyles/defaultFooterStyleProps.js +2 -3
  78. package/lib/cjs/components/footer/subcomponents/AudioNotificationButton.js +13 -23
  79. package/lib/cjs/components/footer/subcomponents/DownloadTranscriptButton.js +2 -9
  80. package/lib/cjs/components/footer/subcomponents/EmailTranscriptButton.js +2 -9
  81. package/lib/cjs/components/header/Header.js +26 -32
  82. package/lib/cjs/components/header/common/defaultProps/azureHeaderControlProps.js +2 -6
  83. package/lib/cjs/components/header/common/defaultProps/azureHeaderProps.js +2 -7
  84. package/lib/cjs/components/header/common/defaultProps/customHeaderControlProps.js +2 -6
  85. package/lib/cjs/components/header/common/defaultProps/defaultHeaderComponentOverrides.js +3 -13
  86. package/lib/cjs/components/header/common/defaultProps/defaultHeaderControlProps.js +2 -6
  87. package/lib/cjs/components/header/common/defaultProps/defaultHeaderProps.js +2 -6
  88. package/lib/cjs/components/header/common/defaultProps/overridesDefaultHeaderProps.js +2 -7
  89. package/lib/cjs/components/header/common/defaultStyles/advancedHeaderStyleProps.js +2 -3
  90. package/lib/cjs/components/header/common/defaultStyles/defaultHeaderStyleProps.js +25 -3
  91. package/lib/cjs/components/header/subcomponents/MinimizeButton.js +2 -9
  92. package/lib/cjs/components/inputvalidationpane/InputValidationPane.js +55 -90
  93. package/lib/cjs/components/inputvalidationpane/common/default/defaultProps/defaultInputValidationPaneControlProps.js +3 -5
  94. package/lib/cjs/components/inputvalidationpane/common/default/defaultProps/defaultInputValidationPaneProps.js +2 -6
  95. package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneButtonGroupStyles.js +2 -3
  96. package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneCancelButtonHoveredStyles.js +1 -2
  97. package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneCancelButtonStyles.js +2 -3
  98. package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneGeneralStyles.js +2 -3
  99. package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneHeaderGroupStyles.js +2 -3
  100. package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneInputStyles.js +2 -3
  101. package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneInvalidInputErrorMessageStyles.js +2 -3
  102. package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneSendButtonHoveredStyles.js +1 -2
  103. package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneSendButtonStyles.js +2 -3
  104. package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneStyles.js +2 -15
  105. package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneSubtitleStyles.js +2 -3
  106. package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneTitleStyles.js +2 -3
  107. package/lib/cjs/components/inputvalidationpane/common/presetTwo/presetTwoProps/presetTwoInputValidationPaneComponentOverrides.js +3 -8
  108. package/lib/cjs/components/inputvalidationpane/common/presetTwo/presetTwoProps/presetTwoInputValidationPaneControlProps.js +2 -5
  109. package/lib/cjs/components/inputvalidationpane/common/presetTwo/presetTwoProps/presetTwoInputValidationPaneProps.js +2 -7
  110. package/lib/cjs/components/inputvalidationpane/common/presetTwo/presetTwoStyles/presetTwoInputValidationPaneCancelButtonStyles.js +2 -3
  111. package/lib/cjs/components/inputvalidationpane/common/presetTwo/presetTwoStyles/presetTwoInputValidationPaneHeaderGroupStyles.js +2 -3
  112. package/lib/cjs/components/inputvalidationpane/common/presetTwo/presetTwoStyles/presetTwoInputValidationPaneInputStyles.js +2 -3
  113. package/lib/cjs/components/inputvalidationpane/common/presetTwo/presetTwoStyles/presetTwoInputValidationPaneSendButtonStyles.js +2 -3
  114. package/lib/cjs/components/inputvalidationpane/common/presetTwo/presetTwoStyles/presetTwoInputValidationPaneStyles.js +2 -9
  115. package/lib/cjs/components/inputvalidationpane/common/presetTwo/presetTwoStyles/presetTwoInputValidationPaneTitleStyles.js +2 -3
  116. package/lib/cjs/components/loadingpane/LoadingPane.js +12 -28
  117. package/lib/cjs/components/loadingpane/common/defaultProps/defaultLoadingPaneControlProps.js +2 -5
  118. package/lib/cjs/components/loadingpane/common/defaultProps/defaultLoadingPaneProps.js +2 -6
  119. package/lib/cjs/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneGeneralStyles.js +2 -3
  120. package/lib/cjs/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneIconImageProps.js +2 -6
  121. package/lib/cjs/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneIconStyles.js +2 -3
  122. package/lib/cjs/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneSpinnerStyles.js +2 -3
  123. package/lib/cjs/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneSpinnerTextStyles.js +2 -3
  124. package/lib/cjs/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneStyles.js +2 -11
  125. package/lib/cjs/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneSubtitleStyles.js +2 -3
  126. package/lib/cjs/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneTitleStyles.js +2 -3
  127. package/lib/cjs/components/loadingpane/common/presetOneProps/presetOneLoadingPaneControlProps.js +3 -5
  128. package/lib/cjs/components/loadingpane/common/presetOneProps/presetOneLoadingPaneProps.js +2 -6
  129. package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeLoadingPaneControlProps.js +3 -6
  130. package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeLoadingPaneProps.js +2 -6
  131. package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeStyles/presetThreeLoadingPaneGeneralStyles.js +2 -3
  132. package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeStyles/presetThreeLoadingPaneIconImageProps.js +2 -6
  133. package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeStyles/presetThreeLoadingPaneIconStyles.js +2 -3
  134. package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeStyles/presetThreeLoadingPaneSpinnerStyles.js +2 -3
  135. package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeStyles/presetThreeLoadingPaneSpinnerTextStyles.js +2 -3
  136. package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeStyles/presetThreeLoadingPaneStyles.js +2 -11
  137. package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeStyles/presetThreeLoadingPaneSubtitleStyles.js +2 -3
  138. package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeStyles/presetThreeLoadingPaneTitleStyles.js +2 -3
  139. package/lib/cjs/components/loadingpane/common/presetTwoProps/presetTwoLoadingPaneControlProps.js +3 -6
  140. package/lib/cjs/components/loadingpane/common/presetTwoProps/presetTwoLoadingPaneProps.js +2 -6
  141. package/lib/cjs/components/loadingpane/common/presetTwoProps/presetTwoStyles/presetTwoLoadingPaneGeneralStyles.js +2 -5
  142. package/lib/cjs/components/loadingpane/common/presetTwoProps/presetTwoStyles/presetTwoLoadingPaneSpinnerStyles.js +2 -3
  143. package/lib/cjs/components/loadingpane/common/presetTwoProps/presetTwoStyles/presetTwoLoadingPaneStyles.js +2 -11
  144. package/lib/cjs/components/notificationpane/NotificationPane.js +3 -15
  145. package/lib/cjs/components/notificationpane/subcomponents/CloseChatButton.js +2 -9
  146. package/lib/cjs/components/notificationpane/subcomponents/DismissButton.js +2 -9
  147. package/lib/cjs/components/outofofficehourspane/OOOHPane.js +5 -17
  148. package/lib/cjs/components/outofofficehourspane/common/defaultProps/defaultOOOHPaneControlProps.js +2 -5
  149. package/lib/cjs/components/outofofficehourspane/common/defaultProps/defaultOOOHPaneProps.js +2 -6
  150. package/lib/cjs/components/outofofficehourspane/common/defaultProps/defaultStyles/defaultOOOHPaneGeneralStyles.js +2 -3
  151. package/lib/cjs/components/outofofficehourspane/common/defaultProps/defaultStyles/defaultOOOHPaneStyles.js +2 -6
  152. package/lib/cjs/components/outofofficehourspane/common/defaultProps/defaultStyles/defaultOOOHPaneTitleStyles.js +2 -3
  153. package/lib/cjs/components/outofofficehourspane/common/presetFourProps/presetFourOOOHPaneControlProps.js +3 -5
  154. package/lib/cjs/components/outofofficehourspane/common/presetFourProps/presetFourOOOHPaneProps.js +2 -6
  155. package/lib/cjs/components/outofofficehourspane/common/presetOneProps/presetOneOOOHPaneControlProps.js +3 -5
  156. package/lib/cjs/components/outofofficehourspane/common/presetOneProps/presetOneOOOHPaneProps.js +2 -6
  157. package/lib/cjs/components/outofofficehourspane/common/presetTwoProps/presetTwoOOOHPaneControlProps.js +3 -5
  158. package/lib/cjs/components/outofofficehourspane/common/presetTwoProps/presetTwoOOOHPaneProps.js +2 -6
  159. package/lib/cjs/components/outofofficehourspane/common/presetTwoProps/presetTwoStyles/presetTwoOOOHPaneGeneralStyles.js +2 -5
  160. package/lib/cjs/components/outofofficehourspane/common/presetTwoProps/presetTwoStyles/presetTwoOOOHPaneStyles.js +2 -6
  161. package/lib/cjs/components/outofofficehourspane/common/presetTwoProps/presetTwoStyles/presetTwoOOOHPaneTitleStyles.js +2 -3
  162. package/lib/cjs/components/postchatsurveypane/PostChatSurveyPane.js +4 -13
  163. package/lib/cjs/components/postchatsurveypane/common/defaultProps/defaultPostChatSurveyPaneControlProps.js +2 -5
  164. package/lib/cjs/components/postchatsurveypane/common/defaultProps/defaultPostChatSurveyPaneProps.js +2 -6
  165. package/lib/cjs/components/postchatsurveypane/common/defaultProps/defaultStyles/defaultPostChatSurveyPaneGeneralStyles.js +2 -3
  166. package/lib/cjs/components/postchatsurveypane/common/defaultProps/defaultStyles/defaultPostChatSurveyPaneStyles.js +2 -5
  167. package/lib/cjs/components/postchatsurveypane/common/presetOneProps/presetOnePostChatSurveyPaneControlProps.js +3 -5
  168. package/lib/cjs/components/postchatsurveypane/common/presetOneProps/presetOnePostChatSurveyPaneProps.js +2 -6
  169. package/lib/cjs/components/postchatsurveypane/common/presetOneProps/presetOneStyles/presetOnePostChatSurveyPaneGeneralStyles.js +2 -3
  170. package/lib/cjs/components/postchatsurveypane/common/presetOneProps/presetOneStyles/presetOnePostChatSurveyPaneStyles.js +2 -5
  171. package/lib/cjs/components/prechatsurveypane/PreChatSurveyPane.js +112 -56
  172. package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultPreChatSurveyPaneControlProps.js +2 -5
  173. package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultPreChatSurveyPaneProps.js +2 -6
  174. package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneACContainerStyles.js +2 -3
  175. package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneButtonStyles.js +2 -3
  176. package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneGeneralStyles.js +2 -3
  177. package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneMultichoiceInputStyles.js +3 -3
  178. package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneMultilineTextInputStyles.js +3 -3
  179. package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneStyles.js +2 -11
  180. package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneTextInputStyles.js +3 -3
  181. package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneToggleInputStyles.js +2 -3
  182. package/lib/cjs/components/prechatsurveypane/common/presetOneProps/presetOnePreChatSurveyPaneControlProps.js +3 -5
  183. package/lib/cjs/components/prechatsurveypane/common/presetOneProps/presetOnePreChatSurveyPaneProps.js +2 -6
  184. package/lib/cjs/components/prechatsurveypane/common/presetThreeProps/presetThreePreChatSurveyPaneControlProps.js +2 -3
  185. package/lib/cjs/components/prechatsurveypane/common/presetThreeProps/presetThreePreChatSurveyPaneProps.js +2 -6
  186. package/lib/cjs/components/prechatsurveypane/common/presetThreeProps/presetThreeStyles/presetThreePreChatSurveyPaneACContainerStyles.js +2 -3
  187. package/lib/cjs/components/prechatsurveypane/common/presetThreeProps/presetThreeStyles/presetThreePreChatSurveyPaneButtonStyles.js +2 -3
  188. package/lib/cjs/components/prechatsurveypane/common/presetThreeProps/presetThreeStyles/presetThreePreChatSurveyPaneGeneralStyles.js +2 -3
  189. package/lib/cjs/components/prechatsurveypane/common/presetThreeProps/presetThreeStyles/presetThreePreChatSurveyPaneStyles.js +2 -7
  190. package/lib/cjs/components/prechatsurveypane/common/presetTwoProps/presetTwoPreChatSurveyPaneControlProps.js +2 -3
  191. package/lib/cjs/components/prechatsurveypane/common/presetTwoProps/presetTwoPreChatSurveyPaneProps.js +2 -6
  192. package/lib/cjs/components/proactivechatpane/ProactiveChatPane.js +29 -65
  193. package/lib/cjs/components/proactivechatpane/common/default/defaultProps/defaultProactiveChatPaneControlProps.js +2 -5
  194. package/lib/cjs/components/proactivechatpane/common/default/defaultProps/defaultProactiveChatPaneProps.js +2 -6
  195. package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneBodyContainerStyles.js +1 -2
  196. package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneBodyTitleStyles.js +2 -3
  197. package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneCloseButtonHoveredStyles.js +2 -3
  198. package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneCloseButtonStyles.js +2 -3
  199. package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneGeneralStyles.js +2 -3
  200. package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneHeaderContainerStyles.js +2 -5
  201. package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneStartButtonHoveredStyles.js +2 -3
  202. package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneStartButtonStyles.js +2 -3
  203. package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneStyles.js +2 -15
  204. package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneSubtitleStyles.js +2 -3
  205. package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneTextContainerStyles.js +2 -3
  206. package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneTitleStyles.js +2 -3
  207. package/lib/cjs/components/proactivechatpane/common/presetOne/presetOneProps/presetOneProactiveChatPaneControlProps.js +2 -5
  208. package/lib/cjs/components/proactivechatpane/common/presetOne/presetOneProps/presetOneProactiveChatPaneProps.js +2 -6
  209. package/lib/cjs/components/proactivechatpane/common/presetOne/presetOneStyles/presetOneProactiveChatPaneBodyTitleStyles.js +2 -3
  210. package/lib/cjs/components/proactivechatpane/common/presetOne/presetOneStyles/presetOneProactiveChatPaneCloseButtonHoveredStyles.js +2 -3
  211. package/lib/cjs/components/proactivechatpane/common/presetOne/presetOneStyles/presetOneProactiveChatPaneCloseButtonStyles.js +2 -3
  212. package/lib/cjs/components/proactivechatpane/common/presetOne/presetOneStyles/presetOneProactiveChatPaneStartButtonHoveredStyles.js +2 -3
  213. package/lib/cjs/components/proactivechatpane/common/presetOne/presetOneStyles/presetOneProactiveChatPaneStartButtonStyles.js +2 -3
  214. package/lib/cjs/components/proactivechatpane/common/presetOne/presetOneStyles/presetOneProactiveChatPaneStyles.js +2 -9
  215. package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeProps/presetThreeProactiveChatPaneControlProps.js +2 -5
  216. package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeProps/presetThreeProactiveChatPaneProps.js +2 -6
  217. package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeStyles/presetThreeProactiveChatPaneBodyContainerStyles.js +2 -3
  218. package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeStyles/presetThreeProactiveChatPaneCloseButtonHoveredStyles.js +2 -3
  219. package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeStyles/presetThreeProactiveChatPaneCloseButtonStyles.js +2 -3
  220. package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeStyles/presetThreeProactiveChatPaneGeneralStyles.js +2 -3
  221. package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeStyles/presetThreeProactiveChatPaneHeaderContainerStyles.js +2 -3
  222. package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeStyles/presetThreeProactiveChatPaneStartButtonHoveredStyles.js +2 -3
  223. package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeStyles/presetThreeProactiveChatPaneStartButtonStyles.js +2 -3
  224. package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeStyles/presetThreeProactiveChatPaneStyles.js +2 -11
  225. package/lib/cjs/components/proactivechatpane/common/presetTwo/presetTwoProps/presetTwoProactiveChatPaneComponentOverrides.js +4 -11
  226. package/lib/cjs/components/proactivechatpane/common/presetTwo/presetTwoProps/presetTwoProactiveChatPaneControlProps.js +2 -5
  227. package/lib/cjs/components/proactivechatpane/common/presetTwo/presetTwoProps/presetTwoProactiveChatPaneProps.js +2 -7
  228. package/lib/cjs/components/proactivechatpane/common/presetTwo/presetTwoStyles/presetTwoProactiveChatPaneBodyContainerStyles.js +2 -3
  229. package/lib/cjs/components/proactivechatpane/common/presetTwo/presetTwoStyles/presetTwoProactiveChatPaneGeneralStyles.js +2 -3
  230. package/lib/cjs/components/proactivechatpane/common/presetTwo/presetTwoStyles/presetTwoProactiveChatPaneHeaderContainerStyles.js +2 -3
  231. package/lib/cjs/components/proactivechatpane/common/presetTwo/presetTwoStyles/presetTwoProactiveChatPaneStartButtonHoveredStyles.js +2 -3
  232. package/lib/cjs/components/proactivechatpane/common/presetTwo/presetTwoStyles/presetTwoProactiveChatPaneStartButtonStyles.js +2 -3
  233. package/lib/cjs/components/proactivechatpane/common/presetTwo/presetTwoStyles/presetTwoProactiveChatPaneStyles.js +2 -10
  234. package/lib/cjs/components/proactivechatpane/common/presetTwo/presetTwoStyles/presetTwoProactiveChatPaneTextContainerStyles.js +2 -3
  235. package/lib/cjs/components/reconnectchatpane/ReconnectChatPane.js +33 -69
  236. package/lib/cjs/components/reconnectchatpane/common/default/defaultProps/defaultReconnectChatPaneControlProps.js +2 -5
  237. package/lib/cjs/components/reconnectchatpane/common/default/defaultProps/defaultReconnectChatPaneProps.js +2 -6
  238. package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneButtonGroupStyles.js +2 -3
  239. package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneContinueChatButtonFocusedStyles.js +2 -3
  240. package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneContinueChatButtonHoveredStyles.js +2 -3
  241. package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneContinueChatButtonStyles.js +2 -3
  242. package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneGeneralStyles.js +2 -3
  243. package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneIconStyles.js +2 -5
  244. package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneStartChatButtonFocusedStyles.js +2 -3
  245. package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneStartNewChatButtonHoveredStyles.js +2 -3
  246. package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneStartNewChatButtonStyles.js +2 -3
  247. package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneStyles.js +2 -14
  248. package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneSubtitleStyles.js +2 -3
  249. package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneTitleStyles.js +2 -3
  250. package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneWrapperStyles.js +2 -3
  251. package/lib/cjs/components/reconnectchatpane/common/presetThree/presetThreeProps/presetThreeReconnectChatPaneControlProps.js +2 -5
  252. package/lib/cjs/components/reconnectchatpane/common/presetThree/presetThreeProps/presetThreeReconnectChatPaneProps.js +2 -6
  253. package/lib/cjs/components/reconnectchatpane/common/presetThree/presetThreeStyles/presetThreeReconnectChatPaneButtonGroupStyles.js +2 -3
  254. package/lib/cjs/components/reconnectchatpane/common/presetThree/presetThreeStyles/presetThreeReconnectChatPaneContinueChatButtonStyles.js +2 -3
  255. package/lib/cjs/components/reconnectchatpane/common/presetThree/presetThreeStyles/presetThreeReconnectChatPaneGeneralStyles.js +2 -3
  256. package/lib/cjs/components/reconnectchatpane/common/presetThree/presetThreeStyles/presetThreeReconnectChatPaneStyles.js +2 -9
  257. package/lib/cjs/components/reconnectchatpane/common/presetThree/presetThreeStyles/presetThreeReconnectChatPaneTitleStyles.js +2 -3
  258. package/lib/cjs/components/reconnectchatpane/common/presetThree/presetThreeStyles/presetThreeReconnectChatPaneWrapperStyles.js +2 -3
  259. package/lib/cjs/index.js +1 -24
  260. package/lib/cjs/services/BroadcastService.js +15 -26
  261. package/lib/cjs/services/EventQueue.js +5 -27
  262. package/lib/esm/common/Constants.js +15 -17
  263. package/lib/esm/common/decodeComponentString.js +0 -1
  264. package/lib/esm/common/utils.js +42 -22
  265. package/lib/esm/components/callingcontainer/CallingContainer.js +0 -5
  266. package/lib/esm/components/callingcontainer/subcomponents/CurrentCall/CurrentCall.js +86 -109
  267. package/lib/esm/components/callingcontainer/subcomponents/CurrentCall/common/defaultStyles/componentOverridesStyleProps.js +2 -1
  268. package/lib/esm/components/callingcontainer/subcomponents/IncomingCall/IncomingCall.js +41 -57
  269. package/lib/esm/components/callingcontainer/subcomponents/Timer/Timer.js +0 -2
  270. package/lib/esm/components/chatbutton/ChatButton.blankAnnouncements.a11y.spec.js +159 -0
  271. package/lib/esm/components/chatbutton/ChatButton.browseMode.a11y.spec.js +233 -0
  272. package/lib/esm/components/chatbutton/ChatButton.browseMode.unfixed.a11y.spec.js +111 -0
  273. package/lib/esm/components/chatbutton/ChatButton.js +64 -40
  274. package/lib/esm/components/citationpane/CitationPane.js +17 -21
  275. package/lib/esm/components/citationpane/ScalingTest.js +1 -1
  276. package/lib/esm/components/citationpane/common/defaultStyles/defaultCitationPaneCloseButtonStyles.js +0 -2
  277. package/lib/esm/components/citationpane/common/defaultStyles/defaultCitationPaneContentStyles.js +0 -1
  278. package/lib/esm/components/citationpane/common/defaultStyles/defaultCitationPaneGeneralStyles.js +0 -1
  279. package/lib/esm/components/citationpane/common/defaultStyles/defaultCitationPaneTopCloseButtonStyles.js +0 -1
  280. package/lib/esm/components/common/commandbutton/CommandButton.js +14 -15
  281. package/lib/esm/components/common/subcomponents/CloseButton.js +0 -2
  282. package/lib/esm/components/confirmationpane/ConfirmationPane.js +24 -28
  283. package/lib/esm/components/confirmationpane/common/defaultProps/defaultConfirmationPaneControlProps.js +1 -0
  284. package/lib/esm/components/footer/Footer.js +6 -10
  285. package/lib/esm/components/footer/common/defaultProps/defaultFooterComponentOverrides.js +0 -2
  286. package/lib/esm/components/footer/subcomponents/AudioNotificationButton.js +11 -11
  287. package/lib/esm/components/footer/subcomponents/DownloadTranscriptButton.js +0 -2
  288. package/lib/esm/components/footer/subcomponents/EmailTranscriptButton.js +0 -2
  289. package/lib/esm/components/header/Header.js +23 -15
  290. package/lib/esm/components/header/common/defaultStyles/defaultHeaderStyleProps.js +23 -0
  291. package/lib/esm/components/header/subcomponents/MinimizeButton.js +0 -2
  292. package/lib/esm/components/inputvalidationpane/InputValidationPane.js +53 -61
  293. package/lib/esm/components/inputvalidationpane/common/default/defaultProps/defaultInputValidationPaneControlProps.js +1 -0
  294. package/lib/esm/components/loadingpane/LoadingPane.js +10 -13
  295. package/lib/esm/components/loadingpane/common/presetOneProps/presetOneLoadingPaneControlProps.js +2 -1
  296. package/lib/esm/components/loadingpane/common/presetThreeProps/presetThreeLoadingPaneControlProps.js +2 -1
  297. package/lib/esm/components/loadingpane/common/presetTwoProps/presetTwoLoadingPaneControlProps.js +2 -1
  298. package/lib/esm/components/notificationpane/NotificationPane.js +1 -5
  299. package/lib/esm/components/notificationpane/subcomponents/CloseChatButton.js +0 -2
  300. package/lib/esm/components/notificationpane/subcomponents/DismissButton.js +0 -2
  301. package/lib/esm/components/outofofficehourspane/OOOHPane.js +3 -6
  302. package/lib/esm/components/outofofficehourspane/common/presetFourProps/presetFourOOOHPaneControlProps.js +2 -1
  303. package/lib/esm/components/outofofficehourspane/common/presetOneProps/presetOneOOOHPaneControlProps.js +2 -1
  304. package/lib/esm/components/outofofficehourspane/common/presetTwoProps/presetTwoOOOHPaneControlProps.js +2 -1
  305. package/lib/esm/components/postchatsurveypane/PostChatSurveyPane.js +2 -4
  306. package/lib/esm/components/postchatsurveypane/common/presetOneProps/presetOnePostChatSurveyPaneControlProps.js +2 -1
  307. package/lib/esm/components/prechatsurveypane/PreChatSurveyPane.js +110 -37
  308. package/lib/esm/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneMultichoiceInputStyles.js +1 -0
  309. package/lib/esm/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneMultilineTextInputStyles.js +1 -0
  310. package/lib/esm/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneTextInputStyles.js +1 -0
  311. package/lib/esm/components/prechatsurveypane/common/presetOneProps/presetOnePreChatSurveyPaneControlProps.js +2 -1
  312. package/lib/esm/components/proactivechatpane/ProactiveChatPane.js +26 -35
  313. package/lib/esm/components/proactivechatpane/common/presetTwo/presetTwoProps/presetTwoProactiveChatPaneComponentOverrides.js +1 -1
  314. package/lib/esm/components/reconnectchatpane/ReconnectChatPane.js +31 -39
  315. package/lib/esm/services/BroadcastService.js +12 -13
  316. package/lib/esm/services/EventQueue.js +3 -20
  317. package/lib/types/common/Constants.d.ts +2 -0
  318. package/lib/types/components/chatbutton/ChatButton.blankAnnouncements.a11y.spec.d.ts +1 -0
  319. package/lib/types/components/chatbutton/ChatButton.browseMode.a11y.spec.d.ts +1 -0
  320. package/lib/types/components/chatbutton/ChatButton.browseMode.unfixed.a11y.spec.d.ts +1 -0
  321. package/lib/types/components/confirmationpane/interfaces/IConfirmationPaneControlProps.d.ts +1 -0
  322. package/lib/types/components/header/interfaces/IHeaderStyleProps.d.ts +12 -0
  323. package/lib/types/components/inputvalidationpane/interfaces/IInputValidationPaneControlProps.d.ts +1 -0
  324. package/package.json +35 -18
package/lib/cjs/index.js CHANGED
@@ -261,49 +261,26 @@ Object.defineProperty(exports, "encodeComponentString", {
261
261
  return _encodeComponentString.encodeComponentString;
262
262
  }
263
263
  });
264
-
265
264
  var _Header = _interopRequireDefault(require("./components/header/Header"));
266
-
267
265
  var _Footer = _interopRequireDefault(require("./components/footer/Footer"));
268
-
269
266
  var _ConfirmationPane = _interopRequireDefault(require("./components/confirmationpane/ConfirmationPane"));
270
-
271
267
  var _CitationPane = _interopRequireDefault(require("./components/citationpane/CitationPane"));
272
-
273
268
  var _ChatButton = _interopRequireDefault(require("./components/chatbutton/ChatButton"));
274
-
275
269
  var _InputValidationPane = _interopRequireDefault(require("./components/inputvalidationpane/InputValidationPane"));
276
-
277
270
  var _ProactiveChatPane = _interopRequireDefault(require("./components/proactivechatpane/ProactiveChatPane"));
278
-
279
271
  var _ReconnectChatPane = _interopRequireDefault(require("./components/reconnectchatpane/ReconnectChatPane"));
280
-
281
272
  var _LoadingPane = _interopRequireDefault(require("./components/loadingpane/LoadingPane"));
282
-
283
273
  var _OOOHPane = _interopRequireDefault(require("./components/outofofficehourspane/OOOHPane"));
284
-
285
274
  var _NotificationPane = _interopRequireDefault(require("./components/notificationpane/NotificationPane"));
286
-
287
275
  var _PreChatSurveyPane = _interopRequireDefault(require("./components/prechatsurveypane/PreChatSurveyPane"));
288
-
289
276
  var _PostChatSurveyPane = _interopRequireDefault(require("./components/postchatsurveypane/PostChatSurveyPane"));
290
-
291
277
  var _encodeComponentString = require("./common/encodeComponentString");
292
-
293
278
  var _decodeComponentString = require("./common/decodeComponentString");
294
-
295
279
  var _BroadcastService = require("./services/BroadcastService");
296
-
297
280
  var _Constants = require("./common/Constants");
298
-
299
281
  var _CallingContainer = _interopRequireDefault(require("./components/callingcontainer/CallingContainer"));
300
-
301
282
  var _CurrentCall = _interopRequireDefault(require("./components/callingcontainer/subcomponents/CurrentCall/CurrentCall"));
302
-
303
283
  var _IncomingCall = _interopRequireDefault(require("./components/callingcontainer/subcomponents/IncomingCall/IncomingCall"));
304
-
305
284
  var _Timer = _interopRequireDefault(require("./components/callingcontainer/subcomponents/Timer/Timer"));
306
-
307
285
  var _Icons = require("./assets/Icons");
308
-
309
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
286
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -4,33 +4,26 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.BroadcastServiceInitialize = exports.BroadcastService = void 0;
7
-
8
7
  var _rxjs = require("rxjs");
9
-
10
8
  var _operators = require("rxjs/operators");
11
-
12
9
  var _broadcastChannel = require("broadcast-channel");
13
-
14
10
  var _utils = require("../common/utils");
15
-
16
11
  var _EventQueue = _interopRequireDefault(require("./EventQueue"));
12
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
13
+ const newMessage = new _rxjs.Subject();
17
14
 
18
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
-
20
- const newMessage = new _rxjs.Subject(); // eslint-disable-next-line @typescript-eslint/no-explicit-any
21
-
22
- const broadcastServicePubList = {}; // eslint-disable-next-line @typescript-eslint/no-explicit-any
23
-
24
- const broadcastServiceSubList = {}; // eslint-disable-next-line @typescript-eslint/no-explicit-any
25
-
26
- let pubChannel; // eslint-disable-next-line @typescript-eslint/no-explicit-any
15
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
16
+ const broadcastServicePubList = {};
17
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
18
+ const broadcastServiceSubList = {};
27
19
 
20
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
21
+ let pubChannel;
22
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
28
23
  let subChannel;
29
24
  let eventQueue;
30
-
31
25
  const BroadcastServiceInitialize = channelName => {
32
26
  eventQueue = new _EventQueue.default(newMessage);
33
-
34
27
  if (broadcastServicePubList[channelName]) {
35
28
  pubChannel = broadcastServicePubList[channelName];
36
29
  } else {
@@ -38,31 +31,28 @@ const BroadcastServiceInitialize = channelName => {
38
31
  broadcastServicePubList[channelName] = newPubChannel;
39
32
  pubChannel = newPubChannel;
40
33
  }
41
-
42
34
  if (broadcastServiceSubList[channelName]) {
43
35
  subChannel = broadcastServiceSubList[channelName];
44
36
  } else {
45
37
  const newSubChannel = new _broadcastChannel.BroadcastChannel(channelName);
46
38
  broadcastServiceSubList[channelName] = newSubChannel;
47
39
  subChannel = newSubChannel;
48
- } // eslint-disable-next-line @typescript-eslint/no-explicit-any
49
-
40
+ }
50
41
 
42
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
51
43
  subChannel.onmessage = message => {
52
44
  newMessage.next(message);
53
45
  eventQueue.popEvent(message);
54
46
  eventQueue.stopIfEmpty();
55
47
  };
56
48
  };
57
-
58
49
  exports.BroadcastServiceInitialize = BroadcastServiceInitialize;
59
- const BroadcastService = {
50
+ const BroadcastService = exports.BroadcastService = {
60
51
  //broadcast a message
61
52
  postMessage: function (message) {
62
53
  let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
63
54
  retry: true
64
55
  };
65
-
66
56
  /**
67
57
  * Omit copying methods to prevent 'DataCloneError' in older browsers when passing an object with functions
68
58
  * This exception occurs when an object can't be clone with the 'structured clone algorithm' (used by postMessage)
@@ -70,7 +60,8 @@ const BroadcastService = {
70
60
  try {
71
61
  const messageCopy = JSON.parse(JSON.stringify(message));
72
62
  const eventId = (0, _utils.uuidv4)();
73
- const event = { ...messageCopy,
63
+ const event = {
64
+ ...messageCopy,
74
65
  eventId
75
66
  };
76
67
  eventQueue.pushEvent(event);
@@ -78,7 +69,6 @@ const BroadcastService = {
78
69
  } catch (error) {
79
70
  console.error("Error in BroadcastService.postMessage:", error);
80
71
  }
81
-
82
72
  if (options !== null && options !== void 0 && options.retry) {
83
73
  const queueTimeout = (options === null || options === void 0 ? void 0 : options.queueTimeout) || 500;
84
74
  eventQueue.startQueue(queueTimeout);
@@ -98,5 +88,4 @@ const BroadcastService = {
98
88
  subChannel.close();
99
89
  eventQueue.dispose();
100
90
  }
101
- };
102
- exports.BroadcastService = BroadcastService;
91
+ };
@@ -4,41 +4,29 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
- 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; }
9
-
10
7
  class EventQueue {
11
8
  constructor(newMessage) {
12
- _defineProperty(this, "queueing", false);
13
-
14
- _defineProperty(this, "channelEventQueue", void 0);
15
-
16
- _defineProperty(this, "queueingId", void 0);
17
-
18
- _defineProperty(this, "newMessage", void 0);
19
-
9
+ this.queueing = false;
10
+ this.channelEventQueue = void 0;
11
+ this.queueingId = void 0;
12
+ this.newMessage = void 0;
20
13
  this.channelEventQueue = new Map();
21
14
  this.newMessage = newMessage;
22
15
  }
23
-
24
16
  processEvents() {
25
17
  this.channelEventQueue.forEach((event, eventId) => {
26
18
  // Process entry based on insertion order
27
19
  this.newMessage.next(event); // Post event directly instead of using pubChannel
28
-
29
20
  this.channelEventQueue.delete(eventId); // Remove event from queue regardless of outcome
30
21
  });
31
22
  }
32
-
33
23
  queueEvents() {
34
24
  let timeout = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 500;
35
25
  this.stopIfEmpty();
36
-
37
26
  if (this.queueingId) {
38
27
  // Queueing in progress
39
28
  return;
40
29
  }
41
-
42
30
  if (this.queueing) {
43
31
  this.queueingId = setTimeout(() => {
44
32
  this.processEvents();
@@ -46,46 +34,36 @@ class EventQueue {
46
34
  }, timeout);
47
35
  }
48
36
  }
49
-
50
37
  startQueue() {
51
38
  let timeout = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 500;
52
39
  this.queueing = true;
53
40
  this.queueEvents(timeout);
54
41
  }
55
-
56
42
  stopIfEmpty() {
57
43
  if (this.channelEventQueue.size === 0) {
58
44
  if (this.queueingId) {
59
45
  clearTimeout(this.queueingId);
60
46
  }
61
-
62
47
  this.queueing = false;
63
48
  this.queueingId = undefined;
64
49
  }
65
50
  }
66
-
67
51
  pushEvent(event) {
68
52
  if (event.eventId) {
69
53
  this.channelEventQueue.set(event.eventId, event);
70
54
  }
71
55
  }
72
-
73
56
  popEvent(event) {
74
57
  if (event.eventId) {
75
58
  this.channelEventQueue.delete(event.eventId);
76
59
  }
77
60
  }
78
-
79
61
  dispose() {
80
62
  if (this.queueingId) {
81
63
  clearTimeout(this.queueingId);
82
64
  this.queueingId = undefined;
83
65
  }
84
-
85
66
  this.channelEventQueue.clear();
86
67
  }
87
-
88
68
  }
89
-
90
- var _default = EventQueue;
91
- exports.default = _default;
69
+ var _default = exports.default = EventQueue;
@@ -1,7 +1,7 @@
1
- var _class, _class2, _class3, _class4, _class5, _class6, _class7, _class8;
2
-
3
- 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; }
4
-
1
+ var _Class, _Class2, _Class3, _Class4, _Class5, _Class6, _Class7, _Class8;
2
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
3
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
4
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
5
5
  /* CSS Constants */
6
6
  export const AccessibilityBrightnessRatio = 1.2;
7
7
  export const HiddenTextStyles = {
@@ -12,11 +12,9 @@ export const HiddenTextStyles = {
12
12
  clip: "rect(1px, 1px, 1px, 1px)",
13
13
  whiteSpace: "nowrap"
14
14
  };
15
- export const KeyCodes = (_class = class KeyCodes {}, _defineProperty(_class, "ENTER", "Enter"), _defineProperty(_class, "ESCAPE", "Escape"), _defineProperty(_class, "SPACE", "Space"), _defineProperty(_class, "DeclineCallHotKey", "D"), _defineProperty(_class, "AcceptAudioCallHotKey", "S"), _defineProperty(_class, "AcceptVideoCallHotKey", "A"), _defineProperty(_class, "ToggleMicHotKey", "M"), _defineProperty(_class, "ToggleCameraHotKey", "O"), _defineProperty(_class, "EndCallHotKey", "H"), _class);
16
- export const Regex = (_class2 = class Regex {}, _defineProperty(_class2, "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])+)\\])"), _defineProperty(_class2, "URLRegex", /(https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|www\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9]+\.[^\s]{2,}|www\.[a-zA-Z0-9]+\.[^\s]{2,})/gi), _class2);
17
- export let ElementType;
18
-
19
- (function (ElementType) {
15
+ export const KeyCodes = (_Class = class KeyCodes {}, _defineProperty(_Class, "ENTER", "Enter"), _defineProperty(_Class, "ESCAPE", "Escape"), _defineProperty(_Class, "SPACE", "Space"), _defineProperty(_Class, "DeclineCallHotKey", "D"), _defineProperty(_Class, "AcceptAudioCallHotKey", "S"), _defineProperty(_Class, "AcceptVideoCallHotKey", "A"), _defineProperty(_Class, "ToggleMicHotKey", "M"), _defineProperty(_Class, "ToggleCameraHotKey", "O"), _defineProperty(_Class, "EndCallHotKey", "H"), _Class);
16
+ export const Regex = (_Class2 = class Regex {}, _defineProperty(_Class2, "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])+)\\])"), _defineProperty(_Class2, "URLRegex", /(https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|www\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9]+\.[^\s]{2,}|www\.[a-zA-Z0-9]+\.[^\s]{2,}|mailto:[^\s]+|tel:[^\s]+|sms:[^\s]+)/gi), _Class2);
17
+ export let ElementType = /*#__PURE__*/function (ElementType) {
20
18
  ElementType["ChatButton"] = "ChatButton";
21
19
  ElementType["CloseButton"] = "CloseButton";
22
20
  ElementType["HeaderMinimizeButton"] = "HeaderMinimizeButton";
@@ -41,11 +39,11 @@ export let ElementType;
41
39
  ElementType["CurrentCallEndCallButton"] = "CurrentCallEndCallButton";
42
40
  ElementType["Utility"] = "Utility";
43
41
  ElementType["Custom"] = "Custom";
44
- })(ElementType || (ElementType = {}));
45
-
46
- export const Ids = (_class3 = class Ids {}, _defineProperty(_class3, "DefaultCallingContainerId", "lcw-calling-container"), _defineProperty(_class3, "DefaultCurrentCallId", "lcw-current-call-container"), _defineProperty(_class3, "CurrentCallActionGroupId", "lcw-current-call-action-icons"), _defineProperty(_class3, "CurrentCallFooterId", "lcw-current-call-footer"), _defineProperty(_class3, "RemoteVideoTileId", "lcw-remote-video"), _defineProperty(_class3, "SelfVideoTileId", "lcw-self-video"), _defineProperty(_class3, "VideoTileGroupId", "lcw-current-call-body"), _defineProperty(_class3, "EndCallButtonId", "lcw-call-reject-button"), _defineProperty(_class3, "MicButtonId", "lcw-toggle-audio"), _defineProperty(_class3, "VideoButtonId", "lcw-toggle-video"), _defineProperty(_class3, "CallTimerId", "lcw-current-call-timer"), _defineProperty(_class3, "CurrentCallLeftGroupId", "lcw-current-call-left-group"), _defineProperty(_class3, "CurrentCallMiddleGroupId", "lcw-current-call-middle-group"), _defineProperty(_class3, "CurrentCallRightGroupId", "lcw-current-call-right-group"), _defineProperty(_class3, "DefaultIncomingCallId", "lcw-incoming-call"), _defineProperty(_class3, "DeclineCallButtonId", "lcw-call-reject-button"), _defineProperty(_class3, "AudioCallButtonId", "lcw-call-accept-button"), _defineProperty(_class3, "VideoCallButtonId", "lcw-video-call-accept-button"), _defineProperty(_class3, "IncomingCallTitleId", "lcw-incoming-call-message"), _defineProperty(_class3, "DefaultIncomingCallPopupId", "lcw-incoming-call-popup"), _defineProperty(_class3, "IncomingCallLeftGroupId", "lcw-incoming-call-left-group"), _defineProperty(_class3, "IncomingCallMiddleGroupId", "lcw-incoming-call-middle-group"), _defineProperty(_class3, "IncomingCallRightGroupId", "lcw-incoming-call-right-group"), _defineProperty(_class3, "DefaultChatButtonId", "lcw-components-chat-button"), _defineProperty(_class3, "DefaultConfirmationPaneId", "lcw-components-confirmation-pane"), _defineProperty(_class3, "CustomFooterId", "lcw-footer"), _defineProperty(_class3, "DownloadTranscriptButtonId", "lcw-footer-download-transcript-button"), _defineProperty(_class3, "EmailTranscriptButtonId", "lcw-footer-email-transcript-button"), _defineProperty(_class3, "AudioNotificationButtonId", "lcw-footer-audio-notification-button"), _defineProperty(_class3, "DefaultFooterId", "lcw-components-footer"), _defineProperty(_class3, "FooterLeftGroupId", "lcw-footer-left-group"), _defineProperty(_class3, "FooterMiddleGroupId", "lcw-footer-middle-group"), _defineProperty(_class3, "FooterRightGroupId", "lcw-footer-right-group"), _defineProperty(_class3, "DefaultHeaderId", "lcw-header"), _defineProperty(_class3, "MinimizeButtonId", "lcw-header-minimize-button"), _defineProperty(_class3, "CloseButtonId", "lcw-header-close-button"), _defineProperty(_class3, "HeaderIconId", "lcw-header-icon"), _defineProperty(_class3, "HeaderTitleId", "lcw-header-title"), _defineProperty(_class3, "HeaderLeftGroupId", "lcw-header-left-group"), _defineProperty(_class3, "HeaderMiddleGroupId", "lcw-header-middle-group"), _defineProperty(_class3, "HeaderRightGroupId", "lcw-header-right-group"), _defineProperty(_class3, "DefaultInputValidationPaneId", "lcw-email-transcript-dialog-container"), _defineProperty(_class3, "DefaultInputValidationPaneInputId", "lcw-email-transcript-dialog-text-field"), _defineProperty(_class3, "DefaultLoadingPaneId", "lcw-loading-pane"), _defineProperty(_class3, "DefaultNotificationPaneId", "lcw-notification-pane"), _defineProperty(_class3, "DefaultOOOHPaneId", "lcw-out-of-office-hours-pane"), _defineProperty(_class3, "DefaultPostChatSurveyPaneId", "lcw-postchat-survey-pane"), _defineProperty(_class3, "DefaultPreChatSurveyPaneId", "lcw-prechat-survey-pane-default"), _defineProperty(_class3, "DefaultProactiveChatPaneId", "lcw-proactive-chat"), _defineProperty(_class3, "DefaultReconnectChatPaneId", "lcw-reconnect-chat-pane"), _class3);
47
- export const ButtonTypes = (_class4 = class ButtonTypes {}, _defineProperty(_class4, "Icon", "icon"), _defineProperty(_class4, "Text", "text"), _class4);
48
- export const IconNames = (_class5 = class IconNames {}, _defineProperty(_class5, "DeclineCall", "DeclineCall"), _defineProperty(_class5, "Microphone", "Microphone"), _defineProperty(_class5, "MicOff2", "MicOff2"), _defineProperty(_class5, "Video", "Video"), _defineProperty(_class5, "VideoOff", "VideoOff"), _defineProperty(_class5, "IncomingCall", "IncomingCall"), _defineProperty(_class5, "ChromeClose", "ChromeClose"), _defineProperty(_class5, "Download", "Download"), _defineProperty(_class5, "Mail", "Mail"), _defineProperty(_class5, "Volume3", "Volume3"), _defineProperty(_class5, "Volume0", "Volume0"), _defineProperty(_class5, "ChromeMinimize", "ChromeMinimize"), _class5);
49
- export const AriaLabels = (_class6 = class AriaLabels {}, _defineProperty(_class6, "EndCall", "End Call"), _defineProperty(_class6, "MicMute", "Mute"), _defineProperty(_class6, "MicUnmute", "Unmute"), _defineProperty(_class6, "VideoTurnCameraOn", "Turn camera on"), _defineProperty(_class6, "VideoTurnCameraOff", "Turn camera off"), _defineProperty(_class6, "IncomingCallArea", "Incoming call area"), _defineProperty(_class6, "RejectCall", "Reject call"), _defineProperty(_class6, "AcceptVoiceCall", "Accept voice call"), _defineProperty(_class6, "AcceptVideoCall", "Accept video Call"), _defineProperty(_class6, "DeclineCall", "Decline Call"), _defineProperty(_class6, "AudioCall", "Audio Call"), _defineProperty(_class6, "VideoCall", "Video Call"), _defineProperty(_class6, "LetsChatWeAreOnline", "Let's chat we are online"), _defineProperty(_class6, "UnreadMessageString", "you have new messages"), _defineProperty(_class6, "Close", "Close"), _defineProperty(_class6, "ConfirmationPaneConfirm", "Close Chat"), _defineProperty(_class6, "ConfirmationPaneCancel", "Cancel. Return to Chat"), _defineProperty(_class6, "DownloadChatTranscript", "Download chat transcript"), _defineProperty(_class6, "EmailTranscript", "Email Transcript"), _defineProperty(_class6, "TurnSoundOff", "Turn sound off"), _defineProperty(_class6, "TurnSoundOn", "Turn sound on"), _defineProperty(_class6, "Minimize", "Minimize"), _defineProperty(_class6, "EmailChatTranscriptPane", "Email Chat Transcript Pane"), _defineProperty(_class6, "InputValidationPaneInput", "Please provide e-mail address to send transcript. The transcript will be sent after the chat ends. Email address text area"), _defineProperty(_class6, "Save", "Save"), _defineProperty(_class6, "Cancel", "Cancel"), _defineProperty(_class6, "ProactiveChatPane", "Proactive Chat Pane"), _defineProperty(_class6, "ChatNow", "Chat Now"), _defineProperty(_class6, "ReconnectChatPane", "Reconnect Chat Pane"), _defineProperty(_class6, "ReconnectChatPaneIcon", "Reconnect Chat Pane Icon"), _defineProperty(_class6, "ContinueConversation", "Continue conversation"), _defineProperty(_class6, "StartNewConversation", "Start new conversation"), _class6);
50
- export const EventNames = (_class7 = class EventNames {}, _defineProperty(_class7, "OnClick", "OnClick"), _defineProperty(_class7, "OnEscapeKeyDown", "OnEscapeKeyDown"), _defineProperty(_class7, "IncomingCallEnded", "IncomingCallEnded"), _class7);
51
- export const Texts = (_class8 = class Texts {}, _defineProperty(_class8, "IncomingCallTitle", "Incoming Call"), _defineProperty(_class8, "ChatButtonTitle", "Let's Chat!"), _defineProperty(_class8, "ChatButtonSubtitle", "We're online."), _defineProperty(_class8, "ChatButtonUnreadMessageString", "new messages"), _defineProperty(_class8, "ChatButtonLargeUnreadMessageString", "99+"), _defineProperty(_class8, "CloseButtonText", "Close"), _defineProperty(_class8, "ConfirmationPaneTitle", "Close chat"), _defineProperty(_class8, "ConfirmationPaneSubtitle", "Do you really want to close this chat?"), _defineProperty(_class8, "ConfirmButtonText", "Close"), _defineProperty(_class8, "EmailPlaceHolderText", "johnsmith@outlook.com"), _defineProperty(_class8, "CancelButtonText", "Cancel"), _defineProperty(_class8, "DownloadChatTranscriptText", "Download chat transcript"), _defineProperty(_class8, "EmailTranscriptText", "Email Transcript"), _defineProperty(_class8, "HeaderIcon", "Chat Icon"), _defineProperty(_class8, "HeaderTitle", "Let's Chat"), _defineProperty(_class8, "MinimizeText", "Minimize"), _defineProperty(_class8, "InputValidationPaneTitleText", "Please provide e-mail address to send transcript."), _defineProperty(_class8, "InputValidationPaneSubtitleText", "The transcript will be sent after the chat ends."), _defineProperty(_class8, "InvalidInputErrorMessageText", "Enter a valid email address."), _defineProperty(_class8, "SendButtonText", "Send"), _defineProperty(_class8, "SaveButtonText", "Save"), _defineProperty(_class8, "LoadingPaneTitleText", "Welcome to"), _defineProperty(_class8, "LoadingPaneSubtitleText", "live chat support ..."), _defineProperty(_class8, "LoadingPaneSpinnerText", "Loading ..."), _defineProperty(_class8, "OOOHPaneTitleText", "Thanks for contacting us. You have reached us outside of our operating hours. An agent will respond when we open."), _defineProperty(_class8, "PostChatSurveyPaneTitleText", "Post chat survey pane"), _defineProperty(_class8, "ProactiveChatPaneTitleText", "Welcome to"), _defineProperty(_class8, "ProactiveChatPaneSubtitleText", "Live chat support!"), _defineProperty(_class8, "ProactiveChatPaneBodyTitleText", "Hi! Have any questions? I am here to help."), _defineProperty(_class8, "ProactiveChatPaneStartButtonText", "Chat Now"), _defineProperty(_class8, "ReconnectChatPaneTitleText", "Previous session detected"), _defineProperty(_class8, "ReconnectChatPaneSubtitleText", "We have detected a previous chat session. Would you like to continue with your previous session?"), _defineProperty(_class8, "ReconnectChatPaneContinueChatButtonText", "Continue conversation"), _defineProperty(_class8, "ReconnectChatPaneStartNewChatButtonText", "Start new conversation"), _class8);
42
+ return ElementType;
43
+ }({});
44
+ export const Ids = (_Class3 = class Ids {}, _defineProperty(_Class3, "DefaultCallingContainerId", "lcw-calling-container"), _defineProperty(_Class3, "DefaultCurrentCallId", "lcw-current-call-container"), _defineProperty(_Class3, "CurrentCallActionGroupId", "lcw-current-call-action-icons"), _defineProperty(_Class3, "CurrentCallFooterId", "lcw-current-call-footer"), _defineProperty(_Class3, "RemoteVideoTileId", "lcw-remote-video"), _defineProperty(_Class3, "SelfVideoTileId", "lcw-self-video"), _defineProperty(_Class3, "VideoTileGroupId", "lcw-current-call-body"), _defineProperty(_Class3, "EndCallButtonId", "lcw-call-reject-button"), _defineProperty(_Class3, "MicButtonId", "lcw-toggle-audio"), _defineProperty(_Class3, "VideoButtonId", "lcw-toggle-video"), _defineProperty(_Class3, "CallTimerId", "lcw-current-call-timer"), _defineProperty(_Class3, "CurrentCallLeftGroupId", "lcw-current-call-left-group"), _defineProperty(_Class3, "CurrentCallMiddleGroupId", "lcw-current-call-middle-group"), _defineProperty(_Class3, "CurrentCallRightGroupId", "lcw-current-call-right-group"), _defineProperty(_Class3, "DefaultIncomingCallId", "lcw-incoming-call"), _defineProperty(_Class3, "DeclineCallButtonId", "lcw-call-reject-button"), _defineProperty(_Class3, "AudioCallButtonId", "lcw-call-accept-button"), _defineProperty(_Class3, "VideoCallButtonId", "lcw-video-call-accept-button"), _defineProperty(_Class3, "IncomingCallTitleId", "lcw-incoming-call-message"), _defineProperty(_Class3, "DefaultIncomingCallPopupId", "lcw-incoming-call-popup"), _defineProperty(_Class3, "IncomingCallLeftGroupId", "lcw-incoming-call-left-group"), _defineProperty(_Class3, "IncomingCallMiddleGroupId", "lcw-incoming-call-middle-group"), _defineProperty(_Class3, "IncomingCallRightGroupId", "lcw-incoming-call-right-group"), _defineProperty(_Class3, "DefaultChatButtonId", "lcw-components-chat-button"), _defineProperty(_Class3, "DefaultConfirmationPaneId", "lcw-components-confirmation-pane"), _defineProperty(_Class3, "CustomFooterId", "lcw-footer"), _defineProperty(_Class3, "DownloadTranscriptButtonId", "lcw-footer-download-transcript-button"), _defineProperty(_Class3, "EmailTranscriptButtonId", "lcw-footer-email-transcript-button"), _defineProperty(_Class3, "AudioNotificationButtonId", "lcw-footer-audio-notification-button"), _defineProperty(_Class3, "DefaultFooterId", "lcw-components-footer"), _defineProperty(_Class3, "FooterLeftGroupId", "lcw-footer-left-group"), _defineProperty(_Class3, "FooterMiddleGroupId", "lcw-footer-middle-group"), _defineProperty(_Class3, "FooterRightGroupId", "lcw-footer-right-group"), _defineProperty(_Class3, "DefaultHeaderId", "lcw-header"), _defineProperty(_Class3, "MinimizeButtonId", "lcw-header-minimize-button"), _defineProperty(_Class3, "CloseButtonId", "lcw-header-close-button"), _defineProperty(_Class3, "HeaderIconId", "lcw-header-icon"), _defineProperty(_Class3, "HeaderTitleId", "lcw-header-title"), _defineProperty(_Class3, "HeaderLeftGroupId", "lcw-header-left-group"), _defineProperty(_Class3, "HeaderMiddleGroupId", "lcw-header-middle-group"), _defineProperty(_Class3, "HeaderRightGroupId", "lcw-header-right-group"), _defineProperty(_Class3, "DefaultInputValidationPaneId", "lcw-email-transcript-dialog-container"), _defineProperty(_Class3, "DefaultInputValidationPaneInputId", "lcw-email-transcript-dialog-text-field"), _defineProperty(_Class3, "DefaultLoadingPaneId", "lcw-loading-pane"), _defineProperty(_Class3, "DefaultNotificationPaneId", "lcw-notification-pane"), _defineProperty(_Class3, "DefaultOOOHPaneId", "lcw-out-of-office-hours-pane"), _defineProperty(_Class3, "DefaultPostChatSurveyPaneId", "lcw-postchat-survey-pane"), _defineProperty(_Class3, "DefaultPreChatSurveyPaneId", "lcw-prechat-survey-pane-default"), _defineProperty(_Class3, "DefaultProactiveChatPaneId", "lcw-proactive-chat"), _defineProperty(_Class3, "DefaultReconnectChatPaneId", "lcw-reconnect-chat-pane"), _Class3);
45
+ export const ButtonTypes = (_Class4 = class ButtonTypes {}, _defineProperty(_Class4, "Icon", "icon"), _defineProperty(_Class4, "Text", "text"), _Class4);
46
+ export const IconNames = (_Class5 = class IconNames {}, _defineProperty(_Class5, "DeclineCall", "DeclineCall"), _defineProperty(_Class5, "Microphone", "Microphone"), _defineProperty(_Class5, "MicOff2", "MicOff2"), _defineProperty(_Class5, "Video", "Video"), _defineProperty(_Class5, "VideoOff", "VideoOff"), _defineProperty(_Class5, "IncomingCall", "IncomingCall"), _defineProperty(_Class5, "ChromeClose", "ChromeClose"), _defineProperty(_Class5, "Download", "Download"), _defineProperty(_Class5, "Mail", "Mail"), _defineProperty(_Class5, "Volume3", "Volume3"), _defineProperty(_Class5, "Volume0", "Volume0"), _defineProperty(_Class5, "ChromeMinimize", "ChromeMinimize"), _Class5);
47
+ export const AriaLabels = (_Class6 = class AriaLabels {}, _defineProperty(_Class6, "EndCall", "End Call"), _defineProperty(_Class6, "MicMute", "Mute"), _defineProperty(_Class6, "MicUnmute", "Unmute"), _defineProperty(_Class6, "VideoTurnCameraOn", "Turn camera on"), _defineProperty(_Class6, "VideoTurnCameraOff", "Turn camera off"), _defineProperty(_Class6, "IncomingCallArea", "Incoming call area"), _defineProperty(_Class6, "RejectCall", "Reject call"), _defineProperty(_Class6, "AcceptVoiceCall", "Accept voice call"), _defineProperty(_Class6, "AcceptVideoCall", "Accept video Call"), _defineProperty(_Class6, "DeclineCall", "Decline Call"), _defineProperty(_Class6, "AudioCall", "Audio Call"), _defineProperty(_Class6, "VideoCall", "Video Call"), _defineProperty(_Class6, "LetsChatWeAreOnline", "Let's chat we are online"), _defineProperty(_Class6, "UnreadMessageString", "you have new messages"), _defineProperty(_Class6, "Close", "Close"), _defineProperty(_Class6, "ConfirmationPaneConfirm", "Close Chat"), _defineProperty(_Class6, "ConfirmationPaneCancel", "Cancel. Return to Chat"), _defineProperty(_Class6, "DownloadChatTranscript", "Download chat transcript"), _defineProperty(_Class6, "EmailTranscript", "Email Transcript"), _defineProperty(_Class6, "TurnSoundOff", "Turn sound off"), _defineProperty(_Class6, "TurnSoundOn", "Turn sound on"), _defineProperty(_Class6, "Minimize", "Minimize"), _defineProperty(_Class6, "EmailChatTranscriptPane", "Email Chat Transcript Pane"), _defineProperty(_Class6, "InputValidationPaneInput", "Please provide e-mail address to send transcript. The transcript will be sent after the chat ends. Email address text area"), _defineProperty(_Class6, "Save", "Save"), _defineProperty(_Class6, "Cancel", "Cancel"), _defineProperty(_Class6, "ProactiveChatPane", "Proactive Chat Pane"), _defineProperty(_Class6, "ChatNow", "Chat Now"), _defineProperty(_Class6, "ReconnectChatPane", "Reconnect Chat Pane"), _defineProperty(_Class6, "ReconnectChatPaneIcon", "Reconnect Chat Pane Icon"), _defineProperty(_Class6, "ContinueConversation", "Continue conversation"), _defineProperty(_Class6, "StartNewConversation", "Start new conversation"), _defineProperty(_Class6, "InputValidationPaneButtonGroup", "Actions"), _defineProperty(_Class6, "ConfirmationPaneButtonGroup", "Actions"), _Class6);
48
+ export const EventNames = (_Class7 = class EventNames {}, _defineProperty(_Class7, "OnClick", "OnClick"), _defineProperty(_Class7, "OnEscapeKeyDown", "OnEscapeKeyDown"), _defineProperty(_Class7, "IncomingCallEnded", "IncomingCallEnded"), _Class7);
49
+ export const Texts = (_Class8 = class Texts {}, _defineProperty(_Class8, "IncomingCallTitle", "Incoming Call"), _defineProperty(_Class8, "ChatButtonTitle", "Let's Chat!"), _defineProperty(_Class8, "ChatButtonSubtitle", "We're online."), _defineProperty(_Class8, "ChatButtonUnreadMessageString", "new messages"), _defineProperty(_Class8, "ChatButtonLargeUnreadMessageString", "99+"), _defineProperty(_Class8, "CloseButtonText", "Close"), _defineProperty(_Class8, "ConfirmationPaneTitle", "Close chat"), _defineProperty(_Class8, "ConfirmationPaneSubtitle", "Do you really want to close this chat?"), _defineProperty(_Class8, "ConfirmButtonText", "Close"), _defineProperty(_Class8, "EmailPlaceHolderText", "johnsmith@outlook.com"), _defineProperty(_Class8, "CancelButtonText", "Cancel"), _defineProperty(_Class8, "DownloadChatTranscriptText", "Download chat transcript"), _defineProperty(_Class8, "EmailTranscriptText", "Email Transcript"), _defineProperty(_Class8, "HeaderIcon", "Chat Icon"), _defineProperty(_Class8, "HeaderTitle", "Let's Chat"), _defineProperty(_Class8, "MinimizeText", "Minimize"), _defineProperty(_Class8, "InputValidationPaneTitleText", "Please provide e-mail address to send transcript."), _defineProperty(_Class8, "InputValidationPaneSubtitleText", "The transcript will be sent after the chat ends."), _defineProperty(_Class8, "InvalidInputErrorMessageText", "Enter a valid email address."), _defineProperty(_Class8, "SendButtonText", "Send"), _defineProperty(_Class8, "SaveButtonText", "Save"), _defineProperty(_Class8, "LoadingPaneTitleText", "Welcome to"), _defineProperty(_Class8, "LoadingPaneSubtitleText", "live chat support ..."), _defineProperty(_Class8, "LoadingPaneSpinnerText", "Loading ..."), _defineProperty(_Class8, "OOOHPaneTitleText", "Thanks for contacting us. You have reached us outside of our operating hours. An agent will respond when we open."), _defineProperty(_Class8, "PostChatSurveyPaneTitleText", "Post chat survey pane"), _defineProperty(_Class8, "ProactiveChatPaneTitleText", "Welcome to"), _defineProperty(_Class8, "ProactiveChatPaneSubtitleText", "Live chat support!"), _defineProperty(_Class8, "ProactiveChatPaneBodyTitleText", "Hi! Have any questions? I am here to help."), _defineProperty(_Class8, "ProactiveChatPaneStartButtonText", "Chat Now"), _defineProperty(_Class8, "ReconnectChatPaneTitleText", "Previous session detected"), _defineProperty(_Class8, "ReconnectChatPaneSubtitleText", "We have detected a previous chat session. Would you like to continue with your previous session?"), _defineProperty(_Class8, "ReconnectChatPaneContinueChatButtonText", "Continue conversation"), _defineProperty(_Class8, "ReconnectChatPaneStartNewChatButtonText", "Start new conversation"), _Class8);
@@ -1,7 +1,6 @@
1
1
  import { BroadcastService, ElementType } from "..";
2
2
  export const decodeComponentString = element => {
3
3
  if (!element) return null;
4
-
5
4
  if (typeof element === "string") {
6
5
  try {
7
6
  const decodedComponent = JSON.parse(element, (_k, v) => {
@@ -4,7 +4,7 @@ import { decodeComponentString } from "..";
4
4
  export const uuidv4 = () => {
5
5
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, c => {
6
6
  const r = Math.random() * 16 | 0,
7
- v = c === "x" ? r : r & 0x3 | 0x8;
7
+ v = c === "x" ? r : r & 0x3 | 0x8;
8
8
  return v.toString(16);
9
9
  });
10
10
  };
@@ -14,9 +14,10 @@ export const generateEventName = (controlId, prefix, suffix) => {
14
14
  if (controlId) eventName += controlId;
15
15
  if (suffix) eventName += suffix;
16
16
  return eventName;
17
- }; //Broadcast Error
18
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
17
+ };
19
18
 
19
+ //Broadcast Error
20
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
20
21
  export const broadcastError = (elementId, error, propName, elementType) => {
21
22
  const onJSONParseErrorEventName = generateEventName(elementId, propName, "JSONParseError");
22
23
  const onJSONParseErrorEvent = {
@@ -31,7 +32,6 @@ export const broadcastError = (elementId, error, propName, elementType) => {
31
32
  export const getInputValuesFromAdaptiveCard = adaptiveCard => {
32
33
  const inputs = adaptiveCard.getAllInputs();
33
34
  const adaptiveCardValues = [];
34
-
35
35
  for (const input of inputs) {
36
36
  adaptiveCardValues.push({
37
37
  index: input.index,
@@ -40,7 +40,6 @@ export const getInputValuesFromAdaptiveCard = adaptiveCard => {
40
40
  value: input.value
41
41
  });
42
42
  }
43
-
44
43
  return adaptiveCardValues;
45
44
  };
46
45
  export const processCustomComponents = children => {
@@ -59,34 +58,32 @@ export const getMinutes = time => {
59
58
  };
60
59
  export const getSeconds = time => {
61
60
  return ("0" + Math.floor(time / 1000 % 60)).slice(-2);
62
- }; // eslint-disable-next-line @typescript-eslint/no-explicit-any
61
+ };
63
62
 
63
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
64
64
  export const addNoreferrerNoopenerTag = htmlNode => {
65
65
  const aNodes = htmlNode.getElementsByTagName("a");
66
-
67
66
  if ((aNodes === null || aNodes === void 0 ? void 0 : aNodes.length) > 0) {
68
67
  for (let index = 0; index < aNodes.length; index++) {
69
68
  var _aNode$tagName;
70
-
71
- const aNode = aNodes[index]; // Skip if the node is not valid or the node's tag name is not equal to 'a', or the node href is empty.
72
-
69
+ const aNode = aNodes[index];
70
+ // Skip if the node is not valid or the node's tag name is not equal to 'a', or the node href is empty.
73
71
  if (((_aNode$tagName = aNode.tagName) === null || _aNode$tagName === void 0 ? void 0 : _aNode$tagName.toLowerCase()) !== "a" || !aNode.href) {
74
72
  continue;
75
- } // Add target to 'a' node if target is missing or does not equal to blank
76
-
73
+ }
77
74
 
75
+ // Add target to 'a' node if target is missing or does not equal to blank
78
76
  if (!aNode.target || aNode.target !== "_blank") {
79
77
  aNode.target = "_blank";
80
- } // If rel is missing or rel does not include noopener and noreferrer, add them
81
-
78
+ }
82
79
 
80
+ // If rel is missing or rel does not include noopener and noreferrer, add them
83
81
  if (!aNode.rel) {
84
82
  aNode.rel = "noopener noreferrer";
85
83
  } else {
86
84
  if (aNode.rel.indexOf("noopener") === -1) {
87
85
  aNode.rel += " noopener";
88
86
  }
89
-
90
87
  if (aNode.rel.indexOf("noreferrer") === -1) {
91
88
  aNode.rel += " noreferrer";
92
89
  }
@@ -94,19 +91,42 @@ export const addNoreferrerNoopenerTag = htmlNode => {
94
91
  }
95
92
  }
96
93
  };
94
+
95
+ // Escape HTML special characters to prevent XSS in string concatenation
96
+ const escapeHTML = str => {
97
+ return str.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#x27;");
98
+ };
99
+
100
+ // Escape only characters dangerous in href attribute context
101
+ const escapeHrefAttribute = url => {
102
+ return url.replace(/"/g, "&quot;").replace(/'/g, "&#x27;");
103
+ };
104
+
105
+ // Validate and sanitize URL to prevent javascript: and data: protocols
106
+ const isValidURL = url => {
107
+ const trimmedUrl = url.trim().toLowerCase();
108
+ // Block dangerous protocols
109
+ if (trimmedUrl.startsWith("javascript:") || trimmedUrl.startsWith("data:") || trimmedUrl.startsWith("vbscript:") || trimmedUrl.startsWith("file:")) {
110
+ return false;
111
+ }
112
+ // Allow http, https, protocol-relative URLs, and safe contact schemes
113
+ return trimmedUrl.startsWith("http://") || trimmedUrl.startsWith("https://") || trimmedUrl.startsWith("www.") || trimmedUrl.startsWith("mailto:") || trimmedUrl.startsWith("tel:") || trimmedUrl.startsWith("sms:");
114
+ };
97
115
  export const replaceURLWithAnchor = (text, openInNewTab) => {
98
116
  if (text) {
99
117
  const modifiedText = text.replace(Regex.URLRegex, function (url) {
118
+ // Validate URL to prevent dangerous protocols
119
+ if (!isValidURL(url)) {
120
+ return escapeHTML(url); // Return escaped text, not a link
121
+ }
122
+ const escapedUrl = escapeHrefAttribute(url);
123
+ const displayText = escapeHTML(url);
100
124
  if (openInNewTab) {
101
- // eslint-disable-next-line quotes
102
- return '<a href="' + url + '" rel="noreferrer noopener" target="_blank">' + url + '</a>';
103
- } // eslint-disable-next-line quotes
104
-
105
-
106
- return '<a href="' + url + '">' + url + '</a>';
125
+ return `<a href="${escapedUrl}" rel="noreferrer noopener" target="_blank">${displayText}</a>`;
126
+ }
127
+ return `<a href="${escapedUrl}">${displayText}</a>`;
107
128
  });
108
129
  return modifiedText;
109
130
  }
110
-
111
131
  return text;
112
132
  };
@@ -3,16 +3,13 @@ import { Stack } from "@fluentui/react";
3
3
  import CurrentCall from "./subcomponents/CurrentCall/CurrentCall";
4
4
  import IncomingCall from "./subcomponents/IncomingCall/IncomingCall";
5
5
  import { defaultCallingContainerProps } from "./common/defaultProps/defaultCallingContainerProps";
6
-
7
6
  function CallingContainer(props) {
8
7
  var _props$controlProps, _defaultCallingContai, _defaultCallingContai2, _props$styleProps, _props$controlProps2, _defaultCallingContai3, _props$styleProps2, _props$controlProps3, _defaultCallingContai4, _props$controlProps4, _props$styleProps3, _props$controlProps5, _props$styleProps4;
9
-
10
8
  const callingContainerId = ((_props$controlProps = props.controlProps) === null || _props$controlProps === void 0 ? void 0 : _props$controlProps.id) ?? ((_defaultCallingContai = defaultCallingContainerProps.controlProps) === null || _defaultCallingContai === void 0 ? void 0 : _defaultCallingContai.id);
11
9
  let stackStyles = {
12
10
  root: Object.assign({}, (_defaultCallingContai2 = defaultCallingContainerProps.styleProps) === null || _defaultCallingContai2 === void 0 ? void 0 : _defaultCallingContai2.generalStyleProps, (_props$styleProps = props.styleProps) === null || _props$styleProps === void 0 ? void 0 : _props$styleProps.generalStyleProps)
13
11
  };
14
12
  const hideCallingContainer = ((_props$controlProps2 = props.controlProps) === null || _props$controlProps2 === void 0 ? void 0 : _props$controlProps2.hideCallingContainer) ?? ((_defaultCallingContai3 = defaultCallingContainerProps.controlProps) === null || _defaultCallingContai3 === void 0 ? void 0 : _defaultCallingContai3.hideCallingContainer);
15
-
16
13
  if (hideCallingContainer) {
17
14
  stackStyles = {
18
15
  root: Object.assign({}, stackStyles.root, {
@@ -20,7 +17,6 @@ function CallingContainer(props) {
20
17
  })
21
18
  };
22
19
  }
23
-
24
20
  return /*#__PURE__*/React.createElement(Stack, {
25
21
  id: callingContainerId,
26
22
  className: (_props$styleProps2 = props.styleProps) === null || _props$styleProps2 === void 0 ? void 0 : _props$styleProps2.className,
@@ -35,5 +31,4 @@ function CallingContainer(props) {
35
31
  styleProps: (_props$styleProps4 = props.styleProps) === null || _props$styleProps4 === void 0 ? void 0 : _props$styleProps4.currentCallStyleProps
36
32
  }));
37
33
  }
38
-
39
34
  export default CallingContainer;