@saasquatch/squatch-js 2.6.0-9 → 2.6.0

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.
Files changed (40) hide show
  1. package/.github/workflows/size-limit.yml +14 -14
  2. package/.github/workflows/static.yml +89 -89
  3. package/CHANGELOG.md +388 -329
  4. package/LICENSE +20 -20
  5. package/README.md +259 -208
  6. package/babel.config.js +7 -7
  7. package/cucumber.js +45 -45
  8. package/demo/sandbox.ts +124 -124
  9. package/demo/toolbar.tsx +526 -526
  10. package/dist/api/WidgetApi.d.ts +1 -0
  11. package/dist/squatch.esm.js +45 -28
  12. package/dist/squatch.esm.js.map +1 -1
  13. package/dist/squatch.js +45 -28
  14. package/dist/squatch.js.map +1 -1
  15. package/dist/squatch.min.js +1 -1
  16. package/dist/squatch.min.js.br +0 -0
  17. package/dist/squatch.min.js.map +1 -0
  18. package/dist/squatch.modern.js +2 -0
  19. package/dist/squatch.modern.js.map +1 -0
  20. package/dist/stats.html +208 -0
  21. package/dist/utils/decodeJwt.d.ts +1 -0
  22. package/dist/utils/domUtils.d.ts +1 -0
  23. package/dist/utils/loadEvent.d.ts +2 -0
  24. package/dist/widgets/CtaWidget.d.ts +24 -0
  25. package/dist/widgets/IREmbedWidget.d.ts +29 -0
  26. package/dist/widgets/IRPopupWidget.d.ts +32 -0
  27. package/dist/widgets/declarative/DeclarativeEmbedWidget.d.ts +12 -0
  28. package/jest.config.ts +200 -200
  29. package/package.json +123 -123
  30. package/tsconfig.json +23 -23
  31. package/coverage/clover.xml +0 -880
  32. package/coverage/coverage-final.json +0 -21
  33. package/coverage/lcov-report/base.css +0 -224
  34. package/coverage/lcov-report/block-navigation.js +0 -87
  35. package/coverage/lcov-report/favicon.png +0 -0
  36. package/coverage/lcov-report/prettify.css +0 -1
  37. package/coverage/lcov-report/prettify.js +0 -2
  38. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  39. package/coverage/lcov-report/sorter.js +0 -196
  40. package/coverage/lcov.info +0 -1621
