@andresxid/xid_camera_ocr_sdk_react 0.1.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/package.json ADDED
@@ -0,0 +1,79 @@
1
+ {
2
+ "name": "@andresxid/xid_camera_ocr_sdk_react",
3
+ "version": "0.1.0",
4
+ "description": "XID camera OCR capture for React — document capture with on-device OpenCV detection and auto-shutter",
5
+ "license": "UNLICENSED",
6
+ "type": "module",
7
+ "main": "./dist/index.cjs",
8
+ "module": "./dist/index.js",
9
+ "types": "./dist/index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "types": "./dist/index.d.ts",
13
+ "import": "./dist/index.js",
14
+ "require": "./dist/index.cjs"
15
+ },
16
+ "./cv-worker.js": "./dist/cv-worker.js",
17
+ "./opencv.js": "./dist/opencv.js",
18
+ "./package.json": "./package.json"
19
+ },
20
+ "files": [
21
+ "dist",
22
+ "README.md",
23
+ "CHANGELOG.md"
24
+ ],
25
+ "sideEffects": false,
26
+ "engines": {
27
+ "node": ">=18"
28
+ },
29
+ "packageManager": "pnpm@11.3.0+sha512.2c403d6594527287672b1f7056343a1f7c3634036a67ffabfcc2b3d7595d843768f8787148d1b57cf7956c90606bbd192857c363af19e96d2d0ec9ec5741d215",
30
+ "scripts": {
31
+ "build": "tsup && node tools/opencv-build/wrap-esm.mjs ${XID_OPENCV_SOURCE:-vendor/opencv-core-imgproc.js} dist/opencv.js",
32
+ "dev": "tsup --watch",
33
+ "test": "vitest run",
34
+ "test:dist": "vitest run -c vitest.dist.config.ts",
35
+ "typecheck": "tsc --noEmit",
36
+ "check:size": "node tools/check-bundle-size.ts",
37
+ "pack:local": "pnpm pack --pack-destination .pack",
38
+ "eval:detect": "tsx evals/run_detection_eval.ts",
39
+ "eval:gate": "tsx evals/check_detection_thresholds.ts",
40
+ "consumer:matrix": "node tests/vite-consumer/run.mjs",
41
+ "prepublishOnly": "pnpm run build && pnpm run test && pnpm run test:dist && pnpm run check:size"
42
+ },
43
+ "publishConfig": {
44
+ "access": "restricted"
45
+ },
46
+ "peerDependencies": {
47
+ "react": ">=18",
48
+ "react-dom": ">=18"
49
+ },
50
+ "devDependencies": {
51
+ "@techstark/opencv-js": "4.10.0-release.1",
52
+ "@testing-library/react": "^16.0.0",
53
+ "@types/node": "^20.0.0",
54
+ "@types/pngjs": "^6.0.5",
55
+ "@types/react": "^18.2.0",
56
+ "@types/react-dom": "^18.3.0",
57
+ "jpeg-js": "^0.4.4",
58
+ "jsdom": "^25.0.0",
59
+ "playwright": "1.62.1",
60
+ "pngjs": "^7.0.0",
61
+ "react": "^18.2.0",
62
+ "react-dom": "^18.3.0",
63
+ "tsup": "^8.2.0",
64
+ "tsx": "^4.19.0",
65
+ "typescript": "^5.5.0",
66
+ "vitest": "^2.1.0"
67
+ },
68
+ "keywords": [
69
+ "ocr",
70
+ "ine",
71
+ "pasaporte",
72
+ "mexico",
73
+ "kyc",
74
+ "document-capture",
75
+ "opencv",
76
+ "web-worker",
77
+ "react"
78
+ ]
79
+ }