@xyo-network/react-embed 2.48.2 → 2.48.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.payloadData = void 0;
4
+ exports.payloadData = {
5
+ assets: {
6
+ ada: { value: { btc: '0.00002192', eth: '0.00031141', eur: '0.491867', usd: '0.502045' } },
7
+ btc: { value: { btc: '1', eth: '14.213346', eur: '22450', usd: '22914' } },
8
+ busd: { value: { btc: '0.00004369', eth: '0.00062074', eur: '0.980451', usd: '1.001' } },
9
+ dai: { value: { usdc: '1.00004', xyo: '114.394' } },
10
+ doge: { value: { btc: '0.00000293', eth: '0.00004157', eur: '0.065655', usd: '0.067013' } },
11
+ dot: { value: { btc: '0.00035508', eth: '0.00504454', eur: '7.97', usd: '8.13' } },
12
+ eth: { value: { btc: '0.0703878', eth: '1', eur: '1579.47', usd: '1612.16' } },
13
+ frax: { value: { usdc: '0.999738' } },
14
+ link: { value: { xyo: '837.731' } },
15
+ sol: { value: { btc: '0.00169369', eth: '0.02406215', eur: '38.01', usd: '38.79' } },
16
+ usdc: { value: { btc: '0.0000436965', dai: '0.999963', eth: '0.0006204464999999999', eur: '0.979419', frax: '1.00026', usd: '0.999732' } },
17
+ usdt: { value: { btc: '0.00004367', eth: '0.0006204', eur: '0.979881', usd: '1.001', usdc: '1.00022', xyo: '113.28' } },
18
+ wbtc: { value: { btc: '0.99903669', eth: '14.2015745', eur: '22418', usd: '22882', usdc: '22860.8', xyo: '2617950' } },
19
+ weth: { value: { btc: '0.0703735', usdc: '1610.82', xyo: '186652' } },
20
+ xyo: { value: { btc: '3.79226e-7', dai: '0.00874169', eth: '0.000005353785', eur: '0.00844792', link: '0.0011937', usd: '0.00872519' } },
21
+ },
22
+ schema: 'network.xyo.crypto.asset',
23
+ timestamp: 1659625815232,
24
+ };
25
+ //# sourceMappingURL=storyPayload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storyPayload.js","sourceRoot":"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KAAK,EAAE,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE;QACpF,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,cAAc,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,uBAAuB,EAAE,GAAG,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,UAAU,EAAE,EAAE;QAC1I,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,QAAQ,EAAE,EAAE;QACvH,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,EAAE,EAAE;QACtH,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,QAAQ,EAAE,EAAE;QACrE,GAAG,EAAE,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,gBAAgB,EAAE,GAAG,EAAE,YAAY,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,EAAE,YAAY,EAAE,EAAE;KACzI;IACD,MAAM,EAAE,0BAA0B;IAClC,SAAS,EAAE,aAAa;CACzB,CAAA"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Template = exports.xyoEmbedStoryBase = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_router_dom_1 = require("react-router-dom");
6
+ const embed_card_1 = require("../embed-card");
7
+ exports.xyoEmbedStoryBase = {
8
+ argTypes: {},
9
+ component: embed_card_1.XyoEmbedPluginCard,
10
+ parameters: {
11
+ docs: {
12
+ page: null,
13
+ },
14
+ },
15
+ };
16
+ const Template = (args) => {
17
+ return ((0, jsx_runtime_1.jsx)(react_router_dom_1.BrowserRouter, { children: (0, jsx_runtime_1.jsx)(embed_card_1.XyoEmbedPluginCard, Object.assign({}, args)) }));
18
+ };
19
+ exports.Template = Template;
20
+ //# sourceMappingURL=storyShared.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storyShared.js","sourceRoot":"","sources":["../../../../src/components/embed-plugin-stories/storyShared.tsx"],"names":[],"mappings":";;;;AACA,uDAAgD;AAEhD,8CAAkD;AAErC,QAAA,iBAAiB,GAAS;IACrC,QAAQ,EAAE,EAAE;IACZ,SAAS,EAAE,+BAAkB;IAC7B,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,IAAI,EAAE,IAAI;SACX;KACF;CACF,CAAA;AAEM,MAAM,QAAQ,GAAuC,CAAC,IAAI,EAAE,EAAE;IACnE,OAAO,CACL,uBAAC,gCAAa,cACZ,uBAAC,+BAAkB,oBAAK,IAAI,EAAI,GAClB,CACjB,CAAA;AACH,CAAC,CAAA;AANY,QAAA,QAAQ,YAMpB"}
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/ea13d27f1/packages/sdk/packages/embed/src/components/embed-card/card/BusyCard.tsx#L13"
29
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/f3481fcfbb5/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/ea13d27f1/packages/sdk/packages/embed/src/components/embed-card/card/BusyCard.tsx#L14"
54
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/f3481fcfbb5/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/ea13d27f1/packages/sdk/packages/embed/src/components/embed-card/card/BusyCard.tsx#L15"
79
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/f3481fcfbb5/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/ea13d27f1/packages/sdk/packages/embed/src/components/embed-card/card/BusyCard.tsx#L16"
106
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/f3481fcfbb5/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/ea13d27f1/packages/sdk/packages/embed/src/contexts/XyoEmbedPluginContext/State.ts#L24"
152
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/f3481fcfbb5/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/ea13d27f1/packages/sdk/packages/embed/src/types/XyoEmbedPluginProps.ts#L6"
177
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/f3481fcfbb5/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/ea13d27f1/packages/sdk/packages/embed/src/contexts/XyoEmbedPluginContext/State.ts#L27"
216
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/f3481fcfbb5/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/ea13d27f1/packages/sdk/packages/embed/src/types/XyoEmbedPluginProps.ts#L7"
241
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/f3481fcfbb5/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/ea13d27f1/packages/sdk/packages/embed/src/types/XyoEmbedPluginProps.ts#L9"
305
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/f3481fcfbb5/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/ea13d27f1/packages/sdk/packages/embed/src/types/XyoEmbedPluginProps.ts#L9"
321
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/f3481fcfbb5/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/ea13d27f1/packages/sdk/packages/embed/src/contexts/XyoEmbedPluginContext/State.ts#L28"
365
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/f3481fcfbb5/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/ea13d27f1/packages/sdk/packages/embed/src/contexts/XyoEmbedPluginContext/State.ts#L29"
393
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/f3481fcfbb5/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/ea13d27f1/packages/sdk/packages/embed/src/contexts/XyoEmbedPluginContext/State.ts#L30"
418
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/f3481fcfbb5/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/ea13d27f1/packages/sdk/packages/embed/src/types/XyoEmbedPluginProps.ts#L10"
443
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/f3481fcfbb5/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/ea13d27f1/packages/sdk/packages/embed/src/components/embed-card/XyoEmbedPluginCard.tsx#L10"
481
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/f3481fcfbb5/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/ea13d27f1/packages/sdk/packages/embed/src/components/embed-card/XyoEmbedPluginCard.tsx#L64"
512
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/f3481fcfbb5/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/ea13d27f1/packages/sdk/packages/embed/src/components/embed-card/XyoEmbedPluginCard.tsx#L12"
602
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/f3481fcfbb5/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/ea13d27f1/packages/sdk/packages/embed/src/components/embed-card/XyoEmbedPluginCard.tsx#L44"
678
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/f3481fcfbb5/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/ea13d27f1/packages/sdk/packages/embed/src/components/XyoEmbedPlugin.tsx#L10"
753
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/f3481fcfbb5/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/ea13d27f1/packages/sdk/packages/embed/src/index.ts#L1"
848
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/f3481fcfbb5/packages/sdk/packages/embed/src/index.ts#L1"
849
849
  }
