@saasquatch/squatch-js 2.6.0-8 → 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.
- package/.github/workflows/size-limit.yml +14 -14
- package/.github/workflows/static.yml +89 -89
- package/CHANGELOG.md +388 -326
- package/LICENSE +20 -20
- package/README.md +259 -208
- package/babel.config.js +7 -7
- package/cucumber.js +45 -45
- package/demo/sandbox.ts +124 -124
- package/demo/toolbar.tsx +526 -526
- package/dist/api/WidgetApi.d.ts +1 -0
- package/dist/async.d.ts +2 -0
- package/dist/globals.d.ts +4 -0
- package/dist/squatch.esm.js +80 -49
- package/dist/squatch.esm.js.map +1 -1
- package/dist/squatch.js +80 -49
- package/dist/squatch.js.map +1 -1
- package/dist/squatch.min.js +1 -1
- package/dist/squatch.min.js.br +0 -0
- package/dist/squatch.min.js.map +1 -1
- package/dist/squatch.modern.js +1 -1
- package/dist/squatch.modern.js.map +1 -1
- package/dist/stats.html +1 -1
- package/dist/utils/decodeJwt.d.ts +1 -0
- package/dist/utils/validate.d.ts +0 -2
- package/dist/widgets/PopupWidget.d.ts +2 -2
- package/dist/widgets/declarative/DeclarativeWidget.d.ts +5 -0
- package/jest.config.ts +200 -200
- package/package.json +123 -123
- package/tsconfig.json +23 -23
- package/coverage/clover.xml +0 -865
- package/coverage/coverage-final.json +0 -20
- package/coverage/lcov-report/DeclarativeWidget.ts.html +0 -790
- package/coverage/lcov-report/WidgetApi.ts.html +0 -631
- package/coverage/lcov-report/Widgets.ts.html +0 -1105
- package/coverage/lcov-report/api/AnalyticsApi.ts.html +0 -304
- package/coverage/lcov-report/api/EventsApi.ts.html +0 -352
- package/coverage/lcov-report/api/WidgetApi.ts.html +0 -658
- package/coverage/lcov-report/api/graphql.ts.html +0 -130
- package/coverage/lcov-report/base.css +0 -224
- package/coverage/lcov-report/block-navigation.js +0 -87
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -196
- package/coverage/lcov-report/squatch.ts.html +0 -721
- package/coverage/lcov-report/utils/cookieUtils.ts.html +0 -415
- package/coverage/lcov-report/utils/decodeUserJwt.ts.html +0 -133
- package/coverage/lcov-report/utils/domready.ts.html +0 -160
- package/coverage/lcov-report/utils/io.ts.html +0 -400
- package/coverage/lcov-report/utils/utmUtils.ts.html +0 -277
- package/coverage/lcov-report/utils/validate.ts.html +0 -268
- package/coverage/lcov-report/validate.ts.html +0 -268
- package/coverage/lcov-report/widgets/EmbedWidget.ts.html +0 -481
- package/coverage/lcov-report/widgets/PopupWidget.ts.html +0 -685
- package/coverage/lcov-report/widgets/Widget.ts.html +0 -1159
- package/coverage/lcov-report/widgets/Widgets.ts.html +0 -1102
- package/coverage/lcov-report/widgets/declarative/DeclarativeWidget.ts.html +0 -790
- package/coverage/lcov-report/widgets/declarative/DeclarativeWidgets.ts.html +0 -388
- package/coverage/lcov.info +0 -1593
- package/stats.json +0 -1
package/package.json
CHANGED
|
@@ -1,123 +1,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 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
|
+
}
|