@microsoft/omnichannel-chat-components 0.1.0-main.07f52ee → 0.1.0-main.099196c

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 (85) hide show
  1. package/lib/cjs/assets/Icons.js +48 -0
  2. package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/common/defaultProps/defaultCurrentCallControlPropsRtl.js +6 -16
  3. package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/componentOverrideProps.js +2 -4
  4. package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/defaultIncomingCallControlPropsRtl.js +4 -10
  5. package/lib/cjs/components/chatbutton/common/defaultStyles/defaultChatButtonIconContainerStyles.js +2 -4
  6. package/lib/cjs/components/footer/common/defaultProps/customFooterControlProps.js +5 -13
  7. package/lib/cjs/components/header/common/defaultProps/azureHeaderControlProps.js +2 -4
  8. package/lib/cjs/components/header/common/defaultProps/customHeaderControlProps.js +4 -10
  9. package/lib/cjs/components/header/common/defaultProps/defaultHeaderControlProps.js +2 -4
  10. package/lib/cjs/components/inputvalidationpane/InputValidationPane.js +46 -18
  11. package/lib/cjs/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneIconImageProps.js +2 -4
  12. package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeStyles/presetThreeLoadingPaneIconImageProps.js +2 -4
  13. package/lib/cjs/components/loadingpane/common/presetTwoProps/presetTwoStyles/presetTwoLoadingPaneGeneralStyles.js +2 -4
  14. package/lib/cjs/components/outofofficehourspane/common/presetTwoProps/presetTwoStyles/presetTwoOOOHPaneGeneralStyles.js +2 -4
  15. package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneCloseButtonStyles.js +2 -4
  16. package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneHeaderContainerStyles.js +2 -4
  17. package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneIconStyles.js +2 -4
  18. package/lib/cjs/index.js +128 -0
  19. package/lib/esm/assets/Icons.js +21 -0
  20. package/lib/esm/components/callingcontainer/subcomponents/CurrentCall/common/defaultProps/defaultCurrentCallControlPropsRtl.js +6 -10
  21. package/lib/esm/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/componentOverrideProps.js +2 -2
  22. package/lib/esm/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/defaultIncomingCallControlPropsRtl.js +4 -6
  23. package/lib/esm/components/chatbutton/common/defaultStyles/defaultChatButtonIconContainerStyles.js +2 -2
  24. package/lib/esm/components/footer/common/defaultProps/customFooterControlProps.js +5 -8
  25. package/lib/esm/components/header/common/defaultProps/azureHeaderControlProps.js +2 -2
  26. package/lib/esm/components/header/common/defaultProps/customHeaderControlProps.js +4 -6
  27. package/lib/esm/components/header/common/defaultProps/defaultHeaderControlProps.js +2 -2
  28. package/lib/esm/components/inputvalidationpane/InputValidationPane.js +46 -18
  29. package/lib/esm/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneIconImageProps.js +2 -2
  30. package/lib/esm/components/loadingpane/common/presetThreeProps/presetThreeStyles/presetThreeLoadingPaneIconImageProps.js +2 -2
  31. package/lib/esm/components/loadingpane/common/presetTwoProps/presetTwoStyles/presetTwoLoadingPaneGeneralStyles.js +2 -2
  32. package/lib/esm/components/outofofficehourspane/common/presetTwoProps/presetTwoStyles/presetTwoOOOHPaneGeneralStyles.js +2 -2
  33. package/lib/esm/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneCloseButtonStyles.js +2 -2
  34. package/lib/esm/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneHeaderContainerStyles.js +2 -2
  35. package/lib/esm/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneIconStyles.js +2 -2
  36. package/lib/esm/index.js +2 -1
  37. package/lib/types/assets/Icons.d.ts +21 -0
  38. package/lib/types/index.d.ts +1 -0
  39. package/package.json +4 -9
  40. package/lib/cjs/assets/assets.d.js +0 -1
  41. package/lib/cjs/assets/imgs/ChatBubble.svg +0 -28
  42. package/lib/cjs/assets/imgs/ChatReconnectPopupIcon.png +0 -0
  43. package/lib/cjs/assets/imgs/Proactive_banner.png +0 -0
  44. package/lib/cjs/assets/imgs/agent.png +0 -0
  45. package/lib/cjs/assets/imgs/callacceptbutton.svg +0 -3
  46. package/lib/cjs/assets/imgs/callrejectbutton.svg +0 -3
  47. package/lib/cjs/assets/imgs/chat.svg +0 -47
  48. package/lib/cjs/assets/imgs/chatIcon.svg +0 -16
  49. package/lib/cjs/assets/imgs/closeButton.svg +0 -3
  50. package/lib/cjs/assets/imgs/closeChatButton.svg +0 -3
  51. package/lib/cjs/assets/imgs/error.svg +0 -3
  52. package/lib/cjs/assets/imgs/lcwAudioOff.svg +0 -3
  53. package/lib/cjs/assets/imgs/lcwAudioOn.svg +0 -3
  54. package/lib/cjs/assets/imgs/loading.gif +0 -0
  55. package/lib/cjs/assets/imgs/minimizeChatButton.svg +0 -3
  56. package/lib/cjs/assets/imgs/transcriptDownloadIcon.svg +0 -4
  57. package/lib/cjs/assets/imgs/transcriptEmailIcon.svg +0 -5
  58. package/lib/cjs/assets/imgs/videocallacceptbutton.svg +0 -3
  59. package/lib/cjs/assets/imgs/videooff.svg +0 -3
  60. package/lib/cjs/assets/imgs/videoon.svg +0 -3
  61. package/lib/cjs/assets/imgs/voiceoff.svg +0 -3
  62. package/lib/cjs/assets/imgs/voiceon.svg +0 -3
  63. package/lib/esm/assets/assets.d.js +0 -0
  64. package/lib/esm/assets/imgs/ChatBubble.svg +0 -28
  65. package/lib/esm/assets/imgs/ChatReconnectPopupIcon.png +0 -0
  66. package/lib/esm/assets/imgs/Proactive_banner.png +0 -0
  67. package/lib/esm/assets/imgs/agent.png +0 -0
  68. package/lib/esm/assets/imgs/callacceptbutton.svg +0 -3
  69. package/lib/esm/assets/imgs/callrejectbutton.svg +0 -3
  70. package/lib/esm/assets/imgs/chat.svg +0 -47
  71. package/lib/esm/assets/imgs/chatIcon.svg +0 -16
  72. package/lib/esm/assets/imgs/closeButton.svg +0 -3
  73. package/lib/esm/assets/imgs/closeChatButton.svg +0 -3
  74. package/lib/esm/assets/imgs/error.svg +0 -3
  75. package/lib/esm/assets/imgs/lcwAudioOff.svg +0 -3
  76. package/lib/esm/assets/imgs/lcwAudioOn.svg +0 -3
  77. package/lib/esm/assets/imgs/loading.gif +0 -0
  78. package/lib/esm/assets/imgs/minimizeChatButton.svg +0 -3
  79. package/lib/esm/assets/imgs/transcriptDownloadIcon.svg +0 -4
  80. package/lib/esm/assets/imgs/transcriptEmailIcon.svg +0 -5
  81. package/lib/esm/assets/imgs/videocallacceptbutton.svg +0 -3
  82. package/lib/esm/assets/imgs/videooff.svg +0 -3
  83. package/lib/esm/assets/imgs/videoon.svg +0 -3
  84. package/lib/esm/assets/imgs/voiceoff.svg +0 -3
  85. package/lib/esm/assets/imgs/voiceon.svg +0 -3
