vult-security-kyc 0.0.6 → 0.0.8
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
CHANGED
|
@@ -193,6 +193,31 @@ interface VULTProps {
|
|
|
193
193
|
}
|
|
194
194
|
```
|
|
195
195
|
|
|
196
|
+
### Available Constants
|
|
197
|
+
|
|
198
|
+
The widget exposes the following constants for convenience:
|
|
199
|
+
|
|
200
|
+
- `VultKYC.IDV` - Shorthand for "IDVerification"
|
|
201
|
+
- `VultKYC.IDA` - Shorthand for "IDAuthentication"
|
|
202
|
+
|
|
203
|
+
### Methods
|
|
204
|
+
|
|
205
|
+
#### `startIDVerify(sessionId: string)`
|
|
206
|
+
Starts an ID Verification session. Requires a valid session ID.
|
|
207
|
+
|
|
208
|
+
#### `startIDAuthenticate(sessionId: string)`
|
|
209
|
+
Starts an ID Authentication session. Requires a valid session ID.
|
|
210
|
+
|
|
211
|
+
#### `close()`
|
|
212
|
+
Manually closes the widget and cleans up event listeners. Useful for programmatic dismissal.
|
|
213
|
+
|
|
214
|
+
### Notes
|
|
215
|
+
|
|
216
|
+
- The widget creates a full-screen modal overlay when started
|
|
217
|
+
- Users can dismiss the modal by clicking the backdrop (triggers `onDismiss` callback)
|
|
218
|
+
- The widget automatically handles window resizing and mobile viewport changes
|
|
219
|
+
- Make sure to use valid session IDs obtained from your backend API
|
|
220
|
+
|
|
196
221
|
## Licensing
|
|
197
222
|
|
|
198
223
|
This project includes third-party libraries with their own licenses. Below is a summary of the third-party licenses included in this project:
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Determines the environment domain URL based on the provided environment string.
|
|
3
3
|
*
|
|
4
4
|
* Maps environment values to their corresponding URLs:
|
|
5
|
-
* - dev, development -> https://face-dev.
|
|
6
|
-
* - stage -> https://face-stage.
|
|
5
|
+
* - dev, development -> https://face-dev.vultsecurity.com
|
|
6
|
+
* - stage -> https://face-stage.vultsecurity.com
|
|
7
7
|
* - demo -> https://face-demo.vultsecurity.com
|
|
8
8
|
* - prod, production -> https://face.vultsecurity.com
|
|
9
9
|
*
|
|
@@ -116,11 +116,20 @@ function vt() {
|
|
|
116
116
|
});
|
|
117
117
|
const oe = {
|
|
118
118
|
element: 1,
|
|
119
|
+
attribute: 2,
|
|
119
120
|
text: 3,
|
|
121
|
+
cdataSection: 4,
|
|
122
|
+
entityReference: 5,
|
|
123
|
+
// Deprecated
|
|
124
|
+
entityNode: 6,
|
|
120
125
|
// Deprecated
|
|
121
126
|
progressingInstruction: 7,
|
|
122
127
|
comment: 8,
|
|
123
|
-
document: 9
|
|
128
|
+
document: 9,
|
|
129
|
+
documentType: 10,
|
|
130
|
+
documentFragment: 11,
|
|
131
|
+
notation: 12
|
|
132
|
+
// Deprecated
|
|
124
133
|
}, Qt = function() {
|
|
125
134
|
return typeof window > "u" ? null : window;
|
|
126
135
|
}, Jt = function(o, f) {
|
|
@@ -669,7 +678,7 @@ function Pt(s) {
|
|
|
669
678
|
development: "dev",
|
|
670
679
|
production: "prod"
|
|
671
680
|
}[i] || i, A = {
|
|
672
|
-
dev: "https://face-dev.
|
|
681
|
+
dev: "https://face-dev.vultsecurity.com",
|
|
673
682
|
stage: "https://face-stage.vultsecurity.com",
|
|
674
683
|
demo: "https://face-demo.vultsecurity.com",
|
|
675
684
|
prod: "https://face.vultsecurity.com"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vult-security-kyc",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"description": "typescript widget",
|
|
5
5
|
"author": "Nexrage",
|
|
6
6
|
"license": "ISC",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"start:local": "yarn env:local && vite --host --port 8200",
|
|
32
32
|
"start:frontend": "yarn env:frontend && vite --host --port 8200",
|
|
33
33
|
"env:frontend": "node client-configs/env.js VITE_BUILD=dev VITE_DOMAIN=https://#/",
|
|
34
|
-
"env:dev": "node client-configs/env.js VITE_BUILD=dev VITE_KYC=VULT VITE_DOMAIN=https://face-dev.
|
|
35
|
-
"env:stage": "node client-configs/env.js VITE_BUILD=stage VITE_DOMAIN=https://face-stage.
|
|
34
|
+
"env:dev": "node client-configs/env.js VITE_BUILD=dev VITE_KYC=VULT VITE_DOMAIN=https://face-dev.vultsecurity.com",
|
|
35
|
+
"env:stage": "node client-configs/env.js VITE_BUILD=stage VITE_DOMAIN=https://face-stage.vultsecurity.com",
|
|
36
36
|
"env:demo": "node client-configs/env.js VITE_BUILD=demo VITE_DOMAIN=https://face-demo.vultsecurity.com",
|
|
37
37
|
"env:prod": "node client-configs/env.js VITE_BUILD=prod VITE_DOMAIN=https://face.vultsecurity.com",
|
|
38
38
|
"env:local": "node client-configs/env.js VITE_BUILD=dev VITE_KYC=VULT VITE_DOMAIN=https://localhost:8000",
|
|
@@ -49,6 +49,9 @@
|
|
|
49
49
|
"lint": "eslint \"./client-{apps,configs,schemas}/**/*.{js,jsx,ts,tsx}\"",
|
|
50
50
|
"preview": "vite preview"
|
|
51
51
|
},
|
|
52
|
+
"resolutions": {
|
|
53
|
+
"rollup": "4.22.4"
|
|
54
|
+
},
|
|
52
55
|
"dependencies": {
|
|
53
56
|
"isomorphic-dompurify": "2.26.0"
|
|
54
57
|
},
|