850
850
  ]
851
851
  }
@@ -0,0 +1,22 @@
1
+ export const payloadData = {
2
+ assets: {
3
+ ada: { value: { btc: '0.00002192', eth: '0.00031141', eur: '0.491867', usd: '0.502045' } },
4
+ btc: { value: { btc: '1', eth: '14.213346', eur: '22450', usd: '22914' } },
5
+ busd: { value: { btc: '0.00004369', eth: '0.00062074', eur: '0.980451', usd: '1.001' } },
6
+ dai: { value: { usdc: '1.00004', xyo: '114.394' } },
7
+ doge: { value: { btc: '0.00000293', eth: '0.00004157', eur: '0.065655', usd: '0.067013' } },
8
+ dot: { value: { btc: '0.00035508', eth: '0.00504454', eur: '7.97', usd: '8.13' } },
9
+ eth: { value: { btc: '0.0703878', eth: '1', eur: '1579.47', usd: '1612.16' } },
10
+ frax: { value: { usdc: '0.999738' } },
11
+ link: { value: { xyo: '837.731' } },
12
+ sol: { value: { btc: '0.00169369', eth: '0.02406215', eur: '38.01', usd: '38.79' } },
13
+ usdc: { value: { btc: '0.0000436965', dai: '0.999963', eth: '0.0006204464999999999', eur: '0.979419', frax: '1.00026', usd: '0.999732' } },
14
+ usdt: { value: { btc: '0.00004367', eth: '0.0006204', eur: '0.979881', usd: '1.001', usdc: '1.00022', xyo: '113.28' } },
15
+ wbtc: { value: { btc: '0.99903669', eth: '14.2015745', eur: '22418', usd: '22882', usdc: '22860.8', xyo: '2617950' } },
16
+ weth: { value: { btc: '0.0703735', usdc: '1610.82', xyo: '186652' } },
17
+ xyo: { value: { btc: '3.79226e-7', dai: '0.00874169', eth: '0.000005353785', eur: '0.00844792', link: '0.0011937', usd: '0.00872519' } },
18
+ },
19
+ schema: 'network.xyo.crypto.asset',
20
+ timestamp: 1659625815232,
21
+ };
22
+ //# sourceMappingURL=storyPayload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storyPayload.js","sourceRoot":"","sources":["../../../../src/components/embed-plugin-stories/storyPayload.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,MAAM,EAAE;QACN,GAAG,EAAE,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,UAAU,EAAE,EAAE;QAC1F,GAAG,EAAE,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE;QAC1E,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE;QACxF,GAAG,EAAE,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,EAAE,EAAE;QACnD,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,UAAU,EAAE,EAAE;QAC3F,GAAG,EAAE,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE;QAClF,GAAG,EAAE,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,SA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I;IACD,MAAM,EAAE,0BAA0B;IAClC,SAAS,EAAE,aAAa;CACzB,CAAA"}
@@ -0,0 +1,16 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { BrowserRouter } from 'react-router-dom';
3
+ import { XyoEmbedPluginCard } from '../embed-card';
4
+ export const xyoEmbedStoryBase = {
5
+ argTypes: {},
6
+ component: XyoEmbedPluginCard,
7
+ parameters: {
8
+ docs: {
9
+ page: null,
10
+ },
11
+ },
12
+ };
13
+ export const Template = (args) => {
14
+ return (_jsx(BrowserRouter, { children: _jsx(XyoEmbedPluginCard, { ...args }) }));
15
+ };
16
+ //# sourceMappingURL=storyShared.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storyShared.js","sourceRoot":"","sources":["../../../../src/components/embed-plugin-stories/storyShared.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAEhD,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAElD,MAAM,CAAC,MAAM,iBAAiB,GAAS;IACrC,QAAQ,EAAE,EAAE;IACZ,SAAS,EAAE,kBAAkB;IAC7B,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,IAAI,EAAE,IAAI;SACX;KACF;CACF,CAAA;AAED,MAAM,CAAC,MAAM,QAAQ,GAAuC,CAAC,IAAI,EAAE,EAAE;IACnE,OAAO,CACL,KAAC,aAAa,cACZ,KAAC,kBAAkB,OAAK,IAAI,GAAI,GAClB,CACjB,CAAA;AACH,CAAC,CAAA"}
@@ -0,0 +1,126 @@
1
+ export declare const payloadData: {
2
+ assets: {
3
+ ada: {
4
+ value: {
5
+ btc: string;
6
+ eth: string;
7
+ eur: string;
8
+ usd: string;
9
+ };
10
+ };
11
+ btc: {
12
+ value: {
13
+ btc: string;
14
+ eth: string;
15
+ eur: string;
16
+ usd: string;
17
+ };
18
+ };
19
+ busd: {
20
+ value: {
21
+ btc: string;
22
+ eth: string;
23
+ eur: string;
24
+ usd: string;
25
+ };
26
+ };
27
+ dai: {
28
+ value: {
29
+ usdc: string;
30
+ xyo: string;
31
+ };
32
+ };
33
+ doge: {
34
+ value: {
35
+ btc: string;
36
+ eth: string;
37
+ eur: string;
38
+ usd: string;
39
+ };
40
+ };
41
+ dot: {
42
+ value: {
43
+ btc: string;
44
+ eth: string;
45
+ eur: string;
46
+ usd: string;
47
+ };
48
+ };
49
+ eth: {
50
+ value: {
51
+ btc: string;
52
+ eth: string;
53
+ eur: string;
54
+ usd: string;
55
+ };
56
+ };
57
+ frax: {
58
+ value: {
59
+ usdc: string;
60
+ };
61
+ };
62
+ link: {
63
+ value: {
64
+ xyo: string;
65
+ };
66
+ };
67
+ sol: {
68
+ value: {
69
+ btc: string;
70
+ eth: string;
71
+ eur: string;
72
+ usd: string;
73
+ };
74
+ };
75
+ usdc: {
76
+ value: {
77
+ btc: string;
78
+ dai: string;
79
+ eth: string;
80
+ eur: string;
81
+ frax: string;
82
+ usd: string;
83
+ };
84
+ };
85
+ usdt: {
86
+ value: {
87
+ btc: string;
88
+ eth: string;
89
+ eur: string;
90
+ usd: string;
91
+ usdc: string;
92
+ xyo: string;
93
+ };
94
+ };
95
+ wbtc: {
96
+ value: {
97
+ btc: string;
98
+ eth: string;
99
+ eur: string;
100
+ usd: string;
101
+ usdc: string;
102
+ xyo: string;
103
+ };
104
+ };
105
+ weth: {
106
+ value: {
107
+ btc: string;
108
+ usdc: string;
109
+ xyo: string;
110
+ };
111
+ };
112
+ xyo: {
113
+ value: {
114
+ btc: string;
115
+ dai: string;
116
+ eth: string;
117
+ eur: string;
118
+ link: string;
119
+ usd: string;
120
+ };
121
+ };
122
+ };
123
+ schema: string;
124
+ timestamp: number;
125
+ };
126
+ //# sourceMappingURL=storyPayload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storyPayload.d.ts","sourceRoot":"","sources":["../../../../src/components/embed-plugin-stories/storyPayload.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoBvB,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { Meta, StoryFn } from '@storybook/react';
2
+ import { XyoEmbedPluginCard } from '../embed-card';
3
+ export declare const xyoEmbedStoryBase: Meta;
4
+ export declare const Template: StoryFn<typeof XyoEmbedPluginCard>;
5
+ //# sourceMappingURL=storyShared.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storyShared.d.ts","sourceRoot":"","sources":["../../../../src/components/embed-plugin-stories/storyShared.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAGhD,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAElD,eAAO,MAAM,iBAAiB,EAAE,IAQ/B,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,OAAO,CAAC,OAAO,kBAAkB,CAMvD,CAAA"}
package/package.json CHANGED
@@ -11,25 +11,25 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "@xylabs/delay": "^2.7.6",
14
- "@xylabs/react-flexbox": "^2.17.0",
15
- "@xylabs/react-shared": "^2.17.0",
14
+ "@xylabs/react-flexbox": "^2.17.1",
15
+ "@xylabs/react-shared": "^2.17.1",
16
16
  "@xyo-network/huri": "^2.55.0",
