@ada-support/embed2 1.2.4 → 1.2.7
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 +16 -11
- package/package.json +3 -3
package/dist/npm-entry/index.js
CHANGED
|
@@ -15635,7 +15635,7 @@ const client = new error_tracker_BrowserClient({
|
|
|
15635
15635
|
},
|
|
15636
15636
|
|
|
15637
15637
|
environment: "production",
|
|
15638
|
-
release: "1.2.
|
|
15638
|
+
release: "1.2.7-894517b",
|
|
15639
15639
|
sampleRate: 0.25,
|
|
15640
15640
|
autoSessionTracking: false,
|
|
15641
15641
|
// Integrations don't seem to work with Sentry: https://github.com/getsentry/sentry-javascript/issues/2541
|
|
@@ -16249,7 +16249,7 @@ function getEmbedURL(_ref) {
|
|
|
16249
16249
|
host = "http://".concat(window.location.hostname, ":9001");
|
|
16250
16250
|
}
|
|
16251
16251
|
|
|
16252
|
-
return "".concat(host, "/embed/").concat(frameName, "/").concat("
|
|
16252
|
+
return "".concat(host, "/embed/").concat(frameName, "/").concat("894517b", "/index.html");
|
|
16253
16253
|
}
|
|
16254
16254
|
/**
|
|
16255
16255
|
* Generate the Chat / API URL
|
|
@@ -17193,11 +17193,16 @@ function triggerCampaignImpl(_ref) {
|
|
|
17193
17193
|
const body = campaign.message_text[language];
|
|
17194
17194
|
const duration = campaign.message_duration;
|
|
17195
17195
|
const responseId = campaign.follow_up_response_id;
|
|
17196
|
-
|
|
17197
|
-
|
|
17198
|
-
|
|
17199
|
-
|
|
17200
|
-
|
|
17196
|
+
|
|
17197
|
+
if (body) {
|
|
17198
|
+
localChannel === null || localChannel === void 0 ? void 0 : localChannel.postMessage(CREATE_PROACTIVE, {
|
|
17199
|
+
body,
|
|
17200
|
+
duration,
|
|
17201
|
+
responseId
|
|
17202
|
+
});
|
|
17203
|
+
} else {
|
|
17204
|
+
warn("No translation for this campaign (campaign_key: ".concat(campaign.campaign_key, ") is defined for the language: ").concat(language));
|
|
17205
|
+
}
|
|
17201
17206
|
} else {
|
|
17202
17207
|
const url = getURL({
|
|
17203
17208
|
name: "api",
|
|
@@ -17805,9 +17810,9 @@ async function log(message, extra, options) {
|
|
|
17805
17810
|
service: "embed",
|
|
17806
17811
|
env: "production",
|
|
17807
17812
|
embedVersion: 2,
|
|
17808
|
-
version: "1.2.
|
|
17813
|
+
version: "1.2.7",
|
|
17809
17814
|
isNpm: true,
|
|
17810
|
-
commitHash: "
|
|
17815
|
+
commitHash: "894517b"
|
|
17811
17816
|
}))
|
|
17812
17817
|
});
|
|
17813
17818
|
}
|
|
@@ -18234,7 +18239,7 @@ class ChatFrame extends d {
|
|
|
18234
18239
|
const hostPageUrlParams = new (url_default())(window.location.href).searchParams;
|
|
18235
18240
|
const smsToken = hostPageUrlParams.get("adaSMSToken");
|
|
18236
18241
|
const queryParams = {
|
|
18237
|
-
embedVersion: "
|
|
18242
|
+
embedVersion: "894517b".slice(0, 7),
|
|
18238
18243
|
greeting,
|
|
18239
18244
|
language,
|
|
18240
18245
|
skipGreeting,
|
|
@@ -20378,7 +20383,7 @@ class Embed {
|
|
|
20378
20383
|
|
|
20379
20384
|
}
|
|
20380
20385
|
|
|
20381
|
-
_defineProperty(Embed, "embed2Version", "
|
|
20386
|
+
_defineProperty(Embed, "embed2Version", "894517b");
|
|
20382
20387
|
;// CONCATENATED MODULE: ./src/common/helpers/startup.ts
|
|
20383
20388
|
|
|
20384
20389
|
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ada-support/embed2",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.7",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/npm-entry",
|
|
6
|
-
"typings": "dist/npm-entry/index.d.ts",
|
|
6
|
+
"typings": "dist/npm-entry/index-npm.d.ts",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=16"
|
|
9
9
|
},
|
|
@@ -45,7 +45,6 @@
|
|
|
45
45
|
"author": "",
|
|
46
46
|
"license": "ISC",
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@ada-support/embed-types": "^1.1.0",
|
|
49
48
|
"@ada-support/eslint-config-ada": "^1.2.1",
|
|
50
49
|
"@testing-library/preact": "^2.0.1",
|
|
51
50
|
"@types/enzyme": "^3.10.11",
|
|
@@ -83,6 +82,7 @@
|
|
|
83
82
|
"webpack-dev-server": "^4.3.1"
|
|
84
83
|
},
|
|
85
84
|
"dependencies": {
|
|
85
|
+
"@ada-support/embed-types": "^1.1.1",
|
|
86
86
|
"@babel/core": "^7.16.12",
|
|
87
87
|
"@babel/plugin-proposal-class-properties": "^7.16.7",
|
|
88
88
|
"@babel/plugin-proposal-numeric-separator": "^7.16.7",
|