@xyo-network/react-schema 4.4.2 → 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.
Files changed (41) hide show
  1. package/dist/browser/index.d.ts +130 -4
  2. package/package.json +34 -34
  3. package/dist/browser/components/Property/SchemaProperty.d.ts +0 -40
  4. package/dist/browser/components/Property/SchemaProperty.d.ts.map +0 -1
  5. package/dist/browser/components/Property/index.d.ts +0 -2
  6. package/dist/browser/components/Property/index.d.ts.map +0 -1
  7. package/dist/browser/components/SelectEx/SchemaSelectEx.d.ts +0 -5
  8. package/dist/browser/components/SelectEx/SchemaSelectEx.d.ts.map +0 -1
  9. package/dist/browser/components/SelectEx/index.d.ts +0 -2
  10. package/dist/browser/components/SelectEx/index.d.ts.map +0 -1
  11. package/dist/browser/components/index.d.ts +0 -3
  12. package/dist/browser/components/index.d.ts.map +0 -1
  13. package/dist/browser/contexts/Schema/Context.d.ts +0 -3
  14. package/dist/browser/contexts/Schema/Context.d.ts.map +0 -1
  15. package/dist/browser/contexts/Schema/Provider/Memory.d.ts +0 -5
  16. package/dist/browser/contexts/Schema/Provider/Memory.d.ts.map +0 -1
  17. package/dist/browser/contexts/Schema/Provider/Props.d.ts +0 -5
  18. package/dist/browser/contexts/Schema/Provider/Props.d.ts.map +0 -1
  19. package/dist/browser/contexts/Schema/Provider/Route.d.ts +0 -5
  20. package/dist/browser/contexts/Schema/Provider/Route.d.ts.map +0 -1
  21. package/dist/browser/contexts/Schema/Provider/index.d.ts +0 -4
  22. package/dist/browser/contexts/Schema/Provider/index.d.ts.map +0 -1
  23. package/dist/browser/contexts/Schema/State.d.ts +0 -13
  24. package/dist/browser/contexts/Schema/State.d.ts.map +0 -1
  25. package/dist/browser/contexts/Schema/index.d.ts +0 -5
  26. package/dist/browser/contexts/Schema/index.d.ts.map +0 -1
  27. package/dist/browser/contexts/Schema/use.d.ts +0 -3
  28. package/dist/browser/contexts/Schema/use.d.ts.map +0 -1
  29. package/dist/browser/contexts/index.d.ts +0 -2
  30. package/dist/browser/contexts/index.d.ts.map +0 -1
  31. package/dist/browser/hooks/index.d.ts +0 -5
  32. package/dist/browser/hooks/index.d.ts.map +0 -1
  33. package/dist/browser/hooks/useGetSchema.d.ts +0 -45
  34. package/dist/browser/hooks/useGetSchema.d.ts.map +0 -1
  35. package/dist/browser/hooks/useSchemaDefinitions.d.ts +0 -6
  36. package/dist/browser/hooks/useSchemaDefinitions.d.ts.map +0 -1
  37. package/dist/browser/hooks/useSchemaList.d.ts +0 -4
  38. package/dist/browser/hooks/useSchemaList.d.ts.map +0 -1
  39. package/dist/browser/hooks/useSchemaStats.d.ts +0 -5
  40. package/dist/browser/hooks/useSchemaStats.d.ts.map +0 -1
  41. package/dist/browser/index.d.ts.map +0 -1
