@ada-support/embed2 1.7.15 → 1.7.17
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
CHANGED
|
@@ -13260,7 +13260,7 @@ const client = new error_tracker_BrowserClient({
|
|
|
13260
13260
|
return event;
|
|
13261
13261
|
},
|
|
13262
13262
|
environment: "production",
|
|
13263
|
-
release: "1.7.
|
|
13263
|
+
release: "1.7.17-b090bf3",
|
|
13264
13264
|
sampleRate: 0.25,
|
|
13265
13265
|
autoSessionTracking: false,
|
|
13266
13266
|
// Integrations don't seem to work with Sentry: https://github.com/getsentry/sentry-javascript/issues/2541
|
|
@@ -13832,7 +13832,7 @@ function getEmbedURL(_ref) {
|
|
|
13832
13832
|
} else {
|
|
13833
13833
|
host = `http://${handle}.localhost:9001`;
|
|
13834
13834
|
}
|
|
13835
|
-
return `${host}/embed/${frameName}/${"
|
|
13835
|
+
return `${host}/embed/${frameName}/${"b090bf3"}/index.html`;
|
|
13836
13836
|
}
|
|
13837
13837
|
function constructQueryString(query) {
|
|
13838
13838
|
return Object.keys(query).map(key => {
|
|
@@ -14993,9 +14993,9 @@ async function log(message, extra, options) {
|
|
|
14993
14993
|
service: "embed",
|
|
14994
14994
|
env: "production",
|
|
14995
14995
|
embedVersion: 2,
|
|
14996
|
-
version: "1.7.
|
|
14996
|
+
version: "1.7.17",
|
|
14997
14997
|
isNpm: true,
|
|
14998
|
-
commitHash: "
|
|
14998
|
+
commitHash: "b090bf3"
|
|
14999
14999
|
}))
|
|
15000
15000
|
});
|
|
15001
15001
|
}
|
|
@@ -15451,7 +15451,7 @@ const RTLLanguages = ["ar", "he"];
|
|
|
15451
15451
|
const isRTLLanguage = language => Boolean(language && RTLLanguages.includes(language)) || false;
|
|
15452
15452
|
const isRTL = (client, language) => {
|
|
15453
15453
|
const rtlLanguageBool = isRTLLanguage(language) || isRTLLanguage(getBrowserLanguage());
|
|
15454
|
-
return
|
|
15454
|
+
return rtlLanguageBool || false;
|
|
15455
15455
|
};
|
|
15456
15456
|
;// CONCATENATED MODULE: ./src/common/helpers/getAlignment.ts
|
|
15457
15457
|
|
|
@@ -16033,7 +16033,7 @@ class ChatFrame extends d {
|
|
|
16033
16033
|
const hostPageUrlParams = new URL(window.location.href).searchParams;
|
|
16034
16034
|
const smsToken = hostPageUrlParams.get("adaSMSToken");
|
|
16035
16035
|
const queryParams = {
|
|
16036
|
-
embedVersion: "
|
|
16036
|
+
embedVersion: "b090bf3".slice(0, 7),
|
|
16037
16037
|
greeting,
|
|
16038
16038
|
language,
|
|
16039
16039
|
skipGreeting,
|
|
@@ -17668,7 +17668,7 @@ class Container extends d {
|
|
|
17668
17668
|
try {
|
|
17669
17669
|
await setGlobalState(Container_objectSpread(Container_objectSpread({
|
|
17670
17670
|
client: assignedClient,
|
|
17671
|
-
enabledLanguages:
|
|
17671
|
+
enabledLanguages: ["en"].concat(assignedClient.translated_languages),
|
|
17672
17672
|
initialURL: window.location.href,
|
|
17673
17673
|
isIntroShown: false
|
|
17674
17674
|
}, adaSettingsWithoutFunctions), {}, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ada-support/embed2",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.17",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/npm-entry",
|
|
6
6
|
"typings": "dist/npm-entry/index-npm.d.ts",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"webpack-dev-server": "^4.3.1"
|
|
79
79
|
},
|
|
80
80
|
"dependencies": {
|
|
81
|
-
"@ada-support/embed-types": "^1.
|
|
81
|
+
"@ada-support/embed-types": "^1.7.1",
|
|
82
82
|
"@ada-support/web-storage": "^1.2.6",
|
|
83
83
|
"@babel/core": "^7.23.2",
|
|
84
84
|
"@babel/plugin-proposal-class-properties": "^7.16.7",
|