@microsoft/omnichannel-chat-components 0.1.0-main.cf54410 → 0.1.0-main.d40108a

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 (139) hide show
  1. package/README.md +1 -0
  2. package/lib/cjs/assets/Icons.js +48 -0
  3. package/lib/cjs/common/Constants.js +12 -7
  4. package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/CurrentCall.js +31 -1
  5. package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/common/defaultProps/defaultCurrentCallControlPropsRtl.js +6 -16
  6. package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/common/defaultStyles/customizedCurrentCallStyleProps.js +0 -12
  7. package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/common/defaultStyles/defaultCurrentCallStyleProps.js +0 -12
  8. package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/IncomingCall.js +31 -1
  9. package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/componentOverrideProps.js +2 -4
  10. package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/defaultIncomingCallControlPropsRtl.js +4 -10
  11. package/lib/cjs/components/chatbutton/ChatButton.js +37 -26
  12. package/lib/cjs/components/chatbutton/common/defaultProps/defaultChatButtonControlProps.js +4 -1
  13. package/lib/cjs/components/chatbutton/common/defaultStyles/defaultChatButtonIconContainerStyles.js +2 -4
  14. package/lib/cjs/components/common/commandbutton/CommandButton.js +28 -10
  15. package/lib/cjs/components/{header → common}/subcomponents/CloseButton.js +4 -3
  16. package/lib/cjs/components/confirmationpane/ConfirmationPane.js +12 -10
  17. package/lib/cjs/components/footer/Footer.js +1 -1
  18. package/lib/cjs/components/footer/common/defaultProps/customFooterControlProps.js +5 -13
  19. package/lib/cjs/components/footer/subcomponents/AudioNotificationButton.js +26 -11
  20. package/lib/cjs/components/header/Header.js +2 -2
  21. package/lib/cjs/components/header/common/defaultProps/azureHeaderControlProps.js +2 -4
  22. package/lib/cjs/components/header/common/defaultProps/customHeaderControlProps.js +4 -10
  23. package/lib/cjs/components/header/common/defaultProps/defaultHeaderControlProps.js +2 -4
  24. package/lib/cjs/components/inputvalidationpane/InputValidationPane.js +48 -18
  25. package/lib/cjs/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneIconImageProps.js +2 -4
  26. package/lib/cjs/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneIconStyles.js +1 -1
  27. package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeStyles/presetThreeLoadingPaneIconImageProps.js +2 -4
  28. package/lib/cjs/components/loadingpane/common/presetTwoProps/presetTwoStyles/presetTwoLoadingPaneGeneralStyles.js +2 -4
  29. package/lib/cjs/components/outofofficehourspane/common/presetTwoProps/presetTwoStyles/presetTwoOOOHPaneGeneralStyles.js +2 -4
  30. package/lib/cjs/components/prechatsurveypane/PreChatSurveyPane.js +5 -4
  31. package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneButtonStyles.js +2 -1
  32. package/lib/cjs/components/proactivechatpane/ProactiveChatPane.js +33 -30
  33. package/lib/cjs/components/proactivechatpane/common/default/defaultProps/defaultProactiveChatPaneControlProps.js +5 -1
  34. package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneCloseButtonStyles.js +2 -15
  35. package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneHeaderContainerStyles.js +2 -4
  36. package/lib/cjs/components/proactivechatpane/common/presetOne/presetOneProps/presetOneProactiveChatPaneControlProps.js +5 -1
  37. package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeProps/presetThreeProactiveChatPaneControlProps.js +5 -1
  38. package/lib/cjs/components/reconnectchatpane/ReconnectChatPane.js +14 -12
  39. package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneIconStyles.js +2 -4
  40. package/lib/cjs/index.js +134 -0
  41. package/lib/cjs/services/BroadcastService.js +31 -7
  42. package/lib/esm/assets/Icons.js +21 -0
  43. package/lib/esm/common/Constants.js +10 -5
  44. package/lib/esm/components/callingcontainer/subcomponents/CurrentCall/CurrentCall.js +33 -3
  45. package/lib/esm/components/callingcontainer/subcomponents/CurrentCall/common/defaultProps/defaultCurrentCallControlPropsRtl.js +6 -10
  46. package/lib/esm/components/callingcontainer/subcomponents/CurrentCall/common/defaultStyles/customizedCurrentCallStyleProps.js +0 -12
  47. package/lib/esm/components/callingcontainer/subcomponents/CurrentCall/common/defaultStyles/defaultCurrentCallStyleProps.js +0 -12
  48. package/lib/esm/components/callingcontainer/subcomponents/IncomingCall/IncomingCall.js +33 -3
  49. package/lib/esm/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/componentOverrideProps.js +2 -2
  50. package/lib/esm/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/defaultIncomingCallControlPropsRtl.js +4 -6
  51. package/lib/esm/components/chatbutton/ChatButton.js +37 -26
  52. package/lib/esm/components/chatbutton/common/defaultProps/defaultChatButtonControlProps.js +4 -1
  53. package/lib/esm/components/chatbutton/common/defaultStyles/defaultChatButtonIconContainerStyles.js +2 -2
  54. package/lib/esm/components/common/commandbutton/CommandButton.js +28 -10
  55. package/lib/esm/components/{header → common}/subcomponents/CloseButton.js +4 -3
  56. package/lib/esm/components/confirmationpane/ConfirmationPane.js +12 -10
  57. package/lib/esm/components/footer/Footer.js +1 -1
  58. package/lib/esm/components/footer/common/defaultProps/customFooterControlProps.js +5 -8
  59. package/lib/esm/components/footer/subcomponents/AudioNotificationButton.js +26 -11
  60. package/lib/esm/components/header/Header.js +2 -2
  61. package/lib/esm/components/header/common/defaultProps/azureHeaderControlProps.js +2 -2
  62. package/lib/esm/components/header/common/defaultProps/customHeaderControlProps.js +4 -6
  63. package/lib/esm/components/header/common/defaultProps/defaultHeaderControlProps.js +2 -2
  64. package/lib/esm/components/inputvalidationpane/InputValidationPane.js +48 -18
  65. package/lib/esm/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneIconImageProps.js +2 -2
  66. package/lib/esm/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneIconStyles.js +1 -1
  67. package/lib/esm/components/loadingpane/common/presetThreeProps/presetThreeStyles/presetThreeLoadingPaneIconImageProps.js +2 -2
  68. package/lib/esm/components/loadingpane/common/presetTwoProps/presetTwoStyles/presetTwoLoadingPaneGeneralStyles.js +2 -2
  69. package/lib/esm/components/outofofficehourspane/common/presetTwoProps/presetTwoStyles/presetTwoOOOHPaneGeneralStyles.js +2 -2
  70. package/lib/esm/components/prechatsurveypane/PreChatSurveyPane.js +5 -4
  71. package/lib/esm/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneButtonStyles.js +2 -1
  72. package/lib/esm/components/proactivechatpane/ProactiveChatPane.js +30 -29
  73. package/lib/esm/components/proactivechatpane/common/default/defaultProps/defaultProactiveChatPaneControlProps.js +5 -1
  74. package/lib/esm/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneCloseButtonStyles.js +2 -11
  75. package/lib/esm/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneHeaderContainerStyles.js +2 -2
  76. package/lib/esm/components/proactivechatpane/common/presetOne/presetOneProps/presetOneProactiveChatPaneControlProps.js +5 -1
  77. package/lib/esm/components/proactivechatpane/common/presetThree/presetThreeProps/presetThreeProactiveChatPaneControlProps.js +5 -1
  78. package/lib/esm/components/reconnectchatpane/ReconnectChatPane.js +14 -12
  79. package/lib/esm/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneIconStyles.js +2 -2
  80. package/lib/esm/index.js +3 -1
  81. package/lib/esm/services/BroadcastService.js +29 -7
  82. package/lib/types/assets/Icons.d.ts +21 -0
  83. package/lib/types/common/Constants.d.ts +8 -2
  84. package/lib/types/components/callingcontainer/subcomponents/CurrentCall/interfaces/ICurrentCallStyleProps.d.ts +0 -4
  85. package/lib/types/components/chatbutton/interfaces/IChatButtonControlProps.d.ts +3 -0
  86. package/lib/types/components/common/interfaces/ICommandButtonControlProps.d.ts +1 -0
  87. package/lib/types/components/common/interfaces/ICommandButtonProps.d.ts +1 -0
  88. package/lib/types/components/{header → common}/subcomponents/CloseButton.d.ts +1 -1
  89. package/lib/types/components/prechatsurveypane/interfaces/IPreChatSurveyPaneButtonStyles.d.ts +1 -0
  90. package/lib/types/components/proactivechatpane/interfaces/IProactiveChatPaneControlProps.d.ts +2 -1
  91. package/lib/types/index.d.ts +2 -0
  92. package/lib/types/services/BroadcastService.d.ts +1 -0
  93. package/package.json +5 -10
  94. package/lib/cjs/assets/assets.d.js +0 -1
  95. package/lib/cjs/assets/imgs/ChatBubble.svg +0 -28
  96. package/lib/cjs/assets/imgs/ChatReconnectPopupIcon.png +0 -0
  97. package/lib/cjs/assets/imgs/Proactive_banner.png +0 -0
  98. package/lib/cjs/assets/imgs/agent.png +0 -0
  99. package/lib/cjs/assets/imgs/callacceptbutton.svg +0 -3
  100. package/lib/cjs/assets/imgs/callrejectbutton.svg +0 -3
  101. package/lib/cjs/assets/imgs/chat.svg +0 -47
  102. package/lib/cjs/assets/imgs/chatIcon.svg +0 -16
  103. package/lib/cjs/assets/imgs/closeButton.svg +0 -3
  104. package/lib/cjs/assets/imgs/closeChatButton.svg +0 -3
  105. package/lib/cjs/assets/imgs/error.svg +0 -3
  106. package/lib/cjs/assets/imgs/lcwAudioOff.svg +0 -3
  107. package/lib/cjs/assets/imgs/lcwAudioOn.svg +0 -3
  108. package/lib/cjs/assets/imgs/loading.gif +0 -0
  109. package/lib/cjs/assets/imgs/minimizeChatButton.svg +0 -3
  110. package/lib/cjs/assets/imgs/transcriptDownloadIcon.svg +0 -4
  111. package/lib/cjs/assets/imgs/transcriptEmailIcon.svg +0 -5
  112. package/lib/cjs/assets/imgs/videocallacceptbutton.svg +0 -3
  113. package/lib/cjs/assets/imgs/videooff.svg +0 -3
  114. package/lib/cjs/assets/imgs/videoon.svg +0 -3
  115. package/lib/cjs/assets/imgs/voiceoff.svg +0 -3
  116. package/lib/cjs/assets/imgs/voiceon.svg +0 -3
  117. package/lib/esm/assets/assets.d.js +0 -0
  118. package/lib/esm/assets/imgs/ChatBubble.svg +0 -28
  119. package/lib/esm/assets/imgs/ChatReconnectPopupIcon.png +0 -0
  120. package/lib/esm/assets/imgs/Proactive_banner.png +0 -0
  121. package/lib/esm/assets/imgs/agent.png +0 -0
  122. package/lib/esm/assets/imgs/callacceptbutton.svg +0 -3
  123. package/lib/esm/assets/imgs/callrejectbutton.svg +0 -3
  124. package/lib/esm/assets/imgs/chat.svg +0 -47
  125. package/lib/esm/assets/imgs/chatIcon.svg +0 -16
  126. package/lib/esm/assets/imgs/closeButton.svg +0 -3
  127. package/lib/esm/assets/imgs/closeChatButton.svg +0 -3
  128. package/lib/esm/assets/imgs/error.svg +0 -3
  129. package/lib/esm/assets/imgs/lcwAudioOff.svg +0 -3
  130. package/lib/esm/assets/imgs/lcwAudioOn.svg +0 -3
  131. package/lib/esm/assets/imgs/loading.gif +0 -0
  132. package/lib/esm/assets/imgs/minimizeChatButton.svg +0 -3
  133. package/lib/esm/assets/imgs/transcriptDownloadIcon.svg +0 -4
  134. package/lib/esm/assets/imgs/transcriptEmailIcon.svg +0 -5
  135. package/lib/esm/assets/imgs/videocallacceptbutton.svg +0 -3
  136. package/lib/esm/assets/imgs/videooff.svg +0 -3
  137. package/lib/esm/assets/imgs/videoon.svg +0 -3
  138. package/lib/esm/assets/imgs/voiceoff.svg +0 -3
  139. package/lib/esm/assets/imgs/voiceon.svg +0 -3
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
2
  import { Image, Label, Stack } from "@fluentui/react";
