@react-opencv/fiber 0.1.2 → 0.1.3
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 +33 -4
- package/dist/components/OpenCvProvider.d.ts +3 -3
- package/dist/fiber/executePipeline.d.ts +2 -2
- package/dist/fiber/matDebug.d.ts +2 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +627 -582
- package/dist/types.d.ts +7 -0
- package/package.json +22 -2
package/dist/types.d.ts
CHANGED
|
@@ -6,11 +6,18 @@ declare global {
|
|
|
6
6
|
}
|
|
7
7
|
export type CV = any;
|
|
8
8
|
export type Mat = any;
|
|
9
|
+
export interface CvDebugConfig {
|
|
10
|
+
validateOps?: boolean;
|
|
11
|
+
warnMissingOps?: boolean;
|
|
12
|
+
logPipeline?: boolean;
|
|
13
|
+
}
|
|
9
14
|
export interface OpenCVContextValue {
|
|
10
15
|
cv: CV | null;
|
|
11
16
|
loading: boolean;
|
|
12
17
|
loaded: boolean;
|
|
13
18
|
error: string | null;
|
|
19
|
+
missingOps: Set<string>;
|
|
20
|
+
debug: CvDebugConfig;
|
|
14
21
|
}
|
|
15
22
|
export type OnMatCallback = (mat: Mat) => void;
|
|
16
23
|
export interface ParamConfig {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-opencv/fiber",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/erasta/react-opencv-fiber.git"
|
|
@@ -31,7 +31,9 @@
|
|
|
31
31
|
],
|
|
32
32
|
"scripts": {
|
|
33
33
|
"build": "vite build && tsc -p tsconfig.build.json && mkdir -p dist/data && cp src/data/opencv-signatures.json dist/data/",
|
|
34
|
-
"
|
|
34
|
+
"lint": "eslint .",
|
|
35
|
+
"prepack": "npm run build",
|
|
36
|
+
"postpublish": "git tag v$npm_package_version && git push origin v$npm_package_version"
|
|
35
37
|
},
|
|
36
38
|
"dependencies": {
|
|
37
39
|
"react-reconciler": "^0.33.0"
|
|
@@ -39,5 +41,23 @@
|
|
|
39
41
|
"peerDependencies": {
|
|
40
42
|
"react": "^19.2.0",
|
|
41
43
|
"react-dom": "^19.2.0"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@eslint/js": "^9.39.1",
|
|
47
|
+
"@types/node": "^24.10.1",
|
|
48
|
+
"@types/react": "^19.2.7",
|
|
49
|
+
"@types/react-dom": "^19.2.3",
|
|
50
|
+
"@types/react-reconciler": "^0.33.0",
|
|
51
|
+
"@vitejs/plugin-react": "^5.1.1",
|
|
52
|
+
"eslint": "^9.39.1",
|
|
53
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
54
|
+
"eslint-plugin-react-refresh": "^0.4.24",
|
|
55
|
+
"globals": "^16.5.0",
|
|
56
|
+
"playwright": "^1.58.2",
|
|
57
|
+
"react": "^19.2.0",
|
|
58
|
+
"react-dom": "^19.2.0",
|
|
59
|
+
"typescript": "~5.9.3",
|
|
60
|
+
"typescript-eslint": "^8.48.0",
|
|
61
|
+
"vite": "^7.3.1"
|
|
42
62
|
}
|
|
43
63
|
}
|