@microsoft/omnichannel-chat-components 0.1.0-main.ea06308 → 0.1.0-main.fc27009
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 +4 -16
- 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/callingcontainer/subcomponents/IncomingCall/common/defaultStyles/defaultIncomingCallStyleProps.js +8 -8
- package/lib/cjs/components/chatbutton/ChatButton.js +23 -13
- package/lib/cjs/components/chatbutton/common/defaultStyles/defaultChatButtonIconContainerStyles.js +2 -4
- package/lib/cjs/components/common/commandbutton/CommandButton.js +2 -1
- package/lib/cjs/components/confirmationpane/ConfirmationPane.js +12 -10
- package/lib/cjs/components/footer/common/defaultProps/customFooterControlProps.js +5 -13
- package/lib/cjs/components/footer/subcomponents/AudioNotificationButton.js +2 -1
- 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 +48 -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/postchatsurveypane/PostChatSurveyPane.js +2 -2
- package/lib/cjs/components/prechatsurveypane/PreChatSurveyPane.js +5 -4
- package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneButtonStyles.js +2 -1
- package/lib/cjs/components/proactivechatpane/ProactiveChatPane.js +17 -15
- 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/ReconnectChatPane.js +14 -12
- 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 +4 -16
- 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/callingcontainer/subcomponents/IncomingCall/common/defaultStyles/defaultIncomingCallStyleProps.js +8 -8
- package/lib/esm/components/chatbutton/ChatButton.js +24 -14
- package/lib/esm/components/chatbutton/common/defaultStyles/defaultChatButtonIconContainerStyles.js +2 -2
- package/lib/esm/components/common/commandbutton/CommandButton.js +2 -1
- package/lib/esm/components/confirmationpane/ConfirmationPane.js +12 -10
- package/lib/esm/components/footer/common/defaultProps/customFooterControlProps.js +5 -8
- package/lib/esm/components/footer/subcomponents/AudioNotificationButton.js +2 -1
- 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 +48 -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/postchatsurveypane/PostChatSurveyPane.js +2 -2
- package/lib/esm/components/prechatsurveypane/PreChatSurveyPane.js +5 -4
- package/lib/esm/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneButtonStyles.js +2 -1
- package/lib/esm/components/proactivechatpane/ProactiveChatPane.js +17 -15
- 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/ReconnectChatPane.js +14 -12
- 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 +6 -0
- package/lib/types/components/callingcontainer/subcomponents/CurrentCall/interfaces/ICurrentCallStyleProps.d.ts +0 -4
- package/lib/types/components/prechatsurveypane/interfaces/IPreChatSurveyPaneButtonStyles.d.ts +1 -0
- 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,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",
|
|
@@ -6,8 +6,8 @@ export const defaultIncomingCallStyleProps = {
|
|
|
6
6
|
},
|
|
7
7
|
audioCallButtonStyleProps: {
|
|
8
8
|
borderRadius: "50%",
|
|
9
|
-
color: "
|
|
10
|
-
backgroundColor: "
|
|
9
|
+
color: "#FFFFFF",
|
|
10
|
+
backgroundColor: "#008000",
|
|
11
11
|
lineHeight: "40px",
|
|
12
12
|
height: "40px",
|
|
13
13
|
width: "40px",
|
|
@@ -18,8 +18,8 @@ export const defaultIncomingCallStyleProps = {
|
|
|
18
18
|
},
|
|
19
19
|
videoCallButtonStyleProps: {
|
|
20
20
|
borderRadius: "50%",
|
|
21
|
-
color: "
|
|
22
|
-
backgroundColor: "
|
|
21
|
+
color: "#FFFFFF",
|
|
22
|
+
backgroundColor: "#008000",
|
|
23
23
|
lineHeight: "40px",
|
|
24
24
|
height: "40px",
|
|
25
25
|
width: "40px",
|
|
@@ -34,8 +34,8 @@ export const defaultIncomingCallStyleProps = {
|
|
|
34
34
|
},
|
|
35
35
|
declineCallButtonStyleProps: {
|
|
36
36
|
borderRadius: "50%",
|
|
37
|
-
color: "
|
|
38
|
-
backgroundColor: "
|
|
37
|
+
color: "#FFFFFF",
|
|
38
|
+
backgroundColor: "#DC0000",
|
|
39
39
|
lineHeight: "40px",
|
|
40
40
|
height: "40px",
|
|
41
41
|
width: "40px",
|
|
@@ -44,11 +44,11 @@ export const defaultIncomingCallStyleProps = {
|
|
|
44
44
|
},
|
|
45
45
|
incomingCallTitleStyleProps: {
|
|
46
46
|
margin: "0 5px",
|
|
47
|
-
color: "
|
|
47
|
+
color: "#FFFFFF",
|
|
48
48
|
fontSize: 12,
|
|
49
49
|
fontFamily: "Segoe UI, Arial, sans-serif"
|
|
50
50
|
},
|
|
51
51
|
itemFocusStyleProps: {
|
|
52
|
-
outline: "2px solid
|
|
52
|
+
outline: "2px solid #FFFFFF"
|
|
53
53
|
}
|
|
54
54
|
};
|
|
@@ -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 } from "../../common/Constants";
|
|
4
|
+
import { ElementType, 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,18 +12,24 @@ 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
|
|
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
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
|
|
22
|
+
if (unreadMessageCount !== "0") {
|
|
23
|
+
var _props$componentOverr, _props$styleProps2, _props$styleProps2$cl;
|
|
24
|
+
|
|
25
|
+
return decodeComponentString((_props$componentOverr = props.componentOverrides) === null || _props$componentOverr === void 0 ? void 0 : _props$componentOverr.notificationBubble) || /*#__PURE__*/React.createElement(Label, {
|
|
26
|
+
styles: notificationBubbleStyles,
|
|
27
|
+
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,
|
|
28
|
+
id: parentId + "-notification-bubble"
|
|
29
|
+
}, unreadMessageCount);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
return null;
|
|
27
33
|
}
|
|
28
34
|
|
|
29
35
|
function IconContainer(props, parentId) {
|
|
@@ -35,7 +41,6 @@ function IconContainer(props, parentId) {
|
|
|
35
41
|
return decodeComponentString((_props$componentOverr2 = props.componentOverrides) === null || _props$componentOverr2 === void 0 ? void 0 : _props$componentOverr2.iconContainer) || /*#__PURE__*/React.createElement(Icon, {
|
|
36
42
|
className: (_props$styleProps4 = props.styleProps) === null || _props$styleProps4 === void 0 ? void 0 : (_props$styleProps4$cl = _props$styleProps4.classNames) === null || _props$styleProps4$cl === void 0 ? void 0 : _props$styleProps4$cl.iconContainerClassName,
|
|
37
43
|
styles: iconContainerStyles,
|
|
38
|
-
tabIndex: -1,
|
|
39
44
|
id: parentId + "-icon-container"
|
|
40
45
|
});
|
|
41
46
|
}
|
|
@@ -61,18 +66,15 @@ function TextContainer(props, parentId) {
|
|
|
61
66
|
return decodeComponentString((_props$componentOverr3 = props.componentOverrides) === null || _props$componentOverr3 === void 0 ? void 0 : _props$componentOverr3.textContainer) || /*#__PURE__*/React.createElement(Stack, {
|
|
62
67
|
styles: textContainerStyles,
|
|
63
68
|
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,
|
|
64
|
-
id: parentId + "-text-container"
|
|
65
|
-
tabIndex: -1
|
|
69
|
+
id: parentId + "-text-container"
|
|
66
70
|
}, !hideChatTitle && (decodeComponentString((_props$componentOverr4 = props.componentOverrides) === null || _props$componentOverr4 === void 0 ? void 0 : _props$componentOverr4.title) || /*#__PURE__*/React.createElement(Label, {
|
|
67
71
|
styles: titleStyles,
|
|
68
|
-
tabIndex: -1,
|
|
69
72
|
dir: titleDir,
|
|
70
73
|
className: (_props$styleProps9 = props.styleProps) === null || _props$styleProps9 === void 0 ? void 0 : (_props$styleProps9$cl = _props$styleProps9.classNames) === null || _props$styleProps9$cl === void 0 ? void 0 : _props$styleProps9$cl.titleClassName,
|
|
71
74
|
id: parentId + "-title",
|
|
72
75
|
title: titleText
|
|
73
76
|
}, titleText)), !hideChatSubtitle && (decodeComponentString((_props$componentOverr5 = props.componentOverrides) === null || _props$componentOverr5 === void 0 ? void 0 : _props$componentOverr5.subtitle) || /*#__PURE__*/React.createElement(Label, {
|
|
74
77
|
styles: subtitleStyles,
|
|
75
|
-
tabIndex: -1,
|
|
76
78
|
dir: subtitleDir,
|
|
77
79
|
className: (_props$styleProps10 = props.styleProps) === null || _props$styleProps10 === void 0 ? void 0 : (_props$styleProps10$c = _props$styleProps10.classNames) === null || _props$styleProps10$c === void 0 ? void 0 : _props$styleProps10$c.subtitleClassName,
|
|
78
80
|
id: parentId + "-subtitle",
|
|
@@ -106,7 +108,14 @@ function ChatButton(props) {
|
|
|
106
108
|
BroadcastService.postMessage(customEvent);
|
|
107
109
|
props.controlProps.onClick();
|
|
108
110
|
}
|
|
109
|
-
}, []);
|
|
111
|
+
}, []); // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
112
|
+
|
|
113
|
+
const handleInputKeyDown = e => {
|
|
114
|
+
if (e.code === KeyCodes.ENTER || e.code === KeyCodes.SPACE) {
|
|
115
|
+
handleInitiateChatClick();
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
|
|
110
119
|
return /*#__PURE__*/React.createElement(React.Fragment, null, !hideChatButton && /*#__PURE__*/React.createElement(Stack, {
|
|
111
120
|
horizontal: true,
|
|
112
121
|
id: elementId,
|
|
@@ -115,6 +124,7 @@ function ChatButton(props) {
|
|
|
115
124
|
tabIndex: 0,
|
|
116
125
|
role: defaultRole,
|
|
117
126
|
onClick: handleInitiateChatClick,
|
|
127
|
+
onKeyDown: handleInputKeyDown,
|
|
118
128
|
"aria-label": defaultAriaLabel
|
|
119
129
|
}, !hideChatIcon && IconContainer(props, elementId), !hideChatTextContainer && TextContainer(props, elementId), !hideNotificationBubble && NotificationBubble(props, elementId)));
|
|
120
130
|
}
|
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%",
|
|
@@ -16,7 +16,8 @@ function CommandButton(props) {
|
|
|
16
16
|
const iconButtonStyles = {
|
|
17
17
|
root: props.styles,
|
|
18
18
|
rootHovered: props.hoverStyles,
|
|
19
|
-
rootFocused: props.focusStyles
|
|
19
|
+
rootFocused: props.focusStyles,
|
|
20
|
+
rootPressed: props.hoverStyles
|
|
20
21
|
};
|
|
21
22
|
const handleOnClick = useCallback(() => {
|
|
22
23
|
if (props !== null && props !== void 0 && props.onClick) {
|
|
@@ -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$
|
|
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$
|
|
72
|
-
rootHovered: Object.assign({}, defaultConfirmationPaneCancelButtonHoveredStyles, (_props$
|
|
73
|
-
rootFocused: Object.assign({}, defaultConfirmationPaneCancelButtonFocusedStyles, (_props$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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,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
|
};
|
|
@@ -11,7 +11,8 @@ function AudioNotificationButton(props) {
|
|
|
11
11
|
const iconButtonStyles = {
|
|
12
12
|
root: props === null || props === void 0 ? void 0 : props.styles,
|
|
13
13
|
rootHovered: props === null || props === void 0 ? void 0 : props.hoverStyles,
|
|
14
|
-
rootFocused: props === null || props === void 0 ? void 0 : props.focusStyles
|
|
14
|
+
rootFocused: props === null || props === void 0 ? void 0 : props.focusStyles,
|
|
15
|
+
rootPressed: props === null || props === void 0 ? void 0 : props.hoverStyles
|
|
15
16
|
}; //imageIconProps > iconName
|
|
16
17
|
|
|
17
18
|
const volume0Icon = props.imageToggleIconProps ? {
|
|
@@ -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$styleProps15, _props$styleProps16, _props$controlProps15, _props$styleProps17, _props$styleProps17$c, _props$controlProps16, _props$controlProps17, _props$styleProps18, _props$styleProps18$c, _props$controlProps18, _props$componentOverr, _props$styleProps19, _props$styleProps19$c, _props$controlProps19, _props$controlProps20, _props$componentOverr2, _props$styleProps20, _props$styleProps20$c, _props$controlProps21, _props$controlProps22, _props$componentOverr3, _props$styleProps21, _props$styleProps21$c, _props$controlProps23, _props$controlProps24, _props$componentOverr4, _props$styleProps22, _props$styleProps22$c, _props$controlProps25, _props$controlProps26, _props$controlProps27, _props$styleProps23, _props$styleProps23$c, _props$controlProps28, _props$componentOverr5, _props$styleProps24, _props$styleProps24$c, _props$controlProps29, _props$controlProps30, _props$controlProps31, _props$controlProps32, _props$componentOverr6, _props$styleProps25, _props$styleProps25$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,57 @@ 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),
|
|
175
|
+
rootPressed: Object.assign({}, defaultInputValidationPaneSendButtonHoveredStyles, (_props$styleProps13 = props.styleProps) === null || _props$styleProps13 === void 0 ? void 0 : _props$styleProps13.sendButtonHoveredStyleProps)
|
|
147
176
|
};
|
|
148
177
|
const cancelButtonStyles = {
|
|
149
|
-
root: Object.assign({}, defaultInputValidationPaneCancelButtonStyles, (_props$
|
|
150
|
-
rootHovered: Object.assign({}, defaultInputValidationPaneCancelButtonHoveredStyles, (_props$
|
|
178
|
+
root: Object.assign({}, defaultInputValidationPaneCancelButtonStyles, (_props$styleProps14 = props.styleProps) === null || _props$styleProps14 === void 0 ? void 0 : _props$styleProps14.cancelButtonStyleProps),
|
|
179
|
+
rootHovered: Object.assign({}, defaultInputValidationPaneCancelButtonHoveredStyles, (_props$styleProps15 = props.styleProps) === null || _props$styleProps15 === void 0 ? void 0 : _props$styleProps15.cancelButtonHoveredStyleProps),
|
|
180
|
+
rootPressed: Object.assign({}, defaultInputValidationPaneCancelButtonHoveredStyles, (_props$styleProps16 = props.styleProps) === null || _props$styleProps16 === void 0 ? void 0 : _props$styleProps16.cancelButtonHoveredStyleProps)
|
|
151
181
|
};
|
|
152
182
|
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$
|
|
183
|
+
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.containerClassName,
|
|
154
184
|
id: elementId,
|
|
155
185
|
tabIndex: -1,
|
|
156
186
|
onKeyDown: handleEscKeyDown,
|
|
@@ -158,22 +188,22 @@ function InputValidationPane(props) {
|
|
|
158
188
|
"aria-label": ((_props$controlProps17 = props.controlProps) === null || _props$controlProps17 === void 0 ? void 0 : _props$controlProps17.inputValidationPaneAriaLabel) || defaultInputValidationPaneControlProps.inputValidationPaneAriaLabel,
|
|
159
189
|
styles: containerStyles
|
|
160
190
|
}, /*#__PURE__*/React.createElement(Stack, {
|
|
161
|
-
className: (_props$
|
|
191
|
+
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.headerGroupClassName,
|
|
162
192
|
styles: headerGroupStyles,
|
|
163
193
|
tabIndex: -1,
|
|
164
194
|
id: elementId + "-headergroup"
|
|
165
195
|
}, !((_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$
|
|
196
|
+
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.titleClassName,
|
|
167
197
|
styles: titleStyles,
|
|
168
198
|
tabIndex: -1,
|
|
169
199
|
id: elementId + "-title"
|
|
170
200
|
}, ((_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$
|
|
201
|
+
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.subtitleClassName,
|
|
172
202
|
styles: subtitleStyles,
|
|
173
203
|
tabIndex: -1,
|
|
174
204
|
id: elementId + "-subtitle"
|
|
175
205
|
}, ((_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$
|
|
206
|
+
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.inputClassName,
|
|
177
207
|
styles: isInvalidInput ? inputWithErrorMessageStyles : inputStyles,
|
|
178
208
|
tabIndex: 0,
|
|
179
209
|
value: inputValue ?? defaultInputValidationPaneControlProps.inputInitialText,
|
|
@@ -183,7 +213,7 @@ function InputValidationPane(props) {
|
|
|
183
213
|
onChange: handleInputChange,
|
|
184
214
|
onKeyDown: handleInputKeyDown
|
|
185
215
|
})), isInvalidInput && (decodeComponentString((_props$componentOverr4 = props.componentOverrides) === null || _props$componentOverr4 === void 0 ? void 0 : _props$componentOverr4.invalidInputErrorMessage) || /*#__PURE__*/React.createElement(Stack, {
|
|
186
|
-
className: (_props$
|
|
216
|
+
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.invalidInputErrorMessageClassName,
|
|
187
217
|
styles: invalidInputErrorMessageStyles,
|
|
188
218
|
"aria-label": ((_props$controlProps25 = props.controlProps) === null || _props$controlProps25 === void 0 ? void 0 : _props$controlProps25.invalidInputErrorMessageText) || defaultInputValidationPaneControlProps.invalidInputErrorMessageText,
|
|
189
219
|
tabIndex: -1,
|
|
@@ -191,12 +221,12 @@ function InputValidationPane(props) {
|
|
|
191
221
|
id: elementId + "-invalidinputerrormessage"
|
|
192
222
|
}, ((_props$controlProps26 = props.controlProps) === null || _props$controlProps26 === void 0 ? void 0 : _props$controlProps26.invalidInputErrorMessageText) || defaultInputValidationPaneControlProps.invalidInputErrorMessageText))), /*#__PURE__*/React.createElement(Stack, {
|
|
193
223
|
horizontal: ((_props$controlProps27 = props.controlProps) === null || _props$controlProps27 === void 0 ? void 0 : _props$controlProps27.isButtonGroupHorizontal) ?? defaultInputValidationPaneControlProps.isButtonGroupHorizontal,
|
|
194
|
-
className: (_props$
|
|
224
|
+
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.buttonGroupClassName,
|
|
195
225
|
styles: buttonGroupStyles,
|
|
196
226
|
tabIndex: -1,
|
|
197
227
|
id: elementId + "-buttongroup"
|
|
198
228
|
}, !((_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$
|
|
229
|
+
className: (_props$styleProps24 = props.styleProps) === null || _props$styleProps24 === void 0 ? void 0 : (_props$styleProps24$c = _props$styleProps24.classNames) === null || _props$styleProps24$c === void 0 ? void 0 : _props$styleProps24$c.sendButtonClassName,
|
|
200
230
|
styles: sendButtonStyles,
|
|
201
231
|
title: ((_props$controlProps29 = props.controlProps) === null || _props$controlProps29 === void 0 ? void 0 : _props$controlProps29.sendButtonText) || defaultInputValidationPaneControlProps.sendButtonText,
|
|
202
232
|
tabIndex: 0,
|
|
@@ -206,7 +236,7 @@ function InputValidationPane(props) {
|
|
|
206
236
|
id: elementId + "-sendbutton",
|
|
207
237
|
ariaLabel: ((_props$controlProps31 = props.controlProps) === null || _props$controlProps31 === void 0 ? void 0 : _props$controlProps31.sendButtonAriaLabel) || defaultInputValidationPaneControlProps.sendButtonAriaLabel
|
|
208
238
|
})), !((_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$
|
|
239
|
+
className: (_props$styleProps25 = props.styleProps) === null || _props$styleProps25 === void 0 ? void 0 : (_props$styleProps25$c = _props$styleProps25.classNames) === null || _props$styleProps25$c === void 0 ? void 0 : _props$styleProps25$c.cancelButtonClassName,
|
|
210
240
|
styles: cancelButtonStyles,
|
|
211
241
|
title: ((_props$controlProps33 = props.controlProps) === null || _props$controlProps33 === void 0 ? void 0 : _props$controlProps33.cancelButtonText) || defaultInputValidationPaneControlProps.cancelButtonText,
|
|
212
242
|
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",
|