@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
@@ -13,24 +13,20 @@ import { defaultCitationPaneTitleStyles } from "./common/defaultStyles/defaultCi
13
13
  import { defaultCitationPaneTopCloseButtonFocusedStyles } from "./common/defaultStyles/defaultCitationPaneTopCloseButtonFocusedStyles";
14
14
  import { defaultCitationPaneTopCloseButtonHoveredStyles } from "./common/defaultStyles/defaultCitationPaneTopCloseButtonHoveredStyles";
15
15
  import { defaultCitationPaneTopCloseButtonStyles } from "./common/defaultStyles/defaultCitationPaneTopCloseButtonStyles";
16
-
17
16
  function CitationPane(props) {
18
- var _props$controlProps, _props$styleProps, _props$styleProps2, _props$styleProps3, _props$styleProps4, _props$styleProps5, _props$styleProps6, _props$styleProps7, _props$controlProps4, _props$styleProps8, _props$styleProps9, _props$styleProps10, _props$styleProps11, _props$controlProps5, _props$styleProps12, _props$styleProps12$c, _props$controlProps6, _props$componentOverr, _props$controlProps7, _props$styleProps13, _props$styleProps13$c, _props$controlProps8, _props$componentOverr2, _props$styleProps14, _props$styleProps14$c, _props$controlProps9, _props$styleProps15, _props$styleProps15$c, _props$controlProps10, _props$controlProps11, _props$componentOverr3, _props$controlProps12, _props$controlProps13, _props$styleProps16, _props$styleProps16$c;
19
-
17
+ var _props$controlProps, _props$styleProps, _props$styleProps2, _props$styleProps3, _props$styleProps4, _props$styleProps5, _props$styleProps6, _props$styleProps7, _props$controlProps4, _props$styleProps8, _props$styleProps9, _props$styleProps0, _props$styleProps1, _props$controlProps5, _props$styleProps10, _props$controlProps6, _props$componentOverr, _props$controlProps7, _props$styleProps11, _props$controlProps8, _props$componentOverr2, _props$styleProps12, _props$controlProps9, _props$styleProps13, _props$controlProps0, _props$controlProps1, _props$componentOverr3, _props$controlProps10, _props$controlProps11, _props$styleProps14;
20
18
  const elementId = ((_props$controlProps = props.controlProps) === null || _props$controlProps === void 0 ? void 0 : _props$controlProps.id) ?? defaultCitationPaneControlProps.id;
21
19
  const handleClose = useCallback(() => {
22
20
  var _props$controlProps2;
23
-
24
21
  if ((_props$controlProps2 = props.controlProps) !== null && _props$controlProps2 !== void 0 && _props$controlProps2.onClose) {
25
22
  var _props$controlProps3;
26
-
27
23
  const customEvent = {
28
24
  elementType: ElementType.CitationPaneCloseButton,
29
25
  elementId: elementId + "-close",
30
26
  eventName: EventNames.OnClick
31
27
  };
32
28
  BroadcastService.postMessage(customEvent);
33
- (_props$controlProps3 = props.controlProps) === null || _props$controlProps3 === void 0 ? void 0 : _props$controlProps3.onClose();
29
+ (_props$controlProps3 = props.controlProps) === null || _props$controlProps3 === void 0 || _props$controlProps3.onClose();
34
30
  }
35
31
  }, [props.controlProps, elementId]);
36
32
  const handleTopClose = useCallback(() => {
@@ -43,8 +39,9 @@ function CitationPane(props) {
43
39
  BroadcastService.postMessage(customEvent);
44
40
  handleClose();
45
41
  }
46
- }, [props.controlProps, elementId]); // eslint-disable-next-line @typescript-eslint/no-explicit-any
42
+ }, [props.controlProps, elementId]);
47
43
 
