@microsoft/omnichannel-chat-components 1.0.1-main.9f52604 → 1.0.2-main.9ceef28

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.
Files changed (104) hide show
  1. package/lib/cjs/common/Constants.js +16 -3
  2. package/lib/cjs/components/callingcontainer/common/defaultProps/defaultCallingContainerControlProps.js +4 -1
  3. package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/CurrentCall.js +6 -6
  4. package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/common/defaultProps/defaultCurrentCallControlProps.js +26 -23
  5. package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/common/defaultProps/defaultCurrentCallControlPropsRtl.js +20 -18
  6. package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/IncomingCall.js +6 -6
  7. package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/defaultIncomingCallControlProps.js +22 -19
  8. package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/defaultIncomingCallControlPropsRtl.js +18 -16
  9. package/lib/cjs/components/chatbutton/ChatButton.js +2 -2
  10. package/lib/cjs/components/chatbutton/common/defaultProps/defaultChatButtonControlProps.js +10 -7
  11. package/lib/cjs/components/common/commandbutton/CommandButton.js +4 -4
  12. package/lib/cjs/components/common/subcomponents/CloseButton.js +4 -4
  13. package/lib/cjs/components/confirmationpane/ConfirmationPane.js +2 -2
  14. package/lib/cjs/components/confirmationpane/common/defaultProps/defaultConfirmationPaneControlProps.js +10 -7
  15. package/lib/cjs/components/footer/Footer.js +10 -17
  16. package/lib/cjs/components/footer/common/defaultProps/customFooterControlProps.js +12 -10
  17. package/lib/cjs/components/footer/common/defaultProps/defaultFooterControlProps.js +18 -15
  18. package/lib/cjs/components/footer/common/defaultStyles/defaultFooterStyleProps.js +1 -1
  19. package/lib/cjs/components/footer/subcomponents/AudioNotificationButton.js +5 -5
  20. package/lib/cjs/components/footer/subcomponents/DownloadTranscriptButton.js +4 -4
  21. package/lib/cjs/components/footer/subcomponents/EmailTranscriptButton.js +4 -4
  22. package/lib/cjs/components/header/Header.js +5 -3
  23. package/lib/cjs/components/header/common/defaultProps/azureHeaderControlProps.js +8 -6
  24. package/lib/cjs/components/header/common/defaultProps/customHeaderControlProps.js +9 -7
  25. package/lib/cjs/components/header/common/defaultProps/defaultHeaderComponentOverrides.js +3 -1
  26. package/lib/cjs/components/header/common/defaultProps/defaultHeaderControlProps.js +13 -11
  27. package/lib/cjs/components/header/subcomponents/MinimizeButton.js +4 -4
  28. package/lib/cjs/components/inputvalidationpane/common/default/defaultProps/defaultInputValidationPaneControlProps.js +11 -11
  29. package/lib/cjs/components/inputvalidationpane/common/presetTwo/presetTwoProps/presetTwoInputValidationPaneControlProps.js +11 -11
  30. package/lib/cjs/components/loadingpane/LoadingPane.js +1 -1
  31. package/lib/cjs/components/loadingpane/common/defaultProps/defaultLoadingPaneControlProps.js +7 -4
  32. package/lib/cjs/components/loadingpane/common/presetOneProps/presetOneLoadingPaneControlProps.js +1 -1
  33. package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeLoadingPaneControlProps.js +1 -1
  34. package/lib/cjs/components/loadingpane/common/presetTwoProps/presetTwoLoadingPaneControlProps.js +1 -1
  35. package/lib/cjs/components/outofofficehourspane/common/defaultProps/defaultOOOHPaneControlProps.js +5 -2
  36. package/lib/cjs/components/outofofficehourspane/common/presetFourProps/presetFourOOOHPaneControlProps.js +1 -1
  37. package/lib/cjs/components/outofofficehourspane/common/presetOneProps/presetOneOOOHPaneControlProps.js +1 -1
  38. package/lib/cjs/components/outofofficehourspane/common/presetTwoProps/presetTwoOOOHPaneControlProps.js +1 -1
  39. package/lib/cjs/components/postchatsurveypane/common/defaultProps/defaultPostChatSurveyPaneControlProps.js +5 -2
  40. package/lib/cjs/components/postchatsurveypane/common/presetOneProps/presetOnePostChatSurveyPaneControlProps.js +1 -1
  41. package/lib/cjs/components/prechatsurveypane/PreChatSurveyPane.js +2 -2
  42. package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultPreChatSurveyPaneControlProps.js +4 -1
  43. package/lib/cjs/components/prechatsurveypane/common/presetThreeProps/presetThreePreChatSurveyPaneControlProps.js +1 -1
  44. package/lib/cjs/components/prechatsurveypane/common/presetTwoProps/presetTwoPreChatSurveyPaneControlProps.js +1 -1
  45. package/lib/cjs/components/proactivechatpane/common/default/defaultProps/defaultProactiveChatPaneControlProps.js +12 -9
  46. package/lib/cjs/components/proactivechatpane/common/presetOne/presetOneProps/presetOneProactiveChatPaneControlProps.js +12 -9
  47. package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeProps/presetThreeProactiveChatPaneControlProps.js +12 -9
  48. package/lib/cjs/components/proactivechatpane/common/presetTwo/presetTwoProps/presetTwoProactiveChatPaneControlProps.js +9 -6
  49. package/lib/cjs/components/reconnectchatpane/ReconnectChatPane.js +3 -3
  50. package/lib/cjs/components/reconnectchatpane/common/default/defaultProps/defaultReconnectChatPaneControlProps.js +12 -9
  51. package/lib/cjs/components/reconnectchatpane/common/presetThree/presetThreeProps/presetThreeReconnectChatPaneControlProps.js +11 -8
  52. package/lib/esm/common/Constants.js +9 -2
  53. package/lib/esm/components/callingcontainer/common/defaultProps/defaultCallingContainerControlProps.js +2 -1
  54. package/lib/esm/components/callingcontainer/subcomponents/CurrentCall/CurrentCall.js +7 -7
  55. package/lib/esm/components/callingcontainer/subcomponents/CurrentCall/common/defaultProps/defaultCurrentCallControlProps.js +24 -23
  56. package/lib/esm/components/callingcontainer/subcomponents/CurrentCall/common/defaultProps/defaultCurrentCallControlPropsRtl.js +19 -18
  57. package/lib/esm/components/callingcontainer/subcomponents/IncomingCall/IncomingCall.js +7 -7
  58. package/lib/esm/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/defaultIncomingCallControlProps.js +20 -19
  59. package/lib/esm/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/defaultIncomingCallControlPropsRtl.js +17 -16
  60. package/lib/esm/components/chatbutton/ChatButton.js +3 -3
  61. package/lib/esm/components/chatbutton/common/defaultProps/defaultChatButtonControlProps.js +8 -7
  62. package/lib/esm/components/common/commandbutton/CommandButton.js +5 -5
  63. package/lib/esm/components/common/subcomponents/CloseButton.js +5 -5
  64. package/lib/esm/components/confirmationpane/ConfirmationPane.js +3 -3
  65. package/lib/esm/components/confirmationpane/common/defaultProps/defaultConfirmationPaneControlProps.js +8 -7
  66. package/lib/esm/components/footer/Footer.js +9 -17
  67. package/lib/esm/components/footer/common/defaultProps/customFooterControlProps.js +11 -10
  68. package/lib/esm/components/footer/common/defaultProps/defaultFooterControlProps.js +16 -15
  69. package/lib/esm/components/footer/common/defaultStyles/defaultFooterStyleProps.js +1 -1
  70. package/lib/esm/components/footer/subcomponents/AudioNotificationButton.js +6 -6
  71. package/lib/esm/components/footer/subcomponents/DownloadTranscriptButton.js +5 -5
  72. package/lib/esm/components/footer/subcomponents/EmailTranscriptButton.js +5 -5
  73. package/lib/esm/components/header/Header.js +4 -3
  74. package/lib/esm/components/header/common/defaultProps/azureHeaderControlProps.js +7 -6
  75. package/lib/esm/components/header/common/defaultProps/customHeaderControlProps.js +8 -7
  76. package/lib/esm/components/header/common/defaultProps/defaultHeaderComponentOverrides.js +2 -1
  77. package/lib/esm/components/header/common/defaultProps/defaultHeaderControlProps.js +12 -11
  78. package/lib/esm/components/header/subcomponents/MinimizeButton.js +5 -5
  79. package/lib/esm/components/inputvalidationpane/common/default/defaultProps/defaultInputValidationPaneControlProps.js +12 -12
  80. package/lib/esm/components/inputvalidationpane/common/presetTwo/presetTwoProps/presetTwoInputValidationPaneControlProps.js +12 -12
  81. package/lib/esm/components/loadingpane/LoadingPane.js +1 -1
  82. package/lib/esm/components/loadingpane/common/defaultProps/defaultLoadingPaneControlProps.js +5 -4
  83. package/lib/esm/components/loadingpane/common/presetOneProps/presetOneLoadingPaneControlProps.js +1 -1
  84. package/lib/esm/components/loadingpane/common/presetThreeProps/presetThreeLoadingPaneControlProps.js +1 -1
  85. package/lib/esm/components/loadingpane/common/presetTwoProps/presetTwoLoadingPaneControlProps.js +1 -1
  86. package/lib/esm/components/outofofficehourspane/common/defaultProps/defaultOOOHPaneControlProps.js +3 -2
  87. package/lib/esm/components/outofofficehourspane/common/presetFourProps/presetFourOOOHPaneControlProps.js +1 -1
  88. package/lib/esm/components/outofofficehourspane/common/presetOneProps/presetOneOOOHPaneControlProps.js +1 -1
  89. package/lib/esm/components/outofofficehourspane/common/presetTwoProps/presetTwoOOOHPaneControlProps.js +1 -1
  90. package/lib/esm/components/postchatsurveypane/common/defaultProps/defaultPostChatSurveyPaneControlProps.js +3 -2
  91. package/lib/esm/components/postchatsurveypane/common/presetOneProps/presetOnePostChatSurveyPaneControlProps.js +1 -1
  92. package/lib/esm/components/prechatsurveypane/PreChatSurveyPane.js +3 -3
  93. package/lib/esm/components/prechatsurveypane/common/defaultProps/defaultPreChatSurveyPaneControlProps.js +2 -1
  94. package/lib/esm/components/prechatsurveypane/common/presetThreeProps/presetThreePreChatSurveyPaneControlProps.js +1 -1
  95. package/lib/esm/components/prechatsurveypane/common/presetTwoProps/presetTwoPreChatSurveyPaneControlProps.js +1 -1
  96. package/lib/esm/components/proactivechatpane/common/default/defaultProps/defaultProactiveChatPaneControlProps.js +10 -9
  97. package/lib/esm/components/proactivechatpane/common/presetOne/presetOneProps/presetOneProactiveChatPaneControlProps.js +10 -9
  98. package/lib/esm/components/proactivechatpane/common/presetThree/presetThreeProps/presetThreeProactiveChatPaneControlProps.js +10 -9
  99. package/lib/esm/components/proactivechatpane/common/presetTwo/presetTwoProps/presetTwoProactiveChatPaneControlProps.js +7 -6
  100. package/lib/esm/components/reconnectchatpane/ReconnectChatPane.js +4 -4
  101. package/lib/esm/components/reconnectchatpane/common/default/defaultProps/defaultReconnectChatPaneControlProps.js +10 -9
  102. package/lib/esm/components/reconnectchatpane/common/presetThree/presetThreeProps/presetThreeReconnectChatPaneControlProps.js +9 -8
  103. package/lib/types/common/Constants.d.ts +148 -0
  104. 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: "oc-lcw-callingcontainer",
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: "OnClick"
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: "OnClick"
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: "OnClick"
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: "currentCallLeftGroup",
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: "currentCallMiddleGroup",
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: "currentCallRightGroup",
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: "currentCall-container",
11
+ id: _Constants.Ids.DefaultCurrentCallId,
9
12
  nonActionIds: {
10
- currentCallActionGroupId: "currentCall-actionicons",
11
- currentCallFooterId: "currentCall-footer",
12
- remoteVideoTileId: "remoteVideo",
13
- selfVideoTileId: "selfVideo",
14
- videoTileGroupId: "currentCall-body"
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: "callRejectButton",
45
- type: "icon",
46
- ariaLabel: "End Call",
47
- iconName: "DeclineCall",
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: "toggleAudio",
52
- type: "icon",
53
- ariaLabel: "Mute",
54
- toggleAriaLabel: "Unmute",
55
- iconName: "Microphone",
56
- toggleIconName: "MicOff2",
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: "toggleVideo",
61
- type: "icon",
62
- ariaLabel: "Turn on camera",
63
- toggleAriaLabel: "Turn off camera",
64
- iconName: "Video",
65
- toggleIconName: "VideoOff",
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: "oc-lcw-CurrentCall-timer",
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: "currentCall-container",
13
+ id: _Constants.Ids.DefaultCurrentCallId,
12
14
  nonActionIds: {
13
- currentCallActionGroupId: "currentCall-actionicons",
14
- currentCallFooterId: "currentCall-footer",
15
- remoteVideoTileId: "remoteVideo",
16
- selfVideoTileId: "selfVideo",
17
- videoTileGroupId: "currentCall-body"
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: "callRejectButton",
49
- type: "icon",
50
- ariaLabel: "End Call",
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: "toggleAudio",
63
- type: "icon",
64
- ariaLabel: "Mute",
65
- toggleAriaLabel: "Unmute",
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: "toggleVideo",
88
- type: "icon",
89
- ariaLabel: "Turn camera on",
90
- toggleAriaLabel: "Turn camera off",
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: "oc-lcw-CurrentCall-timer"
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: "incomingCallEnded"
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: "OnClick"
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: "OnClick"
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: "incomingCallLeftGroup",
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: "incomingCallMiddleGroup",
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: "incomingCallRightGroup",
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: "oc-lcw-incomingcall",
11
+ id: _Constants.Ids.DefaultIncomingCallId,
9
12
  dir: "ltr",
10
- ariaLabel: "Incoming call area",
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("download transcript clicked");
19
+ console.log("decline call clicked");
17
20
  },
18
21
  onAudioCallClick: function () {
19
- console.log("email transcript clicked");
22
+ console.log("audio call clicked");
20
23
  },
21
24
  onVideoCallClick: function () {
22
- console.log("audio notification clicked");
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: "callRejectButton",
38
- type: "icon",
39
- ariaLabel: "Reject call",
40
- iconName: "DeclineCall",
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: "callAcceptButton",
45
- type: "icon",
46
- ariaLabel: "Accept voice call",
47
- iconName: "IncomingCall",
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: "videoCallAcceptButton",
52
- type: "icon",
53
- ariaLabel: "Accept video Call",
54
- iconName: "Video",
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: "incomingCallMessage",
59
- text: "Incoming Call"
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: "incomingCallPopup",
12
- ariaLabel: "Incoming call area",
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("download transcript clicked");
20
+ console.log("decline call clicked");
19
21
  },
20
22
  onAudioCallClick: function () {
21
- console.log("email transcript clicked");
23
+ console.log("audio call clicked");
22
24
  },
23
25
  onVideoCallClick: function () {
24
- console.log("audio notification clicked");
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: "callRejectButton",
41
- type: "icon",
42
- ariaLabel: "Decline Call",
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: "callAcceptButton",
56
- type: "icon",
57
- ariaLabel: "Audio Call",
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: "videoCallAcceptButton",
71
- type: "icon",
72
- ariaLabel: "Video Call",
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: "incomingCallMessage",
86
- text: "Incoming Call"
87
+ id: _Constants.Ids.IncomingCallTitleId,
88
+ text: _Constants.Texts.IncomingCallTitle
87
89
  }
88
90
  };
