@ada-support/embed2 1.1.9 → 1.1.12

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.
@@ -49,6 +49,7 @@ export declare class ChatFrame extends Component<ChatFrameProps, ChatFrameState>
49
49
  documentBodyRight: string;
50
50
  channel?: FrameChannel;
51
51
  chatRenderTimeout?: number;
52
+ url: string;
52
53
  state: ChatFrameState;
53
54
  componentDidMount(): void;
54
55
  componentDidUpdate(prevProps: ChatFrameProps): void;
@@ -8798,7 +8798,7 @@ var client = new error_tracker_BrowserClient({
8798
8798
  return event;
8799
8799
  },
8800
8800
  environment: "production",
8801
- release: "1.1.9-c54a4e9",
8801
+ release: "1.1.12-32b7abd",
8802
8802
  sampleRate: 0.25,
8803
8803
  autoSessionTracking: false,
8804
8804
  // Integrations don't seem to work with Sentry: https://github.com/getsentry/sentry-javascript/issues/2541
@@ -9500,7 +9500,7 @@ function getEmbedURL(_ref) {
9500
9500
  polyfillVersionString = "legacy";
9501
9501
  }
9502
9502
 
9503
- return concat_default()(_context5 = concat_default()(_context6 = concat_default()(_context7 = "".concat(host, "/embed/")).call(_context7, polyfillVersionString, "/")).call(_context6, frameName, "/")).call(_context5, "c54a4e9", "/index.html");
9503
+ return concat_default()(_context5 = concat_default()(_context6 = concat_default()(_context7 = "".concat(host, "/embed/")).call(_context7, polyfillVersionString, "/")).call(_context6, frameName, "/")).call(_context5, "32b7abd", "/index.html");
9504
9504
  }
9505
9505
  /**
9506
9506
  * Generate the Chat / API URL
@@ -11642,6 +11642,8 @@ var ChatFrame = /*#__PURE__*/function (_Component) {
11642
11642
 
11643
11643
  (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "chatRenderTimeout", void 0);
11644
11644
 
11645
+ (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "url", _this.getIframeSrc());
11646
+
11645
11647
  (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "state", {
11646
11648
  isMounted: false,
11647
11649
  closeTransitionTime: 200
@@ -11733,7 +11735,7 @@ var ChatFrame = /*#__PURE__*/function (_Component) {
11733
11735
  cluster: cluster,
11734
11736
  domain: domain,
11735
11737
  qp: {
11736
- embedVersion: slice_default()("c54a4e9").call("c54a4e9", 0, 7),
11738
+ embedVersion: slice_default()("32b7abd").call("32b7abd", 0, 7),
11737
11739
  greeting: greeting,
11738
11740
  language: language,
11739
11741
  skipGreeting: skipGreeting,
@@ -12353,7 +12355,7 @@ var ChatFrame = /*#__PURE__*/function (_Component) {
12353
12355
  };
12354
12356
 
12355
12357
  return v("iframe", {
12356
- src: this.getIframeSrc(),
12358
+ src: this.url,
12357
12359
  scrolling: "no",
12358
12360
  style: this.chooseStyles,
12359
12361
  frameBorder: "0",
@@ -14402,7 +14404,7 @@ window.__AdaEmbedConstructor = Embed;
14402
14404
  /* harmony export */ });
14403
14405
  var isModern = new RegExp("((CPU[ +]OS|iPhone[ +]OS|CPU[ +]iPhone|CPU IPhone OS)[ +]+(15|(1[6-9]|[2-9]\\d|\\d{3,}))[_.]\\d+(?:[_.]\\d+)?)|((Chromium|Chrome)\\/(100|(10[1-9]|1[1-9]\\d|[2-9]\\d\\d|\\d{4,}))\\.\\d+(?:\\.\\d+)?)|(Version\\/(15|(1[6-9]|[2-9]\\d|\\d{3,}))\\.\\d+(?:\\.\\d+)? Safari\\/)|(Firefox\\/(99|([1-9]\\d\\d|\\d{4,}))\\.\\d+\\.\\d+)|(Firefox\\/(99|([1-9]\\d\\d|\\d{4,}))\\.\\d+(pre|[ab]\\d+[a-z]*)?)").test(navigator.userAgent);
14404
14406
  var isProduction = "production" === "production";
14405
- var embed2Version = "c54a4e9";
14407
+ var embed2Version = "32b7abd";
14406
14408
 
14407
14409
  /***/ }),
14408
14410
 
@@ -14747,9 +14749,9 @@ function _log() {
14747
14749
  service: "embed",
14748
14750
  env: "production",
14749
14751
  embedVersion: 2,
14750
- version: "1.1.9",
14752
+ version: "1.1.12",
14751
14753
  isNpm: true,
14752
- commitHash: "c54a4e9"
14754
+ commitHash: "32b7abd"
14753
14755
  }))
14754
14756
  });
14755
14757
 
@@ -25690,7 +25692,7 @@ function _loadClientChunk() {
25690
25692
  polyfillVersionString = "legacy";
25691
25693
  }
25692
25694
 
25693
- clientScriptSource = concat_default()(_context17 = concat_default()(_context18 = "".concat(host, "/embed/")).call(_context18, polyfillVersionString, "/client/")).call(_context17, "c54a4e9", "/index.js");
25695
+ clientScriptSource = concat_default()(_context17 = concat_default()(_context18 = "".concat(host, "/embed/")).call(_context18, polyfillVersionString, "/client/")).call(_context17, "32b7abd", "/index.js");
25694
25696
  } // `window.__AdaEmbedConstructor` gets created in the "client" bundle
25695
25697
 
25696
25698
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ada-support/embed2",
3
- "version": "1.1.9",
3
+ "version": "1.1.12",
4
4
  "description": "",
5
5
  "main": "dist/npm-entry",
6
6
  "typings": "dist/npm-entry/index.d.ts",