@techlabi/kycrazy-ui-kit 0.34.0 → 0.35.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 +6 -0
- package/dist/browser-C106t0ST.js +53 -0
- package/dist/index.es.js +3326 -3290
- package/dist/index.umd.js +199 -199
- package/dist/types/components/ui/SelectWithCustomOption.d.ts +0 -1
- package/dist/types/utils/imageValidator.d.ts +2 -2
- package/package.json +8 -2
|
@@ -10,9 +10,9 @@ export declare class ImageValidator {
|
|
|
10
10
|
private signalMap;
|
|
11
11
|
private modelsLoaded;
|
|
12
12
|
constructor();
|
|
13
|
-
validateIdCard(file: File, documentType: documentIds): Promise<ValidationResult>;
|
|
13
|
+
validateIdCard(file: File | string, documentType: documentIds): Promise<ValidationResult>;
|
|
14
14
|
private loadModels;
|
|
15
|
-
validateFace(file: File): Promise<ValidationResult>;
|
|
15
|
+
validateFace(file: File | string): Promise<ValidationResult>;
|
|
16
16
|
private fileToImage;
|
|
17
17
|
}
|
|
18
18
|
export declare const validator: ImageValidator;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"private": false,
|
|
4
4
|
"description": "A modern React component library for KYC",
|
|
5
5
|
"author": "TechLabi",
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.35.0",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"types": "dist/types/index.d.ts",
|
|
9
9
|
"style": "dist/style.css",
|
|
@@ -27,6 +27,8 @@
|
|
|
27
27
|
],
|
|
28
28
|
"scripts": {
|
|
29
29
|
"dev": "vite",
|
|
30
|
+
"test": "npx vitest run tests --reporter=verbose",
|
|
31
|
+
"test:ci": "npx vitest run tests --reporter=dot --coverage",
|
|
30
32
|
"build": "vite build",
|
|
31
33
|
"build:dev": "vite build --mode development",
|
|
32
34
|
"build:lib": "vite build --config vite.lib.config.ts",
|
|
@@ -69,6 +71,7 @@
|
|
|
69
71
|
"@radix-ui/react-toggle": "^1.1.9",
|
|
70
72
|
"@radix-ui/react-toggle-group": "^1.1.10",
|
|
71
73
|
"@radix-ui/react-tooltip": "^1.2.7",
|
|
74
|
+
"canvas": "^3.2.0",
|
|
72
75
|
"class-variance-authority": "^0.7.1",
|
|
73
76
|
"clsx": "^2.1.1",
|
|
74
77
|
"cmdk": "^1.1.1",
|
|
@@ -77,6 +80,7 @@
|
|
|
77
80
|
"face-api.js": "^0.22.2",
|
|
78
81
|
"fuse.js": "^7.1.0",
|
|
79
82
|
"input-otp": "^1.4.2",
|
|
83
|
+
"libphonenumber-js": "^1.12.24",
|
|
80
84
|
"lucide-react": "^0.462.0",
|
|
81
85
|
"next-themes": "^0.3.0",
|
|
82
86
|
"react": "^18.3.1",
|
|
@@ -106,6 +110,7 @@
|
|
|
106
110
|
"@types/react": "^18.3.24",
|
|
107
111
|
"@types/react-dom": "^18.3.7",
|
|
108
112
|
"@vitejs/plugin-react-swc": "^3.11.0",
|
|
113
|
+
"@vitest/coverage-v8": "^3.2.4",
|
|
109
114
|
"autoprefixer": "^10.4.21",
|
|
110
115
|
"eslint": "^9.32.0",
|
|
111
116
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
@@ -116,7 +121,8 @@
|
|
|
116
121
|
"tailwindcss": "^3.4.17",
|
|
117
122
|
"typescript": "^5.8.3",
|
|
118
123
|
"typescript-eslint": "^8.38.0",
|
|
119
|
-
"vite": "^5.4.19"
|
|
124
|
+
"vite": "^5.4.19",
|
|
125
|
+
"vitest": "^3.2.4"
|
|
120
126
|
},
|
|
121
127
|
"optionalDependencies": {
|
|
122
128
|
"@rollup/rollup-linux-x64-gnu": "4.39.0"
|