@xyo-network/react-payload-huri 6.1.4 → 6.2.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,6 +1,3 @@
1
1
  import type { DivinerInstance } from '@xyo-network/diviner-model';
2
- export declare const useFetchHuri: (hashOrHuri?: string, diviner?: DivinerInstance, token?: string) => [{
3
- schema: import("@xyo-network/payload-model").Schema;
4
- $sources?: Lowercase<string>[] | undefined;
5
- }[] | undefined, Error | undefined, import("@xylabs/react-promise").UsePromiseState | undefined];
2
+ export declare const useFetchHuri: (hashOrHuri?: string, diviner?: DivinerInstance, token?: string) => [import("@xyo-network/diviner-model").DivinerDivineResult<import("@xyo-network/payload-model").Payload>[] | undefined, Error | undefined, import("@xylabs/react-promise").UsePromiseState | undefined];
6
3
  //# sourceMappingURL=useFetchHuri.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useFetchHuri.d.ts","sourceRoot":"","sources":["../../../src/hooks/useFetchHuri.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAKjE,eAAO,MAAM,YAAY,GAAI,aAAa,MAAM,EAAE,UAAU,eAAe,EAAE,QAAQ,MAAM;;;gGAY1F,CAAA"}
1
+ {"version":3,"file":"useFetchHuri.d.ts","sourceRoot":"","sources":["../../../src/hooks/useFetchHuri.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAKjE,eAAO,MAAM,YAAY,GAAI,aAAa,MAAM,EAAE,UAAU,eAAe,EAAE,QAAQ,MAAM,2MAY1F,CAAA"}
@@ -1,16 +1,2 @@
1
- import * as _xylabs_react_promise from '@xylabs/react-promise';
2
- import * as _xyo_network_payload_model from '@xyo-network/payload-model';
3
- import { DivinerInstance } from '@xyo-network/diviner-model';
4
-
5
- declare const useBuildHuri: (hash?: string) => string | undefined;
6
-
7
- declare const useFetchHuri: (hashOrHuri?: string, diviner?: DivinerInstance, token?: string) => [{
8
- schema: _xyo_network_payload_model.Schema;
9
- $sources?: Lowercase<string>[] | undefined;
10
- }[] | undefined, Error | undefined, _xylabs_react_promise.UsePromiseState | undefined];
11
-
12
- type RouteOptions = 'routeParam' | 'searchParam' | 'any';
13
- declare const useParseHuriFromRoute: (routeOption?: RouteOptions) => string | undefined;
14
-
15
- export { useBuildHuri, useFetchHuri, useParseHuriFromRoute };
16
- export type { RouteOptions };
1
+ export * from './hooks/index.ts';
2
+ //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/react-payload-huri",
3
- "version": "6.1.4",
3
+ "version": "6.2.0",
4
4
  "description": "Common React library for all XYO projects that use React",
5
5
  "keywords": [
6
6
  "xyo",
@@ -39,19 +39,19 @@
39
39
  "module": "dist/browser/index.mjs",
40
40
  "types": "dist/browser/index.d.ts",
41
41
  "dependencies": {
42
- "@xylabs/react-promise": "^6.3.13",
43
- "@xyo-network/diviner-huri": "^4.1.7",
44
- "@xyo-network/diviner-model": "^4.1.7",
45
- "@xyo-network/react-network": "^6.1.4",
46
- "react-router-dom": "^7.7.0"
42
+ "@xylabs/react-promise": "^6.4.0",
43
+ "@xyo-network/diviner-huri": "^4.3.0",
44
+ "@xyo-network/diviner-model": "^4.3.0",
45
+ "@xyo-network/react-network": "^6.2.0",
46
+ "react-router-dom": "^7.7.1"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@mui/icons-material": "^7.2.0",
50
50
  "@mui/material": "^7.2.0",
51
51
  "@types/react": "^19.1.8",
52
- "@xylabs/ts-scripts-yarn3": "next",
53
- "react": "^19.1.0",
54
- "react-dom": "^19.1.0",
52
+ "@xylabs/ts-scripts-yarn3": "^7.0.1",
53
+ "react": "^19.1.1",
54
+ "react-dom": "^19.1.1",
55
55
  "typescript": "^5.8.3"
56
56
  },
57
57
  "peerDependencies": {