@ada-support/embed2 1.6.50 → 1.6.53
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 +17 -5
- package/package.json +1 -6
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.6.
|
|
13263
|
+
release: "1.6.53-508e85e",
|
|
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://${window.location.hostname}:9001`;
|
|
13834
13834
|
}
|
|
13835
|
-
return `${host}/embed/${frameName}/${"
|
|
13835
|
+
return `${host}/embed/${frameName}/${"508e85e"}/index.html`;
|
|
13836
13836
|
}
|
|
13837
13837
|
function constructQueryString(query) {
|
|
13838
13838
|
return Object.keys(query).map(key => {
|
|
@@ -15303,9 +15303,9 @@ async function log(message, extra, options) {
|
|
|
15303
15303
|
service: "embed",
|
|
15304
15304
|
env: "production",
|
|
15305
15305
|
embedVersion: 2,
|
|
15306
|
-
version: "1.6.
|
|
15306
|
+
version: "1.6.53",
|
|
15307
15307
|
isNpm: true,
|
|
15308
|
-
commitHash: "
|
|
15308
|
+
commitHash: "508e85e"
|
|
15309
15309
|
}))
|
|
15310
15310
|
});
|
|
15311
15311
|
}
|
|
@@ -15831,7 +15831,7 @@ class ChatFrame extends d {
|
|
|
15831
15831
|
const hostPageUrlParams = new URL(window.location.href).searchParams;
|
|
15832
15832
|
const smsToken = hostPageUrlParams.get("adaSMSToken");
|
|
15833
15833
|
const queryParams = {
|
|
15834
|
-
embedVersion: "
|
|
15834
|
+
embedVersion: "508e85e".slice(0, 7),
|
|
15835
15835
|
greeting,
|
|
15836
15836
|
language,
|
|
15837
15837
|
skipGreeting,
|
|
@@ -16424,6 +16424,7 @@ class ChatFrame extends d {
|
|
|
16424
16424
|
title: iFrameName,
|
|
16425
16425
|
className: iFrameName,
|
|
16426
16426
|
"aria-expanded": isDrawerOpen,
|
|
16427
|
+
"aria-modal": isDrawerOpen,
|
|
16427
16428
|
"aria-roledescription": roleDescription(),
|
|
16428
16429
|
allowTransparency: true,
|
|
16429
16430
|
allowFullScreen: true,
|
|
@@ -16682,6 +16683,7 @@ function Container_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
|
16682
16683
|
|
|
16683
16684
|
|
|
16684
16685
|
|
|
16686
|
+
|
|
16685
16687
|
|
|
16686
16688
|
|
|
16687
16689
|
class Container extends d {
|
|
@@ -17039,6 +17041,16 @@ class Container extends d {
|
|
|
17039
17041
|
if (campaignToTrigger) {
|
|
17040
17042
|
if (useDelay) {
|
|
17041
17043
|
setTimeout(() => {
|
|
17044
|
+
const {
|
|
17045
|
+
trigger_conditions: triggerConditions = []
|
|
17046
|
+
} = campaignToTrigger;
|
|
17047
|
+
|
|
17048
|
+
// Make sure trigger conditions are still met after delay
|
|
17049
|
+
for (let i = 0; i < triggerConditions.length; i += 1) {
|
|
17050
|
+
if (!evalTriggerCondition(triggerConditions[i])) {
|
|
17051
|
+
return;
|
|
17052
|
+
}
|
|
17053
|
+
}
|
|
17042
17054
|
this.triggerCampaign({
|
|
17043
17055
|
campaignKey: campaignToTrigger.campaign_key
|
|
17044
17056
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ada-support/embed2",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.53",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/npm-entry",
|
|
6
6
|
"typings": "dist/npm-entry/index-npm.d.ts",
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
"test": "jest --detectOpenHandles",
|
|
17
17
|
"check-types": "./node_modules/typescript/bin/tsc --project ./tsconfig.json --noEmit --strict false",
|
|
18
18
|
"check-types-strict": "./node_modules/typescript/bin/tsc --project ./tsconfig.json --noEmit",
|
|
19
|
-
"tc": "export $(cat .env | xargs) && testcafe",
|
|
20
19
|
"test:watch": "jest --watch",
|
|
21
20
|
"start": "NODE_ENV=development TS_NODE_PROJECT=wp.tsconfig.json run-p start:example-page start:frames",
|
|
22
21
|
"start:e2e-test": "run-p start:e2e-test-page start:frames",
|
|
@@ -24,13 +23,11 @@
|
|
|
24
23
|
"start:e2e-test-page": "CONTENT_BASE=test/e2e webpack serve --config webpack.dev-host-page.ts --hot",
|
|
25
24
|
"start:frames": "webpack serve --config webpack.dev.ts --hot",
|
|
26
25
|
"start:cy-test-page": "CONTENT_BASE=test/cypress NODE_ENV=development TS_NODE_PROJECT=wp.tsconfig.json webpack serve --config webpack.dev-host-page.ts",
|
|
27
|
-
"start:tc-test-page": "CONTENT_BASE=test/testcafe webpack serve --config webpack.dev-host-page.ts",
|
|
28
26
|
"cypress": "cypress run",
|
|
29
27
|
"cypress:open": "cypress open",
|
|
30
28
|
"ci-cy-start": "NODE_ENV=development TS_NODE_PROJECT=wp.tsconfig.json E2E_TEST_ENV=true run-p start:cy-test-page start:frames",
|
|
31
29
|
"ci-tc-start": "E2E_TEST_ENV=true run-p start:tc-test-page start:frames",
|
|
32
30
|
"ci-cypress": "TS_NODE_PROJECT=wp.tsconfig.json start-server-and-test ci-cy-start http-get://localhost:9001 cypress",
|
|
33
|
-
"ci-testcafe": "TS_NODE_PROJECT=wp.tsconfig.json start-server-and-test ci-tc-start http-get://localhost:9001 tc",
|
|
34
31
|
"bundle-report-entry": "DATADOG_TOKEN=test BUNDLE_ANALYSER=true yarn build && webpack-bundle-analyzer --port 4200 dist/stats.json dist",
|
|
35
32
|
"bundle-report-button": "webpack-bundle-analyzer --port 4201 dist/embed/button/local/stats.json dist/embed/button",
|
|
36
33
|
"bundle-report-mask": "webpack-bundle-analyzer --port 4203 dist/embed/drawer-mask/local/stats.json dist/embed/drawer-mask/local",
|
|
@@ -75,8 +72,6 @@
|
|
|
75
72
|
"npm-run-all": "^4.1.5",
|
|
76
73
|
"prettier": "2.7.1",
|
|
77
74
|
"start-server-and-test": "^1.14.0",
|
|
78
|
-
"testcafe": "^1.18.4",
|
|
79
|
-
"testcafe-browser-provider-lambdatest": "^2.0.18",
|
|
80
75
|
"ts-node": "^10.2.1",
|
|
81
76
|
"tsconfig-paths": "^3.11.0",
|
|
82
77
|
"webpack-bundle-analyzer": "^4.5.0",
|