@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
@@ -17,55 +17,48 @@ import { defaultReconnectChatPaneTitleStyles } from "./common/default/defaultSty
17
17
  import { defaultReconnectChatPaneWrapperStyles } from "./common/default/defaultStyles/defaultReconnectChatPaneWrapperStyles";
18
18
  import { defaultReconnectChatPaneContinueChatFocusedStyles } from "./common/default/defaultStyles/defaultReconnectChatPaneContinueChatButtonFocusedStyles";
19
19
  import { defaultReconnectChatPaneStartChatFocusedStyles } from "./common/default/defaultStyles/defaultReconnectChatPaneStartChatButtonFocusedStyles";
20
-
21
20
  function ReconnectChatPane(props) {
22
- var _props$controlProps, _props$styleProps, _props$styleProps2, _props$styleProps3, _props$styleProps4, _props$styleProps5, _props$styleProps6, _props$styleProps7, _props$styleProps8, _props$styleProps9, _props$styleProps10, _props$styleProps11, _props$styleProps12, _props$styleProps13, _props$styleProps14, _props$controlProps8, _props$styleProps15, _props$styleProps15$c, _props$controlProps9, _props$controlProps10, _props$styleProps16, _props$styleProps16$c, _props$controlProps11, _props$componentOverr, _props$styleProps17, _props$styleProps17$c, _props$controlProps12, _props$controlProps13, _props$componentOverr2, _props$styleProps18, _props$styleProps18$c, _props$controlProps14, _props$controlProps15, _props$componentOverr3, _props$styleProps19, _props$styleProps19$c, _props$controlProps16, _props$controlProps17, _props$styleProps20, _props$styleProps20$c, _props$controlProps18, _props$componentOverr4, _props$styleProps21, _props$styleProps21$c, _props$controlProps19, _props$controlProps20, _props$controlProps21, _props$componentOverr5, _props$styleProps22, _props$styleProps22$c, _props$controlProps22, _props$controlProps23;
23
-
21
+ var _props$controlProps, _props$styleProps, _props$styleProps2, _props$styleProps3, _props$styleProps4, _props$styleProps5, _props$styleProps6, _props$styleProps7, _props$styleProps8, _props$styleProps9, _props$styleProps0, _props$styleProps1, _props$styleProps10, _props$styleProps11, _props$styleProps12, _props$controlProps8, _props$styleProps13, _props$controlProps9, _props$controlProps0, _props$styleProps14, _props$controlProps1, _props$componentOverr, _props$styleProps15, _props$controlProps10, _props$controlProps11, _props$componentOverr2, _props$styleProps16, _props$controlProps12, _props$controlProps13, _props$componentOverr3, _props$styleProps17, _props$controlProps14, _props$controlProps15, _props$styleProps18, _props$controlProps16, _props$componentOverr4, _props$styleProps19, _props$controlProps17, _props$controlProps18, _props$controlProps19, _props$componentOverr5, _props$styleProps20, _props$controlProps20, _props$controlProps21;
24
22
  const elementId = ((_props$controlProps = props.controlProps) === null || _props$controlProps === void 0 ? void 0 : _props$controlProps.id) ?? defaultReconnectChatPaneControlProps.id;
25
23
  const handleContinueChatClick = useCallback(() => {
26
24
  var _props$controlProps2;
27
-
28
25
  if ((_props$controlProps2 = props.controlProps) !== null && _props$controlProps2 !== void 0 && _props$controlProps2.onContinueChat) {
29
26
  var _props$controlProps3;
30
-
31
27
  const customEvent = {
32
28
  elementType: ElementType.ReconnectChatContinueChatButton,
33
29
  elementId: elementId + "-continueconversationbutton",
34
30
  eventName: EventNames.OnClick
35
31
  };
36
32
  BroadcastService.postMessage(customEvent);
37
- (_props$controlProps3 = props.controlProps) === null || _props$controlProps3 === void 0 ? void 0 : _props$controlProps3.onContinueChat();
33
+ (_props$controlProps3 = props.controlProps) === null || _props$controlProps3 === void 0 || _props$controlProps3.onContinueChat();
38
34
  }
39
35
  }, []);
40
36
  const handleStartNewChatClick = useCallback(() => {
41
37
  var _props$controlProps4;
42
-
43
38
  if ((_props$controlProps4 = props.controlProps) !== null && _props$controlProps4 !== void 0 && _props$controlProps4.onStartNewChat) {
44
39
  var _props$controlProps5;
45
-
46
40
  const customEvent = {
47
41
  elementType: ElementType.ReconnectChatStartNewChatButton,
48
42
  elementId: elementId + "-startnewconversationbutton",
49
43
  eventName: EventNames.OnClick
50
44
  };
51
45
  BroadcastService.postMessage(customEvent);
52
- (_props$controlProps5 = props.controlProps) === null || _props$controlProps5 === void 0 ? void 0 : _props$controlProps5.onStartNewChat();
46
+ (_props$controlProps5 = props.controlProps) === null || _props$controlProps5 === void 0 || _props$controlProps5.onStartNewChat();
53
47
  }
54
- }, []); // eslint-disable-next-line @typescript-eslint/no-explicit-any
48
+ }, []);
55
49
 
