@xyo-network/react-embed 2.47.14 → 2.47.16

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
5
5
  const jsx_runtime_1 = require("react/jsx-runtime");
6
6
  const material_1 = require("@mui/material");
7
7
  const react_shared_1 = require("@xylabs/react-shared");
8
- const utils_1 = require("@xyo-network/utils");
8
+ const schema_cache_1 = require("@xyo-network/schema-cache");
9
9
  const react_1 = require("react");
10
10
  const ResolvePayloadContext_1 = require("../ResolvePayloadContext");
11
11
  const Context_1 = require("./Context");
@@ -17,10 +17,10 @@ const ValidatePayloadProvider = ({ children, enabled = false }) => {
17
17
  // eslint-disable-next-line react-hooks/exhaustive-deps
18
18
  () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
19
19
  if (payload && enabled) {
20
- yield utils_1.XyoSchemaCache.instance.get(payload.schema);
20
+ yield schema_cache_1.SchemaCache.instance.get(payload.schema);
21
21
  const possibleKnownSchema = payload.schema;
22
- if (utils_1.XyoSchemaCache.instance.validators[possibleKnownSchema]) {
23
- const validator = utils_1.XyoSchemaCache.instance.validators[possibleKnownSchema];
22
+ if (schema_cache_1.SchemaCache.instance.validators[possibleKnownSchema]) {
23
+ const validator = schema_cache_1.SchemaCache.instance.validators[possibleKnownSchema];
24
24
  setValid(validator === null || validator === void 0 ? void 0 : validator(payload));
25
25
  }
26
26
  setInitialized(true);
@@ -1 +1 @@
1
- {"version":3,"file":"Provider.js","sourceRoot":"","sources":["../../../../src/contexts/ValidatePayloadContext/Provider.tsx"],"names":[],"mappings":";;;;;AAAA,4CAAoC;AACpC,uDAAmE;AACnE,8CAAgF;AAChF,iCAAgC;AAEhC,oEAA4D;AAC5D,uCAAkD;AAO3C,MAAM,uBAAuB,GAAyD,CAAC,EAAE,QAAQ,EAAE,OAAO,GAAG,KAAK,EAAE,EAAE,EAAE;IAC7H,MAAM,EAAE,OAAO,EAAE,GAAG,IAAA,yCAAiB,GAAE,CAAA;IACvC,MAAM,CAAC,WAAW,EAA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AAQ,CAAC,CAAC,CAAC,uBAAC,eAAI,IAAC,KAAK,EAAC,uBAAuB,GAAG,GAAI,CAAC,CAAC,CAAC,QAAQ,IAC5D,CACnC,CAAA;AACH,CAAC,CAAA;AA5BY,QAAA,uBAAuB,2BA4BnC"}
package/dist/docs.json CHANGED
@@ -26,7 +26,7 @@
26
26
  "fileName": "packages/sdk/packages/embed/src/components/embed-card/card/BusyCard.tsx",
27
27
  "line": 13,
28
28
  "character": 2,
29
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/2cd188542ca/packages/sdk/packages/embed/src/components/embed-card/card/BusyCard.tsx#L13"
29
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/c272790da/packages/sdk/packages/embed/src/components/embed-card/card/BusyCard.tsx#L13"
30
30
  }
31
31
  ],
32
32
  "type": {
@@ -51,7 +51,7 @@
51
51
  "fileName": "packages/sdk/packages/embed/src/components/embed-card/card/BusyCard.tsx",
52
52
  "line": 14,
53
53
  "character": 2,
54
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/2cd188542ca/packages/sdk/packages/embed/src/components/embed-card/card/BusyCard.tsx#L14"
54
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/c272790da/packages/sdk/packages/embed/src/components/embed-card/card/BusyCard.tsx#L14"
55
55
  }
56
56
  ],
57
57
  "type": {
@@ -76,7 +76,7 @@
76
76
  "fileName": "packages/sdk/packages/embed/src/components/embed-card/card/BusyCard.tsx",
77
77
  "line": 15,
78
78
  "character": 2,
79
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/2cd188542ca/packages/sdk/packages/embed/src/components/embed-card/card/BusyCard.tsx#L15"
79
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/c272790da/packages/sdk/packages/embed/src/components/embed-card/card/BusyCard.tsx#L15"
80
80
  }
