@microsoft/omnichannel-chat-widget 1.1.0 → 1.1.1-main.d246ee0

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.InitContextParamsResponse
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.InitContextParamsResponse
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: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/omnichannel-chat-widget",
3
- "version": "1.1.0",
3
+ "version": "1.1.1-main.d246ee0",
4
4
  "description": "Microsoft Omnichannel Chat Widget",
5
5
  "main": "lib/cjs/index.js",
6
6
  "types": "lib/types/index.d.ts",
@@ -75,7 +75,7 @@
75
75
  },
76
76
  "dependencies": {
77
77
  "@microsoft/omnichannel-chat-components": "^1.0.3",
78
- "@microsoft/omnichannel-chat-sdk": "1.4.2",
78
+ "@microsoft/omnichannel-chat-sdk": "1.4.3",
79
79
  "abort-controller-es5": "^2.0.1",
80
80
  "dompurify": "^2.3.4",
81
81
  "markdown-it": "^12.3.2",
@@ -102,7 +102,7 @@
102
102
  "build-sample": "yarn build && webpack --config ./webpack.config.cjs",
103
103
  "build-sample:dev": "yarn build && webpack --config ./webpack.dev.config.cjs",
104
104
  "test:visual:build": "yarn build-storybook && yarn test:visual",
105
- "lint": "yarn eslint ."
105
+ "lint": "yarn eslint . --max-warnings=0"
106
106
  },
107
107
  "resolutions": {
108
108
  "**/url-parse": "1.5.9",