@xyo-network/react-embed 2.44.1 → 2.45.0-rc.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/components/embed-card/error-handling/EmbedCardApiErrorRenderer.js +1 -1
- package/dist/cjs/components/embed-card/error-handling/EmbedCardApiErrorRenderer.js.map +1 -1
- package/dist/docs.json +20 -20
- package/dist/esm/components/embed-card/error-handling/EmbedCardApiErrorRenderer.js +1 -1
- package/dist/esm/components/embed-card/error-handling/EmbedCardApiErrorRenderer.js.map +1 -1
- package/package.json +14 -13
- package/src/components/embed-card/error-handling/EmbedCardApiErrorRenderer.tsx +1 -1
@@ -7,7 +7,7 @@ const react_error_1 = require("@xyo-network/react-error");
|
|
7
7
|
const EmbedErrorCard_1 = require("./EmbedErrorCard");
|
8
8
|
const EmbedCardApiErrorRenderer = (_a) => {
|
9
9
|
var { xyoError, children } = _a, props = tslib_1.__rest(_a, ["xyoError", "children"]);
|
10
|
-
return ((0, jsx_runtime_1.jsx)(react_error_1.XyoErrorRender, Object.assign({
|
10
|
+
return ((0, jsx_runtime_1.jsx)(react_error_1.XyoErrorRender, Object.assign({ error: xyoError, noReAuth: true, noErrorDisplay: true, customError: (0, jsx_runtime_1.jsx)(CustomApiErrorCard, Object.assign({ xyoError: xyoError }, props)) }, { children: children })));
|
11
11
|
};
|
12
12
|
exports.EmbedCardApiErrorRenderer = EmbedCardApiErrorRenderer;
|
13
13
|
const CustomApiErrorCard = (_a) => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"EmbedCardApiErrorRenderer.js","sourceRoot":"","sources":["../../../../../src/components/embed-card/error-handling/EmbedCardApiErrorRenderer.tsx"],"names":[],"mappings":";;;;;AAGA,0DAAwE;AAExE,qDAAiD;AAM1C,MAAM,yBAAyB,GAA2D,CAAC,EAAgC,EAAE,EAAE;QAApC,EAAE,QAAQ,EAAE,QAAQ,OAAY,EAAP,KAAK,sBAA9B,wBAAgC,CAAF;IAC9H,OAAO,CACL,uBAAC,4BAAc,kBAAC,
|
1
|
+
{"version":3,"file":"EmbedCardApiErrorRenderer.js","sourceRoot":"","sources":["../../../../../src/components/embed-card/error-handling/EmbedCardApiErrorRenderer.tsx"],"names":[],"mappings":";;;;;AAGA,0DAAwE;AAExE,qDAAiD;AAM1C,MAAM,yBAAyB,GAA2D,CAAC,EAAgC,EAAE,EAAE;QAApC,EAAE,QAAQ,EAAE,QAAQ,OAAY,EAAP,KAAK,sBAA9B,wBAAgC,CAAF;IAC9H,OAAO,CACL,uBAAC,4BAAc,kBAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,QAAC,cAAc,QAAC,WAAW,EAAE,uBAAC,kBAAkB,kBAAC,QAAQ,EAAE,QAAQ,IAAM,KAAK,EAAI,gBACxH,QAAQ,IACM,CAClB,CAAA;AACH,CAAC,CAAA;AANY,QAAA,yBAAyB,6BAMrC;AAED,MAAM,kBAAkB,GAA6C,CAAC,EAAsB,EAAE,EAAE;QAA1B,EAAE,QAAQ,OAAY,EAAP,KAAK,sBAApB,YAAsB,CAAF;IACxF,OAAO,CACL,uBAAC,+BAAc,oBAAK,KAAK,cACvB,uBAAC,2BAAa,IAAC,KAAK,EAAE,QAAQ,GAAI,IACnB,CAClB,CAAA;AACH,CAAC,CAAA"}
|
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/
|
29
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/bfe8dabc8e0/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/
|
54
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/bfe8dabc8e0/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/
|
79
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/bfe8dabc8e0/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/
|
106
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/bfe8dabc8e0/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/
|
152
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/bfe8dabc8e0/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/
|
177
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/bfe8dabc8e0/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/
|
216
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/bfe8dabc8e0/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/
|
241
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/bfe8dabc8e0/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/
|
305
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/bfe8dabc8e0/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/
|
321
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/bfe8dabc8e0/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/
|
365
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/bfe8dabc8e0/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/
|
393
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/bfe8dabc8e0/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/
|
418
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/bfe8dabc8e0/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/
|
443
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/bfe8dabc8e0/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/
|
481
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/bfe8dabc8e0/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/
|
512
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/bfe8dabc8e0/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/
|
602
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/bfe8dabc8e0/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/
|
678
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/bfe8dabc8e0/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/
|
753
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/bfe8dabc8e0/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/
|
848
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/bfe8dabc8e0/packages/sdk/packages/embed/src/index.ts#L1"
|
849
849
|
}
|
850
850
|
]
|
851
851
|
}
|
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { XyoErrorAlert, XyoErrorRender } from '@xyo-network/react-error';
|
3
3
|
import { EmbedErrorCard } from './EmbedErrorCard';
|
4
4
|
export const EmbedCardApiErrorRenderer = ({ xyoError, children, ...props }) => {
|
5
|
-
return (_jsx(XyoErrorRender, {
|
5
|
+
return (_jsx(XyoErrorRender, { error: xyoError, noReAuth: true, noErrorDisplay: true, customError: _jsx(CustomApiErrorCard, { xyoError: xyoError, ...props }), children: children }));
|
6
6
|
};
|
7
7
|
const CustomApiErrorCard = ({ xyoError, ...props }) => {
|
8
8
|
return (_jsx(EmbedErrorCard, { ...props, children: _jsx(XyoErrorAlert, { error: xyoError }) }));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"EmbedCardApiErrorRenderer.js","sourceRoot":"","sources":["../../../../../src/components/embed-card/error-handling/EmbedCardApiErrorRenderer.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAExE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAMjD,MAAM,CAAC,MAAM,yBAAyB,GAA2D,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IACpI,OAAO,CACL,KAAC,cAAc,IAAC,
|
1
|
+
{"version":3,"file":"EmbedCardApiErrorRenderer.js","sourceRoot":"","sources":["../../../../../src/components/embed-card/error-handling/EmbedCardApiErrorRenderer.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAExE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAMjD,MAAM,CAAC,MAAM,yBAAyB,GAA2D,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IACpI,OAAO,CACL,KAAC,cAAc,IAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,QAAC,cAAc,QAAC,WAAW,EAAE,KAAC,kBAAkB,IAAC,QAAQ,EAAE,QAAQ,KAAM,KAAK,GAAI,YACxH,QAAQ,GACM,CAClB,CAAA;AACH,CAAC,CAAA;AAED,MAAM,kBAAkB,GAA6C,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IAC9F,OAAO,CACL,KAAC,cAAc,OAAK,KAAK,YACvB,KAAC,aAAa,IAAC,KAAK,EAAE,QAAQ,GAAI,GACnB,CAClB,CAAA;AACH,CAAC,CAAA"}
|
package/package.json
CHANGED
@@ -13,23 +13,23 @@
|
|
13
13
|
"@xylabs/delay": "^2.7.4",
|
14
14
|
"@xylabs/react-flexbox": "^2.16.8",
|
15
15
|
"@xylabs/react-shared": "^2.16.8",
|
16
|
-
"@xyo-network/huri": "^2.
|
17
|
-
"@xyo-network/module": "^2.
|
18
|
-
"@xyo-network/payload-model": "^2.
|
19
|
-
"@xyo-network/react-error": "^2.
|
20
|
-
"@xyo-network/react-payload-plugin": "^2.
|
21
|
-
"@xyo-network/react-shared": "^2.
|
22
|
-
"@xyo-network/utils": "^2.
|
16
|
+
"@xyo-network/huri": "^2.51.1",
|
17
|
+
"@xyo-network/module": "^2.51.1",
|
18
|
+
"@xyo-network/payload-model": "^2.51.1",
|
19
|
+
"@xyo-network/react-error": "^2.45.0-rc.1",
|
20
|
+
"@xyo-network/react-payload-plugin": "^2.45.0-rc.1",
|
21
|
+
"@xyo-network/react-shared": "^2.45.0-rc.1",
|
22
|
+
"@xyo-network/utils": "^2.51.1"
|
23
23
|
},
|
24
24
|
"devDependencies": {
|
25
25
|
"@storybook/react": "^6.5.16",
|
26
26
|
"@uniswap/sdk": "^3.0.3",
|
27
|
-
"@uniswap/sdk-core": "^3.
|
27
|
+
"@uniswap/sdk-core": "^3.2.0",
|
28
28
|
"@uniswap/v3-sdk": "^3.9.0",
|
29
|
-
"@xylabs/ts-scripts-yarn3": "^2.
|
30
|
-
"@xylabs/tsconfig-react": "^2.
|
31
|
-
"@xyo-network/react-aggregate-price-plugin": "^2.
|
32
|
-
"@xyo-network/react-crypto-market-uniswap-plugin": "^2.
|
29
|
+
"@xylabs/ts-scripts-yarn3": "^2.16.0",
|
30
|
+
"@xylabs/tsconfig-react": "^2.16.0",
|
31
|
+
"@xyo-network/react-aggregate-price-plugin": "^2.45.0-rc.1",
|
32
|
+
"@xyo-network/react-crypto-market-uniswap-plugin": "^2.45.0-rc.1",
|
33
33
|
"require-from-string": "^2.0.2",
|
34
34
|
"typescript": "^4.9.5"
|
35
35
|
},
|
@@ -86,5 +86,6 @@
|
|
86
86
|
},
|
87
87
|
"sideEffects": false,
|
88
88
|
"types": "dist/types/index.d.ts",
|
89
|
-
"version": "2.
|
89
|
+
"version": "2.45.0-rc.1",
|
90
|
+
"stableVersion": "2.44.1"
|
90
91
|
}
|
@@ -11,7 +11,7 @@ interface EmbedCardApiErrorRendererProps extends CardProps {
|
|
11
11
|
|
12
12
|
export const EmbedCardApiErrorRenderer: React.FC<WithChildren<EmbedCardApiErrorRendererProps>> = ({ xyoError, children, ...props }) => {
|
13
13
|
return (
|
14
|
-
<XyoErrorRender
|
14
|
+
<XyoErrorRender error={xyoError} noReAuth noErrorDisplay customError={<CustomApiErrorCard xyoError={xyoError} {...props} />}>
|
15
15
|
{children}
|
16
16
|
</XyoErrorRender>
|
17
17
|
)
|