@xyo-network/react-payload-huri 4.4.3 → 4.4.4

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,2 +1,16 @@
1
- export * from './hooks/index.ts';
2
- //# sourceMappingURL=index.d.ts.map
1
+ import * as _xylabs_react_promise from '@xylabs/react-promise';
2
+ import * as _xyo_network_diviner_model from '@xyo-network/diviner-model';
3
+ import { DivinerInstance } from '@xyo-network/diviner-model';
4
+ import * as _xylabs_object from '@xylabs/object';
5
+ import * as _xyo_network_payload_model from '@xyo-network/payload-model';
6
+
7
+ declare const useBuildHuri: (hash?: string) => string | undefined;
8
+
9
+ declare const useFetchHuri: (hashOrHuri?: string, diviner?: DivinerInstance, token?: string) => [_xyo_network_diviner_model.DivinerDivineResult<_xylabs_object.DeepRestrictToStringKeys<{
10
+ schema: _xyo_network_payload_model.Schema;
11
+ }>>[] | undefined, Error | undefined, _xylabs_react_promise.UsePromiseState | undefined];
12
+
13
+ type RouteOptions = 'routeParam' | 'searchParam' | 'any';
14
+ declare const useParseHuriFromRoute: (routeOption?: RouteOptions) => string | undefined;
15
+
16
+ export { type RouteOptions, useBuildHuri, useFetchHuri, useParseHuriFromRoute };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/react-payload-huri",
3
- "version": "4.4.3",
3
+ "version": "4.4.4",
4
4
  "description": "Common React library for all XYO projects that use React",
5
5
  "keywords": [
6
6
  "xyo",
@@ -46,14 +46,14 @@
46
46
  "@xylabs/react-promise": "^5.3.23",
47
47
  "@xyo-network/diviner-huri": "^3.9.2",
48
48
  "@xyo-network/diviner-model": "^3.9.2",
49
- "@xyo-network/react-network": "^4.4.3",
49
+ "@xyo-network/react-network": "^4.4.4",
50
50
  "react-router-dom": "^7.1.5"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@mui/icons-material": "^6.4.4",
54
54
  "@mui/material": "^6.4.4",
55
55
  "@mui/styles": "^6.4.4",
56
- "@xylabs/ts-scripts-yarn3": "^4.2.6",
56
+ "@xylabs/ts-scripts-yarn3": "^5.0.24",
57
57
  "react": "^18.3.1",
58
58
  "react-dom": "^18.3.1",
59
59
  "typescript": "^5.7.3"
@@ -1,4 +0,0 @@
1
- export * from './useBuildHuri.tsx';
2
- export * from './useFetchHuri.tsx';
3
- export * from './useParseHuriFromRoute.tsx';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,oBAAoB,CAAA;AAClC,cAAc,6BAA6B,CAAA"}
@@ -1,2 +0,0 @@
1
- export declare const useBuildHuri: (hash?: string) => string | undefined;
2
- //# sourceMappingURL=useBuildHuri.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useBuildHuri.d.ts","sourceRoot":"","sources":["../../../src/hooks/useBuildHuri.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,UAAW,MAAM,uBASzC,CAAA"}
@@ -1,5 +0,0 @@
1
- import type { DivinerInstance } from '@xyo-network/diviner-model';
2
- export declare const useFetchHuri: (hashOrHuri?: string, diviner?: DivinerInstance, token?: string) => [import("@xyo-network/diviner-model").DivinerDivineResult<import("@xylabs/object").DeepRestrictToStringKeys<{
3
- schema: import("@xyo-network/payload-model").Schema;
4
- }>>[] | undefined, Error | undefined, import("@xylabs/react-promise").UsePromiseState | undefined];
5
- //# sourceMappingURL=useFetchHuri.d.ts.map
@@ -1 +0,0 @@
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,gBAAiB,MAAM,YAAY,eAAe,UAAU,MAAM;;kGAY1F,CAAA"}
@@ -1,3 +0,0 @@
1
- export type RouteOptions = 'routeParam' | 'searchParam' | 'any';
2
- export declare const useParseHuriFromRoute: (routeOption?: RouteOptions) => string | undefined;
3
- //# sourceMappingURL=useParseHuriFromRoute.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useParseHuriFromRoute.d.ts","sourceRoot":"","sources":["../../../src/hooks/useParseHuriFromRoute.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,YAAY,GAAG,YAAY,GAAG,aAAa,GAAG,KAAK,CAAA;AAE/D,eAAO,MAAM,qBAAqB,iBAAiB,YAAY,uBAoB9D,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA"}