@trustgraph/react-state 0.2.0 → 0.3.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.
@@ -1 +1 @@
1
- {"version":3,"file":"collections.d.ts","sourceRoot":"","sources":["../../src/state/collections.ts"],"names":[],"mappings":"AAOA;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;CAgH1B,CAAC"}
1
+ {"version":3,"file":"collections.d.ts","sourceRoot":"","sources":["../../src/state/collections.ts"],"names":[],"mappings":"AAOA;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;CA8G1B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"inference.d.ts","sourceRoot":"","sources":["../../src/state/inference.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAEhD,MAAM,WAAW,eAAe;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CAC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AAI,CAAC;CACnC;AAED;;;GAGG;AACH,eAAO,MAAM,YAAY;;eAaZ,MAAM;kBACH,eAAe;oBACb,MAAM;;;sBA+BJ,MAAM;eACb,MAAM;;;eAcN,MAAM;oBACD,cAAc;;;CAqC/B,CAAC"}
@@ -4,10 +4,10 @@
4
4
  * @returns {Object} Processing state and operations
5
5
  */
6
6
  export declare const useProcessing: () => {
7
- processing: any[] | import("@trustgraph/client").ProcessingMetadata;
7
+ processing: never[] | import("@trustgraph/client").ProcessingMetadata;
8
8
  isLoading: boolean;
9
9
  isError: boolean;
10
10
  error: Error;
11
- refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<any[] | import("@trustgraph/client").ProcessingMetadata, Error>>;
11
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<never[] | import("@trustgraph/client").ProcessingMetadata, Error>>;
12
12
  };
13
13
  //# sourceMappingURL=processing.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"vector-search.d.ts","sourceRoot":"","sources":["../../src/state/vector-search.ts"],"names":[],"mappings":"AAQA;;;;GAIG;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;CAsE3B,CAAC"}
1
+ {"version":3,"file":"vector-search.d.ts","sourceRoot":"","sources":["../../src/state/vector-search.ts"],"names":[],"mappings":"AAQA;;;;GAIG;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;CA2E3B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trustgraph/react-state",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "React state management hooks for TrustGraph applications",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -33,17 +33,17 @@
33
33
  "hooks",
34
34
  "tanstack-query"
35
35
  ],
36
- "author": "KnowNext Limited",
37
- "license": "Apache-2.0",
36
+ "author": "",
37
+ "license": "MIT",
38
38
  "dependencies": {
39
- "@trustgraph/client": "github:trustgraph-ai/trustgraph-client#master",
40
- "@trustgraph/react-provider": "github:trustgraph-ai/trustgraph-react-provider#master",
39
+ "@trustgraph/client": "^0.3.0",
40
+ "@trustgraph/react-provider": "^0.3.0",
41
41
  "compute-cosine-similarity": "^1.1.0",
42
42
  "uuid": "^11.0.3"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "@tanstack/react-query": "^5.0.0",
46
- "react": "^18.0.0",
46
+ "react": "^18.0.0 || ^19.0.0",
47
47
  "zustand": "^4.0.0 || ^5.0.0"
48
48
  },
49
49
  "devDependencies": {
@@ -54,19 +54,19 @@
54
54
  "@tanstack/react-query": "^5.0.0",
55
55
  "@testing-library/dom": "^10.4.1",
56
56
  "@testing-library/react": "^16.3.0",
57
- "@trustgraph/client": "github:trustgraph-ai/trustgraph-client#master",
58
- "@trustgraph/react-provider": "github:trustgraph-ai/trustgraph-react-provider#master",
59
- "@types/react": "^18.0.0",
57
+ "@trustgraph/client": "^0.3.0",
58
+ "@trustgraph/react-provider": "^0.3.0",
59
+ "@types/react": "^18.0.0 || ^19.0.0",
60
60
  "@typescript-eslint/eslint-plugin": "^7.0.0",
61
61
  "@typescript-eslint/parser": "^7.0.0",
62
62
  "@vitest/ui": "^3.2.4",
63
63
  "eslint": "^8.57.1",
64
64
  "globals": "^16.4.0",
65
- "happy-dom": "^19.0.2",
65
+ "happy-dom": "^20.0.10",
66
66
  "jiti": "^2.6.1",
67
67
  "prettier": "^3.6.2",
68
- "react": "^18.3.1",
69
- "react-dom": "^18.3.1",
68
+ "react": "^18.3.1 || ^19.0.0",
69
+ "react-dom": "^18.3.1 || ^19.0.0",
70
70
  "rollup": "^4.9.0",
71
71
  "tslib": "^2.6.2",
72
72
  "typescript": "^5.3.3",
@@ -74,16 +74,5 @@
74
74
  "uuid": "^11.0.3",
75
75
  "vitest": "^3.2.4",
76
76
  "zustand": "^5.0.2"
77
- },
78
- "directories": {
79
- "doc": "docs"
80
- },
81
- "repository": {
82
- "type": "git",
83
- "url": "git+https://github.com/trustgraph-ai/trustgraph-react-state.git"
84
- },
85
- "bugs": {
86
- "url": "https://github.com/trustgraph-ai/trustgraph-react-state/issues"
87
- },
88
- "homepage": "https://github.com/trustgraph-ai/trustgraph-react-state#readme"
77
+ }
89
78
  }