@ada-support/embed2 1.1.38 → 1.1.41

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ada-support/embed2",
3
- "version": "1.1.38",
3
+ "version": "1.1.41",
4
4
  "description": "",
5
5
  "main": "dist/npm-entry",
6
6
  "typings": "dist/npm-entry/index.d.ts",
@@ -8,12 +8,10 @@
8
8
  "node": ">=16"
9
9
  },
10
10
  "scripts": {
11
- "build": "yarn build:legacy && yarn build:modern",
12
- "build:legacy": "TS_NODE_PROJECT=wp.tsconfig.json NODE_ENV=production BROWSERSLIST_ENV=legacy npx webpack --config webpack.prod.ts",
13
- "build:modern": "TS_NODE_PROJECT=wp.tsconfig.json NODE_ENV=production BROWSERSLIST_ENV=modern npx webpack --config webpack.prod.ts",
11
+ "build": "TS_NODE_PROJECT=wp.tsconfig.json NODE_ENV=production npx webpack --config webpack.prod.ts",
14
12
  "build:npm-types": "tsc --project tsconfig.npm.json --declaration --outDir dist/npm-entry --emitDeclarationOnly --allowJs false --checkJs false",
15
13
  "build:npm": "./npm-build.sh",
16
- "lint": "tsc --noEmit --strict false && ./node_modules/.bin/eslint --report-unused-disable-directives --ext .js,.jsx,.ts,.tsx . --max-warnings 25",
14
+ "lint": "tsc --noEmit --strict false && ./node_modules/.bin/eslint --report-unused-disable-directives --ext .js,.jsx,.ts,.tsx . --max-warnings 24",
17
15
  "lint:fix": "yarn lint --fix",
18
16
  "test": "jest",
19
17
  "check-types": "./node_modules/typescript/bin/tsc --project ./tsconfig.json --noEmit --strict false",
@@ -25,27 +23,20 @@
25
23
  "start:example-page": "CONTENT_BASE=example webpack serve --config webpack.dev-host-page.ts --hot",
26
24
  "start:e2e-test-page": "CONTENT_BASE=test/e2e webpack serve --config webpack.dev-host-page.ts --hot",
27
25
  "start:frames": "webpack serve --config webpack.dev.ts --hot",
28
- "start:cy-test-page": "CONTENT_BASE=test/cypress webpack serve --config webpack.dev-host-page.ts",
26
+ "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",
29
27
  "start:tc-test-page": "CONTENT_BASE=test/testcafe webpack serve --config webpack.dev-host-page.ts",
30
28
  "cypress": "cypress run",
31
29
  "cypress:open": "cypress open",
32
- "ci-cy-start": "E2E_TEST_ENV=true run-p start:cy-test-page start:frames",
30
+ "ci-cy-start": "NODE_ENV=development TS_NODE_PROJECT=wp.tsconfig.json E2E_TEST_ENV=true run-p start:cy-test-page start:frames",
33
31
  "ci-tc-start": "E2E_TEST_ENV=true run-p start:tc-test-page start:frames",
34
32
  "ci-cypress": "TS_NODE_PROJECT=wp.tsconfig.json start-server-and-test ci-cy-start http-get://localhost:9001 cypress",
35
33
  "ci-testcafe": "TS_NODE_PROJECT=wp.tsconfig.json start-server-and-test ci-tc-start http-get://localhost:9001 tc",
36
- "bundle-report-entry": "BUNDLE_ANALYSER=true yarn build && webpack-bundle-analyzer --port 4200 dist/stats.json dist",
37
- "bundle-report-button:legacy": "webpack-bundle-analyzer --port 4201 dist/embed/legacy/button/local/stats.json dist/embed/legacy/local/button",
38
- "bundle-report-client:legacy": "webpack-bundle-analyzer --port 4202 dist/embed/legacy/client/local/stats.json dist/embed/legacy/client/local",
39
- "bundle-report-mask:legacy": "webpack-bundle-analyzer --port 4203 dist/embed/legacy/drawer-mask/local/stats.json dist/embed/legacy/drawer-mask/local",
40
- "bundle-report-intro:legacy": "webpack-bundle-analyzer --port 4204 dist/embed/legacy/intro/local/stats.json dist/embed/legacy/intro/local",
41
- "bundle-report-x-storage:legacy": "webpack-bundle-analyzer --port 4205 dist/embed/legacy/x-storage/local/stats.json dist/embed/legacy/x-storage/local",
42
- "bundle-report:legacy": "BUNDLE_ANALYSER=true yarn build && run-p bundle-report-entry bundle-report-button:legacy bundle-report-client:legacy bundle-report-mask:legacy bundle-report-intro:legacy bundle-report-x-storage:legacy",
43
- "bundle-report-button:modern": "webpack-bundle-analyzer --port 4201 dist/embed/modern/button/stats.json dist/embed/modern/button",
44
- "bundle-report-client:modern": "webpack-bundle-analyzer --port 4202 dist/embed/modern/client/stats.json dist/embed/modern/client",
45
- "bundle-report-mask:modern": "webpack-bundle-analyzer --port 4203 dist/embed/modern/drawer-mask/local/stats.json dist/embed/modern/drawer-mask/local",
46
- "bundle-report-intro:modern": "webpack-bundle-analyzer --port 4204 dist/embed/modern/intro/local/stats.json dist/embed/modern/intro/local",
47
- "bundle-report-x-storage:modern": "webpack-bundle-analyzer --port 4205 dist/embed/modern/x-storage/local/stats.json dist/embed/modern/x-storage/local",
48
- "bundle-report:modern": "BUNDLE_ANALYSER=true yarn build && run-p bundle-report-entry bundle-report-button:modern bundle-report-client:modern bundle-report-mask:modern bundle-report-intro:modern bundle-report-x-storage:modern",
34
+ "bundle-report-entry": "DATADOG_TOKEN=test BUNDLE_ANALYSER=true yarn build && webpack-bundle-analyzer --port 4200 dist/stats.json dist",
35
+ "bundle-report-button": "webpack-bundle-analyzer --port 4201 dist/embed/button/local/stats.json dist/embed/button",
36
+ "bundle-report-mask": "webpack-bundle-analyzer --port 4203 dist/embed/drawer-mask/local/stats.json dist/embed/drawer-mask/local",
37
+ "bundle-report-intro": "webpack-bundle-analyzer --port 4204 dist/embed/intro/local/stats.json dist/embed/intro/local",
38
+ "bundle-report-x-storage": "webpack-bundle-analyzer --port 4205 dist/embed/x-storage/local/stats.json dist/embed/x-storage/local",
39
+ "bundle-report": "DATADOG_TOKEN=test BUNDLE_ANALYSER=true yarn build && run-p bundle-report-entry bundle-report-button bundle-report-mask bundle-report-intro bundle-report-x-storage",
49
40
  "prepare": "husky install",
50
41
  "check-package-version": "./check-package-version.sh",
51
42
  "audit-dependencies": "yarn audit --groups dependencies"
@@ -56,6 +47,7 @@
56
47
  "devDependencies": {
57
48
  "@ada-support/embed-types": "^1.0.4",
58
49
  "@ada-support/eslint-config-ada": "^1.2.1",
50
+ "@testing-library/preact": "^2.0.1",
59
51
  "@types/enzyme": "^3.10.11",
60
52
  "@types/jest": "^27.0.2",
61
53
  "@types/json-stable-stringify": "^1.0.33",
@@ -70,7 +62,7 @@
70
62
  "cypress": "^9.6.1",
71
63
  "depcheck": "^1.4.3",
72
64
  "enzyme": "^3.11.0",
73
- "enzyme-adapter-preact-pure": "^2.2.0",
65
+ "enzyme-adapter-preact-pure": "^4.0.1",
74
66
  "eslint": "^8.8.0",
75
67
  "eslint-plugin-chai-friendly": "^0.7.2",
76
68
  "eslint-plugin-compat": "^4.0.2",
@@ -80,6 +72,7 @@
80
72
  "jest": "^27.5.1",
81
73
  "jest-localstorage-mock": "^2.4.0",
82
74
  "lint-staged": "^11.2.3",
75
+ "mock-xmlhttprequest": "^7.0.4",
83
76
  "npm-run-all": "^4.1.5",
84
77
  "start-server-and-test": "^1.14.0",
85
78
  "testcafe": "^1.18.4",
@@ -103,7 +96,6 @@
103
96
  "@sentry/browser": "^6.17.1",
104
97
  "babel-loader": "^8.2.3",
105
98
  "babel-preset-preact": "^2.0.0",
106
- "browserslist-useragent-regexp": "^3.0.2",
107
99
  "dotenv": "^8.2.0",
108
100
  "focus-visible": "^5.2.0",
109
101
  "html-webpack-plugin": "^5.5.0",