@soyio/soyio-widget 0.0.52 → 0.0.54
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 +3 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -39,6 +39,7 @@ Integrate the widget into your frontend framework using the script below. Ensure
|
|
|
39
39
|
userEmail: "<user email>",
|
|
40
40
|
flowTemplateId: "<flow template id>",
|
|
41
41
|
identityId: "<identity id>",
|
|
42
|
+
forceError: 'no_error'
|
|
42
43
|
},
|
|
43
44
|
onEvent: (data) => console.log(data),
|
|
44
45
|
isSandbox: true,
|
|
@@ -61,6 +62,8 @@ Integrate the widget into your frontend framework using the script below. Ensure
|
|
|
61
62
|
- **`identityId`**: Necessary only in the `'authenticate'` flow, this identifier must start with `'id_'` and signifies the user's identity.
|
|
62
63
|
- **`onEvent`**: A callback function triggered upon event occurrences, used for capturing and logging event-related data.
|
|
63
64
|
- **`isSandbox`**: (Optional) Indicates if the widget should operate in sandbox mode, defaulting to `false`.
|
|
65
|
+
- **`forceError`**: (Optional) Enum with two values (`no_error` and `validation_error`). Only valid for sandbox environment. Indicates if the flow should simulate a failed validation response.
|
|
66
|
+
|
|
64
67
|
|
|
65
68
|
#### Events
|
|
66
69
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soyio/soyio-widget",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.54",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.umd.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -42,4 +42,4 @@
|
|
|
42
42
|
"vite-plugin-dts": "^3.6.4",
|
|
43
43
|
"post-robot": "^10.0.46"
|
|
44
44
|
}
|
|
45
|
-
}
|
|
45
|
+
}
|