@microsoft/omnichannel-chat-components 0.1.0-main.cf54410 → 0.1.0-main.d899dd1
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.
- package/README.md +1 -0
- package/lib/cjs/assets/Icons.js +48 -0
- package/lib/cjs/common/Constants.js +1 -1
- package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/CurrentCall.js +30 -0
- package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/common/defaultProps/defaultCurrentCallControlPropsRtl.js +6 -16
- package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/common/defaultStyles/customizedCurrentCallStyleProps.js +0 -12
- package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/common/defaultStyles/defaultCurrentCallStyleProps.js +0 -12
- package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/IncomingCall.js +30 -0
- package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/componentOverrideProps.js +2 -4
- package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/defaultIncomingCallControlPropsRtl.js +4 -10
- package/lib/cjs/components/chatbutton/common/defaultStyles/defaultChatButtonIconContainerStyles.js +2 -4
- package/lib/cjs/components/footer/common/defaultProps/customFooterControlProps.js +5 -13
- package/lib/cjs/components/header/common/defaultProps/azureHeaderControlProps.js +2 -4
- package/lib/cjs/components/header/common/defaultProps/customHeaderControlProps.js +4 -10
- package/lib/cjs/components/header/common/defaultProps/defaultHeaderControlProps.js +2 -4
- package/lib/cjs/components/inputvalidationpane/InputValidationPane.js +46 -18
- package/lib/cjs/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneIconImageProps.js +2 -4
- package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeStyles/presetThreeLoadingPaneIconImageProps.js +2 -4
- package/lib/cjs/components/loadingpane/common/presetTwoProps/presetTwoStyles/presetTwoLoadingPaneGeneralStyles.js +2 -4
- package/lib/cjs/components/outofofficehourspane/common/presetTwoProps/presetTwoStyles/presetTwoOOOHPaneGeneralStyles.js +2 -4
- package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneCloseButtonStyles.js +2 -4
- package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneHeaderContainerStyles.js +2 -4
- package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneIconStyles.js +2 -4
- package/lib/cjs/index.js +128 -0
- package/lib/esm/assets/Icons.js +21 -0
- package/lib/esm/common/Constants.js +1 -1
- package/lib/esm/components/callingcontainer/subcomponents/CurrentCall/CurrentCall.js +32 -2
- package/lib/esm/components/callingcontainer/subcomponents/CurrentCall/common/defaultProps/defaultCurrentCallControlPropsRtl.js +6 -10
- package/lib/esm/components/callingcontainer/subcomponents/CurrentCall/common/defaultStyles/customizedCurrentCallStyleProps.js +0 -12
- package/lib/esm/components/callingcontainer/subcomponents/CurrentCall/common/defaultStyles/defaultCurrentCallStyleProps.js +0 -12
- package/lib/esm/components/callingcontainer/subcomponents/IncomingCall/IncomingCall.js +32 -2
- package/lib/esm/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/componentOverrideProps.js +2 -2
- package/lib/esm/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/defaultIncomingCallControlPropsRtl.js +4 -6
- package/lib/esm/components/chatbutton/common/defaultStyles/defaultChatButtonIconContainerStyles.js +2 -2
- package/lib/esm/components/footer/common/defaultProps/customFooterControlProps.js +5 -8
- package/lib/esm/components/header/common/defaultProps/azureHeaderControlProps.js +2 -2
- package/lib/esm/components/header/common/defaultProps/customHeaderControlProps.js +4 -6
- package/lib/esm/components/header/common/defaultProps/defaultHeaderControlProps.js +2 -2
- package/lib/esm/components/inputvalidationpane/InputValidationPane.js +46 -18
- package/lib/esm/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneIconImageProps.js +2 -2
- package/lib/esm/components/loadingpane/common/presetThreeProps/presetThreeStyles/presetThreeLoadingPaneIconImageProps.js +2 -2
- package/lib/esm/components/loadingpane/common/presetTwoProps/presetTwoStyles/presetTwoLoadingPaneGeneralStyles.js +2 -2
- package/lib/esm/components/outofofficehourspane/common/presetTwoProps/presetTwoStyles/presetTwoOOOHPaneGeneralStyles.js +2 -2
- package/lib/esm/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneCloseButtonStyles.js +2 -2
- package/lib/esm/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneHeaderContainerStyles.js +2 -2
- package/lib/esm/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneIconStyles.js +2 -2
- package/lib/esm/index.js +2 -1
- package/lib/types/assets/Icons.d.ts +21 -0
- package/lib/types/common/Constants.d.ts +5 -0
- package/lib/types/components/callingcontainer/subcomponents/CurrentCall/interfaces/ICurrentCallStyleProps.d.ts +0 -4
- package/lib/types/index.d.ts +1 -0
- package/package.json +4 -9
- package/lib/cjs/assets/assets.d.js +0 -1
- package/lib/cjs/assets/imgs/ChatBubble.svg +0 -28
- package/lib/cjs/assets/imgs/ChatReconnectPopupIcon.png +0 -0
- package/lib/cjs/assets/imgs/Proactive_banner.png +0 -0
- package/lib/cjs/assets/imgs/agent.png +0 -0
- package/lib/cjs/assets/imgs/callacceptbutton.svg +0 -3
- package/lib/cjs/assets/imgs/callrejectbutton.svg +0 -3
- package/lib/cjs/assets/imgs/chat.svg +0 -47
- package/lib/cjs/assets/imgs/chatIcon.svg +0 -16
- package/lib/cjs/assets/imgs/closeButton.svg +0 -3
- package/lib/cjs/assets/imgs/closeChatButton.svg +0 -3
- package/lib/cjs/assets/imgs/error.svg +0 -3
- package/lib/cjs/assets/imgs/lcwAudioOff.svg +0 -3
- package/lib/cjs/assets/imgs/lcwAudioOn.svg +0 -3
- package/lib/cjs/assets/imgs/loading.gif +0 -0
- package/lib/cjs/assets/imgs/minimizeChatButton.svg +0 -3
- package/lib/cjs/assets/imgs/transcriptDownloadIcon.svg +0 -4
- package/lib/cjs/assets/imgs/transcriptEmailIcon.svg +0 -5
- package/lib/cjs/assets/imgs/videocallacceptbutton.svg +0 -3
- package/lib/cjs/assets/imgs/videooff.svg +0 -3
- package/lib/cjs/assets/imgs/videoon.svg +0 -3
- package/lib/cjs/assets/imgs/voiceoff.svg +0 -3
- package/lib/cjs/assets/imgs/voiceon.svg +0 -3
- package/lib/esm/assets/assets.d.js +0 -0
- package/lib/esm/assets/imgs/ChatBubble.svg +0 -28
- package/lib/esm/assets/imgs/ChatReconnectPopupIcon.png +0 -0
- package/lib/esm/assets/imgs/Proactive_banner.png +0 -0
- package/lib/esm/assets/imgs/agent.png +0 -0
- package/lib/esm/assets/imgs/callacceptbutton.svg +0 -3
- package/lib/esm/assets/imgs/callrejectbutton.svg +0 -3
- package/lib/esm/assets/imgs/chat.svg +0 -47
- package/lib/esm/assets/imgs/chatIcon.svg +0 -16
- package/lib/esm/assets/imgs/closeButton.svg +0 -3
- package/lib/esm/assets/imgs/closeChatButton.svg +0 -3
- package/lib/esm/assets/imgs/error.svg +0 -3
- package/lib/esm/assets/imgs/lcwAudioOff.svg +0 -3
- package/lib/esm/assets/imgs/lcwAudioOn.svg +0 -3
- package/lib/esm/assets/imgs/loading.gif +0 -0
- package/lib/esm/assets/imgs/minimizeChatButton.svg +0 -3
- package/lib/esm/assets/imgs/transcriptDownloadIcon.svg +0 -4
- package/lib/esm/assets/imgs/transcriptEmailIcon.svg +0 -5
- package/lib/esm/assets/imgs/videocallacceptbutton.svg +0 -3
- package/lib/esm/assets/imgs/videooff.svg +0 -3
- package/lib/esm/assets/imgs/videoon.svg +0 -3
- package/lib/esm/assets/imgs/voiceoff.svg +0 -3
- package/lib/esm/assets/imgs/voiceon.svg +0 -3
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import videoon from "../../../../../../assets/imgs/videoon.svg";
|
|
3
|
-
import videooff from "../../../../../../assets/imgs/videooff.svg";
|
|
4
|
-
import voiceoff from "../../../../../../assets/imgs/voiceoff.svg";
|
|
5
|
-
import voiceon from "../../../../../../assets/imgs/voiceon.svg";
|
|
1
|
+
import { CallRejectButtonBase64, VideoOffIconBase64, VideoOnIconBase64, VoiceOffIconBase64, VoiceOnIconBase64 } from "../../../../../../assets/Icons";
|
|
6
2
|
export const defaultCurrentCallControlPropsRtl = {
|
|
7
3
|
id: "currentCall-container",
|
|
8
4
|
nonActionIds: {
|
|
@@ -45,7 +41,7 @@ export const defaultCurrentCallControlPropsRtl = {
|
|
|
45
41
|
type: "icon",
|
|
46
42
|
ariaLabel: "End Call",
|
|
47
43
|
imageIconProps: {
|
|
48
|
-
src:
|
|
44
|
+
src: CallRejectButtonBase64,
|
|
49
45
|
styles: {
|
|
50
46
|
image: {
|
|
51
47
|
height: "18px",
|
|
@@ -60,7 +56,7 @@ export const defaultCurrentCallControlPropsRtl = {
|
|
|
60
56
|
ariaLabel: "Mute",
|
|
61
57
|
toggleAriaLabel: "Unmute",
|
|
62
58
|
imageIconProps: {
|
|
63
|
-
src:
|
|
59
|
+
src: VoiceOnIconBase64,
|
|
64
60
|
styles: {
|
|
65
61
|
image: {
|
|
66
62
|
height: "16px",
|
|
@@ -69,7 +65,7 @@ export const defaultCurrentCallControlPropsRtl = {
|
|
|
69
65
|
}
|
|
70
66
|
},
|
|
71
67
|
imageToggleIconProps: {
|
|
72
|
-
src:
|
|
68
|
+
src: VoiceOffIconBase64,
|
|
73
69
|
styles: {
|
|
74
70
|
image: {
|
|
75
71
|
height: "16px",
|
|
@@ -85,7 +81,7 @@ export const defaultCurrentCallControlPropsRtl = {
|
|
|
85
81
|
ariaLabel: "Turn camera on",
|
|
86
82
|
toggleAriaLabel: "Turn camera off",
|
|
87
83
|
imageIconProps: {
|
|
88
|
-
src:
|
|
84
|
+
src: VideoOnIconBase64,
|
|
89
85
|
styles: {
|
|
90
86
|
image: {
|
|
91
87
|
height: "16px",
|
|
@@ -94,7 +90,7 @@ export const defaultCurrentCallControlPropsRtl = {
|
|
|
94
90
|
}
|
|
95
91
|
},
|
|
96
92
|
imageToggleIconProps: {
|
|
97
|
-
src:
|
|
93
|
+
src: VideoOffIconBase64,
|
|
98
94
|
styles: {
|
|
99
95
|
image: {
|
|
100
96
|
height: "16px",
|
|
@@ -47,18 +47,6 @@ export const customizedCurrentCallStyleProps = {
|
|
|
47
47
|
width: "50px",
|
|
48
48
|
margin: "1px"
|
|
49
49
|
},
|
|
50
|
-
currentCallTimerStyleProps: {
|
|
51
|
-
borderRadius: "2px",
|
|
52
|
-
margin: "1px",
|
|
53
|
-
color: "white",
|
|
54
|
-
paddingTop: "18px",
|
|
55
|
-
fontSize: 12,
|
|
56
|
-
fontFamily: "Segoe UI, Arial, sans-serif",
|
|
57
|
-
backgroundColor: "transparent",
|
|
58
|
-
height: "50px",
|
|
59
|
-
width: "55px",
|
|
60
|
-
textAlign: "center"
|
|
61
|
-
},
|
|
62
50
|
videoTileStyleProps: {
|
|
63
51
|
minHeight: "180px",
|
|
64
52
|
height: "300px",
|
|
@@ -39,18 +39,6 @@ export const defaultCurrentCallStyleProps = {
|
|
|
39
39
|
width: "50px",
|
|
40
40
|
fontSize: "18px"
|
|
41
41
|
},
|
|
42
|
-
currentCallTimerStyleProps: {
|
|
43
|
-
borderRadius: "2px",
|
|
44
|
-
margin: "1px",
|
|
45
|
-
color: "#FFFFFF",
|
|
46
|
-
paddingTop: "18px",
|
|
47
|
-
fontSize: 12,
|
|
48
|
-
fontFamily: "Segoe UI, Arial, sans-serif",
|
|
49
|
-
backgroundColor: "darkgrey",
|
|
50
|
-
height: "45px",
|
|
51
|
-
width: "50px",
|
|
52
|
-
textAlign: "center"
|
|
53
|
-
},
|
|
54
42
|
videoTileStyleProps: {
|
|
55
43
|
width: "100%",
|
|
56
44
|
marginLeft: "auto",
|
|
@@ -3,11 +3,11 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
|
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { Label, Stack } from "@fluentui/react";
|
|
5
5
|
import CommandButton from "../../../common/commandbutton/CommandButton";
|
|
6
|
-
import { ElementType } from "../../../../common/Constants";
|
|
6
|
+
import { ElementType, KeyCodes } from "../../../../common/Constants";
|
|
7
7
|
import { decodeComponentString } from "../../../../common/decodeComponentString";
|
|
8
8
|
import { defaultIncomingCallProps } from "./common/defaultProps/defaultIncomingCallProps";
|
|
9
9
|
import { processCustomComponents } from "../../../../common/utils";
|
|
10
|
-
import { useCallback } from "react";
|
|
10
|
+
import { useCallback, useEffect } from "react";
|
|
11
11
|
|
|
12
12
|
function IncomingCall(props) {
|
|
13
13
|
var _props$controlProps, _defaultIncomingCallP, _props$controlProps2, _props$controlProps2$, _defaultIncomingCallP2, _defaultIncomingCallP3, _props$controlProps3, _props$controlProps3$, _defaultIncomingCallP4, _defaultIncomingCallP5, _props$controlProps4, _props$controlProps4$, _defaultIncomingCallP6, _defaultIncomingCallP7, _defaultIncomingCallP8, _props$styleProps, _props$controlProps5, _props$controlProps5$, _defaultIncomingCallP9, _defaultIncomingCallP10, _props$controlProps6, _props$controlProps6$, _defaultIncomingCallP11, _defaultIncomingCallP12, _props$controlProps7, _props$controlProps7$, _defaultIncomingCallP13, _defaultIncomingCallP14, _defaultIncomingCallP15, _props$controlProps8, _defaultIncomingCallP16, _props$controlProps9, _defaultIncomingCallP17, _props$controlProps10, _defaultIncomingCallP18, _props$controlProps11, _defaultIncomingCallP19, _props$styleProps2, _defaultIncomingCallP20, _props$styleProps3, _defaultIncomingCallP21, _props$styleProps4, _defaultIncomingCallP22, _props$styleProps5, _defaultIncomingCallP23, _props$styleProps6, _defaultIncomingCallP24, _props$styleProps7, _defaultIncomingCallP25, _props$styleProps8, _defaultIncomingCallP26, _props$styleProps9, _props$styleProps10, _props$controlProps18, _defaultIncomingCallP27, _props$controlProps19, _props$componentOverr, _props$controlProps20, _props$controlProps21, _props$controlProps22, _props$controlProps23, _props$controlProps24, _props$controlProps25, _props$controlProps26, _props$controlProps27, _props$controlProps28;
|
|
@@ -84,6 +84,36 @@ function IncomingCall(props) {
|
|
|
84
84
|
(_props$controlProps17 = props.controlProps) === null || _props$controlProps17 === void 0 ? void 0 : _props$controlProps17.onAudioCallClick();
|
|
85
85
|
}
|
|
86
86
|
}, []);
|
|
87
|
+
useEffect(() => {
|
|
88
|
+
const declineCallShortcut = e => e.ctrlKey && e.shiftKey && e.key === KeyCodes.DeclineCallHotKey;
|
|
89
|
+
|
|
90
|
+
const acceptAudioCallShortcut = e => e.ctrlKey && e.shiftKey && e.key === KeyCodes.AcceptAudioCallHotKey;
|
|
91
|
+
|
|
92
|
+
const acceptVideoCallShortcut = e => e.ctrlKey && e.shiftKey && e.key === KeyCodes.AcceptVideoCallHotKey;
|
|
93
|
+
|
|
94
|
+
const shortcutKeysHandler = e => {
|
|
95
|
+
if (declineCallShortcut(e)) {
|
|
96
|
+
handleDeclineCallClick();
|
|
97
|
+
} else if (acceptAudioCallShortcut(e)) {
|
|
98
|
+
handleAudioCallClick();
|
|
99
|
+
} else if (acceptVideoCallShortcut(e)) {
|
|
100
|
+
handleVideoCallClick();
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
const ignoreDefault = e => {
|
|
105
|
+
if (declineCallShortcut(e) || acceptAudioCallShortcut(e) || acceptVideoCallShortcut(e)) {
|
|
106
|
+
e.preventDefault();
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
window.addEventListener("keyup", shortcutKeysHandler);
|
|
111
|
+
window.addEventListener("keydown", ignoreDefault);
|
|
112
|
+
return () => {
|
|
113
|
+
window.removeEventListener("keyup", shortcutKeysHandler);
|
|
114
|
+
window.removeEventListener("keydown", ignoreDefault);
|
|
115
|
+
};
|
|
116
|
+
}, []);
|
|
87
117
|
return /*#__PURE__*/React.createElement(Stack, {
|
|
88
118
|
horizontal: true,
|
|
89
119
|
className: (_props$styleProps10 = props.styleProps) === null || _props$styleProps10 === void 0 ? void 0 : _props$styleProps10.className,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { Image, Label, Stack } from "@fluentui/react";
|
|
3
|
-
import
|
|
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:
|
|
38
|
+
src: AgentIconBase64,
|
|
39
39
|
styles: agentImageStyles
|
|
40
40
|
}), /*#__PURE__*/React.createElement(Stack, {
|
|
41
41
|
verticalAlign: "center",
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import
|
|
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:
|
|
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:
|
|
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:
|
|
66
|
+
src: VideoCallAcceptButtonIconBase64,
|
|
69
67
|
styles: {
|
|
70
68
|
image: {
|
|
71
69
|
height: "18px",
|
package/lib/esm/components/chatbutton/common/defaultStyles/defaultChatButtonIconContainerStyles.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ModernChatIconBase64 } from "../../../../assets/Icons";
|
|
2
2
|
export const defaultChatButtonIconContainerStyles = {
|
|
3
3
|
align: "center",
|
|
4
4
|
backgroundColor: "#315FA2",
|
|
5
|
-
backgroundImage: `url(${
|
|
5
|
+
backgroundImage: `url(${ModernChatIconBase64})`,
|
|
6
6
|
backgroundPosition: "center",
|
|
7
7
|
backgroundRepeat: "no-repeat",
|
|
8
8
|
backgroundSize: "65% 65%",
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import
|
|
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:
|
|
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:
|
|
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:
|
|
46
|
+
src: AudioNotificationOnIconBase64
|
|
50
47
|
},
|
|
51
48
|
imageToggleIconProps: {
|
|
52
|
-
src:
|
|
49
|
+
src: AudioNotificationOffIconBase64
|
|
53
50
|
}
|
|
54
51
|
}
|
|
55
52
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
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:
|
|
34
|
+
src: LegacyChatIconBase64,
|
|
35
35
|
alt: "Chat Icon"
|
|
36
36
|
},
|
|
37
37
|
headerTitleProps: {
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import
|
|
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:
|
|
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:
|
|
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:
|
|
51
|
+
src: LegacyChatIconBase64,
|
|
54
52
|
alt: "Chat Icon"
|
|
55
53
|
},
|
|
56
54
|
headerTitleProps: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
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:
|
|
35
|
+
src: ModernChatIconBase64,
|
|
36
36
|
alt: "Chat Icon"
|
|
37
37
|
},
|
|
38
38
|
headerTitleProps: {
|
|
@@ -19,7 +19,7 @@ import { defaultInputValidationPaneTitleStyles } from "./common/default/defaultS
|
|
|
19
19
|
import { generateEventName } from "../../common/utils";
|
|
20
20
|
|
|
21
21
|
function InputValidationPane(props) {
|
|
22
|
-
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$
|
|
22
|
+
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;
|
|
23
23
|
|
|
24
24
|
const elementId = ((_props$controlProps = props.controlProps) === null || _props$controlProps === void 0 ? void 0 : _props$controlProps.id) ?? defaultInputValidationPaneControlProps.id;
|
|
25
25
|
const [inputValue, setInputValue] = useState("");
|
|
@@ -130,27 +130,55 @@ function InputValidationPane(props) {
|
|
|
130
130
|
borderStyle: "solid"
|
|
131
131
|
};
|
|
132
132
|
const inputStyles = {
|
|
133
|
-
root: Object.assign({}, defaultInputValidationPaneInputStyles, (_props$styleProps5 = props.styleProps) === null || _props$styleProps5 === void 0 ? void 0 : _props$styleProps5.inputStyleProps)
|
|
133
|
+
root: Object.assign({}, defaultInputValidationPaneInputStyles, (_props$styleProps5 = props.styleProps) === null || _props$styleProps5 === void 0 ? void 0 : _props$styleProps5.inputStyleProps),
|
|
134
|
+
field: Object.assign({}, defaultInputValidationPaneInputStyles, (_props$styleProps6 = props.styleProps) === null || _props$styleProps6 === void 0 ? void 0 : _props$styleProps6.inputStyleProps),
|
|
135
|
+
fieldGroup: undefined,
|
|
136
|
+
prefix: undefined,
|
|
137
|
+
suffix: undefined,
|
|
138
|
+
icon: undefined,
|
|
139
|
+
description: undefined,
|
|
140
|
+
wrapper: undefined,
|
|
141
|
+
errorMessage: undefined,
|
|
142
|
+
subComponentStyles: {
|
|
143
|
+
label: {}
|
|
144
|
+
},
|
|
145
|
+
revealButton: undefined,
|
|
146
|
+
revealSpan: undefined,
|
|
147
|
+
revealIcon: undefined
|
|
134
148
|
};
|
|
135
149
|
const inputWithErrorMessageStyles = {
|
|
136
|
-
root: Object.assign({}, defaultInputValidationPaneInputStyles, redBorderStyles, (_props$
|
|
150
|
+
root: Object.assign({}, defaultInputValidationPaneInputStyles, redBorderStyles, (_props$styleProps7 = props.styleProps) === null || _props$styleProps7 === void 0 ? void 0 : _props$styleProps7.inputStyleProps),
|
|
151
|
+
field: Object.assign({}, defaultInputValidationPaneInputStyles, redBorderStyles, (_props$styleProps8 = props.styleProps) === null || _props$styleProps8 === void 0 ? void 0 : _props$styleProps8.inputStyleProps),
|
|
152
|
+
fieldGroup: undefined,
|
|
153
|
+
prefix: undefined,
|
|
154
|
+
suffix: undefined,
|
|
155
|
+
icon: undefined,
|
|
156
|
+
description: undefined,
|
|
157
|
+
wrapper: undefined,
|
|
158
|
+
errorMessage: undefined,
|
|
159
|
+
subComponentStyles: {
|
|
160
|
+
label: {}
|
|
161
|
+
},
|
|
162
|
+
revealButton: undefined,
|
|
163
|
+
revealSpan: undefined,
|
|
164
|
+
revealIcon: undefined
|
|
137
165
|
};
|
|
138
166
|
const invalidInputErrorMessageStyles = {
|
|
139
|
-
root: Object.assign({}, defaultInputValidationPaneInvalidInputErrorMessageStyles, (_props$
|
|
167
|
+
root: Object.assign({}, defaultInputValidationPaneInvalidInputErrorMessageStyles, (_props$styleProps9 = props.styleProps) === null || _props$styleProps9 === void 0 ? void 0 : _props$styleProps9.invalidInputErrorMessageStyleProps)
|
|
140
168
|
};
|
|
141
169
|
const buttonGroupStyles = {
|
|
142
|
-
root: Object.assign({}, defaultInputValidationPaneButtonGroupStyles, (_props$
|
|
170
|
+
root: Object.assign({}, defaultInputValidationPaneButtonGroupStyles, (_props$styleProps10 = props.styleProps) === null || _props$styleProps10 === void 0 ? void 0 : _props$styleProps10.buttonGroupStyleProps)
|
|
143
171
|
};
|
|
144
172
|
const sendButtonStyles = {
|
|
145
|
-
root: Object.assign({}, defaultInputValidationPaneSendButtonStyles, (_props$
|
|
146
|
-
rootHovered: Object.assign({}, defaultInputValidationPaneSendButtonHoveredStyles, (_props$
|
|
173
|
+
root: Object.assign({}, defaultInputValidationPaneSendButtonStyles, (_props$styleProps11 = props.styleProps) === null || _props$styleProps11 === void 0 ? void 0 : _props$styleProps11.sendButtonStyleProps),
|
|
174
|
+
rootHovered: Object.assign({}, defaultInputValidationPaneSendButtonHoveredStyles, (_props$styleProps12 = props.styleProps) === null || _props$styleProps12 === void 0 ? void 0 : _props$styleProps12.sendButtonHoveredStyleProps)
|
|
147
175
|
};
|
|
148
176
|
const cancelButtonStyles = {
|
|
149
|
-
root: Object.assign({}, defaultInputValidationPaneCancelButtonStyles, (_props$
|
|
150
|
-
rootHovered: Object.assign({}, defaultInputValidationPaneCancelButtonHoveredStyles, (_props$
|
|
177
|
+
root: Object.assign({}, defaultInputValidationPaneCancelButtonStyles, (_props$styleProps13 = props.styleProps) === null || _props$styleProps13 === void 0 ? void 0 : _props$styleProps13.cancelButtonStyleProps),
|
|
178
|
+
rootHovered: Object.assign({}, defaultInputValidationPaneCancelButtonHoveredStyles, (_props$styleProps14 = props.styleProps) === null || _props$styleProps14 === void 0 ? void 0 : _props$styleProps14.cancelButtonHoveredStyleProps)
|
|
151
179
|
};
|
|
152
180
|
return /*#__PURE__*/React.createElement(React.Fragment, null, !((_props$controlProps15 = props.controlProps) !== null && _props$controlProps15 !== void 0 && _props$controlProps15.hideInputValidationPane) && /*#__PURE__*/React.createElement(Stack, {
|
|
153
|
-
className: (_props$
|
|
181
|
+
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,
|
|
154
182
|
id: elementId,
|
|
155
183
|
tabIndex: -1,
|
|
156
184
|
onKeyDown: handleEscKeyDown,
|
|
@@ -158,22 +186,22 @@ function InputValidationPane(props) {
|
|
|
158
186
|
"aria-label": ((_props$controlProps17 = props.controlProps) === null || _props$controlProps17 === void 0 ? void 0 : _props$controlProps17.inputValidationPaneAriaLabel) || defaultInputValidationPaneControlProps.inputValidationPaneAriaLabel,
|
|
159
187
|
styles: containerStyles
|
|
160
188
|
}, /*#__PURE__*/React.createElement(Stack, {
|
|
161
|
-
className: (_props$
|
|
189
|
+
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,
|
|
162
190
|
styles: headerGroupStyles,
|
|
163
191
|
tabIndex: -1,
|
|
164
192
|
id: elementId + "-headergroup"
|
|
165
193
|
}, !((_props$controlProps18 = props.controlProps) !== null && _props$controlProps18 !== void 0 && _props$controlProps18.hideTitle) && (decodeComponentString((_props$componentOverr = props.componentOverrides) === null || _props$componentOverr === void 0 ? void 0 : _props$componentOverr.title) || /*#__PURE__*/React.createElement(Label, {
|
|
166
|
-
className: (_props$
|
|
194
|
+
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,
|
|
167
195
|
styles: titleStyles,
|
|
168
196
|
tabIndex: -1,
|
|
169
197
|
id: elementId + "-title"
|
|
170
198
|
}, ((_props$controlProps19 = props.controlProps) === null || _props$controlProps19 === void 0 ? void 0 : _props$controlProps19.titleText) || defaultInputValidationPaneControlProps.titleText)), !((_props$controlProps20 = props.controlProps) !== null && _props$controlProps20 !== void 0 && _props$controlProps20.hideSubtitle) && (decodeComponentString((_props$componentOverr2 = props.componentOverrides) === null || _props$componentOverr2 === void 0 ? void 0 : _props$componentOverr2.subtitle) || /*#__PURE__*/React.createElement(Label, {
|
|
171
|
-
className: (_props$
|
|
199
|
+
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,
|
|
172
200
|
styles: subtitleStyles,
|
|
173
201
|
tabIndex: -1,
|
|
174
202
|
id: elementId + "-subtitle"
|
|
175
203
|
}, ((_props$controlProps21 = props.controlProps) === null || _props$controlProps21 === void 0 ? void 0 : _props$controlProps21.subtitleText) || defaultInputValidationPaneControlProps.subtitleText)), !((_props$controlProps22 = props.controlProps) !== null && _props$controlProps22 !== void 0 && _props$controlProps22.hideInput) && (decodeComponentString((_props$componentOverr3 = props.componentOverrides) === null || _props$componentOverr3 === void 0 ? void 0 : _props$componentOverr3.input) || /*#__PURE__*/React.createElement(TextField, {
|
|
176
|
-
className: (_props$
|
|
204
|
+
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,
|
|
177
205
|
styles: isInvalidInput ? inputWithErrorMessageStyles : inputStyles,
|
|
178
206
|
tabIndex: 0,
|
|
179
207
|
value: inputValue ?? defaultInputValidationPaneControlProps.inputInitialText,
|
|
@@ -183,7 +211,7 @@ function InputValidationPane(props) {
|
|
|
183
211
|
onChange: handleInputChange,
|
|
184
212
|
onKeyDown: handleInputKeyDown
|
|
185
213
|
})), isInvalidInput && (decodeComponentString((_props$componentOverr4 = props.componentOverrides) === null || _props$componentOverr4 === void 0 ? void 0 : _props$componentOverr4.invalidInputErrorMessage) || /*#__PURE__*/React.createElement(Stack, {
|
|
186
|
-
className: (_props$
|
|
214
|
+
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,
|
|
187
215
|
styles: invalidInputErrorMessageStyles,
|
|
188
216
|
"aria-label": ((_props$controlProps25 = props.controlProps) === null || _props$controlProps25 === void 0 ? void 0 : _props$controlProps25.invalidInputErrorMessageText) || defaultInputValidationPaneControlProps.invalidInputErrorMessageText,
|
|
189
217
|
tabIndex: -1,
|
|
@@ -191,12 +219,12 @@ function InputValidationPane(props) {
|
|
|
191
219
|
id: elementId + "-invalidinputerrormessage"
|
|
192
220
|
}, ((_props$controlProps26 = props.controlProps) === null || _props$controlProps26 === void 0 ? void 0 : _props$controlProps26.invalidInputErrorMessageText) || defaultInputValidationPaneControlProps.invalidInputErrorMessageText))), /*#__PURE__*/React.createElement(Stack, {
|
|
193
221
|
horizontal: ((_props$controlProps27 = props.controlProps) === null || _props$controlProps27 === void 0 ? void 0 : _props$controlProps27.isButtonGroupHorizontal) ?? defaultInputValidationPaneControlProps.isButtonGroupHorizontal,
|
|
194
|
-
className: (_props$
|
|
222
|
+
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,
|
|
195
223
|
styles: buttonGroupStyles,
|
|
196
224
|
tabIndex: -1,
|
|
197
225
|
id: elementId + "-buttongroup"
|
|
198
226
|
}, !((_props$controlProps28 = props.controlProps) !== null && _props$controlProps28 !== void 0 && _props$controlProps28.hideSendButton) && (decodeComponentString((_props$componentOverr5 = props.componentOverrides) === null || _props$componentOverr5 === void 0 ? void 0 : _props$componentOverr5.sendButton) || /*#__PURE__*/React.createElement(PrimaryButton, {
|
|
199
|
-
className: (_props$
|
|
227
|
+
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,
|
|
200
228
|
styles: sendButtonStyles,
|
|
201
229
|
title: ((_props$controlProps29 = props.controlProps) === null || _props$controlProps29 === void 0 ? void 0 : _props$controlProps29.sendButtonText) || defaultInputValidationPaneControlProps.sendButtonText,
|
|
202
230
|
tabIndex: 0,
|
|
@@ -206,7 +234,7 @@ function InputValidationPane(props) {
|
|
|
206
234
|
id: elementId + "-sendbutton",
|
|
207
235
|
ariaLabel: ((_props$controlProps31 = props.controlProps) === null || _props$controlProps31 === void 0 ? void 0 : _props$controlProps31.sendButtonAriaLabel) || defaultInputValidationPaneControlProps.sendButtonAriaLabel
|
|
208
236
|
})), !((_props$controlProps32 = props.controlProps) !== null && _props$controlProps32 !== void 0 && _props$controlProps32.hideCancelButton) && (decodeComponentString((_props$componentOverr6 = props.componentOverrides) === null || _props$componentOverr6 === void 0 ? void 0 : _props$componentOverr6.cancelButton) || /*#__PURE__*/React.createElement(DefaultButton, {
|
|
209
|
-
className: (_props$
|
|
237
|
+
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,
|
|
210
238
|
styles: cancelButtonStyles,
|
|
211
239
|
title: ((_props$controlProps33 = props.controlProps) === null || _props$controlProps33 === void 0 ? void 0 : _props$controlProps33.cancelButtonText) || defaultInputValidationPaneControlProps.cancelButtonText,
|
|
212
240
|
tabIndex: 0,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ImageFit } from "@fluentui/react";
|
|
2
|
-
import
|
|
2
|
+
import { ModernChatIconBase64 } from "../../../../../assets/Icons";
|
|
3
3
|
export const defaultLoadingPaneIconImageProps = {
|
|
4
|
-
src:
|
|
4
|
+
src: ModernChatIconBase64,
|
|
5
5
|
imageFit: ImageFit.center,
|
|
6
6
|
width: "86px",
|
|
7
7
|
height: "86px",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ImageFit } from "@fluentui/react";
|
|
2
|
-
import
|
|
2
|
+
import { LegacyChatIconBase64 } from "../../../../../assets/Icons";
|
|
3
3
|
export const presetThreeLoadingPaneIconImageProps = {
|
|
4
|
-
src:
|
|
4
|
+
src: LegacyChatIconBase64,
|
|
5
5
|
imageFit: ImageFit.center,
|
|
6
6
|
width: "57px",
|
|
7
7
|
height: "57px",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ModernChatIconBase64 } from "../../../../../assets/Icons";
|
|
2
2
|
export const presetTwoLoadingPaneGeneralStyles = {
|
|
3
3
|
borderStyle: "dotted",
|
|
4
4
|
borderRadius: "50%",
|
|
5
5
|
borderWidth: "5px",
|
|
6
6
|
backgroundColor: "#767676",
|
|
7
7
|
backgroundSize: "250px",
|
|
8
|
-
backgroundImage: `url(${
|
|
8
|
+
backgroundImage: `url(${ModernChatIconBase64})`,
|
|
9
9
|
backgroundRepeat: "no-repeat",
|
|
10
10
|
backgroundPosition: "center",
|
|
11
11
|
borderColor: "",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ErrorIconBase64 } from "../../../../../assets/Icons";
|
|
2
2
|
export const presetTwoOOOHPaneGeneralStyles = {
|
|
3
3
|
borderStyle: "dotted solid double dashed",
|
|
4
4
|
borderRadius: "40%",
|
|
5
5
|
borderWidth: "5px",
|
|
6
6
|
backgroundColor: "#FFFFFF",
|
|
7
7
|
backgroundSize: "200px",
|
|
8
|
-
backgroundImage: `url(${
|
|
8
|
+
backgroundImage: `url(${ErrorIconBase64})`,
|
|
9
9
|
backgroundRepeat: "no-repeat",
|
|
10
10
|
backgroundPosition: "center",
|
|
11
11
|
borderColor: "#F2FFF1",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { CloseChatButtonIconBase64 } from "../../../../../assets/Icons";
|
|
2
2
|
export const defaultProactiveChatPaneCloseButtonStyles = {
|
|
3
|
-
backgroundImage:
|
|
3
|
+
backgroundImage: `url(${CloseChatButtonIconBase64})`,
|
|
4
4
|
backgroundPosition: "center",
|
|
5
5
|
backgroundRepeat: "no-repeat",
|
|
6
6
|
color: "#605e5c",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ProactiveChatBannerBase64 } from "../../../../../assets/Icons";
|
|
2
2
|
export const defaultProactiveChatPaneHeaderContainerStyles = {
|
|
3
3
|
backgroundColor: "rgb(49, 95, 162)",
|
|
4
|
-
backgroundImage:
|
|
4
|
+
backgroundImage: `url(${ProactiveChatBannerBase64})`,
|
|
5
5
|
backgroundPosition: "initial",
|
|
6
6
|
backgroundRepeat: "no-repeat",
|
|
7
7
|
borderTopLeftRadius: "inherit",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ChatReconnectIconBase64 } from "../../../../../assets/Icons";
|
|
2
2
|
export const defaultReconnectChatPaneIconStyles = {
|
|
3
|
-
backgroundImage:
|
|
3
|
+
backgroundImage: `url(${ChatReconnectIconBase64})`,
|
|
4
4
|
backgroundPosition: "center",
|
|
5
5
|
backgroundRepeat: "no-repeat",
|
|
6
6
|
backgroundSize: "200px",
|
package/lib/esm/index.js
CHANGED
|
@@ -16,4 +16,5 @@ export { ElementType } from "./common/Constants";
|
|
|
16
16
|
export { default as CallingContainer } from "./components/callingcontainer/CallingContainer";
|
|
17
17
|
export { default as CurrentCall } from "./components/callingcontainer/subcomponents/CurrentCall/CurrentCall";
|
|
18
18
|
export { default as IncomingCall } from "./components/callingcontainer/subcomponents/IncomingCall/IncomingCall";
|
|
19
|
-
export { default as Timer } from "./components/callingcontainer/subcomponents/Timer/Timer";
|
|
19
|
+
export { default as Timer } from "./components/callingcontainer/subcomponents/Timer/Timer";
|
|
20
|
+
export { ModernChatIconBase64, LegacyChatIconBase64, CustomChatIconBase64, LoadingSpinnerBase64, AgentIconBase64, ChatReconnectIconBase64, CloseChatButtonIconBase64, MinimizeChatButtonIconBase64, ErrorIconBase64, AudioNotificationOffIconBase64, AudioNotificationOnIconBase64, ProactiveChatBannerBase64, TranscriptDownloadIconBase64, TranscriptEmailIconBase64, CallAcceptButtonBase64, CallRejectButtonBase64, VideoCallAcceptButtonIconBase64, VideoOffIconBase64, VideoOnIconBase64, VoiceOffIconBase64, VoiceOnIconBase64 } from "./assets/Icons";
|