@saasquatch/squatch-js 2.6.0-0 → 2.6.0-2
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/README.md +87 -68
- package/coverage/clover.xml +3 -885
- package/coverage/coverage-final.json +1 -23
- package/coverage/lcov-report/WidgetApi.ts.html +631 -0
- package/coverage/lcov-report/api/AnalyticsApi.ts.html +4 -4
- package/coverage/lcov-report/api/WidgetApi.ts.html +36 -33
- package/coverage/lcov-report/api/graphql.ts.html +1 -1
- package/coverage/lcov-report/utils/domready.ts.html +2 -2
- package/coverage/lcov-report/utils/io.ts.html +31 -16
- package/coverage/lcov-report/utils/validate.ts.html +48 -48
- package/coverage/lcov-report/validate.ts.html +1 -1
- package/coverage/lcov-report/widgets/EmbedWidget.ts.html +21 -24
- package/coverage/lcov-report/widgets/PopupWidget.ts.html +72 -27
- package/coverage/lcov-report/widgets/Widget.ts.html +78 -21
- package/coverage/lcov-report/widgets/Widgets.ts.html +1060 -0
- package/coverage/lcov.info +0 -1628
- package/cucumber.js +3 -3
- package/dist/squatch.d.ts +0 -15
- package/dist/squatch.esm.js +145 -153
- package/dist/squatch.esm.js.map +1 -1
- package/dist/squatch.js +144 -153
- package/dist/squatch.js.map +1 -1
- package/dist/squatch.min.js +1 -1
- package/dist/utils/io.d.ts +1 -1
- package/dist/widgets/EmbedWidget.d.ts +5 -5
- package/dist/widgets/PopupWidget.d.ts +5 -5
- package/dist/widgets/Widget.d.ts +3 -2
- package/dist/widgets/Widgets.d.ts +1 -10
- package/dist/widgets/declarative/DeclarativeWidget.d.ts +4 -6
- package/jest.config.ts +3 -5
- package/package.json +5 -5
- package/tsconfig.json +1 -0
package/cucumber.js
CHANGED
|
@@ -24,7 +24,7 @@ exports.default = [
|
|
|
24
24
|
`--parallel ${CPU_COUNT}`,
|
|
25
25
|
|
|
26
26
|
// "test/**/*.feature",
|
|
27
|
-
"
|
|
27
|
+
"test/specs/**/*.feature",
|
|
28
28
|
|
|
29
29
|
`--tags "@testsuite:squatch-js and not @skip"`,
|
|
30
30
|
|
|
@@ -38,8 +38,8 @@ exports.default = [
|
|
|
38
38
|
// "--require tests/cucumber-setup/loaders.ts",
|
|
39
39
|
|
|
40
40
|
// Step definitions go last
|
|
41
|
-
"--require test/step_definitions
|
|
42
|
-
"--require test/step_definitions/**/*.tsx",
|
|
41
|
+
"--require test/step_definitions/**/steps.ts",
|
|
42
|
+
// "--require test/step_definitions/**/*.tsx",
|
|
43
43
|
|
|
44
44
|
// '--format usage',
|
|
45
45
|
].join(" ");
|
package/dist/squatch.d.ts
CHANGED
|
@@ -74,21 +74,6 @@ export declare function ready(fn: () => any): void;
|
|
|
74
74
|
* @returns {void}
|
|
75
75
|
*/
|
|
76
76
|
export declare function autofill(selector: string): void;
|
|
77
|
-
/**
|
|
78
|
-
* Overrides the default function that submits the user email. If you have
|
|
79
|
-
* Security enabled, the email needs to be signed before it's submitted.
|
|
80
|
-
*
|
|
81
|
-
* @param {function} fn Callback function for the 'submit_email' event.
|
|
82
|
-
* @returns {void}
|
|
83
|
-
*
|
|
84
|
-
* @example
|
|
85
|
-
* squatch.submitEmail(function(target, widget, email) {
|
|
86
|
-
* // Sign email and generate jwt token
|
|
87
|
-
* var jwt = 'token';
|
|
88
|
-
* widget.reload(email, jwt);
|
|
89
|
-
* });
|
|
90
|
-
*/
|
|
91
|
-
export declare function submitEmail(fn: (target: any, widget: any, email: any) => any): void;
|
|
92
77
|
/**
|
|
93
78
|
* Manually set the _saasquatch cookie as a 1st party cookie if available as a URL parameter on the current page.
|
|
94
79
|
* This runs automatically immediately when squatch-js is loaded, except when window.SaaSquatchDoNotAutoDrop is true.
|