@soyio/soyio-widget 1.0.9 → 1.0.10

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 (2) hide show
  1. package/README.md +8 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -43,7 +43,7 @@ Integrate the widget into your frontend framework using the script below. Ensure
43
43
  userEmail: "<user email>",
44
44
  flowTemplateId: "<flow template id>",
45
45
  forceError: "<error type>",
46
- customColor: "<custom color>"
46
+ customColor: "<custom color>",
47
47
  },
48
48
  onEvent: (data) => console.log(data),
49
49
  isSandbox: true,
@@ -96,7 +96,7 @@ Optional props:
96
96
  - `forceError`
97
97
  - `customColor`.
98
98
 
99
- ### 3. Signature attempt (_coming soon..._)
99
+ ### 3. Signature attempt
100
100
 
101
101
  ```html
102
102
  <script>
@@ -108,7 +108,7 @@ Optional props:
108
108
  configProps: {
109
109
  signatureAttemptId: "<signature attempt id>",
110
110
  forceError: "<error type>",
111
- customColor: "<custom color>"
111
+ customColor: "<custom color>",
112
112
  },
113
113
  onEvent: (data) => console.log(data),
114
114
  isSandbox: true,
@@ -163,6 +163,11 @@ The `onEvent` callback is designed to handle various events that occur during wi
163
163
 
164
164
  - **`DENIED_CAMERA_PERMISSION`**: Event triggered when user denies camera permissions. It closes the widget.
165
165
 
166
+ - **`REJECTED_SIGNATURE`**: Event triggered when user clicks the "reject" button in the signature attempt. The event object includes:
167
+
168
+ - `identityId`: The unique identifier for the identity.
169
+ - `userReference`: The userReference used in the validation attempt for the identity.
170
+
166
171
  - **`WIDGET_CLOSED`**: This event occurs when the user closes the `Soyio` pop up. The event object is as follows:
167
172
 
168
173
  - `{ eventName: 'WIDGET_CLOSED' }`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soyio/soyio-widget",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "type": "module",
5
5
  "main": "./dist/index.umd.cjs",
6
6
  "module": "./dist/index.js",