@ada-support/embed2 1.9.1 → 1.9.3
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 +6 -9
- package/package.json +2 -2
package/dist/npm-entry/index.js
CHANGED
|
@@ -15919,7 +15919,7 @@ const client = new BrowserClient({
|
|
|
15919
15919
|
return event;
|
|
15920
15920
|
},
|
|
15921
15921
|
environment: "production",
|
|
15922
|
-
release: "1.9.
|
|
15922
|
+
release: "1.9.3-1b6e8d8",
|
|
15923
15923
|
sampleRate: 0.25,
|
|
15924
15924
|
autoSessionTracking: false,
|
|
15925
15925
|
// Integrations don't seem to work with Sentry: https://github.com/getsentry/sentry-javascript/issues/2541
|
|
@@ -16496,7 +16496,7 @@ function getEmbedURL(_ref) {
|
|
|
16496
16496
|
} else {
|
|
16497
16497
|
host = `http://${handle}.localhost:9001`;
|
|
16498
16498
|
}
|
|
16499
|
-
return `${host}/embed/${frameName}/${"
|
|
16499
|
+
return `${host}/embed/${frameName}/${"1b6e8d8"}/index.html`;
|
|
16500
16500
|
}
|
|
16501
16501
|
function constructQueryString(query) {
|
|
16502
16502
|
return Object.keys(query).map(key => {
|
|
@@ -17676,9 +17676,9 @@ async function log(message, extra, options) {
|
|
|
17676
17676
|
service: "embed",
|
|
17677
17677
|
env: "production",
|
|
17678
17678
|
embedVersion: 2,
|
|
17679
|
-
version: "1.9.
|
|
17679
|
+
version: "1.9.3",
|
|
17680
17680
|
isNpm: true,
|
|
17681
|
-
commitHash: "
|
|
17681
|
+
commitHash: "1b6e8d8"
|
|
17682
17682
|
}))
|
|
17683
17683
|
});
|
|
17684
17684
|
}
|
|
@@ -18852,7 +18852,7 @@ class ChatFrame extends d {
|
|
|
18852
18852
|
const hostPageUrlParams = new URL(window.location.href).searchParams;
|
|
18853
18853
|
const smsToken = hostPageUrlParams.get("adaSMSToken");
|
|
18854
18854
|
const queryParams = {
|
|
18855
|
-
embedVersion: "
|
|
18855
|
+
embedVersion: "1b6e8d8".slice(0, 7),
|
|
18856
18856
|
greeting,
|
|
18857
18857
|
language,
|
|
18858
18858
|
skipGreeting,
|
|
@@ -19431,8 +19431,7 @@ class ChatFrame extends d {
|
|
|
19431
19431
|
}
|
|
19432
19432
|
render() {
|
|
19433
19433
|
const {
|
|
19434
|
-
client
|
|
19435
|
-
isDrawerOpen
|
|
19434
|
+
client
|
|
19436
19435
|
} = this.props;
|
|
19437
19436
|
const iFrameName = `ada-chat-frame`;
|
|
19438
19437
|
const sandboxParams = "allow-downloads allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-top-navigation allow-forms allow-modals";
|
|
@@ -19452,9 +19451,7 @@ class ChatFrame extends d {
|
|
|
19452
19451
|
name: iFrameName,
|
|
19453
19452
|
title: iFrameName,
|
|
19454
19453
|
className: iFrameName,
|
|
19455
|
-
"aria-expanded": isDrawerOpen,
|
|
19456
19454
|
"aria-roledescription": roleDescription(),
|
|
19457
|
-
"aria-modal": true,
|
|
19458
19455
|
allowTransparency: true,
|
|
19459
19456
|
allowFullScreen: true,
|
|
19460
19457
|
onLoad: this.frameLoaded.bind(this),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ada-support/embed2",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/npm-entry",
|
|
6
6
|
"typings": "dist/npm-entry/index-npm.d.ts",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"webpack-merge": "^5.8.0"
|
|
97
97
|
},
|
|
98
98
|
"dependencies": {
|
|
99
|
-
"@ada-support/embed-types": "^1.9.
|
|
99
|
+
"@ada-support/embed-types": "^1.9.2",
|
|
100
100
|
"@ada-support/web-storage": "^1.2.9",
|
|
101
101
|
"@babel/runtime-corejs3": "^7.26.10",
|
|
102
102
|
"@sentry/browser": "^8.33.0",
|