50
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
56
51
  const handleEscKeyDown = useCallback(e => {
57
52
  var _props$controlProps6;
58
-
59
53
  if (e.code === KeyCodes.ESCAPE && (_props$controlProps6 = props.controlProps) !== null && _props$controlProps6 !== void 0 && _props$controlProps6.onMinimize) {
60
54
  var _props$controlProps7;
61
-
62
55
  const customEvent = {
63
56
  elementType: ElementType.ReconnectChatPane,
64
57
  elementId: elementId,
65
58
  eventName: EventNames.OnEscapeKeyDown
66
59
  };
67
60
  BroadcastService.postMessage(customEvent);
68
- (_props$controlProps7 = props.controlProps) === null || _props$controlProps7 === void 0 ? void 0 : _props$controlProps7.onMinimize();
61
+ (_props$controlProps7 = props.controlProps) === null || _props$controlProps7 === void 0 || _props$controlProps7.onMinimize();
69
62
  }
70
63
  }, []);
71
64
  const containerStyles = {
@@ -90,67 +83,66 @@ function ReconnectChatPane(props) {
90
83
  root: Object.assign({}, defaultReconnectChatPaneContinueChatButtonStyles, (_props$styleProps7 = props.styleProps) === null || _props$styleProps7 === void 0 ? void 0 : _props$styleProps7.continueChatButtonStyleProps),
91
84
  rootHovered: Object.assign({}, defaultReconnectChatPaneContinueChatButtonHoveredStyles, (_props$styleProps8 = props.styleProps) === null || _props$styleProps8 === void 0 ? void 0 : _props$styleProps8.continueChatButtonHoveredStyleProps),
92
85
  rootPressed: Object.assign({}, defaultReconnectChatPaneContinueChatButtonHoveredStyles, (_props$styleProps9 = props.styleProps) === null || _props$styleProps9 === void 0 ? void 0 : _props$styleProps9.continueChatButtonHoveredStyleProps),
93
- rootFocused: Object.assign({}, defaultReconnectChatPaneContinueChatFocusedStyles, (_props$styleProps10 = props.styleProps) === null || _props$styleProps10 === void 0 ? void 0 : _props$styleProps10.continueChatButtonFocusedStyleProps)
86
+ rootFocused: Object.assign({}, defaultReconnectChatPaneContinueChatFocusedStyles, (_props$styleProps0 = props.styleProps) === null || _props$styleProps0 === void 0 ? void 0 : _props$styleProps0.continueChatButtonFocusedStyleProps)
94
87
  };
95
88
  const startNewChatButtonStyles = {
96
- root: Object.assign({}, defaultReconnectChatPaneStartNewChatButtonStyles, (_props$styleProps11 = props.styleProps) === null || _props$styleProps11 === void 0 ? void 0 : _props$styleProps11.startNewChatButtonStyleProps),
97
- rootHovered: Object.assign({}, defaultReconnectChatPaneStartNewChatButtonHoveredStyles, (_props$styleProps12 = props.styleProps) === null || _props$styleProps12 === void 0 ? void 0 : _props$styleProps12.startNewChatButtonHoveredStyleProps),
98
- rootPressed: Object.assign({}, defaultReconnectChatPaneStartNewChatButtonHoveredStyles, (_props$styleProps13 = props.styleProps) === null || _props$styleProps13 === void 0 ? void 0 : _props$styleProps13.startNewChatButtonHoveredStyleProps),
99
- rootFocused: Object.assign({}, defaultReconnectChatPaneStartChatFocusedStyles, (_props$styleProps14 = props.styleProps) === null || _props$styleProps14 === void 0 ? void 0 : _props$styleProps14.startNewChatButtonFocusedStyleProps)
89
+ root: Object.assign({}, defaultReconnectChatPaneStartNewChatButtonStyles, (_props$styleProps1 = props.styleProps) === null || _props$styleProps1 === void 0 ? void 0 : _props$styleProps1.startNewChatButtonStyleProps),
90
+ rootHovered: Object.assign({}, defaultReconnectChatPaneStartNewChatButtonHoveredStyles, (_props$styleProps10 = props.styleProps) === null || _props$styleProps10 === void 0 ? void 0 : _props$styleProps10.startNewChatButtonHoveredStyleProps),
91
+ rootPressed: Object.assign({}, defaultReconnectChatPaneStartNewChatButtonHoveredStyles, (_props$styleProps11 = props.styleProps) === null || _props$styleProps11 === void 0 ? void 0 : _props$styleProps11.startNewChatButtonHoveredStyleProps),
92
+ rootFocused: Object.assign({}, defaultReconnectChatPaneStartChatFocusedStyles, (_props$styleProps12 = props.styleProps) === null || _props$styleProps12 === void 0 ? void 0 : _props$styleProps12.startNewChatButtonFocusedStyleProps)
100
93
  };
101
94
  return /*#__PURE__*/React.createElement(React.Fragment, null, !((_props$controlProps8 = props.controlProps) !== null && _props$controlProps8 !== void 0 && _props$controlProps8.hideReconnectChatPane) && /*#__PURE__*/React.createElement(Stack, {
102
- className: (_props$styleProps15 = props.styleProps) === null || _props$styleProps15 === void 0 ? void 0 : (_props$styleProps15$c = _props$styleProps15.classNames) === null || _props$styleProps15$c === void 0 ? void 0 : _props$styleProps15$c.containerClassName,
95
+ className: (_props$styleProps13 = props.styleProps) === null || _props$styleProps13 === void 0 || (_props$styleProps13 = _props$styleProps13.classNames) === null || _props$styleProps13 === void 0 ? void 0 : _props$styleProps13.containerClassName,
103
96
  id: elementId,
104
97
  tabIndex: -1,
105
98
  onKeyDown: handleEscKeyDown,
106
99
  dir: ((_props$controlProps9 = props.controlProps) === null || _props$controlProps9 === void 0 ? void 0 : _props$controlProps9.dir) || defaultReconnectChatPaneControlProps.dir,
107
- "aria-label": ((_props$controlProps10 = props.controlProps) === null || _props$controlProps10 === void 0 ? void 0 : _props$controlProps10.reconnectChatPaneAriaLabel) || defaultReconnectChatPaneControlProps.reconnectChatPaneAriaLabel,
100
+ "aria-label": ((_props$controlProps0 = props.controlProps) === null || _props$controlProps0 === void 0 ? void 0 : _props$controlProps0.reconnectChatPaneAriaLabel) || defaultReconnectChatPaneControlProps.reconnectChatPaneAriaLabel,
108
101
  styles: containerStyles
109
102
  }, /*#__PURE__*/React.createElement(Stack, {
110
- className: (_props$styleProps16 = props.styleProps) === null || _props$styleProps16 === void 0 ? void 0 : (_props$styleProps16$c = _props$styleProps16.classNames) === null || _props$styleProps16$c === void 0 ? void 0 : _props$styleProps16$c.wrapperClassName,
103
+ className: (_props$styleProps14 = props.styleProps) === null || _props$styleProps14 === void 0 || (_props$styleProps14 = _props$styleProps14.classNames) === null || _props$styleProps14 === void 0 ? void 0 : _props$styleProps14.wrapperClassName,
111
104
  styles: wrapperStyles,
112
105
  tabIndex: -1,
113
106
  id: elementId + "-wrapper"
114
- }, !((_props$controlProps11 = props.controlProps) !== null && _props$controlProps11 !== void 0 && _props$controlProps11.hideTitle) && (decodeComponentString((_props$componentOverr = props.componentOverrides) === null || _props$componentOverr === void 0 ? void 0 : _props$componentOverr.title) || /*#__PURE__*/React.createElement(Label, {
115
- className: (_props$styleProps17 = props.styleProps) === null || _props$styleProps17 === void 0 ? void 0 : (_props$styleProps17$c = _props$styleProps17.classNames) === null || _props$styleProps17$c === void 0 ? void 0 : _props$styleProps17$c.titleClassName,
107
+ }, !((_props$controlProps1 = props.controlProps) !== null && _props$controlProps1 !== void 0 && _props$controlProps1.hideTitle) && (decodeComponentString((_props$componentOverr = props.componentOverrides) === null || _props$componentOverr === void 0 ? void 0 : _props$componentOverr.title) || /*#__PURE__*/React.createElement(Label, {
108
+ className: (_props$styleProps15 = props.styleProps) === null || _props$styleProps15 === void 0 || (_props$styleProps15 = _props$styleProps15.classNames) === null || _props$styleProps15 === void 0 ? void 0 : _props$styleProps15.titleClassName,
116
109
  styles: titleStyles,
117
110
  tabIndex: -1,
118
111
  id: elementId + "-title"
119
- }, ((_props$controlProps12 = props.controlProps) === null || _props$controlProps12 === void 0 ? void 0 : _props$controlProps12.titleText) || defaultReconnectChatPaneControlProps.titleText)), !((_props$controlProps13 = props.controlProps) !== null && _props$controlProps13 !== void 0 && _props$controlProps13.hideSubtitle) && (decodeComponentString((_props$componentOverr2 = props.componentOverrides) === null || _props$componentOverr2 === void 0 ? void 0 : _props$componentOverr2.subtitle) || /*#__PURE__*/React.createElement(Label, {
120
- className: (_props$styleProps18 = props.styleProps) === null || _props$styleProps18 === void 0 ? void 0 : (_props$styleProps18$c = _props$styleProps18.classNames) === null || _props$styleProps18$c === void 0 ? void 0 : _props$styleProps18$c.subtitleClassName,
112
+ }, ((_props$controlProps10 = props.controlProps) === null || _props$controlProps10 === void 0 ? void 0 : _props$controlProps10.titleText) || defaultReconnectChatPaneControlProps.titleText)), !((_props$controlProps11 = props.controlProps) !== null && _props$controlProps11 !== void 0 && _props$controlProps11.hideSubtitle) && (decodeComponentString((_props$componentOverr2 = props.componentOverrides) === null || _props$componentOverr2 === void 0 ? void 0 : _props$componentOverr2.subtitle) || /*#__PURE__*/React.createElement(Label, {
113
+ className: (_props$styleProps16 = props.styleProps) === null || _props$styleProps16 === void 0 || (_props$styleProps16 = _props$styleProps16.classNames) === null || _props$styleProps16 === void 0 ? void 0 : _props$styleProps16.subtitleClassName,
121
114
  styles: subtitleStyles,
122
115
  tabIndex: -1,
123
116
  id: elementId + "-subtitle"
124
- }, ((_props$controlProps14 = props.controlProps) === null || _props$controlProps14 === void 0 ? void 0 : _props$controlProps14.subtitleText) || defaultReconnectChatPaneControlProps.subtitleText)), !((_props$controlProps15 = props.controlProps) !== null && _props$controlProps15 !== void 0 && _props$controlProps15.hideIcon) && (decodeComponentString((_props$componentOverr3 = props.componentOverrides) === null || _props$componentOverr3 === void 0 ? void 0 : _props$componentOverr3.icon) || /*#__PURE__*/React.createElement(Icon, {
125
- className: (_props$styleProps19 = props.styleProps) === null || _props$styleProps19 === void 0 ? void 0 : (_props$styleProps19$c = _props$styleProps19.classNames) === null || _props$styleProps19$c === void 0 ? void 0 : _props$styleProps19$c.iconClassName,
117
+ }, ((_props$controlProps12 = props.controlProps) === null || _props$controlProps12 === void 0 ? void 0 : _props$controlProps12.subtitleText) || defaultReconnectChatPaneControlProps.subtitleText)), !((_props$controlProps13 = props.controlProps) !== null && _props$controlProps13 !== void 0 && _props$controlProps13.hideIcon) && (decodeComponentString((_props$componentOverr3 = props.componentOverrides) === null || _props$componentOverr3 === void 0 ? void 0 : _props$componentOverr3.icon) || /*#__PURE__*/React.createElement(Icon, {
118
+ className: (_props$styleProps17 = props.styleProps) === null || _props$styleProps17 === void 0 || (_props$styleProps17 = _props$styleProps17.classNames) === null || _props$styleProps17 === void 0 ? void 0 : _props$styleProps17.iconClassName,
126
119
  styles: iconStyles,
127
120
  tabIndex: -1,
128
121
  role: "img",
129
122
  id: elementId + "-icon",
130
- "aria-label": ((_props$controlProps16 = props.controlProps) === null || _props$controlProps16 === void 0 ? void 0 : _props$controlProps16.iconAriaLabel) || defaultReconnectChatPaneControlProps.iconAriaLabel
123
+ "aria-label": ((_props$controlProps14 = props.controlProps) === null || _props$controlProps14 === void 0 ? void 0 : _props$controlProps14.iconAriaLabel) || defaultReconnectChatPaneControlProps.iconAriaLabel
131
124
  })), /*#__PURE__*/React.createElement(Stack, {
132
- horizontal: ((_props$controlProps17 = props.controlProps) === null || _props$controlProps17 === void 0 ? void 0 : _props$controlProps17.isButtonGroupHorizontal) || defaultReconnectChatPaneControlProps.isButtonGroupHorizontal,
133
- className: (_props$styleProps20 = props.styleProps) === null || _props$styleProps20 === void 0 ? void 0 : (_props$styleProps20$c = _props$styleProps20.classNames) === null || _props$styleProps20$c === void 0 ? void 0 : _props$styleProps20$c.buttonGroupClassName,
125
+ horizontal: ((_props$controlProps15 = props.controlProps) === null || _props$controlProps15 === void 0 ? void 0 : _props$controlProps15.isButtonGroupHorizontal) || defaultReconnectChatPaneControlProps.isButtonGroupHorizontal,
126
+ className: (_props$styleProps18 = props.styleProps) === null || _props$styleProps18 === void 0 || (_props$styleProps18 = _props$styleProps18.classNames) === null || _props$styleProps18 === void 0 ? void 0 : _props$styleProps18.buttonGroupClassName,
134
127
  styles: buttonGroupStyles,
135
128
  tabIndex: -1,
136
129
  id: elementId + "-buttongroup"
137
- }, !((_props$controlProps18 = props.controlProps) !== null && _props$controlProps18 !== void 0 && _props$controlProps18.hideContinueChatButton) && (decodeComponentString((_props$componentOverr4 = props.componentOverrides) === null || _props$componentOverr4 === void 0 ? void 0 : _props$componentOverr4.continueChatButton) || /*#__PURE__*/React.createElement(DefaultButton, {
138
- className: (_props$styleProps21 = props.styleProps) === null || _props$styleProps21 === void 0 ? void 0 : (_props$styleProps21$c = _props$styleProps21.classNames) === null || _props$styleProps21$c === void 0 ? void 0 : _props$styleProps21$c.continueChatButtonClassName,
130
+ }, !((_props$controlProps16 = props.controlProps) !== null && _props$controlProps16 !== void 0 && _props$controlProps16.hideContinueChatButton) && (decodeComponentString((_props$componentOverr4 = props.componentOverrides) === null || _props$componentOverr4 === void 0 ? void 0 : _props$componentOverr4.continueChatButton) || /*#__PURE__*/React.createElement(DefaultButton, {
131
+ className: (_props$styleProps19 = props.styleProps) === null || _props$styleProps19 === void 0 || (_props$styleProps19 = _props$styleProps19.classNames) === null || _props$styleProps19 === void 0 ? void 0 : _props$styleProps19.continueChatButtonClassName,
139
132
  styles: continueChatButtonStyles,
140
133
  tabIndex: 0,
141
- text: ((_props$controlProps19 = props.controlProps) === null || _props$controlProps19 === void 0 ? void 0 : _props$controlProps19.continueChatButtonText) || defaultReconnectChatPaneControlProps.continueChatButtonText,
134
+ text: ((_props$controlProps17 = props.controlProps) === null || _props$controlProps17 === void 0 ? void 0 : _props$controlProps17.continueChatButtonText) || defaultReconnectChatPaneControlProps.continueChatButtonText,
142
135
  onClick: handleContinueChatClick,
143
136
  id: elementId + "-continueconversationbutton",
144
- "aria-label": ((_props$controlProps20 = props.controlProps) === null || _props$controlProps20 === void 0 ? void 0 : _props$controlProps20.continueChatButtonAriaLabel) || defaultReconnectChatPaneControlProps.continueChatButtonAriaLabel
145
- })), !((_props$controlProps21 = props.controlProps) !== null && _props$controlProps21 !== void 0 && _props$controlProps21.hideStartNewChatButton) && (decodeComponentString((_props$componentOverr5 = props.componentOverrides) === null || _props$componentOverr5 === void 0 ? void 0 : _props$componentOverr5.startNewChatButton) || /*#__PURE__*/React.createElement(DefaultButton, {
146
- className: (_props$styleProps22 = props.styleProps) === null || _props$styleProps22 === void 0 ? void 0 : (_props$styleProps22$c = _props$styleProps22.classNames) === null || _props$styleProps22$c === void 0 ? void 0 : _props$styleProps22$c.startNewChatButtonClassName,
137
+ "aria-label": ((_props$controlProps18 = props.controlProps) === null || _props$controlProps18 === void 0 ? void 0 : _props$controlProps18.continueChatButtonAriaLabel) || defaultReconnectChatPaneControlProps.continueChatButtonAriaLabel
138
+ })), !((_props$controlProps19 = props.controlProps) !== null && _props$controlProps19 !== void 0 && _props$controlProps19.hideStartNewChatButton) && (decodeComponentString((_props$componentOverr5 = props.componentOverrides) === null || _props$componentOverr5 === void 0 ? void 0 : _props$componentOverr5.startNewChatButton) || /*#__PURE__*/React.createElement(DefaultButton, {
139
+ className: (_props$styleProps20 = props.styleProps) === null || _props$styleProps20 === void 0 || (_props$styleProps20 = _props$styleProps20.classNames) === null || _props$styleProps20 === void 0 ? void 0 : _props$styleProps20.startNewChatButtonClassName,
147
140
  styles: startNewChatButtonStyles,
148
141
  tabIndex: 0,
149
- text: ((_props$controlProps22 = props.controlProps) === null || _props$controlProps22 === void 0 ? void 0 : _props$controlProps22.startNewChatButtonText) || defaultReconnectChatPaneControlProps.startNewChatButtonText,
142
+ text: ((_props$controlProps20 = props.controlProps) === null || _props$controlProps20 === void 0 ? void 0 : _props$controlProps20.startNewChatButtonText) || defaultReconnectChatPaneControlProps.startNewChatButtonText,
150
143
  onClick: handleStartNewChatClick,
151
144
  id: elementId + "-startnewconversationbutton",
152
- "aria-label": ((_props$controlProps23 = props.controlProps) === null || _props$controlProps23 === void 0 ? void 0 : _props$controlProps23.startNewChatButtonAriaLabel) || defaultReconnectChatPaneControlProps.startNewChatButtonAriaLabel
145
+ "aria-label": ((_props$controlProps21 = props.controlProps) === null || _props$controlProps21 === void 0 ? void 0 : _props$controlProps21.startNewChatButtonAriaLabel) || defaultReconnectChatPaneControlProps.startNewChatButtonAriaLabel
153
146
  }))))));
154
147
  }
155
-
156
148
  export default ReconnectChatPane;
@@ -3,19 +3,20 @@ import { filter } from "rxjs/operators";
3
3
  import { BroadcastChannel } from "broadcast-channel";
4
4
  import { uuidv4 } from "../common/utils";
5
5
  import EventQueue from "./EventQueue";
6
- const newMessage = new Subject(); // eslint-disable-next-line @typescript-eslint/no-explicit-any
6
+ const newMessage = new Subject();
7
7
 
8
- const broadcastServicePubList = {}; // eslint-disable-next-line @typescript-eslint/no-explicit-any
9
-
10
- const broadcastServiceSubList = {}; // eslint-disable-next-line @typescript-eslint/no-explicit-any
11
-
12
- let pubChannel; // eslint-disable-next-line @typescript-eslint/no-explicit-any
8
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
9
+ const broadcastServicePubList = {};
10
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
11
+ const broadcastServiceSubList = {};
13
12
 
13
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
14
+ let pubChannel;
15
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
14
16
  let subChannel;
15
17
  let eventQueue;
16
18
  export const BroadcastServiceInitialize = channelName => {
17
19
  eventQueue = new EventQueue(newMessage);
18
-
19
20
  if (broadcastServicePubList[channelName]) {
20
21
  pubChannel = broadcastServicePubList[channelName];
21
22
  } else {
@@ -23,16 +24,15 @@ export const BroadcastServiceInitialize = channelName => {
23
24
  broadcastServicePubList[channelName] = newPubChannel;
24
25
  pubChannel = newPubChannel;
25
26
  }
26
-
27
27
  if (broadcastServiceSubList[channelName]) {
28
28
  subChannel = broadcastServiceSubList[channelName];
29
29
  } else {
30
30
  const newSubChannel = new BroadcastChannel(channelName);
31
31
  broadcastServiceSubList[channelName] = newSubChannel;
32
32
  subChannel = newSubChannel;
33
- } // eslint-disable-next-line @typescript-eslint/no-explicit-any
34
-
33
+ }
35
34
 
35
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
36
36
  subChannel.onmessage = message => {
37
37
  newMessage.next(message);
38
38
  eventQueue.popEvent(message);
@@ -45,7 +45,6 @@ export const BroadcastService = {
45
45
  let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
46
46
  retry: true
47
47
  };
48
-
49
48
  /**
50
49
  * Omit copying methods to prevent 'DataCloneError' in older browsers when passing an object with functions
51
50
  * This exception occurs when an object can't be clone with the 'structured clone algorithm' (used by postMessage)
@@ -53,7 +52,8 @@ export const BroadcastService = {
53
52
  try {
54
53
  const messageCopy = JSON.parse(JSON.stringify(message));
55
54
  const eventId = uuidv4();
56
- const event = { ...messageCopy,
55
+ const event = {
56
+ ...messageCopy,
57
57
  eventId
58
58
  };
59
59
  eventQueue.pushEvent(event);
@@ -61,7 +61,6 @@ export const BroadcastService = {
61
61
  } catch (error) {
62
62
  console.error("Error in BroadcastService.postMessage:", error);
63
63
  }
64
-
65
64
  if (options !== null && options !== void 0 && options.retry) {
66
65
  const queueTimeout = (options === null || options === void 0 ? void 0 : options.queueTimeout) || 500;
67
66
  eventQueue.startQueue(queueTimeout);
@@ -1,37 +1,29 @@
1
- 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; }
2
-
1
+ 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; }
2
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
3
+ 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); }
3
4
  class EventQueue {
4
5
  constructor(newMessage) {
5
6
  _defineProperty(this, "queueing", false);
6
-
7
7
  _defineProperty(this, "channelEventQueue", void 0);
8
-
9
8
  _defineProperty(this, "queueingId", void 0);
10
-
11
9
  _defineProperty(this, "newMessage", void 0);
12
-
13
10
  this.channelEventQueue = new Map();
14
11
  this.newMessage = newMessage;
15
12
  }
16
-
17
13
  processEvents() {
18
14
  this.channelEventQueue.forEach((event, eventId) => {
19
15
  // Process entry based on insertion order
20
16
  this.newMessage.next(event); // Post event directly instead of using pubChannel
21
-
22
17
  this.channelEventQueue.delete(eventId); // Remove event from queue regardless of outcome
23
18
  });
24
19
  }
25
-
26
20
  queueEvents() {
27
21
  let timeout = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 500;
28
22
  this.stopIfEmpty();
29
-
30
23
  if (this.queueingId) {
31
24
  // Queueing in progress
32
25
  return;
33
26
  }
34
-
35
27
  if (this.queueing) {
36
28
  this.queueingId = setTimeout(() => {
37
29
  this.processEvents();
@@ -39,45 +31,36 @@ class EventQueue {
39
31
  }, timeout);
40
32
  }
41
33
  }
42
-
43
34
  startQueue() {
44
35
  let timeout = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 500;
45
36
  this.queueing = true;
46
37
  this.queueEvents(timeout);
47
38
  }
48
-
49
39
  stopIfEmpty() {
50
40
  if (this.channelEventQueue.size === 0) {
51
41
  if (this.queueingId) {
52
42
  clearTimeout(this.queueingId);
53
43
  }
54
-
55
44
  this.queueing = false;
56
45
  this.queueingId = undefined;
57
46
  }
58
47
  }
59
-
60
48
  pushEvent(event) {
61
49
  if (event.eventId) {
62
50
  this.channelEventQueue.set(event.eventId, event);
63
51
  }
64
52
  }
65
-
66
53
  popEvent(event) {
67
54
  if (event.eventId) {
68
55
  this.channelEventQueue.delete(event.eventId);
69
56
  }
70
57
  }
71
-
72
58
  dispose() {
73
59
  if (this.queueingId) {
74
60
  clearTimeout(this.queueingId);
75
61
  this.queueingId = undefined;
76
62
  }
77
-
78
63
  this.channelEventQueue.clear();
79
64
  }
80
-
81
65
  }
82
-
83
66
  export default EventQueue;
@@ -150,6 +150,8 @@ export declare const AriaLabels: {
150
150
  readonly ReconnectChatPaneIcon: "Reconnect Chat Pane Icon";
151
151
  readonly ContinueConversation: "Continue conversation";
152
152
  readonly StartNewConversation: "Start new conversation";
153
+ readonly InputValidationPaneButtonGroup: "Actions";
154
+ readonly ConfirmationPaneButtonGroup: "Actions";
153
155
  };
154
156
  export declare const EventNames: {
155
157
  new (): {};
@@ -0,0 +1 @@
1
+ import "@testing-library/jest-dom/extend-expect";
@@ -0,0 +1 @@
1
+ import "@testing-library/jest-dom/extend-expect";
@@ -0,0 +1 @@
1
+ import "@testing-library/jest-dom/extend-expect";
@@ -6,6 +6,7 @@ export interface IConfirmationPaneControlProps {
6
6
  titleText?: string;
7
7
  hideSubtitle?: boolean;
8
8
  subtitleText?: string;
9
+ buttonGroupAriaLabel?: string;
9
10
  hideConfirmButton?: boolean;
10
11
  confirmButtonText?: string;
11
12
  confirmButtonAriaLabel?: string;
@@ -37,4 +37,16 @@ export interface IHeaderStyleProps {
37
37
  * header item button fucus style props
38
38
  */
39
39
  headerItemFocusStyleProps?: IStyle;
40
+ /**
41
+ * header left group container style props
42
+ */
43
+ headerLeftGroupStyleProps?: IStyle;
44
+ /**
45
+ * header left group inner container style props
46
+ */
47
+ headerLeftGroupInnerContainerStyleProps?: IStyle;
48
+ /**
49
+ * header title container (h1) style props
50
+ */
51
+ titleContainerStyleProps?: IStyle;
40
52
  }
@@ -15,6 +15,7 @@ export interface IInputValidationPaneControlProps {
15
15
  inputPlaceHolder?: string;
16
16
  invalidInputErrorMessageText?: string;
17
17
  isButtonGroupHorizontal?: boolean;
18
+ buttonGroupAriaLabel?: string;
18
19
  hideSendButton?: boolean;
19
20
  enableSendButton?: boolean;
20
21
  sendButtonText?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/omnichannel-chat-components",
3
- "version": "1.1.16",
3
+ "version": "1.1.17-main.05edfd3",
4
4
  "description": "Microsoft Omnichannel Chat Components",
5
5
  "main": "lib/cjs/index.js",
6
6
  "types": "lib/types/index.d.ts",
@@ -20,18 +20,19 @@
20
20
  "./package.json": "./package.json"
21
21
  },
22
22
  "devDependencies": {
23
- "@babel/core": "^7.15.8",
24
- "@babel/preset-env": "^7.15.8",
25
- "@babel/preset-react": "^7.14.5",
26
- "@babel/preset-typescript": "^7.15.0",
27
- "@storybook/addon-a11y": "^6.4.8",
28
- "@storybook/addon-actions": "^6.4.8",
29
- "@storybook/addon-essentials": "^6.4.8",
23
+ "@babel/cli": "^7.26.10",
24
+ "@babel/core": "^7.26.10",
25
+ "@babel/preset-env": "^7.26.10",
26
+ "@babel/preset-react": "^7.26.10",
27
+ "@babel/preset-typescript": "^7.26.10",
28
+ "@storybook/addon-a11y": "^6.5.16",
29
+ "@storybook/addon-actions": "^6.5.16",
30
+ "@storybook/addon-essentials": "^6.5.16",
30
31
  "@storybook/addon-knobs": "^6.4.0",
31
- "@storybook/addon-links": "^6.4.8",
32
+ "@storybook/addon-links": "^6.5.16",
32
33
  "@storybook/addon-storyshots": "^6.4.8",
33
- "@storybook/react": "^6.4.8",
34
- "@storybook/testing-react": "^1.2.1",
34
+ "@storybook/react": "^6.5.16",
35
+ "@storybook/testing-react": "^1.3.0",
35
36
  "@testing-library/dom": "^10.4.0",
36
37
  "@testing-library/jest-dom": "^5.15.0",
37
38
  "@testing-library/react": "^16.3.0",
@@ -40,12 +41,11 @@
40
41
  "@types/jest-image-snapshot": "^4.3.1",
41
42
  "@types/react": "^18.3.13",
42
43
  "@types/react-dom": "^18.3.6",
43
- "@types/styled-components": "^5.1.15",
44
44
  "@typescript-eslint/eslint-plugin": "^8.33.0",
45
45
  "@typescript-eslint/parser": "^8.33.0",
46
46
  "babel-jest": "^27.3.1",
47
47
  "babel-loader": "^8.2.2",
48
- "botframework-directlinejs": "^0.15.0",
48
+ "browserslist": "^4.24.0",
49
49
  "copyfiles": "^2.4.1",
50
50
  "cross-env": "^7.0.3",
51
51
  "eslint": "^9.27.0",
@@ -57,9 +57,14 @@
57
57
  "eslint-plugin-storybook": "^0.5.3",
58
58
  "jest": "^27.3.1",
59
59
  "jest-dom": "^4.0.0",
60
+ "jest-axe": "^10.0.0",
60
61
  "jest-image-snapshot": "^4.5.1",
62
+ "jest-transform-stub": "^2.0.0",
61
63
  "json": "^11.0.0",
62
64
  "playwright": "^1.16.3",
65
+ "@axe-core/playwright": "^4.10.2",
66
+ "@axe-core/react": "^4.10.2",
67
+ "accessibility-insights-scan": "^3.0.0",
63
68
  "postcss": "^8.3.9",
64
69
  "react": "^18.3.1",
65
70
  "react-dom": "^18.3.1",
@@ -70,18 +75,29 @@
70
75
  "dependencies": {
71
76
  "@fluentui/react": "^8.46.0",
72
77
  "adaptivecards": "^2.10.0",
73
- "botframework-webchat": "4.18.1-main.20250515.4c7400a",
74
78
  "broadcast-channel": "^4.5.0",
75
- "jest-transform-stub": "^2.0.0",
76
- "rxjs": "^5.0.3",
77
- "styled-components": "^5.3.1"
79
+ "rxjs": "^5.0.3"
78
80
  },
79
81
  "scripts": {
80
82
  "storybook": "start-storybook -p 6006",
81
83
  "build-storybook": "cross-env NODE_OPTIONS=--openssl-legacy-provider build-storybook",
82
84
  "build": "yarn eslint . && yarn build:esm && yarn build:cjs && tsc",
83
85
  "test:unit": "jest -c jest.config.unit.cjs --env=jsdom --runInBand --force-exit",
86
+ "test:a11y": "jest -c jest.config.a11y.cjs --runInBand --force-exit",
84
87
  "test:visual": "jest -c jest.config.visual.cjs",
88
+ "pretest:visual": "yarn playwright install",
89
+ "test:visual:mobile:ios": "cross-env STORYBOOK_BROWSERS=chromium STORYBOOK_SCREENSHOT_PROFILE=mobile-iphone yarn test:visual",
90
+ "test:visual:mobile:android": "cross-env STORYBOOK_BROWSERS=chromium STORYBOOK_SCREENSHOT_PROFILE=mobile-android yarn test:visual",
91
+ "test:visual:reflow": "cross-env STORYBOOK_BROWSERS=chromium STORYBOOK_SCREENSHOT_PROFILE=reflow-320 yarn test:visual",
92
+ "test:visual:zoom": "cross-env STORYBOOK_BROWSERS=chromium STORYBOOK_SCREENSHOT_PROFILE=zoom-200 yarn test:visual",
93
+ "test:visual:forced-colors": "cross-env STORYBOOK_BROWSERS=chromium STORYBOOK_SCREENSHOT_PROFILE=forced-colors yarn test:visual",
94
+ "test:visual:contrast-more": "cross-env STORYBOOK_BROWSERS=chromium STORYBOOK_SCREENSHOT_PROFILE=contrast-more yarn test:visual",
95
+ "scan:a11y:axe": "node ../tools/accessibility/axeScan.cjs",
96
+ "scan:a11y:axe:gated": "node ../tools/accessibility/axeScan.cjs --gate-rules image-alt,button-name",
97
+ "scan:a11y:axe:build": "yarn build-storybook && yarn scan:a11y:axe",
98
+ "scan:a11y:insights": "node ../tools/accessibility/insightsScan.cjs",
99
+ "scan:a11y:insights:build": "yarn build-storybook && yarn scan:a11y:insights",
100
+ "scan:a11y": "yarn build-storybook && yarn scan:a11y:axe && yarn scan:a11y:insights",
85
101
  "test:all": "yarn test:unit && yarn test:visual",
86
102
  "build:cjs": "babel ./src --config-file ./babel.config.json --out-dir lib/cjs --extensions .ts,.js,.tsx --ignore ./**/*.test.ts,./**/*.stories.ts,./**/*.stories.tsx,./**/*.test.tsx",
87
103
  "build:esm": "babel ./src --config-file ./babel.esm.config.json --out-dir lib/esm --extensions .ts,.js,.tsx --ignore ./**/*.test.ts,./**/*.stories.ts,./**/*.stories.tsx,./**/*.test.tsx",
@@ -96,6 +112,7 @@
96
112
  "**/markdown-it": "12.3.2",
97
113
  "**/minimist": "1.2.6",
98
114
  "**/sanitize-html": "2.12.1",
99
- "@storybook/react-docgen-typescript-plugin": "1.0.6--canary.9.cd77847.0"
115
+ "**/lodash": "4.17.23",
116
+ "**/brace-expansion": "2.0.2"
100
117
  }
101
118
  }