17
17
  "@xyo-network/module": "^2.55.0",
18
18
  "@xyo-network/payload-model": "^2.55.0",
19
- "@xyo-network/react-error": "^2.48.2",
20
- "@xyo-network/react-payload-plugin": "^2.48.2",
21
- "@xyo-network/react-shared": "^2.48.2",
19
+ "@xyo-network/react-error": "^2.48.4",
20
+ "@xyo-network/react-payload-plugin": "^2.48.4",
21
+ "@xyo-network/react-shared": "^2.48.4",
22
22
  "@xyo-network/schema-cache": "^2.55.0"
23
23
  },
24
24
  "devDependencies": {
25
- "@storybook/react": "^6.5.16",
25
+ "@storybook/react": "^7.0.2",
26
26
  "@uniswap/sdk": "^3.0.3",
27
27
  "@uniswap/sdk-core": "^3.2.2",
28
28
  "@uniswap/v3-sdk": "^3.9.0",
29
29
  "@xylabs/ts-scripts-yarn3": "^2.16.5",
30
30
  "@xylabs/tsconfig-react": "^2.16.5",
31
- "@xyo-network/react-aggregate-price-plugin": "^2.48.2",
32
- "@xyo-network/react-crypto-market-uniswap-plugin": "^2.48.2",
31
+ "@xyo-network/react-aggregate-price-plugin": "^2.48.4",
32
+ "@xyo-network/react-crypto-market-uniswap-plugin": "^2.48.4",
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.48.2"
88
+ "version": "2.48.4"
89
89
  }
@@ -2,7 +2,7 @@ import { Meta } from '@storybook/react'
2
2
  import { CryptoAssetRenderPlugin } from '@xyo-network/react-aggregate-price-plugin'
3
3
  import { UniswapPairsRenderPlugin } from '@xyo-network/react-crypto-market-uniswap-plugin'
4
4
 
5
- import { Template, xyoEmbedStoryBase } from './shared.stories'
5
+ import { Template, xyoEmbedStoryBase } from './storyShared'
6
6
 
7
7
  const AggregatePricePointer = 'https://api.archivist.xyo.network/1948bf4eedf90ee2b8a1f63216b7c6b3b18d7bc2834330d85bcd6ab3d6428a20'
8
8
  const UniswapPairPointer = 'https://beta.api.archivist.xyo.network/e36602006239d86b6e08412f7879372b2c622d74f4d6bc508a08a46fa8ad6523'
@@ -3,8 +3,8 @@ import { CryptoAssetRenderPlugin } from '@xyo-network/react-aggregate-price-plug
3
3
  import { UniswapPairsRenderPlugin } from '@xyo-network/react-crypto-market-uniswap-plugin'
4
4
  import { createPayloadRenderPlugin } from '@xyo-network/react-payload-plugin'
5
5
 
6
- import { payloadData } from './payload.stories'
7
- import { Template, xyoEmbedStoryBase } from './shared.stories'
6
+ import { payloadData } from './storyPayload'
7
+ import { Template, xyoEmbedStoryBase } from './storyShared'
8
8
 
