@trustgraph/react-state 1.3.1 → 1.4.1

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.
@@ -0,0 +1,29 @@
1
+ import { RowEmbeddingsMatch } from "@trustgraph/client";
2
+ /**
3
+ * Custom hook for managing row embeddings query operations
4
+ * Provides functionality for executing semantic searches on structured data indexes
5
+ * First converts query text to embeddings, then searches for similar records
6
+ */
7
+ export declare const useRowEmbeddingsQuery: () => {
8
+ executeQuery: import("@tanstack/react-query").UseMutateFunction<RowEmbeddingsMatch[], Error, {
9
+ query: string;
10
+ schemaName: string;
11
+ collection?: string;
12
+ indexName?: string;
13
+ limit?: number;
14
+ }, unknown>;
15
+ executeQueryAsync: import("@tanstack/react-query").UseMutateAsyncFunction<RowEmbeddingsMatch[], Error, {
16
+ query: string;
17
+ schemaName: string;
18
+ collection?: string;
19
+ indexName?: string;
20
+ limit?: number;
21
+ }, unknown>;
22
+ isExecuting: boolean;
23
+ error: Error;
24
+ matches: RowEmbeddingsMatch[];
25
+ hasResults: boolean;
26
+ reset: () => void;
27
+ isReady: boolean;
28
+ };
29
+ //# sourceMappingURL=row-embeddings-query.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"row-embeddings-query.d.ts","sourceRoot":"","sources":["../../src/state/row-embeddings-query.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAExD;;;;GAIG;AACH,eAAO,MAAM,qBAAqB;;eAyBrB,MAAM;oBACD,MAAM;qBACL,MAAM;oBACP,MAAM;gBACV,MAAM;;;eAJP,MAAM;oBACD,MAAM;qBACL,MAAM;oBACP,MAAM;gBACV,MAAM;;;;;;;;CA4DnB,CAAC"}
@@ -1,8 +1,8 @@
1
1
  /**
2
- * Custom hook for managing GraphQL objects queries
3
- * Provides functionality for executing GraphQL queries against structured data objects
2
+ * Custom hook for managing GraphQL rows queries
3
+ * Provides functionality for executing GraphQL queries against structured row data
4
4
  */
5
- export declare const useObjectsQuery: () => {
5
+ export declare const useRowsQuery: () => {
6
6
  executeQuery: import("@tanstack/react-query").UseMutateFunction<Record<string, unknown>, unknown, {
7
7
  query: string;
8
8
  collection?: string;
@@ -21,4 +21,4 @@ export declare const useObjectsQuery: () => {
21
21
  reset: () => void;
22
22
  isReady: boolean;
23
23
  };
24
- //# sourceMappingURL=objects-query.d.ts.map
24
+ //# sourceMappingURL=rows-query.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rows-query.d.ts","sourceRoot":"","sources":["../../src/state/rows-query.ts"],"names":[],"mappings":"AAcA;;;GAGG;AACH,eAAO,MAAM,YAAY;;eAwBZ,MAAM;qBACA,MAAM;oBACP,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;wBACnB,MAAM;;;eAHf,MAAM;qBACA,MAAM;oBACP,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;wBACnB,MAAM;;;;;;;CA6C3B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trustgraph/react-state",
3
- "version": "1.3.1",
3
+ "version": "1.4.1",
4
4
  "description": "React state management hooks for TrustGraph applications",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -40,8 +40,8 @@
40
40
  "url": "https://github.com/trustgraph-ai/trustgraph-react-state"
41
41
  },
42
42
  "dependencies": {
43
- "@trustgraph/client": "^1.3.0",
44
- "@trustgraph/react-provider": "^1.3.0",
43
+ "@trustgraph/client": "^1.4.1",
44
+ "@trustgraph/react-provider": "^1.4.0",
45
45
  "compute-cosine-similarity": "^1.1.0",
46
46
  "uuid": "^11.0.3"
47
47
  },
@@ -58,8 +58,8 @@
58
58
  "@tanstack/react-query": "^5.0.0",
59
59
  "@testing-library/dom": "^10.4.1",
60
60
  "@testing-library/react": "^16.3.0",
61
- "@trustgraph/client": "^1.3.0",
62
- "@trustgraph/react-provider": "^1.3.0",
61
+ "@trustgraph/client": "^1.4.1",
62
+ "@trustgraph/react-provider": "^1.4.0",
63
63
  "@types/react": "^18.0.0 || ^19.0.0",
64
64
  "@typescript-eslint/eslint-plugin": "^7.0.0",
65
65
  "@typescript-eslint/parser": "^7.0.0",
@@ -1 +0,0 @@
1
- {"version":3,"file":"objects-query.d.ts","sourceRoot":"","sources":["../../src/state/objects-query.ts"],"names":[],"mappings":"AAcA;;;GAGG;AACH,eAAO,MAAM,eAAe;;eAwBf,MAAM;qBACA,MAAM;oBACP,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;wBACnB,MAAM;;;eAHf,MAAM;qBACA,MAAM;oBACP,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;wBACnB,MAAM;;;;;;;CA6C3B,CAAC"}