@microsoft/omnichannel-chat-widget 1.1.0 → 1.1.1-main.45472ff
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.
|
@@ -114,6 +114,7 @@ _defineProperty(Constants, "PopoutCacheSuffix", "popout");
|
|
|
114
114
|
_defineProperty(Constants, "LWICheckOnVisibilityTimeout", 3 * 60 * 1000);
|
|
115
115
|
// 3 minute
|
|
116
116
|
// Popup mode custom context response event message name
|
|
117
|
+
_defineProperty(Constants, "InitContextParamsRequest", "initContextParamsRequest");
|
|
117
118
|
_defineProperty(Constants, "InitContextParamsResponse", "initContextParamsResponse");
|
|
118
119
|
const Regex = (_class = class Regex {}, _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);
|
|
119
120
|
exports.Regex = Regex;
|
|
@@ -417,7 +417,7 @@ const getInitContextParamForPopoutFromOuterScope = async scope => {
|
|
|
417
417
|
};
|
|
418
418
|
window.addEventListener("message", getInitContextParamsFromParent, false);
|
|
419
419
|
scope.postMessage({
|
|
420
|
-
messageName: _Constants.Constants.
|
|
420
|
+
messageName: _Constants.Constants.InitContextParamsRequest
|
|
421
421
|
}, "*");
|
|
422
422
|
await waitPromise;
|
|
423
423
|
window.removeEventListener("message", getInitContextParamsFromParent, false);
|
|
@@ -107,6 +107,7 @@ _defineProperty(Constants, "PopoutCacheSuffix", "popout");
|
|
|
107
107
|
_defineProperty(Constants, "LWICheckOnVisibilityTimeout", 3 * 60 * 1000);
|
|
108
108
|
// 3 minute
|
|
109
109
|
// Popup mode custom context response event message name
|
|
110
|
+
_defineProperty(Constants, "InitContextParamsRequest", "initContextParamsRequest");
|
|
110
111
|
_defineProperty(Constants, "InitContextParamsResponse", "initContextParamsResponse");
|
|
111
112
|
export const Regex = (_class = class Regex {}, _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);
|
|
112
113
|
export class HtmlIdNames {}
|
|
@@ -408,7 +408,7 @@ const getInitContextParamForPopoutFromOuterScope = async scope => {
|
|
|
408
408
|
};
|
|
409
409
|
window.addEventListener("message", getInitContextParamsFromParent, false);
|
|
410
410
|
scope.postMessage({
|
|
411
|
-
messageName: Constants.
|
|
411
|
+
messageName: Constants.InitContextParamsRequest
|
|
412
412
|
}, "*");
|
|
413
413
|
await waitPromise;
|
|
414
414
|
window.removeEventListener("message", getInitContextParamsFromParent, false);
|
|
@@ -84,6 +84,7 @@ export declare class Constants {
|
|
|
84
84
|
static readonly SessionCacheSuffix = "session";
|
|
85
85
|
static readonly PopoutCacheSuffix = "popout";
|
|
86
86
|
static readonly LWICheckOnVisibilityTimeout: number;
|
|
87
|
+
static readonly InitContextParamsRequest = "initContextParamsRequest";
|
|
87
88
|
static readonly InitContextParamsResponse = "initContextParamsResponse";
|
|
88
89
|
}
|
|
89
90
|
export declare const Regex: {
|