package/package.json CHANGED
@@ -1,123 +1,123 @@
1
- {
2
- "name": "@saasquatch/squatch-js",
3
- "version": "2.6.0-9",
4
- "description": "The official Referral SaaSquatch Javascript Web/Browser SDK https://docs.referralsaasquatch.com/developer/squatchjs/",
5
- "license": "MIT",
6
- "author": "ReferralSaaSquatch.com, Inc.",
7
- "types": "dist/squatch.d.ts",
8
- "source": "src/squatch.ts",
9
- "main": "dist/squatch.js",
10
- "module": "dist/squatch.esm.js",
11
- "umd:main": "dist/squatch.min.js",
12
- "browser": "dist/squatch.min.js",
13
- "bugs": {
14
- "url": "https://github.com/saasquatch/squatch-js/issues",
15
- "email": "support@referralsaasquatch.com"
16
- },
17
- "engines": {
18
- "node": ">=12.16.0"
19
- },
20
- "repository": {
21
- "type": "git",
22
- "url": "https://github.com/saasquatch/squatch-js.git"
23
- },
24
- "tsd": {
25
- "directory": "test/tsd"
26
- },
27
- "sideEffects": false,
28
- "scripts": {
29
- "build:es": "microbundle --target node --format cjs,es",
30
- "build:umd": "webpack",
31
- "build": "run-s build:es build:umd build:docs",
32
- "watch": "webpack --watch",
33
- "declaration": "tsc --emitDeclarationOnly",
34
- "test:browser": "cucumber-js",
35
- "test:webkit": "cross-env BROWSER=webkit cucumber-js",
36
- "test:firefox": "cross-env BROWSER=firefox cucumber-js",
37
- "test:types": "tsd",
38
- "test:features": "jest --verbose --coverage",
39
- "test": "run-s test:features test:browser test:webkit test:firefox",
40
- "build:docs": "typedoc",
41
- "deploy": "np --no-cleanup",
42
- "deploy:docs": "surge ./ -d squathjsv2.surge.sh",
43
- "preversion": "run-s build",
44
- "demo": "msw init demo/dist/ --save && run-p static parcel",
45
- "demo:deploy": "run-s parcel:build parcel:deploy",
46
- "static": "serve -l 3333 -s dist",
47
- "parcel": "cd demo && parcel index.html",
48
- "parcel:build": "cd demo && parcel build index.html",
49
- "parcel:deploy": "surge demo/dist -d squathjs-demo.surge.sh"
50
- },
51
- "devDependencies": {
52
- "@babel/core": "^7.14.3",
53
- "@babel/plugin-proposal-class-properties": "^7.13.0",
54
- "@babel/plugin-transform-runtime": "^7.14.3",
55
- "@babel/preset-env": "^7.14.2",
56
- "@babel/preset-typescript": "^7.13.0",
57
- "@babel/register": "^7.13.16",
58
- "@babel/runtime-corejs2": "^7.14.0",
59
- "@happy-dom/jest-environment": "^9.20.3",
60
- "@open-wc/testing-helpers": "^2.3.0",
61
- "@size-limit/preset-small-lib": "^8.2.4",
62
- "@testing-library/dom": "^9.3.1",
63
- "@types/chai": "^4.3.5",
64
- "@types/cucumber": "^6.0.1",
65
- "@types/debug": "4.1.5",
66
- "@types/estree": "^1.0.1",
67
- "@types/express": "^4.17.6",
68
- "@types/inquirer": "^9.0.3",
69
- "@types/jest": "^29.5.2",
70
- "@types/js-cookie": "^2.2.6",
71
- "@types/jsdom-global": "^3.0.2",
72
- "@types/react": "^16.9.35",
73
- "@ungap/url-search-params": "^0.2.0",
74
- "babel-jest": "^29.5.0",
75
- "babel-loader": "^8.2.2",
76
- "base64-url": "^2.3.3",
77
- "chai": "^4.3.7",
78
- "cross-env": "^7.0.2",
79
- "cucumber": "^6.0.5",
80
- "express": "^4.17.1",
81
- "jest": "^29.5.0",
82
- "jest-cucumber": "^3.0.1",
83
- "jest-environment-jsdom": "^29.5.0",
84
- "microbundle": "^0.13.0",
85
- "msw": "^0.36.8",
86
- "np": "^6.2.3",
87
- "npm-run-all": "^4.1.5",
88
- "parcel": "^1.12.3",
89
- "parcel-bundler": "^1.12.4",
90
- "playwright": "^1.33.0-alpha-mar-29-2023",
91
- "react": "^16.13.1",
92
- "react-bootstrap": "^1.0.1",
93
- "react-dom": "^16.13.1",
94
- "react-url-query": "^1.5.0",
95
- "serve": "^11.3.0",
96
- "size-limit": "^8.2.4",
97
- "ts-jest": "^29.1.1",
98
- "ts-loader": "^7.0.4",
99
- "ts-node": "^8.10.2",
100
- "tsd": "^0.13.1",
101
- "typedoc": "^0.24.8",
102
- "typescript": "^5.1.6",
103
- "webpack": "^5.88.0",
104
- "webpack-bundle-analyzer": "^4.9.0",
105
- "webpack-cli": "^5.1.4",
106
- "webpack-visualizer-plugin": "^0.1.11"
107
- },
108
- "prettier": {},
109
- "dependencies": {
110
- "debug": "^3.2.6",
111
- "js-cookie": "^3.0.5"
112
- },
113
- "browserslist": "> 0.25%, not dead",
114
- "msw": {
115
- "workerDirectory": "demo/dist"
116
- },
117
- "size-limit": [
118
- {
119
- "path": "dist/squatch.js",
120
- "limit": "12 kB"
121
- }
122
- ]
123
- }
1
+ {
2
+ "name": "@saasquatch/squatch-js",
3
+ "version": "2.6.0",
4
+ "description": "The official Referral SaaSquatch Javascript Web/Browser SDK https://docs.referralsaasquatch.com/developer/squatchjs/",
5
+ "license": "MIT",
6
+ "author": "ReferralSaaSquatch.com, Inc.",
7
+ "types": "dist/squatch.d.ts",
8
+ "source": "src/squatch.ts",
9
+ "main": "dist/squatch.js",
10
+ "module": "dist/squatch.esm.js",
11
+ "umd:main": "dist/squatch.min.js",
12
+ "browser": "dist/squatch.min.js",
13
+ "bugs": {
14
+ "url": "https://github.com/saasquatch/squatch-js/issues",
15
+ "email": "support@referralsaasquatch.com"
16
+ },
17
+ "engines": {
18
+ "node": ">=12.16.0"
19
+ },
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "https://github.com/saasquatch/squatch-js.git"
23
+ },
24
+ "tsd": {
25
+ "directory": "test/tsd"
26
+ },
27
+ "sideEffects": false,
28
+ "scripts": {
29
+ "build:es": "microbundle --target node --format cjs,es",
30
+ "build:umd": "webpack",
31
+ "build": "run-s build:es build:umd build:docs",
32
+ "watch": "webpack --watch",
33
+ "declaration": "tsc --emitDeclarationOnly",
34
+ "test:browser": "cucumber-js",
35
+ "test:webkit": "cross-env BROWSER=webkit cucumber-js",
36
+ "test:firefox": "cross-env BROWSER=firefox cucumber-js",
37
+ "test:types": "tsd",
38
+ "test:features": "jest --verbose --coverage",
39
+ "test": "run-s test:features test:browser test:webkit test:firefox",
40
+ "build:docs": "typedoc",
41
+ "deploy": "np --no-cleanup",
42
+ "deploy:docs": "surge ./ -d squathjsv2.surge.sh",
43
+ "preversion": "run-s build",
44
+ "demo": "msw init demo/dist/ --save && run-p static parcel",
45
+ "demo:deploy": "run-s parcel:build parcel:deploy",
46
+ "static": "serve -l 3333 -s dist",
47
+ "parcel": "cd demo && parcel index.html",
48
+ "parcel:build": "cd demo && parcel build index.html",
49
+ "parcel:deploy": "surge demo/dist -d squathjs-demo.surge.sh"
50
+ },
51
+ "devDependencies": {
52
+ "@babel/core": "^7.14.3",
53
+ "@babel/plugin-proposal-class-properties": "^7.13.0",
54
+ "@babel/plugin-transform-runtime": "^7.14.3",
55
+ "@babel/preset-env": "^7.14.2",
56
+ "@babel/preset-typescript": "^7.13.0",
57
+ "@babel/register": "^7.13.16",
58
+ "@babel/runtime-corejs2": "^7.14.0",
59
+ "@happy-dom/jest-environment": "^9.20.3",
60
+ "@open-wc/testing-helpers": "^2.3.0",
61
+ "@size-limit/preset-small-lib": "^8.2.4",
62
+ "@testing-library/dom": "^9.3.1",
63
+ "@types/chai": "^4.3.5",
64
+ "@types/cucumber": "^6.0.1",
65
+ "@types/debug": "4.1.5",
66
+ "@types/estree": "^1.0.1",
67
+ "@types/express": "^4.17.6",
68
+ "@types/inquirer": "^9.0.3",
69
+ "@types/jest": "^29.5.2",
70
+ "@types/js-cookie": "^2.2.6",
71
+ "@types/jsdom-global": "^3.0.2",
72
+ "@types/react": "^16.9.35",
73
+ "@ungap/url-search-params": "^0.2.0",
74
+ "babel-jest": "^29.5.0",
75
+ "babel-loader": "^8.2.2",
76
+ "base64-url": "^2.3.3",
77
+ "chai": "^4.3.7",
78
+ "cross-env": "^7.0.2",
79
+ "cucumber": "^6.0.5",
80
+ "express": "^4.17.1",
81
+ "jest": "^29.5.0",
82
+ "jest-cucumber": "^3.0.1",
83
+ "jest-environment-jsdom": "^29.5.0",
84
+ "microbundle": "^0.13.0",
85
+ "msw": "^0.36.8",
86
+ "np": "^6.2.3",
87
+ "npm-run-all": "^4.1.5",
88
+ "parcel": "^1.12.3",
89
+ "parcel-bundler": "^1.12.4",
90
+ "playwright": "^1.33.0-alpha-mar-29-2023",
91
+ "react": "^16.13.1",
92
+ "react-bootstrap": "^1.0.1",
93
+ "react-dom": "^16.13.1",
94
+ "react-url-query": "^1.5.0",
95
+ "serve": "^11.3.0",
96
+ "size-limit": "^8.2.4",
97
+ "ts-jest": "^29.1.1",
98
+ "ts-loader": "^7.0.4",
99
+ "ts-node": "^8.10.2",
100
+ "tsd": "^0.13.1",
101
+ "typedoc": "^0.24.8",
102
+ "typescript": "^5.1.6",
103
+ "webpack": "^5.88.0",
104
+ "webpack-bundle-analyzer": "^4.9.0",
105
+ "webpack-cli": "^5.1.4",
106
+ "webpack-visualizer-plugin": "^0.1.11"
107
+ },
108
+ "prettier": {},
109
+ "dependencies": {
110
+ "debug": "^3.2.6",
111
+ "js-cookie": "^3.0.5"
112
+ },
113
+ "browserslist": "> 0.25%, not dead",
114
+ "msw": {
115
+ "workerDirectory": "demo/dist"
116
+ },
117
+ "size-limit": [
118
+ {
119
+ "path": "dist/squatch.js",
120
+ "limit": "12.5 kB"
121
+ }
122
+ ]
123
+ }
package/tsconfig.json CHANGED
@@ -1,23 +1,23 @@
1
- {
2
- "compilerOptions": {
3
- "declaration": true,
4
- "declarationDir": "dist",
5
- "sourceMap": true,
6
- "noImplicitAny": false,
7
- "allowSyntheticDefaultImports": true,
8
- "strictNullChecks": true,
9
- "module": "ESNext",
10
- "target": "ESNext",
11
- "lib": ["dom", "es5", "scripthost", "es2016"],
12
- "moduleResolution": "node"
13
- },
14
- "include": ["src/**/*.ts"],
15
- "exclude": ["node_modules", "**/*.spec.ts"],
16
- "typedocOptions":{
17
- "out": "docs",
18
- "json": "docs/docs.json",
19
- "entryPoints": ["src/squatch.ts"],
20
- "excludePrivate": true,
21
- "excludeProtected": true
22
- }
23
- }
1
+ {
2
+ "compilerOptions": {
3
+ "declaration": true,
4
+ "declarationDir": "dist",
5
+ "sourceMap": true,
6
+ "noImplicitAny": false,
7
+ "allowSyntheticDefaultImports": true,
8
+ "strictNullChecks": true,
9
+ "module": "ESNext",
10
+ "target": "ESNext",
11
+ "lib": ["dom", "es5", "scripthost", "es2016"],
12
+ "moduleResolution": "node"
13
+ },
14
+ "include": ["src/**/*.ts"],
15
+ "exclude": ["node_modules", "**/*.spec.ts"],
16
+ "typedocOptions":{
17
+ "out": "docs",
18
+ "json": "docs/docs.json",
19
+ "entryPoints": ["src/squatch.ts"],
20
+ "excludePrivate": true,
21
+ "excludeProtected": true
22
+ }
23
+ }