@ada-support/embed2 1.1.0 → 1.1.1
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/dist/npm-entry/index.js +15 -9
- package/package.json +1 -1
package/dist/npm-entry/index.js
CHANGED
|
@@ -8788,7 +8788,7 @@ var client = new error_tracker_BrowserClient({
|
|
|
8788
8788
|
return event;
|
|
8789
8789
|
},
|
|
8790
8790
|
environment: "production",
|
|
8791
|
-
release: "1.1.
|
|
8791
|
+
release: "1.1.1-cce9ad0",
|
|
8792
8792
|
sampleRate: 0.25,
|
|
8793
8793
|
autoSessionTracking: false,
|
|
8794
8794
|
// Integrations don't seem to work with Sentry: https://github.com/getsentry/sentry-javascript/issues/2541
|
|
@@ -9490,7 +9490,7 @@ function getEmbedURL(_ref) {
|
|
|
9490
9490
|
polyfillVersionString = "legacy";
|
|
9491
9491
|
}
|
|
9492
9492
|
|
|
9493
|
-
return concat_default()(_context5 = concat_default()(_context6 = concat_default()(_context7 = "".concat(host, "/embed/")).call(_context7, polyfillVersionString, "/")).call(_context6, frameName, "/")).call(_context5, "
|
|
9493
|
+
return concat_default()(_context5 = concat_default()(_context6 = concat_default()(_context7 = "".concat(host, "/embed/")).call(_context7, polyfillVersionString, "/")).call(_context6, frameName, "/")).call(_context5, "cce9ad0", "/index.html");
|
|
9494
9494
|
}
|
|
9495
9495
|
/**
|
|
9496
9496
|
* Generate the Chat / API URL
|
|
@@ -12299,7 +12299,8 @@ var ChatFrame = /*#__PURE__*/function (_Component) {
|
|
|
12299
12299
|
|
|
12300
12300
|
var _this$props11 = this.props,
|
|
12301
12301
|
handle = _this$props11.handle,
|
|
12302
|
-
adaSettings = _this$props11.adaSettings;
|
|
12302
|
+
adaSettings = _this$props11.adaSettings; // SUP-1141- TODO: Remove chatFrameTimeoutCallback
|
|
12303
|
+
|
|
12303
12304
|
var chatFrameTimeoutCallback = adaSettings.chatFrameTimeoutCallback;
|
|
12304
12305
|
this.chatRenderTimeout = window.setTimeout(function () {
|
|
12305
12306
|
var _this6$channel;
|
|
@@ -12309,8 +12310,13 @@ var ChatFrame = /*#__PURE__*/function (_Component) {
|
|
|
12309
12310
|
embedSettings: adaSettings
|
|
12310
12311
|
});
|
|
12311
12312
|
|
|
12312
|
-
if (
|
|
12313
|
-
chatFrameTimeoutCallback
|
|
12313
|
+
if (!((_this6$channel = _this6.channel) !== null && _this6$channel !== void 0 && _this6$channel.isConnected)) {
|
|
12314
|
+
// SUP-1141- TODO: Remove chatFrameTimeoutCallback
|
|
12315
|
+
if (chatFrameTimeoutCallback) {
|
|
12316
|
+
chatFrameTimeoutCallback();
|
|
12317
|
+
}
|
|
12318
|
+
|
|
12319
|
+
publishEvent("ada:chat_frame_timeout", {});
|
|
12314
12320
|
}
|
|
12315
12321
|
}, 5000);
|
|
12316
12322
|
}
|
|
@@ -14374,7 +14380,7 @@ window.__AdaEmbedConstructor = Embed;
|
|
|
14374
14380
|
/* harmony export */ });
|
|
14375
14381
|
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)\\/(99|([1-9]\\d\\d|\\d{4,}))\\.\\d+(?:\\.\\d+)?)|(Version\\/(15|(1[6-9]|[2-9]\\d|\\d{3,}))\\.\\d+(?:\\.\\d+)? Safari\\/)|(Firefox\\/(98|(99|\\d{3,}))\\.\\d+\\.\\d+)|(Firefox\\/(98|(99|\\d{3,}))\\.\\d+(pre|[ab]\\d+[a-z]*)?)").test(navigator.userAgent);
|
|
14376
14382
|
var isProduction = "production" === "production";
|
|
14377
|
-
var embed2Version = "
|
|
14383
|
+
var embed2Version = "cce9ad0";
|
|
14378
14384
|
|
|
14379
14385
|
/***/ }),
|
|
14380
14386
|
|
|
@@ -14720,9 +14726,9 @@ function _log() {
|
|
|
14720
14726
|
service: "embed",
|
|
14721
14727
|
env: "production",
|
|
14722
14728
|
embedVersion: 2,
|
|
14723
|
-
version: "1.1.
|
|
14729
|
+
version: "1.1.1",
|
|
14724
14730
|
isNpm: true,
|
|
14725
|
-
commitHash: "
|
|
14731
|
+
commitHash: "cce9ad0"
|
|
14726
14732
|
}))
|
|
14727
14733
|
});
|
|
14728
14734
|
|
|
@@ -25663,7 +25669,7 @@ function _loadClientChunk() {
|
|
|
25663
25669
|
polyfillVersionString = "legacy";
|
|
25664
25670
|
}
|
|
25665
25671
|
|
|
25666
|
-
clientScriptSource = concat_default()(_context17 = concat_default()(_context18 = "".concat(host, "/embed/")).call(_context18, polyfillVersionString, "/client/")).call(_context17, "
|
|
25672
|
+
clientScriptSource = concat_default()(_context17 = concat_default()(_context18 = "".concat(host, "/embed/")).call(_context18, polyfillVersionString, "/client/")).call(_context17, "cce9ad0", "/index.js");
|
|
25667
25673
|
} // `window.__AdaEmbedConstructor` gets created in the "client" bundle
|
|
25668
25674
|
|
|
25669
25675
|
|