@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
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.Regex = exports.KeyCodes = exports.HiddenTextStyles = exports.ElementType = exports.AccessibilityBrightnessRatio = void 0;
|
|
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
|
|
|
@@ -50,4 +50,17 @@ exports.ElementType = ElementType;
|
|
|
50
50
|
ElementType["CurrentCallEndCallButton"] = "CurrentCallEndCallButton";
|
|
51
51
|
ElementType["Utility"] = "Utility";
|
|
52
52
|
ElementType["Custom"] = "Custom";
|
|
53
|
-
})(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;
|
|
@@ -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
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -153,7 +153,7 @@ function IncomingCall(props) {
|
|
|
153
153
|
"aria-label": incomingCallTitleProps === null || incomingCallTitleProps === void 0 ? void 0 : incomingCallTitleProps.text
|
|
154
154
|
}, /*#__PURE__*/React.createElement(_react2.Stack, {
|
|
155
155
|
horizontal: true,
|
|
156
|
-
id:
|
|
156
|
+
id: _Constants.Ids.IncomingCallLeftGroupId,
|
|
157
157
|
verticalAlign: "center",
|
|
158
158
|
tokens: leftGroupStackTokens
|
|
159
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, {
|
|
@@ -162,12 +162,12 @@ function IncomingCall(props) {
|
|
|
162
162
|
styles: incomingCallTitleStyles
|
|
163
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, {
|
|
164
164
|
horizontal: true,
|
|
165
|
-
id:
|
|
165
|
+
id: _Constants.Ids.IncomingCallMiddleGroupId,
|
|
166
166
|
verticalAlign: "center",
|
|
167
167
|
tokens: middleGroupStackTokens
|
|
168
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, {
|
|
169
169
|
horizontal: true,
|
|
170
|
-
id:
|
|
170
|
+
id: _Constants.Ids.IncomingCallRightGroupId,
|
|
171
171
|
verticalAlign: "center",
|
|
172
172
|
tokens: rightGroupStackTokens
|
|
173
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;
|
|
@@ -97,21 +97,19 @@ function TextContainer(props, parentId) {
|
|
|
97
97
|
styles: titleStyles,
|
|
98
98
|
dir: titleDir,
|
|
99
99
|
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,
|
|
100
|
-
id: parentId + "-title"
|
|
101
|
-
title: titleText
|
|
100
|
+
id: parentId + "-title"
|
|
102
101
|
}, titleText)), !hideChatSubtitle && ((0, _decodeComponentString.decodeComponentString)((_props$componentOverr5 = props.componentOverrides) === null || _props$componentOverr5 === void 0 ? void 0 : _props$componentOverr5.subtitle) || /*#__PURE__*/_react2.default.createElement(_react.Label, {
|
|
103
102
|
styles: subtitleStyles,
|
|
104
103
|
dir: subtitleDir,
|
|
105
104
|
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,
|
|
106
|
-
id: parentId + "-subtitle"
|
|
107
|
-
title: subtitleText
|
|
105
|
+
id: parentId + "-subtitle"
|
|
108
106
|
}, subtitleText)));
|
|
109
107
|
}
|
|
110
108
|
|
|
111
109
|
function ChatButton(props) {
|
|
112
110
|
var _props$controlProps12, _props$controlProps13, _props$controlProps14, _props$controlProps15, _props$controlProps16, _props$controlProps17, _props$controlProps18, _props$controlProps19, _props$styleProps11;
|
|
113
111
|
|
|
114
|
-
const elementId = ((_props$controlProps12 = props.controlProps) === null || _props$controlProps12 === void 0 ? void 0 : _props$controlProps12.id) ??
|
|
112
|
+
const elementId = ((_props$controlProps12 = props.controlProps) === null || _props$controlProps12 === void 0 ? void 0 : _props$controlProps12.id) ?? _Constants.Ids.DefaultChatButtonId;
|
|
115
113
|
const defaultAriaLabel = ((_props$controlProps13 = props.controlProps) === null || _props$controlProps13 === void 0 ? void 0 : _props$controlProps13.ariaLabel) ?? _defaultChatButtonControlProps.defaultChatButtonControlProps.ariaLabel;
|
|
116
114
|
const defaultRole = ((_props$controlProps14 = props.controlProps) === null || _props$controlProps14 === void 0 ? void 0 : _props$controlProps14.role) ?? (_defaultChatButtonControlProps.defaultChatButtonControlProps === null || _defaultChatButtonControlProps.defaultChatButtonControlProps === void 0 ? void 0 : _defaultChatButtonControlProps.defaultChatButtonControlProps.role);
|
|
117
115
|
const containersDir = ((_props$controlProps15 = props.controlProps) === null || _props$controlProps15 === void 0 ? void 0 : _props$controlProps15.dir) ?? (_defaultChatButtonControlProps.defaultChatButtonControlProps === null || _defaultChatButtonControlProps.defaultChatButtonControlProps === void 0 ? void 0 : _defaultChatButtonControlProps.defaultChatButtonControlProps.dir);
|
|
@@ -129,7 +127,7 @@ function ChatButton(props) {
|
|
|
129
127
|
const customEvent = {
|
|
130
128
|
elementType: _Constants.ElementType.ChatButton,
|
|
131
129
|
elementId: elementId,
|
|
132
|
-
eventName:
|
|
130
|
+
eventName: _Constants.EventNames.OnClick
|
|
133
131
|
};
|
|
134
132
|
|
|
135
133
|
_BroadcastService.BroadcastService.postMessage(customEvent);
|
|
@@ -4,25 +4,27 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.defaultChatButtonControlProps = void 0;
|
|
7
|
+
|
|
8
|
+
var _Constants = require("../../../../common/Constants");
|
|
9
|
+
|
|
7
10
|
const defaultChatButtonControlProps = {
|
|
8
|
-
id:
|
|
11
|
+
id: _Constants.Ids.DefaultChatButtonId,
|
|
9
12
|
dir: "ltr",
|
|
10
13
|
role: "button",
|
|
11
|
-
ariaLabel: "Let's chat We are online",
|
|
12
14
|
unreadMessageCount: "0",
|
|
13
|
-
titleText: "Let's Chat!",
|
|
14
|
-
subtitleText: "We're online.",
|
|
15
15
|
onClick: function () {
|
|
16
16
|
console.log("initiate chat");
|
|
17
17
|
},
|
|
18
|
+
titleText: _Constants.Texts.ChatButtonTitle,
|
|
19
|
+
subtitleText: _Constants.Texts.ChatButtonSubtitle,
|
|
18
20
|
hideChatButton: false,
|
|
19
21
|
hideChatIcon: false,
|
|
20
22
|
hideChatTextContainer: false,
|
|
21
23
|
hideChatSubtitle: false,
|
|
22
24
|
hideChatTitle: false,
|
|
23
25
|
hideNotificationBubble: true,
|
|
24
|
-
unreadMessageString:
|
|
25
|
-
largeUnreadMessageString:
|
|
26
|
-
ariaLabelUnreadMessageString:
|
|
26
|
+
unreadMessageString: _Constants.Texts.ChatButtonUnreadMessageString,
|
|
27
|
+
largeUnreadMessageString: _Constants.Texts.ChatButtonLargeUnreadMessageString,
|
|
28
|
+
ariaLabelUnreadMessageString: _Constants.AriaLabels.UnreadMessageString
|
|
27
29
|
};
|
|
28
30
|
exports.defaultChatButtonControlProps = defaultChatButtonControlProps;
|
package/lib/cjs/components/chatbutton/common/defaultStyles/defaultChatButtonSubTitleStyles.js
CHANGED
|
@@ -17,6 +17,7 @@ const defaultChatButtonSubTitleStyles = {
|
|
|
17
17
|
padding: "0px",
|
|
18
18
|
textOverflow: "ellipsis !important",
|
|
19
19
|
whiteSpace: "nowrap",
|
|
20
|
-
|
|
20
|
+
minWidth: "90px",
|
|
21
|
+
maxWidth: "105px"
|
|
21
22
|
};
|
|
22
23
|
exports.defaultChatButtonSubTitleStyles = defaultChatButtonSubTitleStyles;
|
|
@@ -28,7 +28,7 @@ function CommandButton(props) {
|
|
|
28
28
|
};
|
|
29
29
|
let iconStyles = {};
|
|
30
30
|
|
|
31
|
-
if (props.type ===
|
|
31
|
+
if (props.type === _Constants.ButtonTypes.Icon) {
|
|
32
32
|
var _props$styles;
|
|
33
33
|
|
|
34
34
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -61,7 +61,7 @@ function CommandButton(props) {
|
|
|
61
61
|
const handleOnClick = (0, _react2.useCallback)(() => {
|
|
62
62
|
if (props !== null && props !== void 0 && props.onClick) {
|
|
63
63
|
const customEvent = props.customEvent ?? {
|
|
64
|
-
eventName:
|
|
64
|
+
eventName: _Constants.EventNames.OnClick,
|
|
65
65
|
elementType: _Constants.ElementType.Custom,
|
|
66
66
|
elementId: props === null || props === void 0 ? void 0 : props.id
|
|
67
67
|
};
|
|
@@ -71,15 +71,16 @@ function CommandButton(props) {
|
|
|
71
71
|
props === null || props === void 0 ? void 0 : props.onClick();
|
|
72
72
|
}
|
|
73
73
|
}, []);
|
|
74
|
-
return /*#__PURE__*/_react2.default.createElement(_react2.default.Fragment, null, props.type ===
|
|
74
|
+
return /*#__PURE__*/_react2.default.createElement(_react2.default.Fragment, null, props.type === _Constants.ButtonTypes.Text && /*#__PURE__*/_react2.default.createElement(_react.DefaultButton, {
|
|
75
75
|
id: props.id,
|
|
76
76
|
text: props.text,
|
|
77
77
|
ariaLabel: props.ariaLabel,
|
|
78
78
|
onClick: handleOnClick,
|
|
79
79
|
disabled: props.disabled,
|
|
80
80
|
className: props.className,
|
|
81
|
-
styles: buttonStyles
|
|
82
|
-
|
|
81
|
+
styles: buttonStyles,
|
|
82
|
+
title: props.hideButtonTitle ? undefined : props.ariaLabel
|
|
83
|
+
}), props.type === _Constants.ButtonTypes.Icon && /*#__PURE__*/_react2.default.createElement(_react.IconButton, {
|
|
83
84
|
id: props.id,
|
|
84
85
|
iconProps: iconProp,
|
|
85
86
|
title: props.hideButtonTitle ? undefined : props.ariaLabel,
|
|
@@ -20,19 +20,19 @@ function CloseButton(props) {
|
|
|
20
20
|
const customEvent = {
|
|
21
21
|
elementType: _Constants.ElementType.CloseButton,
|
|
22
22
|
elementId: props === null || props === void 0 ? void 0 : props.id,
|
|
23
|
-
eventName:
|
|
23
|
+
eventName: _Constants.EventNames.OnClick
|
|
24
24
|
};
|
|
25
25
|
return /*#__PURE__*/_react.default.createElement(_CommandButton.default, {
|
|
26
26
|
id: props === null || props === void 0 ? void 0 : props.id,
|
|
27
27
|
type: type,
|
|
28
|
-
text: props.text ??
|
|
28
|
+
text: props.text ?? _Constants.Texts.CloseButtonText,
|
|
29
29
|
styles: props.styles,
|
|
30
30
|
hoverStyles: props.hoverStyles,
|
|
31
31
|
focusStyles: props.focusStyles,
|
|
32
|
-
iconName: props.iconName ??
|
|
32
|
+
iconName: props.iconName ?? _Constants.IconNames.ChromeClose,
|
|
33
33
|
imageIconProps: props.imageIconProps,
|
|
34
34
|
onClick: props.onClick,
|
|
35
|
-
ariaLabel: props.ariaLabel ??
|
|
35
|
+
ariaLabel: props.ariaLabel ?? _Constants.AriaLabels.Close,
|
|
36
36
|
className: props.className,
|
|
37
37
|
customEvent: customEvent,
|
|
38
38
|
hideButtonTitle: props.hideButtonTitle
|