3
- import agentImage from "../../../../../../assets/imgs/agent.png";
3
+ import { AgentIconBase64 } from "../../../../../../assets/Icons";
4
4
  const agentImageStyles = {
5
5
  root: {
6
6
  height: "50px",
@@ -35,7 +35,7 @@ export const componentOverrideProps = {
35
35
  incomingCallTitle: /*#__PURE__*/React.createElement(Stack, {
36
36
  horizontal: true
37
37
  }, /*#__PURE__*/React.createElement(Image, {
38
- src: agentImage,
38
+ src: AgentIconBase64,
39
39
  styles: agentImageStyles
40
40
  }), /*#__PURE__*/React.createElement(Stack, {
41
41
  verticalAlign: "center",
@@ -1,6 +1,4 @@
1
- import callrejectbutton from "../../../../../../assets/imgs/callrejectbutton.svg";
2
- import callacceptbutton from "../../../../../../assets/imgs/callacceptbutton.svg";
3
- import videocallacceptbutton from "../../../../../../assets/imgs/videocallacceptbutton.svg";
1
+ import { CallAcceptButtonBase64, CallRejectButtonBase64, VideoCallAcceptButtonIconBase64 } from "../../../../../../assets/Icons";
4
2
  export const defaultIncomingCallControlPropsRtl = {
5
3
  id: "incomingCallPopup",
6
4
  ariaLabel: "Incoming call area",
@@ -35,7 +33,7 @@ export const defaultIncomingCallControlPropsRtl = {
35
33
  type: "icon",
36
34
  ariaLabel: "Decline Call",
37
35
  imageIconProps: {
38
- src: callrejectbutton,
36
+ src: CallRejectButtonBase64,
39
37
  styles: {
40
38
  image: {
41
39
  height: "18px",
@@ -50,7 +48,7 @@ export const defaultIncomingCallControlPropsRtl = {
50
48
  type: "icon",
51
49
  ariaLabel: "Audio Call",
52
50
  imageIconProps: {
53
- src: callacceptbutton,
51
+ src: CallAcceptButtonBase64,
54
52
  styles: {
55
53
  image: {
56
54
  height: "18px",
@@ -65,7 +63,7 @@ export const defaultIncomingCallControlPropsRtl = {
65
63
  type: "icon",
66
64
  ariaLabel: "Video Call",
67
65
  imageIconProps: {
68
- src: videocallacceptbutton,
66
+ src: VideoCallAcceptButtonIconBase64,
69
67
  styles: {
70
68
  image: {
71
69
  height: "18px",
@@ -1,7 +1,7 @@
1
1
  import { Icon, Label, Stack } from "@fluentui/react";
2
2
  import React, { useCallback } from "react";
3
3
  import { BroadcastService } from "../../services/BroadcastService";
4
- import { ElementType, KeyCodes } from "../../common/Constants";
4
+ import { ElementType, HiddenTextStyles, KeyCodes } from "../../common/Constants";
5
5
  import { decodeComponentString } from "../../common/decodeComponentString";
6
6
  import { defaultChatButtonControlProps } from "./common/defaultProps/defaultChatButtonControlProps";
7
7
  import { defaultChatButtonGeneralStyles } from "./common/defaultStyles/defaultChatButtonGeneralStyles";
@@ -12,17 +12,28 @@ import { defaultChatButtonTextContainerStyles } from "./common/defaultStyles/def
12
12
  import { defaultChatButtonTitleStyles } from "./common/defaultStyles/defaultChatButtonTitleStyles";
13
13
 
14
14
  function NotificationBubble(props, parentId) {
15
- var _props$styleProps, _props$controlProps, _props$componentOverr, _props$styleProps2, _props$styleProps2$cl;
15
+ var _props$styleProps, _props$controlProps;
16
16
 
17
17
  const notificationBubbleStyles = {
18
18
  root: Object.assign({}, defaultChatButtonNotificationBubbleStyles, (_props$styleProps = props.styleProps) === null || _props$styleProps === void 0 ? void 0 : _props$styleProps.notificationBubbleStyleProps)
19
19
  };
20
20
  const unreadMessageCount = ((_props$controlProps = props.controlProps) === null || _props$controlProps === void 0 ? void 0 : _props$controlProps.unreadMessageCount) ?? (defaultChatButtonControlProps === null || defaultChatButtonControlProps === void 0 ? void 0 : defaultChatButtonControlProps.unreadMessageCount);
21
- return decodeComponentString((_props$componentOverr = props.componentOverrides) === null || _props$componentOverr === void 0 ? void 0 : _props$componentOverr.notificationBubble) || /*#__PURE__*/React.createElement(Label, {
22
- styles: notificationBubbleStyles,
23
- className: (_props$styleProps2 = props.styleProps) === null || _props$styleProps2 === void 0 ? void 0 : (_props$styleProps2$cl = _props$styleProps2.classNames) === null || _props$styleProps2$cl === void 0 ? void 0 : _props$styleProps2$cl.notificationBubbleClassName,
24
- id: parentId + "-notification-bubble"
25
- }, unreadMessageCount);
21
+
22
+ if (unreadMessageCount !== "0") {
23
+ var _props$componentOverr, _props$controlProps2, _props$controlProps3, _props$styleProps2, _props$styleProps2$cl, _props$controlProps4, _props$controlProps5;
24
+
25
+ return decodeComponentString((_props$componentOverr = props.componentOverrides) === null || _props$componentOverr === void 0 ? void 0 : _props$componentOverr.notificationBubble) || /*#__PURE__*/React.createElement(Stack, {
26
+ "aria-live": "polite",
27
+ styles: notificationBubbleStyles,
28
+ "aria-label": (_props$controlProps2 = props.controlProps) !== null && _props$controlProps2 !== void 0 && _props$controlProps2.ariaLabelUnreadMessageString ? (_props$controlProps3 = props.controlProps) === null || _props$controlProps3 === void 0 ? void 0 : _props$controlProps3.ariaLabelUnreadMessageString : defaultChatButtonControlProps.ariaLabelUnreadMessageString,
29
+ className: (_props$styleProps2 = props.styleProps) === null || _props$styleProps2 === void 0 ? void 0 : (_props$styleProps2$cl = _props$styleProps2.classNames) === null || _props$styleProps2$cl === void 0 ? void 0 : _props$styleProps2$cl.notificationBubbleClassName,
30
+ id: parentId + "-notification-bubble"
31
+ }, unreadMessageCount, /*#__PURE__*/React.createElement("span", {
32
+ style: HiddenTextStyles
33
+ }, (_props$controlProps4 = props.controlProps) !== null && _props$controlProps4 !== void 0 && _props$controlProps4.unreadMessageString ? (_props$controlProps5 = props.controlProps) === null || _props$controlProps5 === void 0 ? void 0 : _props$controlProps5.unreadMessageString : defaultChatButtonControlProps.unreadMessageString));
34
+ }
35
+
36
+ return null;
26
37
  }
27
38
 
28
39
  function IconContainer(props, parentId) {
@@ -39,7 +50,7 @@ function IconContainer(props, parentId) {
39
50
  }
40
51
 
41
52
  function TextContainer(props, parentId) {
42
- var _props$styleProps5, _props$styleProps6, _props$styleProps7, _props$controlProps2, _props$controlProps3, _props$controlProps4, _props$controlProps5, _props$controlProps6, _props$controlProps7, _props$componentOverr3, _props$styleProps8, _props$styleProps8$cl, _props$componentOverr4, _props$styleProps9, _props$styleProps9$cl, _props$componentOverr5, _props$styleProps10, _props$styleProps10$c;
53
+ var _props$styleProps5, _props$styleProps6, _props$styleProps7, _props$controlProps6, _props$controlProps7, _props$controlProps8, _props$controlProps9, _props$controlProps10, _props$controlProps11, _props$componentOverr3, _props$styleProps8, _props$styleProps8$cl, _props$componentOverr4, _props$styleProps9, _props$styleProps9$cl, _props$componentOverr5, _props$styleProps10, _props$styleProps10$c;
43
54
 
44
55
  const textContainerStyles = {
45
56
  root: Object.assign({}, defaultChatButtonTextContainerStyles, (_props$styleProps5 = props.styleProps) === null || _props$styleProps5 === void 0 ? void 0 : _props$styleProps5.textContainerStyleProps)
@@ -50,12 +61,12 @@ function TextContainer(props, parentId) {
50
61
  const subtitleStyles = {
51
62
  root: Object.assign({}, defaultChatButtonSubTitleStyles, (_props$styleProps7 = props.styleProps) === null || _props$styleProps7 === void 0 ? void 0 : _props$styleProps7.subtitleStyleProps)
52
63
  };
53
- const hideChatTitle = ((_props$controlProps2 = props.controlProps) === null || _props$controlProps2 === void 0 ? void 0 : _props$controlProps2.hideChatTitle) ?? (defaultChatButtonControlProps === null || defaultChatButtonControlProps === void 0 ? void 0 : defaultChatButtonControlProps.hideChatTitle);
54
- const hideChatSubtitle = ((_props$controlProps3 = props.controlProps) === null || _props$controlProps3 === void 0 ? void 0 : _props$controlProps3.hideChatSubtitle) ?? (defaultChatButtonControlProps === null || defaultChatButtonControlProps === void 0 ? void 0 : defaultChatButtonControlProps.hideChatSubtitle);
55
- const titleDir = ((_props$controlProps4 = props.controlProps) === null || _props$controlProps4 === void 0 ? void 0 : _props$controlProps4.dir) ?? (defaultChatButtonControlProps === null || defaultChatButtonControlProps === void 0 ? void 0 : defaultChatButtonControlProps.dir);
56
- const titleText = ((_props$controlProps5 = props.controlProps) === null || _props$controlProps5 === void 0 ? void 0 : _props$controlProps5.titleText) ?? (defaultChatButtonControlProps === null || defaultChatButtonControlProps === void 0 ? void 0 : defaultChatButtonControlProps.titleText);
57
- const subtitleDir = ((_props$controlProps6 = props.controlProps) === null || _props$controlProps6 === void 0 ? void 0 : _props$controlProps6.dir) ?? (defaultChatButtonControlProps === null || defaultChatButtonControlProps === void 0 ? void 0 : defaultChatButtonControlProps.dir);
58
- const subtitleText = ((_props$controlProps7 = props.controlProps) === null || _props$controlProps7 === void 0 ? void 0 : _props$controlProps7.subtitleText) ?? (defaultChatButtonControlProps === null || defaultChatButtonControlProps === void 0 ? void 0 : defaultChatButtonControlProps.subtitleText);
64
+ const hideChatTitle = ((_props$controlProps6 = props.controlProps) === null || _props$controlProps6 === void 0 ? void 0 : _props$controlProps6.hideChatTitle) ?? (defaultChatButtonControlProps === null || defaultChatButtonControlProps === void 0 ? void 0 : defaultChatButtonControlProps.hideChatTitle);
65
+ const hideChatSubtitle = ((_props$controlProps7 = props.controlProps) === null || _props$controlProps7 === void 0 ? void 0 : _props$controlProps7.hideChatSubtitle) ?? (defaultChatButtonControlProps === null || defaultChatButtonControlProps === void 0 ? void 0 : defaultChatButtonControlProps.hideChatSubtitle);
66
+ const titleDir = ((_props$controlProps8 = props.controlProps) === null || _props$controlProps8 === void 0 ? void 0 : _props$controlProps8.dir) ?? (defaultChatButtonControlProps === null || defaultChatButtonControlProps === void 0 ? void 0 : defaultChatButtonControlProps.dir);
67
+ const titleText = ((_props$controlProps9 = props.controlProps) === null || _props$controlProps9 === void 0 ? void 0 : _props$controlProps9.titleText) ?? (defaultChatButtonControlProps === null || defaultChatButtonControlProps === void 0 ? void 0 : defaultChatButtonControlProps.titleText);
68
+ const subtitleDir = ((_props$controlProps10 = props.controlProps) === null || _props$controlProps10 === void 0 ? void 0 : _props$controlProps10.dir) ?? (defaultChatButtonControlProps === null || defaultChatButtonControlProps === void 0 ? void 0 : defaultChatButtonControlProps.dir);
69
+ const subtitleText = ((_props$controlProps11 = props.controlProps) === null || _props$controlProps11 === void 0 ? void 0 : _props$controlProps11.subtitleText) ?? (defaultChatButtonControlProps === null || defaultChatButtonControlProps === void 0 ? void 0 : defaultChatButtonControlProps.subtitleText);
59
70
  return decodeComponentString((_props$componentOverr3 = props.componentOverrides) === null || _props$componentOverr3 === void 0 ? void 0 : _props$componentOverr3.textContainer) || /*#__PURE__*/React.createElement(Stack, {
60
71
  styles: textContainerStyles,
61
72
  className: (_props$styleProps8 = props.styleProps) === null || _props$styleProps8 === void 0 ? void 0 : (_props$styleProps8$cl = _props$styleProps8.classNames) === null || _props$styleProps8$cl === void 0 ? void 0 : _props$styleProps8$cl.textContainerClassName,
@@ -76,23 +87,23 @@ function TextContainer(props, parentId) {
76
87
  }
77
88
 
78
89
  function ChatButton(props) {
79
- var _props$controlProps8, _props$controlProps9, _props$controlProps10, _props$controlProps11, _props$controlProps12, _props$controlProps13, _props$controlProps14, _props$controlProps15, _props$styleProps11;
90
+ var _props$controlProps12, _props$controlProps13, _props$controlProps14, _props$controlProps15, _props$controlProps16, _props$controlProps17, _props$controlProps18, _props$controlProps19, _props$styleProps11;
80
91
 
81
- const elementId = ((_props$controlProps8 = props.controlProps) === null || _props$controlProps8 === void 0 ? void 0 : _props$controlProps8.id) ?? "lcw-components-chat-button";
82
- const defaultAriaLabel = ((_props$controlProps9 = props.controlProps) === null || _props$controlProps9 === void 0 ? void 0 : _props$controlProps9.ariaLabel) ?? "live chat button";
83
- const defaultRole = ((_props$controlProps10 = props.controlProps) === null || _props$controlProps10 === void 0 ? void 0 : _props$controlProps10.role) ?? (defaultChatButtonControlProps === null || defaultChatButtonControlProps === void 0 ? void 0 : defaultChatButtonControlProps.role);
84
- const containersDir = ((_props$controlProps11 = props.controlProps) === null || _props$controlProps11 === void 0 ? void 0 : _props$controlProps11.dir) ?? (defaultChatButtonControlProps === null || defaultChatButtonControlProps === void 0 ? void 0 : defaultChatButtonControlProps.dir);
85
- const hideChatButton = ((_props$controlProps12 = props.controlProps) === null || _props$controlProps12 === void 0 ? void 0 : _props$controlProps12.hideChatButton) ?? (defaultChatButtonControlProps === null || defaultChatButtonControlProps === void 0 ? void 0 : defaultChatButtonControlProps.hideChatButton);
86
- const hideChatIcon = ((_props$controlProps13 = props.controlProps) === null || _props$controlProps13 === void 0 ? void 0 : _props$controlProps13.hideChatIcon) ?? (defaultChatButtonControlProps === null || defaultChatButtonControlProps === void 0 ? void 0 : defaultChatButtonControlProps.hideChatIcon);
87
- const hideChatTextContainer = ((_props$controlProps14 = props.controlProps) === null || _props$controlProps14 === void 0 ? void 0 : _props$controlProps14.hideChatTextContainer) ?? (defaultChatButtonControlProps === null || defaultChatButtonControlProps === void 0 ? void 0 : defaultChatButtonControlProps.hideChatTextContainer);
88
- const hideNotificationBubble = ((_props$controlProps15 = props.controlProps) === null || _props$controlProps15 === void 0 ? void 0 : _props$controlProps15.hideNotificationBubble) ?? (defaultChatButtonControlProps === null || defaultChatButtonControlProps === void 0 ? void 0 : defaultChatButtonControlProps.hideNotificationBubble);
92
+ const elementId = ((_props$controlProps12 = props.controlProps) === null || _props$controlProps12 === void 0 ? void 0 : _props$controlProps12.id) ?? "lcw-components-chat-button";
93
+ const defaultAriaLabel = ((_props$controlProps13 = props.controlProps) === null || _props$controlProps13 === void 0 ? void 0 : _props$controlProps13.ariaLabel) ?? "live chat button";
94
+ const defaultRole = ((_props$controlProps14 = props.controlProps) === null || _props$controlProps14 === void 0 ? void 0 : _props$controlProps14.role) ?? (defaultChatButtonControlProps === null || defaultChatButtonControlProps === void 0 ? void 0 : defaultChatButtonControlProps.role);
95
+ const containersDir = ((_props$controlProps15 = props.controlProps) === null || _props$controlProps15 === void 0 ? void 0 : _props$controlProps15.dir) ?? (defaultChatButtonControlProps === null || defaultChatButtonControlProps === void 0 ? void 0 : defaultChatButtonControlProps.dir);
96
+ const hideChatButton = ((_props$controlProps16 = props.controlProps) === null || _props$controlProps16 === void 0 ? void 0 : _props$controlProps16.hideChatButton) ?? (defaultChatButtonControlProps === null || defaultChatButtonControlProps === void 0 ? void 0 : defaultChatButtonControlProps.hideChatButton);
97
+ const hideChatIcon = ((_props$controlProps17 = props.controlProps) === null || _props$controlProps17 === void 0 ? void 0 : _props$controlProps17.hideChatIcon) ?? (defaultChatButtonControlProps === null || defaultChatButtonControlProps === void 0 ? void 0 : defaultChatButtonControlProps.hideChatIcon);
98
+ const hideChatTextContainer = ((_props$controlProps18 = props.controlProps) === null || _props$controlProps18 === void 0 ? void 0 : _props$controlProps18.hideChatTextContainer) ?? (defaultChatButtonControlProps === null || defaultChatButtonControlProps === void 0 ? void 0 : defaultChatButtonControlProps.hideChatTextContainer);
99
+ const hideNotificationBubble = ((_props$controlProps19 = props.controlProps) === null || _props$controlProps19 === void 0 ? void 0 : _props$controlProps19.hideNotificationBubble) ?? (defaultChatButtonControlProps === null || defaultChatButtonControlProps === void 0 ? void 0 : defaultChatButtonControlProps.hideNotificationBubble);
89
100
  const chatButtonGroupStyles = {
90
101
  root: Object.assign({}, defaultChatButtonGeneralStyles, (_props$styleProps11 = props.styleProps) === null || _props$styleProps11 === void 0 ? void 0 : _props$styleProps11.generalStyleProps)
91
102
  };
92
103
  const handleInitiateChatClick = useCallback(() => {
93
- var _props$controlProps16;
104
+ var _props$controlProps20;
94
105
 
95
- if ((_props$controlProps16 = props.controlProps) !== null && _props$controlProps16 !== void 0 && _props$controlProps16.onClick) {
106
+ if ((_props$controlProps20 = props.controlProps) !== null && _props$controlProps20 !== void 0 && _props$controlProps20.onClick) {
96
107
  const customEvent = {
97
108
  elementType: ElementType.ChatButton,
98
109
  elementId: elementId,
@@ -119,7 +130,7 @@ function ChatButton(props) {
119
130
  onClick: handleInitiateChatClick,
120
131
  onKeyDown: handleInputKeyDown,
121
132
  "aria-label": defaultAriaLabel
122
- }, !hideChatIcon && IconContainer(props, elementId), !hideChatTextContainer && TextContainer(props, elementId), !hideNotificationBubble && NotificationBubble(props, elementId)));
133
+ }, !hideChatIcon && IconContainer(props, elementId), !hideNotificationBubble && NotificationBubble(props, elementId), !hideChatTextContainer && TextContainer(props, elementId)));
123
134
  }
124
135
 
125
136
  export default ChatButton;
@@ -14,5 +14,8 @@ export const defaultChatButtonControlProps = {
14
14
  hideChatTextContainer: false,
15
15
  hideChatSubtitle: false,
16
16
  hideChatTitle: false,
17
- hideNotificationBubble: true
17
+ hideNotificationBubble: true,
18
+ unreadMessageString: "new messages",
19
+ largeUnreadMessageString: "99+",
20
+ ariaLabelUnreadMessageString: "you have new messages"
18
21
  };
@@ -1,8 +1,8 @@
1
- import downloadChatButtonImage from "../../../../assets/imgs/chat.svg";
1
+ import { ModernChatIconBase64 } from "../../../../assets/Icons";
2
2
  export const defaultChatButtonIconContainerStyles = {
3
3
  align: "center",
4
4
  backgroundColor: "#315FA2",
5
- backgroundImage: `url(${downloadChatButtonImage})`,
5
+ backgroundImage: `url(${ModernChatIconBase64})`,
6
6
  backgroundPosition: "center",
7
7
  backgroundRepeat: "no-repeat",
8
8
  backgroundSize: "65% 65%",
@@ -4,19 +4,37 @@ import { BroadcastService } from "../../../services/BroadcastService";
4
4
  import { ElementType } from "../../../common/Constants";
5
5
 
6
6
  function CommandButton(props) {
7
+ var _props$styles, _props$styles2, _props$styles3, _props$hoverStyles, _props$focusStyles;
8
+
7
9
  //imageIconProps > iconName
8
10
  const iconProp = props.imageIconProps ? {
9
11
  imageProps: props.imageIconProps
10
12
  } : {
11
- iconName: props.iconName,
12
- styles: {
13
- root: props.styles
14
- }
13
+ iconName: props.iconName
15
14
  };
16
- const iconButtonStyles = {
17
- root: props.styles,
15
+ const buttonStyles = {
16
+ icon: props.styles,
17
+ root: {
18
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
19
+ width: props === null || props === void 0 ? void 0 : (_props$styles = props.styles) === null || _props$styles === void 0 ? void 0 : _props$styles.width,
20
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
21
+ height: props === null || props === void 0 ? void 0 : (_props$styles2 = props.styles) === null || _props$styles2 === void 0 ? void 0 : _props$styles2.height,
22
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
23
+ backgroundColor: props === null || props === void 0 ? void 0 : (_props$styles3 = props.styles) === null || _props$styles3 === void 0 ? void 0 : _props$styles3.backgroundColor,
24
+ selectors: {
25
+ ":hover .ms-Button-icon": {
26
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
27
+ color: props === null || props === void 0 ? void 0 : (_props$hoverStyles = props.hoverStyles) === null || _props$hoverStyles === void 0 ? void 0 : _props$hoverStyles.color
28
+ },
29
+ ":active .ms-Button-icon": {
30
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
31
+ color: props === null || props === void 0 ? void 0 : (_props$focusStyles = props.focusStyles) === null || _props$focusStyles === void 0 ? void 0 : _props$focusStyles.color
32
+ }
33
+ }
34
+ },
18
35
  rootHovered: props.hoverStyles,
19
- rootFocused: props.focusStyles
36
+ rootFocused: props.focusStyles,
37
+ rootPressed: props.hoverStyles
20
38
  };
21
39
  const handleOnClick = useCallback(() => {
22
40
  if (props !== null && props !== void 0 && props.onClick) {
@@ -36,14 +54,14 @@ function CommandButton(props) {
36
54
  onClick: handleOnClick,
37
55
  disabled: props.disabled,
38
56
  className: props.className,
39
- styles: iconButtonStyles
57
+ styles: buttonStyles
40
58
  }), props.type === "icon" && /*#__PURE__*/React.createElement(IconButton, {
41
59
  id: props.id,
42
60
  iconProps: iconProp,
43
- title: props.ariaLabel,
61
+ title: props.hideButtonTitle ? undefined : props.ariaLabel,
44
62
  ariaLabel: props.ariaLabel,
45
63
  disabled: props.disabled,
46
- styles: iconButtonStyles,
64
+ styles: buttonStyles,
47
65
  onClick: handleOnClick,
48
66
  className: props.className
49
67
  }));
@@ -1,13 +1,13 @@
1
1
  import React from "react";
2
2
  import { ElementType } from "../../../common/Constants";
3
- import CommandButton from "../../common/commandbutton/CommandButton";
3
+ import CommandButton from "../commandbutton/CommandButton";
4
4
 
5
5
  function CloseButton(props) {
6
6
  const {
7
7
  type
8
8
  } = props;
9
9
  const customEvent = {
10
- elementType: ElementType.HeaderCloseButton,
10
+ elementType: ElementType.CloseButton,
11
11
  elementId: props === null || props === void 0 ? void 0 : props.id,
12
12
  eventName: "OnClick"
13
13
  };
@@ -23,7 +23,8 @@ function CloseButton(props) {
23
23
  onClick: props.onClick,
24
24
  ariaLabel: props.ariaLabel ?? "Close",
25
25
  className: props.className,
26
- customEvent: customEvent
26
+ customEvent: customEvent,
27
+ hideButtonTitle: props.hideButtonTitle
27
28
  });
28
29
  }
29
30
 
@@ -17,7 +17,7 @@ import { defaultConfirmationPaneConfirmButtonFocusedStyles } from "./common/defa
17
17
  import { defaultConfirmationPaneCancelButtonFocusedStyles } from "./common/defaultStyles/defaultConfirmationPaneCancelButtonFocusedStyles";
18
18
 
19
19
  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$controlProps6, _props$controlProps7, _props$controlProps8, _props$componentOverr, _props$styleProps11, _props$styleProps11$c, _props$controlProps9, _props$controlProps10, _props$componentOverr2, _props$styleProps12, _props$styleProps12$c, _props$controlProps11, _props$styleProps13, _props$styleProps13$c, _props$controlProps12, _props$componentOverr3, _props$styleProps14, _props$styleProps14$c, _props$controlProps13, _props$controlProps14, _props$controlProps15, _props$componentOverr4, _props$styleProps15, _props$styleProps15$c, _props$controlProps16, _props$controlProps17;
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
21
 
22
22
  const elementId = ((_props$controlProps = props.controlProps) === null || _props$controlProps === void 0 ? void 0 : _props$controlProps.id) ?? defaultConfirmationPaneControlProps.id;
23
23
  const handleConfirmClick = useCallback(() => {
@@ -65,12 +65,14 @@ function ConfirmationPane(props) {
65
65
  const confirmButtonStyles = {
66
66
  root: Object.assign({}, defaultConfirmationPaneConfirmButtonStyles, (_props$styleProps5 = props.styleProps) === null || _props$styleProps5 === void 0 ? void 0 : _props$styleProps5.confirmButtonStyleProps),
67
67
  rootHovered: Object.assign({}, defaultConfirmationPaneConfirmButtonHoveredStyles, (_props$styleProps6 = props.styleProps) === null || _props$styleProps6 === void 0 ? void 0 : _props$styleProps6.confirmButtonHoveredStyleProps),
68
- rootFocused: Object.assign({}, defaultConfirmationPaneConfirmButtonFocusedStyles, (_props$styleProps7 = props.styleProps) === null || _props$styleProps7 === void 0 ? void 0 : _props$styleProps7.confirmButtonFocusedStyleProps)
68
+ rootFocused: Object.assign({}, defaultConfirmationPaneConfirmButtonFocusedStyles, (_props$styleProps7 = props.styleProps) === null || _props$styleProps7 === void 0 ? void 0 : _props$styleProps7.confirmButtonFocusedStyleProps),
69
+ rootPressed: Object.assign({}, defaultConfirmationPaneConfirmButtonHoveredStyles, (_props$styleProps8 = props.styleProps) === null || _props$styleProps8 === void 0 ? void 0 : _props$styleProps8.confirmButtonHoveredStyleProps)
69
70
  };
70
71
  const cancelButtonStyles = {
71
- root: Object.assign({}, defaultConfirmationPaneCancelButtonStyles, (_props$styleProps8 = props.styleProps) === null || _props$styleProps8 === void 0 ? void 0 : _props$styleProps8.cancelButtonStyleProps),
72
- rootHovered: Object.assign({}, defaultConfirmationPaneCancelButtonHoveredStyles, (_props$styleProps9 = props.styleProps) === null || _props$styleProps9 === void 0 ? void 0 : _props$styleProps9.cancelButtonHoveredStyleProps),
73
- rootFocused: Object.assign({}, defaultConfirmationPaneCancelButtonFocusedStyles, (_props$styleProps10 = props.styleProps) === null || _props$styleProps10 === void 0 ? void 0 : _props$styleProps10.cancelButtonFocusedStyleProps)
72
+ root: Object.assign({}, defaultConfirmationPaneCancelButtonStyles, (_props$styleProps9 = props.styleProps) === null || _props$styleProps9 === void 0 ? void 0 : _props$styleProps9.cancelButtonStyleProps),
73
+ rootHovered: Object.assign({}, defaultConfirmationPaneCancelButtonHoveredStyles, (_props$styleProps10 = props.styleProps) === null || _props$styleProps10 === void 0 ? void 0 : _props$styleProps10.cancelButtonHoveredStyleProps),
74
+ rootFocused: Object.assign({}, defaultConfirmationPaneCancelButtonFocusedStyles, (_props$styleProps11 = props.styleProps) === null || _props$styleProps11 === void 0 ? void 0 : _props$styleProps11.cancelButtonFocusedStyleProps),
75
+ rootPressed: Object.assign({}, defaultConfirmationPaneCancelButtonHoveredStyles, (_props$styleProps12 = props.styleProps) === null || _props$styleProps12 === void 0 ? void 0 : _props$styleProps12.cancelButtonHoveredStyleProps)
74
76
  };
75
77
  return /*#__PURE__*/React.createElement(React.Fragment, null, !((_props$controlProps6 = props.controlProps) !== null && _props$controlProps6 !== void 0 && _props$controlProps6.hideConfirmationPane) && /*#__PURE__*/React.createElement(Stack, {
76
78
  id: elementId,
@@ -81,29 +83,29 @@ function ConfirmationPane(props) {
81
83
  "aria-labelledby": elementId + "-title",
82
84
  "aria-describedby": elementId + "-subtitle"
83
85
  }, !((_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, {
84
- className: (_props$styleProps11 = props.styleProps) === null || _props$styleProps11 === void 0 ? void 0 : (_props$styleProps11$c = _props$styleProps11.classNames) === null || _props$styleProps11$c === void 0 ? void 0 : _props$styleProps11$c.titleClassName,
86
+ 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,
85
87
  styles: titleStyles,
86
88
  tabIndex: -1,
87
89
  id: elementId + "-title"
88
90
  }, ((_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, {
89
- 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.subtitleClassName,
91
+ 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,
90
92
  styles: subtitleStyles,
91
93
  tabIndex: -1,
92
94
  id: elementId + "-subtitle"
93
95
  }, ((_props$controlProps11 = props.controlProps) === null || _props$controlProps11 === void 0 ? void 0 : _props$controlProps11.subtitleText) || defaultConfirmationPaneControlProps.subtitleText)), /*#__PURE__*/React.createElement(Stack, {
94
96
  horizontal: true,
95
- 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.buttonGroupClassName,
97
+ 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,
96
98
  styles: buttonGroupStyles,
97
99
  id: elementId + "-buttongroup"
98
100
  }, !((_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, {
99
- 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.confirmButtonClassName,
101
+ 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,
100
102
  styles: confirmButtonStyles,
101
103
  text: ((_props$controlProps13 = props.controlProps) === null || _props$controlProps13 === void 0 ? void 0 : _props$controlProps13.confirmButtonText) || defaultConfirmationPaneControlProps.confirmButtonText,
102
104
  onClick: handleConfirmClick,
103
105
  id: elementId + "-confirmbutton",
104
106
  ariaLabel: ((_props$controlProps14 = props.controlProps) === null || _props$controlProps14 === void 0 ? void 0 : _props$controlProps14.confirmButtonAriaLabel) || defaultConfirmationPaneControlProps.confirmButtonAriaLabel
105
107
  })), !((_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, {
106
- 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.cancelButtonClassName,
108
+ 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,
107
109
  styles: cancelButtonStyles,
108
110
  text: ((_props$controlProps16 = props.controlProps) === null || _props$controlProps16 === void 0 ? void 0 : _props$controlProps16.cancelButtonText) || defaultConfirmationPaneControlProps.cancelButtonText,
109
111
  onClick: handleCancelClick,
@@ -1,4 +1,4 @@
1
- function _extends() { _extends = Object.assign || 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); }
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
2
 
3
3
  import * as React from "react";
4
4
  import { Stack, initializeIcons } from "@fluentui/react";
@@ -1,7 +1,4 @@
1
- import lcwAudioOff from "../../../../assets/imgs/lcwAudioOff.svg";
2
- import lcwAudioOn from "../../../../assets/imgs/lcwAudioOn.svg";
3
- import transcriptDownloadIcon from "../../../../assets/imgs/transcriptDownloadIcon.svg";
4
- import transcriptEmailIcon from "../../../../assets/imgs/transcriptEmailIcon.svg";
1
+ import { AudioNotificationOffIconBase64, AudioNotificationOnIconBase64, TranscriptDownloadIconBase64, TranscriptEmailIconBase64 } from "../../../../assets/Icons";
5
2
  export const customFooterControlProps = {
6
3
  id: "oc-lcw-footer",
7
4
  hideDownloadTranscriptButton: false,
@@ -29,7 +26,7 @@ export const customFooterControlProps = {
29
26
  id: "oc-lcw-footer-downloadtranscript-button",
30
27
  type: "icon",
31
28
  imageIconProps: {
32
- src: transcriptDownloadIcon
29
+ src: TranscriptDownloadIconBase64
33
30
  },
34
31
  ariaLabel: "Download chat transcript"
35
32
  },
@@ -37,7 +34,7 @@ export const customFooterControlProps = {
37
34
  id: "oc-lcw-footer-emailtranscript-button",
38
35
  type: "icon",
39
36
  imageIconProps: {
40
- src: transcriptEmailIcon
37
+ src: TranscriptEmailIconBase64
41
38
  },
42
39
  ariaLabel: "Email Transcript"
43
40
  },
@@ -46,10 +43,10 @@ export const customFooterControlProps = {
46
43
  ariaLabel: "Turn sound off",
47
44
  toggleAriaLabel: "Turn sound on",
48
45
  imageIconProps: {
49
- src: lcwAudioOn
46
+ src: AudioNotificationOnIconBase64
50
47
  },
51
48
  imageToggleIconProps: {
52
- src: lcwAudioOff
49
+ src: AudioNotificationOffIconBase64
53
50
  }
54
51
  }
55
52
  };
@@ -4,31 +4,46 @@ import { BroadcastService } from "../../../services/BroadcastService";
4
4
  import { ElementType } from "../../../common/Constants";
5
5
 
6
6
  function AudioNotificationButton(props) {
7
+ var _props$styles, _props$styles2, _props$styles3, _props$hoverStyles, _props$focusStyles;
8
+
7
9
  const {
8
10
  disabled
9
11
  } = props;
10
12
  const [muted, setMuted] = useState(props.isAudioMuted);
11
13
  const iconButtonStyles = {
12
- root: props === null || props === void 0 ? void 0 : props.styles,
13
- rootHovered: props === null || props === void 0 ? void 0 : props.hoverStyles,
14
- rootFocused: props === null || props === void 0 ? void 0 : props.focusStyles
14
+ icon: props.styles,
15
+ root: {
16
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
17
+ width: props === null || props === void 0 ? void 0 : (_props$styles = props.styles) === null || _props$styles === void 0 ? void 0 : _props$styles.width,
18
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
19
+ height: props === null || props === void 0 ? void 0 : (_props$styles2 = props.styles) === null || _props$styles2 === void 0 ? void 0 : _props$styles2.height,
20
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
21
+ backgroundColor: props === null || props === void 0 ? void 0 : (_props$styles3 = props.styles) === null || _props$styles3 === void 0 ? void 0 : _props$styles3.backgroundColor,
22
+ selectors: {
23
+ ":hover .ms-Button-icon": {
24
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
25
+ color: props === null || props === void 0 ? void 0 : (_props$hoverStyles = props.hoverStyles) === null || _props$hoverStyles === void 0 ? void 0 : _props$hoverStyles.color
26
+ },
27
+ ":active .ms-Button-icon": {
28
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
29
+ color: props === null || props === void 0 ? void 0 : (_props$focusStyles = props.focusStyles) === null || _props$focusStyles === void 0 ? void 0 : _props$focusStyles.color
30
+ }
31
+ }
32
+ },
33
+ rootHovered: props.hoverStyles,
34
+ rootFocused: props.focusStyles,
35
+ rootPressed: props.hoverStyles
15
36
  }; //imageIconProps > iconName
16
37
 
17
38
  const volume0Icon = props.imageToggleIconProps ? {
18
39
  imageProps: props === null || props === void 0 ? void 0 : props.imageToggleIconProps
19
40
  } : {
20
- iconName: (props === null || props === void 0 ? void 0 : props.toggleIconName) ?? "Volume0",
21
- styles: {
22
- root: props.styles
23
- }
41
+ iconName: (props === null || props === void 0 ? void 0 : props.toggleIconName) ?? "Volume0"
24
42
  };
25
43
  const volume3Icon = props.imageIconProps ? {
26
44
  imageProps: props === null || props === void 0 ? void 0 : props.imageIconProps
27
45
  } : {
28
- iconName: (props === null || props === void 0 ? void 0 : props.iconName) ?? "Volume3",
29
- styles: {
30
- root: props.styles
31
- }
46
+ iconName: (props === null || props === void 0 ? void 0 : props.iconName) ?? "Volume3"
32
47
  };
33
48
  const handleOnClick = useCallback(() => {
34
49
  setMuted(!muted);
@@ -1,8 +1,8 @@
1
- function _extends() { _extends = Object.assign || 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); }
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
2
 
3
3
  import * as React from "react";
4
4
  import { Image, Label, Stack, initializeIcons } from "@fluentui/react";
5
- import CloseButton from "./subcomponents/CloseButton";
5
+ import CloseButton from "../common/subcomponents/CloseButton";
6
6
  import MinimizeButton from "./subcomponents/MinimizeButton";
7
7
  import { decodeComponentString } from "../../common/decodeComponentString";
8
8
  import { defaultHeaderProps } from "./common/defaultProps/defaultHeaderProps";
@@ -1,4 +1,4 @@
1
- import chatIcon from "../../../../assets/imgs/chatIcon.svg";
1
+ import { LegacyChatIconBase64 } from "../../../../assets/Icons";
2
2
  export const azureHeaderControlProps = {
3
3
  id: "oc-lcw-header",
4
4
  hideIcon: false,
@@ -31,7 +31,7 @@ export const azureHeaderControlProps = {
31
31
  },
32
32
  headerIconProps: {
33
33
  id: "oc-lcw-header-icon",
34
- src: chatIcon,
34
+ src: LegacyChatIconBase64,
35
35
  alt: "Chat Icon"
36
36
  },
37
37
  headerTitleProps: {
@@ -1,6 +1,4 @@
1
- import chatIcon from "../../../../assets/imgs/chatIcon.svg";
2
- import closeChatButton from "../../../../assets/imgs/closeChatButton.svg";
3
- import minimizeChatButton from "../../../../assets/imgs/minimizeChatButton.svg";
1
+ import { CloseChatButtonIconBase64, LegacyChatIconBase64, MinimizeChatButtonIconBase64 } from "../../../../assets/Icons";
4
2
  export const customHeaderControlProps = {
5
3
  id: "oc-lcw-header",
6
4
  hideIcon: false,
@@ -26,7 +24,7 @@ export const customHeaderControlProps = {
26
24
  id: "oc-lcw-header-minimizebutton",
27
25
  type: "icon",
28
26
  imageIconProps: {
29
- src: minimizeChatButton,
27
+ src: MinimizeChatButtonIconBase64,
30
28
  styles: {
31
29
  image: {
32
30
  height: "16px",
@@ -39,7 +37,7 @@ export const customHeaderControlProps = {
39
37
  id: "oc-lcw-header-closebutton",
40
38
  type: "icon",
41
39
  imageIconProps: {
42
- src: closeChatButton,
40
+ src: CloseChatButtonIconBase64,
43
41
  styles: {
44
42
  image: {
45
43
  height: "16px",
@@ -50,7 +48,7 @@ export const customHeaderControlProps = {
50
48
  },
51
49
  headerIconProps: {
52
50
  id: "oc-lcw-header-icon",
53
- src: chatIcon,
51
+ src: LegacyChatIconBase64,
54
52
  alt: "Chat Icon"
55
53
  },
56
54
  headerTitleProps: {
@@ -1,4 +1,4 @@
1
- import chatIcon from "../../../../assets/imgs/chat.svg";
1
+ import { ModernChatIconBase64 } from "../../../../assets/Icons";
2
2
  export const defaultHeaderControlProps = {
3
3
  id: "oc-lcw-header",
4
4
  hideIcon: false,
@@ -32,7 +32,7 @@ export const defaultHeaderControlProps = {
32
32
  },
33
33
  headerIconProps: {
34
34
  id: "oc-lcw-header-icon",
35
- src: chatIcon,
35
+ src: ModernChatIconBase64,
36
36
  alt: "Chat Icon"
37
37
  },
38
38
  headerTitleProps: {