@microsoft/omnichannel-chat-components 1.1.18 → 1.2.0-main.38e7390

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 (326) hide show
  1. package/README.md +140 -1
  2. package/lib/cjs/assets/Icons.js +21 -42
  3. package/lib/cjs/common/Constants.js +14 -31
  4. package/lib/cjs/common/decodeComponentString.js +0 -6
  5. package/lib/cjs/common/encodeComponentString.js +0 -2
  6. package/lib/cjs/common/utils.js +22 -56
  7. package/lib/cjs/components/callingcontainer/CallingContainer.js +3 -18
  8. package/lib/cjs/components/callingcontainer/common/defaultProps/defaultCallingContainerControlProps.js +2 -5
  9. package/lib/cjs/components/callingcontainer/common/defaultProps/defaultCallingContainerProps.js +2 -6
  10. package/lib/cjs/components/callingcontainer/common/defaultStyles/customizedCallingContainerStyles.js +2 -3
  11. package/lib/cjs/components/callingcontainer/common/defaultStyles/defaultCallingContainerStyles.js +2 -3
  12. package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/CurrentCall.js +105 -138
  13. package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/common/defaultProps/defaultCurrentCallControlProps.js +2 -5
  14. package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/common/defaultProps/defaultCurrentCallControlPropsRtl.js +2 -6
  15. package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/common/defaultProps/defaultCurrentCallProps.js +2 -6
  16. package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/common/defaultStyles/componentOverridesStyleProps.js +3 -5
  17. package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/common/defaultStyles/customizedCurrentCallStyleProps.js +2 -3
  18. package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/common/defaultStyles/defaultCurrentCallStyleProps.js +2 -3
  19. package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/IncomingCall.js +51 -78
  20. package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/componentOverrideProps.js +3 -11
  21. package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/componentOverridesControlProps.js +2 -7
  22. package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/defaultIncomingCallControlProps.js +2 -5
  23. package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/defaultIncomingCallControlPropsRtl.js +2 -6
  24. package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/defaultIncomingCallProps.js +2 -6
  25. package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/common/defaultStyles/componentOverridesStyleProps.js +2 -3
  26. package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/common/defaultStyles/defaultIncomingCallStyleProps.js +2 -3
  27. package/lib/cjs/components/callingcontainer/subcomponents/Timer/Timer.js +12 -12
  28. package/lib/cjs/components/chatbutton/ChatButton.blankAnnouncements.a11y.spec.js +158 -0
  29. package/lib/cjs/components/chatbutton/ChatButton.browseMode.a11y.spec.js +227 -0
  30. package/lib/cjs/components/chatbutton/ChatButton.browseMode.unfixed.a11y.spec.js +112 -0
  31. package/lib/cjs/components/chatbutton/ChatButton.js +67 -62
  32. package/lib/cjs/components/chatbutton/common/defaultProps/defaultChatButtonControlProps.js +2 -5
  33. package/lib/cjs/components/chatbutton/common/defaultProps/defaultChatButtonProps.js +2 -6
  34. package/lib/cjs/components/chatbutton/common/defaultStyles/defaultChatButtonGeneralStyles.js +2 -3
  35. package/lib/cjs/components/chatbutton/common/defaultStyles/defaultChatButtonIconContainerStyles.js +2 -5
  36. package/lib/cjs/components/chatbutton/common/defaultStyles/defaultChatButtonNotificationBubbleStyles.js +2 -3
  37. package/lib/cjs/components/chatbutton/common/defaultStyles/defaultChatButtonStyleProps.js +2 -10
  38. package/lib/cjs/components/chatbutton/common/defaultStyles/defaultChatButtonSubTitleStyles.js +2 -3
  39. package/lib/cjs/components/chatbutton/common/defaultStyles/defaultChatButtonTextContainerStyles.js +2 -3
  40. package/lib/cjs/components/chatbutton/common/defaultStyles/defaultChatButtonTitleStyles.js +2 -3
  41. package/lib/cjs/components/citationpane/CitationPane.js +19 -46
  42. package/lib/cjs/components/citationpane/ScalingTest.js +2 -8
  43. package/lib/cjs/components/citationpane/common/defaultProps/defaultCitationPaneControlProps.js +2 -3
  44. package/lib/cjs/components/citationpane/common/defaultProps/defaultCitationPaneProps.js +2 -6
  45. package/lib/cjs/components/citationpane/common/defaultProps/defaultCitationPaneStyleProps.js +2 -13
  46. package/lib/cjs/components/citationpane/common/defaultStyles/defaultCitationPaneCloseButtonFocusedStyles.js +2 -3
  47. package/lib/cjs/components/citationpane/common/defaultStyles/defaultCitationPaneCloseButtonHoveredStyles.js +2 -3
  48. package/lib/cjs/components/citationpane/common/defaultStyles/defaultCitationPaneCloseButtonStyles.js +2 -5
  49. package/lib/cjs/components/citationpane/common/defaultStyles/defaultCitationPaneContentStyles.js +2 -4
  50. package/lib/cjs/components/citationpane/common/defaultStyles/defaultCitationPaneGeneralStyles.js +2 -4
  51. package/lib/cjs/components/citationpane/common/defaultStyles/defaultCitationPaneStyles.js +2 -13
  52. package/lib/cjs/components/citationpane/common/defaultStyles/defaultCitationPaneTitleStyles.js +1 -2
  53. package/lib/cjs/components/citationpane/common/defaultStyles/defaultCitationPaneTopCloseButtonFocusedStyles.js +2 -3
  54. package/lib/cjs/components/citationpane/common/defaultStyles/defaultCitationPaneTopCloseButtonHoveredStyles.js +2 -3
  55. package/lib/cjs/components/citationpane/common/defaultStyles/defaultCitationPaneTopCloseButtonStyles.js +2 -4
  56. package/lib/cjs/components/common/commandbutton/CommandButton.js +16 -27
  57. package/lib/cjs/components/common/subcomponents/CloseButton.js +3 -12
  58. package/lib/cjs/components/confirmationpane/ConfirmationPane.js +26 -55
  59. package/lib/cjs/components/confirmationpane/common/defaultProps/defaultConfirmationPaneControlProps.js +3 -5
  60. package/lib/cjs/components/confirmationpane/common/defaultProps/defaultConfirmationPaneProps.js +2 -6
  61. package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneButtonGroupStyles.js +2 -3
  62. package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneCancelButtonFocusedStyles.js +2 -3
  63. package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneCancelButtonHoveredStyles.js +2 -3
  64. package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneCancelButtonStyles.js +2 -3
  65. package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneConfirmButtonFocusedStyles.js +2 -3
  66. package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneConfirmButtonHoveredStyles.js +2 -3
  67. package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneConfirmButtonStyles.js +2 -3
  68. package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneGeneralStyles.js +2 -3
  69. package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneStyles.js +2 -10
  70. package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneSubtitleStyles.js +2 -3
  71. package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneTitleStyles.js +2 -3
  72. package/lib/cjs/components/footer/Footer.js +9 -28
  73. package/lib/cjs/components/footer/common/defaultProps/customFooterControlProps.js +2 -6
  74. package/lib/cjs/components/footer/common/defaultProps/defaultFooterComponentOverrides.js +2 -11
  75. package/lib/cjs/components/footer/common/defaultProps/defaultFooterControlProps.js +2 -5
  76. package/lib/cjs/components/footer/common/defaultProps/defaultFooterOverridesProps.js +2 -7
  77. package/lib/cjs/components/footer/common/defaultProps/defaultFooterProps.js +2 -6
  78. package/lib/cjs/components/footer/common/defaultStyles/defaultFooterStyleProps.js +2 -3
  79. package/lib/cjs/components/footer/subcomponents/AudioNotificationButton.js +24 -27
  80. package/lib/cjs/components/footer/subcomponents/DownloadTranscriptButton.js +3 -12
  81. package/lib/cjs/components/footer/subcomponents/EmailTranscriptButton.js +3 -12
  82. package/lib/cjs/components/header/Header.js +26 -32
  83. package/lib/cjs/components/header/common/defaultProps/azureHeaderControlProps.js +2 -6
  84. package/lib/cjs/components/header/common/defaultProps/azureHeaderProps.js +2 -7
  85. package/lib/cjs/components/header/common/defaultProps/customHeaderControlProps.js +2 -6
  86. package/lib/cjs/components/header/common/defaultProps/defaultHeaderComponentOverrides.js +3 -13
  87. package/lib/cjs/components/header/common/defaultProps/defaultHeaderControlProps.js +2 -6
  88. package/lib/cjs/components/header/common/defaultProps/defaultHeaderProps.js +2 -6
  89. package/lib/cjs/components/header/common/defaultProps/overridesDefaultHeaderProps.js +2 -7
  90. package/lib/cjs/components/header/common/defaultStyles/advancedHeaderStyleProps.js +2 -3
  91. package/lib/cjs/components/header/common/defaultStyles/defaultHeaderStyleProps.js +25 -3
  92. package/lib/cjs/components/header/subcomponents/MinimizeButton.js +3 -12
  93. package/lib/cjs/components/inputvalidationpane/InputValidationPane.js +77 -94
  94. package/lib/cjs/components/inputvalidationpane/common/default/defaultProps/defaultInputValidationPaneControlProps.js +3 -5
  95. package/lib/cjs/components/inputvalidationpane/common/default/defaultProps/defaultInputValidationPaneProps.js +2 -6
  96. package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneButtonGroupStyles.js +2 -3
  97. package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneCancelButtonHoveredStyles.js +1 -2
  98. package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneCancelButtonStyles.js +2 -3
  99. package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneGeneralStyles.js +2 -3
  100. package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneHeaderGroupStyles.js +2 -3
  101. package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneInputStyles.js +2 -3
  102. package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneInvalidInputErrorMessageStyles.js +2 -3
  103. package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneSendButtonHoveredStyles.js +1 -2
  104. package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneSendButtonStyles.js +2 -3
  105. package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneStyles.js +2 -15
  106. package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneSubtitleStyles.js +2 -3
  107. package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneTitleStyles.js +2 -3
  108. package/lib/cjs/components/inputvalidationpane/common/presetTwo/presetTwoProps/presetTwoInputValidationPaneComponentOverrides.js +3 -8
  109. package/lib/cjs/components/inputvalidationpane/common/presetTwo/presetTwoProps/presetTwoInputValidationPaneControlProps.js +2 -5
  110. package/lib/cjs/components/inputvalidationpane/common/presetTwo/presetTwoProps/presetTwoInputValidationPaneProps.js +2 -7
  111. package/lib/cjs/components/inputvalidationpane/common/presetTwo/presetTwoStyles/presetTwoInputValidationPaneCancelButtonStyles.js +2 -3
  112. package/lib/cjs/components/inputvalidationpane/common/presetTwo/presetTwoStyles/presetTwoInputValidationPaneHeaderGroupStyles.js +2 -3
  113. package/lib/cjs/components/inputvalidationpane/common/presetTwo/presetTwoStyles/presetTwoInputValidationPaneInputStyles.js +2 -3
  114. package/lib/cjs/components/inputvalidationpane/common/presetTwo/presetTwoStyles/presetTwoInputValidationPaneSendButtonStyles.js +2 -3
  115. package/lib/cjs/components/inputvalidationpane/common/presetTwo/presetTwoStyles/presetTwoInputValidationPaneStyles.js +2 -9
  116. package/lib/cjs/components/inputvalidationpane/common/presetTwo/presetTwoStyles/presetTwoInputValidationPaneTitleStyles.js +2 -3
  117. package/lib/cjs/components/loadingpane/LoadingPane.js +12 -28
  118. package/lib/cjs/components/loadingpane/common/defaultProps/defaultLoadingPaneControlProps.js +2 -5
  119. package/lib/cjs/components/loadingpane/common/defaultProps/defaultLoadingPaneProps.js +2 -6
  120. package/lib/cjs/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneGeneralStyles.js +2 -3
  121. package/lib/cjs/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneIconImageProps.js +2 -6
  122. package/lib/cjs/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneIconStyles.js +2 -3
  123. package/lib/cjs/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneSpinnerStyles.js +2 -3
  124. package/lib/cjs/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneSpinnerTextStyles.js +2 -3
  125. package/lib/cjs/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneStyles.js +2 -11
  126. package/lib/cjs/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneSubtitleStyles.js +2 -3
  127. package/lib/cjs/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneTitleStyles.js +2 -3
  128. package/lib/cjs/components/loadingpane/common/presetOneProps/presetOneLoadingPaneControlProps.js +3 -5
  129. package/lib/cjs/components/loadingpane/common/presetOneProps/presetOneLoadingPaneProps.js +2 -6
  130. package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeLoadingPaneControlProps.js +3 -6
  131. package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeLoadingPaneProps.js +2 -6
  132. package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeStyles/presetThreeLoadingPaneGeneralStyles.js +2 -3
  133. package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeStyles/presetThreeLoadingPaneIconImageProps.js +2 -6
  134. package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeStyles/presetThreeLoadingPaneIconStyles.js +2 -3
  135. package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeStyles/presetThreeLoadingPaneSpinnerStyles.js +2 -3
  136. package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeStyles/presetThreeLoadingPaneSpinnerTextStyles.js +2 -3
  137. package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeStyles/presetThreeLoadingPaneStyles.js +2 -11
  138. package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeStyles/presetThreeLoadingPaneSubtitleStyles.js +2 -3
  139. package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeStyles/presetThreeLoadingPaneTitleStyles.js +2 -3
  140. package/lib/cjs/components/loadingpane/common/presetTwoProps/presetTwoLoadingPaneControlProps.js +3 -6
  141. package/lib/cjs/components/loadingpane/common/presetTwoProps/presetTwoLoadingPaneProps.js +2 -6
  142. package/lib/cjs/components/loadingpane/common/presetTwoProps/presetTwoStyles/presetTwoLoadingPaneGeneralStyles.js +2 -5
  143. package/lib/cjs/components/loadingpane/common/presetTwoProps/presetTwoStyles/presetTwoLoadingPaneSpinnerStyles.js +2 -3
  144. package/lib/cjs/components/loadingpane/common/presetTwoProps/presetTwoStyles/presetTwoLoadingPaneStyles.js +2 -11
  145. package/lib/cjs/components/notificationpane/NotificationPane.js +3 -15
  146. package/lib/cjs/components/notificationpane/subcomponents/CloseChatButton.js +3 -12
  147. package/lib/cjs/components/notificationpane/subcomponents/DismissButton.js +3 -12
  148. package/lib/cjs/components/outofofficehourspane/OOOHPane.js +5 -17
  149. package/lib/cjs/components/outofofficehourspane/common/defaultProps/defaultOOOHPaneControlProps.js +2 -5
  150. package/lib/cjs/components/outofofficehourspane/common/defaultProps/defaultOOOHPaneProps.js +2 -6
  151. package/lib/cjs/components/outofofficehourspane/common/defaultProps/defaultStyles/defaultOOOHPaneGeneralStyles.js +2 -3
  152. package/lib/cjs/components/outofofficehourspane/common/defaultProps/defaultStyles/defaultOOOHPaneStyles.js +2 -6
  153. package/lib/cjs/components/outofofficehourspane/common/defaultProps/defaultStyles/defaultOOOHPaneTitleStyles.js +2 -3
  154. package/lib/cjs/components/outofofficehourspane/common/presetFourProps/presetFourOOOHPaneControlProps.js +3 -5
  155. package/lib/cjs/components/outofofficehourspane/common/presetFourProps/presetFourOOOHPaneProps.js +2 -6
  156. package/lib/cjs/components/outofofficehourspane/common/presetOneProps/presetOneOOOHPaneControlProps.js +3 -5
  157. package/lib/cjs/components/outofofficehourspane/common/presetOneProps/presetOneOOOHPaneProps.js +2 -6
  158. package/lib/cjs/components/outofofficehourspane/common/presetTwoProps/presetTwoOOOHPaneControlProps.js +3 -5
  159. package/lib/cjs/components/outofofficehourspane/common/presetTwoProps/presetTwoOOOHPaneProps.js +2 -6
  160. package/lib/cjs/components/outofofficehourspane/common/presetTwoProps/presetTwoStyles/presetTwoOOOHPaneGeneralStyles.js +2 -5
  161. package/lib/cjs/components/outofofficehourspane/common/presetTwoProps/presetTwoStyles/presetTwoOOOHPaneStyles.js +2 -6
  162. package/lib/cjs/components/outofofficehourspane/common/presetTwoProps/presetTwoStyles/presetTwoOOOHPaneTitleStyles.js +2 -3
  163. package/lib/cjs/components/postchatsurveypane/PostChatSurveyPane.js +4 -13
  164. package/lib/cjs/components/postchatsurveypane/common/defaultProps/defaultPostChatSurveyPaneControlProps.js +2 -5
  165. package/lib/cjs/components/postchatsurveypane/common/defaultProps/defaultPostChatSurveyPaneProps.js +2 -6
  166. package/lib/cjs/components/postchatsurveypane/common/defaultProps/defaultStyles/defaultPostChatSurveyPaneGeneralStyles.js +2 -3
  167. package/lib/cjs/components/postchatsurveypane/common/defaultProps/defaultStyles/defaultPostChatSurveyPaneStyles.js +2 -5
  168. package/lib/cjs/components/postchatsurveypane/common/presetOneProps/presetOnePostChatSurveyPaneControlProps.js +3 -5
  169. package/lib/cjs/components/postchatsurveypane/common/presetOneProps/presetOnePostChatSurveyPaneProps.js +2 -6
  170. package/lib/cjs/components/postchatsurveypane/common/presetOneProps/presetOneStyles/presetOnePostChatSurveyPaneGeneralStyles.js +2 -3
  171. package/lib/cjs/components/postchatsurveypane/common/presetOneProps/presetOneStyles/presetOnePostChatSurveyPaneStyles.js +2 -5
  172. package/lib/cjs/components/prechatsurveypane/PreChatSurveyPane.js +113 -57
  173. package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultPreChatSurveyPaneControlProps.js +2 -5
  174. package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultPreChatSurveyPaneProps.js +2 -6
  175. package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneACContainerStyles.js +2 -3
  176. package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneButtonStyles.js +2 -3
  177. package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneGeneralStyles.js +2 -3
  178. package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneMultichoiceInputStyles.js +3 -3
  179. package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneMultilineTextInputStyles.js +3 -3
  180. package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneStyles.js +2 -11
  181. package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneTextInputStyles.js +3 -3
  182. package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneToggleInputStyles.js +2 -3
  183. package/lib/cjs/components/prechatsurveypane/common/presetOneProps/presetOnePreChatSurveyPaneControlProps.js +3 -5
  184. package/lib/cjs/components/prechatsurveypane/common/presetOneProps/presetOnePreChatSurveyPaneProps.js +2 -6
  185. package/lib/cjs/components/prechatsurveypane/common/presetThreeProps/presetThreePreChatSurveyPaneControlProps.js +2 -3
  186. package/lib/cjs/components/prechatsurveypane/common/presetThreeProps/presetThreePreChatSurveyPaneProps.js +2 -6
  187. package/lib/cjs/components/prechatsurveypane/common/presetThreeProps/presetThreeStyles/presetThreePreChatSurveyPaneACContainerStyles.js +2 -3
  188. package/lib/cjs/components/prechatsurveypane/common/presetThreeProps/presetThreeStyles/presetThreePreChatSurveyPaneButtonStyles.js +2 -3
  189. package/lib/cjs/components/prechatsurveypane/common/presetThreeProps/presetThreeStyles/presetThreePreChatSurveyPaneGeneralStyles.js +2 -3
  190. package/lib/cjs/components/prechatsurveypane/common/presetThreeProps/presetThreeStyles/presetThreePreChatSurveyPaneStyles.js +2 -7
  191. package/lib/cjs/components/prechatsurveypane/common/presetTwoProps/presetTwoPreChatSurveyPaneControlProps.js +2 -3
  192. package/lib/cjs/components/prechatsurveypane/common/presetTwoProps/presetTwoPreChatSurveyPaneProps.js +2 -6
  193. package/lib/cjs/components/proactivechatpane/ProactiveChatPane.js +29 -65
  194. package/lib/cjs/components/proactivechatpane/common/default/defaultProps/defaultProactiveChatPaneControlProps.js +2 -5
  195. package/lib/cjs/components/proactivechatpane/common/default/defaultProps/defaultProactiveChatPaneProps.js +2 -6
  196. package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneBodyContainerStyles.js +1 -2
  197. package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneBodyTitleStyles.js +2 -3
  198. package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneCloseButtonHoveredStyles.js +2 -3
  199. package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneCloseButtonStyles.js +2 -3
  200. package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneGeneralStyles.js +2 -3
  201. package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneHeaderContainerStyles.js +2 -5
  202. package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneStartButtonHoveredStyles.js +2 -3
  203. package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneStartButtonStyles.js +2 -3
  204. package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneStyles.js +2 -15
  205. package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneSubtitleStyles.js +2 -3
  206. package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneTextContainerStyles.js +2 -3
  207. package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneTitleStyles.js +2 -3
  208. package/lib/cjs/components/proactivechatpane/common/presetOne/presetOneProps/presetOneProactiveChatPaneControlProps.js +2 -5
  209. package/lib/cjs/components/proactivechatpane/common/presetOne/presetOneProps/presetOneProactiveChatPaneProps.js +2 -6
  210. package/lib/cjs/components/proactivechatpane/common/presetOne/presetOneStyles/presetOneProactiveChatPaneBodyTitleStyles.js +2 -3
  211. package/lib/cjs/components/proactivechatpane/common/presetOne/presetOneStyles/presetOneProactiveChatPaneCloseButtonHoveredStyles.js +2 -3
  212. package/lib/cjs/components/proactivechatpane/common/presetOne/presetOneStyles/presetOneProactiveChatPaneCloseButtonStyles.js +2 -3
  213. package/lib/cjs/components/proactivechatpane/common/presetOne/presetOneStyles/presetOneProactiveChatPaneStartButtonHoveredStyles.js +2 -3
  214. package/lib/cjs/components/proactivechatpane/common/presetOne/presetOneStyles/presetOneProactiveChatPaneStartButtonStyles.js +2 -3
  215. package/lib/cjs/components/proactivechatpane/common/presetOne/presetOneStyles/presetOneProactiveChatPaneStyles.js +2 -9
  216. package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeProps/presetThreeProactiveChatPaneControlProps.js +2 -5
  217. package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeProps/presetThreeProactiveChatPaneProps.js +2 -6
  218. package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeStyles/presetThreeProactiveChatPaneBodyContainerStyles.js +2 -3
  219. package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeStyles/presetThreeProactiveChatPaneCloseButtonHoveredStyles.js +2 -3
  220. package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeStyles/presetThreeProactiveChatPaneCloseButtonStyles.js +2 -3
  221. package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeStyles/presetThreeProactiveChatPaneGeneralStyles.js +2 -3
  222. package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeStyles/presetThreeProactiveChatPaneHeaderContainerStyles.js +2 -3
  223. package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeStyles/presetThreeProactiveChatPaneStartButtonHoveredStyles.js +2 -3
  224. package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeStyles/presetThreeProactiveChatPaneStartButtonStyles.js +2 -3
  225. package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeStyles/presetThreeProactiveChatPaneStyles.js +2 -11
  226. package/lib/cjs/components/proactivechatpane/common/presetTwo/presetTwoProps/presetTwoProactiveChatPaneComponentOverrides.js +4 -11
  227. package/lib/cjs/components/proactivechatpane/common/presetTwo/presetTwoProps/presetTwoProactiveChatPaneControlProps.js +2 -5
  228. package/lib/cjs/components/proactivechatpane/common/presetTwo/presetTwoProps/presetTwoProactiveChatPaneProps.js +2 -7
  229. package/lib/cjs/components/proactivechatpane/common/presetTwo/presetTwoStyles/presetTwoProactiveChatPaneBodyContainerStyles.js +2 -3
  230. package/lib/cjs/components/proactivechatpane/common/presetTwo/presetTwoStyles/presetTwoProactiveChatPaneGeneralStyles.js +2 -3
  231. package/lib/cjs/components/proactivechatpane/common/presetTwo/presetTwoStyles/presetTwoProactiveChatPaneHeaderContainerStyles.js +2 -3
  232. package/lib/cjs/components/proactivechatpane/common/presetTwo/presetTwoStyles/presetTwoProactiveChatPaneStartButtonHoveredStyles.js +2 -3
  233. package/lib/cjs/components/proactivechatpane/common/presetTwo/presetTwoStyles/presetTwoProactiveChatPaneStartButtonStyles.js +2 -3
  234. package/lib/cjs/components/proactivechatpane/common/presetTwo/presetTwoStyles/presetTwoProactiveChatPaneStyles.js +2 -10
  235. package/lib/cjs/components/proactivechatpane/common/presetTwo/presetTwoStyles/presetTwoProactiveChatPaneTextContainerStyles.js +2 -3
  236. package/lib/cjs/components/reconnectchatpane/ReconnectChatPane.js +33 -69
  237. package/lib/cjs/components/reconnectchatpane/common/default/defaultProps/defaultReconnectChatPaneControlProps.js +2 -5
  238. package/lib/cjs/components/reconnectchatpane/common/default/defaultProps/defaultReconnectChatPaneProps.js +2 -6
  239. package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneButtonGroupStyles.js +2 -3
  240. package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneContinueChatButtonFocusedStyles.js +2 -3
  241. package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneContinueChatButtonHoveredStyles.js +2 -3
  242. package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneContinueChatButtonStyles.js +2 -3
  243. package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneGeneralStyles.js +2 -3
  244. package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneIconStyles.js +2 -5
  245. package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneStartChatButtonFocusedStyles.js +2 -3
  246. package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneStartNewChatButtonHoveredStyles.js +2 -3
  247. package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneStartNewChatButtonStyles.js +2 -3
  248. package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneStyles.js +2 -14
  249. package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneSubtitleStyles.js +2 -3
  250. package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneTitleStyles.js +2 -3
  251. package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneWrapperStyles.js +2 -3
  252. package/lib/cjs/components/reconnectchatpane/common/presetThree/presetThreeProps/presetThreeReconnectChatPaneControlProps.js +2 -5
  253. package/lib/cjs/components/reconnectchatpane/common/presetThree/presetThreeProps/presetThreeReconnectChatPaneProps.js +2 -6
  254. package/lib/cjs/components/reconnectchatpane/common/presetThree/presetThreeStyles/presetThreeReconnectChatPaneButtonGroupStyles.js +2 -3
  255. package/lib/cjs/components/reconnectchatpane/common/presetThree/presetThreeStyles/presetThreeReconnectChatPaneContinueChatButtonStyles.js +2 -3
  256. package/lib/cjs/components/reconnectchatpane/common/presetThree/presetThreeStyles/presetThreeReconnectChatPaneGeneralStyles.js +2 -3
  257. package/lib/cjs/components/reconnectchatpane/common/presetThree/presetThreeStyles/presetThreeReconnectChatPaneStyles.js +2 -9
  258. package/lib/cjs/components/reconnectchatpane/common/presetThree/presetThreeStyles/presetThreeReconnectChatPaneTitleStyles.js +2 -3
  259. package/lib/cjs/components/reconnectchatpane/common/presetThree/presetThreeStyles/presetThreeReconnectChatPaneWrapperStyles.js +2 -3
  260. package/lib/cjs/index.js +1 -24
  261. package/lib/cjs/package.json +1 -0
  262. package/lib/cjs/services/BroadcastService.js +15 -26
  263. package/lib/cjs/services/EventQueue.js +5 -27
  264. package/lib/esm/common/Constants.js +15 -17
  265. package/lib/esm/common/decodeComponentString.js +0 -1
  266. package/lib/esm/common/utils.js +22 -30
  267. package/lib/esm/components/callingcontainer/CallingContainer.js +0 -5
  268. package/lib/esm/components/callingcontainer/subcomponents/CurrentCall/CurrentCall.js +96 -112
  269. package/lib/esm/components/callingcontainer/subcomponents/CurrentCall/common/defaultStyles/componentOverridesStyleProps.js +2 -1
  270. package/lib/esm/components/callingcontainer/subcomponents/IncomingCall/IncomingCall.js +41 -57
  271. package/lib/esm/components/callingcontainer/subcomponents/Timer/Timer.js +10 -3
  272. package/lib/esm/components/chatbutton/ChatButton.blankAnnouncements.a11y.spec.js +155 -0
  273. package/lib/esm/components/chatbutton/ChatButton.browseMode.a11y.spec.js +224 -0
  274. package/lib/esm/components/chatbutton/ChatButton.browseMode.unfixed.a11y.spec.js +108 -0
  275. package/lib/esm/components/chatbutton/ChatButton.js +64 -40
  276. package/lib/esm/components/citationpane/CitationPane.js +17 -21
  277. package/lib/esm/components/citationpane/ScalingTest.js +1 -1
  278. package/lib/esm/components/citationpane/common/defaultStyles/defaultCitationPaneCloseButtonStyles.js +0 -2
  279. package/lib/esm/components/citationpane/common/defaultStyles/defaultCitationPaneContentStyles.js +0 -1
  280. package/lib/esm/components/citationpane/common/defaultStyles/defaultCitationPaneGeneralStyles.js +0 -1
  281. package/lib/esm/components/citationpane/common/defaultStyles/defaultCitationPaneTopCloseButtonStyles.js +0 -1
  282. package/lib/esm/components/common/commandbutton/CommandButton.js +14 -15
  283. package/lib/esm/components/common/subcomponents/CloseButton.js +1 -5
  284. package/lib/esm/components/confirmationpane/ConfirmationPane.js +24 -28
  285. package/lib/esm/components/confirmationpane/common/defaultProps/defaultConfirmationPaneControlProps.js +1 -0
  286. package/lib/esm/components/footer/Footer.js +6 -10
  287. package/lib/esm/components/footer/common/defaultProps/defaultFooterComponentOverrides.js +0 -2
  288. package/lib/esm/components/footer/subcomponents/AudioNotificationButton.js +22 -15
  289. package/lib/esm/components/footer/subcomponents/DownloadTranscriptButton.js +1 -5
  290. package/lib/esm/components/footer/subcomponents/EmailTranscriptButton.js +1 -5
  291. package/lib/esm/components/header/Header.js +23 -15
  292. package/lib/esm/components/header/common/defaultStyles/defaultHeaderStyleProps.js +23 -0
  293. package/lib/esm/components/header/subcomponents/MinimizeButton.js +1 -5
  294. package/lib/esm/components/inputvalidationpane/InputValidationPane.js +75 -65
  295. package/lib/esm/components/inputvalidationpane/common/default/defaultProps/defaultInputValidationPaneControlProps.js +1 -0
  296. package/lib/esm/components/loadingpane/LoadingPane.js +10 -13
  297. package/lib/esm/components/loadingpane/common/presetOneProps/presetOneLoadingPaneControlProps.js +2 -1
  298. package/lib/esm/components/loadingpane/common/presetThreeProps/presetThreeLoadingPaneControlProps.js +2 -1
  299. package/lib/esm/components/loadingpane/common/presetTwoProps/presetTwoLoadingPaneControlProps.js +2 -1
  300. package/lib/esm/components/notificationpane/NotificationPane.js +1 -5
  301. package/lib/esm/components/notificationpane/subcomponents/CloseChatButton.js +1 -5
  302. package/lib/esm/components/notificationpane/subcomponents/DismissButton.js +1 -5
  303. package/lib/esm/components/outofofficehourspane/OOOHPane.js +3 -6
  304. package/lib/esm/components/outofofficehourspane/common/presetFourProps/presetFourOOOHPaneControlProps.js +2 -1
  305. package/lib/esm/components/outofofficehourspane/common/presetOneProps/presetOneOOOHPaneControlProps.js +2 -1
  306. package/lib/esm/components/outofofficehourspane/common/presetTwoProps/presetTwoOOOHPaneControlProps.js +2 -1
  307. package/lib/esm/components/postchatsurveypane/PostChatSurveyPane.js +2 -4
  308. package/lib/esm/components/postchatsurveypane/common/presetOneProps/presetOnePostChatSurveyPaneControlProps.js +2 -1
  309. package/lib/esm/components/prechatsurveypane/PreChatSurveyPane.js +110 -37
  310. package/lib/esm/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneMultichoiceInputStyles.js +1 -0
  311. package/lib/esm/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneMultilineTextInputStyles.js +1 -0
  312. package/lib/esm/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneTextInputStyles.js +1 -0
  313. package/lib/esm/components/prechatsurveypane/common/presetOneProps/presetOnePreChatSurveyPaneControlProps.js +2 -1
  314. package/lib/esm/components/proactivechatpane/ProactiveChatPane.js +26 -35
  315. package/lib/esm/components/proactivechatpane/common/presetTwo/presetTwoProps/presetTwoProactiveChatPaneComponentOverrides.js +1 -1
  316. package/lib/esm/components/reconnectchatpane/ReconnectChatPane.js +31 -39
  317. package/lib/esm/services/BroadcastService.js +12 -13
  318. package/lib/esm/services/EventQueue.js +3 -20
  319. package/lib/types/common/Constants.d.ts +2 -0
  320. package/lib/types/components/chatbutton/ChatButton.blankAnnouncements.a11y.spec.d.ts +1 -0
  321. package/lib/types/components/chatbutton/ChatButton.browseMode.a11y.spec.d.ts +1 -0
  322. package/lib/types/components/chatbutton/ChatButton.browseMode.unfixed.a11y.spec.d.ts +1 -0
  323. package/lib/types/components/confirmationpane/interfaces/IConfirmationPaneControlProps.d.ts +1 -0
  324. package/lib/types/components/header/interfaces/IHeaderStyleProps.d.ts +12 -0
  325. package/lib/types/components/inputvalidationpane/interfaces/IInputValidationPaneControlProps.d.ts +1 -0
  326. package/package.json +50 -39
