@react-opencv/fiber 0.1.1 → 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/dist/types.d.ts CHANGED
@@ -1,14 +1,23 @@
1
1
  declare global {
2
2
  interface Window {
3
3
  cv: any;
4
+ Module: any;
4
5
  }
5
6
  }
6
7
  export type CV = any;
7
8
  export type Mat = any;
9
+ export interface CvDebugConfig {
10
+ validateOps?: boolean;
11
+ warnMissingOps?: boolean;
12
+ logPipeline?: boolean;
13
+ }
8
14
  export interface OpenCVContextValue {
9
15
  cv: CV | null;
10
16
  loading: boolean;
17
+ loaded: boolean;
11
18
  error: string | null;
19
+ missingOps: Set<string>;
20
+ debug: CvDebugConfig;
12
21
  }
13
22
  export type OnMatCallback = (mat: Mat) => void;
14
23
  export interface ParamConfig {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-opencv/fiber",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/erasta/react-opencv-fiber.git"
@@ -30,8 +30,10 @@
30
30
  "computer-vision"
31
31
  ],
32
32
  "scripts": {
33
- "build": "vite build && tsc -p tsconfig.build.json",
34
- "prepack": "cp ../README.md ../LICENSE ."
33
+ "build": "vite build && tsc -p tsconfig.build.json && mkdir -p dist/data && cp src/data/opencv-signatures.json dist/data/",
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
  }
@@ -1,5 +0,0 @@
1
- import type { OpenCVContextValue } from "../types";
2
- export declare function useOpenCV(): OpenCVContextValue;
3
- export declare function OpenCVProvider({ children, }: {
4
- children: React.ReactNode;
5
- }): import("react/jsx-runtime").JSX.Element;