@@ -5,13 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.customHeaderControlProps = void 0;
7
7
 
8
- var _chatIcon = _interopRequireDefault(require("../../../../assets/imgs/chatIcon.svg"));
9
-
10
- var _closeChatButton = _interopRequireDefault(require("../../../../assets/imgs/closeChatButton.svg"));
11
-
12
- var _minimizeChatButton = _interopRequireDefault(require("../../../../assets/imgs/minimizeChatButton.svg"));
13
-
14
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
8
+ var _Icons = require("../../../../assets/Icons");
15
9
 
16
10
  const customHeaderControlProps = {
17
11
  id: "oc-lcw-header",
@@ -38,7 +32,7 @@ const customHeaderControlProps = {
38
32
  id: "oc-lcw-header-minimizebutton",
39
33
  type: "icon",
40
34
  imageIconProps: {
41
- src: _minimizeChatButton.default,
35
+ src: _Icons.MinimizeChatButtonIconBase64,
42
36
  styles: {
43
37
  image: {
44
38
  height: "16px",
@@ -51,7 +45,7 @@ const customHeaderControlProps = {
51
45
  id: "oc-lcw-header-closebutton",
52
46
  type: "icon",
53
47
  imageIconProps: {
54
- src: _closeChatButton.default,
48
+ src: _Icons.CloseChatButtonIconBase64,
55
49
  styles: {
56
50
  image: {
57
51
  height: "16px",
@@ -62,7 +56,7 @@ const customHeaderControlProps = {
62
56
  },
63
57
  headerIconProps: {
64
58
  id: "oc-lcw-header-icon",
65
- src: _chatIcon.default,
59
+ src: _Icons.LegacyChatIconBase64,
66
60
  alt: "Chat Icon"
67
61
  },
68
62
  headerTitleProps: {
@@ -5,9 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.defaultHeaderControlProps = void 0;
7
7
 
8
- var _chat = _interopRequireDefault(require("../../../../assets/imgs/chat.svg"));
9
-
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
8
+ var _Icons = require("../../../../assets/Icons");
11
9
 
12
10
  const defaultHeaderControlProps = {
13
11
  id: "oc-lcw-header",
@@ -42,7 +40,7 @@ const defaultHeaderControlProps = {
42
40
  },
43
41
  headerIconProps: {
44
42
  id: "oc-lcw-header-icon",
45
- src: _chat.default,
43
+ src: _Icons.ModernChatIconBase64,
46
44
  alt: "Chat Icon"
47
45
  },
48
46
  headerTitleProps: {
@@ -48,7 +48,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
48
48
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
49
49
 
50
50
  function InputValidationPane(props) {
51
- var _props$controlProps, _props$styleProps, _props$styleProps2, _props$styleProps3, _props$styleProps4, _props$controlProps14, _props$styleProps5, _props$styleProps6, _props$styleProps7, _props$styleProps8, _props$styleProps9, _props$styleProps10, _props$styleProps11, _props$styleProps12, _props$controlProps15, _props$styleProps13, _props$styleProps13$c, _props$controlProps16, _props$controlProps17, _props$styleProps14, _props$styleProps14$c, _props$controlProps18, _props$componentOverr, _props$styleProps15, _props$styleProps15$c, _props$controlProps19, _props$controlProps20, _props$componentOverr2, _props$styleProps16, _props$styleProps16$c, _props$controlProps21, _props$controlProps22, _props$componentOverr3, _props$styleProps17, _props$styleProps17$c, _props$controlProps23, _props$controlProps24, _props$componentOverr4, _props$styleProps18, _props$styleProps18$c, _props$controlProps25, _props$controlProps26, _props$controlProps27, _props$styleProps19, _props$styleProps19$c, _props$controlProps28, _props$componentOverr5, _props$styleProps20, _props$styleProps20$c, _props$controlProps29, _props$controlProps30, _props$controlProps31, _props$controlProps32, _props$componentOverr6, _props$styleProps21, _props$styleProps21$c, _props$controlProps33, _props$controlProps34, _props$controlProps35;
51
+ var _props$controlProps, _props$styleProps, _props$styleProps2, _props$styleProps3, _props$styleProps4, _props$controlProps14, _props$styleProps5, _props$styleProps6, _props$styleProps7, _props$styleProps8, _props$styleProps9, _props$styleProps10, _props$styleProps11, _props$styleProps12, _props$styleProps13, _props$styleProps14, _props$controlProps15, _props$styleProps15, _props$styleProps15$c, _props$controlProps16, _props$controlProps17, _props$styleProps16, _props$styleProps16$c, _props$controlProps18, _props$componentOverr, _props$styleProps17, _props$styleProps17$c, _props$controlProps19, _props$controlProps20, _props$componentOverr2, _props$styleProps18, _props$styleProps18$c, _props$controlProps21, _props$controlProps22, _props$componentOverr3, _props$styleProps19, _props$styleProps19$c, _props$controlProps23, _props$controlProps24, _props$componentOverr4, _props$styleProps20, _props$styleProps20$c, _props$controlProps25, _props$controlProps26, _props$controlProps27, _props$styleProps21, _props$styleProps21$c, _props$controlProps28, _props$componentOverr5, _props$styleProps22, _props$styleProps22$c, _props$controlProps29, _props$controlProps30, _props$controlProps31, _props$controlProps32, _props$componentOverr6, _props$styleProps23, _props$styleProps23$c, _props$controlProps33, _props$controlProps34, _props$controlProps35;
52
52
 
53
53
  const elementId = ((_props$controlProps = props.controlProps) === null || _props$controlProps === void 0 ? void 0 : _props$controlProps.id) ?? _defaultInputValidationPaneControlProps.defaultInputValidationPaneControlProps.id;
54
54
  const [inputValue, setInputValue] = (0, _react2.useState)("");
@@ -163,27 +163,55 @@ function InputValidationPane(props) {
163
163
  borderStyle: "solid"
164
164
  };
165
165
  const inputStyles = {
166
- root: Object.assign({}, _defaultInputValidationPaneInputStyles.defaultInputValidationPaneInputStyles, (_props$styleProps5 = props.styleProps) === null || _props$styleProps5 === void 0 ? void 0 : _props$styleProps5.inputStyleProps)
166
+ root: Object.assign({}, _defaultInputValidationPaneInputStyles.defaultInputValidationPaneInputStyles, (_props$styleProps5 = props.styleProps) === null || _props$styleProps5 === void 0 ? void 0 : _props$styleProps5.inputStyleProps),
167
+ field: Object.assign({}, _defaultInputValidationPaneInputStyles.defaultInputValidationPaneInputStyles, (_props$styleProps6 = props.styleProps) === null || _props$styleProps6 === void 0 ? void 0 : _props$styleProps6.inputStyleProps),
168
+ fieldGroup: undefined,
169
+ prefix: undefined,
170
+ suffix: undefined,
171
+ icon: undefined,
172
+ description: undefined,
173
+ wrapper: undefined,
174
+ errorMessage: undefined,
175
+ subComponentStyles: {
176
+ label: {}
177
+ },
178
+ revealButton: undefined,
179
+ revealSpan: undefined,
180
+ revealIcon: undefined
167
181
  };
168
182
  const inputWithErrorMessageStyles = {
169
- root: Object.assign({}, _defaultInputValidationPaneInputStyles.defaultInputValidationPaneInputStyles, redBorderStyles, (_props$styleProps6 = props.styleProps) === null || _props$styleProps6 === void 0 ? void 0 : _props$styleProps6.inputStyleProps)
183
+ root: Object.assign({}, _defaultInputValidationPaneInputStyles.defaultInputValidationPaneInputStyles, redBorderStyles, (_props$styleProps7 = props.styleProps) === null || _props$styleProps7 === void 0 ? void 0 : _props$styleProps7.inputStyleProps),
184
+ field: Object.assign({}, _defaultInputValidationPaneInputStyles.defaultInputValidationPaneInputStyles, redBorderStyles, (_props$styleProps8 = props.styleProps) === null || _props$styleProps8 === void 0 ? void 0 : _props$styleProps8.inputStyleProps),
185
+ fieldGroup: undefined,
186
+ prefix: undefined,
187
+ suffix: undefined,
188
+ icon: undefined,
189
+ description: undefined,
190
+ wrapper: undefined,
191
+ errorMessage: undefined,
192
+ subComponentStyles: {
193
+ label: {}
194
+ },
195
+ revealButton: undefined,
196
+ revealSpan: undefined,
197
+ revealIcon: undefined
170
198
  };
171
199
  const invalidInputErrorMessageStyles = {
172
- root: Object.assign({}, _defaultInputValidationPaneInvalidInputErrorMessageStyles.defaultInputValidationPaneInvalidInputErrorMessageStyles, (_props$styleProps7 = props.styleProps) === null || _props$styleProps7 === void 0 ? void 0 : _props$styleProps7.invalidInputErrorMessageStyleProps)
200
+ root: Object.assign({}, _defaultInputValidationPaneInvalidInputErrorMessageStyles.defaultInputValidationPaneInvalidInputErrorMessageStyles, (_props$styleProps9 = props.styleProps) === null || _props$styleProps9 === void 0 ? void 0 : _props$styleProps9.invalidInputErrorMessageStyleProps)
173
201
  };
174
202
  const buttonGroupStyles = {
175
- root: Object.assign({}, _defaultInputValidationPaneButtonGroupStyles.defaultInputValidationPaneButtonGroupStyles, (_props$styleProps8 = props.styleProps) === null || _props$styleProps8 === void 0 ? void 0 : _props$styleProps8.buttonGroupStyleProps)
203
+ root: Object.assign({}, _defaultInputValidationPaneButtonGroupStyles.defaultInputValidationPaneButtonGroupStyles, (_props$styleProps10 = props.styleProps) === null || _props$styleProps10 === void 0 ? void 0 : _props$styleProps10.buttonGroupStyleProps)
176
204
  };
177
205
  const sendButtonStyles = {
178
- root: Object.assign({}, _defaultInputValidationPaneSendButtonStyles.defaultInputValidationPaneSendButtonStyles, (_props$styleProps9 = props.styleProps) === null || _props$styleProps9 === void 0 ? void 0 : _props$styleProps9.sendButtonStyleProps),
179
- rootHovered: Object.assign({}, _defaultInputValidationPaneSendButtonHoveredStyles.defaultInputValidationPaneSendButtonHoveredStyles, (_props$styleProps10 = props.styleProps) === null || _props$styleProps10 === void 0 ? void 0 : _props$styleProps10.sendButtonHoveredStyleProps)
206
+ root: Object.assign({}, _defaultInputValidationPaneSendButtonStyles.defaultInputValidationPaneSendButtonStyles, (_props$styleProps11 = props.styleProps) === null || _props$styleProps11 === void 0 ? void 0 : _props$styleProps11.sendButtonStyleProps),
207
+ rootHovered: Object.assign({}, _defaultInputValidationPaneSendButtonHoveredStyles.defaultInputValidationPaneSendButtonHoveredStyles, (_props$styleProps12 = props.styleProps) === null || _props$styleProps12 === void 0 ? void 0 : _props$styleProps12.sendButtonHoveredStyleProps)
180
208
  };
181
209
  const cancelButtonStyles = {
182
- root: Object.assign({}, _defaultInputValidationPaneCancelButtonStyles.defaultInputValidationPaneCancelButtonStyles, (_props$styleProps11 = props.styleProps) === null || _props$styleProps11 === void 0 ? void 0 : _props$styleProps11.cancelButtonStyleProps),
183
- rootHovered: Object.assign({}, _defaultInputValidationPaneCancelButtonHoveredStyles.defaultInputValidationPaneCancelButtonHoveredStyles, (_props$styleProps12 = props.styleProps) === null || _props$styleProps12 === void 0 ? void 0 : _props$styleProps12.cancelButtonHoveredStyleProps)
210
+ root: Object.assign({}, _defaultInputValidationPaneCancelButtonStyles.defaultInputValidationPaneCancelButtonStyles, (_props$styleProps13 = props.styleProps) === null || _props$styleProps13 === void 0 ? void 0 : _props$styleProps13.cancelButtonStyleProps),
211
+ rootHovered: Object.assign({}, _defaultInputValidationPaneCancelButtonHoveredStyles.defaultInputValidationPaneCancelButtonHoveredStyles, (_props$styleProps14 = props.styleProps) === null || _props$styleProps14 === void 0 ? void 0 : _props$styleProps14.cancelButtonHoveredStyleProps)
184
212
  };
185
213
  return /*#__PURE__*/_react2.default.createElement(_react2.default.Fragment, null, !((_props$controlProps15 = props.controlProps) !== null && _props$controlProps15 !== void 0 && _props$controlProps15.hideInputValidationPane) && /*#__PURE__*/_react2.default.createElement(_react.Stack, {
186
- 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.containerClassName,
214
+ className: (_props$styleProps15 = props.styleProps) === null || _props$styleProps15 === void 0 ? void 0 : (_props$styleProps15$c = _props$styleProps15.classNames) === null || _props$styleProps15$c === void 0 ? void 0 : _props$styleProps15$c.containerClassName,
187
215
  id: elementId,
188
216
  tabIndex: -1,
189
217
  onKeyDown: handleEscKeyDown,
@@ -191,22 +219,22 @@ function InputValidationPane(props) {
191
219
  "aria-label": ((_props$controlProps17 = props.controlProps) === null || _props$controlProps17 === void 0 ? void 0 : _props$controlProps17.inputValidationPaneAriaLabel) || _defaultInputValidationPaneControlProps.defaultInputValidationPaneControlProps.inputValidationPaneAriaLabel,
192
220
  styles: containerStyles
193
221
  }, /*#__PURE__*/_react2.default.createElement(_react.Stack, {
194
- 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.headerGroupClassName,
222
+ 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.headerGroupClassName,
195
223
  styles: headerGroupStyles,
196
224
  tabIndex: -1,
197
225
  id: elementId + "-headergroup"
198
226
  }, !((_props$controlProps18 = props.controlProps) !== null && _props$controlProps18 !== void 0 && _props$controlProps18.hideTitle) && ((0, _decodeComponentString.decodeComponentString)((_props$componentOverr = props.componentOverrides) === null || _props$componentOverr === void 0 ? void 0 : _props$componentOverr.title) || /*#__PURE__*/_react2.default.createElement(_react.Label, {
199
- 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.titleClassName,
227
+ className: (_props$styleProps17 = props.styleProps) === null || _props$styleProps17 === void 0 ? void 0 : (_props$styleProps17$c = _props$styleProps17.classNames) === null || _props$styleProps17$c === void 0 ? void 0 : _props$styleProps17$c.titleClassName,
200
228
  styles: titleStyles,
201
229
  tabIndex: -1,
202
230
  id: elementId + "-title"
203
231
  }, ((_props$controlProps19 = props.controlProps) === null || _props$controlProps19 === void 0 ? void 0 : _props$controlProps19.titleText) || _defaultInputValidationPaneControlProps.defaultInputValidationPaneControlProps.titleText)), !((_props$controlProps20 = props.controlProps) !== null && _props$controlProps20 !== void 0 && _props$controlProps20.hideSubtitle) && ((0, _decodeComponentString.decodeComponentString)((_props$componentOverr2 = props.componentOverrides) === null || _props$componentOverr2 === void 0 ? void 0 : _props$componentOverr2.subtitle) || /*#__PURE__*/_react2.default.createElement(_react.Label, {
204
- 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.subtitleClassName,
232
+ className: (_props$styleProps18 = props.styleProps) === null || _props$styleProps18 === void 0 ? void 0 : (_props$styleProps18$c = _props$styleProps18.classNames) === null || _props$styleProps18$c === void 0 ? void 0 : _props$styleProps18$c.subtitleClassName,
205
233
  styles: subtitleStyles,
206
234
  tabIndex: -1,
207
235
  id: elementId + "-subtitle"
208
236
  }, ((_props$controlProps21 = props.controlProps) === null || _props$controlProps21 === void 0 ? void 0 : _props$controlProps21.subtitleText) || _defaultInputValidationPaneControlProps.defaultInputValidationPaneControlProps.subtitleText)), !((_props$controlProps22 = props.controlProps) !== null && _props$controlProps22 !== void 0 && _props$controlProps22.hideInput) && ((0, _decodeComponentString.decodeComponentString)((_props$componentOverr3 = props.componentOverrides) === null || _props$componentOverr3 === void 0 ? void 0 : _props$componentOverr3.input) || /*#__PURE__*/_react2.default.createElement(_react.TextField, {
209
- 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.inputClassName,
237
+ className: (_props$styleProps19 = props.styleProps) === null || _props$styleProps19 === void 0 ? void 0 : (_props$styleProps19$c = _props$styleProps19.classNames) === null || _props$styleProps19$c === void 0 ? void 0 : _props$styleProps19$c.inputClassName,
210
238
  styles: isInvalidInput ? inputWithErrorMessageStyles : inputStyles,
211
239
  tabIndex: 0,
212
240
  value: inputValue ?? _defaultInputValidationPaneControlProps.defaultInputValidationPaneControlProps.inputInitialText,
@@ -216,7 +244,7 @@ function InputValidationPane(props) {
216
244
  onChange: handleInputChange,
217
245
  onKeyDown: handleInputKeyDown
218
246
  })), isInvalidInput && ((0, _decodeComponentString.decodeComponentString)((_props$componentOverr4 = props.componentOverrides) === null || _props$componentOverr4 === void 0 ? void 0 : _props$componentOverr4.invalidInputErrorMessage) || /*#__PURE__*/_react2.default.createElement(_react.Stack, {
219
- className: (_props$styleProps18 = props.styleProps) === null || _props$styleProps18 === void 0 ? void 0 : (_props$styleProps18$c = _props$styleProps18.classNames) === null || _props$styleProps18$c === void 0 ? void 0 : _props$styleProps18$c.invalidInputErrorMessageClassName,
247
+ className: (_props$styleProps20 = props.styleProps) === null || _props$styleProps20 === void 0 ? void 0 : (_props$styleProps20$c = _props$styleProps20.classNames) === null || _props$styleProps20$c === void 0 ? void 0 : _props$styleProps20$c.invalidInputErrorMessageClassName,
220
248
  styles: invalidInputErrorMessageStyles,
221
249
  "aria-label": ((_props$controlProps25 = props.controlProps) === null || _props$controlProps25 === void 0 ? void 0 : _props$controlProps25.invalidInputErrorMessageText) || _defaultInputValidationPaneControlProps.defaultInputValidationPaneControlProps.invalidInputErrorMessageText,
222
250
  tabIndex: -1,
@@ -224,12 +252,12 @@ function InputValidationPane(props) {
224
252
  id: elementId + "-invalidinputerrormessage"
225
253
  }, ((_props$controlProps26 = props.controlProps) === null || _props$controlProps26 === void 0 ? void 0 : _props$controlProps26.invalidInputErrorMessageText) || _defaultInputValidationPaneControlProps.defaultInputValidationPaneControlProps.invalidInputErrorMessageText))), /*#__PURE__*/_react2.default.createElement(_react.Stack, {
226
254
  horizontal: ((_props$controlProps27 = props.controlProps) === null || _props$controlProps27 === void 0 ? void 0 : _props$controlProps27.isButtonGroupHorizontal) ?? _defaultInputValidationPaneControlProps.defaultInputValidationPaneControlProps.isButtonGroupHorizontal,
227
- className: (_props$styleProps19 = props.styleProps) === null || _props$styleProps19 === void 0 ? void 0 : (_props$styleProps19$c = _props$styleProps19.classNames) === null || _props$styleProps19$c === void 0 ? void 0 : _props$styleProps19$c.buttonGroupClassName,
255
+ className: (_props$styleProps21 = props.styleProps) === null || _props$styleProps21 === void 0 ? void 0 : (_props$styleProps21$c = _props$styleProps21.classNames) === null || _props$styleProps21$c === void 0 ? void 0 : _props$styleProps21$c.buttonGroupClassName,
228
256
  styles: buttonGroupStyles,
229
257
  tabIndex: -1,
230
258
  id: elementId + "-buttongroup"
231
259
  }, !((_props$controlProps28 = props.controlProps) !== null && _props$controlProps28 !== void 0 && _props$controlProps28.hideSendButton) && ((0, _decodeComponentString.decodeComponentString)((_props$componentOverr5 = props.componentOverrides) === null || _props$componentOverr5 === void 0 ? void 0 : _props$componentOverr5.sendButton) || /*#__PURE__*/_react2.default.createElement(_Button.PrimaryButton, {
232
- className: (_props$styleProps20 = props.styleProps) === null || _props$styleProps20 === void 0 ? void 0 : (_props$styleProps20$c = _props$styleProps20.classNames) === null || _props$styleProps20$c === void 0 ? void 0 : _props$styleProps20$c.sendButtonClassName,
260
+ className: (_props$styleProps22 = props.styleProps) === null || _props$styleProps22 === void 0 ? void 0 : (_props$styleProps22$c = _props$styleProps22.classNames) === null || _props$styleProps22$c === void 0 ? void 0 : _props$styleProps22$c.sendButtonClassName,
233
261
  styles: sendButtonStyles,
234
262
  title: ((_props$controlProps29 = props.controlProps) === null || _props$controlProps29 === void 0 ? void 0 : _props$controlProps29.sendButtonText) || _defaultInputValidationPaneControlProps.defaultInputValidationPaneControlProps.sendButtonText,
235
263
  tabIndex: 0,
@@ -239,7 +267,7 @@ function InputValidationPane(props) {
239
267
  id: elementId + "-sendbutton",
240
268
  ariaLabel: ((_props$controlProps31 = props.controlProps) === null || _props$controlProps31 === void 0 ? void 0 : _props$controlProps31.sendButtonAriaLabel) || _defaultInputValidationPaneControlProps.defaultInputValidationPaneControlProps.sendButtonAriaLabel
241
269
  })), !((_props$controlProps32 = props.controlProps) !== null && _props$controlProps32 !== void 0 && _props$controlProps32.hideCancelButton) && ((0, _decodeComponentString.decodeComponentString)((_props$componentOverr6 = props.componentOverrides) === null || _props$componentOverr6 === void 0 ? void 0 : _props$componentOverr6.cancelButton) || /*#__PURE__*/_react2.default.createElement(_Button.DefaultButton, {
242
- className: (_props$styleProps21 = props.styleProps) === null || _props$styleProps21 === void 0 ? void 0 : (_props$styleProps21$c = _props$styleProps21.classNames) === null || _props$styleProps21$c === void 0 ? void 0 : _props$styleProps21$c.cancelButtonClassName,
270
+ className: (_props$styleProps23 = props.styleProps) === null || _props$styleProps23 === void 0 ? void 0 : (_props$styleProps23$c = _props$styleProps23.classNames) === null || _props$styleProps23$c === void 0 ? void 0 : _props$styleProps23$c.cancelButtonClassName,
243
271
  styles: cancelButtonStyles,
244
272
  title: ((_props$controlProps33 = props.controlProps) === null || _props$controlProps33 === void 0 ? void 0 : _props$controlProps33.cancelButtonText) || _defaultInputValidationPaneControlProps.defaultInputValidationPaneControlProps.cancelButtonText,
245
273
  tabIndex: 0,
@@ -7,12 +7,10 @@ exports.defaultLoadingPaneIconImageProps = void 0;
7
7
 
8
8
  var _react = require("@fluentui/react");
9
9
 
10
- var _chat = _interopRequireDefault(require("../../../../../assets/imgs/chat.svg"));
11
-
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
+ var _Icons = require("../../../../../assets/Icons");
13
11
 
14
12
  const defaultLoadingPaneIconImageProps = {
15
- src: _chat.default,
13
+ src: _Icons.ModernChatIconBase64,
16
14
  imageFit: _react.ImageFit.center,
17
15
  width: "86px",
18
16
  height: "86px",
@@ -7,12 +7,10 @@ exports.presetThreeLoadingPaneIconImageProps = void 0;
7
7
 
8
8
  var _react = require("@fluentui/react");
9
9
 
10
- var _chatIcon = _interopRequireDefault(require("../../../../../assets/imgs/chatIcon.svg"));
11
-
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
+ var _Icons = require("../../../../../assets/Icons");
13
11
 
14
12
  const presetThreeLoadingPaneIconImageProps = {
15
- src: _chatIcon.default,
13
+ src: _Icons.LegacyChatIconBase64,
16
14
  imageFit: _react.ImageFit.center,
17
15
  width: "57px",
18
16
  height: "57px",
@@ -5,9 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.presetTwoLoadingPaneGeneralStyles = void 0;
7
7
 
8
- var _chat = _interopRequireDefault(require("../../../../../assets/imgs/chat.svg"));
9
-
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
8
+ var _Icons = require("../../../../../assets/Icons");
11
9
 
12
10
  const presetTwoLoadingPaneGeneralStyles = {
13
11
  borderStyle: "dotted",
@@ -15,7 +13,7 @@ const presetTwoLoadingPaneGeneralStyles = {
15
13
  borderWidth: "5px",
16
14
  backgroundColor: "#767676",
17
15
  backgroundSize: "250px",
18
- backgroundImage: `url(${_chat.default})`,
16
+ backgroundImage: `url(${_Icons.ModernChatIconBase64})`,
19
17
  backgroundRepeat: "no-repeat",
20
18
  backgroundPosition: "center",
21
19
  borderColor: "",
@@ -5,9 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.presetTwoOOOHPaneGeneralStyles = void 0;
7
7
 
8
- var _error = _interopRequireDefault(require("../../../../../assets/imgs/error.svg"));
9
-
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
8
+ var _Icons = require("../../../../../assets/Icons");
11
9
 
12
10
  const presetTwoOOOHPaneGeneralStyles = {
13
11
  borderStyle: "dotted solid double dashed",
@@ -15,7 +13,7 @@ const presetTwoOOOHPaneGeneralStyles = {
15
13
  borderWidth: "5px",
16
14
  backgroundColor: "#FFFFFF",
17
15
  backgroundSize: "200px",
18
- backgroundImage: `url(${_error.default})`,
16
+ backgroundImage: `url(${_Icons.ErrorIconBase64})`,
19
17
  backgroundRepeat: "no-repeat",
20
18
  backgroundPosition: "center",
21
19
  borderColor: "#F2FFF1",
@@ -5,12 +5,10 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.defaultProactiveChatPaneCloseButtonStyles = void 0;
7
7
 
8
- var _closeChatButton = _interopRequireDefault(require("../../../../../assets/imgs/closeChatButton.svg"));
9
-
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
8
+ var _Icons = require("../../../../../assets/Icons");
11
9
 
12
10
  const defaultProactiveChatPaneCloseButtonStyles = {
13
- backgroundImage: "url(" + _closeChatButton.default + ")",
11
+ backgroundImage: `url(${_Icons.CloseChatButtonIconBase64})`,
14
12
  backgroundPosition: "center",
15
13
  backgroundRepeat: "no-repeat",
16
14
  color: "#605e5c",
@@ -5,13 +5,11 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.defaultProactiveChatPaneHeaderContainerStyles = void 0;
7
7
 
8
- var _Proactive_banner = _interopRequireDefault(require("../../../../../assets/imgs/Proactive_banner.png"));
9
-
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
8
+ var _Icons = require("../../../../../assets/Icons");
11
9
 
12
10
  const defaultProactiveChatPaneHeaderContainerStyles = {
13
11
  backgroundColor: "rgb(49, 95, 162)",
14
- backgroundImage: "url(" + _Proactive_banner.default + ")",
12
+ backgroundImage: `url(${_Icons.ProactiveChatBannerBase64})`,
15
13
  backgroundPosition: "initial",
16
14
  backgroundRepeat: "no-repeat",
17
15
  borderTopLeftRadius: "inherit",
@@ -5,12 +5,10 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.defaultReconnectChatPaneIconStyles = void 0;
7
7
 
8
- var _ChatReconnectPopupIcon = _interopRequireDefault(require("../../../../../assets/imgs/ChatReconnectPopupIcon.png"));
9
-
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
8
+ var _Icons = require("../../../../../assets/Icons");
11
9
 
12
10
  const defaultReconnectChatPaneIconStyles = {
13
- backgroundImage: "url(" + _ChatReconnectPopupIcon.default + ")",
11
+ backgroundImage: `url(${_Icons.ChatReconnectIconBase64})`,
14
12
  backgroundPosition: "center",
15
13
  backgroundRepeat: "no-repeat",
16
14
  backgroundSize: "200px",
package/lib/cjs/index.js CHANGED
@@ -3,12 +3,42 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ Object.defineProperty(exports, "AgentIconBase64", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _Icons.AgentIconBase64;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "AudioNotificationOffIconBase64", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _Icons.AudioNotificationOffIconBase64;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "AudioNotificationOnIconBase64", {
19
+ enumerable: true,
20
+ get: function () {
21
+ return _Icons.AudioNotificationOnIconBase64;
22
+ }
23
+ });
6
24
  Object.defineProperty(exports, "BroadcastService", {
7
25
  enumerable: true,
8
26
  get: function () {
9
27
  return _BroadcastService.BroadcastService;
10
28
  }
11
29
  });
30
+ Object.defineProperty(exports, "CallAcceptButtonBase64", {
31
+ enumerable: true,
32
+ get: function () {
33
+ return _Icons.CallAcceptButtonBase64;
34
+ }
35
+ });
36
+ Object.defineProperty(exports, "CallRejectButtonBase64", {
37
+ enumerable: true,
38
+ get: function () {
39
+ return _Icons.CallRejectButtonBase64;
40
+ }
41
+ });
12
42
  Object.defineProperty(exports, "CallingContainer", {
13
43
  enumerable: true,
14
44
  get: function () {
@@ -21,6 +51,18 @@ Object.defineProperty(exports, "ChatButton", {
21
51
  return _ChatButton.default;
22
52
  }
23
53
  });
54
+ Object.defineProperty(exports, "ChatReconnectIconBase64", {
55
+ enumerable: true,
56
+ get: function () {
57
+ return _Icons.ChatReconnectIconBase64;
58
+ }
59
+ });
60
+ Object.defineProperty(exports, "CloseChatButtonIconBase64", {
61
+ enumerable: true,
62
+ get: function () {
63
+ return _Icons.CloseChatButtonIconBase64;
64
+ }
65
+ });
24
66
  Object.defineProperty(exports, "ConfirmationPane", {
25
67
  enumerable: true,
26
68
  get: function () {
@@ -33,12 +75,24 @@ Object.defineProperty(exports, "CurrentCall", {
33
75
  return _CurrentCall.default;
34
76
  }
35
77
  });
78
+ Object.defineProperty(exports, "CustomChatIconBase64", {
79
+ enumerable: true,
80
+ get: function () {
81
+ return _Icons.CustomChatIconBase64;
82
+ }
83
+ });
36
84
  Object.defineProperty(exports, "ElementType", {
37
85
  enumerable: true,
38
86
  get: function () {
39
87
  return _Constants.ElementType;
40
88
  }
41
89
  });
90
+ Object.defineProperty(exports, "ErrorIconBase64", {
91
+ enumerable: true,
92
+ get: function () {
93
+ return _Icons.ErrorIconBase64;
94
+ }
95
+ });
42
96
  Object.defineProperty(exports, "Footer", {
43
97
  enumerable: true,
44
98
  get: function () {
@@ -63,12 +117,36 @@ Object.defineProperty(exports, "InputValidationPane", {
63
117
  return _InputValidationPane.default;
64
118
  }
65
119
  });
120
+ Object.defineProperty(exports, "LegacyChatIconBase64", {
121
+ enumerable: true,
122
+ get: function () {
123
+ return _Icons.LegacyChatIconBase64;
124
+ }
125
+ });
66
126
  Object.defineProperty(exports, "LoadingPane", {
67
127
  enumerable: true,
68
128
  get: function () {
69
129
  return _LoadingPane.default;
70
130
  }
71
131
  });
132
+ Object.defineProperty(exports, "LoadingSpinnerBase64", {
133
+ enumerable: true,
134
+ get: function () {
135
+ return _Icons.LoadingSpinnerBase64;
136
+ }
137
+ });
138
+ Object.defineProperty(exports, "MinimizeChatButtonIconBase64", {
139
+ enumerable: true,
140
+ get: function () {
141
+ return _Icons.MinimizeChatButtonIconBase64;
142
+ }
143
+ });
144
+ Object.defineProperty(exports, "ModernChatIconBase64", {
145
+ enumerable: true,
146
+ get: function () {
147
+ return _Icons.ModernChatIconBase64;
148
+ }
149
+ });
72
150
  Object.defineProperty(exports, "OutOfOfficeHoursPane", {
73
151
  enumerable: true,
74
152
  get: function () {
@@ -87,6 +165,12 @@ Object.defineProperty(exports, "PreChatSurveyPane", {
87
165
  return _PreChatSurveyPane.default;
88
166
  }
89
167
  });
168
+ Object.defineProperty(exports, "ProactiveChatBannerBase64", {
169
+ enumerable: true,
170
+ get: function () {
171
+ return _Icons.ProactiveChatBannerBase64;
172
+ }
173
+ });
90
174
  Object.defineProperty(exports, "ProactiveChatPane", {
91
175
  enumerable: true,
92
176
  get: function () {
@@ -105,6 +189,48 @@ Object.defineProperty(exports, "Timer", {
105
189
  return _Timer.default;
106
190
  }
107
191
  });
192
+ Object.defineProperty(exports, "TranscriptDownloadIconBase64", {
193
+ enumerable: true,
194
+ get: function () {
195
+ return _Icons.TranscriptDownloadIconBase64;
196
+ }
197
+ });
198
+ Object.defineProperty(exports, "TranscriptEmailIconBase64", {
199
+ enumerable: true,
200
+ get: function () {
201
+ return _Icons.TranscriptEmailIconBase64;
202
+ }
203
+ });
204
+ Object.defineProperty(exports, "VideoCallAcceptButtonIconBase64", {
205
+ enumerable: true,
206
+ get: function () {
207
+ return _Icons.VideoCallAcceptButtonIconBase64;
208
+ }
209
+ });
210
+ Object.defineProperty(exports, "VideoOffIconBase64", {
211
+ enumerable: true,
212
+ get: function () {
213
+ return _Icons.VideoOffIconBase64;
214
+ }
215
+ });
216
+ Object.defineProperty(exports, "VideoOnIconBase64", {
217
+ enumerable: true,
218
+ get: function () {
219
+ return _Icons.VideoOnIconBase64;
220
+ }
221
+ });
222
+ Object.defineProperty(exports, "VoiceOffIconBase64", {
223
+ enumerable: true,
224
+ get: function () {
225
+ return _Icons.VoiceOffIconBase64;
226
+ }
227
+ });
228
+ Object.defineProperty(exports, "VoiceOnIconBase64", {
229
+ enumerable: true,
230
+ get: function () {
231
+ return _Icons.VoiceOnIconBase64;
232
+ }
233
+ });
108
234
  Object.defineProperty(exports, "decodeComponentString", {
109
235
  enumerable: true,
110
236
  get: function () {
@@ -156,4 +282,6 @@ var _IncomingCall = _interopRequireDefault(require("./components/callingcontaine
156
282
 
157
283
  var _Timer = _interopRequireDefault(require("./components/callingcontainer/subcomponents/Timer/Timer"));
158
284
 
285
+ var _Icons = require("./assets/Icons");
286
+
159
287
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }