@xyo-network/react-embed 2.56.17 → 2.57.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/contexts/ResolvePayloadContext/Provider.js +2 -2
- package/dist/cjs/contexts/ResolvePayloadContext/Provider.js.map +1 -1
- package/dist/esm/contexts/ResolvePayloadContext/Provider.js +1 -1
- package/dist/esm/contexts/ResolvePayloadContext/Provider.js.map +1 -1
- package/dist/types/components/embed-card/error-handling/EmbedCardApiErrorRenderer.d.ts +1 -1
- package/dist/types/components/embed-card/error-handling/EmbedCardApiErrorRenderer.d.ts.map +1 -1
- package/dist/types/contexts/ResolvePayloadContext/Provider.d.ts.map +1 -1
- package/dist/types/contexts/ResolvePayloadContext/State.d.ts +1 -2
- package/dist/types/contexts/ResolvePayloadContext/State.d.ts.map +1 -1
- package/package.json +11 -13
- package/src/components/embed-card/error-handling/EmbedCardApiErrorRenderer.tsx +1 -1
- package/src/contexts/ResolvePayloadContext/Provider.tsx +1 -2
- package/src/contexts/ResolvePayloadContext/State.ts +1 -2
- package/dist/docs.json +0 -4991
@@ -6,7 +6,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
6
|
const delay_1 = require("@xylabs/delay");
|
7
7
|
const react_async_effect_1 = require("@xylabs/react-async-effect");
|
8
8
|
const huri_1 = require("@xyo-network/huri");
|
9
|
-
const
|
9
|
+
const payload_model_1 = require("@xyo-network/payload-model");
|
10
10
|
const react_1 = require("react");
|
11
11
|
const RefreshPayloadContext_1 = require("../RefreshPayloadContext");
|
12
12
|
const Context_1 = require("./Context");
|
@@ -40,7 +40,7 @@ const ResolvePayloadProvider = ({ children, huriPayload }) => {
|
|
40
40
|
}
|
41
41
|
catch (e) {
|
42
42
|
const error = e;
|
43
|
-
setHuriError({ message: error.message, schema:
|
43
|
+
setHuriError({ message: error.message, schema: payload_model_1.ModuleErrorSchema, sources: [] });
|
44
44
|
}
|
45
45
|
}
|
46
46
|
}), [huri, payload, refreshPayload, setRefreshPayload]);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Provider.js","sourceRoot":"","sources":["../../../../src/contexts/ResolvePayloadContext/Provider.tsx"],"names":[],"mappings":";;;;;AAAA,yCAAqC;AACrC,mEAA2D;AAE3D,4CAAwC;AACxC,
|
1
|
+
{"version":3,"file":"Provider.js","sourceRoot":"","sources":["../../../../src/contexts/ResolvePayloadContext/Provider.tsx"],"names":[],"mappings":";;;;;AAAA,yCAAqC;AACrC,mEAA2D;AAE3D,4CAAwC;AACxC,8DAAoF;AACpF,iCAA2C;AAE3C,oEAA4D;AAC5D,uCAAiD;AAK1C,MAAM,sBAAsB,GAAwD,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,EAAE,EAAE;IACvH,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,IAAA,gBAAQ,GAAW,CAAA;IACjD,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,IAAA,gBAAQ,GAAU,CAAA;IAC1C,MAAM,EAAE,cAAc,EAAE,iBAAiB,EAAE,SAAS,EAAE,GAAG,IAAA,yCAAiB,GAAE,CAAA;IAE5E,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,OAAO,WAAW,KAAK,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,SAAS,CAAA;QAClE,IAAI,OAAO,WAAW,KAAK,QAAQ,EAAE;YACnC,UAAU,CAAC,WAAW,CAAC,CAAA;YACvB,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAG,IAAI,CAAC,CAAA;SAC1B;IACH,CAAC,EAAE,CAAC,WAAW,EAAE,iBAAiB,CAAC,CAAC,CAAA;IAEpC,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,IAAA,gBAAQ,GAAW,CAAA;IACnD,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,IAAA,gBAAQ,GAAe,CAAA;IAEzD,IAAA,mCAAc;IACZ,uDAAuD;IACvD,CAAO,OAAO,E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react/jsx-runtime";
|
|
2
2
|
import { delay } from '@xylabs/delay';
|
3
3
|
import { useAsyncEffect } from '@xylabs/react-async-effect';
|
4
4
|
import { Huri } from '@xyo-network/huri';
|
5
|
-
import { ModuleErrorSchema } from '@xyo-network/
|
5
|
+
import { ModuleErrorSchema } from '@xyo-network/payload-model';
|
6
6
|
import { useEffect, useState } from 'react';
|
7
7
|
import { useRefreshPayload } from '../RefreshPayloadContext';
|
8
8
|
import { ResolvePayloadContext } from './Context';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Provider.js","sourceRoot":"","sources":["../../../../src/contexts/ResolvePayloadContext/Provider.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AACrC,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAE3D,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AACxC,OAAO,EAAe,iBAAiB,
|
1
|
+
{"version":3,"file":"Provider.js","sourceRoot":"","sources":["../../../../src/contexts/ResolvePayloadContext/Provider.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AACrC,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAE3D,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AACxC,OAAO,EAAe,iBAAiB,EAAW,MAAM,4BAA4B,CAAA;AACpF,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAE3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAA;AAKjD,MAAM,CAAC,MAAM,sBAAsB,GAAwD,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,EAAE,EAAE;IACvH,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,EAAW,CAAA;IACjD,MAAM,CAA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EAAE,EAAE,EAAE,CAAC,CAAA;aACjF;SACF;IACH,CAAC,EACD,CAAC,IAAI,EAAE,OAAO,EAAE,cAAc,EAAE,iBAAiB,CAAC,CACnD,CAAA;IAED,MAAM,WAAW,GAAG,GAAG,EAAE;QACvB,SAAS,EAAE,EAAE,CAAA;QACb,IAAI,IAAI,EAAE;YACR,iBAAiB,EAAE,CAAC,KAAK,CAAC,CAAA;SAC3B;IACH,CAAC,CAAA;IAED,OAAO,CACL,KAAC,qBAAqB,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,YACnH,QAAQ,GACsB,CAClC,CAAA;AACH,CAAC,CAAA"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { CardProps } from '@mui/material';
|
3
3
|
import { WithChildren } from '@xylabs/react-shared';
|
4
|
-
import { ModuleError } from '@xyo-network/
|
4
|
+
import { ModuleError } from '@xyo-network/payload-model';
|
5
5
|
interface EmbedCardApiErrorRendererProps extends CardProps {
|
6
6
|
xyoError?: ModuleError;
|
7
7
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"EmbedCardApiErrorRenderer.d.ts","sourceRoot":"","sources":["../../../../../src/components/embed-card/error-handling/EmbedCardApiErrorRenderer.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"EmbedCardApiErrorRenderer.d.ts","sourceRoot":"","sources":["../../../../../src/components/embed-card/error-handling/EmbedCardApiErrorRenderer.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAKxD,UAAU,8BAA+B,SAAQ,SAAS;IACxD,QAAQ,CAAC,EAAE,WAAW,CAAA;CACvB;AAED,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,8BAA8B,CAAC,CAM5F,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../src/contexts/ResolvePayloadContext/Provider.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;
|
1
|
+
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../src/contexts/ResolvePayloadContext/Provider.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAOnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAE7C,MAAM,MAAM,2BAA2B,GAAG,IAAI,CAAC,mBAAmB,EAAE,UAAU,CAAC,CAAA;AAE/E,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,2BAA2B,CAAC,CAoDtF,CAAA"}
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import { ModuleError } from '@xyo-network/
|
2
|
-
import { Payload } from '@xyo-network/payload-model';
|
1
|
+
import { ModuleError, Payload } from '@xyo-network/payload-model';
|
3
2
|
import { ContextExState } from '@xyo-network/react-shared';
|
4
3
|
import { Dispatch, SetStateAction } from 'react';
|
5
4
|
export interface ResolvePayloadState extends ContextExState {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../../../src/contexts/ResolvePayloadContext/State.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,
|
1
|
+
{"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../../../src/contexts/ResolvePayloadContext/State.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC1D,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAEhD,MAAM,WAAW,mBAAoB,SAAQ,cAAc;IACzD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,WAAW,CAAA;IACvB,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAA;IACxB,UAAU,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC,CAAA;CAC3D"}
|
package/package.json
CHANGED
@@ -14,24 +14,22 @@
|
|
14
14
|
"@xylabs/react-async-effect": "^2.17.6",
|
15
15
|
"@xylabs/react-flexbox": "^2.17.6",
|
16
16
|
"@xylabs/react-shared": "^2.17.6",
|
17
|
-
"@xyo-network/huri": "^2.
|
18
|
-
"@xyo-network/
|
19
|
-
"@xyo-network/
|
20
|
-
"@xyo-network/payload-
|
21
|
-
"@xyo-network/react-
|
22
|
-
"@xyo-network/
|
23
|
-
"@xyo-network/react-shared": "^2.56.17",
|
24
|
-
"@xyo-network/schema-cache": "^2.64.10"
|
17
|
+
"@xyo-network/huri": "^2.65.0",
|
18
|
+
"@xyo-network/payload-model": "^2.65.0",
|
19
|
+
"@xyo-network/react-error": "^2.57.0",
|
20
|
+
"@xyo-network/react-payload-plugin": "^2.57.0",
|
21
|
+
"@xyo-network/react-shared": "^2.57.0",
|
22
|
+
"@xyo-network/schema-cache": "^2.65.0"
|
25
23
|
},
|
26
24
|
"devDependencies": {
|
27
|
-
"@storybook/react": "^7.0.
|
25
|
+
"@storybook/react": "^7.0.27",
|
28
26
|
"@uniswap/sdk": "^3.0.3",
|
29
27
|
"@uniswap/sdk-core": "^3.2.6",
|
30
|
-
"@uniswap/v3-sdk": "^3.
|
28
|
+
"@uniswap/v3-sdk": "^3.10.0",
|
31
29
|
"@xylabs/ts-scripts-yarn3": "^2.18.10",
|
32
30
|
"@xylabs/tsconfig-react": "^2.18.10",
|
33
|
-
"@xyo-network/react-aggregate-price-plugin": "^2.
|
34
|
-
"@xyo-network/react-crypto-market-uniswap-plugin": "^2.
|
31
|
+
"@xyo-network/react-aggregate-price-plugin": "^2.57.0",
|
32
|
+
"@xyo-network/react-crypto-market-uniswap-plugin": "^2.57.0",
|
35
33
|
"typescript": "^5.1.6"
|
36
34
|
},
|
37
35
|
"peerDependencies": {
|
@@ -86,5 +84,5 @@
|
|
86
84
|
},
|
87
85
|
"sideEffects": false,
|
88
86
|
"types": "dist/types/index.d.ts",
|
89
|
-
"version": "2.
|
87
|
+
"version": "2.57.0"
|
90
88
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { CardProps } from '@mui/material'
|
2
2
|
import { WithChildren } from '@xylabs/react-shared'
|
3
|
-
import { ModuleError } from '@xyo-network/
|
3
|
+
import { ModuleError } from '@xyo-network/payload-model'
|
4
4
|
import { ErrorAlert, ErrorRender } from '@xyo-network/react-error'
|
5
5
|
|
6
6
|
import { EmbedErrorCard } from './EmbedErrorCard'
|
@@ -2,8 +2,7 @@ import { delay } from '@xylabs/delay'
|
|
2
2
|
import { useAsyncEffect } from '@xylabs/react-async-effect'
|
3
3
|
import { WithChildren } from '@xylabs/react-shared'
|
4
4
|
import { Huri } from '@xyo-network/huri'
|
5
|
-
import { ModuleError, ModuleErrorSchema } from '@xyo-network/
|
6
|
-
import { Payload } from '@xyo-network/payload-model'
|
5
|
+
import { ModuleError, ModuleErrorSchema, Payload } from '@xyo-network/payload-model'
|
7
6
|
import { useEffect, useState } from 'react'
|
8
7
|
|
9
8
|
import { useRefreshPayload } from '../RefreshPayloadContext'
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import { ModuleError } from '@xyo-network/
|
2
|
-
import { Payload } from '@xyo-network/payload-model'
|
1
|
+
import { ModuleError, Payload } from '@xyo-network/payload-model'
|
3
2
|
import { ContextExState } from '@xyo-network/react-shared'
|
4
3
|
import { Dispatch, SetStateAction } from 'react'
|
5
4
|
|