@microsoft/omnichannel-chat-components 1.0.1-main.9f52604 → 1.0.2-main.9430c05
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/lib/cjs/common/Constants.js +16 -3
- package/lib/cjs/components/callingcontainer/common/defaultProps/defaultCallingContainerControlProps.js +4 -1
- package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/CurrentCall.js +6 -6
- package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/common/defaultProps/defaultCurrentCallControlProps.js +26 -23
- package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/common/defaultProps/defaultCurrentCallControlPropsRtl.js +20 -18
- package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/IncomingCall.js +6 -6
- package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/defaultIncomingCallControlProps.js +22 -19
- package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/defaultIncomingCallControlPropsRtl.js +18 -16
- package/lib/cjs/components/chatbutton/ChatButton.js +4 -6
- package/lib/cjs/components/chatbutton/common/defaultProps/defaultChatButtonControlProps.js +9 -7
- package/lib/cjs/components/chatbutton/common/defaultStyles/defaultChatButtonGeneralStyles.js +1 -1
- package/lib/cjs/components/chatbutton/common/defaultStyles/defaultChatButtonSubTitleStyles.js +2 -1
- package/lib/cjs/components/chatbutton/common/defaultStyles/defaultChatButtonTitleStyles.js +2 -1
- package/lib/cjs/components/common/commandbutton/CommandButton.js +6 -5
- package/lib/cjs/components/common/subcomponents/CloseButton.js +4 -4
- package/lib/cjs/components/confirmationpane/ConfirmationPane.js +2 -2
- package/lib/cjs/components/confirmationpane/common/defaultProps/defaultConfirmationPaneControlProps.js +10 -7
- package/lib/cjs/components/footer/Footer.js +10 -17
- package/lib/cjs/components/footer/common/defaultProps/customFooterControlProps.js +16 -11
- package/lib/cjs/components/footer/common/defaultProps/defaultFooterControlProps.js +21 -15
- package/lib/cjs/components/footer/common/defaultStyles/defaultFooterStyleProps.js +1 -1
- package/lib/cjs/components/footer/subcomponents/AudioNotificationButton.js +6 -5
- package/lib/cjs/components/footer/subcomponents/DownloadTranscriptButton.js +5 -5
- package/lib/cjs/components/footer/subcomponents/EmailTranscriptButton.js +5 -5
- package/lib/cjs/components/header/Header.js +5 -3
- package/lib/cjs/components/header/common/defaultProps/azureHeaderControlProps.js +8 -6
- package/lib/cjs/components/header/common/defaultProps/customHeaderControlProps.js +13 -9
- package/lib/cjs/components/header/common/defaultProps/defaultHeaderComponentOverrides.js +3 -1
- package/lib/cjs/components/header/common/defaultProps/defaultHeaderControlProps.js +15 -11
- package/lib/cjs/components/header/subcomponents/MinimizeButton.js +6 -5
- package/lib/cjs/components/inputvalidationpane/common/default/defaultProps/defaultInputValidationPaneControlProps.js +11 -11
- package/lib/cjs/components/inputvalidationpane/common/presetTwo/presetTwoProps/presetTwoInputValidationPaneControlProps.js +11 -11
- package/lib/cjs/components/loadingpane/LoadingPane.js +1 -1
- package/lib/cjs/components/loadingpane/common/defaultProps/defaultLoadingPaneControlProps.js +7 -4
- package/lib/cjs/components/loadingpane/common/presetOneProps/presetOneLoadingPaneControlProps.js +1 -1
- package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeLoadingPaneControlProps.js +1 -1
- package/lib/cjs/components/loadingpane/common/presetTwoProps/presetTwoLoadingPaneControlProps.js +1 -1
- package/lib/cjs/components/outofofficehourspane/common/defaultProps/defaultOOOHPaneControlProps.js +5 -2
- package/lib/cjs/components/outofofficehourspane/common/presetFourProps/presetFourOOOHPaneControlProps.js +1 -1
- package/lib/cjs/components/outofofficehourspane/common/presetOneProps/presetOneOOOHPaneControlProps.js +1 -1
- package/lib/cjs/components/outofofficehourspane/common/presetTwoProps/presetTwoOOOHPaneControlProps.js +1 -1
- package/lib/cjs/components/postchatsurveypane/common/defaultProps/defaultPostChatSurveyPaneControlProps.js +5 -2
- package/lib/cjs/components/postchatsurveypane/common/presetOneProps/presetOnePostChatSurveyPaneControlProps.js +1 -1
- package/lib/cjs/components/prechatsurveypane/PreChatSurveyPane.js +2 -2
- package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultPreChatSurveyPaneControlProps.js +4 -1
- package/lib/cjs/components/prechatsurveypane/common/presetThreeProps/presetThreePreChatSurveyPaneControlProps.js +1 -1
- package/lib/cjs/components/prechatsurveypane/common/presetTwoProps/presetTwoPreChatSurveyPaneControlProps.js +1 -1
- package/lib/cjs/components/proactivechatpane/common/default/defaultProps/defaultProactiveChatPaneControlProps.js +12 -9
- package/lib/cjs/components/proactivechatpane/common/presetOne/presetOneProps/presetOneProactiveChatPaneControlProps.js +12 -9
- package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeProps/presetThreeProactiveChatPaneControlProps.js +12 -9
- package/lib/cjs/components/proactivechatpane/common/presetTwo/presetTwoProps/presetTwoProactiveChatPaneControlProps.js +9 -6
- package/lib/cjs/components/reconnectchatpane/ReconnectChatPane.js +3 -3
- package/lib/cjs/components/reconnectchatpane/common/default/defaultProps/defaultReconnectChatPaneControlProps.js +12 -9
- package/lib/cjs/components/reconnectchatpane/common/presetThree/presetThreeProps/presetThreeReconnectChatPaneControlProps.js +11 -8
- package/lib/esm/common/Constants.js +9 -2
- package/lib/esm/components/callingcontainer/common/defaultProps/defaultCallingContainerControlProps.js +2 -1
- package/lib/esm/components/callingcontainer/subcomponents/CurrentCall/CurrentCall.js +7 -7
- package/lib/esm/components/callingcontainer/subcomponents/CurrentCall/common/defaultProps/defaultCurrentCallControlProps.js +24 -23
- package/lib/esm/components/callingcontainer/subcomponents/CurrentCall/common/defaultProps/defaultCurrentCallControlPropsRtl.js +19 -18
- package/lib/esm/components/callingcontainer/subcomponents/IncomingCall/IncomingCall.js +7 -7
- package/lib/esm/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/defaultIncomingCallControlProps.js +20 -19
- package/lib/esm/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/defaultIncomingCallControlPropsRtl.js +17 -16
- package/lib/esm/components/chatbutton/ChatButton.js +5 -7
- package/lib/esm/components/chatbutton/common/defaultProps/defaultChatButtonControlProps.js +7 -7
- package/lib/esm/components/chatbutton/common/defaultStyles/defaultChatButtonGeneralStyles.js +1 -1
- package/lib/esm/components/chatbutton/common/defaultStyles/defaultChatButtonSubTitleStyles.js +2 -1
- package/lib/esm/components/chatbutton/common/defaultStyles/defaultChatButtonTitleStyles.js +2 -1
- package/lib/esm/components/common/commandbutton/CommandButton.js +7 -6
- package/lib/esm/components/common/subcomponents/CloseButton.js +5 -5
- package/lib/esm/components/confirmationpane/ConfirmationPane.js +3 -3
- package/lib/esm/components/confirmationpane/common/defaultProps/defaultConfirmationPaneControlProps.js +8 -7
- package/lib/esm/components/footer/Footer.js +9 -17
- package/lib/esm/components/footer/common/defaultProps/customFooterControlProps.js +15 -11
- package/lib/esm/components/footer/common/defaultProps/defaultFooterControlProps.js +19 -15
- package/lib/esm/components/footer/common/defaultStyles/defaultFooterStyleProps.js +1 -1
- package/lib/esm/components/footer/subcomponents/AudioNotificationButton.js +7 -6
- package/lib/esm/components/footer/subcomponents/DownloadTranscriptButton.js +6 -6
- package/lib/esm/components/footer/subcomponents/EmailTranscriptButton.js +6 -6
- package/lib/esm/components/header/Header.js +4 -3
- package/lib/esm/components/header/common/defaultProps/azureHeaderControlProps.js +7 -6
- package/lib/esm/components/header/common/defaultProps/customHeaderControlProps.js +12 -9
- package/lib/esm/components/header/common/defaultProps/defaultHeaderComponentOverrides.js +2 -1
- package/lib/esm/components/header/common/defaultProps/defaultHeaderControlProps.js +14 -11
- package/lib/esm/components/header/subcomponents/MinimizeButton.js +7 -6
- package/lib/esm/components/inputvalidationpane/common/default/defaultProps/defaultInputValidationPaneControlProps.js +12 -12
- package/lib/esm/components/inputvalidationpane/common/presetTwo/presetTwoProps/presetTwoInputValidationPaneControlProps.js +12 -12
- package/lib/esm/components/loadingpane/LoadingPane.js +1 -1
- package/lib/esm/components/loadingpane/common/defaultProps/defaultLoadingPaneControlProps.js +5 -4
- package/lib/esm/components/loadingpane/common/presetOneProps/presetOneLoadingPaneControlProps.js +1 -1
- package/lib/esm/components/loadingpane/common/presetThreeProps/presetThreeLoadingPaneControlProps.js +1 -1
- package/lib/esm/components/loadingpane/common/presetTwoProps/presetTwoLoadingPaneControlProps.js +1 -1
- package/lib/esm/components/outofofficehourspane/common/defaultProps/defaultOOOHPaneControlProps.js +3 -2
- package/lib/esm/components/outofofficehourspane/common/presetFourProps/presetFourOOOHPaneControlProps.js +1 -1
- package/lib/esm/components/outofofficehourspane/common/presetOneProps/presetOneOOOHPaneControlProps.js +1 -1
- package/lib/esm/components/outofofficehourspane/common/presetTwoProps/presetTwoOOOHPaneControlProps.js +1 -1
- package/lib/esm/components/postchatsurveypane/common/defaultProps/defaultPostChatSurveyPaneControlProps.js +3 -2
- package/lib/esm/components/postchatsurveypane/common/presetOneProps/presetOnePostChatSurveyPaneControlProps.js +1 -1
- package/lib/esm/components/prechatsurveypane/PreChatSurveyPane.js +3 -3
- package/lib/esm/components/prechatsurveypane/common/defaultProps/defaultPreChatSurveyPaneControlProps.js +2 -1
- package/lib/esm/components/prechatsurveypane/common/presetThreeProps/presetThreePreChatSurveyPaneControlProps.js +1 -1
- package/lib/esm/components/prechatsurveypane/common/presetTwoProps/presetTwoPreChatSurveyPaneControlProps.js +1 -1
- package/lib/esm/components/proactivechatpane/common/default/defaultProps/defaultProactiveChatPaneControlProps.js +10 -9
- package/lib/esm/components/proactivechatpane/common/presetOne/presetOneProps/presetOneProactiveChatPaneControlProps.js +10 -9
- package/lib/esm/components/proactivechatpane/common/presetThree/presetThreeProps/presetThreeProactiveChatPaneControlProps.js +10 -9
- package/lib/esm/components/proactivechatpane/common/presetTwo/presetTwoProps/presetTwoProactiveChatPaneControlProps.js +7 -6
- package/lib/esm/components/reconnectchatpane/ReconnectChatPane.js +4 -4
- package/lib/esm/components/reconnectchatpane/common/default/defaultProps/defaultReconnectChatPaneControlProps.js +10 -9
- package/lib/esm/components/reconnectchatpane/common/presetThree/presetThreeProps/presetThreeReconnectChatPaneControlProps.js +9 -8
- package/lib/types/common/Constants.d.ts +148 -0
- package/package.json +1 -1
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import { AriaLabels, IconNames, ButtonTypes, Ids } from "../../../../../../common/Constants";
|
|
1
2
|
export const defaultCurrentCallControlProps = {
|
|
2
|
-
id:
|
|
3
|
+
id: Ids.DefaultCurrentCallId,
|
|
3
4
|
nonActionIds: {
|
|
4
|
-
currentCallActionGroupId:
|
|
5
|
-
currentCallFooterId:
|
|
6
|
-
remoteVideoTileId:
|
|
7
|
-
selfVideoTileId:
|
|
8
|
-
videoTileGroupId:
|
|
5
|
+
currentCallActionGroupId: Ids.CurrentCallActionGroupId,
|
|
6
|
+
currentCallFooterId: Ids.CurrentCallFooterId,
|
|
7
|
+
remoteVideoTileId: Ids.RemoteVideoTileId,
|
|
8
|
+
selfVideoTileId: Ids.SelfVideoTileId,
|
|
9
|
+
videoTileGroupId: Ids.VideoTileGroupId
|
|
9
10
|
},
|
|
10
11
|
hideMicButton: false,
|
|
11
12
|
hideVideoButton: false,
|
|
@@ -35,32 +36,32 @@ export const defaultCurrentCallControlProps = {
|
|
|
35
36
|
children: []
|
|
36
37
|
},
|
|
37
38
|
endCallButtonProps: {
|
|
38
|
-
id:
|
|
39
|
-
type:
|
|
40
|
-
ariaLabel:
|
|
41
|
-
iconName:
|
|
39
|
+
id: Ids.EndCallButtonId,
|
|
40
|
+
type: ButtonTypes.Icon,
|
|
41
|
+
ariaLabel: AriaLabels.EndCall,
|
|
42
|
+
iconName: IconNames.DeclineCall,
|
|
42
43
|
iconSize: 18
|
|
43
44
|
},
|
|
44
45
|
micButtonProps: {
|
|
45
|
-
id:
|
|
46
|
-
type:
|
|
47
|
-
ariaLabel:
|
|
48
|
-
toggleAriaLabel:
|
|
49
|
-
iconName:
|
|
50
|
-
toggleIconName:
|
|
46
|
+
id: Ids.MicButtonId,
|
|
47
|
+
type: ButtonTypes.Icon,
|
|
48
|
+
ariaLabel: AriaLabels.MicMute,
|
|
49
|
+
toggleAriaLabel: AriaLabels.MicUnmute,
|
|
50
|
+
iconName: IconNames.Microphone,
|
|
51
|
+
toggleIconName: IconNames.MicOff2,
|
|
51
52
|
iconSize: 18
|
|
52
53
|
},
|
|
53
54
|
videoButtonProps: {
|
|
54
|
-
id:
|
|
55
|
-
type:
|
|
56
|
-
ariaLabel:
|
|
57
|
-
toggleAriaLabel:
|
|
58
|
-
iconName:
|
|
59
|
-
toggleIconName:
|
|
55
|
+
id: Ids.VideoButtonId,
|
|
56
|
+
type: ButtonTypes.Icon,
|
|
57
|
+
ariaLabel: AriaLabels.VideoTurnCameraOn,
|
|
58
|
+
toggleAriaLabel: AriaLabels.VideoTurnCameraOff,
|
|
59
|
+
iconName: IconNames.Video,
|
|
60
|
+
toggleIconName: IconNames.VideoOff,
|
|
60
61
|
iconSize: 18
|
|
61
62
|
},
|
|
62
63
|
callTimerProps: {
|
|
63
|
-
id:
|
|
64
|
+
id: Ids.CallTimerId,
|
|
64
65
|
showHours: false,
|
|
65
66
|
timerStyles: {
|
|
66
67
|
color: "white",
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { CallRejectButtonBase64, VideoOffIconBase64, VideoOnIconBase64, VoiceOffIconBase64, VoiceOnIconBase64 } from "../../../../../../assets/Icons";
|
|
2
|
+
import { AriaLabels, ButtonTypes, Ids } from "../../../../../../common/Constants";
|
|
2
3
|
export const defaultCurrentCallControlPropsRtl = {
|
|
3
|
-
id:
|
|
4
|
+
id: Ids.DefaultCurrentCallId,
|
|
4
5
|
nonActionIds: {
|
|
5
|
-
currentCallActionGroupId:
|
|
6
|
-
currentCallFooterId:
|
|
7
|
-
remoteVideoTileId:
|
|
8
|
-
selfVideoTileId:
|
|
9
|
-
videoTileGroupId:
|
|
6
|
+
currentCallActionGroupId: Ids.CurrentCallActionGroupId,
|
|
7
|
+
currentCallFooterId: Ids.CurrentCallFooterId,
|
|
8
|
+
remoteVideoTileId: Ids.RemoteVideoTileId,
|
|
9
|
+
selfVideoTileId: Ids.SelfVideoTileId,
|
|
10
|
+
videoTileGroupId: Ids.VideoTileGroupId
|
|
10
11
|
},
|
|
11
12
|
hideMicButton: false,
|
|
12
13
|
hideVideoButton: false,
|
|
@@ -37,9 +38,9 @@ export const defaultCurrentCallControlPropsRtl = {
|
|
|
37
38
|
},
|
|
38
39
|
dir: "rtl",
|
|
39
40
|
endCallButtonProps: {
|
|
40
|
-
id:
|
|
41
|
-
type:
|
|
42
|
-
ariaLabel:
|
|
41
|
+
id: Ids.EndCallButtonId,
|
|
42
|
+
type: ButtonTypes.Icon,
|
|
43
|
+
ariaLabel: AriaLabels.EndCall,
|
|
43
44
|
imageIconProps: {
|
|
44
45
|
src: CallRejectButtonBase64,
|
|
45
46
|
styles: {
|
|
@@ -51,10 +52,10 @@ export const defaultCurrentCallControlPropsRtl = {
|
|
|
51
52
|
}
|
|
52
53
|
},
|
|
53
54
|
micButtonProps: {
|
|
54
|
-
id:
|
|
55
|
-
type:
|
|
56
|
-
ariaLabel:
|
|
57
|
-
toggleAriaLabel:
|
|
55
|
+
id: Ids.MicButtonId,
|
|
56
|
+
type: ButtonTypes.Icon,
|
|
57
|
+
ariaLabel: AriaLabels.MicMute,
|
|
58
|
+
toggleAriaLabel: AriaLabels.MicUnmute,
|
|
58
59
|
imageIconProps: {
|
|
59
60
|
src: VoiceOnIconBase64,
|
|
60
61
|
styles: {
|
|
@@ -76,10 +77,10 @@ export const defaultCurrentCallControlPropsRtl = {
|
|
|
76
77
|
iconSize: 18
|
|
77
78
|
},
|
|
78
79
|
videoButtonProps: {
|
|
79
|
-
id:
|
|
80
|
-
type:
|
|
81
|
-
ariaLabel:
|
|
82
|
-
toggleAriaLabel:
|
|
80
|
+
id: Ids.VideoButtonId,
|
|
81
|
+
type: ButtonTypes.Icon,
|
|
82
|
+
ariaLabel: AriaLabels.VideoTurnCameraOn,
|
|
83
|
+
toggleAriaLabel: AriaLabels.VideoTurnCameraOff,
|
|
83
84
|
imageIconProps: {
|
|
84
85
|
src: VideoOnIconBase64,
|
|
85
86
|
styles: {
|
|
@@ -101,6 +102,6 @@ export const defaultCurrentCallControlPropsRtl = {
|
|
|
101
102
|
iconSize: 18
|
|
102
103
|
},
|
|
103
104
|
callTimerProps: {
|
|
104
|
-
id:
|
|
105
|
+
id: Ids.CallTimerId
|
|
105
106
|
}
|
|
106
107
|
};
|
|
@@ -3,7 +3,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
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, KeyCodes } from "../../../../common/Constants";
|
|
6
|
+
import { ElementType, EventNames, Ids, 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";
|
|
@@ -45,7 +45,7 @@ function IncomingCall(props) {
|
|
|
45
45
|
const declineCustomEvent = {
|
|
46
46
|
elementType: ElementType.IncomingCallDeclineCallButton,
|
|
47
47
|
elementId: declineCallButtonId,
|
|
48
|
-
eventName:
|
|
48
|
+
eventName: EventNames.IncomingCallEnded
|
|
49
49
|
};
|
|
50
50
|
const handleDeclineCallClick = useCallback(() => {
|
|
51
51
|
var _props$controlProps12;
|
|
@@ -59,7 +59,7 @@ function IncomingCall(props) {
|
|
|
59
59
|
const videoCustomEvent = {
|
|
60
60
|
elementType: ElementType.IncomingCallVideoCallButton,
|
|
61
61
|
elementId: videoCallButtonId,
|
|
62
|
-
eventName:
|
|
62
|
+
eventName: EventNames.OnClick
|
|
63
63
|
};
|
|
64
64
|
const handleVideoCallClick = useCallback(() => {
|
|
65
65
|
var _props$controlProps14;
|
|
@@ -73,7 +73,7 @@ function IncomingCall(props) {
|
|
|
73
73
|
const audioCustomEvent = {
|
|
74
74
|
elementType: ElementType.IncomingCallAudioCallButton,
|
|
75
75
|
elementId: audioCallButtonId,
|
|
76
|
-
eventName:
|
|
76
|
+
eventName: EventNames.OnClick
|
|
77
77
|
};
|
|
78
78
|
const handleAudioCallClick = useCallback(() => {
|
|
79
79
|
var _props$controlProps16;
|
|
@@ -135,7 +135,7 @@ function IncomingCall(props) {
|
|
|
135
135
|
"aria-label": incomingCallTitleProps === null || incomingCallTitleProps === void 0 ? void 0 : incomingCallTitleProps.text
|
|
136
136
|
}, /*#__PURE__*/React.createElement(Stack, {
|
|
137
137
|
horizontal: true,
|
|
138
|
-
id:
|
|
138
|
+
id: Ids.IncomingCallLeftGroupId,
|
|
139
139
|
verticalAlign: "center",
|
|
140
140
|
tokens: leftGroupStackTokens
|
|
141
141
|
}, !((_props$controlProps19 = props.controlProps) !== null && _props$controlProps19 !== void 0 && _props$controlProps19.hideIncomingCallTitle) && (decodeComponentString((_props$componentOverr = props.componentOverrides) === null || _props$componentOverr === void 0 ? void 0 : _props$componentOverr.incomingCallTitle) || /*#__PURE__*/React.createElement(Label, _extends({}, incomingCallTitleProps, {
|
|
@@ -144,12 +144,12 @@ function IncomingCall(props) {
|
|
|
144
144
|
styles: incomingCallTitleStyles
|
|
145
145
|
}), incomingCallTitleProps === null || incomingCallTitleProps === void 0 ? void 0 : incomingCallTitleProps.text)), processCustomComponents((_props$controlProps20 = props.controlProps) === null || _props$controlProps20 === void 0 ? void 0 : (_props$controlProps21 = _props$controlProps20.leftGroup) === null || _props$controlProps21 === void 0 ? void 0 : _props$controlProps21.children)), /*#__PURE__*/React.createElement(Stack, {
|
|
146
146
|
horizontal: true,
|
|
147
|
-
id:
|
|
147
|
+
id: Ids.IncomingCallMiddleGroupId,
|
|
148
148
|
verticalAlign: "center",
|
|
149
149
|
tokens: middleGroupStackTokens
|
|
150
150
|
}, processCustomComponents((_props$controlProps22 = props.controlProps) === null || _props$controlProps22 === void 0 ? void 0 : (_props$controlProps23 = _props$controlProps22.middleGroup) === null || _props$controlProps23 === void 0 ? void 0 : _props$controlProps23.children)), /*#__PURE__*/React.createElement(Stack, {
|
|
151
151
|
horizontal: true,
|
|
152
|
-
id:
|
|
152
|
+
id: Ids.IncomingCallRightGroupId,
|
|
153
153
|
verticalAlign: "center",
|
|
154
154
|
tokens: rightGroupStackTokens
|
|
155
155
|
}, processCustomComponents((_props$controlProps24 = props.controlProps) === null || _props$controlProps24 === void 0 ? void 0 : (_props$controlProps25 = _props$controlProps24.rightGroup) === null || _props$controlProps25 === void 0 ? void 0 : _props$controlProps25.children), !((_props$controlProps26 = props.controlProps) !== null && _props$controlProps26 !== void 0 && _props$controlProps26.hideDeclineCall) && /*#__PURE__*/React.createElement(CommandButton, _extends({}, declineCallButtonProps, {
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
+
import { AriaLabels, IconNames, ButtonTypes, Ids, Texts } from "../../../../../../common/Constants";
|
|
1
2
|
export const defaultIncomingCallControlProps = {
|
|
2
|
-
id:
|
|
3
|
+
id: Ids.DefaultIncomingCallId,
|
|
3
4
|
dir: "ltr",
|
|
4
|
-
ariaLabel:
|
|
5
|
+
ariaLabel: AriaLabels.IncomingCallArea,
|
|
5
6
|
hideAudioCall: false,
|
|
6
7
|
hideVideoCall: false,
|
|
7
8
|
hideDeclineCall: false,
|
|
8
9
|
hideIncomingCallTitle: false,
|
|
9
10
|
onDeclineCallClick: function () {
|
|
10
|
-
console.log("
|
|
11
|
+
console.log("decline call clicked");
|
|
11
12
|
},
|
|
12
13
|
onAudioCallClick: function () {
|
|
13
|
-
console.log("
|
|
14
|
+
console.log("audio call clicked");
|
|
14
15
|
},
|
|
15
16
|
onVideoCallClick: function () {
|
|
16
|
-
console.log("
|
|
17
|
+
console.log("video call clicked");
|
|
17
18
|
},
|
|
18
19
|
middleGroup: {
|
|
19
20
|
gap: 5,
|
|
@@ -28,28 +29,28 @@ export const defaultIncomingCallControlProps = {
|
|
|
28
29
|
children: []
|
|
29
30
|
},
|
|
30
31
|
declineCallButtonProps: {
|
|
31
|
-
id:
|
|
32
|
-
type:
|
|
33
|
-
ariaLabel:
|
|
34
|
-
iconName:
|
|
32
|
+
id: Ids.DeclineCallButtonId,
|
|
33
|
+
type: ButtonTypes.Icon,
|
|
34
|
+
ariaLabel: AriaLabels.RejectCall,
|
|
35
|
+
iconName: IconNames.DeclineCall,
|
|
35
36
|
iconSize: 20
|
|
36
37
|
},
|
|
37
38
|
audioCallButtonProps: {
|
|
38
|
-
id:
|
|
39
|
-
type:
|
|
40
|
-
ariaLabel:
|
|
41
|
-
iconName:
|
|
39
|
+
id: Ids.AudioCallButtonId,
|
|
40
|
+
type: ButtonTypes.Icon,
|
|
41
|
+
ariaLabel: AriaLabels.AcceptVoiceCall,
|
|
42
|
+
iconName: IconNames.IncomingCall,
|
|
42
43
|
iconSize: 20
|
|
43
44
|
},
|
|
44
45
|
videoCallButtonProps: {
|
|
45
|
-
id:
|
|
46
|
-
type:
|
|
47
|
-
ariaLabel:
|
|
48
|
-
iconName:
|
|
46
|
+
id: Ids.VideoCallButtonId,
|
|
47
|
+
type: ButtonTypes.Icon,
|
|
48
|
+
ariaLabel: AriaLabels.AcceptVideoCall,
|
|
49
|
+
iconName: IconNames.Video,
|
|
49
50
|
iconSize: 20
|
|
50
51
|
},
|
|
51
52
|
incomingCallTitle: {
|
|
52
|
-
id:
|
|
53
|
-
text:
|
|
53
|
+
id: Ids.IncomingCallTitleId,
|
|
54
|
+
text: Texts.IncomingCallTitle
|
|
54
55
|
}
|
|
55
56
|
};
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { CallAcceptButtonBase64, CallRejectButtonBase64, VideoCallAcceptButtonIconBase64 } from "../../../../../../assets/Icons";
|
|
2
|
+
import { AriaLabels, ButtonTypes, Ids, Texts } from "../../../../../../common/Constants";
|
|
2
3
|
export const defaultIncomingCallControlPropsRtl = {
|
|
3
|
-
id:
|
|
4
|
-
ariaLabel:
|
|
4
|
+
id: Ids.DefaultIncomingCallPopupId,
|
|
5
|
+
ariaLabel: AriaLabels.IncomingCallArea,
|
|
5
6
|
hideAudioCall: false,
|
|
6
7
|
hideVideoCall: false,
|
|
7
8
|
hideDeclineCall: false,
|
|
8
9
|
hideIncomingCallTitle: false,
|
|
9
10
|
onDeclineCallClick: function () {
|
|
10
|
-
console.log("
|
|
11
|
+
console.log("decline call clicked");
|
|
11
12
|
},
|
|
12
13
|
onAudioCallClick: function () {
|
|
13
|
-
console.log("
|
|
14
|
+
console.log("audio call clicked");
|
|
14
15
|
},
|
|
15
16
|
onVideoCallClick: function () {
|
|
16
|
-
console.log("
|
|
17
|
+
console.log("video call clicked");
|
|
17
18
|
},
|
|
18
19
|
middleGroup: {
|
|
19
20
|
gap: 5,
|
|
@@ -29,9 +30,9 @@ export const defaultIncomingCallControlPropsRtl = {
|
|
|
29
30
|
},
|
|
30
31
|
dir: "rtl",
|
|
31
32
|
declineCallButtonProps: {
|
|
32
|
-
id:
|
|
33
|
-
type:
|
|
34
|
-
ariaLabel:
|
|
33
|
+
id: Ids.DeclineCallButtonId,
|
|
34
|
+
type: ButtonTypes.Icon,
|
|
35
|
+
ariaLabel: AriaLabels.DeclineCall,
|
|
35
36
|
imageIconProps: {
|
|
36
37
|
src: CallRejectButtonBase64,
|
|
37
38
|
styles: {
|
|
@@ -44,9 +45,9 @@ export const defaultIncomingCallControlPropsRtl = {
|
|
|
44
45
|
iconSize: 20
|
|
45
46
|
},
|
|
46
47
|
audioCallButtonProps: {
|
|
47
|
-
id:
|
|
48
|
-
type:
|
|
49
|
-
ariaLabel:
|
|
48
|
+
id: Ids.AudioCallButtonId,
|
|
49
|
+
type: ButtonTypes.Icon,
|
|
50
|
+
ariaLabel: AriaLabels.AudioCall,
|
|
50
51
|
imageIconProps: {
|
|
51
52
|
src: CallAcceptButtonBase64,
|
|
52
53
|
styles: {
|
|
@@ -59,9 +60,9 @@ export const defaultIncomingCallControlPropsRtl = {
|
|
|
59
60
|
iconSize: 20
|
|
60
61
|
},
|
|
61
62
|
videoCallButtonProps: {
|
|
62
|
-
id:
|
|
63
|
-
type:
|
|
64
|
-
ariaLabel:
|
|
63
|
+
id: Ids.VideoCallButtonId,
|
|
64
|
+
type: ButtonTypes.Icon,
|
|
65
|
+
ariaLabel: AriaLabels.VideoCall,
|
|
65
66
|
imageIconProps: {
|
|
66
67
|
src: VideoCallAcceptButtonIconBase64,
|
|
67
68
|
styles: {
|
|
@@ -74,7 +75,7 @@ export const defaultIncomingCallControlPropsRtl = {
|
|
|
74
75
|
iconSize: 20
|
|
75
76
|
},
|
|
76
77
|
incomingCallTitle: {
|
|
77
|
-
id:
|
|
78
|
-
text:
|
|
78
|
+
id: Ids.IncomingCallTitleId,
|
|
79
|
+
text: Texts.IncomingCallTitle
|
|
79
80
|
}
|
|
80
81
|
};
|
|
@@ -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, HiddenTextStyles, KeyCodes } from "../../common/Constants";
|
|
4
|
+
import { ElementType, EventNames, HiddenTextStyles, Ids, 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";
|
|
@@ -75,21 +75,19 @@ function TextContainer(props, parentId) {
|
|
|
75
75
|
styles: titleStyles,
|
|
76
76
|
dir: titleDir,
|
|
77
77
|
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,
|
|
78
|
-
id: parentId + "-title"
|
|
79
|
-
title: titleText
|
|
78
|
+
id: parentId + "-title"
|
|
80
79
|
}, titleText)), !hideChatSubtitle && (decodeComponentString((_props$componentOverr5 = props.componentOverrides) === null || _props$componentOverr5 === void 0 ? void 0 : _props$componentOverr5.subtitle) || /*#__PURE__*/React.createElement(Label, {
|
|
81
80
|
styles: subtitleStyles,
|
|
82
81
|
dir: subtitleDir,
|
|
83
82
|
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,
|
|
84
|
-
id: parentId + "-subtitle"
|
|
85
|
-
title: subtitleText
|
|
83
|
+
id: parentId + "-subtitle"
|
|
86
84
|
}, subtitleText)));
|
|
87
85
|
}
|
|
88
86
|
|
|
89
87
|
function ChatButton(props) {
|
|
90
88
|
var _props$controlProps12, _props$controlProps13, _props$controlProps14, _props$controlProps15, _props$controlProps16, _props$controlProps17, _props$controlProps18, _props$controlProps19, _props$styleProps11;
|
|
91
89
|
|
|
92
|
-
const elementId = ((_props$controlProps12 = props.controlProps) === null || _props$controlProps12 === void 0 ? void 0 : _props$controlProps12.id) ??
|
|
90
|
+
const elementId = ((_props$controlProps12 = props.controlProps) === null || _props$controlProps12 === void 0 ? void 0 : _props$controlProps12.id) ?? Ids.DefaultChatButtonId;
|
|
93
91
|
const defaultAriaLabel = ((_props$controlProps13 = props.controlProps) === null || _props$controlProps13 === void 0 ? void 0 : _props$controlProps13.ariaLabel) ?? defaultChatButtonControlProps.ariaLabel;
|
|
94
92
|
const defaultRole = ((_props$controlProps14 = props.controlProps) === null || _props$controlProps14 === void 0 ? void 0 : _props$controlProps14.role) ?? (defaultChatButtonControlProps === null || defaultChatButtonControlProps === void 0 ? void 0 : defaultChatButtonControlProps.role);
|
|
95
93
|
const containersDir = ((_props$controlProps15 = props.controlProps) === null || _props$controlProps15 === void 0 ? void 0 : _props$controlProps15.dir) ?? (defaultChatButtonControlProps === null || defaultChatButtonControlProps === void 0 ? void 0 : defaultChatButtonControlProps.dir);
|
|
@@ -107,7 +105,7 @@ function ChatButton(props) {
|
|
|
107
105
|
const customEvent = {
|
|
108
106
|
elementType: ElementType.ChatButton,
|
|
109
107
|
elementId: elementId,
|
|
110
|
-
eventName:
|
|
108
|
+
eventName: EventNames.OnClick
|
|
111
109
|
};
|
|
112
110
|
BroadcastService.postMessage(customEvent);
|
|
113
111
|
props.controlProps.onClick();
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
+
import { AriaLabels, Ids, Texts } from "../../../../common/Constants";
|
|
1
2
|
export const defaultChatButtonControlProps = {
|
|
2
|
-
id:
|
|
3
|
+
id: Ids.DefaultChatButtonId,
|
|
3
4
|
dir: "ltr",
|
|
4
5
|
role: "button",
|
|
5
|
-
ariaLabel: "Let's chat We are online",
|
|
6
6
|
unreadMessageCount: "0",
|
|
7
|
-
titleText: "Let's Chat!",
|
|
8
|
-
subtitleText: "We're online.",
|
|
9
7
|
onClick: function () {
|
|
10
8
|
console.log("initiate chat");
|
|
11
9
|
},
|
|
10
|
+
titleText: Texts.ChatButtonTitle,
|
|
11
|
+
subtitleText: Texts.ChatButtonSubtitle,
|
|
12
12
|
hideChatButton: false,
|
|
13
13
|
hideChatIcon: false,
|
|
14
14
|
hideChatTextContainer: false,
|
|
15
15
|
hideChatSubtitle: false,
|
|
16
16
|
hideChatTitle: false,
|
|
17
17
|
hideNotificationBubble: true,
|
|
18
|
-
unreadMessageString:
|
|
19
|
-
largeUnreadMessageString:
|
|
20
|
-
ariaLabelUnreadMessageString:
|
|
18
|
+
unreadMessageString: Texts.ChatButtonUnreadMessageString,
|
|
19
|
+
largeUnreadMessageString: Texts.ChatButtonLargeUnreadMessageString,
|
|
20
|
+
ariaLabelUnreadMessageString: AriaLabels.UnreadMessageString
|
|
21
21
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DefaultButton, IconButton } 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, EventNames, ButtonTypes } from "../../../common/Constants";
|
|
5
5
|
|
|
6
6
|
function CommandButton(props) {
|
|
7
7
|
var _props$hoverStyles, _props$hoverStyles2, _props$focusStyles;
|
|
@@ -14,7 +14,7 @@ function CommandButton(props) {
|
|
|
14
14
|
};
|
|
15
15
|
let iconStyles = {};
|
|
16
16
|
|
|
17
|
-
if (props.type ===
|
|
17
|
+
if (props.type === ButtonTypes.Icon) {
|
|
18
18
|
var _props$styles;
|
|
19
19
|
|
|
20
20
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -47,7 +47,7 @@ function CommandButton(props) {
|
|
|
47
47
|
const handleOnClick = useCallback(() => {
|
|
48
48
|
if (props !== null && props !== void 0 && props.onClick) {
|
|
49
49
|
const customEvent = props.customEvent ?? {
|
|
50
|
-
eventName:
|
|
50
|
+
eventName: EventNames.OnClick,
|
|
51
51
|
elementType: ElementType.Custom,
|
|
52
52
|
elementId: props === null || props === void 0 ? void 0 : props.id
|
|
53
53
|
};
|
|
@@ -55,15 +55,16 @@ function CommandButton(props) {
|
|
|
55
55
|
props === null || props === void 0 ? void 0 : props.onClick();
|
|
56
56
|
}
|
|
57
57
|
}, []);
|
|
58
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, props.type ===
|
|
58
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, props.type === ButtonTypes.Text && /*#__PURE__*/React.createElement(DefaultButton, {
|
|
59
59
|
id: props.id,
|
|
60
60
|
text: props.text,
|
|
61
61
|
ariaLabel: props.ariaLabel,
|
|
62
62
|
onClick: handleOnClick,
|
|
63
63
|
disabled: props.disabled,
|
|
64
64
|
className: props.className,
|
|
65
|
-
styles: buttonStyles
|
|
66
|
-
|
|
65
|
+
styles: buttonStyles,
|
|
66
|
+
title: props.hideButtonTitle ? undefined : props.ariaLabel
|
|
67
|
+
}), props.type === ButtonTypes.Icon && /*#__PURE__*/React.createElement(IconButton, {
|
|
67
68
|
id: props.id,
|
|
68
69
|
iconProps: iconProp,
|
|
69
70
|
title: props.hideButtonTitle ? undefined : props.ariaLabel,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { ElementType } from "../../../common/Constants";
|
|
2
|
+
import { AriaLabels, ElementType, EventNames, IconNames, Texts } from "../../../common/Constants";
|
|
3
3
|
import CommandButton from "../commandbutton/CommandButton";
|
|
4
4
|
|
|
5
5
|
function CloseButton(props) {
|
|
@@ -9,19 +9,19 @@ function CloseButton(props) {
|
|
|
9
9
|
const customEvent = {
|
|
10
10
|
elementType: ElementType.CloseButton,
|
|
11
11
|
elementId: props === null || props === void 0 ? void 0 : props.id,
|
|
12
|
-
eventName:
|
|
12
|
+
eventName: EventNames.OnClick
|
|
13
13
|
};
|
|
14
14
|
return /*#__PURE__*/React.createElement(CommandButton, {
|
|
15
15
|
id: props === null || props === void 0 ? void 0 : props.id,
|
|
16
16
|
type: type,
|
|
17
|
-
text: props.text ??
|
|
17
|
+
text: props.text ?? Texts.CloseButtonText,
|
|
18
18
|
styles: props.styles,
|
|
19
19
|
hoverStyles: props.hoverStyles,
|
|
20
20
|
focusStyles: props.focusStyles,
|
|
21
|
-
iconName: props.iconName ??
|
|
21
|
+
iconName: props.iconName ?? IconNames.ChromeClose,
|
|
22
22
|
imageIconProps: props.imageIconProps,
|
|
23
23
|
onClick: props.onClick,
|
|
24
|
-
ariaLabel: props.ariaLabel ??
|
|
24
|
+
ariaLabel: props.ariaLabel ?? AriaLabels.Close,
|
|
25
25
|
className: props.className,
|
|
26
26
|
customEvent: customEvent,
|
|
27
27
|
hideButtonTitle: props.hideButtonTitle
|
|
@@ -2,7 +2,7 @@ import { DefaultButton, PrimaryButton } from "@fluentui/react/lib/Button";
|
|
|
2
2
|
import { Label, Stack } from "@fluentui/react";
|
|
3
3
|
import React, { useCallback } from "react";
|
|
4
4
|
import { BroadcastService } from "../../services/BroadcastService";
|
|
5
|
-
import { ElementType, KeyCodes } from "../../common/Constants";
|
|
5
|
+
import { ElementType, EventNames, KeyCodes } from "../../common/Constants";
|
|
6
6
|
import { decodeComponentString } from "../../common/decodeComponentString";
|
|
7
7
|
import { defaultConfirmationPaneButtonGroupStyles } from "./common/defaultStyles/defaultConfirmationPaneButtonGroupStyles";
|
|
8
8
|
import { defaultConfirmationPaneCancelButtonHoveredStyles } from "./common/defaultStyles/defaultConfirmationPaneCancelButtonHoveredStyles";
|
|
@@ -29,7 +29,7 @@ function ConfirmationPane(props) {
|
|
|
29
29
|
const customEvent = {
|
|
30
30
|
elementType: ElementType.ConfirmationPaneConfirmButton,
|
|
31
31
|
elementId: elementId + "-confirmbutton",
|
|
32
|
-
eventName:
|
|
32
|
+
eventName: EventNames.OnClick
|
|
33
33
|
};
|
|
34
34
|
BroadcastService.postMessage(customEvent);
|
|
35
35
|
(_props$controlProps3 = props.controlProps) === null || _props$controlProps3 === void 0 ? void 0 : _props$controlProps3.onConfirm();
|
|
@@ -44,7 +44,7 @@ function ConfirmationPane(props) {
|
|
|
44
44
|
const customEvent = {
|
|
45
45
|
elementType: ElementType.ConfirmationPaneCancelButton,
|
|
46
46
|
elementId: elementId + "-cancelbutton",
|
|
47
|
-
eventName:
|
|
47
|
+
eventName: EventNames.OnClick
|
|
48
48
|
};
|
|
49
49
|
BroadcastService.postMessage(customEvent);
|
|
50
50
|
(_props$controlProps5 = props.controlProps) === null || _props$controlProps5 === void 0 ? void 0 : _props$controlProps5.onCancel();
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
+
import { AriaLabels, Ids, Texts } from "../../../../common/Constants";
|
|
1
2
|
export const defaultConfirmationPaneControlProps = {
|
|
2
|
-
id:
|
|
3
|
+
id: Ids.DefaultConfirmationPaneId,
|
|
3
4
|
dir: "ltr",
|
|
4
5
|
hideConfirmationPane: false,
|
|
5
6
|
hideTitle: false,
|
|
6
|
-
titleText:
|
|
7
|
+
titleText: Texts.ConfirmationPaneTitle,
|
|
7
8
|
hideSubtitle: false,
|
|
8
|
-
subtitleText:
|
|
9
|
+
subtitleText: Texts.ConfirmationPaneSubtitle,
|
|
9
10
|
hideConfirmButton: false,
|
|
10
|
-
confirmButtonText:
|
|
11
|
-
confirmButtonAriaLabel:
|
|
11
|
+
confirmButtonText: Texts.ConfirmButtonText,
|
|
12
|
+
confirmButtonAriaLabel: AriaLabels.ConfirmationPaneConfirm,
|
|
12
13
|
hideCancelButton: false,
|
|
13
|
-
cancelButtonText:
|
|
14
|
-
cancelButtonAriaLabel:
|
|
14
|
+
cancelButtonText: Texts.CancelButtonText,
|
|
15
|
+
cancelButtonAriaLabel: AriaLabels.ConfirmationPaneCancel,
|
|
15
16
|
onConfirm: function () {
|
|
16
17
|
console.log("on confirm");
|
|
17
18
|
},
|
|
@@ -8,6 +8,7 @@ import EmailTranscriptButton from "./subcomponents/EmailTranscriptButton";
|
|
|
8
8
|
import { decodeComponentString } from "../../common/decodeComponentString";
|
|
9
9
|
import { defaultFooterProps } from "./common/defaultProps/defaultFooterProps";
|
|
10
10
|
import { processCustomComponents } from "../../common/utils";
|
|
11
|
+
import { Ids } from "../../common/Constants";
|
|
11
12
|
initializeIcons();
|
|
12
13
|
|
|
13
14
|
function Footer(props) {
|
|
@@ -32,15 +33,13 @@ function Footer(props) {
|
|
|
32
33
|
horizontal: true,
|
|
33
34
|
className: props.className,
|
|
34
35
|
horizontalAlign: "space-between",
|
|
36
|
+
verticalAlign: "center",
|
|
35
37
|
styles: stackStyles,
|
|
36
38
|
dir: ((_props$controlProps5 = props.controlProps) === null || _props$controlProps5 === void 0 ? void 0 : _props$controlProps5.dir) ?? "ltr",
|
|
37
39
|
role: "region"
|
|
38
40
|
}, /*#__PURE__*/React.createElement(Stack, {
|
|
39
41
|
horizontal: true,
|
|
40
|
-
id:
|
|
41
|
-
verticalAlign: "center"
|
|
42
|
-
}, /*#__PURE__*/React.createElement(Stack, {
|
|
43
|
-
horizontal: true,
|
|
42
|
+
id: Ids.FooterLeftGroupId,
|
|
44
43
|
verticalAlign: "center"
|
|
45
44
|
}, !((_props$controlProps6 = props.controlProps) !== null && _props$controlProps6 !== void 0 && _props$controlProps6.hideDownloadTranscriptButton) && (decodeComponentString((_props$componentOverr = props.componentOverrides) === null || _props$componentOverr === void 0 ? void 0 : _props$componentOverr.DownloadTranscriptButton) || /*#__PURE__*/React.createElement(DownloadTranscriptButton, _extends({}, downloadTranscriptButtonProps, {
|
|
46
45
|
onClick: (_props$controlProps7 = props.controlProps) === null || _props$controlProps7 === void 0 ? void 0 : _props$controlProps7.onDownloadTranscriptClick,
|
|
@@ -52,27 +51,20 @@ function Footer(props) {
|
|
|
52
51
|
styles: emailTranscriptButtonStyles,
|
|
53
52
|
hoverStyles: emailTranscriptButtonHoverStyles,
|
|
54
53
|
focusStyles: footerItemFocusStyles
|
|
55
|
-
}))), processCustomComponents((_props$controlProps10 = props.controlProps) === null || _props$controlProps10 === void 0 ? void 0 : (_props$controlProps11 = _props$controlProps10.leftGroup) === null || _props$controlProps11 === void 0 ? void 0 : _props$controlProps11.children))
|
|
56
|
-
horizontal: true,
|
|
57
|
-
id: "footerMiddleGroup"
|
|
58
|
-
}, /*#__PURE__*/React.createElement(Stack, {
|
|
59
|
-
horizontal: true,
|
|
60
|
-
verticalAlign: "start"
|
|
61
|
-
}, /*#__PURE__*/React.createElement(Stack.Item, {
|
|
62
|
-
align: "start"
|
|
63
|
-
}, processCustomComponents((_props$controlProps12 = props.controlProps) === null || _props$controlProps12 === void 0 ? void 0 : (_props$controlProps13 = _props$controlProps12.middleGroup) === null || _props$controlProps13 === void 0 ? void 0 : _props$controlProps13.children)))), /*#__PURE__*/React.createElement(Stack, {
|
|
54
|
+
}))), processCustomComponents((_props$controlProps10 = props.controlProps) === null || _props$controlProps10 === void 0 ? void 0 : (_props$controlProps11 = _props$controlProps10.leftGroup) === null || _props$controlProps11 === void 0 ? void 0 : _props$controlProps11.children)), /*#__PURE__*/React.createElement(Stack, {
|
|
64
55
|
horizontal: true,
|
|
65
|
-
id:
|
|
66
|
-
verticalAlign: "
|
|
67
|
-
}, /*#__PURE__*/React.createElement(Stack, {
|
|
56
|
+
id: Ids.FooterMiddleGroupId,
|
|
57
|
+
verticalAlign: "center"
|
|
58
|
+
}, processCustomComponents((_props$controlProps12 = props.controlProps) === null || _props$controlProps12 === void 0 ? void 0 : (_props$controlProps13 = _props$controlProps12.middleGroup) === null || _props$controlProps13 === void 0 ? void 0 : _props$controlProps13.children)), /*#__PURE__*/React.createElement(Stack, {
|
|
68
59
|
horizontal: true,
|
|
60
|
+
id: Ids.FooterRightGroupId,
|
|
69
61
|
verticalAlign: "center"
|
|
70
62
|
}, processCustomComponents((_props$controlProps14 = props.controlProps) === null || _props$controlProps14 === void 0 ? void 0 : (_props$controlProps15 = _props$controlProps14.rightGroup) === null || _props$controlProps15 === void 0 ? void 0 : _props$controlProps15.children), !((_props$controlProps16 = props.controlProps) !== null && _props$controlProps16 !== void 0 && _props$controlProps16.hideAudioNotificationButton) && (decodeComponentString((_props$componentOverr3 = props.componentOverrides) === null || _props$componentOverr3 === void 0 ? void 0 : _props$componentOverr3.AudioNotificationButton) || /*#__PURE__*/React.createElement(AudioNotificationButton, _extends({}, audioNotificationButtonProps, {
|
|
71
63
|
onClick: (_props$controlProps17 = props.controlProps) === null || _props$controlProps17 === void 0 ? void 0 : _props$controlProps17.onAudioNotificationClick,
|
|
72
64
|
styles: audioNotificationButtonStyles,
|
|
73
65
|
hoverStyles: audioNotificationButtonHoverStyles,
|
|
74
66
|
focusStyles: footerItemFocusStyles
|
|
75
|
-
})))))
|
|
67
|
+
})))));
|
|
76
68
|
}
|
|
77
69
|
|
|
78
70
|
export default Footer;
|