@microsoft/omnichannel-chat-components 0.1.0-main.fc27009 → 1.0.1-main.57b83f8
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 +26 -8
- package/lib/cjs/common/utils.js +21 -2
- package/lib/cjs/components/callingcontainer/common/defaultProps/defaultCallingContainerControlProps.js +4 -1
- package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/CurrentCall.js +7 -7
- 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 +21 -8
- 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 +28 -24
- package/lib/cjs/components/chatbutton/common/defaultProps/defaultChatButtonControlProps.js +11 -5
- package/lib/cjs/components/chatbutton/common/defaultStyles/defaultChatButtonSubTitleStyles.js +3 -1
- package/lib/cjs/components/chatbutton/common/defaultStyles/defaultChatButtonTitleStyles.js +1 -0
- package/lib/cjs/components/common/commandbutton/CommandButton.js +37 -12
- package/lib/cjs/components/{header → common}/subcomponents/CloseButton.js +8 -7
- package/lib/cjs/components/confirmationpane/ConfirmationPane.js +9 -2
- package/lib/cjs/components/confirmationpane/common/defaultProps/defaultConfirmationPaneControlProps.js +10 -7
- package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneButtonGroupStyles.js +5 -1
- package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneGeneralStyles.js +7 -4
- package/lib/cjs/components/footer/Footer.js +7 -5
- package/lib/cjs/components/footer/common/defaultProps/customFooterControlProps.js +12 -10
- package/lib/cjs/components/footer/common/defaultProps/defaultFooterControlProps.js +18 -14
- package/lib/cjs/components/footer/common/defaultStyles/defaultFooterStyleProps.js +12 -6
- package/lib/cjs/components/footer/subcomponents/AudioNotificationButton.js +31 -14
- package/lib/cjs/components/footer/subcomponents/DownloadTranscriptButton.js +4 -4
- package/lib/cjs/components/footer/subcomponents/EmailTranscriptButton.js +4 -4
- package/lib/cjs/components/header/Header.js +7 -5
- package/lib/cjs/components/header/common/defaultProps/azureHeaderControlProps.js +8 -6
- package/lib/cjs/components/header/common/defaultProps/customHeaderControlProps.js +9 -7
- package/lib/cjs/components/header/common/defaultProps/defaultHeaderComponentOverrides.js +3 -1
- package/lib/cjs/components/header/common/defaultProps/defaultHeaderControlProps.js +13 -11
- package/lib/cjs/components/header/subcomponents/MinimizeButton.js +4 -4
- package/lib/cjs/components/inputvalidationpane/InputValidationPane.js +28 -28
- package/lib/cjs/components/inputvalidationpane/common/default/defaultProps/defaultInputValidationPaneControlProps.js +11 -11
- package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneCancelButtonStyles.js +2 -1
- package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneGeneralStyles.js +1 -1
- package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneInvalidInputErrorMessageStyles.js +1 -1
- package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneSendButtonStyles.js +2 -1
- package/lib/cjs/components/inputvalidationpane/common/presetTwo/presetTwoProps/presetTwoInputValidationPaneControlProps.js +11 -11
- package/lib/cjs/components/loadingpane/LoadingPane.js +3 -2
- package/lib/cjs/components/loadingpane/common/defaultProps/defaultLoadingPaneControlProps.js +7 -4
- package/lib/cjs/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneIconStyles.js +3 -2
- 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/OOOHPane.js +13 -6
- package/lib/cjs/components/outofofficehourspane/common/defaultProps/defaultOOOHPaneControlProps.js +7 -2
- package/lib/cjs/components/outofofficehourspane/common/presetFourProps/presetFourOOOHPaneControlProps.js +15 -0
- package/lib/cjs/components/outofofficehourspane/common/presetFourProps/presetFourOOOHPaneProps.js +16 -0
- 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/PostChatSurveyPane.js +2 -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 +25 -11
- package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultPreChatSurveyPaneControlProps.js +5 -1
- package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneButtonStyles.js +4 -1
- package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneMultilineTextInputStyles.js +10 -0
- package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneStyles.js +7 -1
- package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneTextInputStyles.js +10 -0
- 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/prechatsurveypane/interfaces/IPreChatSurveyPaneElementStyles.js +1 -0
- package/lib/cjs/components/proactivechatpane/ProactiveChatPane.js +36 -35
- package/lib/cjs/components/proactivechatpane/common/default/defaultProps/defaultProactiveChatPaneControlProps.js +15 -8
- package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneCloseButtonStyles.js +2 -13
- package/lib/cjs/components/proactivechatpane/common/presetOne/presetOneProps/presetOneProactiveChatPaneControlProps.js +15 -8
- package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeProps/presetThreeProactiveChatPaneControlProps.js +15 -8
- 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/cjs/index.js +6 -0
- package/lib/cjs/services/BroadcastService.js +36 -8
- package/lib/esm/common/Constants.js +18 -6
- package/lib/esm/common/utils.js +16 -0
- package/lib/esm/components/callingcontainer/common/defaultProps/defaultCallingContainerControlProps.js +2 -1
- package/lib/esm/components/callingcontainer/subcomponents/CurrentCall/CurrentCall.js +8 -8
- 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 +22 -9
- 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 +28 -24
- package/lib/esm/components/chatbutton/common/defaultProps/defaultChatButtonControlProps.js +9 -5
- package/lib/esm/components/chatbutton/common/defaultStyles/defaultChatButtonSubTitleStyles.js +3 -1
- package/lib/esm/components/chatbutton/common/defaultStyles/defaultChatButtonTitleStyles.js +1 -0
- package/lib/esm/components/common/commandbutton/CommandButton.js +38 -13
- package/lib/esm/components/{header → common}/subcomponents/CloseButton.js +9 -8
- package/lib/esm/components/confirmationpane/ConfirmationPane.js +10 -3
- package/lib/esm/components/confirmationpane/common/defaultProps/defaultConfirmationPaneControlProps.js +8 -7
- package/lib/esm/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneButtonGroupStyles.js +5 -1
- package/lib/esm/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneGeneralStyles.js +7 -4
- package/lib/esm/components/footer/Footer.js +6 -5
- package/lib/esm/components/footer/common/defaultProps/customFooterControlProps.js +11 -10
- package/lib/esm/components/footer/common/defaultProps/defaultFooterControlProps.js +16 -14
- package/lib/esm/components/footer/common/defaultStyles/defaultFooterStyleProps.js +12 -6
- package/lib/esm/components/footer/subcomponents/AudioNotificationButton.js +32 -15
- package/lib/esm/components/footer/subcomponents/DownloadTranscriptButton.js +5 -5
- package/lib/esm/components/footer/subcomponents/EmailTranscriptButton.js +5 -5
- package/lib/esm/components/header/Header.js +6 -5
- package/lib/esm/components/header/common/defaultProps/azureHeaderControlProps.js +7 -6
- package/lib/esm/components/header/common/defaultProps/customHeaderControlProps.js +8 -7
- package/lib/esm/components/header/common/defaultProps/defaultHeaderComponentOverrides.js +2 -1
- package/lib/esm/components/header/common/defaultProps/defaultHeaderControlProps.js +12 -11
- package/lib/esm/components/header/subcomponents/MinimizeButton.js +5 -5
- package/lib/esm/components/inputvalidationpane/InputValidationPane.js +29 -29
- package/lib/esm/components/inputvalidationpane/common/default/defaultProps/defaultInputValidationPaneControlProps.js +12 -12
- package/lib/esm/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneCancelButtonStyles.js +2 -1
- package/lib/esm/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneGeneralStyles.js +1 -1
- package/lib/esm/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneInvalidInputErrorMessageStyles.js +1 -1
- package/lib/esm/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneSendButtonStyles.js +2 -1
- package/lib/esm/components/inputvalidationpane/common/presetTwo/presetTwoProps/presetTwoInputValidationPaneControlProps.js +12 -12
- package/lib/esm/components/loadingpane/LoadingPane.js +3 -2
- package/lib/esm/components/loadingpane/common/defaultProps/defaultLoadingPaneControlProps.js +5 -4
- package/lib/esm/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneIconStyles.js +3 -2
- 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/OOOHPane.js +13 -7
- package/lib/esm/components/outofofficehourspane/common/defaultProps/defaultOOOHPaneControlProps.js +5 -2
- package/lib/esm/components/outofofficehourspane/common/presetFourProps/presetFourOOOHPaneControlProps.js +6 -0
- package/lib/esm/components/outofofficehourspane/common/presetFourProps/presetFourOOOHPaneProps.js +6 -0
- 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/PostChatSurveyPane.js +2 -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 +26 -12
- package/lib/esm/components/prechatsurveypane/common/defaultProps/defaultPreChatSurveyPaneControlProps.js +3 -1
- package/lib/esm/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneButtonStyles.js +4 -1
- package/lib/esm/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneMultilineTextInputStyles.js +3 -0
- package/lib/esm/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneStyles.js +5 -1
- package/lib/esm/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneTextInputStyles.js +3 -0
- 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/prechatsurveypane/interfaces/IPreChatSurveyPaneElementStyles.js +1 -0
- package/lib/esm/components/proactivechatpane/ProactiveChatPane.js +33 -34
- package/lib/esm/components/proactivechatpane/common/default/defaultProps/defaultProactiveChatPaneControlProps.js +13 -8
- package/lib/esm/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneCloseButtonStyles.js +2 -11
- package/lib/esm/components/proactivechatpane/common/presetOne/presetOneProps/presetOneProactiveChatPaneControlProps.js +13 -8
- package/lib/esm/components/proactivechatpane/common/presetThree/presetThreeProps/presetThreeProactiveChatPaneControlProps.js +13 -8
- 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/esm/index.js +1 -0
- package/lib/esm/services/BroadcastService.js +34 -8
- package/lib/types/common/Constants.d.ts +151 -2
- package/lib/types/common/utils.d.ts +1 -0
- package/lib/types/components/chatbutton/interfaces/IChatButtonControlProps.d.ts +3 -0
- package/lib/types/components/common/interfaces/ICommandButtonControlProps.d.ts +1 -0
- package/lib/types/components/common/interfaces/ICommandButtonProps.d.ts +1 -0
- package/lib/types/components/{header → common}/subcomponents/CloseButton.d.ts +1 -1
- package/lib/types/components/confirmationpane/interfaces/IConfirmationPaneControlProps.d.ts +0 -1
- package/lib/types/components/inputvalidationpane/interfaces/IInputValidationPaneControlProps.d.ts +0 -1
- package/lib/types/components/loadingpane/interfaces/ILoadingPaneProps.d.ts +2 -0
- package/lib/types/components/outofofficehourspane/common/presetFourProps/presetFourOOOHPaneControlProps.d.ts +2 -0
- package/lib/types/components/outofofficehourspane/common/presetFourProps/presetFourOOOHPaneProps.d.ts +2 -0
- package/lib/types/components/outofofficehourspane/interfaces/IOOOHPaneControlProps.d.ts +1 -0
- package/lib/types/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneMultilineTextInputStyles.d.ts +2 -0
- package/lib/types/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneTextInputStyles.d.ts +2 -0
- package/lib/types/components/prechatsurveypane/interfaces/IPreChatSurveyPaneButtonStyles.d.ts +3 -0
- package/lib/types/components/prechatsurveypane/interfaces/IPreChatSurveyPaneElementStyles.d.ts +5 -0
- package/lib/types/components/prechatsurveypane/interfaces/IPreChatSurveyPaneStyleProps.d.ts +5 -0
- package/lib/types/components/proactivechatpane/interfaces/IProactiveChatPaneControlProps.d.ts +2 -1
- package/lib/types/index.d.ts +1 -0
- package/lib/types/services/BroadcastService.d.ts +1 -0
- package/package.json +2 -2
|
@@ -3,19 +3,24 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.Regex = exports.KeyCodes = exports.ElementType = exports.
|
|
6
|
+
exports.Texts = exports.Regex = exports.KeyCodes = exports.Ids = exports.IconNames = exports.HiddenTextStyles = exports.EventNames = exports.ElementType = exports.ButtonTypes = exports.AriaLabels = exports.AccessibilityBrightnessRatio = void 0;
|
|
7
7
|
|
|
8
|
-
var _class, _class2;
|
|
8
|
+
var _class, _class2, _class3, _class4, _class5, _class6, _class7, _class8;
|
|
9
9
|
|
|
10
10
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
11
11
|
|
|
12
12
|
/* CSS Constants */
|
|
13
13
|
const AccessibilityBrightnessRatio = 1.2;
|
|
14
|
-
/* App constants*/
|
|
15
|
-
|
|
16
14
|
exports.AccessibilityBrightnessRatio = AccessibilityBrightnessRatio;
|
|
17
|
-
const
|
|
18
|
-
|
|
15
|
+
const HiddenTextStyles = {
|
|
16
|
+
position: "absolute",
|
|
17
|
+
height: "1px",
|
|
18
|
+
width: "1px",
|
|
19
|
+
overflow: "hidden",
|
|
20
|
+
clip: "rect(1px, 1px, 1px, 1px)",
|
|
21
|
+
whiteSpace: "nowrap"
|
|
22
|
+
};
|
|
23
|
+
exports.HiddenTextStyles = HiddenTextStyles;
|
|
19
24
|
const KeyCodes = (_class = class KeyCodes {}, _defineProperty(_class, "ENTER", "Enter"), _defineProperty(_class, "ESCAPE", "Escape"), _defineProperty(_class, "SPACE", "Space"), _defineProperty(_class, "DeclineCallHotKey", "D"), _defineProperty(_class, "AcceptAudioCallHotKey", "S"), _defineProperty(_class, "AcceptVideoCallHotKey", "A"), _defineProperty(_class, "ToggleMicHotKey", "M"), _defineProperty(_class, "ToggleCameraHotKey", "O"), _class);
|
|
20
25
|
exports.KeyCodes = KeyCodes;
|
|
21
26
|
const Regex = (_class2 = class Regex {}, _defineProperty(_class2, "EmailRegex", "(?:[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*|\"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*\")@(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?|\\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-zA-Z0-9-]*[a-zA-Z0-9]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21-\\x5a\\x53-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])+)\\])"), _defineProperty(_class2, "URLRegex", /(https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|www\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9]+\.[^\s]{2,}|www\.[a-zA-Z0-9]+\.[^\s]{2,})/gi), _class2);
|
|
@@ -25,7 +30,7 @@ exports.ElementType = ElementType;
|
|
|
25
30
|
|
|
26
31
|
(function (ElementType) {
|
|
27
32
|
ElementType["ChatButton"] = "ChatButton";
|
|
28
|
-
ElementType["
|
|
33
|
+
ElementType["CloseButton"] = "CloseButton";
|
|
29
34
|
ElementType["HeaderMinimizeButton"] = "HeaderMinimizeButton";
|
|
30
35
|
ElementType["FooterDownloadTranscriptButton"] = "FooterDownloadTranscriptButton";
|
|
31
36
|
ElementType["FooterEmailTranscriptButton"] = "FooterEmailTranscriptButton";
|
|
@@ -45,4 +50,17 @@ exports.ElementType = ElementType;
|
|
|
45
50
|
ElementType["CurrentCallEndCallButton"] = "CurrentCallEndCallButton";
|
|
46
51
|
ElementType["Utility"] = "Utility";
|
|
47
52
|
ElementType["Custom"] = "Custom";
|
|
48
|
-
})(ElementType || (exports.ElementType = ElementType = {}));
|
|
53
|
+
})(ElementType || (exports.ElementType = ElementType = {}));
|
|
54
|
+
|
|
55
|
+
const Ids = (_class3 = class Ids {}, _defineProperty(_class3, "DefaultCallingContainerId", "lcw-calling-container"), _defineProperty(_class3, "DefaultCurrentCallId", "lcw-current-call-container"), _defineProperty(_class3, "CurrentCallActionGroupId", "lcw-current-call-action-icons"), _defineProperty(_class3, "CurrentCallFooterId", "lcw-current-call-footer"), _defineProperty(_class3, "RemoteVideoTileId", "lcw-remote-video"), _defineProperty(_class3, "SelfVideoTileId", "lcw-self-video"), _defineProperty(_class3, "VideoTileGroupId", "lcw-current-call-body"), _defineProperty(_class3, "EndCallButtonId", "lcw-call-reject-button"), _defineProperty(_class3, "MicButtonId", "lcw-toggle-audio"), _defineProperty(_class3, "VideoButtonId", "lcw-toggle-video"), _defineProperty(_class3, "CallTimerId", "lcw-current-call-timer"), _defineProperty(_class3, "CurrentCallLeftGroupId", "lcw-current-call-left-group"), _defineProperty(_class3, "CurrentCallMiddleGroupId", "lcw-current-call-middle-group"), _defineProperty(_class3, "CurrentCallRightGroupId", "lcw-current-call-right-group"), _defineProperty(_class3, "DefaultIncomingCallId", "lcw-incoming-call"), _defineProperty(_class3, "DeclineCallButtonId", "lcw-call-reject-button"), _defineProperty(_class3, "AudioCallButtonId", "lcw-call-accept-button"), _defineProperty(_class3, "VideoCallButtonId", "lcw-video-call-accept-button"), _defineProperty(_class3, "IncomingCallTitleId", "lcw-incoming-call-message"), _defineProperty(_class3, "DefaultIncomingCallPopupId", "lcw-incoming-call-popup"), _defineProperty(_class3, "IncomingCallLeftGroupId", "lcw-incoming-call-left-group"), _defineProperty(_class3, "IncomingCallMiddleGroupId", "lcw-incoming-call-middle-group"), _defineProperty(_class3, "IncomingCallRightGroupId", "lcw-incoming-call-right-group"), _defineProperty(_class3, "DefaultChatButtonId", "lcw-components-chat-button"), _defineProperty(_class3, "DefaultConfirmationPaneId", "lcw-components-confirmation-pane"), _defineProperty(_class3, "CustomFooterId", "lcw-footer"), _defineProperty(_class3, "DownloadTranscriptButtonId", "lcw-footer-download-transcript-button"), _defineProperty(_class3, "EmailTranscriptButtonId", "lcw-footer-email-transcript-button"), _defineProperty(_class3, "AudioNotificationButtonId", "lcw-footer-audio-notification-button"), _defineProperty(_class3, "DefaultFooterId", "lcw-components-footer"), _defineProperty(_class3, "FooterLeftGroupId", "lcw-footer-left-group"), _defineProperty(_class3, "FooterMiddleGroupId", "lcw-footer-middle-group"), _defineProperty(_class3, "FooterRightGroupId", "lcw-footer-right-group"), _defineProperty(_class3, "DefaultHeaderId", "lcw-header"), _defineProperty(_class3, "MinimizeButtonId", "lcw-header-minimize-button"), _defineProperty(_class3, "CloseButtonId", "lcw-header-close-button"), _defineProperty(_class3, "HeaderIconId", "lcw-header-icon"), _defineProperty(_class3, "HeaderTitleId", "lcw-header-title"), _defineProperty(_class3, "HeaderLeftGroupId", "lcw-header-left-group"), _defineProperty(_class3, "HeaderMiddleGroupId", "lcw-header-middle-group"), _defineProperty(_class3, "HeaderRightGroupId", "lcw-header-right-group"), _defineProperty(_class3, "DefaultInputValidationPaneId", "lcw-email-transcript-dialog-container"), _defineProperty(_class3, "DefaultInputValidationPaneInputId", "lcw-email-transcript-dialog-text-field"), _defineProperty(_class3, "DefaultLoadingPaneId", "lcw-loading-pane"), _defineProperty(_class3, "DefaultOOOHPaneId", "lcw-out-of-office-hours-pane"), _defineProperty(_class3, "DefaultPostChatSurveyPaneId", "lcw-postchat-survey-pane"), _defineProperty(_class3, "DefaultPreChatSurveyPaneId", "lcw-prechat-survey-pane-default"), _defineProperty(_class3, "DefaultProactiveChatPaneId", "lcw-proactive-chat"), _defineProperty(_class3, "DefaultReconnectChatPaneId", "lcw-reconnect-chat-pane"), _class3);
|
|
56
|
+
exports.Ids = Ids;
|
|
57
|
+
const ButtonTypes = (_class4 = class ButtonTypes {}, _defineProperty(_class4, "Icon", "icon"), _defineProperty(_class4, "Text", "text"), _class4);
|
|
58
|
+
exports.ButtonTypes = ButtonTypes;
|
|
59
|
+
const IconNames = (_class5 = class IconNames {}, _defineProperty(_class5, "DeclineCall", "DeclineCall"), _defineProperty(_class5, "Microphone", "Microphone"), _defineProperty(_class5, "MicOff2", "MicOff2"), _defineProperty(_class5, "Video", "Video"), _defineProperty(_class5, "VideoOff", "VideoOff"), _defineProperty(_class5, "IncomingCall", "IncomingCall"), _defineProperty(_class5, "ChromeClose", "ChromeClose"), _defineProperty(_class5, "Download", "Download"), _defineProperty(_class5, "Mail", "Mail"), _defineProperty(_class5, "Volume3", "Volume3"), _defineProperty(_class5, "Volume0", "Volume0"), _defineProperty(_class5, "ChromeMinimize", "ChromeMinimize"), _class5);
|
|
60
|
+
exports.IconNames = IconNames;
|
|
61
|
+
const AriaLabels = (_class6 = class AriaLabels {}, _defineProperty(_class6, "EndCall", "End Call"), _defineProperty(_class6, "MicMute", "Mute"), _defineProperty(_class6, "MicUnmute", "Unmute"), _defineProperty(_class6, "VideoTurnCameraOn", "Turn camera on"), _defineProperty(_class6, "VideoTurnCameraOff", "Turn camera off"), _defineProperty(_class6, "IncomingCallArea", "Incoming call area"), _defineProperty(_class6, "RejectCall", "Reject call"), _defineProperty(_class6, "AcceptVoiceCall", "Accept voice call"), _defineProperty(_class6, "AcceptVideoCall", "Accept video Call"), _defineProperty(_class6, "DeclineCall", "Decline Call"), _defineProperty(_class6, "AudioCall", "Audio Call"), _defineProperty(_class6, "VideoCall", "Video Call"), _defineProperty(_class6, "LetsChatWeAreOnline", "Let's chat we are online"), _defineProperty(_class6, "UnreadMessageString", "you have new messages"), _defineProperty(_class6, "Close", "Close"), _defineProperty(_class6, "ConfirmationPaneConfirm", "Close Chat"), _defineProperty(_class6, "ConfirmationPaneCancel", "Cancel. Return to Chat"), _defineProperty(_class6, "DownloadChatTranscript", "Download chat transcript"), _defineProperty(_class6, "EmailTranscript", "Email Transcript"), _defineProperty(_class6, "TurnSoundOff", "Turn sound off"), _defineProperty(_class6, "TurnSoundOn", "Turn sound on"), _defineProperty(_class6, "Minimize", "Minimize"), _defineProperty(_class6, "EmailChatTranscriptPane", "Email Chat Transcript Pane"), _defineProperty(_class6, "InputValidationPaneInput", "Email this chat transcript. This will be sent after your chat ends. Email address text area"), _defineProperty(_class6, "Send", "Send"), _defineProperty(_class6, "Cancel", "Cancel"), _defineProperty(_class6, "ProactiveChatPane", "Proactive Chat Pane"), _defineProperty(_class6, "ChatNow", "Chat Now"), _defineProperty(_class6, "ReconnectChatPane", "Reconnect Chat Pane"), _defineProperty(_class6, "ReconnectChatPaneIcon", "Reconnect Chat Pane Icon"), _defineProperty(_class6, "ContinueConversation", "Continue conversation"), _defineProperty(_class6, "StartNewConversation", "Start new conversation"), _class6);
|
|
62
|
+
exports.AriaLabels = AriaLabels;
|
|
63
|
+
const EventNames = (_class7 = class EventNames {}, _defineProperty(_class7, "OnClick", "OnClick"), _defineProperty(_class7, "OnEscapeKeyDown", "OnEscapeKeyDown"), _defineProperty(_class7, "IncomingCallEnded", "IncomingCallEnded"), _class7);
|
|
64
|
+
exports.EventNames = EventNames;
|
|
65
|
+
const Texts = (_class8 = class Texts {}, _defineProperty(_class8, "IncomingCallTitle", "Incoming Call"), _defineProperty(_class8, "ChatButtonTitle", "Let's Chat!"), _defineProperty(_class8, "ChatButtonSubtitle", "We're online."), _defineProperty(_class8, "ChatButtonUnreadMessageString", "new messages"), _defineProperty(_class8, "ChatButtonLargeUnreadMessageString", "99+"), _defineProperty(_class8, "CloseButtonText", "Close"), _defineProperty(_class8, "ConfirmationPaneTitle", "Close chat"), _defineProperty(_class8, "ConfirmationPaneSubtitle", "Do you really want to close this chat?"), _defineProperty(_class8, "ConfirmButtonText", "Close"), _defineProperty(_class8, "CancelButtonText", "Cancel"), _defineProperty(_class8, "DownloadChatTranscriptText", "Download chat transcript"), _defineProperty(_class8, "EmailTranscriptText", "Email Transcript"), _defineProperty(_class8, "HeaderIcon", "Chat Icon"), _defineProperty(_class8, "HeaderTitle", "Let's Chat"), _defineProperty(_class8, "MinimizeText", "Minimize"), _defineProperty(_class8, "InputValidationPaneTitleText", "Email this chat transcript"), _defineProperty(_class8, "InputValidationPaneSubtitleText", "This will be sent after your chat ends."), _defineProperty(_class8, "InvalidInputErrorMessageText", "Enter a valid email address."), _defineProperty(_class8, "SendButtonText", "Send"), _defineProperty(_class8, "LoadingPaneTitleText", "Welcome to"), _defineProperty(_class8, "LoadingPaneSubtitleText", "live chat support ..."), _defineProperty(_class8, "LoadingPaneSpinnerText", "Loading ..."), _defineProperty(_class8, "OOOHPaneTitleText", "Thanks for contacting us. You have reached us outside of our operating hours. An agent will respond when we open."), _defineProperty(_class8, "PostChatSurveyPaneTitleText", "Post chat survey pane"), _defineProperty(_class8, "ProactiveChatPaneTitleText", "Welcome to"), _defineProperty(_class8, "ProactiveChatPaneSubtitleText", "Live chat support!"), _defineProperty(_class8, "ProactiveChatPaneBodyTitleText", "Hi! Have any questions? I am here to help."), _defineProperty(_class8, "ProactiveChatPaneStartButtonText", "Chat Now"), _defineProperty(_class8, "ReconnectChatPaneTitleText", "Previous session detected"), _defineProperty(_class8, "ReconnectChatPaneSubtitleText", "We have detected a previous chat session. Would you like to continue with your previous session?"), _defineProperty(_class8, "ReconnectChatPaneContinueChatButtonText", "Continue conversation"), _defineProperty(_class8, "ReconnectChatPaneStartNewChatButtonText", "Start new conversation"), _class8);
|
|
66
|
+
exports.Texts = Texts;
|
package/lib/cjs/common/utils.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.uuidv4 = exports.processCustomComponents = exports.getValidatedURL = exports.getSeconds = exports.getMinutes = exports.getInputValuesFromAdaptiveCard = exports.getHours = exports.generateEventName = exports.broadcastError = exports.addNoreferrerNoopenerTag = void 0;
|
|
6
|
+
exports.uuidv4 = exports.replaceURLWithAnchor = exports.processCustomComponents = exports.getValidatedURL = exports.getSeconds = exports.getMinutes = exports.getInputValuesFromAdaptiveCard = exports.getHours = exports.generateEventName = exports.broadcastError = exports.addNoreferrerNoopenerTag = void 0;
|
|
7
7
|
|
|
8
8
|
var _Constants = require("./Constants");
|
|
9
9
|
|
|
@@ -133,4 +133,23 @@ const addNoreferrerNoopenerTag = htmlNode => {
|
|
|
133
133
|
}
|
|
134
134
|
};
|
|
135
135
|
|
|
136
|
-
exports.addNoreferrerNoopenerTag = addNoreferrerNoopenerTag;
|
|
136
|
+
exports.addNoreferrerNoopenerTag = addNoreferrerNoopenerTag;
|
|
137
|
+
|
|
138
|
+
const replaceURLWithAnchor = (text, openInNewTab) => {
|
|
139
|
+
if (text) {
|
|
140
|
+
const modifiedText = text.replace(_Constants.Regex.URLRegex, function (url) {
|
|
141
|
+
if (openInNewTab) {
|
|
142
|
+
// eslint-disable-next-line quotes
|
|
143
|
+
return '<a href="' + url + '" rel="noreferrer noopener" target="_blank">' + url + '</a>';
|
|
144
|
+
} // eslint-disable-next-line quotes
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
return '<a href="' + url + '">' + url + '</a>';
|
|
148
|
+
});
|
|
149
|
+
return modifiedText;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
return text;
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
exports.replaceURLWithAnchor = replaceURLWithAnchor;
|
|
@@ -4,8 +4,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.defaultCallingContainerControlProps = void 0;
|
|
7
|
+
|
|
8
|
+
var _Constants = require("../../../../common/Constants");
|
|
9
|
+
|
|
7
10
|
const defaultCallingContainerControlProps = {
|
|
8
|
-
id:
|
|
11
|
+
id: _Constants.Ids.DefaultCallingContainerId,
|
|
9
12
|
dir: "ltr",
|
|
10
13
|
isIncomingCall: false,
|
|
11
14
|
hideCallingContainer: false
|
|
@@ -29,7 +29,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
29
29
|
|
|
30
30
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
31
31
|
|
|
32
|
-
function _extends() { _extends = Object.assign
|
|
32
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
33
33
|
|
|
34
34
|
function CurrentCall(props) {
|
|
35
35
|
var _props$controlProps, _defaultCurrentCallPr, _props$controlProps2, _props$controlProps2$, _defaultCurrentCallPr2, _defaultCurrentCallPr3, _props$controlProps3, _props$controlProps3$, _defaultCurrentCallPr4, _defaultCurrentCallPr5, _props$controlProps4, _props$controlProps4$, _defaultCurrentCallPr6, _defaultCurrentCallPr7, _props$controlProps5, _props$controlProps5$, _defaultCurrentCallPr8, _defaultCurrentCallPr9, _props$controlProps6, _props$controlProps6$, _defaultCurrentCallPr10, _defaultCurrentCallPr11, _props$controlProps7, _props$controlProps7$, _defaultCurrentCallPr12, _defaultCurrentCallPr13, _props$controlProps8, _props$controlProps8$, _defaultCurrentCallPr14, _defaultCurrentCallPr15, _props$controlProps9, _props$controlProps10, _defaultCurrentCallPr16, _defaultCurrentCallPr17, _props$styleProps, _props$controlProps11, _props$controlProps12, _defaultCurrentCallPr18, _defaultCurrentCallPr19, _props$controlProps13, _props$controlProps14, _defaultCurrentCallPr20, _defaultCurrentCallPr21, _props$controlProps15, _props$controlProps16, _defaultCurrentCallPr22, _defaultCurrentCallPr23, _props$controlProps17, _props$controlProps18, _props$controlProps19, _props$controlProps20, _defaultCurrentCallPr24, _defaultCurrentCallPr25, _props$controlProps21, _props$controlProps22, _defaultCurrentCallPr26, _defaultCurrentCallPr27, _props$controlProps23, _props$controlProps24, _defaultCurrentCallPr28, _defaultCurrentCallPr29, _props$controlProps25, _props$controlProps26, _defaultCurrentCallPr30, _defaultCurrentCallPr31, _props$controlProps27, _props$controlProps28, _props$controlProps29, _props$controlProps30, _defaultCurrentCallPr32, _defaultCurrentCallPr33, _props$controlProps31, _props$controlProps32, _defaultCurrentCallPr34, _defaultCurrentCallPr35, _props$controlProps33, _props$controlProps34, _defaultCurrentCallPr36, _defaultCurrentCallPr37, _props$controlProps35, _props$controlProps36, _defaultCurrentCallPr38, _defaultCurrentCallPr39, _props$controlProps37, _defaultCurrentCallPr40, _props$controlProps38, _defaultCurrentCallPr41, _props$controlProps39, _defaultCurrentCallPr42, _props$controlProps40, _props$controlProps41, _props$controlProps42, _props$controlProps43, _defaultCurrentCallPr43, _defaultCurrentCallPr44, _props$controlProps44, _props$controlProps45, _defaultCurrentCallPr45, _defaultCurrentCallPr46, _props$controlProps46, _props$controlProps47, _defaultCurrentCallPr47, _defaultCurrentCallPr48, _props$controlProps48, _props$controlProps49, _defaultCurrentCallPr49, _defaultCurrentCallPr50, _props$controlProps50, _props$controlProps51, _props$controlProps52, _props$controlProps53, _defaultCurrentCallPr51, _defaultCurrentCallPr52, _props$controlProps54, _props$controlProps55, _defaultCurrentCallPr53, _defaultCurrentCallPr54, _props$controlProps56, _props$controlProps57, _defaultCurrentCallPr55, _defaultCurrentCallPr56, _props$controlProps58, _props$controlProps59, _defaultCurrentCallPr57, _defaultCurrentCallPr58, _defaultCurrentCallPr59, _props$controlProps60, _defaultCurrentCallPr60, _props$controlProps61, _defaultCurrentCallPr61, _props$styleProps2, _defaultCurrentCallPr62, _props$styleProps3, _defaultCurrentCallPr63, _props$styleProps4, _defaultCurrentCallPr67, _props$styleProps8, _defaultCurrentCallPr68, _props$styleProps9, _defaultCurrentCallPr69, _props$styleProps10, _defaultCurrentCallPr70, _props$styleProps11, _defaultCurrentCallPr71, _props$styleProps12, _props$controlProps68, _defaultCurrentCallPr72, _props$styleProps13, _props$styleProps13$c, _props$styleProps14, _props$styleProps14$c, _props$styleProps15, _props$styleProps15$c, _props$styleProps16, _props$styleProps16$c, _props$styleProps17, _props$styleProps17$c, _props$controlProps69, _props$controlProps70, _props$controlProps71, _props$controlProps72, _props$controlProps73, _props$controlProps74, _props$controlProps75, _props$controlProps76, _props$controlProps77, _defaultCurrentCallPr73, _defaultCurrentCallPr74, _props$controlProps78, _props$controlProps79, _defaultCurrentCallPr75, _defaultCurrentCallPr76, _props$controlProps80, _props$controlProps81, _props$controlProps82, _props$controlProps83, _defaultCurrentCallPr77, _defaultCurrentCallPr78, _props$controlProps84, _props$controlProps85, _defaultCurrentCallPr79, _defaultCurrentCallPr80, _props$controlProps86, _props$controlProps87, _props$controlProps88, _props$controlProps89, _props$controlProps90, _defaultCurrentCallPr81, _defaultCurrentCallPr82, _props$controlProps91, _props$controlProps92, _defaultCurrentCallPr83, _defaultCurrentCallPr84, _props$controlProps93, _props$controlProps94, _props$controlProps95, _props$controlProps96, _defaultCurrentCallPr85, _defaultCurrentCallPr86, _props$controlProps97, _props$controlProps98, _defaultCurrentCallPr87, _defaultCurrentCallPr88, _props$controlProps99, _props$controlProps100, _props$controlProps101;
|
|
@@ -165,7 +165,7 @@ function CurrentCall(props) {
|
|
|
165
165
|
const endCallCustomEvent = {
|
|
166
166
|
elementType: _Constants.ElementType.CurrentCallEndCallButton,
|
|
167
167
|
elementId: endCallButtonId,
|
|
168
|
-
eventName:
|
|
168
|
+
eventName: _Constants.EventNames.OnClick
|
|
169
169
|
};
|
|
170
170
|
const handleEndCallClick = (0, React.useCallback)(() => {
|
|
171
171
|
var _props$controlProps62;
|
|
@@ -185,7 +185,7 @@ function CurrentCall(props) {
|
|
|
185
185
|
const videoOffCustomEvent = {
|
|
186
186
|
elementType: _Constants.ElementType.CurrentCallVideoButton,
|
|
187
187
|
elementId: videoOffButtonId,
|
|
188
|
-
eventName:
|
|
188
|
+
eventName: _Constants.EventNames.OnClick
|
|
189
189
|
};
|
|
190
190
|
|
|
191
191
|
_BroadcastService.BroadcastService.postMessage(videoOffCustomEvent);
|
|
@@ -204,7 +204,7 @@ function CurrentCall(props) {
|
|
|
204
204
|
const micCustomEvent = {
|
|
205
205
|
elementType: _Constants.ElementType.CurrentCallMicButton,
|
|
206
206
|
elementId: micButtonId,
|
|
207
|
-
eventName:
|
|
207
|
+
eventName: _Constants.EventNames.OnClick
|
|
208
208
|
};
|
|
209
209
|
|
|
210
210
|
_BroadcastService.BroadcastService.postMessage(micCustomEvent);
|
|
@@ -268,12 +268,12 @@ function CurrentCall(props) {
|
|
|
268
268
|
dir: dir
|
|
269
269
|
}, /*#__PURE__*/React.createElement(_react2.Stack, {
|
|
270
270
|
horizontal: true,
|
|
271
|
-
id:
|
|
271
|
+
id: _Constants.Ids.CurrentCallLeftGroupId,
|
|
272
272
|
verticalAlign: "center",
|
|
273
273
|
tokens: leftGroupStackTokens
|
|
274
274
|
}, (0, _utils.processCustomComponents)((_props$controlProps69 = props.controlProps) === null || _props$controlProps69 === void 0 ? void 0 : (_props$controlProps70 = _props$controlProps69.leftGroup) === null || _props$controlProps70 === void 0 ? void 0 : _props$controlProps70.children)), /*#__PURE__*/React.createElement(_react2.Stack, {
|
|
275
275
|
horizontal: true,
|
|
276
|
-
id:
|
|
276
|
+
id: _Constants.Ids.CurrentCallMiddleGroupId,
|
|
277
277
|
verticalAlign: "center",
|
|
278
278
|
tokens: middleGroupStackTokens,
|
|
279
279
|
dir: dir
|
|
@@ -310,7 +310,7 @@ function CurrentCall(props) {
|
|
|
310
310
|
customEvent: endCallCustomEvent
|
|
311
311
|
}))), /*#__PURE__*/React.createElement(_react2.Stack, {
|
|
312
312
|
horizontal: true,
|
|
313
|
-
id:
|
|
313
|
+
id: _Constants.Ids.CurrentCallRightGroupId,
|
|
314
314
|
verticalAlign: "center",
|
|
315
315
|
tokens: rightGroupStackTokens
|
|
316
316
|
}, (0, _utils.processCustomComponents)((_props$controlProps100 = props.controlProps) === null || _props$controlProps100 === void 0 ? void 0 : (_props$controlProps101 = _props$controlProps100.rightGroup) === null || _props$controlProps101 === void 0 ? void 0 : _props$controlProps101.children))));
|
|
@@ -4,14 +4,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.defaultCurrentCallControlProps = void 0;
|
|
7
|
+
|
|
8
|
+
var _Constants = require("../../../../../../common/Constants");
|
|
9
|
+
|
|
7
10
|
const defaultCurrentCallControlProps = {
|
|
8
|
-
id:
|
|
11
|
+
id: _Constants.Ids.DefaultCurrentCallId,
|
|
9
12
|
nonActionIds: {
|
|
10
|
-
currentCallActionGroupId:
|
|
11
|
-
currentCallFooterId:
|
|
12
|
-
remoteVideoTileId:
|
|
13
|
-
selfVideoTileId:
|
|
14
|
-
videoTileGroupId:
|
|
13
|
+
currentCallActionGroupId: _Constants.Ids.CurrentCallActionGroupId,
|
|
14
|
+
currentCallFooterId: _Constants.Ids.CurrentCallFooterId,
|
|
15
|
+
remoteVideoTileId: _Constants.Ids.RemoteVideoTileId,
|
|
16
|
+
selfVideoTileId: _Constants.Ids.SelfVideoTileId,
|
|
17
|
+
videoTileGroupId: _Constants.Ids.VideoTileGroupId
|
|
15
18
|
},
|
|
16
19
|
hideMicButton: false,
|
|
17
20
|
hideVideoButton: false,
|
|
@@ -41,32 +44,32 @@ const defaultCurrentCallControlProps = {
|
|
|
41
44
|
children: []
|
|
42
45
|
},
|
|
43
46
|
endCallButtonProps: {
|
|
44
|
-
id:
|
|
45
|
-
type:
|
|
46
|
-
ariaLabel:
|
|
47
|
-
iconName:
|
|
47
|
+
id: _Constants.Ids.EndCallButtonId,
|
|
48
|
+
type: _Constants.ButtonTypes.Icon,
|
|
49
|
+
ariaLabel: _Constants.AriaLabels.EndCall,
|
|
50
|
+
iconName: _Constants.IconNames.DeclineCall,
|
|
48
51
|
iconSize: 18
|
|
49
52
|
},
|
|
50
53
|
micButtonProps: {
|
|
51
|
-
id:
|
|
52
|
-
type:
|
|
53
|
-
ariaLabel:
|
|
54
|
-
toggleAriaLabel:
|
|
55
|
-
iconName:
|
|
56
|
-
toggleIconName:
|
|
54
|
+
id: _Constants.Ids.MicButtonId,
|
|
55
|
+
type: _Constants.ButtonTypes.Icon,
|
|
56
|
+
ariaLabel: _Constants.AriaLabels.MicMute,
|
|
57
|
+
toggleAriaLabel: _Constants.AriaLabels.MicUnmute,
|
|
58
|
+
iconName: _Constants.IconNames.Microphone,
|
|
59
|
+
toggleIconName: _Constants.IconNames.MicOff2,
|
|
57
60
|
iconSize: 18
|
|
58
61
|
},
|
|
59
62
|
videoButtonProps: {
|
|
60
|
-
id:
|
|
61
|
-
type:
|
|
62
|
-
ariaLabel:
|
|
63
|
-
toggleAriaLabel:
|
|
64
|
-
iconName:
|
|
65
|
-
toggleIconName:
|
|
63
|
+
id: _Constants.Ids.VideoButtonId,
|
|
64
|
+
type: _Constants.ButtonTypes.Icon,
|
|
65
|
+
ariaLabel: _Constants.AriaLabels.VideoTurnCameraOn,
|
|
66
|
+
toggleAriaLabel: _Constants.AriaLabels.VideoTurnCameraOff,
|
|
67
|
+
iconName: _Constants.IconNames.Video,
|
|
68
|
+
toggleIconName: _Constants.IconNames.VideoOff,
|
|
66
69
|
iconSize: 18
|
|
67
70
|
},
|
|
68
71
|
callTimerProps: {
|
|
69
|
-
id:
|
|
72
|
+
id: _Constants.Ids.CallTimerId,
|
|
70
73
|
showHours: false,
|
|
71
74
|
timerStyles: {
|
|
72
75
|
color: "white",
|
|
@@ -7,14 +7,16 @@ exports.defaultCurrentCallControlPropsRtl = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _Icons = require("../../../../../../assets/Icons");
|
|
9
9
|
|
|
10
|
+
var _Constants = require("../../../../../../common/Constants");
|
|
11
|
+
|
|
10
12
|
const defaultCurrentCallControlPropsRtl = {
|
|
11
|
-
id:
|
|
13
|
+
id: _Constants.Ids.DefaultCurrentCallId,
|
|
12
14
|
nonActionIds: {
|
|
13
|
-
currentCallActionGroupId:
|
|
14
|
-
currentCallFooterId:
|
|
15
|
-
remoteVideoTileId:
|
|
16
|
-
selfVideoTileId:
|
|
17
|
-
videoTileGroupId:
|
|
15
|
+
currentCallActionGroupId: _Constants.Ids.CurrentCallActionGroupId,
|
|
16
|
+
currentCallFooterId: _Constants.Ids.CurrentCallFooterId,
|
|
17
|
+
remoteVideoTileId: _Constants.Ids.RemoteVideoTileId,
|
|
18
|
+
selfVideoTileId: _Constants.Ids.SelfVideoTileId,
|
|
19
|
+
videoTileGroupId: _Constants.Ids.VideoTileGroupId
|
|
18
20
|
},
|
|
19
21
|
hideMicButton: false,
|
|
20
22
|
hideVideoButton: false,
|
|
@@ -45,9 +47,9 @@ const defaultCurrentCallControlPropsRtl = {
|
|
|
45
47
|
},
|
|
46
48
|
dir: "rtl",
|
|
47
49
|
endCallButtonProps: {
|
|
48
|
-
id:
|
|
49
|
-
type:
|
|
50
|
-
ariaLabel:
|
|
50
|
+
id: _Constants.Ids.EndCallButtonId,
|
|
51
|
+
type: _Constants.ButtonTypes.Icon,
|
|
52
|
+
ariaLabel: _Constants.AriaLabels.EndCall,
|
|
51
53
|
imageIconProps: {
|
|
52
54
|
src: _Icons.CallRejectButtonBase64,
|
|
53
55
|
styles: {
|
|
@@ -59,10 +61,10 @@ const defaultCurrentCallControlPropsRtl = {
|
|
|
59
61
|
}
|
|
60
62
|
},
|
|
61
63
|
micButtonProps: {
|
|
62
|
-
id:
|
|
63
|
-
type:
|
|
64
|
-
ariaLabel:
|
|
65
|
-
toggleAriaLabel:
|
|
64
|
+
id: _Constants.Ids.MicButtonId,
|
|
65
|
+
type: _Constants.ButtonTypes.Icon,
|
|
66
|
+
ariaLabel: _Constants.AriaLabels.MicMute,
|
|
67
|
+
toggleAriaLabel: _Constants.AriaLabels.MicUnmute,
|
|
66
68
|
imageIconProps: {
|
|
67
69
|
src: _Icons.VoiceOnIconBase64,
|
|
68
70
|
styles: {
|
|
@@ -84,10 +86,10 @@ const defaultCurrentCallControlPropsRtl = {
|
|
|
84
86
|
iconSize: 18
|
|
85
87
|
},
|
|
86
88
|
videoButtonProps: {
|
|
87
|
-
id:
|
|
88
|
-
type:
|
|
89
|
-
ariaLabel:
|
|
90
|
-
toggleAriaLabel:
|
|
89
|
+
id: _Constants.Ids.VideoButtonId,
|
|
90
|
+
type: _Constants.ButtonTypes.Icon,
|
|
91
|
+
ariaLabel: _Constants.AriaLabels.VideoTurnCameraOn,
|
|
92
|
+
toggleAriaLabel: _Constants.AriaLabels.VideoTurnCameraOff,
|
|
91
93
|
imageIconProps: {
|
|
92
94
|
src: _Icons.VideoOnIconBase64,
|
|
93
95
|
styles: {
|
|
@@ -109,7 +111,7 @@ const defaultCurrentCallControlPropsRtl = {
|
|
|
109
111
|
iconSize: 18
|
|
110
112
|
},
|
|
111
113
|
callTimerProps: {
|
|
112
|
-
id:
|
|
114
|
+
id: _Constants.Ids.CallTimerId
|
|
113
115
|
}
|
|
114
116
|
};
|
|
115
117
|
exports.defaultCurrentCallControlPropsRtl = defaultCurrentCallControlPropsRtl;
|
|
@@ -25,7 +25,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
25
25
|
|
|
26
26
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
27
27
|
|
|
28
|
-
function _extends() { _extends = Object.assign
|
|
28
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
29
29
|
|
|
30
30
|
function IncomingCall(props) {
|
|
31
31
|
var _props$controlProps, _defaultIncomingCallP, _props$controlProps2, _props$controlProps2$, _defaultIncomingCallP2, _defaultIncomingCallP3, _props$controlProps3, _props$controlProps3$, _defaultIncomingCallP4, _defaultIncomingCallP5, _props$controlProps4, _props$controlProps4$, _defaultIncomingCallP6, _defaultIncomingCallP7, _defaultIncomingCallP8, _props$styleProps, _props$controlProps5, _props$controlProps5$, _defaultIncomingCallP9, _defaultIncomingCallP10, _props$controlProps6, _props$controlProps6$, _defaultIncomingCallP11, _defaultIncomingCallP12, _props$controlProps7, _props$controlProps7$, _defaultIncomingCallP13, _defaultIncomingCallP14, _defaultIncomingCallP15, _props$controlProps8, _defaultIncomingCallP16, _props$controlProps9, _defaultIncomingCallP17, _props$controlProps10, _defaultIncomingCallP18, _props$controlProps11, _defaultIncomingCallP19, _props$styleProps2, _defaultIncomingCallP20, _props$styleProps3, _defaultIncomingCallP21, _props$styleProps4, _defaultIncomingCallP22, _props$styleProps5, _defaultIncomingCallP23, _props$styleProps6, _defaultIncomingCallP24, _props$styleProps7, _defaultIncomingCallP25, _props$styleProps8, _defaultIncomingCallP26, _props$styleProps9, _props$styleProps10, _props$controlProps18, _defaultIncomingCallP27, _props$controlProps19, _props$componentOverr, _props$controlProps20, _props$controlProps21, _props$controlProps22, _props$controlProps23, _props$controlProps24, _props$controlProps25, _props$controlProps26, _props$controlProps27, _props$controlProps28;
|
|
@@ -63,7 +63,7 @@ function IncomingCall(props) {
|
|
|
63
63
|
const declineCustomEvent = {
|
|
64
64
|
elementType: _Constants.ElementType.IncomingCallDeclineCallButton,
|
|
65
65
|
elementId: declineCallButtonId,
|
|
66
|
-
eventName:
|
|
66
|
+
eventName: _Constants.EventNames.IncomingCallEnded
|
|
67
67
|
};
|
|
68
68
|
const handleDeclineCallClick = (0, React.useCallback)(() => {
|
|
69
69
|
var _props$controlProps12;
|
|
@@ -77,7 +77,7 @@ function IncomingCall(props) {
|
|
|
77
77
|
const videoCustomEvent = {
|
|
78
78
|
elementType: _Constants.ElementType.IncomingCallVideoCallButton,
|
|
79
79
|
elementId: videoCallButtonId,
|
|
80
|
-
eventName:
|
|
80
|
+
eventName: _Constants.EventNames.OnClick
|
|
81
81
|
};
|
|
82
82
|
const handleVideoCallClick = (0, React.useCallback)(() => {
|
|
83
83
|
var _props$controlProps14;
|
|
@@ -91,7 +91,7 @@ function IncomingCall(props) {
|
|
|
91
91
|
const audioCustomEvent = {
|
|
92
92
|
elementType: _Constants.ElementType.IncomingCallAudioCallButton,
|
|
93
93
|
elementId: audioCallButtonId,
|
|
94
|
-
eventName:
|
|
94
|
+
eventName: _Constants.EventNames.OnClick
|
|
95
95
|
};
|
|
96
96
|
const handleAudioCallClick = (0, React.useCallback)(() => {
|
|
97
97
|
var _props$controlProps16;
|
|
@@ -132,15 +132,28 @@ function IncomingCall(props) {
|
|
|
132
132
|
window.removeEventListener("keydown", ignoreDefault);
|
|
133
133
|
};
|
|
134
134
|
}, []);
|
|
135
|
+
(0, React.useEffect)(() => {
|
|
136
|
+
// Setting focus to decline call button when incoming call alert appears
|
|
137
|
+
if (declineCallButtonId) {
|
|
138
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
139
|
+
const declineCallButton = document.getElementById(declineCallButtonId);
|
|
140
|
+
|
|
141
|
+
if (declineCallButton) {
|
|
142
|
+
declineCallButton.focus();
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}, []);
|
|
135
146
|
return /*#__PURE__*/React.createElement(_react2.Stack, {
|
|
136
147
|
horizontal: true,
|
|
137
148
|
className: (_props$styleProps10 = props.styleProps) === null || _props$styleProps10 === void 0 ? void 0 : _props$styleProps10.className,
|
|
138
149
|
horizontalAlign: "space-between",
|
|
139
150
|
styles: stackStyles,
|
|
140
|
-
dir: ((_props$controlProps18 = props.controlProps) === null || _props$controlProps18 === void 0 ? void 0 : _props$controlProps18.dir) ?? ((_defaultIncomingCallP27 = _defaultIncomingCallProps.defaultIncomingCallProps.controlProps) === null || _defaultIncomingCallP27 === void 0 ? void 0 : _defaultIncomingCallP27.dir)
|
|
151
|
+
dir: ((_props$controlProps18 = props.controlProps) === null || _props$controlProps18 === void 0 ? void 0 : _props$controlProps18.dir) ?? ((_defaultIncomingCallP27 = _defaultIncomingCallProps.defaultIncomingCallProps.controlProps) === null || _defaultIncomingCallP27 === void 0 ? void 0 : _defaultIncomingCallP27.dir),
|
|
152
|
+
role: "alert",
|
|
153
|
+
"aria-label": incomingCallTitleProps === null || incomingCallTitleProps === void 0 ? void 0 : incomingCallTitleProps.text
|
|
141
154
|
}, /*#__PURE__*/React.createElement(_react2.Stack, {
|
|
142
155
|
horizontal: true,
|
|
143
|
-
id:
|
|
156
|
+
id: _Constants.Ids.IncomingCallLeftGroupId,
|
|
144
157
|
verticalAlign: "center",
|
|
145
158
|
tokens: leftGroupStackTokens
|
|
146
159
|
}, !((_props$controlProps19 = props.controlProps) !== null && _props$controlProps19 !== void 0 && _props$controlProps19.hideIncomingCallTitle) && ((0, _decodeComponentString.decodeComponentString)((_props$componentOverr = props.componentOverrides) === null || _props$componentOverr === void 0 ? void 0 : _props$componentOverr.incomingCallTitle) || /*#__PURE__*/React.createElement(_react2.Label, _extends({}, incomingCallTitleProps, {
|
|
@@ -149,12 +162,12 @@ function IncomingCall(props) {
|
|
|
149
162
|
styles: incomingCallTitleStyles
|
|
150
163
|
}), incomingCallTitleProps === null || incomingCallTitleProps === void 0 ? void 0 : incomingCallTitleProps.text)), (0, _utils.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(_react2.Stack, {
|
|
151
164
|
horizontal: true,
|
|
152
|
-
id:
|
|
165
|
+
id: _Constants.Ids.IncomingCallMiddleGroupId,
|
|
153
166
|
verticalAlign: "center",
|
|
154
167
|
tokens: middleGroupStackTokens
|
|
155
168
|
}, (0, _utils.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(_react2.Stack, {
|
|
156
169
|
horizontal: true,
|
|
157
|
-
id:
|
|
170
|
+
id: _Constants.Ids.IncomingCallRightGroupId,
|
|
158
171
|
verticalAlign: "center",
|
|
159
172
|
tokens: rightGroupStackTokens
|
|
160
173
|
}, (0, _utils.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.default, _extends({}, declineCallButtonProps, {
|
|
@@ -4,22 +4,25 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.defaultIncomingCallControlProps = void 0;
|
|
7
|
+
|
|
8
|
+
var _Constants = require("../../../../../../common/Constants");
|
|
9
|
+
|
|
7
10
|
const defaultIncomingCallControlProps = {
|
|
8
|
-
id:
|
|
11
|
+
id: _Constants.Ids.DefaultIncomingCallId,
|
|
9
12
|
dir: "ltr",
|
|
10
|
-
ariaLabel:
|
|
13
|
+
ariaLabel: _Constants.AriaLabels.IncomingCallArea,
|
|
11
14
|
hideAudioCall: false,
|
|
12
15
|
hideVideoCall: false,
|
|
13
16
|
hideDeclineCall: false,
|
|
14
17
|
hideIncomingCallTitle: false,
|
|
15
18
|
onDeclineCallClick: function () {
|
|
16
|
-
console.log("
|
|
19
|
+
console.log("decline call clicked");
|
|
17
20
|
},
|
|
18
21
|
onAudioCallClick: function () {
|
|
19
|
-
console.log("
|
|
22
|
+
console.log("audio call clicked");
|
|
20
23
|
},
|
|
21
24
|
onVideoCallClick: function () {
|
|
22
|
-
console.log("
|
|
25
|
+
console.log("video call clicked");
|
|
23
26
|
},
|
|
24
27
|
middleGroup: {
|
|
25
28
|
gap: 5,
|
|
@@ -34,29 +37,29 @@ const defaultIncomingCallControlProps = {
|
|
|
34
37
|
children: []
|
|
35
38
|
},
|
|
36
39
|
declineCallButtonProps: {
|
|
37
|
-
id:
|
|
38
|
-
type:
|
|
39
|
-
ariaLabel:
|
|
40
|
-
iconName:
|
|
40
|
+
id: _Constants.Ids.DeclineCallButtonId,
|
|
41
|
+
type: _Constants.ButtonTypes.Icon,
|
|
42
|
+
ariaLabel: _Constants.AriaLabels.RejectCall,
|
|
43
|
+
iconName: _Constants.IconNames.DeclineCall,
|
|
41
44
|
iconSize: 20
|
|
42
45
|
},
|
|
43
46
|
audioCallButtonProps: {
|
|
44
|
-
id:
|
|
45
|
-
type:
|
|
46
|
-
ariaLabel:
|
|
47
|
-
iconName:
|
|
47
|
+
id: _Constants.Ids.AudioCallButtonId,
|
|
48
|
+
type: _Constants.ButtonTypes.Icon,
|
|
49
|
+
ariaLabel: _Constants.AriaLabels.AcceptVoiceCall,
|
|
50
|
+
iconName: _Constants.IconNames.IncomingCall,
|
|
48
51
|
iconSize: 20
|
|
49
52
|
},
|
|
50
53
|
videoCallButtonProps: {
|
|
51
|
-
id:
|
|
52
|
-
type:
|
|
53
|
-
ariaLabel:
|
|
54
|
-
iconName:
|
|
54
|
+
id: _Constants.Ids.VideoCallButtonId,
|
|
55
|
+
type: _Constants.ButtonTypes.Icon,
|
|
56
|
+
ariaLabel: _Constants.AriaLabels.AcceptVideoCall,
|
|
57
|
+
iconName: _Constants.IconNames.Video,
|
|
55
58
|
iconSize: 20
|
|
56
59
|
},
|
|
57
60
|
incomingCallTitle: {
|
|
58
|
-
id:
|
|
59
|
-
text:
|
|
61
|
+
id: _Constants.Ids.IncomingCallTitleId,
|
|
62
|
+
text: _Constants.Texts.IncomingCallTitle
|
|
60
63
|
}
|
|
61
64
|
};
|
|
62
65
|
exports.defaultIncomingCallControlProps = defaultIncomingCallControlProps;
|
|
@@ -7,21 +7,23 @@ exports.defaultIncomingCallControlPropsRtl = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _Icons = require("../../../../../../assets/Icons");
|
|
9
9
|
|
|
10
|
+
var _Constants = require("../../../../../../common/Constants");
|
|
11
|
+
|
|
10
12
|
const defaultIncomingCallControlPropsRtl = {
|
|
11
|
-
id:
|
|
12
|
-
ariaLabel:
|
|
13
|
+
id: _Constants.Ids.DefaultIncomingCallPopupId,
|
|
14
|
+
ariaLabel: _Constants.AriaLabels.IncomingCallArea,
|
|
13
15
|
hideAudioCall: false,
|
|
14
16
|
hideVideoCall: false,
|
|
15
17
|
hideDeclineCall: false,
|
|
16
18
|
hideIncomingCallTitle: false,
|
|
17
19
|
onDeclineCallClick: function () {
|
|
18
|
-
console.log("
|
|
20
|
+
console.log("decline call clicked");
|
|
19
21
|
},
|
|
20
22
|
onAudioCallClick: function () {
|
|
21
|
-
console.log("
|
|
23
|
+
console.log("audio call clicked");
|
|
22
24
|
},
|
|
23
25
|
onVideoCallClick: function () {
|
|
24
|
-
console.log("
|
|
26
|
+
console.log("video call clicked");
|
|
25
27
|
},
|
|
26
28
|
middleGroup: {
|
|
27
29
|
gap: 5,
|
|
@@ -37,9 +39,9 @@ const defaultIncomingCallControlPropsRtl = {
|
|
|
37
39
|
},
|
|
38
40
|
dir: "rtl",
|
|
39
41
|
declineCallButtonProps: {
|
|
40
|
-
id:
|
|
41
|
-
type:
|
|
42
|
-
ariaLabel:
|
|
42
|
+
id: _Constants.Ids.DeclineCallButtonId,
|
|
43
|
+
type: _Constants.ButtonTypes.Icon,
|
|
44
|
+
ariaLabel: _Constants.AriaLabels.DeclineCall,
|
|
43
45
|
imageIconProps: {
|
|
44
46
|
src: _Icons.CallRejectButtonBase64,
|
|
45
47
|
styles: {
|
|
@@ -52,9 +54,9 @@ const defaultIncomingCallControlPropsRtl = {
|
|
|
52
54
|
iconSize: 20
|
|
53
55
|
},
|
|
54
56
|
audioCallButtonProps: {
|
|
55
|
-
id:
|
|
56
|
-
type:
|
|
57
|
-
ariaLabel:
|
|
57
|
+
id: _Constants.Ids.AudioCallButtonId,
|
|
58
|
+
type: _Constants.ButtonTypes.Icon,
|
|
59
|
+
ariaLabel: _Constants.AriaLabels.AudioCall,
|
|
58
60
|
imageIconProps: {
|
|
59
61
|
src: _Icons.CallAcceptButtonBase64,
|
|
60
62
|
styles: {
|
|
@@ -67,9 +69,9 @@ const defaultIncomingCallControlPropsRtl = {
|
|
|
67
69
|
iconSize: 20
|
|
68
70
|
},
|
|
69
71
|
videoCallButtonProps: {
|
|
70
|
-
id:
|
|
71
|
-
type:
|
|
72
|
-
ariaLabel:
|
|
72
|
+
id: _Constants.Ids.VideoCallButtonId,
|
|
73
|
+
type: _Constants.ButtonTypes.Icon,
|
|
74
|
+
ariaLabel: _Constants.AriaLabels.VideoCall,
|
|
73
75
|
imageIconProps: {
|
|
74
76
|
src: _Icons.VideoCallAcceptButtonIconBase64,
|
|
75
77
|
styles: {
|
|
@@ -82,8 +84,8 @@ const defaultIncomingCallControlPropsRtl = {
|
|
|
82
84
|
iconSize: 20
|
|
83
85
|
},
|
|
84
86
|
incomingCallTitle: {
|
|
85
|
-
id:
|
|
86
|
-
text:
|
|
87
|
+
id: _Constants.Ids.IncomingCallTitleId,
|
|
88
|
+
text: _Constants.Texts.IncomingCallTitle
|
|
87
89
|
}
|
|
88
90
|
};
|
|
89
91
|
exports.defaultIncomingCallControlPropsRtl = defaultIncomingCallControlPropsRtl;
|