9
9
  const AggregatePricePointer = 'https://api.archivist.xyo.network/1948bf4eedf90ee2b8a1f63216b7c6b3b18d7bc2834330d85bcd6ab3d6428a20'
10
10
 
@@ -1,4 +1,4 @@
1
- import { ComponentStory, Meta } from '@storybook/react'
1
+ import { Meta, StoryFn } from '@storybook/react'
2
2
  import { BrowserRouter } from 'react-router-dom'
3
3
 
4
4
  import { XyoEmbedPluginCard } from '../embed-card'
@@ -13,7 +13,7 @@ export const xyoEmbedStoryBase: Meta = {
13
13
  },
14
14
  }
15
15
 
16
- export const Template: ComponentStory<typeof XyoEmbedPluginCard> = (args) => {
16
+ export const Template: StoryFn<typeof XyoEmbedPluginCard> = (args) => {
17
17
  return (
18
18
  <BrowserRouter>
19
19
  <XyoEmbedPluginCard {...args} />
@@ -1,5 +1,5 @@
1
1
  import { Typography } from '@mui/material'
2
- import { ComponentStory, DecoratorFn, Meta } from '@storybook/react'
2
+ import { Decorator, Meta, StoryFn } from '@storybook/react'
3
3
 
4
4
  import { RefreshPayloadProvider } from '../RefreshPayloadContext'
5
5
  import { ResolvePayloadContext, ResolvePayloadState } from '../ResolvePayloadContext'
@@ -7,7 +7,7 @@ import { XyoEmbedPluginContext, XyoEmbedPluginState } from '../XyoEmbedPluginCon
7
7
  import { ValidatePayloadProvider, ValidatePayloadProviderProps } from './Provider'
8
8
  import { useValidatePayload } from './use'
9
9
 
10
- const EmbedDecorator: DecoratorFn = (Story, { args }) => {
10
+ const EmbedDecorator: Decorator<ValidatePayloadProviderPropsEx> = (Story, { args }) => {
11
11
  const { xyoEmbedPluginContext, resolvePayloadContext, ...props } = args
12
12
  console.log(resolvePayloadContext)
13
13
  return (
@@ -21,7 +21,7 @@ const EmbedDecorator: DecoratorFn = (Story, { args }) => {
21
21
  )
22
22
  }
23
23
 
24
- const StorybookEntry: Meta = {
24
+ const StorybookEntry: Meta<ValidatePayloadProviderPropsEx> = {
25
25
  component: ValidatePayloadProvider,
26
26
  decorators: [EmbedDecorator],
27
27
  title: 'embed/ValidatePayloadProvider',
@@ -37,7 +37,7 @@ interface ValidatePayloadProviderPropsEx extends ValidatePayloadProviderProps {
37
37
  xyoEmbedPluginContext: XyoEmbedPluginState
38
38
  }
39
39
 
40
- const Template: ComponentStory<React.FC<ValidatePayloadProviderPropsEx>> = (props) => {
40
+ const Template: StoryFn<React.FC<ValidatePayloadProviderPropsEx>> = (props) => {
41
41
  return (
42
42
  <ValidatePayloadProvider {...props}>
43
43
  <Typography>State:</Typography>