@microsoft/omnichannel-chat-widget 1.7.8-main.2e1cc2b → 1.7.8-main.50111af
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 +57 -18
- package/lib/cjs/common/KeyCodes.js +6 -1
- package/lib/cjs/common/contextDataStore/DataStoreManager.js +6 -1
- package/lib/cjs/common/facades/FacadeChatSDK.js +385 -291
- package/lib/cjs/common/storage/default/defaultCacheManager.js +6 -3
- package/lib/cjs/common/telemetry/TelemetryConstants.js +139 -116
- package/lib/cjs/common/telemetry/TelemetryHelper.js +219 -181
- package/lib/cjs/common/telemetry/TelemetryManager.js +9 -2
- package/lib/cjs/components/chatbuttonstateful/ChatButtonStateful.js +4 -5
- package/lib/cjs/components/headerstateful/HeaderStateful.js +3 -5
- package/lib/cjs/components/livechatwidget/common/ActivityStreamHandler.js +32 -19
- package/lib/cjs/components/livechatwidget/common/ActivitySubscriber/BotAuthActivitySubscriber.js +71 -56
- package/lib/cjs/components/livechatwidget/common/ActivitySubscriber/DefaultActivitySubscriber.js +17 -8
- package/lib/cjs/components/livechatwidget/common/ActivitySubscriber/HiddenAdaptiveCardActivitySubscriber.js +65 -52
- package/lib/cjs/components/livechatwidget/common/ActivitySubscriber/PauseActivitySubscriber.js +31 -18
- package/lib/cjs/components/livechatwidget/common/ChatAdapterShim.js +14 -6
- package/lib/cjs/components/livechatwidget/common/Deferred.js +14 -6
- package/lib/cjs/components/livechatwidget/common/authHelper.js +15 -0
- package/lib/cjs/components/livechatwidget/common/chatDisconnectHelper.js +3 -1
- package/lib/cjs/components/livechatwidget/common/endChat.js +4 -18
- package/lib/cjs/components/livechatwidget/common/reconnectChatHelper.js +0 -5
- package/lib/cjs/components/livechatwidget/common/startChat.js +2 -23
- package/lib/cjs/components/livechatwidget/livechatwidgetstateful/LiveChatWidgetStateful.js +17 -11
- package/lib/cjs/components/ooohpanestateful/OOOHPaneStateful.js +9 -3
- package/lib/cjs/components/postchatsurveypanestateful/PostChatSurveyPaneStateful.js +22 -6
- package/lib/cjs/components/postchatsurveypanestateful/common/isValidSurveyUrl.js +28 -0
- package/lib/cjs/components/webchatcontainerstateful/WebChatContainerStateful.js +4 -3
- package/lib/cjs/components/webchatcontainerstateful/common/DemoChatAdapter.js +88 -65
- package/lib/cjs/components/webchatcontainerstateful/common/DemoChatSDK.js +26 -7
- package/lib/cjs/components/webchatcontainerstateful/common/DesignerChatAdapter.js +49 -26
- package/lib/cjs/components/webchatcontainerstateful/common/DesignerChatSDK.js +57 -35
- package/lib/cjs/components/webchatcontainerstateful/common/mockadapter.js +62 -52
- package/lib/cjs/components/webchatcontainerstateful/common/mockchatsdk.js +95 -61
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/BotMagicCodeStore.js +6 -1
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/WebChatStoreLoader.js +6 -1
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/markdownrenderers/HyperlinkTextOverrideRenderer.js +53 -39
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/timestamps/DeliveredTimestamp.js +4 -0
- package/lib/cjs/components/webchatcontainerstateful/webchatcontroller/notification/NotificationHandler.js +88 -60
- package/lib/cjs/contexts/common/LiveChatWidgetContextInitialState.js +18 -6
- package/lib/cjs/firstresponselatency/Constants.js +13 -0
- package/lib/cjs/firstresponselatency/FirstMessageTrackerFromBot.js +118 -0
- package/lib/cjs/firstresponselatency/FirstResponseLatencyTracker.js +201 -0
- package/lib/cjs/firstresponselatency/util.js +98 -0
- package/lib/cjs/plugins/createChatTranscript.js +92 -62
- package/lib/cjs/plugins/newMessageEventHandler.js +102 -88
- package/lib/esm/common/Constants.js +57 -18
- package/lib/esm/common/KeyCodes.js +6 -1
- package/lib/esm/common/contextDataStore/DataStoreManager.js +6 -1
- package/lib/esm/common/facades/FacadeChatSDK.js +385 -291
- package/lib/esm/common/storage/default/defaultCacheManager.js +6 -1
- package/lib/esm/common/telemetry/TelemetryConstants.js +139 -116
- package/lib/esm/common/telemetry/TelemetryHelper.js +219 -181
- package/lib/esm/common/telemetry/TelemetryManager.js +9 -2
- package/lib/esm/components/chatbuttonstateful/ChatButtonStateful.js +4 -5
- package/lib/esm/components/headerstateful/HeaderStateful.js +3 -5
- package/lib/esm/components/livechatwidget/common/ActivityStreamHandler.js +32 -19
- package/lib/esm/components/livechatwidget/common/ActivitySubscriber/BotAuthActivitySubscriber.js +71 -56
- package/lib/esm/components/livechatwidget/common/ActivitySubscriber/DefaultActivitySubscriber.js +17 -8
- package/lib/esm/components/livechatwidget/common/ActivitySubscriber/HiddenAdaptiveCardActivitySubscriber.js +65 -52
- package/lib/esm/components/livechatwidget/common/ActivitySubscriber/PauseActivitySubscriber.js +31 -18
- package/lib/esm/components/livechatwidget/common/ChatAdapterShim.js +14 -6
- package/lib/esm/components/livechatwidget/common/Deferred.js +14 -6
- package/lib/esm/components/livechatwidget/common/authHelper.js +15 -0
- package/lib/esm/components/livechatwidget/common/chatDisconnectHelper.js +3 -1
- package/lib/esm/components/livechatwidget/common/endChat.js +4 -18
- package/lib/esm/components/livechatwidget/common/reconnectChatHelper.js +1 -6
- package/lib/esm/components/livechatwidget/common/startChat.js +3 -24
- package/lib/esm/components/livechatwidget/livechatwidgetstateful/LiveChatWidgetStateful.js +17 -11
- package/lib/esm/components/ooohpanestateful/OOOHPaneStateful.js +9 -3
- package/lib/esm/components/postchatsurveypanestateful/PostChatSurveyPaneStateful.js +22 -6
- package/lib/esm/components/postchatsurveypanestateful/common/isValidSurveyUrl.js +21 -0
- package/lib/esm/components/webchatcontainerstateful/WebChatContainerStateful.js +4 -3
- package/lib/esm/components/webchatcontainerstateful/common/DemoChatAdapter.js +88 -65
- package/lib/esm/components/webchatcontainerstateful/common/DemoChatSDK.js +26 -7
- package/lib/esm/components/webchatcontainerstateful/common/DesignerChatAdapter.js +49 -26
- package/lib/esm/components/webchatcontainerstateful/common/DesignerChatSDK.js +57 -35
- package/lib/esm/components/webchatcontainerstateful/common/mockadapter.js +63 -52
- package/lib/esm/components/webchatcontainerstateful/common/mockchatsdk.js +95 -61
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/BotMagicCodeStore.js +6 -1
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/WebChatStoreLoader.js +6 -1
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/markdownrenderers/HyperlinkTextOverrideRenderer.js +53 -39
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/middlewares/renderingmiddlewares/timestamps/DeliveredTimestamp.js +4 -0
- package/lib/esm/components/webchatcontainerstateful/webchatcontroller/notification/NotificationHandler.js +88 -60
- package/lib/esm/contexts/common/LiveChatWidgetContextInitialState.js +18 -6
- package/lib/esm/firstresponselatency/Constants.js +6 -0
- package/lib/esm/firstresponselatency/FirstMessageTrackerFromBot.js +112 -0
- package/lib/esm/firstresponselatency/FirstResponseLatencyTracker.js +194 -0
- package/lib/esm/firstresponselatency/util.js +87 -0
- package/lib/esm/plugins/createChatTranscript.js +92 -62
- package/lib/esm/plugins/newMessageEventHandler.js +100 -86
- package/lib/types/common/facades/FacadeChatSDK.d.ts +1 -0
- package/lib/types/common/telemetry/TelemetryConstants.d.ts +10 -1
- package/lib/types/components/postchatsurveypanestateful/common/isValidSurveyUrl.d.ts +2 -0
- package/lib/types/components/webchatcontainerstateful/interfaces/IWebChatProps.d.ts +2 -2
- package/lib/types/contexts/common/ILiveChatWidgetContext.d.ts +1 -1
- package/lib/types/firstresponselatency/Constants.d.ts +30 -0
- package/lib/types/firstresponselatency/FirstMessageTrackerFromBot.d.ts +1 -0
- package/lib/types/firstresponselatency/FirstResponseLatencyTracker.d.ts +22 -0
- package/lib/types/firstresponselatency/util.d.ts +7 -0
- package/package.json +18 -6
|
@@ -5,10 +5,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.WidgetLoadTelemetryMessage = exports.WidgetLoadCustomErrorString = exports.WebChatMiddlewareConstants = exports.TranscriptConstants = exports.StorageType = exports.StartChatErrorPaneConstants = exports.Regex = exports.PrepareEndChatDescriptionConstants = exports.PostChatSurveyTelemetryMessage = exports.ParticipantType = exports.NotificationPaneConstants = exports.MimeTypes = exports.LocaleConstants = exports.LiveWorkItemState = exports.HtmlIdNames = exports.HtmlElementSelectors = exports.HtmlClassNames = exports.HtmlAttributeNames = exports.EnvironmentVersion = exports.ElementType = exports.E2VVOptions = exports.ConversationMode = exports.ConversationEndEntity = exports.Constants = exports.ConfirmationState = exports.AriaTelemetryConstants = exports.AMSConstants = void 0;
|
|
7
7
|
var _class;
|
|
8
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
9
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
10
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
8
11
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
9
12
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
10
13
|
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
11
|
-
|
|
14
|
+
let Constants = /*#__PURE__*/_createClass(function Constants() {
|
|
15
|
+
_classCallCheck(this, Constants);
|
|
16
|
+
});
|
|
12
17
|
exports.Constants = Constants;
|
|
13
18
|
_defineProperty(Constants, "magicCodeBroadcastChannel", "MagicCodeChannel");
|
|
14
19
|
_defineProperty(Constants, "magicCodeResponseBroadcastChannel", "MagicCodeResponseChannel");
|
|
@@ -123,20 +128,30 @@ _defineProperty(Constants, "InitContextParamsResponse", "initContextParamsRespon
|
|
|
123
128
|
_defineProperty(Constants, "OCOriginalMessageId", "OriginalMessageId");
|
|
124
129
|
_defineProperty(Constants, "WebchatSequenceIdAttribute", "webchat:sequence-id");
|
|
125
130
|
_defineProperty(Constants, "MessageSequenceIdOverride", "MessageSequenceIdOverride");
|
|
126
|
-
const Regex = (_class =
|
|
131
|
+
const Regex = (_class = /*#__PURE__*/_createClass(function Regex() {
|
|
132
|
+
_classCallCheck(this, Regex);
|
|
133
|
+
}), _defineProperty(_class, "EmailRegex", "(?:[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*|\"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*\")@(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?|\\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-zA-Z0-9-]*[a-zA-Z0-9]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21-\\x5a\\x53-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])+)\\])"), _class);
|
|
127
134
|
exports.Regex = Regex;
|
|
128
|
-
|
|
135
|
+
let HtmlIdNames = /*#__PURE__*/_createClass(function HtmlIdNames() {
|
|
136
|
+
_classCallCheck(this, HtmlIdNames);
|
|
137
|
+
});
|
|
129
138
|
exports.HtmlIdNames = HtmlIdNames;
|
|
130
139
|
_defineProperty(HtmlIdNames, "MSLiveChatWidget", "MSLiveChatWidget");
|
|
131
|
-
|
|
140
|
+
let HtmlClassNames = /*#__PURE__*/_createClass(function HtmlClassNames() {
|
|
141
|
+
_classCallCheck(this, HtmlClassNames);
|
|
142
|
+
});
|
|
132
143
|
exports.HtmlClassNames = HtmlClassNames;
|
|
133
144
|
_defineProperty(HtmlClassNames, "webChatBannerCloseButton", "webchat__toast__dismissButton");
|
|
134
145
|
_defineProperty(HtmlClassNames, "webChatBannerExpandButton", "webchat__toaster__expandIcon");
|
|
135
146
|
_defineProperty(HtmlClassNames, "webChatHistoryContainer", "webchat__basic-transcript");
|
|
136
|
-
|
|
147
|
+
let HtmlElementSelectors = /*#__PURE__*/_createClass(function HtmlElementSelectors() {
|
|
148
|
+
_classCallCheck(this, HtmlElementSelectors);
|
|
149
|
+
});
|
|
137
150
|
exports.HtmlElementSelectors = HtmlElementSelectors;
|
|
138
151
|
_defineProperty(HtmlElementSelectors, "sendBoxSelector", "textarea[data-id=\"webchat-sendbox-input\"]");
|
|
139
|
-
|
|
152
|
+
let HtmlAttributeNames = /*#__PURE__*/_createClass(function HtmlAttributeNames() {
|
|
153
|
+
_classCallCheck(this, HtmlAttributeNames);
|
|
154
|
+
});
|
|
140
155
|
exports.HtmlAttributeNames = HtmlAttributeNames;
|
|
141
156
|
_defineProperty(HtmlAttributeNames, "role", "role");
|
|
142
157
|
_defineProperty(HtmlAttributeNames, "navigation", "navigation");
|
|
@@ -171,23 +186,31 @@ _defineProperty(HtmlAttributeNames, "adaptiveCardClassName", "ac-adaptiveCard");
|
|
|
171
186
|
_defineProperty(HtmlAttributeNames, "adaptiveCardTextBlockClassName", "ac-textBlock");
|
|
172
187
|
_defineProperty(HtmlAttributeNames, "adaptiveCardToggleInputClassName", "ac-toggleInput");
|
|
173
188
|
_defineProperty(HtmlAttributeNames, "adaptiveCardActionSetClassName", "ac-actionSet");
|
|
174
|
-
|
|
189
|
+
let WebChatMiddlewareConstants = /*#__PURE__*/_createClass(function WebChatMiddlewareConstants() {
|
|
190
|
+
_classCallCheck(this, WebChatMiddlewareConstants);
|
|
191
|
+
});
|
|
175
192
|
exports.WebChatMiddlewareConstants = WebChatMiddlewareConstants;
|
|
176
193
|
_defineProperty(WebChatMiddlewareConstants, "nextVisibleActivity", "nextVisibleActivity");
|
|
177
194
|
_defineProperty(WebChatMiddlewareConstants, "timeBetweenTimestampGroups", 300000);
|
|
178
195
|
//5 minutes
|
|
179
196
|
_defineProperty(WebChatMiddlewareConstants, "maxTextLength", 6000);
|
|
180
197
|
_defineProperty(WebChatMiddlewareConstants, "adaptiveCard", "AdaptiveCard");
|
|
181
|
-
|
|
198
|
+
let AMSConstants = /*#__PURE__*/_createClass(function AMSConstants() {
|
|
199
|
+
_classCallCheck(this, AMSConstants);
|
|
200
|
+
});
|
|
182
201
|
exports.AMSConstants = AMSConstants;
|
|
183
202
|
_defineProperty(AMSConstants, "supportedImagesMimeTypes", ["image/jpeg", "image/png", "image/gif", "image/heic", "image/webp"]);
|
|
184
203
|
_defineProperty(AMSConstants, "maxSupportedImageSize", 20);
|
|
185
204
|
// AMS max file limit outside of supported Images MIME Types.
|
|
186
205
|
_defineProperty(AMSConstants, "maxSupportedFileSize", 300);
|
|
187
|
-
|
|
206
|
+
let MimeTypes = /*#__PURE__*/_createClass(function MimeTypes() {
|
|
207
|
+
_classCallCheck(this, MimeTypes);
|
|
208
|
+
});
|
|
188
209
|
exports.MimeTypes = MimeTypes;
|
|
189
210
|
_defineProperty(MimeTypes, "UnknownFileType", "application/octet-stream");
|
|
190
|
-
|
|
211
|
+
let LocaleConstants = /*#__PURE__*/_createClass(function LocaleConstants() {
|
|
212
|
+
_classCallCheck(this, LocaleConstants);
|
|
213
|
+
});
|
|
191
214
|
exports.LocaleConstants = LocaleConstants;
|
|
192
215
|
_defineProperty(LocaleConstants, "RTL_LOCALES", ["1025", "1037"]);
|
|
193
216
|
let ElementType;
|
|
@@ -252,7 +275,9 @@ exports.ConfirmationState = ConfirmationState;
|
|
|
252
275
|
ConfirmationState["Cancel"] = "Cancel";
|
|
253
276
|
ConfirmationState["NotSet"] = "NotSet";
|
|
254
277
|
})(ConfirmationState || (exports.ConfirmationState = ConfirmationState = {}));
|
|
255
|
-
|
|
278
|
+
let TranscriptConstants = /*#__PURE__*/_createClass(function TranscriptConstants() {
|
|
279
|
+
_classCallCheck(this, TranscriptConstants);
|
|
280
|
+
});
|
|
256
281
|
exports.TranscriptConstants = TranscriptConstants;
|
|
257
282
|
_defineProperty(TranscriptConstants, "ChatTranscriptsBodyColor", "#F5F5F5");
|
|
258
283
|
_defineProperty(TranscriptConstants, "TranscriptMessageEmojiMessageType", "http://schema.skype.com/emoji");
|
|
@@ -264,7 +289,9 @@ _defineProperty(TranscriptConstants, "AdaptiveCardType", "adaptivecard");
|
|
|
264
289
|
_defineProperty(TranscriptConstants, "InternalMode", "internal");
|
|
265
290
|
_defineProperty(TranscriptConstants, "AgentDialogColor", "#2266E3");
|
|
266
291
|
_defineProperty(TranscriptConstants, "AgentFontColor", "white");
|
|
267
|
-
|
|
292
|
+
let NotificationPaneConstants = /*#__PURE__*/_createClass(function NotificationPaneConstants() {
|
|
293
|
+
_classCallCheck(this, NotificationPaneConstants);
|
|
294
|
+
});
|
|
268
295
|
exports.NotificationPaneConstants = NotificationPaneConstants;
|
|
269
296
|
_defineProperty(NotificationPaneConstants, "DefaultNotificationPaneId", "lcw-notification-pane");
|
|
270
297
|
_defineProperty(NotificationPaneConstants, "DismissId", "lcw-notification-pane-dismiss-button");
|
|
@@ -278,7 +305,9 @@ _defineProperty(NotificationPaneConstants, "IconText", "Notification Icon");
|
|
|
278
305
|
_defineProperty(NotificationPaneConstants, "ChatDisconnectTitleText", "Chat disconnected");
|
|
279
306
|
_defineProperty(NotificationPaneConstants, "ChatDisconnectSubtitleText", "For additional assistance, please close the chat and try again.");
|
|
280
307
|
_defineProperty(NotificationPaneConstants, "ChromeCloseIconName", "ChromeClose");
|
|
281
|
-
|
|
308
|
+
let StartChatErrorPaneConstants = /*#__PURE__*/_createClass(function StartChatErrorPaneConstants() {
|
|
309
|
+
_classCallCheck(this, StartChatErrorPaneConstants);
|
|
310
|
+
});
|
|
282
311
|
exports.StartChatErrorPaneConstants = StartChatErrorPaneConstants;
|
|
283
312
|
_defineProperty(StartChatErrorPaneConstants, "DefaultStartChatErrorPaneId", "oc-lcw-start-chat-error-pane");
|
|
284
313
|
_defineProperty(StartChatErrorPaneConstants, "DefaultStartChatErrorTitleText", "We are unable to load chat at this time.");
|
|
@@ -287,7 +316,9 @@ _defineProperty(StartChatErrorPaneConstants, "DefaultStartChatErrorUnauthorizedT
|
|
|
287
316
|
_defineProperty(StartChatErrorPaneConstants, "DefaultStartChatErrorAuthSetupErrorTitleText", "Chat authentication has failed.");
|
|
288
317
|
_defineProperty(StartChatErrorPaneConstants, "DefaultStartChatErrorUnauthorizedSubtitleText", "UNAUTHORIZED");
|
|
289
318
|
_defineProperty(StartChatErrorPaneConstants, "DefaultStartChatErrorAuthSetupErrorSubtitleText", "AUTH SETUP ERROR");
|
|
290
|
-
|
|
319
|
+
let AriaTelemetryConstants = /*#__PURE__*/_createClass(function AriaTelemetryConstants() {
|
|
320
|
+
_classCallCheck(this, AriaTelemetryConstants);
|
|
321
|
+
});
|
|
291
322
|
exports.AriaTelemetryConstants = AriaTelemetryConstants;
|
|
292
323
|
// Aria Endpoint for different environment types.
|
|
293
324
|
_defineProperty(AriaTelemetryConstants, "GERMANY_ENDPOINT", "https://de.pipe.aria.microsoft.com/Collector/3.0/");
|
|
@@ -302,16 +333,22 @@ _defineProperty(AriaTelemetryConstants, "Public", "Public");
|
|
|
302
333
|
_defineProperty(AriaTelemetryConstants, "EU", "Europe");
|
|
303
334
|
// EUR: crm4; FRA: crm12; GER: crm16; CHE: crm17; NOR: crm19
|
|
304
335
|
_defineProperty(AriaTelemetryConstants, "lcwEUDomainNames", ["crm4.omnichannelengagementhub.com", "crm12.omnichannelengagementhub.com", "crm16.omnichannelengagementhub.com", "crm17.omnichannelengagementhub.com", "crm19.omnichannelengagementhub.com"]);
|
|
305
|
-
|
|
336
|
+
let WidgetLoadTelemetryMessage = /*#__PURE__*/_createClass(function WidgetLoadTelemetryMessage() {
|
|
337
|
+
_classCallCheck(this, WidgetLoadTelemetryMessage);
|
|
338
|
+
});
|
|
306
339
|
exports.WidgetLoadTelemetryMessage = WidgetLoadTelemetryMessage;
|
|
307
340
|
_defineProperty(WidgetLoadTelemetryMessage, "OOOHMessage", "Widget is OOOH");
|
|
308
341
|
_defineProperty(WidgetLoadTelemetryMessage, "PersistedStateRetrievedMessage", "Persisted state retrieved");
|
|
309
|
-
|
|
342
|
+
let WidgetLoadCustomErrorString = /*#__PURE__*/_createClass(function WidgetLoadCustomErrorString() {
|
|
343
|
+
_classCallCheck(this, WidgetLoadCustomErrorString);
|
|
344
|
+
});
|
|
310
345
|
exports.WidgetLoadCustomErrorString = WidgetLoadCustomErrorString;
|
|
311
346
|
_defineProperty(WidgetLoadCustomErrorString, "AuthenticationFailedErrorString", "Authentication was not successful");
|
|
312
347
|
_defineProperty(WidgetLoadCustomErrorString, "NetworkErrorString", "Network Error");
|
|
313
348
|
_defineProperty(WidgetLoadCustomErrorString, "CloseAdapterAfterDisconnectionErrorString", "Error trying to end/close chat adapter after the widget is back on-line, for an already disconnected session");
|
|
314
|
-
|
|
349
|
+
let PrepareEndChatDescriptionConstants = /*#__PURE__*/_createClass(function PrepareEndChatDescriptionConstants() {
|
|
350
|
+
_classCallCheck(this, PrepareEndChatDescriptionConstants);
|
|
351
|
+
});
|
|
315
352
|
exports.PrepareEndChatDescriptionConstants = PrepareEndChatDescriptionConstants;
|
|
316
353
|
_defineProperty(PrepareEndChatDescriptionConstants, "ConversationEndedByCustomerWithoutPostChat", "Conversation ended by customer. Post chat not configured or should not show.");
|
|
317
354
|
_defineProperty(PrepareEndChatDescriptionConstants, "ConversationEndedByCustomerWithInvalidPostChat", "Conversation ended by customer. Post chat context is invalid.");
|
|
@@ -323,7 +360,9 @@ _defineProperty(PrepareEndChatDescriptionConstants, "EndChatReceivedFromOtherTab
|
|
|
323
360
|
_defineProperty(PrepareEndChatDescriptionConstants, "CustomerCloseChatOnFailureOrPostChat", "Customer is trying to close chat widget on start chat failure or post chat pane.");
|
|
324
361
|
_defineProperty(PrepareEndChatDescriptionConstants, "CustomerCloseInactiveChat", "Chat was Inactive and customer is trying to close chat widget or refreshing the page.");
|
|
325
362
|
_defineProperty(PrepareEndChatDescriptionConstants, "BrowserUnload", "Browser unload event received. Ending chat.");
|
|
326
|
-
|
|
363
|
+
let PostChatSurveyTelemetryMessage = /*#__PURE__*/_createClass(function PostChatSurveyTelemetryMessage() {
|
|
364
|
+
_classCallCheck(this, PostChatSurveyTelemetryMessage);
|
|
365
|
+
});
|
|
327
366
|
exports.PostChatSurveyTelemetryMessage = PostChatSurveyTelemetryMessage;
|
|
328
367
|
_defineProperty(PostChatSurveyTelemetryMessage, "PostChatContextCallFailed", "Failed to get post chat context.");
|
|
329
368
|
_defineProperty(PostChatSurveyTelemetryMessage, "PostChatContextCallSucceed", "Postchat context call succeed.");
|
|
@@ -5,8 +5,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.KeyCodes = void 0;
|
|
7
7
|
var _class;
|
|
8
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
9
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
10
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
8
11
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
9
12
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
10
13
|
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
11
|
-
const KeyCodes = (_class =
|
|
14
|
+
const KeyCodes = (_class = /*#__PURE__*/_createClass(function KeyCodes() {
|
|
15
|
+
_classCallCheck(this, KeyCodes);
|
|
16
|
+
}), _defineProperty(_class, "ENTER", "Enter"), _defineProperty(_class, "TAB", "Tab"), _class);
|
|
12
17
|
exports.KeyCodes = KeyCodes;
|
|
@@ -4,9 +4,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.DataStoreManager = void 0;
|
|
7
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
8
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
9
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
7
10
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8
11
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
9
12
|
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
10
|
-
|
|
13
|
+
let DataStoreManager = /*#__PURE__*/_createClass(function DataStoreManager() {
|
|
14
|
+
_classCallCheck(this, DataStoreManager);
|
|
15
|
+
});
|
|
11
16
|
exports.DataStoreManager = DataStoreManager;
|
|
12
17
|
_defineProperty(DataStoreManager, "clientDataStore", void 0);
|