81
81
  ],
82
82
  "type": {
@@ -103,7 +103,7 @@
103
103
  "fileName": "packages/sdk/packages/embed/src/components/embed-card/card/BusyCard.tsx",
104
104
  "line": 16,
105
105
  "character": 2,
106
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/2cd188542ca/packages/sdk/packages/embed/src/components/embed-card/card/BusyCard.tsx#L16"
106
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/c272790da/packages/sdk/packages/embed/src/components/embed-card/card/BusyCard.tsx#L16"
107
107
  }
108
108
  ],
109
109
  "type": {
@@ -149,7 +149,7 @@
149
149
  "fileName": "packages/sdk/packages/embed/src/contexts/XyoEmbedPluginContext/State.ts",
150
150
  "line": 24,
151
151
  "character": 2,
152
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/2cd188542ca/packages/sdk/packages/embed/src/contexts/XyoEmbedPluginContext/State.ts#L24"
152
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/c272790da/packages/sdk/packages/embed/src/contexts/XyoEmbedPluginContext/State.ts#L24"
153
153
  }
154
154
  ],
155
155
  "type": {
@@ -174,7 +174,7 @@
174
174
  "fileName": "packages/sdk/packages/embed/src/types/XyoEmbedPluginProps.ts",
175
175
  "line": 6,
176
176
  "character": 2,
177
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/2cd188542ca/packages/sdk/packages/embed/src/types/XyoEmbedPluginProps.ts#L6"
177
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/c272790da/packages/sdk/packages/embed/src/types/XyoEmbedPluginProps.ts#L6"
178
178
  }
179
179
  ],
180
180
  "type": {
@@ -213,7 +213,7 @@
213
213
  "fileName": "packages/sdk/packages/embed/src/contexts/XyoEmbedPluginContext/State.ts",
214
214
  "line": 27,
215
215
  "character": 2,
216
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/2cd188542ca/packages/sdk/packages/embed/src/contexts/XyoEmbedPluginContext/State.ts#L27"
216
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/c272790da/packages/sdk/packages/embed/src/contexts/XyoEmbedPluginContext/State.ts#L27"
217
217
  }
218
218
  ],
219
219
  "type": {
@@ -238,7 +238,7 @@
238
238
  "fileName": "packages/sdk/packages/embed/src/types/XyoEmbedPluginProps.ts",
239
239
  "line": 7,
240
240
  "character": 2,
241
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/2cd188542ca/packages/sdk/packages/embed/src/types/XyoEmbedPluginProps.ts#L7"
241
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/c272790da/packages/sdk/packages/embed/src/types/XyoEmbedPluginProps.ts#L7"
242
242
  }
243
243
  ],
244
244
  "type": {
@@ -302,7 +302,7 @@
302
302
  "fileName": "packages/sdk/packages/embed/src/types/XyoEmbedPluginProps.ts",
303
303
  "line": 9,
304
304
  "character": 2,
305
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/2cd188542ca/packages/sdk/packages/embed/src/types/XyoEmbedPluginProps.ts#L9"
305
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/c272790da/packages/sdk/packages/embed/src/types/XyoEmbedPluginProps.ts#L9"
306
306
  }
307
307
  ],
308
308
  "type": {
@@ -318,7 +318,7 @@
318
318
  "fileName": "packages/sdk/packages/embed/src/types/XyoEmbedPluginProps.ts",
319
319
  "line": 9,
320
320
  "character": 14,
321
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/2cd188542ca/packages/sdk/packages/embed/src/types/XyoEmbedPluginProps.ts#L9"
321
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/c272790da/packages/sdk/packages/embed/src/types/XyoEmbedPluginProps.ts#L9"
322
322
  }
323
323
  ],
324
324
  "signatures": [
@@ -362,7 +362,7 @@
362
362
  "fileName": "packages/sdk/packages/embed/src/contexts/XyoEmbedPluginContext/State.ts",
363
363
  "line": 28,
364
364
  "character": 2,
365
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/2cd188542ca/packages/sdk/packages/embed/src/contexts/XyoEmbedPluginContext/State.ts#L28"
365
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/c272790da/packages/sdk/packages/embed/src/contexts/XyoEmbedPluginContext/State.ts#L28"
366
366
  }
367
367
  ],
368
368
  "type": {
@@ -390,7 +390,7 @@
390
390
  "fileName": "packages/sdk/packages/embed/src/contexts/XyoEmbedPluginContext/State.ts",
391
391
  "line": 29,
392
392
  "character": 2,
393
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/2cd188542ca/packages/sdk/packages/embed/src/contexts/XyoEmbedPluginContext/State.ts#L29"
393
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/c272790da/packages/sdk/packages/embed/src/contexts/XyoEmbedPluginContext/State.ts#L29"
394
394
  }
395
395
  ],
396
396
  "type": {
@@ -415,7 +415,7 @@
415
415
  "fileName": "packages/sdk/packages/embed/src/contexts/XyoEmbedPluginContext/State.ts",
416
416
  "line": 30,
417
417
  "character": 2,
418
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/2cd188542ca/packages/sdk/packages/embed/src/contexts/XyoEmbedPluginContext/State.ts#L30"
418
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/c272790da/packages/sdk/packages/embed/src/contexts/XyoEmbedPluginContext/State.ts#L30"
419
419
  }
420
420
  ],
421
421
  "type": {
@@ -440,7 +440,7 @@
440
440
  "fileName": "packages/sdk/packages/embed/src/types/XyoEmbedPluginProps.ts",
441
441
  "line": 10,
442
442
  "character": 2,
443
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/2cd188542ca/packages/sdk/packages/embed/src/types/XyoEmbedPluginProps.ts#L10"
443
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/c272790da/packages/sdk/packages/embed/src/types/XyoEmbedPluginProps.ts#L10"
444
444
  }
445
445
  ],
446
446
  "type": {
@@ -478,7 +478,7 @@
478
478
  "fileName": "packages/sdk/packages/embed/src/components/embed-card/XyoEmbedPluginCard.tsx",
479
479
  "line": 10,
480
480
  "character": 17,
481
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/2cd188542ca/packages/sdk/packages/embed/src/components/embed-card/XyoEmbedPluginCard.tsx#L10"
481
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/c272790da/packages/sdk/packages/embed/src/components/embed-card/XyoEmbedPluginCard.tsx#L10"
482
482
  }
483
483
  ],
484
484
  "extendedTypes": [
@@ -509,7 +509,7 @@
509
509
  "fileName": "packages/sdk/packages/embed/src/components/embed-card/XyoEmbedPluginCard.tsx",
510
510
  "line": 64,
511
511
  "character": 13,
512
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/2cd188542ca/packages/sdk/packages/embed/src/components/embed-card/XyoEmbedPluginCard.tsx#L64"
512
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/c272790da/packages/sdk/packages/embed/src/components/embed-card/XyoEmbedPluginCard.tsx#L64"
513
513
  }
514
514
  ],
515
515
  "signatures": [
@@ -599,7 +599,7 @@
599
599
  "fileName": "packages/sdk/packages/embed/src/components/embed-card/XyoEmbedPluginCard.tsx",
600
600
  "line": 12,
601
601
  "character": 13,
602
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/2cd188542ca/packages/sdk/packages/embed/src/components/embed-card/XyoEmbedPluginCard.tsx#L12"
602
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/c272790da/packages/sdk/packages/embed/src/components/embed-card/XyoEmbedPluginCard.tsx#L12"
603
603
  }
604
604
  ],
605
605
  "signatures": [
@@ -675,7 +675,7 @@
675
675
  "fileName": "packages/sdk/packages/embed/src/components/embed-card/XyoEmbedPluginCard.tsx",
676
676
  "line": 44,
677
677
  "character": 13,
678
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/2cd188542ca/packages/sdk/packages/embed/src/components/embed-card/XyoEmbedPluginCard.tsx#L44"
678
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/c272790da/packages/sdk/packages/embed/src/components/embed-card/XyoEmbedPluginCard.tsx#L44"
679
679
  }
680
680
  ],
681
681
  "signatures": [
@@ -750,7 +750,7 @@
750
750
  "fileName": "packages/sdk/packages/embed/src/components/XyoEmbedPlugin.tsx",
751
751
  "line": 10,
752
752
  "character": 13,
753
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/2cd188542ca/packages/sdk/packages/embed/src/components/XyoEmbedPlugin.tsx#L10"
753
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/c272790da/packages/sdk/packages/embed/src/components/XyoEmbedPlugin.tsx#L10"
754
754
  }
755
755
  ],
756
756
  "signatures": [
@@ -845,7 +845,7 @@
845
845
  "fileName": "packages/sdk/packages/embed/src/index.ts",
846
846
  "line": 1,
847
847
  "character": 0,
848
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/2cd188542ca/packages/sdk/packages/embed/src/index.ts#L1"
848
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/c272790da/packages/sdk/packages/embed/src/index.ts#L1"
849
849
  }
850
850
  ]
851
851
  }
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { Chip } from '@mui/material';
3
3
  import { useAsyncEffect } from '@xylabs/react-shared';
4
- import { XyoSchemaCache } from '@xyo-network/utils';
4
+ import { SchemaCache } from '@xyo-network/schema-cache';
5
5
  import { useState } from 'react';
6
6
  import { useResolvePayload } from '../ResolvePayloadContext';
7
7
  import { ValidatePayloadContext } from './Context';