@@ -1,4 +1,130 @@
1
- export * from './components/index.ts';
2
- export * from './contexts/index.ts';
3
- export * from './hooks/index.ts';
4
- //# sourceMappingURL=index.d.ts.map
1
+ import * as _mui_material_OverridableComponent from '@mui/material/OverridableComponent';
2
+ import * as _mui_material from '@mui/material';
3
+ import * as _xylabs_react_flexbox from '@xylabs/react-flexbox';
4
+ import * as _xyo_network_react_shared from '@xyo-network/react-shared';
5
+ import { ContextExState } from '@xyo-network/react-shared';
6
+ import * as _xyo_network_react_property from '@xyo-network/react-property';
7
+ import { PropertyProps } from '@xyo-network/react-property';
8
+ import * as React from 'react';
9
+ import React__default, { Dispatch, PropsWithChildren, SetStateAction } from 'react';
10
+ import { SelectExProps } from '@xylabs/react-select';
11
+ import * as _xylabs_hex from '@xylabs/hex';
12
+ import { Address } from '@xylabs/hex';
13
+ import * as _xyo_network_huri from '@xyo-network/huri';
14
+ import * as _xylabs_object from '@xylabs/object';
15
+ import * as _xyo_network_payload_model from '@xyo-network/payload-model';
16
+ import { WithSources } from '@xyo-network/payload-model';
17
+ import { SchemaPayload } from '@xyo-network/schema-payload-plugin';
18
+ import { SchemaListPayload } from '@xyo-network/diviner-schema-list-model';
19
+ import { SchemaStatsPayload } from '@xyo-network/diviner-schema-stats-model';
20
+
21
+ type SchemaPropertyProps = PropertyProps & {
22
+ showLinkNames?: boolean;
23
+ showOpenNewWindowLink?: boolean;
24
+ showStatusIcon?: boolean;
25
+ value?: string;
26
+ };
27
+ declare const SchemaProperty: React__default.ForwardRefExoticComponent<((_xyo_network_react_property.PropertyBaseProps & {
28
+ actions?: _xyo_network_react_property.PropertyAction[];
29
+ badge?: boolean;
30
+ required?: boolean;
31
+ size?: _xyo_network_react_shared.SizeProp;
32
+ value?: string | number | boolean | null;
33
+ } & _xylabs_react_flexbox.BusyBoxProps & {
34
+ paper?: false;
35
+ } & {
36
+ showLinkNames?: boolean;
37
+ showOpenNewWindowLink?: boolean;
38
+ showStatusIcon?: boolean;
39
+ value?: string;
40
+ }) | Omit<_xyo_network_react_property.PropertyBaseProps & {
41
+ actions?: _xyo_network_react_property.PropertyAction[];
42
+ badge?: boolean;
43
+ required?: boolean;
44
+ size?: _xyo_network_react_shared.SizeProp;
45
+ value?: string | number | boolean | null;
46
+ } & _mui_material.PaperOwnProps & _mui_material_OverridableComponent.CommonProps & Omit<Omit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
47
+ ref?: ((instance: HTMLDivElement | null) => void | React__default.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React__default.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React__default.RefObject<HTMLDivElement> | null | undefined;
48
+ }, "className" | "style" | "classes" | "children" | "elevation" | "square" | "sx" | "variant"> & {
49
+ component?: React__default.ElementType;
50
+ } & {
51
+ paper: true;
52
+ } & {
53
+ showLinkNames?: boolean;
54
+ showOpenNewWindowLink?: boolean;
55
+ showStatusIcon?: boolean;
56
+ value?: string;
57
+ }, "ref">) & React__default.RefAttributes<HTMLDivElement>>;
58
+
59
+ type SchemaSelectExProps = SelectExProps<string>;
60
+ declare const SchemaSelectEx: React__default.FC<SchemaSelectExProps>;
61
+
62
+ interface SchemaContextState extends ContextExState {
63
+ schema?: string;
64
+ schemaList?: string[];
65
+ setSchema?: Dispatch<string>;
66
+ setSchemaList?: Dispatch<string[]>;
67
+ }
68
+
69
+ declare const SchemaContext: React.Context<SchemaContextState & _xyo_network_react_shared.ContextExState>;
70
+
71
+ interface SchemaProviderProps {
72
+ defaultSchema?: string;
73
+ knownSchemaList?: string[];
74
+ }
75
+
76
+ declare const SchemaMemoryProvider: React__default.FC<PropsWithChildren<SchemaProviderProps>>;
77
+
78
+ declare const SchemaRouteProvider: React__default.FC<PropsWithChildren<SchemaProviderProps>>;
79
+
80
+ declare const useSchema: (required?: boolean) => Omit<SchemaContextState, "provided">;
81
+
82
+ declare const useGetSchemaPayload: (schema?: string) => {
83
+ notFound: boolean;
84
+ schemaHuri: _xyo_network_huri.Huri<_xylabs_object.DeepRestrictToStringKeys<{
85
+ schema: _xyo_network_payload_model.Schema;
86
+ }>> | undefined;
87
+ schemaPayload: SchemaPayload | null | undefined;
88
+ xyoError: WithSources<_xylabs_object.DeepRestrictToStringKeys<{
89
+ schema: "network.xyo.error.module";
90
+ details?: string | number | boolean | {
91
+ [x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
92
+ } | (string | number | boolean | {
93
+ [x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
94
+ } | (string | number | boolean | {
95
+ [x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
96
+ } | (string | number | boolean | {
97
+ [x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
98
+ } | (string | number | boolean | {
99
+ [x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
100
+ } | (string | number | boolean | {
101
+ [x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
102
+ } | (string | number | boolean | {
103
+ [x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null;
104
+ } | (string | number | boolean | {
105
+ [x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null;
106
+ } | (string | number | boolean | {
107
+ [x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null;
108
+ } | (string | number | boolean | {
109
+ [x: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null;
110
+ } | (string | number | boolean | {
111
+ [x: string]: string | number | boolean | any | (string | number | boolean | any | any | null)[] | null;
112
+ } | (string | number | boolean | {
113
+ [x: string]: string | number | boolean | any | any | null;
114
+ } | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null | undefined;
115
+ message?: string | undefined;
116
+ name?: string | undefined;
117
+ query?: _xylabs_hex.Hash | undefined;
118
+ }>> | undefined;
119
+ };
120
+
121
+ type SchemaList = {
122
+ name: string;
123
+ };
124
+ declare const useSchemaDefinitions: (schemaList?: SchemaList[]) => SchemaPayload[] | undefined;
125
+
126
+ declare const useSchemaList: (address?: Address, nameOrAddress?: string) => [SchemaListPayload | null | undefined, Error | undefined];
127
+
128
+ declare const useSchemaStats: (statsAddress?: Address, nameOrAddress?: string) => [SchemaStatsPayload[] | undefined, Error | undefined, Dispatch<SetStateAction<number>>];
129
+
130
+ export { SchemaContext, type SchemaContextState, type SchemaList, SchemaMemoryProvider, SchemaProperty, type SchemaPropertyProps, type SchemaProviderProps, SchemaRouteProvider, SchemaSelectEx, type SchemaSelectExProps, useGetSchemaPayload, useSchema, useSchemaDefinitions, useSchemaList, useSchemaStats };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/react-schema",
3
- "version": "4.4.2",
3
+ "version": "4.4.4",
4
4
  "description": "Common React library for all XYO projects that use React",
5
5
  "keywords": [
6
6
  "xyo",
@@ -45,45 +45,45 @@
45
45
  "dependencies": {
46
46
  "@xylabs/exists": "^4.5.1",
47
47
  "@xylabs/hex": "^4.5.1",
48
- "@xylabs/react-async-effect": "^5.3.22",
49
- "@xylabs/react-flexbox": "^5.3.22",
50
- "@xylabs/react-link": "^5.3.22",
51
- "@xylabs/react-promise": "^5.3.22",
52
- "@xylabs/react-select": "^5.3.22",
53
- "@xyo-network/diviner-schema-list-model": "^3.7.1",
54
- "@xyo-network/diviner-schema-stats-model": "^3.7.1",
55
- "@xyo-network/node-core-types": "^3.2.4",
56
- "@xyo-network/payload-builder": "^3.7.1",
57
- "@xyo-network/payload-model": "^3.7.1",
58
- "@xyo-network/react-diviner": "^4.4.2",
59
- "@xyo-network/react-event": "^4.4.2",
60
- "@xyo-network/react-property": "^4.4.2",
61
- "@xyo-network/react-shared": "^4.4.2",
62
- "@xyo-network/schema-cache": "^3.7.1",
63
- "@xyo-network/schema-payload-plugin": "^3.7.1",
64
- "react-router-dom": "^7.1.3"
48
+ "@xylabs/react-async-effect": "^5.3.23",
49
+ "@xylabs/react-flexbox": "^5.3.23",
50
+ "@xylabs/react-link": "^5.3.23",
51
+ "@xylabs/react-promise": "^5.3.23",
52
+ "@xylabs/react-select": "^5.3.23",
53
+ "@xyo-network/diviner-schema-list-model": "^3.9.2",
54
+ "@xyo-network/diviner-schema-stats-model": "^3.9.2",
55
+ "@xyo-network/node-core-types": "^3.3.5",
56
+ "@xyo-network/payload-builder": "^3.9.2",
57
+ "@xyo-network/payload-model": "^3.9.2",
58
+ "@xyo-network/react-diviner": "^4.4.4",
59
+ "@xyo-network/react-event": "^4.4.4",
60
+ "@xyo-network/react-property": "^4.4.4",
61
+ "@xyo-network/react-shared": "^4.4.4",
62
+ "@xyo-network/schema-cache": "^3.9.2",
63
+ "@xyo-network/schema-payload-plugin": "^3.9.2",
64
+ "react-router-dom": "^7.1.5"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@emotion/react": "^11.14.0",
68
68
  "@emotion/styled": "^11.14.0",
69
- "@mui/icons-material": "^6.4.1",
70
- "@mui/material": "^6.4.1",
71
- "@mui/styles": "^6.4.1",
72
- "@storybook/react": "^8.5.2",
73
- "@xylabs/react-flexbox": "^5.3.22",
74
- "@xylabs/react-hooks": "^5.3.22",
75
- "@xylabs/ts-scripts-yarn3": "^4.2.6",
76
- "@xylabs/tsconfig-react": "^4.2.6",
77
- "@xyo-network/bridge-http": "^3.7.1",
78
- "@xyo-network/node-memory": "^3.7.1",
79
- "@xyo-network/node-model": "^3.7.1",
80
- "@xyo-network/react-node": "^4.4.2",
81
- "@xyo-network/react-payload-raw-info": "^4.4.2",
82
- "@xyo-network/react-storybook": "^4.4.2",
83
- "@xyo-network/react-wallet": "^4.4.2",
69
+ "@mui/icons-material": "^6.4.4",
70
+ "@mui/material": "^6.4.4",
71
+ "@mui/styles": "^6.4.4",
72
+ "@storybook/react": "^8.5.5",
73
+ "@xylabs/react-flexbox": "^5.3.23",
74
+ "@xylabs/react-hooks": "^5.3.23",
75
+ "@xylabs/ts-scripts-yarn3": "^5.0.24",
76
+ "@xylabs/tsconfig-react": "^5.0.24",
77
+ "@xyo-network/bridge-http": "^3.9.2",
78
+ "@xyo-network/node-memory": "^3.9.2",
79
+ "@xyo-network/node-model": "^3.9.2",
80
+ "@xyo-network/react-node": "^4.4.4",
81
+ "@xyo-network/react-payload-raw-info": "^4.4.4",
82
+ "@xyo-network/react-storybook": "^4.4.4",
83
+ "@xyo-network/react-wallet": "^4.4.4",
84
84
  "react": "^18.3.1",
85
85
  "react-dom": "^18.3.1",
86
- "storybook": "^8.5.2",
86
+ "storybook": "^8.5.5",
87
87
  "typescript": "^5.7.3"
88
88
  },
89
89
  "peerDependencies": {
@@ -1,40 +0,0 @@
1
- import type { PropertyProps } from '@xyo-network/react-property';
2
- import React from 'react';
3
- export type SchemaPropertyProps = PropertyProps & {
4
- showLinkNames?: boolean;
5
- showOpenNewWindowLink?: boolean;
6
- showStatusIcon?: boolean;
7
- value?: string;
8
- };
9
- export declare const SchemaProperty: React.ForwardRefExoticComponent<((import("@xyo-network/react-property").PropertyBaseProps & {
10
- actions?: import("@xyo-network/react-property").PropertyAction[];
11
- badge?: boolean;
12
- required?: boolean;
13
- size?: import("@xyo-network/react-shared").SizeProp;
14
- value?: string | number | boolean | null;
15
- } & import("@xylabs/react-flexbox").BusyBoxProps & {
16
- paper?: false;
17
- } & {
18
- showLinkNames?: boolean;
19
- showOpenNewWindowLink?: boolean;
20
- showStatusIcon?: boolean;
21
- value?: string;
22
- }) | Omit<import("@xyo-network/react-property").PropertyBaseProps & {
23
- actions?: import("@xyo-network/react-property").PropertyAction[];
24
- badge?: boolean;
25
- required?: boolean;
26
- size?: import("@xyo-network/react-shared").SizeProp;
27
- value?: string | number | boolean | null;
28
- } & import("@mui/material").PaperOwnProps & import("@mui/material/OverridableComponent.js").CommonProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
29
- ref?: ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLDivElement> | null | undefined;
30
- }, "className" | "style" | "classes" | "children" | "elevation" | "square" | "sx" | "variant"> & {
31
- component?: React.ElementType;
32
- } & {
33
- paper: true;
34
- } & {
35
- showLinkNames?: boolean;
36
- showOpenNewWindowLink?: boolean;
37
- showStatusIcon?: boolean;
38
- value?: string;
39
- }, "ref">) & React.RefAttributes<HTMLDivElement>>;
40
- //# sourceMappingURL=SchemaProperty.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SchemaProperty.d.ts","sourceRoot":"","sources":["../../../../src/components/Property/SchemaProperty.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAA;AAIhE,OAAO,KAA+B,MAAM,OAAO,CAAA;AAEnD,MAAM,MAAM,mBAAmB,GAAG,aAAa,GAAG;IAChD,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAkBD,eAAO,MAAM,cAAc;;;;;;;;;oBAtBT,OAAO;4BACC,OAAO;qBACd,OAAO;YAChB,MAAM;;;;;;;;;;gBAuCoD,MAAO,WAAW;;;;oBA1CpE,OAAO;4BACC,OAAO;qBACd,OAAO;YAChB,MAAM;iDAsIf,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from './SchemaProperty.tsx';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Property/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA"}
@@ -1,5 +0,0 @@
1
- import type { SelectExProps } from '@xylabs/react-select';
2
- import React from 'react';
3
- export type SchemaSelectExProps = SelectExProps<string>;
4
- export declare const SchemaSelectEx: React.FC<SchemaSelectExProps>;
5
- //# sourceMappingURL=SchemaSelectEx.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SchemaSelectEx.d.ts","sourceRoot":"","sources":["../../../../src/components/SelectEx/SchemaSelectEx.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEzD,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,MAAM,MAAM,mBAAmB,GAAG,aAAa,CAAC,MAAM,CAAC,CAAA;AAEvD,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAmCxD,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from './SchemaSelectEx.tsx';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/SelectEx/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from './Property/index.ts';
2
- export * from './SelectEx/index.ts';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,qBAAqB,CAAA"}
@@ -1,3 +0,0 @@
1
- import type { SchemaContextState } from './State.ts';
2
- export declare const SchemaContext: import("react").Context<SchemaContextState & import("@xyo-network/react-shared").ContextExState>;
3
- //# sourceMappingURL=Context.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../../src/contexts/Schema/Context.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAEpD,eAAO,MAAM,aAAa,kGAAwC,CAAA"}
@@ -1,5 +0,0 @@
1
- import type { PropsWithChildren } from 'react';
2
- import React from 'react';
3
- import type { SchemaProviderProps } from './Props.ts';
4
- export declare const SchemaMemoryProvider: React.FC<PropsWithChildren<SchemaProviderProps>>;
5
- //# sourceMappingURL=Memory.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Memory.d.ts","sourceRoot":"","sources":["../../../../../src/contexts/Schema/Provider/Memory.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAC9C,OAAO,KAA4B,MAAM,OAAO,CAAA;AAIhD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAErD,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAAC,mBAAmB,CAAC,CAmBjF,CAAA"}
@@ -1,5 +0,0 @@
1
- export interface SchemaProviderProps {
2
- defaultSchema?: string;
3
- knownSchemaList?: string[];
4
- }
5
- //# sourceMappingURL=Props.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Props.d.ts","sourceRoot":"","sources":["../../../../../src/contexts/Schema/Provider/Props.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAClC,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAA;CAC3B"}
@@ -1,5 +0,0 @@
1
- import type { PropsWithChildren } from 'react';
2
- import React from 'react';
3
- import type { SchemaProviderProps } from './Props.ts';
4
- export declare const SchemaRouteProvider: React.FC<PropsWithChildren<SchemaProviderProps>>;
5
- //# sourceMappingURL=Route.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Route.d.ts","sourceRoot":"","sources":["../../../../../src/contexts/Schema/Provider/Route.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAC9C,OAAO,KAEN,MAAM,OAAO,CAAA;AAMd,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAsDrD,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAAC,mBAAmB,CAAC,CAQhF,CAAA"}
@@ -1,4 +0,0 @@
1
- export * from './Memory.tsx';
2
- export * from './Props.ts';
3
- export * from './Route.tsx';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/contexts/Schema/Provider/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA"}
@@ -1,13 +0,0 @@
1
- import type { ContextExState } from '@xyo-network/react-shared';
2
- import type { Dispatch } from 'react';
3
- export interface SchemaContextState extends ContextExState {
4
- /** @field The currently selected XYO Schema */
5
- schema?: string;
6
- /** @field The list of known available schema */
7
- schemaList?: string[];
8
- /** @field Function to set the selected Schema */
9
- setSchema?: Dispatch<string>;
10
- /** @field Function to set the list of known available schema */
11
- setSchemaList?: Dispatch<string[]>;
12
- }
13
- //# sourceMappingURL=State.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../../../src/contexts/Schema/State.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAErC,MAAM,WAAW,kBAAmB,SAAQ,cAAc;IACxD,+CAA+C;IAC/C,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,gDAAgD;IAChD,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,iDAAiD;IACjD,SAAS,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAA;IAC5B,gEAAgE;IAChE,aAAa,CAAC,EAAE,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAA;CACnC"}
@@ -1,5 +0,0 @@
1
- export * from './Context.ts';
2
- export * from './Provider/index.ts';
3
- export * from './State.ts';
4
- export * from './use.ts';
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/contexts/Schema/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,qBAAqB,CAAA;AACnC,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA"}
@@ -1,3 +0,0 @@
1
- import type { SchemaContextState } from './State.ts';
2
- export declare const useSchema: (required?: boolean) => Omit<SchemaContextState, "provided">;
3
- //# sourceMappingURL=use.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../../src/contexts/Schema/use.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAEpD,eAAO,MAAM,SAAS,8DAErB,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from './Schema/index.ts';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/contexts/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA"}
@@ -1,5 +0,0 @@
1
- export * from './useGetSchema.tsx';
2
- export * from './useSchemaDefinitions.tsx';
3
- export * from './useSchemaList.tsx';
4
- export * from './useSchemaStats.tsx';
5
- //# 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,4BAA4B,CAAA;AAC1C,cAAc,qBAAqB,CAAA;AACnC,cAAc,sBAAsB,CAAA"}
@@ -1,45 +0,0 @@
1
- import type { WithSources } from '@xyo-network/payload-model';
2
- import type { SchemaPayload } from '@xyo-network/schema-payload-plugin';
3
- /**
4
- * Gets a Huri and schema payload from a schema string
5
- */
6
- declare const useGetSchemaPayload: (schema?: string) => {
7
- notFound: boolean;
8
- schemaHuri: import("@xyo-network/huri").Huri<import("@xylabs/object").DeepRestrictToStringKeys<{
9
- schema: import("@xyo-network/payload-model").Schema;
10
- }>> | undefined;
11
- schemaPayload: SchemaPayload | null | undefined;
12
- xyoError: WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
13
- schema: "network.xyo.error.module";
14
- details?: string | number | boolean | {
15
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
16
- } | (string | number | boolean | {
17
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
18
- } | (string | number | boolean | {
19
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
20
- } | (string | number | boolean | {
21
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
22
- } | (string | number | boolean | {
23
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
24
- } | (string | number | boolean | {
25
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
26
- } | (string | number | boolean | {
27
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null;
28
- } | (string | number | boolean | {
29
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null;
30
- } | (string | number | boolean | {
31
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null)[] | null;
32
- } | (string | number | boolean | {
33
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null)[] | null;
34
- } | (string | number | boolean | {
35
- [x: string]: string | number | boolean | /*elided*/ any | (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | null;
36
- } | (string | number | boolean | {
37
- [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null;
38
- } | /*elided*/ any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null | undefined;
39
- message?: string | undefined;
40
- name?: string | undefined;
41
- query?: import("@xylabs/hex").Hash | undefined;
42
- }>> | undefined;
43
- };
44
- export { useGetSchemaPayload };
45
- //# sourceMappingURL=useGetSchema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useGetSchema.d.ts","sourceRoot":"","sources":["../../../src/hooks/useGetSchema.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAe,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAI1E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAA;AAGvE;;GAEG;AACH,QAAA,MAAM,mBAAmB,YAAa,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0C3C,CAAA;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAA"}
@@ -1,6 +0,0 @@
1
- import type { SchemaPayload } from '@xyo-network/schema-payload-plugin';
2
- export type SchemaList = {
3
- name: string;
4
- };
5
- export declare const useSchemaDefinitions: (schemaList?: SchemaList[]) => SchemaPayload[] | undefined;
6
- //# sourceMappingURL=useSchemaDefinitions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useSchemaDefinitions.d.ts","sourceRoot":"","sources":["../../../src/hooks/useSchemaDefinitions.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAA;AAGvE,MAAM,MAAM,UAAU,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAA;AAEzC,eAAO,MAAM,oBAAoB,gBAAiB,UAAU,EAAE,KAAG,aAAa,EAAE,GAAG,SAkBlF,CAAA"}
@@ -1,4 +0,0 @@
1
- import type { Address } from '@xylabs/hex';
2
- import type { SchemaListPayload } from '@xyo-network/diviner-schema-list-model';
3
- export declare const useSchemaList: (address?: Address, nameOrAddress?: string) => [SchemaListPayload | null | undefined, Error | undefined];
4
- //# sourceMappingURL=useSchemaList.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useSchemaList.d.ts","sourceRoot":"","sources":["../../../src/hooks/useSchemaList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAE1C,OAAO,KAAK,EAAE,iBAAiB,EAA0B,MAAM,wCAAwC,CAAA;AAKvG,eAAO,MAAM,aAAa,aAAc,OAAO,6BAAwC,CAAC,iBAAiB,GAAG,IAAI,GAAG,SAAS,EAAE,KAAK,GAAG,SAAS,CA2B9I,CAAA"}
@@ -1,5 +0,0 @@
1
- import type { Address } from '@xylabs/hex';
2
- import type { SchemaStatsPayload } from '@xyo-network/diviner-schema-stats-model';
3
- import type { Dispatch, SetStateAction } from 'react';
4
- export declare const useSchemaStats: (statsAddress?: Address, nameOrAddress?: string) => [SchemaStatsPayload[] | undefined, Error | undefined, Dispatch<SetStateAction<number>>];
5
- //# sourceMappingURL=useSchemaStats.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useSchemaStats.d.ts","sourceRoot":"","sources":["../../../src/hooks/useSchemaStats.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAE1C,OAAO,KAAK,EACV,kBAAkB,EAEnB,MAAM,yCAAyC,CAAA;AAShD,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAGrD,eAAO,MAAM,cAAc,kBACV,OAAO,6BAErB,CAAC,kBAAkB,EAAE,GAAG,SAAS,EAAE,KAAK,GAAG,SAAS,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CA6CxF,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AACrC,cAAc,qBAAqB,CAAA;AACnC,cAAc,kBAAkB,CAAA"}