44
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
48
45
  const handleEscKeyDown = useCallback(e => {
49
46
  if (e.key === "Escape") {
50
47
  handleClose();
@@ -53,13 +50,13 @@ function CitationPane(props) {
53
50
  const containerStyles = {
54
51
  root: Object.assign({}, defaultCitationPaneGeneralStyles, (_props$styleProps = props.styleProps) === null || _props$styleProps === void 0 ? void 0 : _props$styleProps.generalStyleProps, {
55
52
  position: "relative" // Ensure container is positioned for absolute positioning of top close button
56
-
57
53
  })
58
54
  };
59
55
  const titleStyles = {
60
56
  root: Object.assign({}, defaultCitationPaneTitleStyles, (_props$styleProps2 = props.styleProps) === null || _props$styleProps2 === void 0 ? void 0 : _props$styleProps2.titleStyleProps)
61
57
  };
62
- const contentStyles = { ...defaultCitationPaneContentStyles,
58
+ const contentStyles = {
59
+ ...defaultCitationPaneContentStyles,
63
60
  ...((_props$styleProps3 = props.styleProps) === null || _props$styleProps3 === void 0 ? void 0 : _props$styleProps3.contentStyleProps)
64
61
  };
65
62
  const closeButtonStyles = {
@@ -78,8 +75,8 @@ function CitationPane(props) {
78
75
  left: "auto"
79
76
  }),
80
77
  rootHovered: Object.assign({}, defaultCitationPaneTopCloseButtonHoveredStyles, (_props$styleProps9 = props.styleProps) === null || _props$styleProps9 === void 0 ? void 0 : _props$styleProps9.topCloseButtonHoveredStyleProps),
81
- rootFocused: Object.assign({}, defaultCitationPaneTopCloseButtonFocusedStyles, (_props$styleProps10 = props.styleProps) === null || _props$styleProps10 === void 0 ? void 0 : _props$styleProps10.topCloseButtonFocusedStyleProps),
82
- rootPressed: Object.assign({}, defaultCitationPaneTopCloseButtonHoveredStyles, (_props$styleProps11 = props.styleProps) === null || _props$styleProps11 === void 0 ? void 0 : _props$styleProps11.topCloseButtonHoveredStyleProps)
78
+ rootFocused: Object.assign({}, defaultCitationPaneTopCloseButtonFocusedStyles, (_props$styleProps0 = props.styleProps) === null || _props$styleProps0 === void 0 ? void 0 : _props$styleProps0.topCloseButtonFocusedStyleProps),
79
+ rootPressed: Object.assign({}, defaultCitationPaneTopCloseButtonHoveredStyles, (_props$styleProps1 = props.styleProps) === null || _props$styleProps1 === void 0 ? void 0 : _props$styleProps1.topCloseButtonHoveredStyleProps)
83
80
  };
84
81
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Stack, {
85
82
  id: elementId,
@@ -88,7 +85,7 @@ function CitationPane(props) {
88
85
  "aria-describedby": elementId + "-content",
89
86
  dir: ((_props$controlProps5 = props.controlProps) === null || _props$controlProps5 === void 0 ? void 0 : _props$controlProps5.dir) || defaultCitationPaneControlProps.dir,
90
87
  styles: containerStyles,
91
- className: (_props$styleProps12 = props.styleProps) === null || _props$styleProps12 === void 0 ? void 0 : (_props$styleProps12$c = _props$styleProps12.classNames) === null || _props$styleProps12$c === void 0 ? void 0 : _props$styleProps12$c.containerClassName,
88
+ className: (_props$styleProps10 = props.styleProps) === null || _props$styleProps10 === void 0 || (_props$styleProps10 = _props$styleProps10.classNames) === null || _props$styleProps10 === void 0 ? void 0 : _props$styleProps10.containerClassName,
92
89
  onKeyDown: handleEscKeyDown,
93
90
  tabIndex: -1
94
91
  }, !((_props$controlProps6 = props.controlProps) !== null && _props$controlProps6 !== void 0 && _props$controlProps6.hideTopCloseButton) && (decodeComponentString((_props$componentOverr = props.componentOverrides) === null || _props$componentOverr === void 0 ? void 0 : _props$componentOverr.topCloseButton) || /*#__PURE__*/React.createElement(IconButton, {
@@ -99,26 +96,25 @@ function CitationPane(props) {
99
96
  },
100
97
  ariaLabel: ((_props$controlProps7 = props.controlProps) === null || _props$controlProps7 === void 0 ? void 0 : _props$controlProps7.topCloseButtonAriaLabel) || defaultCitationPaneControlProps.topCloseButtonAriaLabel,
101
98
  styles: topCloseButtonStyles,
102
- className: (_props$styleProps13 = props.styleProps) === null || _props$styleProps13 === void 0 ? void 0 : (_props$styleProps13$c = _props$styleProps13.classNames) === null || _props$styleProps13$c === void 0 ? void 0 : _props$styleProps13$c.topCloseButtonClassName
99
+ className: (_props$styleProps11 = props.styleProps) === null || _props$styleProps11 === void 0 || (_props$styleProps11 = _props$styleProps11.classNames) === null || _props$styleProps11 === void 0 ? void 0 : _props$styleProps11.topCloseButtonClassName
103
100
  })), !((_props$controlProps8 = props.controlProps) !== null && _props$controlProps8 !== void 0 && _props$controlProps8.hideTitle) && (decodeComponentString((_props$componentOverr2 = props.componentOverrides) === null || _props$componentOverr2 === void 0 ? void 0 : _props$componentOverr2.title) || /*#__PURE__*/React.createElement(Label, {
104
101
  id: elementId + "-title",
105
102
  styles: titleStyles,
106
- className: (_props$styleProps14 = props.styleProps) === null || _props$styleProps14 === void 0 ? void 0 : (_props$styleProps14$c = _props$styleProps14.classNames) === null || _props$styleProps14$c === void 0 ? void 0 : _props$styleProps14$c.titleClassName
103
+ className: (_props$styleProps12 = props.styleProps) === null || _props$styleProps12 === void 0 || (_props$styleProps12 = _props$styleProps12.classNames) === null || _props$styleProps12 === void 0 ? void 0 : _props$styleProps12.titleClassName
107
104
  }, ((_props$controlProps9 = props.controlProps) === null || _props$controlProps9 === void 0 ? void 0 : _props$controlProps9.titleText) || defaultCitationPaneControlProps.titleText)), /*#__PURE__*/React.createElement("div", {
108
105
  id: elementId + "-content",
109
106
  style: contentStyles,
110
- 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.contentClassName,
107
+ className: (_props$styleProps13 = props.styleProps) === null || _props$styleProps13 === void 0 || (_props$styleProps13 = _props$styleProps13.classNames) === null || _props$styleProps13 === void 0 ? void 0 : _props$styleProps13.contentClassName,
111
108
  dangerouslySetInnerHTML: {
112
- __html: ((_props$controlProps10 = props.controlProps) === null || _props$controlProps10 === void 0 ? void 0 : _props$controlProps10.contentHtml) ?? ""
109
+ __html: ((_props$controlProps0 = props.controlProps) === null || _props$controlProps0 === void 0 ? void 0 : _props$controlProps0.contentHtml) ?? ""
113
110
  }
114
- }), !((_props$controlProps11 = props.controlProps) !== null && _props$controlProps11 !== void 0 && _props$controlProps11.hideCloseButton) && (decodeComponentString((_props$componentOverr3 = props.componentOverrides) === null || _props$componentOverr3 === void 0 ? void 0 : _props$componentOverr3.closeButton) || /*#__PURE__*/React.createElement(DefaultButton, {
111
+ }), !((_props$controlProps1 = props.controlProps) !== null && _props$controlProps1 !== void 0 && _props$controlProps1.hideCloseButton) && (decodeComponentString((_props$componentOverr3 = props.componentOverrides) === null || _props$componentOverr3 === void 0 ? void 0 : _props$componentOverr3.closeButton) || /*#__PURE__*/React.createElement(DefaultButton, {
115
112
  onClick: handleClose,
116
113
  id: elementId + "-close",
117
- text: ((_props$controlProps12 = props.controlProps) === null || _props$controlProps12 === void 0 ? void 0 : _props$controlProps12.closeButtonText) || defaultCitationPaneControlProps.closeButtonText,
118
- ariaLabel: ((_props$controlProps13 = props.controlProps) === null || _props$controlProps13 === void 0 ? void 0 : _props$controlProps13.closeButtonAriaLabel) || defaultCitationPaneControlProps.closeButtonAriaLabel,
114
+ text: ((_props$controlProps10 = props.controlProps) === null || _props$controlProps10 === void 0 ? void 0 : _props$controlProps10.closeButtonText) || defaultCitationPaneControlProps.closeButtonText,
115
+ ariaLabel: ((_props$controlProps11 = props.controlProps) === null || _props$controlProps11 === void 0 ? void 0 : _props$controlProps11.closeButtonAriaLabel) || defaultCitationPaneControlProps.closeButtonAriaLabel,
119
116
  styles: closeButtonStyles,
120
- 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.closeButtonClassName
117
+ className: (_props$styleProps14 = props.styleProps) === null || _props$styleProps14 === void 0 || (_props$styleProps14 = _props$styleProps14.classNames) === null || _props$styleProps14 === void 0 ? void 0 : _props$styleProps14.closeButtonClassName
121
118
  }))));
122
119
  }
123
-
124
120
  export default CitationPane;
@@ -1,10 +1,10 @@
1
1
  import CitationPane from "./CitationPane";
2
2
  import React from "react";
3
+
3
4
  /**
4
5
  * Test component to verify CitationPane scaling behavior at different zoom levels
5
6
  * This demonstrates how the component responds to 50% to 400% view sizes
6
7
  */
7
-
8
8
  export const CitationPaneScalingTest = () => {
9
9
  const baseProps = {
10
10
  controlProps: {
@@ -21,7 +21,6 @@ export const defaultCitationPaneCloseButtonStyles = {
21
21
  // Responsive hiding at high zoom levels for better content space
22
22
  "@media (min-resolution: 2.5dppx), (min-resolution: 240dpi)": {
23
23
  display: "none" // Hide at 250%+ zoom to preserve content space
24
-
25
24
  },
26
25
  selectors: {
27
26
  ":hover": {
@@ -32,7 +31,6 @@ export const defaultCitationPaneCloseButtonStyles = {
32
31
  outline: "0.125em solid #0078d4",
33
32
  // Scalable outline
34
33
  outlineOffset: "0.125em" // Scalable offset
35
-
36
34
  },
37
35
  ":active": {
38
36
  backgroundColor: "#d2d0ce",
@@ -10,5 +10,4 @@ export const defaultCitationPaneContentStyles = {
10
10
  overflow: "auto",
11
11
  // Enable scrolling for long content
12
12
  paddingRight: "0.125em" // Reduced padding to give more space for text at high zoom (scalable)
13
-
14
13
  };
@@ -22,5 +22,4 @@ export const defaultCitationPaneGeneralStyles = {
22
22
  maxHeight: "30em",
23
23
  // Container-relative height instead of viewport-based
24
24
  overflow: "hidden" // Hide overflow on container, let content area handle scrolling
25
-
26
25
  };
@@ -31,6 +31,5 @@ export const defaultCitationPaneTopCloseButtonStyles = {
31
31
  outline: "0.125em solid #605e5c",
32
32
  // Scalable outline
33
33
  outlineOffset: "0.125em" // Scalable offset
34
-
35
34
  }
36
35
  };
@@ -2,10 +2,8 @@ import { DefaultButton, IconButton } from "@fluentui/react";
2
2
  import React, { useCallback } from "react";
3
3
  import { BroadcastService } from "../../../services/BroadcastService";
4
4
  import { ElementType, EventNames, ButtonTypes } from "../../../common/Constants";
5
-
6
5
  function CommandButton(props) {
7
6
  var _props$hoverStyles, _props$hoverStyles2, _props$focusStyles;
8
-
9
7
  //imageIconProps > iconName
10
8
  const iconProp = props.imageIconProps ? {
11
9
  imageProps: props.imageIconProps
@@ -13,28 +11,30 @@ function CommandButton(props) {
13
11
  iconName: props.iconName
14
12
  };
15
13
  let iconStyles = {};
16
-
17
14
  if (props.type === ButtonTypes.Icon) {
18
15
  var _props$styles;
19
-
20
16
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
21
- iconStyles = { ...(props === null || props === void 0 ? void 0 : (_props$styles = props.styles) === null || _props$styles === void 0 ? void 0 : _props$styles.icon)
17
+ iconStyles = {
18
+ ...(props === null || props === void 0 || (_props$styles = props.styles) === null || _props$styles === void 0 ? void 0 : _props$styles.icon)
22
19
  };
23
20
  }
24
-
25
21
  const buttonStyles = {
26
- icon: { ...iconStyles
22
+ icon: {
23
+ ...iconStyles
27
24
  },
28
25
  root: {
29
26
  selectors: {
30
- ":hover .ms-Button-icon": { // eslint-disable-next-line @typescript-eslint/no-explicit-any
31
- ...(props === null || props === void 0 ? void 0 : (_props$hoverStyles = props.hoverStyles) === null || _props$hoverStyles === void 0 ? void 0 : _props$hoverStyles.icon)
27
+ ":hover .ms-Button-icon": {
28
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
29
+ ...(props === null || props === void 0 || (_props$hoverStyles = props.hoverStyles) === null || _props$hoverStyles === void 0 ? void 0 : _props$hoverStyles.icon)
32
30
  },
33
- ":active .ms-Button-icon": { // eslint-disable-next-line @typescript-eslint/no-explicit-any
34
- ...(props === null || props === void 0 ? void 0 : (_props$hoverStyles2 = props.hoverStyles) === null || _props$hoverStyles2 === void 0 ? void 0 : _props$hoverStyles2.icon)
31
+ ":active .ms-Button-icon": {
32
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
33
+ ...(props === null || props === void 0 || (_props$hoverStyles2 = props.hoverStyles) === null || _props$hoverStyles2 === void 0 ? void 0 : _props$hoverStyles2.icon)
35
34
  },
36
- ":focus .ms-Button-icon": { // eslint-disable-next-line @typescript-eslint/no-explicit-any
37
- ...(props === null || props === void 0 ? void 0 : (_props$focusStyles = props.focusStyles) === null || _props$focusStyles === void 0 ? void 0 : _props$focusStyles.icon)
35
+ ":focus .ms-Button-icon": {
36
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
37
+ ...(props === null || props === void 0 || (_props$focusStyles = props.focusStyles) === null || _props$focusStyles === void 0 ? void 0 : _props$focusStyles.icon)
38
38
  }
39
39
  },
40
40
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -52,7 +52,7 @@ function CommandButton(props) {
52
52
  elementId: props === null || props === void 0 ? void 0 : props.id
53
53
  };
54
54
  BroadcastService.postMessage(customEvent);
55
- props === null || props === void 0 ? void 0 : props.onClick();
55
+ props === null || props === void 0 || props.onClick();
56
56
  }
57
57
  }, []);
58
58
  return /*#__PURE__*/React.createElement(React.Fragment, null, props.type === ButtonTypes.Text && /*#__PURE__*/React.createElement(DefaultButton, {
@@ -75,5 +75,4 @@ function CommandButton(props) {
75
75
  className: props.className
76
76
  }));
77
77
  }
78
-
79
78
  export default CommandButton;
@@ -1,7 +1,6 @@
1
1
  import React from "react";
2
2
  import { AriaLabels, ElementType, EventNames, IconNames, Texts } from "../../../common/Constants";
3
3
  import CommandButton from "../commandbutton/CommandButton";
4
-
5
4
  function CloseButton(props) {
6
5
  const {
7
6
  type
@@ -26,5 +25,4 @@ function CloseButton(props) {
26
25
  customEvent: customEvent
27
26
  });
28
27
  }
29
-
30
28
  export default CloseButton;
@@ -15,42 +15,37 @@ import { defaultConfirmationPaneSubtitleStyles } from "./common/defaultStyles/de
15
15
  import { defaultConfirmationPaneTitleStyles } from "./common/defaultStyles/defaultConfirmationPaneTitleStyles";
16
16
  import { defaultConfirmationPaneConfirmButtonFocusedStyles } from "./common/defaultStyles/defaultConfirmationPaneConfirmButtonFocusedStyles";
17
17
  import { defaultConfirmationPaneCancelButtonFocusedStyles } from "./common/defaultStyles/defaultConfirmationPaneCancelButtonFocusedStyles";
18
-
19
18
  function ConfirmationPane(props) {
20
- 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$controlProps6, _props$controlProps7, _props$controlProps8, _props$componentOverr, _props$styleProps13, _props$styleProps13$c, _props$controlProps9, _props$controlProps10, _props$componentOverr2, _props$styleProps14, _props$styleProps14$c, _props$controlProps11, _props$styleProps15, _props$styleProps15$c, _props$controlProps12, _props$componentOverr3, _props$styleProps16, _props$styleProps16$c, _props$controlProps13, _props$controlProps14, _props$controlProps15, _props$componentOverr4, _props$styleProps17, _props$styleProps17$c, _props$controlProps16, _props$controlProps17;
21
-
19
+ 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$controlProps6, _props$controlProps7, _props$controlProps8, _props$componentOverr, _props$styleProps11, _props$controlProps9, _props$controlProps0, _props$componentOverr2, _props$styleProps12, _props$controlProps1, _props$styleProps13, _props$controlProps10, _props$controlProps11, _props$componentOverr3, _props$styleProps14, _props$controlProps12, _props$controlProps13, _props$controlProps14, _props$componentOverr4, _props$styleProps15, _props$controlProps15, _props$controlProps16;
22
20
  const elementId = ((_props$controlProps = props.controlProps) === null || _props$controlProps === void 0 ? void 0 : _props$controlProps.id) ?? defaultConfirmationPaneControlProps.id;
23
21
  const handleConfirmClick = useCallback(() => {
24
22
  var _props$controlProps2;
25
-
26
23
  if ((_props$controlProps2 = props.controlProps) !== null && _props$controlProps2 !== void 0 && _props$controlProps2.onConfirm) {
27
24
  var _props$controlProps3;
28
-
29
25
  const customEvent = {
30
26
  elementType: ElementType.ConfirmationPaneConfirmButton,
31
27
  elementId: elementId + "-confirmbutton",
32
28
  eventName: EventNames.OnClick
33
29
  };
34
30
  BroadcastService.postMessage(customEvent);
35
- (_props$controlProps3 = props.controlProps) === null || _props$controlProps3 === void 0 ? void 0 : _props$controlProps3.onConfirm();
31
+ (_props$controlProps3 = props.controlProps) === null || _props$controlProps3 === void 0 || _props$controlProps3.onConfirm();
36
32
  }
37
33
  }, []);
38
34
  const handleCancelClick = useCallback(() => {
39
35
  var _props$controlProps4;
40
-
41
36
  if ((_props$controlProps4 = props.controlProps) !== null && _props$controlProps4 !== void 0 && _props$controlProps4.onCancel) {
42
37
  var _props$controlProps5;
43
-
44
38
  const customEvent = {
45
39
  elementType: ElementType.ConfirmationPaneCancelButton,
46
40
  elementId: elementId + "-cancelbutton",
47
41
  eventName: EventNames.OnClick
48
42
  };
49
43
  BroadcastService.postMessage(customEvent);
50
- (_props$controlProps5 = props.controlProps) === null || _props$controlProps5 === void 0 ? void 0 : _props$controlProps5.onCancel();
44
+ (_props$controlProps5 = props.controlProps) === null || _props$controlProps5 === void 0 || _props$controlProps5.onCancel();
51
45
  }
52
- }, []); // eslint-disable-next-line @typescript-eslint/no-explicit-any
46
+ }, []);
53
47
 
48
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
54
49
  const handleEscKeyDown = useCallback(e => {
55
50
  if (e.code === KeyCodes.ESCAPE) {
56
51
  handleCancelClick();
@@ -76,9 +71,9 @@ function ConfirmationPane(props) {
76
71
  };
77
72
  const cancelButtonStyles = {
78
73
  root: Object.assign({}, defaultConfirmationPaneCancelButtonStyles, (_props$styleProps9 = props.styleProps) === null || _props$styleProps9 === void 0 ? void 0 : _props$styleProps9.cancelButtonStyleProps),
79
- rootHovered: Object.assign({}, defaultConfirmationPaneCancelButtonHoveredStyles, (_props$styleProps10 = props.styleProps) === null || _props$styleProps10 === void 0 ? void 0 : _props$styleProps10.cancelButtonHoveredStyleProps),
80
- rootFocused: Object.assign({}, defaultConfirmationPaneCancelButtonFocusedStyles, (_props$styleProps11 = props.styleProps) === null || _props$styleProps11 === void 0 ? void 0 : _props$styleProps11.cancelButtonFocusedStyleProps),
81
- rootPressed: Object.assign({}, defaultConfirmationPaneCancelButtonHoveredStyles, (_props$styleProps12 = props.styleProps) === null || _props$styleProps12 === void 0 ? void 0 : _props$styleProps12.cancelButtonHoveredStyleProps)
74
+ rootHovered: Object.assign({}, defaultConfirmationPaneCancelButtonHoveredStyles, (_props$styleProps0 = props.styleProps) === null || _props$styleProps0 === void 0 ? void 0 : _props$styleProps0.cancelButtonHoveredStyleProps),
75
+ rootFocused: Object.assign({}, defaultConfirmationPaneCancelButtonFocusedStyles, (_props$styleProps1 = props.styleProps) === null || _props$styleProps1 === void 0 ? void 0 : _props$styleProps1.cancelButtonFocusedStyleProps),
76
+ rootPressed: Object.assign({}, defaultConfirmationPaneCancelButtonHoveredStyles, (_props$styleProps10 = props.styleProps) === null || _props$styleProps10 === void 0 ? void 0 : _props$styleProps10.cancelButtonHoveredStyleProps)
82
77
  };
83
78
  return /*#__PURE__*/React.createElement(React.Fragment, null, !((_props$controlProps6 = props.controlProps) !== null && _props$controlProps6 !== void 0 && _props$controlProps6.hideConfirmationPane) && /*#__PURE__*/React.createElement(Stack, {
84
79
  id: elementId,
@@ -90,35 +85,36 @@ function ConfirmationPane(props) {
90
85
  "aria-labelledby": elementId + "-title",
91
86
  "aria-describedby": elementId + "-subtitle"
92
87
  }, !((_props$controlProps8 = props.controlProps) !== null && _props$controlProps8 !== void 0 && _props$controlProps8.hideTitle) && (decodeComponentString((_props$componentOverr = props.componentOverrides) === null || _props$componentOverr === void 0 ? void 0 : _props$componentOverr.title) || /*#__PURE__*/React.createElement(Label, {
93
- className: (_props$styleProps13 = props.styleProps) === null || _props$styleProps13 === void 0 ? void 0 : (_props$styleProps13$c = _props$styleProps13.classNames) === null || _props$styleProps13$c === void 0 ? void 0 : _props$styleProps13$c.titleClassName,
88
+ className: (_props$styleProps11 = props.styleProps) === null || _props$styleProps11 === void 0 || (_props$styleProps11 = _props$styleProps11.classNames) === null || _props$styleProps11 === void 0 ? void 0 : _props$styleProps11.titleClassName,
94
89
  styles: titleStyles,
95
90
  tabIndex: -1,
96
91
  id: elementId + "-title"
97
- }, ((_props$controlProps9 = props.controlProps) === null || _props$controlProps9 === void 0 ? void 0 : _props$controlProps9.titleText) || defaultConfirmationPaneControlProps.titleText)), !((_props$controlProps10 = props.controlProps) !== null && _props$controlProps10 !== void 0 && _props$controlProps10.hideSubtitle) && (decodeComponentString((_props$componentOverr2 = props.componentOverrides) === null || _props$componentOverr2 === void 0 ? void 0 : _props$componentOverr2.subtitle) || /*#__PURE__*/React.createElement(Label, {
98
- className: (_props$styleProps14 = props.styleProps) === null || _props$styleProps14 === void 0 ? void 0 : (_props$styleProps14$c = _props$styleProps14.classNames) === null || _props$styleProps14$c === void 0 ? void 0 : _props$styleProps14$c.subtitleClassName,
92
+ }, ((_props$controlProps9 = props.controlProps) === null || _props$controlProps9 === void 0 ? void 0 : _props$controlProps9.titleText) || defaultConfirmationPaneControlProps.titleText)), !((_props$controlProps0 = props.controlProps) !== null && _props$controlProps0 !== void 0 && _props$controlProps0.hideSubtitle) && (decodeComponentString((_props$componentOverr2 = props.componentOverrides) === null || _props$componentOverr2 === void 0 ? void 0 : _props$componentOverr2.subtitle) || /*#__PURE__*/React.createElement(Label, {
93
+ className: (_props$styleProps12 = props.styleProps) === null || _props$styleProps12 === void 0 || (_props$styleProps12 = _props$styleProps12.classNames) === null || _props$styleProps12 === void 0 ? void 0 : _props$styleProps12.subtitleClassName,
99
94
  styles: subtitleStyles,
100
95
  tabIndex: -1,
101
96
  id: elementId + "-subtitle"
102
- }, ((_props$controlProps11 = props.controlProps) === null || _props$controlProps11 === void 0 ? void 0 : _props$controlProps11.subtitleText) || defaultConfirmationPaneControlProps.subtitleText)), /*#__PURE__*/React.createElement(Stack, {
97
+ }, ((_props$controlProps1 = props.controlProps) === null || _props$controlProps1 === void 0 ? void 0 : _props$controlProps1.subtitleText) || defaultConfirmationPaneControlProps.subtitleText)), /*#__PURE__*/React.createElement(Stack, {
103
98
  horizontal: true,
104
- 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.buttonGroupClassName,
99
+ className: (_props$styleProps13 = props.styleProps) === null || _props$styleProps13 === void 0 || (_props$styleProps13 = _props$styleProps13.classNames) === null || _props$styleProps13 === void 0 ? void 0 : _props$styleProps13.buttonGroupClassName,
105
100
  styles: buttonGroupStyles,
106
- id: elementId + "-buttongroup"
107
- }, !((_props$controlProps12 = props.controlProps) !== null && _props$controlProps12 !== void 0 && _props$controlProps12.hideConfirmButton) && (decodeComponentString((_props$componentOverr3 = props.componentOverrides) === null || _props$componentOverr3 === void 0 ? void 0 : _props$componentOverr3.confirmButton) || /*#__PURE__*/React.createElement(PrimaryButton, {
108
- 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.confirmButtonClassName,
101
+ id: elementId + "-buttongroup",
102
+ role: "group",
103
+ "aria-label": ((_props$controlProps10 = props.controlProps) === null || _props$controlProps10 === void 0 ? void 0 : _props$controlProps10.buttonGroupAriaLabel) || defaultConfirmationPaneControlProps.buttonGroupAriaLabel
104
+ }, !((_props$controlProps11 = props.controlProps) !== null && _props$controlProps11 !== void 0 && _props$controlProps11.hideConfirmButton) && (decodeComponentString((_props$componentOverr3 = props.componentOverrides) === null || _props$componentOverr3 === void 0 ? void 0 : _props$componentOverr3.confirmButton) || /*#__PURE__*/React.createElement(PrimaryButton, {
105
+ className: (_props$styleProps14 = props.styleProps) === null || _props$styleProps14 === void 0 || (_props$styleProps14 = _props$styleProps14.classNames) === null || _props$styleProps14 === void 0 ? void 0 : _props$styleProps14.confirmButtonClassName,
109
106
  styles: confirmButtonStyles,
110
- text: ((_props$controlProps13 = props.controlProps) === null || _props$controlProps13 === void 0 ? void 0 : _props$controlProps13.confirmButtonText) || defaultConfirmationPaneControlProps.confirmButtonText,
107
+ text: ((_props$controlProps12 = props.controlProps) === null || _props$controlProps12 === void 0 ? void 0 : _props$controlProps12.confirmButtonText) || defaultConfirmationPaneControlProps.confirmButtonText,
111
108
  onClick: handleConfirmClick,
112
109
  id: elementId + "-confirmbutton",
113
- ariaLabel: ((_props$controlProps14 = props.controlProps) === null || _props$controlProps14 === void 0 ? void 0 : _props$controlProps14.confirmButtonAriaLabel) || defaultConfirmationPaneControlProps.confirmButtonAriaLabel
114
- })), !((_props$controlProps15 = props.controlProps) !== null && _props$controlProps15 !== void 0 && _props$controlProps15.hideCancelButton) && (decodeComponentString((_props$componentOverr4 = props.componentOverrides) === null || _props$componentOverr4 === void 0 ? void 0 : _props$componentOverr4.cancelButton) || /*#__PURE__*/React.createElement(DefaultButton, {
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.cancelButtonClassName,
110
+ ariaLabel: ((_props$controlProps13 = props.controlProps) === null || _props$controlProps13 === void 0 ? void 0 : _props$controlProps13.confirmButtonAriaLabel) || defaultConfirmationPaneControlProps.confirmButtonAriaLabel
111
+ })), !((_props$controlProps14 = props.controlProps) !== null && _props$controlProps14 !== void 0 && _props$controlProps14.hideCancelButton) && (decodeComponentString((_props$componentOverr4 = props.componentOverrides) === null || _props$componentOverr4 === void 0 ? void 0 : _props$componentOverr4.cancelButton) || /*#__PURE__*/React.createElement(DefaultButton, {
112
+ className: (_props$styleProps15 = props.styleProps) === null || _props$styleProps15 === void 0 || (_props$styleProps15 = _props$styleProps15.classNames) === null || _props$styleProps15 === void 0 ? void 0 : _props$styleProps15.cancelButtonClassName,
116
113
  styles: cancelButtonStyles,
117
- text: ((_props$controlProps16 = props.controlProps) === null || _props$controlProps16 === void 0 ? void 0 : _props$controlProps16.cancelButtonText) || defaultConfirmationPaneControlProps.cancelButtonText,
114
+ text: ((_props$controlProps15 = props.controlProps) === null || _props$controlProps15 === void 0 ? void 0 : _props$controlProps15.cancelButtonText) || defaultConfirmationPaneControlProps.cancelButtonText,
118
115
  onClick: handleCancelClick,
119
116
  id: elementId + "-cancelbutton",
120
- ariaLabel: ((_props$controlProps17 = props.controlProps) === null || _props$controlProps17 === void 0 ? void 0 : _props$controlProps17.cancelButtonAriaLabel) || defaultConfirmationPaneControlProps.cancelButtonAriaLabel
117
+ ariaLabel: ((_props$controlProps16 = props.controlProps) === null || _props$controlProps16 === void 0 ? void 0 : _props$controlProps16.cancelButtonAriaLabel) || defaultConfirmationPaneControlProps.cancelButtonAriaLabel
121
118
  })))));
122
119
  }
123
-
124
120
  export default ConfirmationPane;
@@ -7,6 +7,7 @@ export const defaultConfirmationPaneControlProps = {
7
7
  titleText: Texts.ConfirmationPaneTitle,
8
8
  hideSubtitle: false,
9
9
  subtitleText: Texts.ConfirmationPaneSubtitle,
10
+ buttonGroupAriaLabel: AriaLabels.ConfirmationPaneButtonGroup,
10
11
  hideConfirmButton: false,
11
12
  confirmButtonText: Texts.ConfirmButtonText,
12
13
  confirmButtonAriaLabel: AriaLabels.ConfirmationPaneConfirm,
@@ -1,5 +1,4 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
1
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
2
  import * as React from "react";
4
3
  import { Stack, initializeIcons } from "@fluentui/react";
5
4
  import AudioNotificationButton from "./subcomponents/AudioNotificationButton";
@@ -10,10 +9,8 @@ import { defaultFooterProps } from "./common/defaultProps/defaultFooterProps";
10
9
  import { processCustomComponents } from "../../common/utils";
11
10
  import { Ids } from "../../common/Constants";
12
11
  initializeIcons();
13
-
14
12
  function Footer(props) {
15
- var _props$controlProps, _defaultFooterProps$c, _defaultFooterProps$s, _props$styleProps, _defaultFooterProps$c2, _props$controlProps2, _defaultFooterProps$c3, _props$controlProps3, _defaultFooterProps$c4, _props$controlProps4, _defaultFooterProps$s2, _props$styleProps2, _defaultFooterProps$s3, _props$styleProps3, _defaultFooterProps$s4, _props$styleProps4, _defaultFooterProps$s5, _props$styleProps5, _defaultFooterProps$s6, _props$styleProps6, _defaultFooterProps$s7, _props$styleProps7, _defaultFooterProps$s8, _props$styleProps8, _props$controlProps5, _props$controlProps6, _props$componentOverr, _props$controlProps7, _props$controlProps8, _props$componentOverr2, _props$controlProps9, _props$controlProps10, _props$controlProps11, _props$controlProps12, _props$controlProps13, _props$controlProps14, _props$controlProps15, _props$controlProps16, _props$componentOverr3, _props$controlProps17;
16
-
13
+ var _props$controlProps, _defaultFooterProps$c, _defaultFooterProps$s, _props$styleProps, _defaultFooterProps$c2, _props$controlProps2, _defaultFooterProps$c3, _props$controlProps3, _defaultFooterProps$c4, _props$controlProps4, _defaultFooterProps$s2, _props$styleProps2, _defaultFooterProps$s3, _props$styleProps3, _defaultFooterProps$s4, _props$styleProps4, _defaultFooterProps$s5, _props$styleProps5, _defaultFooterProps$s6, _props$styleProps6, _defaultFooterProps$s7, _props$styleProps7, _defaultFooterProps$s8, _props$styleProps8, _props$controlProps5, _props$controlProps6, _props$componentOverr, _props$controlProps7, _props$controlProps8, _props$componentOverr2, _props$controlProps9, _props$controlProps0, _props$controlProps1, _props$controlProps10, _props$controlProps11, _props$componentOverr3, _props$controlProps12;
17
14
  const footerId = ((_props$controlProps = props.controlProps) === null || _props$controlProps === void 0 ? void 0 : _props$controlProps.id) ?? ((_defaultFooterProps$c = defaultFooterProps.controlProps) === null || _defaultFooterProps$c === void 0 ? void 0 : _defaultFooterProps$c.id);
18
15
  const stackStyles = {
19
16
  root: Object.assign({}, (_defaultFooterProps$s = defaultFooterProps.styleProps) === null || _defaultFooterProps$s === void 0 ? void 0 : _defaultFooterProps$s.generalStyleProps, (_props$styleProps = props.styleProps) === null || _props$styleProps === void 0 ? void 0 : _props$styleProps.generalStyleProps)
@@ -51,20 +48,19 @@ function Footer(props) {
51
48
  styles: emailTranscriptButtonStyles,
52
49
  hoverStyles: emailTranscriptButtonHoverStyles,
53
50
  focusStyles: footerItemFocusStyles
54
- }))), processCustomComponents((_props$controlProps10 = props.controlProps) === null || _props$controlProps10 === void 0 ? void 0 : (_props$controlProps11 = _props$controlProps10.leftGroup) === null || _props$controlProps11 === void 0 ? void 0 : _props$controlProps11.children)), /*#__PURE__*/React.createElement(Stack, {
51
+ }))), processCustomComponents((_props$controlProps0 = props.controlProps) === null || _props$controlProps0 === void 0 || (_props$controlProps0 = _props$controlProps0.leftGroup) === null || _props$controlProps0 === void 0 ? void 0 : _props$controlProps0.children)), /*#__PURE__*/React.createElement(Stack, {
55
52
  horizontal: true,
56
53
  id: Ids.FooterMiddleGroupId,
57
54
  verticalAlign: "center"
58
- }, processCustomComponents((_props$controlProps12 = props.controlProps) === null || _props$controlProps12 === void 0 ? void 0 : (_props$controlProps13 = _props$controlProps12.middleGroup) === null || _props$controlProps13 === void 0 ? void 0 : _props$controlProps13.children)), /*#__PURE__*/React.createElement(Stack, {
55
+ }, processCustomComponents((_props$controlProps1 = props.controlProps) === null || _props$controlProps1 === void 0 || (_props$controlProps1 = _props$controlProps1.middleGroup) === null || _props$controlProps1 === void 0 ? void 0 : _props$controlProps1.children)), /*#__PURE__*/React.createElement(Stack, {
59
56
  horizontal: true,
60
57
  id: Ids.FooterRightGroupId,
61
58
  verticalAlign: "center"
62
- }, processCustomComponents((_props$controlProps14 = props.controlProps) === null || _props$controlProps14 === void 0 ? void 0 : (_props$controlProps15 = _props$controlProps14.rightGroup) === null || _props$controlProps15 === void 0 ? void 0 : _props$controlProps15.children), !((_props$controlProps16 = props.controlProps) !== null && _props$controlProps16 !== void 0 && _props$controlProps16.hideAudioNotificationButton) && (decodeComponentString((_props$componentOverr3 = props.componentOverrides) === null || _props$componentOverr3 === void 0 ? void 0 : _props$componentOverr3.AudioNotificationButton) || /*#__PURE__*/React.createElement(AudioNotificationButton, _extends({}, audioNotificationButtonProps, {
63
- onClick: (_props$controlProps17 = props.controlProps) === null || _props$controlProps17 === void 0 ? void 0 : _props$controlProps17.onAudioNotificationClick,
59
+ }, processCustomComponents((_props$controlProps10 = props.controlProps) === null || _props$controlProps10 === void 0 || (_props$controlProps10 = _props$controlProps10.rightGroup) === null || _props$controlProps10 === void 0 ? void 0 : _props$controlProps10.children), !((_props$controlProps11 = props.controlProps) !== null && _props$controlProps11 !== void 0 && _props$controlProps11.hideAudioNotificationButton) && (decodeComponentString((_props$componentOverr3 = props.componentOverrides) === null || _props$componentOverr3 === void 0 ? void 0 : _props$componentOverr3.AudioNotificationButton) || /*#__PURE__*/React.createElement(AudioNotificationButton, _extends({}, audioNotificationButtonProps, {
60
+ onClick: (_props$controlProps12 = props.controlProps) === null || _props$controlProps12 === void 0 ? void 0 : _props$controlProps12.onAudioNotificationClick,
64
61
  styles: audioNotificationButtonStyles,
65
62
  hoverStyles: audioNotificationButtonHoverStyles,
66
63
  focusStyles: footerItemFocusStyles
67
64
  })))));
68
65
  }
69
-
70
66
  export default Footer;
@@ -19,11 +19,9 @@ export const defaultFooterComponentOverrides = {
19
19
  styles: iconButtonStyles
20
20
  })
21
21
  };
22
-
23
22
  function _downloadClicked() {
24
23
  console.log("download clicked");
25
24
  }
26
-
27
25
  function _emailClicked() {
28
26
  console.log("email clicked");
29
27
  }
@@ -2,31 +2,32 @@ import { IconButton } from "@fluentui/react";
2
2
  import React, { useCallback, useEffect, useState } from "react";
3
3
  import { BroadcastService } from "../../../services/BroadcastService";
4
4
  import { AriaLabels, ButtonTypes, ElementType, EventNames, IconNames } from "../../../common/Constants";
5
-
6
5
  function AudioNotificationButton(props) {
7
6
  const {
8
7
  disabled
9
8
  } = props;
10
9
  const [muted, setMuted] = useState(props.isAudioMuted);
11
10
  let iconStyles = {};
12
-
13
11
  if (props.type === ButtonTypes.Icon) {
14
12
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
15
- iconStyles = { ...(props === null || props === void 0 ? void 0 : props.styles).icon
13
+ iconStyles = {
14
+ ...(props === null || props === void 0 ? void 0 : props.styles).icon
16
15
  };
17
16
  }
18
-
19
17
  const iconButtonStyles = {
20
18
  icon: iconStyles,
21
19
  root: {
22
20
  selectors: {
23
- ":hover .ms-Button-icon": { // eslint-disable-next-line @typescript-eslint/no-explicit-any
21
+ ":hover .ms-Button-icon": {
22
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
24
23
  ...(props === null || props === void 0 ? void 0 : props.hoverStyles).icon
25
24
  },
26
- ":active .ms-Button-icon": { // eslint-disable-next-line @typescript-eslint/no-explicit-any
25
+ ":active .ms-Button-icon": {
26
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
27
27
  ...(props === null || props === void 0 ? void 0 : props.hoverStyles).icon
28
28
  },
29
- ":focus .ms-Button-icon": { // eslint-disable-next-line @typescript-eslint/no-explicit-any
29
+ ":focus .ms-Button-icon": {
30
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
30
31
  ...(props === null || props === void 0 ? void 0 : props.focusStyles).icon
31
32
  }
32
33
  },
@@ -36,8 +37,9 @@ function AudioNotificationButton(props) {
36
37
  rootHovered: props.hoverStyles,
37
38
  rootFocused: props.focusStyles,
38
39
  rootPressed: props.hoverStyles
39
- }; //imageIconProps > iconName
40
+ };
40
41
 
42
+ //imageIconProps > iconName
41
43
  const volume0Icon = props.imageToggleIconProps ? {
42
44
  imageProps: props === null || props === void 0 ? void 0 : props.imageToggleIconProps
43
45
  } : {
@@ -50,7 +52,6 @@ function AudioNotificationButton(props) {
50
52
  };
51
53
  const handleOnClick = useCallback(() => {
52
54
  setMuted(!muted);
53
-
54
55
  if (props !== null && props !== void 0 && props.onClick) {
55
56
  const customEvent = {
56
57
  elementType: ElementType.FooterSoundNotificationButton,
@@ -58,7 +59,7 @@ function AudioNotificationButton(props) {
58
59
  eventName: EventNames.OnClick
59
60
  };
60
61
  BroadcastService.postMessage(customEvent);
61
- props === null || props === void 0 ? void 0 : props.onClick();
62
+ props === null || props === void 0 || props.onClick();
62
63
  }
63
64
  }, [props.onClick, muted]);
64
65
  useEffect(() => {
@@ -76,5 +77,4 @@ function AudioNotificationButton(props) {
76
77
  ariaLabel: muted ? props.toggleAriaLabel ?? AriaLabels.TurnSoundOn : props.ariaLabel ?? AriaLabels.TurnSoundOff
77
78
  });
78
79
  }
79
-
80
80
  export default AudioNotificationButton;
@@ -1,7 +1,6 @@
1
1
  import React from "react";
2
2
  import { AriaLabels, ElementType, EventNames, IconNames } from "../../../common/Constants";
3
3
  import CommandButton from "../../common/commandbutton/CommandButton";
4
-
5
4
  function DownloadTranscriptButton(props) {
6
5
  const {
7
6
  type
@@ -25,5 +24,4 @@ function DownloadTranscriptButton(props) {
25
24
  customEvent: customEvent
26
25
  });
27
26
  }
28
-
29
27
  export default DownloadTranscriptButton;
@@ -1,7 +1,6 @@
1
1
  import React from "react";
2
2
  import { AriaLabels, ElementType, EventNames, IconNames } from "../../../common/Constants";
3
3
  import CommandButton from "../../common/commandbutton/CommandButton";
4
-
5
4
  function EmailTranscriptButton(props) {
6
5
  const {
7
6
  type
@@ -25,5 +24,4 @@ function EmailTranscriptButton(props) {
25
24
  customEvent: customEvent
26
25
  });
27
26
  }
28
-
29
27
  export default EmailTranscriptButton;