@@ -13,10 +13,10 @@ export const ValidatePayloadProvider = ({ children, enabled = false }) => {
13
13
  // eslint-disable-next-line react-hooks/exhaustive-deps
14
14
  async () => {
15
15
  if (payload && enabled) {
16
- await XyoSchemaCache.instance.get(payload.schema);
16
+ await SchemaCache.instance.get(payload.schema);
17
17
  const possibleKnownSchema = payload.schema;
18
- if (XyoSchemaCache.instance.validators[possibleKnownSchema]) {
19
- const validator = XyoSchemaCache.instance.validators[possibleKnownSchema];
18
+ if (SchemaCache.instance.validators[possibleKnownSchema]) {
19
+ const validator = SchemaCache.instance.validators[possibleKnownSchema];
20
20
  setValid(validator?.(payload));
21
21
  }
22
22
  setInitialized(true);
@@ -1 +1 @@
1
- {"version":3,"file":"Provider.js","sourceRoot":"","sources":["../../../../src/contexts/ValidatePayloadContext/Provider.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AACpC,OAAO,EAAE,cAAc,EAAgB,MAAM,sBAAsB,CAAA;AACnE,OAAO,EAAE,cAAc,EAA+B,MAAM,oBAAoB,CAAA;AAChF,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAEhC,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAA;AAOlD,MAAM,CAAC,MAAM,uBAAuB,GAAyD,CAAC,EAAE,QAAQ,EAAE,OAAO,GAAG,KAAK,EAAE,EAAE,EAAE;IAC7H,MAAM,EAAE,OAAO,EAAE,GAAG,iBAAiB,EAAE,CAAA;IACvC,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAA;IACrD,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,EAAW,CAAA;IAE7C,cAAc;IACZ,uDAAuD;IACvD,KAAK,IAAI,EAAE;QACT,IAAI,OAAO,IAAI,OAAO,EAAE;YACtB,MAAM,cAAc,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,CAAA;YAEjD,MAAM,mBAAmB,GAAG,OAAO,CAAC,MAA2C,CAAA;YAE/E,IAAI,cAAc,CAAC,QAAQ,CAAC,UAAU,CAAC,mBAAmB,CAAC,EAA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,CAAC,KAAK,CAAC,CAAA;IACrD,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,EAAW,CAAA;IAE7C,cAAc;IACZ,uDAAuD;IACvD,KAAK,IAAI,EAAE;QACT,IAAI,OAAO,IAAI,OAAO,EAAE;YACtB,MAAM,WAAW,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,CAAA;YAE9C,MAAM,mBAAmB,GAAG,OAAO,CAAC,MAAwC,CAAA;YAE5E,IAAI,WAAW,CAAC,QAAQ,CAAC,UAAU,CAAC,mBAAmB,CAAC,EAAE;gBACxD,MAAM,SAAS,GAAG,WAAW,CAAC,QAAQ,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAA;gBACtE,QAAQ,CAAC,SAAS,EAAE,CAAC,OAAO,CAAC,CAAC,CAAA;aAC/B;YACD,cAAc,CAAC,IAAI,CAAC,CAAA;SACrB;IACH,CAAC,EACD,CAAC,OAAO,EAAE,OAAO,CAAC,CACnB,CAAA;IAED,OAAO,CACL,KAAC,sBAAsB,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,KAAK,EAAE,YAC9G,OAAO,CAAC,CAAC,CAAC,4BAAG,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAC,IAAI,IAAC,KAAK,EAAC,uBAAuB,GAAG,GAAI,CAAC,CAAC,CAAC,QAAQ,GAC5D,CACnC,CAAA;AACH,CAAC,CAAA"}
package/package.json CHANGED
@@ -16,10 +16,10 @@
16
16
  "@xyo-network/huri": "^2.53.18",
17
17
  "@xyo-network/module": "^2.53.18",
18
18
  "@xyo-network/payload-model": "^2.53.18",
19
- "@xyo-network/react-error": "^2.47.14",
20
- "@xyo-network/react-payload-plugin": "^2.47.14",
21
- "@xyo-network/react-shared": "^2.47.14",
22
- "@xyo-network/utils": "^2.53.17"
19
+ "@xyo-network/react-error": "^2.47.16",
20
+ "@xyo-network/react-payload-plugin": "^2.47.16",
21
+ "@xyo-network/react-shared": "^2.47.16",
22
+ "@xyo-network/schema-cache": "^2.53.17"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@storybook/react": "^6.5.16",
@@ -28,8 +28,8 @@
28
28
  "@uniswap/v3-sdk": "^3.9.0",
29
29
  "@xylabs/ts-scripts-yarn3": "^2.16.1",
30
30
  "@xylabs/tsconfig-react": "^2.16.1",
31
- "@xyo-network/react-aggregate-price-plugin": "^2.47.14",
32
- "@xyo-network/react-crypto-market-uniswap-plugin": "^2.47.14",
31
+ "@xyo-network/react-aggregate-price-plugin": "^2.47.16",
32
+ "@xyo-network/react-crypto-market-uniswap-plugin": "^2.47.16",
33
33
  "require-from-string": "^2.0.2",
34
34
  "typescript": "^4.9.5"
35
35
  },
@@ -85,5 +85,5 @@
85
85
  },
86
86
  "sideEffects": false,
87
87
  "types": "dist/types/index.d.ts",
88
- "version": "2.47.14"
88
+ "version": "2.47.16"
89
89
  }
@@ -1,6 +1,6 @@
1
1
  import { Chip } from '@mui/material'
2
2
  import { useAsyncEffect, WithChildren } from '@xylabs/react-shared'
3
- import { XyoSchemaCache, XyoSchemaNameToValidatorMap } from '@xyo-network/utils'
3
+ import { SchemaCache, SchemaNameToValidatorMap } from '@xyo-network/schema-cache'
4
4
  import { useState } from 'react'
5
5
 
6
6
  import { useResolvePayload } from '../ResolvePayloadContext'
@@ -20,12 +20,12 @@ export const ValidatePayloadProvider: React.FC<WithChildren<ValidatePayloadProvi
20
20
  // eslint-disable-next-line react-hooks/exhaustive-deps
21
21
  async () => {
22
22
  if (payload && enabled) {
23
- await XyoSchemaCache.instance.get(payload.schema)
23
+ await SchemaCache.instance.get(payload.schema)
24
24
 
25
- const possibleKnownSchema = payload.schema as keyof XyoSchemaNameToValidatorMap
25
+ const possibleKnownSchema = payload.schema as keyof SchemaNameToValidatorMap
26
26
 
27
- if (XyoSchemaCache.instance.validators[possibleKnownSchema]) {
28
- const validator = XyoSchemaCache.instance.validators[possibleKnownSchema]
27
+ if (SchemaCache.instance.validators[possibleKnownSchema]) {
28
+ const validator = SchemaCache.instance.validators[possibleKnownSchema]
29
29
  setValid(validator?.(payload))
30
30
  }
31
31
  setInitialized(true)