89
91
  exports.defaultIncomingCallControlPropsRtl = defaultIncomingCallControlPropsRtl;
@@ -111,7 +111,7 @@ function TextContainer(props, parentId) {
111
111
  function ChatButton(props) {
112
112
  var _props$controlProps12, _props$controlProps13, _props$controlProps14, _props$controlProps15, _props$controlProps16, _props$controlProps17, _props$controlProps18, _props$controlProps19, _props$styleProps11;
113
113
 
114
- const elementId = ((_props$controlProps12 = props.controlProps) === null || _props$controlProps12 === void 0 ? void 0 : _props$controlProps12.id) ?? "lcw-components-chat-button";
114
+ const elementId = ((_props$controlProps12 = props.controlProps) === null || _props$controlProps12 === void 0 ? void 0 : _props$controlProps12.id) ?? _Constants.Ids.DefaultChatButtonId;
115
115
  const defaultAriaLabel = ((_props$controlProps13 = props.controlProps) === null || _props$controlProps13 === void 0 ? void 0 : _props$controlProps13.ariaLabel) ?? _defaultChatButtonControlProps.defaultChatButtonControlProps.ariaLabel;
116
116
  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
117
  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 +129,7 @@ function ChatButton(props) {
129
129
  const customEvent = {
130
130
  elementType: _Constants.ElementType.ChatButton,
131
131
  elementId: elementId,
132
- eventName: "OnClick"
132
+ eventName: _Constants.EventNames.OnClick
133
133
  };
134
134
 
135
135
  _BroadcastService.BroadcastService.postMessage(customEvent);
@@ -4,14 +4,17 @@ 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: "lcw-components-chat-button",
11
+ id: _Constants.Ids.DefaultChatButtonId,
9
12
  dir: "ltr",
10
13
  role: "button",
11
- ariaLabel: "Let's chat We are online",
14
+ ariaLabel: _Constants.AriaLabels.LetsChatWeAreOnline,
12
15
  unreadMessageCount: "0",
13
- titleText: "Let's Chat!",
14
- subtitleText: "We're online.",
16
+ titleText: _Constants.Texts.ChatButtonTitle,
17
+ subtitleText: _Constants.Texts.ChatButtonSubtitle,
15
18
  onClick: function () {
16
19
  console.log("initiate chat");
17
20
  },
@@ -21,8 +24,8 @@ const defaultChatButtonControlProps = {
21
24
  hideChatSubtitle: false,
22
25
  hideChatTitle: false,
23
26
  hideNotificationBubble: true,
24
- unreadMessageString: "new messages",
25
- largeUnreadMessageString: "99+",
26
- ariaLabelUnreadMessageString: "you have new messages"
27
+ unreadMessageString: _Constants.Texts.ChatButtonUnreadMessageString,
28
+ largeUnreadMessageString: _Constants.Texts.ChatButtonLargeUnreadMessageString,
29
+ ariaLabelUnreadMessageString: _Constants.AriaLabels.UnreadMessageString
27
30
  };
28
31
  exports.defaultChatButtonControlProps = defaultChatButtonControlProps;
@@ -28,7 +28,7 @@ function CommandButton(props) {
28
28
  };
29
29
  let iconStyles = {};
30
30
 
31
- if (props.type === "icon") {
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: "onClick",
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,7 +71,7 @@ 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 === "text" && /*#__PURE__*/_react2.default.createElement(_react.DefaultButton, {
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,
@@ -79,7 +79,7 @@ function CommandButton(props) {
79
79
  disabled: props.disabled,
80
80
  className: props.className,
81
81
  styles: buttonStyles
82
- }), props.type === "icon" && /*#__PURE__*/_react2.default.createElement(_react.IconButton, {
82
+ }), props.type === _Constants.ButtonTypes.Icon && /*#__PURE__*/_react2.default.createElement(_react.IconButton, {
83
83
  id: props.id,
84
84
  iconProps: iconProp,
85
85
  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: "OnClick"
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 ?? "Close",
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 ?? "ChromeClose",
32
+ iconName: props.iconName ?? _Constants.IconNames.ChromeClose,
33
33
  imageIconProps: props.imageIconProps,
34
34
  onClick: props.onClick,
35
- ariaLabel: props.ariaLabel ?? "Close",
35
+ ariaLabel: props.ariaLabel ?? _Constants.AriaLabels.Close,
36
36
  className: props.className,
37
37
  customEvent: customEvent,
38
38
  hideButtonTitle: props.hideButtonTitle
@@ -56,7 +56,7 @@ function ConfirmationPane(props) {
56
56
  const customEvent = {
57
57
  elementType: _Constants.ElementType.ConfirmationPaneConfirmButton,
58
58
  elementId: elementId + "-confirmbutton",
59
- eventName: "OnClick"
59
+ eventName: _Constants.EventNames.OnClick
60
60
  };
61
61
 
62
62
  _BroadcastService.BroadcastService.postMessage(customEvent);
@@ -73,7 +73,7 @@ function ConfirmationPane(props) {
73
73
  const customEvent = {
74
74
  elementType: _Constants.ElementType.ConfirmationPaneCancelButton,
75
75
  elementId: elementId + "-cancelbutton",
76
- eventName: "OnClick"
76
+ eventName: _Constants.EventNames.OnClick
77
77
  };
78
78
 
79
79
  _BroadcastService.BroadcastService.postMessage(customEvent);
@@ -4,20 +4,23 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.defaultConfirmationPaneControlProps = void 0;
7
+
8
+ var _Constants = require("../../../../common/Constants");
9
+
7
10
  const defaultConfirmationPaneControlProps = {
8
- id: "lcw-components-confirmation-pane",
11
+ id: _Constants.Ids.DefaultConfirmationPaneId,
9
12
  dir: "ltr",
10
13
  hideConfirmationPane: false,
11
14
  hideTitle: false,
12
- titleText: "Close chat",
15
+ titleText: _Constants.Texts.ConfirmationPaneTitle,
13
16
  hideSubtitle: false,
14
- subtitleText: "Do you really want to close this chat?",
17
+ subtitleText: _Constants.Texts.ConfirmationPaneSubtitle,
15
18
  hideConfirmButton: false,
16
- confirmButtonText: "Close",
17
- confirmButtonAriaLabel: "Close Chat",
19
+ confirmButtonText: _Constants.Texts.ConfirmButtonText,
20
+ confirmButtonAriaLabel: _Constants.AriaLabels.ConfirmationPaneConfirm,
18
21
  hideCancelButton: false,
19
- cancelButtonText: "Cancel",
20
- cancelButtonAriaLabel: "Cancel. Return to Chat",
22
+ cancelButtonText: _Constants.Texts.CancelButtonText,
23
+ cancelButtonAriaLabel: _Constants.AriaLabels.ConfirmationPaneCancel,
21
24
  onConfirm: function () {
22
25
  console.log("on confirm");
23
26
  },