@xyo-network/react-schema 2.26.17 → 2.26.20

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 (58) hide show
  1. package/dist/cjs/components/Property/SchemaProperty.d.ts +7 -0
  2. package/dist/cjs/components/Property/SchemaProperty.js +36 -0
  3. package/dist/cjs/components/Property/SchemaProperty.js.map +1 -0
  4. package/dist/cjs/components/Property/index.d.ts +1 -0
  5. package/dist/cjs/components/Property/index.js +5 -0
  6. package/dist/cjs/components/Property/index.js.map +1 -0
  7. package/dist/cjs/components/SelectEx/SchemaSelectEx.d.ts +4 -0
  8. package/dist/cjs/components/SelectEx/SchemaSelectEx.js +24 -0
  9. package/dist/cjs/components/SelectEx/SchemaSelectEx.js.map +1 -0
  10. package/dist/cjs/components/SelectEx/index.d.ts +1 -0
  11. package/dist/cjs/components/SelectEx/index.js +5 -0
  12. package/dist/cjs/components/SelectEx/index.js.map +1 -0
  13. package/dist/cjs/components/index.d.ts +2 -0
  14. package/dist/cjs/components/index.js +6 -0
  15. package/dist/cjs/components/index.js.map +1 -0
  16. package/dist/cjs/contexts/Schema/Context.d.ts +3 -0
  17. package/dist/cjs/contexts/Schema/Context.js +6 -0
  18. package/dist/cjs/contexts/Schema/Context.js.map +1 -0
  19. package/dist/cjs/contexts/Schema/Hooks/index.d.ts +3 -0
  20. package/dist/cjs/contexts/Schema/Hooks/index.js +7 -0
  21. package/dist/cjs/contexts/Schema/Hooks/index.js.map +1 -0
  22. package/dist/cjs/contexts/Schema/Hooks/useSchemaDefinitions.d.ts +2 -0
  23. package/dist/cjs/contexts/Schema/Hooks/useSchemaDefinitions.js +27 -0
  24. package/dist/cjs/contexts/Schema/Hooks/useSchemaDefinitions.js.map +1 -0
  25. package/dist/cjs/contexts/Schema/Hooks/useSchemaList.d.ts +2 -0
  26. package/dist/cjs/contexts/Schema/Hooks/useSchemaList.js +26 -0
  27. package/dist/cjs/contexts/Schema/Hooks/useSchemaList.js.map +1 -0
  28. package/dist/cjs/contexts/Schema/Hooks/useSchemaStats.d.ts +2 -0
  29. package/dist/cjs/contexts/Schema/Hooks/useSchemaStats.js +26 -0
  30. package/dist/cjs/contexts/Schema/Hooks/useSchemaStats.js.map +1 -0
  31. package/dist/cjs/contexts/Schema/Provider/Memory.d.ts +4 -0
  32. package/dist/cjs/contexts/Schema/Provider/Memory.js +16 -0
  33. package/dist/cjs/contexts/Schema/Provider/Memory.js.map +1 -0
  34. package/dist/cjs/contexts/Schema/Provider/Props.d.ts +4 -0
  35. package/dist/cjs/contexts/Schema/Provider/Props.js +3 -0
  36. package/dist/cjs/contexts/Schema/Provider/Props.js.map +1 -0
  37. package/dist/cjs/contexts/Schema/Provider/Route.d.ts +4 -0
  38. package/dist/cjs/contexts/Schema/Provider/Route.js +51 -0
  39. package/dist/cjs/contexts/Schema/Provider/Route.js.map +1 -0
  40. package/dist/cjs/contexts/Schema/Provider/index.d.ts +3 -0
  41. package/dist/cjs/contexts/Schema/Provider/index.js +7 -0
  42. package/dist/cjs/contexts/Schema/Provider/index.js.map +1 -0
  43. package/dist/cjs/contexts/Schema/State.d.ts +12 -0
  44. package/dist/cjs/contexts/Schema/State.js +3 -0
  45. package/dist/cjs/contexts/Schema/State.js.map +1 -0
  46. package/dist/cjs/contexts/Schema/index.d.ts +5 -0
  47. package/dist/cjs/contexts/Schema/index.js +9 -0
  48. package/dist/cjs/contexts/Schema/index.js.map +1 -0
  49. package/dist/cjs/contexts/Schema/use.d.ts +2 -0
  50. package/dist/cjs/contexts/Schema/use.js +10 -0
  51. package/dist/cjs/contexts/Schema/use.js.map +1 -0
  52. package/dist/cjs/contexts/index.d.ts +1 -0
  53. package/dist/cjs/contexts/index.js +5 -0
  54. package/dist/cjs/contexts/index.js.map +1 -0
  55. package/dist/cjs/index.d.ts +2 -0
  56. package/dist/cjs/index.js +6 -0
  57. package/dist/cjs/index.js.map +1 -0
  58. package/package.json +12 -12
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { PropertyProps } from '@xyo-network/react-property';
3
+ export declare type SchemaPropertyProps = PropertyProps & {
4
+ value?: string;
5
+ viewSchemaUrl?: string;
6
+ };
7
+ export declare const SchemaProperty: React.FC<SchemaPropertyProps>;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SchemaProperty = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const jsx_runtime_1 = require("react/jsx-runtime");
6
+ const NewReleases_1 = tslib_1.__importDefault(require("@mui/icons-material/NewReleases"));
7
+ const OpenInNew_1 = tslib_1.__importDefault(require("@mui/icons-material/OpenInNew"));
8
+ const Verified_1 = tslib_1.__importDefault(require("@mui/icons-material/Verified"));
9
+ const material_1 = require("@mui/material");
10
+ const react_link_1 = require("@xylabs/react-link");
11
+ const react_shared_1 = require("@xylabs/react-shared");
12
+ const react_property_1 = require("@xyo-network/react-property");
13
+ const utils_1 = require("@xyo-network/utils");
14
+ const react_1 = require("react");
15
+ const useResolveSchema = (schema) => {
16
+ const [entry, setEntry] = (0, react_1.useState)();
17
+ (0, react_shared_1.useAsyncEffect)(
18
+ // eslint-disable-next-line react-hooks/exhaustive-deps
19
+ (mounted) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
20
+ if (schema) {
21
+ const entry = yield utils_1.XyoSchemaCache.instance.get(schema);
22
+ if (mounted()) {
23
+ setEntry(entry);
24
+ }
25
+ }
26
+ }), [schema]);
27
+ return entry;
28
+ };
29
+ const SchemaProperty = (_a) => {
30
+ var _b, _c;
31
+ var { titleProps, value, viewSchemaUrl = 'https://explore.xyo.network/' } = _a, props = tslib_1.__rest(_a, ["titleProps", "value", "viewSchemaUrl"]);
32
+ const resolvedSchema = useResolveSchema(value);
33
+ return ((0, jsx_runtime_1.jsxs)(react_property_1.Property, Object.assign({ title: "Schema", value: value, tip: "Schema sent with the payload", titleProps: titleProps }, props, { children: [value ? (resolvedSchema === null ? ((0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ rel: "noopener noreferrer", size: "small", target: "_blank", href: `${viewSchemaUrl}${value}` }, { children: (0, jsx_runtime_1.jsx)(NewReleases_1.default, { color: "warning", fontSize: "inherit" }) }))) : resolvedSchema === undefined ? ((0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ rel: "noopener noreferrer", size: "small", target: "_blank", href: `${viewSchemaUrl}${value}` }, { children: (0, jsx_runtime_1.jsx)(NewReleases_1.default, { color: "disabled", fontSize: "inherit" }) }))) : ((0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ rel: "noopener noreferrer", size: "small", target: "_blank", href: (_c = (_b = resolvedSchema === null || resolvedSchema === void 0 ? void 0 : resolvedSchema.huri) === null || _b === void 0 ? void 0 : _b.href) !== null && _c !== void 0 ? _c : '' }, { children: (0, jsx_runtime_1.jsx)(Verified_1.default, { color: "success", fontSize: "inherit" }) })))) : null, value ? ((0, jsx_runtime_1.jsx)(react_link_1.LinkEx, Object.assign({ flexGrow: 1, alignItems: "center", href: `${viewSchemaUrl}${value}`, rel: "noopener noreferrer", display: "flex" }, { children: (0, jsx_runtime_1.jsx)(react_property_1.PropertyValue, { value: value, title: "view schema in new window" }) }))) : null, value ? ((0, jsx_runtime_1.jsx)(react_link_1.LinkEx, Object.assign({ marginX: 1, alignItems: "center", href: `${viewSchemaUrl}${value}`, target: "_blank", rel: "noopener noreferrer", display: "flex" }, { children: (0, jsx_runtime_1.jsx)(OpenInNew_1.default, { fontSize: "inherit" }) }))) : null] })));
34
+ };
35
+ exports.SchemaProperty = SchemaProperty;
36
+ //# sourceMappingURL=SchemaProperty.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SchemaProperty.js","sourceRoot":"","sources":["../../../../src/components/Property/SchemaProperty.tsx"],"names":[],"mappings":";;;;;AAAA,0FAA6D;AAC7D,sFAAyD;AACzD,oFAAuD;AACvD,4CAA0C;AAC1C,mDAA2C;AAC3C,uDAAqD;AACrD,gEAAoF;AACpF,8CAAw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0 +1 @@
1
+ export * from './SchemaProperty';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./SchemaProperty"), exports);
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Property/index.ts"],"names":[],"mappings":";;;AAAA,2DAAgC"}
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { SelectExProps } from '@xylabs/react-common';
3
+ export declare type SchemaSelectExProps = SelectExProps<string>;
4
+ export declare const SchemaSelectEx: React.FC<SchemaSelectExProps>;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SchemaSelectEx = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const jsx_runtime_1 = require("react/jsx-runtime");
6
+ const material_1 = require("@mui/material");
7
+ const react_common_1 = require("@xylabs/react-common");
8
+ const contexts_1 = require("../../contexts");
9
+ const SchemaSelectEx = (_a) => {
10
+ var { onChange } = _a, props = tslib_1.__rest(_a, ["onChange"]);
11
+ const { schema, setSchema, schemaList } = (0, contexts_1.useSchema)(false);
12
+ return ((0, jsx_runtime_1.jsxs)(react_common_1.SelectEx, Object.assign({ variant: "outlined", size: "small", value: schema !== null && schema !== void 0 ? schema : 'none', onChange: (event, child) => {
13
+ if (event.target.value !== schema) {
14
+ onChange === null || onChange === void 0 ? void 0 : onChange(event, child);
15
+ setSchema === null || setSchema === void 0 ? void 0 : setSchema(event.target.value);
16
+ }
17
+ }, renderValue: (value) => {
18
+ return (0, jsx_runtime_1.jsx)(material_1.Typography, { children: value === 'none' ? '- None -' : value });
19
+ } }, props, { children: [schemaList === null || schemaList === void 0 ? void 0 : schemaList.map((schema, index) => {
20
+ return ((0, jsx_runtime_1.jsx)(material_1.MenuItem, Object.assign({ value: schema }, { children: schema }), index));
21
+ }), (0, jsx_runtime_1.jsx)(material_1.MenuItem, Object.assign({ value: "none" }, { children: "- None -" }), "none")] })));
22
+ };
23
+ exports.SchemaSelectEx = SchemaSelectEx;
24
+ //# sourceMappingURL=SchemaSelectEx.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SchemaSelectEx.js","sourceRoot":"","sources":["../../../../src/components/SelectEx/SchemaSelectEx.tsx"],"names":[],"mappings":";;;;;AAAA,4CAAoD;AACpD,uDAA8D;AAE9D,6CAA0C;AAInC,MAAM,cAAc,GAAkC,CAAC,EAAsB,EAAE,EAAE;QAA1B,EAAE,QAAQ,OAAY,EAAP,KAAK,sBAApB,YAAsB,CAAF;IAChF,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,GAAG,IAAA,oBAAS,EAAC,KAAK,CAAC,CAAA;IAE1D,OAAO,CACL,wBAAC,uBAAQ,kBACP,OAAO,EAAC,UAAU,EAClB,IAAI,EAAC,OAAO,EACZ,KAAK,EAAE,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,MAAM,EACvB,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;YACzB,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,KAAK,MAAM,EAAE;gBACjC,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAG,KAAK,EAAE,KAAK,CAAC,CAAA;gBACxB,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;aAChC;QACH,CAAC,EACD,WAAW,EAAE,CAAC,KAAK,EAAE,EAAE;YACrB,OAAO,uBAAC,qBAAU,cAAE,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,GAAc,CAAA;QACzE,CAAC,IACG,KAAK,eAER,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;gBACjC,OAAO,CACL,uBAAC,mBAAQ,kBAAa,KAAK,EAAE,MAAM,gBAChC,MAAM,KADM,KAAK,CAET,CACZ,CAAA;YACH,CAAC,CAAC,EACF,uBAAC,mBAAQ,kBAAY,KAAK,EAAC,MAAM,+BAAnB,MAAM,CAET,KACF,CACZ,CAAA;AACH,CAAC,CAAA;AA/BY,QAAA,cAAc,kBA+B1B"}
@@ -0,0 +1 @@
1
+ export * from './SchemaSelectEx';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./SchemaSelectEx"), exports);
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/SelectEx/index.ts"],"names":[],"mappings":";;;AAAA,2DAAgC"}
@@ -0,0 +1,2 @@
1
+ export * from './Property';
2
+ export * from './SelectEx';
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./Property"), exports);
5
+ tslib_1.__exportStar(require("./SelectEx"), exports);
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":";;;AAAA,qDAA0B;AAC1B,qDAA0B"}
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { SchemaContextState } from './State';
3
+ export declare const SchemaContext: import("react").Context<SchemaContextState & import("@xyo-network/react-shared").ContextExState>;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SchemaContext = void 0;
4
+ const react_shared_1 = require("@xyo-network/react-shared");
5
+ exports.SchemaContext = (0, react_shared_1.createContextEx)();
6
+ //# sourceMappingURL=Context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Context.js","sourceRoot":"","sources":["../../../../src/contexts/Schema/Context.ts"],"names":[],"mappings":";;;AAAA,4DAA2D;AAI9C,QAAA,aAAa,GAAG,IAAA,8BAAe,GAAsB,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './useSchemaDefinitions';
2
+ export * from './useSchemaList';
3
+ export * from './useSchemaStats';
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./useSchemaDefinitions"), exports);
5
+ tslib_1.__exportStar(require("./useSchemaList"), exports);
6
+ tslib_1.__exportStar(require("./useSchemaStats"), exports);
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/contexts/Schema/Hooks/index.ts"],"names":[],"mappings":";;;AAAA,iEAAsC;AACtC,0DAA+B;AAC/B,2DAAgC"}
@@ -0,0 +1,2 @@
1
+ import { XyoSchemaPayload } from '@xyo-network/payload';
2
+ export declare const useSchemaDefinitions: () => XyoSchemaPayload[] | undefined;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useSchemaDefinitions = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const react_shared_1 = require("@xylabs/react-shared");
6
+ const utils_1 = require("@xyo-network/utils");
7
+ const react_1 = require("react");
8
+ const useSchemaList_1 = require("./useSchemaList");
9
+ const useSchemaDefinitions = () => {
10
+ const [schemaList] = (0, useSchemaList_1.useSchemaList)();
11
+ const [schemaPayloads, setSchemaPayloads] = (0, react_1.useState)();
12
+ (0, react_shared_1.useAsyncEffect)(
13
+ // eslint-disable-next-line react-hooks/exhaustive-deps
14
+ (mounted) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
15
+ if (schemaList) {
16
+ const promiseResults = yield Promise.allSettled(schemaList === null || schemaList === void 0 ? void 0 : schemaList.map((schema) => utils_1.XyoSchemaCache.instance.get(schema)));
17
+ if (mounted()) {
18
+ setSchemaPayloads(promiseResults
19
+ .map((result) => { var _a; return (result.status === 'fulfilled' ? (_a = result.value) === null || _a === void 0 ? void 0 : _a.payload : undefined); })
20
+ .filter((item) => item !== undefined && item !== null));
21
+ }
22
+ }
23
+ }), [schemaList]);
24
+ return schemaPayloads;
25
+ };
26
+ exports.useSchemaDefinitions = useSchemaDefinitions;
27
+ //# sourceMappingURL=useSchemaDefinitions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSchemaDefinitions.js","sourceRoot":"","sources":["../../../../../src/contexts/Schema/Hooks/useSchemaDefinitions.tsx"],"names":[],"mappings":";;;;AAAA,uDAAqD;AAErD,8CAAmD;AACnD,iCAAgC;AAEhC,mDAA+C;AAExC,MAAM,oBAAoB,GAAG,GAAmC,EAAE;IACvE,MAAM,CAAC,UAAU,CAAC,GAAG,IAAA,6BAAa,GAAE,CAAA;IACpC,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,IAAA,gBAAQ,GAAsB,CAAA;IAC1E,IAAA,6BAAc;IACZ,uDAAuD;IACvD,CAAO,OAAO,EAAE,EAAE;QAChB,IAAI,UAAU,EAAE;YACd,MAAM,cAAc,GAAG,MAAM,OAAO,CAAC,UAAU,CAAC,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,sBAAc,CAAC,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA;YACjH,IAAI,OAAO,EAAE,EAAE;gBACb,iBAAiB,CACf,cAAc;qBACX,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,WAAC,OAAA,CAAC,MAAM,CAAC,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAA,MAAM,CAAC,KAAK,0CAAE,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA,EAAA,CAAC;qBACpF,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,IAAI,CAAuB,CAC/E,CAAA;aACF;SACF;IACH,CAAC,CAAA,EACD,CAAC,UAAU,CAAC,CACb,CAAA;IACD,OAAO,cAAc,CAAA;AACvB,CAAC,CAAA;AApBY,QAAA,oBAAoB,wBAoBhC"}
@@ -0,0 +1,2 @@
1
+ import { Dispatch } from 'react';
2
+ export declare const useSchemaList: (knownSchemaList?: string[]) => [string[] | undefined, Dispatch<string[]>];
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useSchemaList = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const react_shared_1 = require("@xylabs/react-shared");
6
+ const react_archive_1 = require("@xyo-network/react-archive");
7
+ const react_archivist_api_1 = require("@xyo-network/react-archivist-api");
8
+ const react_1 = require("react");
9
+ const useSchemaList = (knownSchemaList) => {
10
+ const { api } = (0, react_archivist_api_1.useArchivistApi)(false);
11
+ const { archive = 'temp' } = (0, react_archive_1.useArchive)(false);
12
+ const [schemaList, setSchemaList] = (0, react_1.useState)(knownSchemaList);
13
+ (0, react_shared_1.useAsyncEffect)(
14
+ // eslint-disable-next-line react-hooks/exhaustive-deps
15
+ (mounted) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
16
+ if (api && archive) {
17
+ const list = yield (api === null || api === void 0 ? void 0 : api.archive(archive).payload.schema.get());
18
+ if (mounted()) {
19
+ setSchemaList(list);
20
+ }
21
+ }
22
+ }), [api, archive]);
23
+ return [schemaList, setSchemaList];
24
+ };
25
+ exports.useSchemaList = useSchemaList;
26
+ //# sourceMappingURL=useSchemaList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSchemaList.js","sourceRoot":"","sources":["../../../../../src/contexts/Schema/Hooks/useSchemaList.tsx"],"names":[],"mappings":";;;;AAAA,uDAAqD;AACrD,8DAAuD;AACvD,0EAAkE;AAClE,iCAA0C;AAEnC,MAAM,aAAa,GAAG,CAAC,eAA0B,EAA8C,EAAE;IACtG,MAAM,EAAE,GAAG,EAAE,GAAG,IAAA,qCAAe,EAAC,KAAK,CAAC,CAAA;IACtC,MAAM,EAAE,OAAO,GAAG,MAAM,EAAE,GAAG,IAAA,0BAAU,EAAC,KAAK,CAAC,CAAA;IAC9C,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,IAAA,gBAAQ,EAAuB,eAAe,CAAC,CAAA;IAEnF,IAAA,6BAAc;IACZ,uDAAuD;IACvD,CAAO,OAAO,EAAE,EAAE;QAChB,IAAI,GAAG,IAAI,OAAO,EAAE;YAClB,MAAM,IAAI,GAAG,MAAM,CAAA,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,GAAG,EAAE,CAAA,CAAA;YAC7D,IAAI,OAAO,EAAE,EAAE;gBACb,aAAa,CAAC,IAAI,CAAC,CAAA;aACpB;SACF;IACH,CAAC,CAAA,EACD,CAAC,GAAG,EAAE,OAAO,CAAC,CACf,CAAA;IAED,OAAO,CAAC,UAAU,EAAE,aAAa,CAAC,CAAA;AACpC,CAAC,CAAA;AAnBY,QAAA,aAAa,iBAmBzB"}
@@ -0,0 +1,2 @@
1
+ import { XyoArchivistArchivePayloadSchemaStats } from '@xyo-network/api';
2
+ export declare const useSchemaStats: () => XyoArchivistArchivePayloadSchemaStats | undefined;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useSchemaStats = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const react_shared_1 = require("@xylabs/react-shared");
6
+ const react_archive_1 = require("@xyo-network/react-archive");
7
+ const react_archivist_api_1 = require("@xyo-network/react-archivist-api");
8
+ const react_1 = require("react");
9
+ const useSchemaStats = () => {
10
+ const { api } = (0, react_archivist_api_1.useArchivistApi)(false);
11
+ const { archive = 'temp' } = (0, react_archive_1.useArchive)(false);
12
+ const [stats, setStats] = (0, react_1.useState)();
13
+ (0, react_shared_1.useAsyncEffect)(
14
+ // eslint-disable-next-line react-hooks/exhaustive-deps
15
+ (mounted) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
16
+ if (api && archive) {
17
+ const stats = yield (api === null || api === void 0 ? void 0 : api.archive(archive).payload.schema.stats.get());
18
+ if (mounted()) {
19
+ setStats(stats);
20
+ }
21
+ }
22
+ }), [api, archive]);
23
+ return stats;
24
+ };
25
+ exports.useSchemaStats = useSchemaStats;
26
+ //# sourceMappingURL=useSchemaStats.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSchemaStats.js","sourceRoot":"","sources":["../../../../../src/contexts/Schema/Hooks/useSchemaStats.tsx"],"names":[],"mappings":";;;;AAAA,uDAAqD;AAErD,8DAAuD;AACvD,0EAAkE;AAClE,iCAAgC;AAEzB,MAAM,cAAc,GAAG,GAAsD,EAAE;IACpF,MAAM,EAAE,GAAG,EAAE,GAAG,IAAA,qCAAe,EAAC,KAAK,CAAC,CAAA;IACtC,MAAM,EAAE,OAAO,GAAG,MAAM,EAAE,GAAG,IAAA,0BAAU,EAAC,KAAK,CAAC,CAAA;IAC9C,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,IAAA,gBAAQ,GAAyC,CAAA;IAE3E,IAAA,6BAAc;IACZ,uDAAuD;IACvD,CAAO,OAAO,EAAE,EAAE;QAChB,IAAI,GAAG,IAAI,OAAO,EAAE;YAClB,MAAM,KAAK,GAAG,MAAM,CAAA,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,CAAA,CAAA;YACpE,IAAI,OAAO,EAAE,EAAE;gBACb,QAAQ,CAAC,KAAK,CAAC,CAAA;aAChB;SACF;IACH,CAAC,CAAA,EACD,CAAC,GAAG,EAAE,OAAO,CAAC,CACf,CAAA;IAED,OAAO,KAAK,CAAA;AACd,CAAC,CAAA;AAnBY,QAAA,cAAc,kBAmB1B"}
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { WithChildren } from '@xylabs/react-shared';
3
+ import { SchemaProviderProps } from './Props';
4
+ export declare const SchemaMemoryProvider: React.FC<WithChildren<SchemaProviderProps>>;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SchemaMemoryProvider = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const jsx_runtime_1 = require("react/jsx-runtime");
6
+ const react_1 = require("react");
7
+ const Context_1 = require("../Context");
8
+ const Hooks_1 = require("../Hooks");
9
+ const SchemaMemoryProvider = (_a) => {
10
+ var { defaultSchema, knownSchemaList = [] } = _a, props = tslib_1.__rest(_a, ["defaultSchema", "knownSchemaList"]);
11
+ const [schema, setSchema] = (0, react_1.useState)(defaultSchema);
12
+ const [schemaList, setSchemaList] = (0, Hooks_1.useSchemaList)(knownSchemaList);
13
+ return (0, jsx_runtime_1.jsx)(Context_1.SchemaContext.Provider, Object.assign({ value: { provided: true, schema, schemaList, setSchema, setSchemaList } }, props));
14
+ };
15
+ exports.SchemaMemoryProvider = SchemaMemoryProvider;
16
+ //# sourceMappingURL=Memory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Memory.js","sourceRoot":"","sources":["../../../../../src/contexts/Schema/Provider/Memory.tsx"],"names":[],"mappings":";;;;;AACA,iCAAgC;AAEhC,wCAA0C;AAC1C,oCAAwC;AAGjC,MAAM,oBAAoB,GAAgD,CAAC,EAAiD,EAAE,EAAE;QAArD,EAAE,aAAa,EAAE,eAAe,GAAG,EAAE,OAAY,EAAP,KAAK,sBAA/C,oCAAiD,CAAF;IAC/H,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,IAAA,gBAAQ,EAAC,aAAa,CAAC,CAAA;IACnD,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,IAAA,qBAAa,EAAC,eAAe,CAAC,CAAA;IAElE,OAAO,uBAAC,uBAAa,CAAC,QAAQ,kBAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,aAAa,EAAE,IAAM,KAAK,EAAI,CAAA;AACvH,CAAC,CAAA;AALY,QAAA,oBAAoB,wBAKhC"}
@@ -0,0 +1,4 @@
1
+ export interface SchemaProviderProps {
2
+ defaultSchema?: string;
3
+ knownSchemaList?: string[];
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Props.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Props.js","sourceRoot":"","sources":["../../../../../src/contexts/Schema/Provider/Props.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { WithChildren } from '@xylabs/react-shared';
3
+ import { SchemaProviderProps } from './Props';
4
+ export declare const SchemaRouteProvider: React.FC<WithChildren<SchemaProviderProps>>;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SchemaRouteProvider = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const jsx_runtime_1 = require("react/jsx-runtime");
6
+ const react_1 = require("react");
7
+ const react_router_dom_1 = require("react-router-dom");
8
+ const Context_1 = require("../Context");
9
+ const use_1 = require("../use");
10
+ const Memory_1 = require("./Memory");
11
+ const SchemaRouteProviderInner = ({ children }) => {
12
+ const { schema, setSchema, schemaList } = (0, use_1.useSchema)();
13
+ const [params, setParams] = (0, react_router_dom_1.useSearchParams)();
14
+ const routeSchema = params.get('schema');
15
+ //update the network stored in the route
16
+ const setSchemaParam = (0, react_1.useCallback)((schema) => {
17
+ if (schema) {
18
+ params.set('schema', schema);
19
+ setParams(params, { replace: true });
20
+ setSchema === null || setSchema === void 0 ? void 0 : setSchema(schema);
21
+ }
22
+ else {
23
+ params.delete('network');
24
+ }
25
+ }, [params, setParams, setSchema]);
26
+ //if the network is actively changed, update both memory and route
27
+ const setSchemaLocal = (0, react_1.useCallback)((schema) => {
28
+ setSchemaParam(schema);
29
+ setSchema === null || setSchema === void 0 ? void 0 : setSchema(schema);
30
+ }, [setSchemaParam, setSchema]);
31
+ //sync memory and route storage of network
32
+ (0, react_1.useEffect)(() => {
33
+ if (routeSchema !== schema) {
34
+ if (routeSchema === undefined && schema !== undefined) {
35
+ //if the route does not have a network selected, use what is in the memory context
36
+ setSchemaLocal(schema);
37
+ }
38
+ else if (routeSchema) {
39
+ //if the route has a selection and it is different from memory, update memory
40
+ setSchema === null || setSchema === void 0 ? void 0 : setSchema(routeSchema);
41
+ }
42
+ }
43
+ }, [routeSchema, schema, setSchemaParam, setSchema, setSchemaLocal]);
44
+ return (0, jsx_runtime_1.jsx)(Context_1.SchemaContext.Provider, Object.assign({ value: { provided: true, schema, schemaList, setSchema: setSchemaLocal } }, { children: children }));
45
+ };
46
+ const SchemaRouteProvider = (_a) => {
47
+ var { knownSchemaList, defaultSchema } = _a, props = tslib_1.__rest(_a, ["knownSchemaList", "defaultSchema"]);
48
+ return ((0, jsx_runtime_1.jsx)(Memory_1.SchemaMemoryProvider, Object.assign({ knownSchemaList: knownSchemaList, defaultSchema: defaultSchema }, { children: (0, jsx_runtime_1.jsx)(SchemaRouteProviderInner, Object.assign({}, props)) })));
49
+ };
50
+ exports.SchemaRouteProvider = SchemaRouteProvider;
51
+ //# sourceMappingURL=Route.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Route.js","sourceRoot":"","sources":["../../../../../src/contexts/Schema/Provider/Route.tsx"],"names":[],"mappings":";;;;;AACA,iCAA8C;AAC9C,uDAAkD;AAElD,wCAA0C;AAC1C,gCAAkC;AAClC,qCAA+C;AAG/C,MAAM,wBAAwB,GAA2B,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IACxE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE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AS,EAAE,cAAc,CAAC,CAAC,CAAA;IAEpE,OAAO,uBAAC,uBAAa,CAAC,QAAQ,kBAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,cAAc,EAAE,gBAAG,QAAQ,IAA0B,CAAA;AAC9I,CAAC,CAAA;AAEM,MAAM,mBAAmB,GAAgD,CAAC,EAA4C,EAAE,EAAE;QAAhD,EAAE,eAAe,EAAE,aAAa,OAAY,EAAP,KAAK,sBAA1C,oCAA4C,CAAF;IACzH,OAAO,CACL,uBAAC,6BAAoB,kBAAC,eAAe,EAAE,eAAe,EAAE,aAAa,EAAE,aAAa,gBAClF,uBAAC,wBAAwB,oBAAK,KAAK,EAAI,IAClB,CACxB,CAAA;AACH,CAAC,CAAA;AANY,QAAA,mBAAmB,uBAM/B"}
@@ -0,0 +1,3 @@
1
+ export * from './Memory';
2
+ export * from './Props';
3
+ export * from './Route';
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./Memory"), exports);
5
+ tslib_1.__exportStar(require("./Props"), exports);
6
+ tslib_1.__exportStar(require("./Route"), exports);
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/contexts/Schema/Provider/index.ts"],"names":[],"mappings":";;;AAAA,mDAAwB;AACxB,kDAAuB;AACvB,kDAAuB"}
@@ -0,0 +1,12 @@
1
+ import { ContextExState } from '@xyo-network/react-shared';
2
+ import { 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
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=State.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"State.js","sourceRoot":"","sources":["../../../../src/contexts/Schema/State.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export * from './Context';
2
+ export * from './Hooks';
3
+ export * from './Provider';
4
+ export * from './State';
5
+ export * from './use';
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./Context"), exports);
5
+ tslib_1.__exportStar(require("./Hooks"), exports);
6
+ tslib_1.__exportStar(require("./Provider"), exports);
7
+ tslib_1.__exportStar(require("./State"), exports);
8
+ tslib_1.__exportStar(require("./use"), exports);
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/contexts/Schema/index.ts"],"names":[],"mappings":";;;AAAA,oDAAyB;AACzB,kDAAuB;AACvB,qDAA0B;AAC1B,kDAAuB;AACvB,gDAAqB"}
@@ -0,0 +1,2 @@
1
+ import { SchemaContextState } from './State';
2
+ export declare const useSchema: (required?: boolean) => Omit<SchemaContextState, "provided">;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useSchema = void 0;
4
+ const react_shared_1 = require("@xyo-network/react-shared");
5
+ const Context_1 = require("./Context");
6
+ const useSchema = (required = false) => {
7
+ return (0, react_shared_1.useContextEx)(Context_1.SchemaContext, 'Schema', required);
8
+ };
9
+ exports.useSchema = useSchema;
10
+ //# sourceMappingURL=use.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use.js","sourceRoot":"","sources":["../../../../src/contexts/Schema/use.ts"],"names":[],"mappings":";;;AAAA,4DAAwD;AAExD,uCAAyC;AAGlC,MAAM,SAAS,GAAG,CAAC,QAAQ,GAAG,KAAK,EAAE,EAAE;IAC5C,OAAO,IAAA,2BAAY,EAAqB,uBAAa,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAA;AAC5E,CAAC,CAAA;AAFY,QAAA,SAAS,aAErB"}
@@ -0,0 +1 @@
1
+ export * from './Schema';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./Schema"), exports);
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/contexts/index.ts"],"names":[],"mappings":";;;AAAA,mDAAwB"}
@@ -0,0 +1,2 @@
1
+ export * from './components';
2
+ export * from './contexts';
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./components"), exports);
5
+ tslib_1.__exportStar(require("./contexts"), exports);
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,uDAA4B;AAC5B,qDAA0B"}
package/package.json CHANGED
@@ -14,16 +14,16 @@
14
14
  "@emotion/styled": "^11.9.3",
15
15
  "@mui/icons-material": "^5.8.4",
16
16
  "@mui/material": "^5.9.0",
17
- "@xylabs/react-common": "^2.14.6",
18
- "@xylabs/react-link": "^2.14.6",
19
- "@xylabs/react-shared": "^2.14.6",
20
- "@xyo-network/api": "^2.21.18",
21
- "@xyo-network/payload": "^2.21.18",
22
- "@xyo-network/react-archive": "^2.26.17",
23
- "@xyo-network/react-archivist-api": "^2.26.17",
24
- "@xyo-network/react-property": "^2.26.17",
25
- "@xyo-network/react-shared": "^2.26.17",
26
- "@xyo-network/utils": "^2.21.18",
17
+ "@xylabs/react-common": "^2.14.9",
18
+ "@xylabs/react-link": "^2.14.9",
19
+ "@xylabs/react-shared": "^2.14.9",
20
+ "@xyo-network/api": "^2.21.19",
21
+ "@xyo-network/payload": "^2.21.19",
22
+ "@xyo-network/react-archive": "^2.26.20",
23
+ "@xyo-network/react-archivist-api": "^2.26.20",
24
+ "@xyo-network/react-property": "^2.26.20",
25
+ "@xyo-network/react-shared": "^2.26.20",
26
+ "@xyo-network/utils": "^2.21.19",
27
27
  "react": "^18.2.0",
28
28
  "react-dom": "^18.2.0",
29
29
  "react-router-dom": "^6.3.0"
@@ -84,6 +84,6 @@
84
84
  },
85
85
  "sideEffects": false,
86
86
  "types": "dist/esm/index.d.ts",
87
- "version": "2.26.17",
88
- "packageManager": "yarn@3.1.1"
87
+ "version": "2.26.20",
88
+ "type": "module"
89
89
  }