@@ -4,10 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.defaultReconnectChatPaneControlProps = void 0;
7
-
8
7
  var _Constants = require("../../../../../common/Constants");
9
-
10
- const defaultReconnectChatPaneControlProps = {
8
+ const defaultReconnectChatPaneControlProps = exports.defaultReconnectChatPaneControlProps = {
11
9
  id: _Constants.Ids.DefaultReconnectChatPaneId,
12
10
  dir: "ltr",
13
11
  hideReconnectChatPane: false,
@@ -34,5 +32,4 @@ const defaultReconnectChatPaneControlProps = {
34
32
  onMinimize: function () {
35
33
  console.log("on minimize");
36
34
  }
37
- };
38
- exports.defaultReconnectChatPaneControlProps = defaultReconnectChatPaneControlProps;
35
+ };
@@ -4,13 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.defaultReconnectChatPaneProps = void 0;
7
-
8
7
  var _defaultReconnectChatPaneStyles = require("../defaultStyles/defaultReconnectChatPaneStyles");
9
-
10
8
  var _defaultReconnectChatPaneControlProps = require("./defaultReconnectChatPaneControlProps");
11
-
12
- const defaultReconnectChatPaneProps = {
9
+ const defaultReconnectChatPaneProps = exports.defaultReconnectChatPaneProps = {
13
10
  controlProps: _defaultReconnectChatPaneControlProps.defaultReconnectChatPaneControlProps,
14
11
  styleProps: _defaultReconnectChatPaneStyles.defaultReconnectChatPaneStyles
15
- };
16
- exports.defaultReconnectChatPaneProps = defaultReconnectChatPaneProps;
12
+ };
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.defaultReconnectChatPaneButtonGroupStyles = void 0;
7
- const defaultReconnectChatPaneButtonGroupStyles = {
7
+ const defaultReconnectChatPaneButtonGroupStyles = exports.defaultReconnectChatPaneButtonGroupStyles = {
8
8
  alignItems: "stretch"
9
- };
10
- exports.defaultReconnectChatPaneButtonGroupStyles = defaultReconnectChatPaneButtonGroupStyles;
9
+ };
@@ -4,12 +4,11 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.defaultReconnectChatPaneContinueChatFocusedStyles = void 0;
7
- const defaultReconnectChatPaneContinueChatFocusedStyles = {
7
+ const defaultReconnectChatPaneContinueChatFocusedStyles = exports.defaultReconnectChatPaneContinueChatFocusedStyles = {
8
8
  content: "",
9
9
  inset: "0px",
10
10
  border: "1px solid transparent",
11
11
  outline: "rgb(96,94,92) solid 1px",
12
12
  zIndex: 1,
13
13
  boxShadow: "inset 0px 0px 0px 2px #fff"
14
- };
15
- exports.defaultReconnectChatPaneContinueChatFocusedStyles = defaultReconnectChatPaneContinueChatFocusedStyles;
14
+ };
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.defaultReconnectChatPaneContinueChatButtonHoveredStyles = void 0;
7
- const defaultReconnectChatPaneContinueChatButtonHoveredStyles = {
7
+ const defaultReconnectChatPaneContinueChatButtonHoveredStyles = exports.defaultReconnectChatPaneContinueChatButtonHoveredStyles = {
8
8
  filter: "brightness(0.8)"
9
- };
10
- exports.defaultReconnectChatPaneContinueChatButtonHoveredStyles = defaultReconnectChatPaneContinueChatButtonHoveredStyles;
9
+ };
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.defaultReconnectChatPaneContinueChatButtonStyles = void 0;
7
- const defaultReconnectChatPaneContinueChatButtonStyles = {
7
+ const defaultReconnectChatPaneContinueChatButtonStyles = exports.defaultReconnectChatPaneContinueChatButtonStyles = {
8
8
  backgroundColor: "rgb(49, 95, 162)",
9
9
  color: "rgb(255, 255, 255)",
10
10
  cursor: "pointer",
@@ -14,5 +14,4 @@ const defaultReconnectChatPaneContinueChatButtonStyles = {
14
14
  height: "60px",
15
15
  marginBottom: "5px",
16
16
  padding: "4px 10px 5px 10px"
17
- };
18
- exports.defaultReconnectChatPaneContinueChatButtonStyles = defaultReconnectChatPaneContinueChatButtonStyles;
17
+ };
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.defaultReconnectChatPaneGeneralStyles = void 0;
7
- const defaultReconnectChatPaneGeneralStyles = {
7
+ const defaultReconnectChatPaneGeneralStyles = exports.defaultReconnectChatPaneGeneralStyles = {
8
8
  backgroundColor: "rgb(255, 255, 255)",
9
9
  borderColor: "#E6E6E6",
10
10
  borderRadius: "4px",
@@ -14,5 +14,4 @@ const defaultReconnectChatPaneGeneralStyles = {
14
14
  height: "inherit",
15
15
  width: "inherit",
16
16
  overflowY: "auto"
17
- };
18
- exports.defaultReconnectChatPaneGeneralStyles = defaultReconnectChatPaneGeneralStyles;
17
+ };
@@ -4,10 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.defaultReconnectChatPaneIconStyles = void 0;
7
-
8
7
  var _Icons = require("../../../../../assets/Icons");
9
-
10
- const defaultReconnectChatPaneIconStyles = {
8
+ const defaultReconnectChatPaneIconStyles = exports.defaultReconnectChatPaneIconStyles = {
11
9
  backgroundImage: `url(${_Icons.ChatReconnectIconBase64})`,
12
10
  backgroundPosition: "center",
13
11
  backgroundRepeat: "no-repeat",
@@ -15,5 +13,4 @@ const defaultReconnectChatPaneIconStyles = {
15
13
  height: "130px",
16
14
  margin: "0 auto",
17
15
  width: "130px"
18
- };
19
- exports.defaultReconnectChatPaneIconStyles = defaultReconnectChatPaneIconStyles;
16
+ };
@@ -4,12 +4,11 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.defaultReconnectChatPaneStartChatFocusedStyles = void 0;
7
- const defaultReconnectChatPaneStartChatFocusedStyles = {
7
+ const defaultReconnectChatPaneStartChatFocusedStyles = exports.defaultReconnectChatPaneStartChatFocusedStyles = {
8
8
  content: "",
9
9
  inset: "0px",
10
10
  border: "1px solid transparent",
11
11
  outline: "rgb(96,94,92) solid 1px",
12
12
  zIndex: 1,
13
13
  boxShadow: "inset 0px 0px 0px 2px #fff"
14
- };
15
- exports.defaultReconnectChatPaneStartChatFocusedStyles = defaultReconnectChatPaneStartChatFocusedStyles;
14
+ };
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.defaultReconnectChatPaneStartNewChatButtonHoveredStyles = void 0;
7
- const defaultReconnectChatPaneStartNewChatButtonHoveredStyles = {
7
+ const defaultReconnectChatPaneStartNewChatButtonHoveredStyles = exports.defaultReconnectChatPaneStartNewChatButtonHoveredStyles = {
8
8
  backgroundColor: "rgb(132, 132, 130)"
9
- };
10
- exports.defaultReconnectChatPaneStartNewChatButtonHoveredStyles = defaultReconnectChatPaneStartNewChatButtonHoveredStyles;
9
+ };
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.defaultReconnectChatPaneStartNewChatButtonStyles = void 0;
7
- const defaultReconnectChatPaneStartNewChatButtonStyles = {
7
+ const defaultReconnectChatPaneStartNewChatButtonStyles = exports.defaultReconnectChatPaneStartNewChatButtonStyles = {
8
8
  backgroundColor: "rgb(0, 0, 0)",
9
9
  color: "rgb(255, 255, 255)",
10
10
  cursor: "pointer",
@@ -13,5 +13,4 @@ const defaultReconnectChatPaneStartNewChatButtonStyles = {
13
13
  fontWeight: "600",
14
14
  height: "60px",
15
15
  padding: "4px 10px 5px 10px"
16
- };
17
- exports.defaultReconnectChatPaneStartNewChatButtonStyles = defaultReconnectChatPaneStartNewChatButtonStyles;
16
+ };
@@ -4,28 +4,17 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.defaultReconnectChatPaneStyles = void 0;
7
-
8
7
  var _defaultReconnectChatPaneSubtitleStyles = require("./defaultReconnectChatPaneSubtitleStyles");
9
-
10
8
  var _defaultReconnectChatPaneButtonGroupStyles = require("./defaultReconnectChatPaneButtonGroupStyles");
11
-
12
9
  var _defaultReconnectChatPaneContinueChatButtonStyles = require("./defaultReconnectChatPaneContinueChatButtonStyles");
13
-
14
10
  var _defaultReconnectChatPaneGeneralStyles = require("./defaultReconnectChatPaneGeneralStyles");
15
-
16
11
  var _defaultReconnectChatPaneTitleStyles = require("./defaultReconnectChatPaneTitleStyles");
17
-
18
12
  var _defaultReconnectChatPaneIconStyles = require("./defaultReconnectChatPaneIconStyles");
19
-
20
13
  var _defaultReconnectChatPaneWrapperStyles = require("./defaultReconnectChatPaneWrapperStyles");
21
-
22
14
  var _defaultReconnectChatPaneStartNewChatButtonStyles = require("./defaultReconnectChatPaneStartNewChatButtonStyles");
23
-
24
15
  var _defaultReconnectChatPaneContinueChatButtonHoveredStyles = require("./defaultReconnectChatPaneContinueChatButtonHoveredStyles");
25
-
26
16
  var _defaultReconnectChatPaneStartNewChatButtonHoveredStyles = require("./defaultReconnectChatPaneStartNewChatButtonHoveredStyles");
27
-
28
- const defaultReconnectChatPaneStyles = {
17
+ const defaultReconnectChatPaneStyles = exports.defaultReconnectChatPaneStyles = {
29
18
  generalStyleProps: _defaultReconnectChatPaneGeneralStyles.defaultReconnectChatPaneGeneralStyles,
30
19
  wrapperStyleProps: _defaultReconnectChatPaneWrapperStyles.defaultReconnectChatPaneWrapperStyles,
31
20
  titleStyleProps: _defaultReconnectChatPaneTitleStyles.defaultReconnectChatPaneTitleStyles,
@@ -36,5 +25,4 @@ const defaultReconnectChatPaneStyles = {
36
25
  continueChatButtonHoveredStyleProps: _defaultReconnectChatPaneContinueChatButtonHoveredStyles.defaultReconnectChatPaneContinueChatButtonHoveredStyles,
37
26
  startNewChatButtonStyleProps: _defaultReconnectChatPaneStartNewChatButtonStyles.defaultReconnectChatPaneStartNewChatButtonStyles,
38
27
  startNewChatButtonHoveredStyleProps: _defaultReconnectChatPaneStartNewChatButtonHoveredStyles.defaultReconnectChatPaneStartNewChatButtonHoveredStyles
39
- };
40
- exports.defaultReconnectChatPaneStyles = defaultReconnectChatPaneStyles;
28
+ };
@@ -4,11 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.defaultReconnectChatPaneSubtitleStyles = void 0;
7
- const defaultReconnectChatPaneSubtitleStyles = {
7
+ const defaultReconnectChatPaneSubtitleStyles = exports.defaultReconnectChatPaneSubtitleStyles = {
8
8
  color: "rgb(0, 0, 0)",
9
9
  fontFamily: "'Segoe UI', Arial, sans-serif",
10
10
  fontSize: "16px",
11
11
  fontWeight: "400",
12
12
  lineHeight: "19px"
13
- };
14
- exports.defaultReconnectChatPaneSubtitleStyles = defaultReconnectChatPaneSubtitleStyles;
13
+ };
@@ -4,12 +4,11 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.defaultReconnectChatPaneTitleStyles = void 0;
7
- const defaultReconnectChatPaneTitleStyles = {
7
+ const defaultReconnectChatPaneTitleStyles = exports.defaultReconnectChatPaneTitleStyles = {
8
8
  color: "rgb(0, 0, 0)",
9
9
  fontFamily: "'Segoe UI', Arial, sans-serif",
10
10
  fontSize: "16px",
11
11
  fontWeight: "600",
12
12
  lineHeight: "19px",
13
13
  marginBottom: "10px"
14
- };
15
- exports.defaultReconnectChatPaneTitleStyles = defaultReconnectChatPaneTitleStyles;
14
+ };
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.defaultReconnectChatPaneWrapperStyles = void 0;
7
- const defaultReconnectChatPaneWrapperStyles = {
7
+ const defaultReconnectChatPaneWrapperStyles = exports.defaultReconnectChatPaneWrapperStyles = {
8
8
  backgroundColor: "rgb(255, 255, 255)",
9
9
  borderColor: "#E6E6E6",
10
10
  borderRadius: "0 8px 8px 8px",
@@ -12,5 +12,4 @@ const defaultReconnectChatPaneWrapperStyles = {
12
12
  borderWidth: "1px",
13
13
  padding: "20px",
14
14
  width: "100%"
15
- };
16
- exports.defaultReconnectChatPaneWrapperStyles = defaultReconnectChatPaneWrapperStyles;
15
+ };
@@ -4,10 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.presetThreeReconnectChatPaneControlProps = void 0;
7
-
8
7
  var _Constants = require("../../../../../common/Constants");
9
-
10
- const presetThreeReconnectChatPaneControlProps = {
8
+ const presetThreeReconnectChatPaneControlProps = exports.presetThreeReconnectChatPaneControlProps = {
11
9
  id: "lcw-components-reconnect-chat-pane",
12
10
  dir: "ltr",
13
11
  hideReconnectChatPane: false,
@@ -31,5 +29,4 @@ const presetThreeReconnectChatPaneControlProps = {
31
29
  onStartNewChat: function () {
32
30
  console.log("on start new conversation");
33
31
  }
34
- };
35
- exports.presetThreeReconnectChatPaneControlProps = presetThreeReconnectChatPaneControlProps;
32
+ };
@@ -4,13 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.presetThreeReconnectChatPaneProps = void 0;
7
-
8
7
  var _presetThreeReconnectChatPaneStyles = require("../presetThreeStyles/presetThreeReconnectChatPaneStyles");
9
-
10
8
  var _presetThreeReconnectChatPaneControlProps = require("./presetThreeReconnectChatPaneControlProps");
11
-
12
- const presetThreeReconnectChatPaneProps = {
9
+ const presetThreeReconnectChatPaneProps = exports.presetThreeReconnectChatPaneProps = {
13
10
  controlProps: _presetThreeReconnectChatPaneControlProps.presetThreeReconnectChatPaneControlProps,
14
11
  styleProps: _presetThreeReconnectChatPaneStyles.presetThreeReconnectChatPaneStyles
15
- };
16
- exports.presetThreeReconnectChatPaneProps = presetThreeReconnectChatPaneProps;
12
+ };
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.presetThreeReconnectChatPaneButtonGroupStyles = void 0;
7
- const presetThreeReconnectChatPaneButtonGroupStyles = {
7
+ const presetThreeReconnectChatPaneButtonGroupStyles = exports.presetThreeReconnectChatPaneButtonGroupStyles = {
8
8
  alignItems: "center"
9
- };
10
- exports.presetThreeReconnectChatPaneButtonGroupStyles = presetThreeReconnectChatPaneButtonGroupStyles;
9
+ };
@@ -4,9 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.presetThreeReconnectChatPaneContinueChatButtonStyles = void 0;
7
- const presetThreeReconnectChatPaneContinueChatButtonStyles = {
7
+ const presetThreeReconnectChatPaneContinueChatButtonStyles = exports.presetThreeReconnectChatPaneContinueChatButtonStyles = {
8
8
  fontSize: "20px",
9
9
  height: "200px",
10
10
  width: "200px"
11
- };
12
- exports.presetThreeReconnectChatPaneContinueChatButtonStyles = presetThreeReconnectChatPaneContinueChatButtonStyles;
11
+ };
@@ -4,10 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.presetThreeReconnectChatPaneGeneralStyles = void 0;
7
- const presetThreeReconnectChatPaneGeneralStyles = {
7
+ const presetThreeReconnectChatPaneGeneralStyles = exports.presetThreeReconnectChatPaneGeneralStyles = {
8
8
  backgroundColor: "red",
9
9
  borderColor: "black",
10
10
  borderRadius: "20%",
11
11
  width: "600px"
12
- };
13
- exports.presetThreeReconnectChatPaneGeneralStyles = presetThreeReconnectChatPaneGeneralStyles;
12
+ };
@@ -4,22 +4,15 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.presetThreeReconnectChatPaneStyles = void 0;
7
-
8
7
  var _presetThreeReconnectChatPaneButtonGroupStyles = require("./presetThreeReconnectChatPaneButtonGroupStyles");
9
-
10
8
  var _presetThreeReconnectChatPaneContinueChatButtonStyles = require("./presetThreeReconnectChatPaneContinueChatButtonStyles");
11
-
12
9
  var _presetThreeReconnectChatPaneGeneralStyles = require("./presetThreeReconnectChatPaneGeneralStyles");
13
-
14
10
  var _presetThreeReconnectChatPaneTitleStyles = require("./presetThreeReconnectChatPaneTitleStyles");
15
-
16
11
  var _presetThreeReconnectChatPaneWrapperStyles = require("./presetThreeReconnectChatPaneWrapperStyles");
17
-
18
- const presetThreeReconnectChatPaneStyles = {
12
+ const presetThreeReconnectChatPaneStyles = exports.presetThreeReconnectChatPaneStyles = {
19
13
  generalStyleProps: _presetThreeReconnectChatPaneGeneralStyles.presetThreeReconnectChatPaneGeneralStyles,
20
14
  wrapperStyleProps: _presetThreeReconnectChatPaneWrapperStyles.presetThreeReconnectChatPaneWrapperStyles,
21
15
  titleStyleProps: _presetThreeReconnectChatPaneTitleStyles.presetThreeReconnectChatPaneTitleStyles,
22
16
  buttonGroupStyleProps: _presetThreeReconnectChatPaneButtonGroupStyles.presetThreeReconnectChatPaneButtonGroupStyles,
23
17
  continueChatButtonStyleProps: _presetThreeReconnectChatPaneContinueChatButtonStyles.presetThreeReconnectChatPaneContinueChatButtonStyles
24
- };
25
- exports.presetThreeReconnectChatPaneStyles = presetThreeReconnectChatPaneStyles;
18
+ };
@@ -4,9 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.presetThreeReconnectChatPaneTitleStyles = void 0;
7
- const presetThreeReconnectChatPaneTitleStyles = {
7
+ const presetThreeReconnectChatPaneTitleStyles = exports.presetThreeReconnectChatPaneTitleStyles = {
8
8
  color: "white",
9
9
  fontSize: "20px",
10
10
  textAlign: "center"
11
- };
12
- exports.presetThreeReconnectChatPaneTitleStyles = presetThreeReconnectChatPaneTitleStyles;
11
+ };
@@ -4,8 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.presetThreeReconnectChatPaneWrapperStyles = void 0;
7
- const presetThreeReconnectChatPaneWrapperStyles = {
7
+ const presetThreeReconnectChatPaneWrapperStyles = exports.presetThreeReconnectChatPaneWrapperStyles = {
8
8
  backgroundColor: "green",
9
9
  borderRadius: "20%"
10
- };
11
- exports.presetThreeReconnectChatPaneWrapperStyles = presetThreeReconnectChatPaneWrapperStyles;
10
+ };
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 }; }
@@ -0,0 +1 @@
1
+ {"type":"commonjs"}
@@ -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;