@saasquatch/squatch-js 2.4.1-0 → 2.5.0-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/CHANGELOG.md +20 -2
- package/dist/api/WidgetApi.d.ts +1 -14
- package/dist/squatch.esm.js +1 -81
- package/dist/squatch.esm.js.map +1 -1
- package/dist/squatch.js +1 -81
- package/dist/squatch.js.map +1 -1
- package/dist/squatch.min.js +2 -2
- package/dist/stats.html +1 -1
- package/dist/widgets/Widgets.d.ts +0 -14
- package/package.json +2 -2
|
@@ -30,20 +30,6 @@ export default class Widgets {
|
|
|
30
30
|
* let widgets = new Widgets({tenantAlias:'test_12b5bo1b25125'});
|
|
31
31
|
*/
|
|
32
32
|
constructor(configin: ConfigOptions);
|
|
33
|
-
/**
|
|
34
|
-
* This function calls the {@link WidgetApi.cookieUser} method, and it renders
|
|
35
|
-
* the widget if it is successful. Otherwise it shows the "error" widget.
|
|
36
|
-
*
|
|
37
|
-
* @param {Object} config Config details
|
|
38
|
-
* @param {WidgetType} config.widgetType The content of the widget.
|
|
39
|
-
* @param {EngagementMedium} config.engagementMedium How to display the widget.
|
|
40
|
-
* @param {User} config.user An optional user to include
|
|
41
|
-
* @param {string} config.jwt the JSON Web Token (JWT) that is used to
|
|
42
|
-
* validate the data (can be disabled)
|
|
43
|
-
*
|
|
44
|
-
* @return {Promise<WidgetResult>} json object if true, with a Widget and user details.
|
|
45
|
-
*/
|
|
46
|
-
createCookieUser(config: WidgetConfig): Promise<WidgetResult>;
|
|
47
33
|
/**
|
|
48
34
|
* This function calls the {@link WidgetApi.upsertUser} method, and it renders
|
|
49
35
|
* the widget if it is successful. Otherwise it shows the "error" widget.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saasquatch/squatch-js",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0-0",
|
|
4
4
|
"description": "The official Referral SaaSquatch Javascript Web/Browser SDK https://docs.referralsaasquatch.com/developer/squatchjs/",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"types": "dist/squatch.d.ts",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"npm-run-all": "^4.1.5",
|
|
76
76
|
"parcel": "^1.12.3",
|
|
77
77
|
"parcel-bundler": "^1.12.4",
|
|
78
|
-
"playwright": "^1.
|
|
78
|
+
"playwright": "^1.28.1",
|
|
79
79
|
"react": "^16.13.1",
|
|
80
80
|
"react-bootstrap": "^1.0.1",
|
|
81
81
|
"react-dom": "^16.13.1",
|