@xyo-network/react-embed 2.46.6 → 2.46.7
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/contexts/ResolvePayloadContext/Provider.js.map +1 -1
- package/dist/cjs/contexts/XyoEmbedPluginContext/Provider.js.map +1 -1
- package/dist/docs.json +23 -23
- package/dist/esm/contexts/ResolvePayloadContext/Provider.js.map +1 -1
- package/dist/esm/contexts/XyoEmbedPluginContext/Provider.js.map +1 -1
- package/dist/types/contexts/ResolvePayloadContext/State.d.ts +4 -4
- package/dist/types/contexts/ResolvePayloadContext/State.d.ts.map +1 -1
- package/dist/types/contexts/XyoEmbedPluginContext/State.d.ts +4 -4
- package/dist/types/contexts/XyoEmbedPluginContext/State.d.ts.map +1 -1
- package/dist/types/types/XyoEmbedPluginProps.d.ts +2 -2
- package/dist/types/types/XyoEmbedPluginProps.d.ts.map +1 -1
- package/package.json +10 -10
- package/src/contexts/ResolvePayloadContext/Provider.tsx +2 -2
- package/src/contexts/ResolvePayloadContext/State.ts +4 -4
- package/src/contexts/XyoEmbedPluginContext/Provider.tsx +2 -2
- package/src/contexts/XyoEmbedPluginContext/State.ts +4 -4
- package/src/types/XyoEmbedPluginProps.ts +2 -2
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Provider.js","sourceRoot":"","sources":["../../../../src/contexts/ResolvePayloadContext/Provider.tsx"],"names":[],"mappings":";;;;;AAAA,yCAAqC;AACrC,uDAAmE;AACnE,4CAAwC;AACxC,gDAA8D;AAE9D,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,
|
1
|
+
{"version":3,"file":"Provider.js","sourceRoot":"","sources":["../../../../src/contexts/ResolvePayloadContext/Provider.tsx"],"names":[],"mappings":";;;;;AAAA,yCAAqC;AACrC,uDAAmE;AACnE,4CAAwC;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Ae,CAAC,GAAG,IAAA,gBAAQ,
|
1
|
+
{"version":3,"file":"Provider.js","sourceRoot":"","sources":["../../../../src/contexts/XyoEmbedPluginContext/Provider.tsx"],"names":[],"mappings":";;;;AAEA,iCAA2C;AAE3C,uCAAiD;AAKjD,mDAAmD;AAC5C,MAAM,sBAAsB,GAAwD,CAAC,EAC1F,QAAQ,EACR,YAAY,EACZ,cAAc,EACd,kBAAkB,EAClB,OAAO,EACP,iBAAiB,GAClB,EAAE,EAAE;IACH,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,IAAA,gBAAQ,EAAkC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;IAEnH,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;IACnD,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAA;IAEb,OAAO,CACL,uBAAC,+BAAqB,CAAC,QAAQ,kBAC7B,KAAK,EAAE;YACL,YAAY;YACZ,iBAAiB;YACjB,kBAAkB;YAClB,QAAQ,EAAE,IAAI;YACd,YAAY;YACZ,eAAe;YACf,cAAc;SACf,gBAEA,QAAQ,IACsB,CAClC,CAAA;AACH,CAAC,CAAA;AA7BY,QAAA,sBAAsB,0BA6BlC"}
|
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/10a0e53a1b1/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/10a0e53a1b1/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/10a0e53a1b1/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/10a0e53a1b1/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/10a0e53a1b1/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/10a0e53a1b1/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/10a0e53a1b1/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/10a0e53a1b1/packages/sdk/packages/embed/src/types/XyoEmbedPluginProps.ts#L7"
|
242
242
|
}
|
243
243
|
],
|
244
244
|
"type": {
|
@@ -273,8 +273,8 @@
|
|
273
273
|
"flags": {},
|
274
274
|
"sources": [
|
275
275
|
{
|
276
|
-
"fileName": "node_modules/@xyo-network/payload-model/dist/types/
|
277
|
-
"line":
|
276
|
+
"fileName": "node_modules/@xyo-network/payload-model/dist/types/Payload.d.ts",
|
277
|
+
"line": 20,
|
278
278
|
"character": 17
|
279
279
|
}
|
280
280
|
]
|
@@ -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/10a0e53a1b1/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/10a0e53a1b1/packages/sdk/packages/embed/src/types/XyoEmbedPluginProps.ts#L9"
|
322
322
|
}
|
323
323
|
],
|
324
324
|
"signatures": [
|
@@ -362,14 +362,14 @@
|
|
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/10a0e53a1b1/packages/sdk/packages/embed/src/contexts/XyoEmbedPluginContext/State.ts#L28"
|
366
366
|
}
|
367
367
|
],
|
368
368
|
"type": {
|
369
369
|
"type": "array",
|
370
370
|
"elementType": {
|
371
371
|
"type": "reference",
|
372
|
-
"name": "
|
372
|
+
"name": "PayloadRenderPlugin"
|
373
373
|
}
|
374
374
|
},
|
375
375
|
"inheritedFrom": {
|
@@ -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/10a0e53a1b1/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/10a0e53a1b1/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/10a0e53a1b1/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/10a0e53a1b1/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/10a0e53a1b1/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/10a0e53a1b1/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/10a0e53a1b1/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/10a0e53a1b1/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/10a0e53a1b1/packages/sdk/packages/embed/src/index.ts#L1"
|
849
849
|
}
|
850
850
|
]
|
851
851
|
}
|
@@ -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,EAAgB,MAAM,sBAAsB,CAAA;AACnE,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AACxC,OAAO,EAAY,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAE9D,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,
|
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,EAAgB,MAAM,sBAAsB,CAAA;AACnE,OAAO,EAA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YAAY,EACZ,cAAc,EACd,kBAAkB,EAClB,OAAO,EACP,iBAAiB,GAClB,EAAE,EAAE;IACH,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,
|
1
|
+
{"version":3,"file":"Provider.js","sourceRoot":"","sources":["../../../../src/contexts/XyoEmbedPluginContext/Provider.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAE3C,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAA;AAKjD,mDAAmD;AACnD,MAAM,CAAC,MAAM,sBAAsB,GAAwD,CAAC,EAC1F,QAAQ,EACR,YAAY,EACZ,cAAc,EACd,kBAAkB,EAClB,OAAO,EACP,iBAAiB,GAClB,EAAE,EAAE;IACH,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAkC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;IAEnH,SAAS,CAAC,GAAG,EAAE;QACb,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;IACnD,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAA;IAEb,OAAO,CACL,KAAC,qBAAqB,CAAC,QAAQ,IAC7B,KAAK,EAAE;YACL,YAAY;YACZ,iBAAiB;YACjB,kBAAkB;YAClB,QAAQ,EAAE,IAAI;YACd,YAAY;YACZ,eAAe;YACf,cAAc;SACf,YAEA,QAAQ,GACsB,CAClC,CAAA;AACH,CAAC,CAAA"}
|
@@ -1,14 +1,14 @@
|
|
1
1
|
import { XyoError } from '@xyo-network/module';
|
2
|
-
import {
|
2
|
+
import { Payload } from '@xyo-network/payload-model';
|
3
3
|
import { ContextExState } from '@xyo-network/react-shared';
|
4
4
|
import { Dispatch, SetStateAction } from 'react';
|
5
5
|
export interface ResolvePayloadState extends ContextExState {
|
6
6
|
huri?: string;
|
7
7
|
huriError?: XyoError;
|
8
|
-
huriPayload?: string |
|
8
|
+
huriPayload?: string | Payload;
|
9
9
|
notFound?: boolean;
|
10
|
-
payload?:
|
10
|
+
payload?: Payload;
|
11
11
|
refreshHuri?: () => void;
|
12
|
-
setPayload?: Dispatch<SetStateAction<
|
12
|
+
setPayload?: Dispatch<SetStateAction<Payload | undefined>>;
|
13
13
|
}
|
14
14
|
//# sourceMappingURL=State.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../../../src/contexts/ResolvePayloadContext/State.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AAC9C,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../../../src/contexts/ResolvePayloadContext/State.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACpD,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,QAAQ,CAAA;IACpB,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"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { PayloadRenderPlugin } from '@xyo-network/react-payload-plugin';
|
2
2
|
import { ContextExState, ListMode } from '@xyo-network/react-shared';
|
3
3
|
import { Dispatch, SetStateAction } from 'react';
|
4
4
|
export interface EmbedPluginVisibilityConfig {
|
@@ -22,12 +22,12 @@ export interface XyoEmbedPluginBase {
|
|
22
22
|
hideElementsConfig?: EmbedPluginVisibilityConfig;
|
23
23
|
/** @deprecated use huriPayload */
|
24
24
|
huri?: string;
|
25
|
-
plugins?:
|
25
|
+
plugins?: PayloadRenderPlugin[];
|
26
26
|
refreshTitle?: string;
|
27
27
|
timestampLabel?: string;
|
28
28
|
}
|
29
29
|
export interface XyoEmbedPluginState extends XyoEmbedPluginBase, ContextExState {
|
30
|
-
activePlugin?:
|
31
|
-
setActivePlugin?: Dispatch<SetStateAction<
|
30
|
+
activePlugin?: PayloadRenderPlugin;
|
31
|
+
setActivePlugin?: Dispatch<SetStateAction<PayloadRenderPlugin | undefined>>;
|
32
32
|
}
|
33
33
|
//# sourceMappingURL=State.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../../../src/contexts/XyoEmbedPluginContext/State.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../../../src/contexts/XyoEmbedPluginContext/State.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAA;AACvE,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAA;AACpE,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAEhD,MAAM,WAAW,2BAA2B;IAC1C,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,QAAQ,CAAA;CACpB;AAED,MAAM,WAAW,kBAAkB;IACjC,6CAA6C;IAC7C,iBAAiB,CAAC,EAAE,eAAe,CAAA;IACnC,kBAAkB,CAAC,EAAE,2BAA2B,CAAA;IAChD,kCAAkC;IAClC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,mBAAmB,EAAE,CAAA;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB;AAED,MAAM,WAAW,mBAAoB,SAAQ,kBAAkB,EAAE,cAAc;IAC7E,YAAY,CAAC,EAAE,mBAAmB,CAAA;IAClC,eAAe,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,mBAAmB,GAAG,SAAS,CAAC,CAAC,CAAA;CAC5E"}
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import {
|
1
|
+
import { Payload } from '@xyo-network/payload-model';
|
2
2
|
import { EmbedPluginVisibilityConfig, XyoEmbedPluginBase } from '../contexts';
|
3
3
|
export interface XyoEmbedPluginProps extends XyoEmbedPluginBase {
|
4
4
|
hideElementsConfig?: EmbedPluginVisibilityConfig;
|
5
|
-
huriPayload?: string |
|
5
|
+
huriPayload?: string | Payload;
|
6
6
|
/** string for huri to resolve and payload for bypassing huri resolution */
|
7
7
|
onRefresh?: () => void;
|
8
8
|
validateSchema?: boolean;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"XyoEmbedPluginProps.d.ts","sourceRoot":"","sources":["../../../src/types/XyoEmbedPluginProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"XyoEmbedPluginProps.d.ts","sourceRoot":"","sources":["../../../src/types/XyoEmbedPluginProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,OAAO,EAAE,2BAA2B,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAE7E,MAAM,WAAW,mBAAoB,SAAQ,kBAAkB;IAC7D,kBAAkB,CAAC,EAAE,2BAA2B,CAAA;IAChD,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IAC9B,2EAA2E;IAC3E,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB"}
|
package/package.json
CHANGED
@@ -13,13 +13,13 @@
|
|
13
13
|
"@xylabs/delay": "^2.7.4",
|
14
14
|
"@xylabs/react-flexbox": "^2.16.11",
|
15
15
|
"@xylabs/react-shared": "^2.16.11",
|
16
|
-
"@xyo-network/huri": "^2.
|
17
|
-
"@xyo-network/module": "^2.
|
18
|
-
"@xyo-network/payload-model": "^2.
|
19
|
-
"@xyo-network/react-error": "^2.46.
|
20
|
-
"@xyo-network/react-payload-plugin": "^2.46.
|
21
|
-
"@xyo-network/react-shared": "^2.46.
|
22
|
-
"@xyo-network/utils": "^2.
|
16
|
+
"@xyo-network/huri": "^2.53.2",
|
17
|
+
"@xyo-network/module": "^2.53.2",
|
18
|
+
"@xyo-network/payload-model": "^2.53.2",
|
19
|
+
"@xyo-network/react-error": "^2.46.7",
|
20
|
+
"@xyo-network/react-payload-plugin": "^2.46.7",
|
21
|
+
"@xyo-network/react-shared": "^2.46.7",
|
22
|
+
"@xyo-network/utils": "^2.53.2"
|
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.46.
|
32
|
-
"@xyo-network/react-crypto-market-uniswap-plugin": "^2.46.
|
31
|
+
"@xyo-network/react-aggregate-price-plugin": "^2.46.7",
|
32
|
+
"@xyo-network/react-crypto-market-uniswap-plugin": "^2.46.7",
|
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.46.
|
88
|
+
"version": "2.46.7"
|
89
89
|
}
|
@@ -2,7 +2,7 @@ import { delay } from '@xylabs/delay'
|
|
2
2
|
import { useAsyncEffect, WithChildren } from '@xylabs/react-shared'
|
3
3
|
import { Huri } from '@xyo-network/huri'
|
4
4
|
import { XyoError, XyoErrorSchema } from '@xyo-network/module'
|
5
|
-
import {
|
5
|
+
import { Payload } from '@xyo-network/payload-model'
|
6
6
|
import { useEffect, useState } from 'react'
|
7
7
|
|
8
8
|
import { useRefreshPayload } from '../RefreshPayloadContext'
|
@@ -12,7 +12,7 @@ import { ResolvePayloadState } from './State'
|
|
12
12
|
export type ResolvePayloadProviderProps = Omit<ResolvePayloadState, 'provided'>
|
13
13
|
|
14
14
|
export const ResolvePayloadProvider: React.FC<WithChildren<ResolvePayloadProviderProps>> = ({ children, huriPayload }) => {
|
15
|
-
const [payload, setPayload] = useState<
|
15
|
+
const [payload, setPayload] = useState<Payload>()
|
16
16
|
const [huri, setHuri] = useState<string>()
|
17
17
|
const { refreshPayload, setRefreshPayload, onRefresh } = useRefreshPayload()
|
18
18
|
|
@@ -1,14 +1,14 @@
|
|
1
1
|
import { XyoError } from '@xyo-network/module'
|
2
|
-
import {
|
2
|
+
import { Payload } from '@xyo-network/payload-model'
|
3
3
|
import { ContextExState } from '@xyo-network/react-shared'
|
4
4
|
import { Dispatch, SetStateAction } from 'react'
|
5
5
|
|
6
6
|
export interface ResolvePayloadState extends ContextExState {
|
7
7
|
huri?: string
|
8
8
|
huriError?: XyoError
|
9
|
-
huriPayload?: string |
|
9
|
+
huriPayload?: string | Payload
|
10
10
|
notFound?: boolean
|
11
|
-
payload?:
|
11
|
+
payload?: Payload
|
12
12
|
refreshHuri?: () => void
|
13
|
-
setPayload?: Dispatch<SetStateAction<
|
13
|
+
setPayload?: Dispatch<SetStateAction<Payload | undefined>>
|
14
14
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { WithChildren } from '@xylabs/react-shared'
|
2
|
-
import {
|
2
|
+
import { PayloadRenderPlugin } from '@xyo-network/react-payload-plugin'
|
3
3
|
import { useEffect, useState } from 'react'
|
4
4
|
|
5
5
|
import { XyoEmbedPluginContext } from './Context'
|
@@ -16,7 +16,7 @@ export const XyoEmbedPluginProvider: React.FC<WithChildren<XyoEmbedPluginProvide
|
|
16
16
|
plugins,
|
17
17
|
embedPluginConfig,
|
18
18
|
}) => {
|
19
|
-
const [activePlugin, setActivePlugin] = useState<
|
19
|
+
const [activePlugin, setActivePlugin] = useState<PayloadRenderPlugin | undefined>(plugins ? plugins[0] : undefined)
|
20
20
|
|
21
21
|
useEffect(() => {
|
22
22
|
setActivePlugin(plugins ? plugins[0] : undefined)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { PayloadRenderPlugin } from '@xyo-network/react-payload-plugin'
|
2
2
|
import { ContextExState, ListMode } from '@xyo-network/react-shared'
|
3
3
|
import { Dispatch, SetStateAction } from 'react'
|
4
4
|
|
@@ -25,12 +25,12 @@ export interface XyoEmbedPluginBase {
|
|
25
25
|
hideElementsConfig?: EmbedPluginVisibilityConfig
|
26
26
|
/** @deprecated use huriPayload */
|
27
27
|
huri?: string
|
28
|
-
plugins?:
|
28
|
+
plugins?: PayloadRenderPlugin[]
|
29
29
|
refreshTitle?: string
|
30
30
|
timestampLabel?: string
|
31
31
|
}
|
32
32
|
|
33
33
|
export interface XyoEmbedPluginState extends XyoEmbedPluginBase, ContextExState {
|
34
|
-
activePlugin?:
|
35
|
-
setActivePlugin?: Dispatch<SetStateAction<
|
34
|
+
activePlugin?: PayloadRenderPlugin
|
35
|
+
setActivePlugin?: Dispatch<SetStateAction<PayloadRenderPlugin | undefined>>
|
36
36
|
}
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import {
|
1
|
+
import { Payload } from '@xyo-network/payload-model'
|
2
2
|
|
3
3
|
import { EmbedPluginVisibilityConfig, XyoEmbedPluginBase } from '../contexts'
|
4
4
|
|
5
5
|
export interface XyoEmbedPluginProps extends XyoEmbedPluginBase {
|
6
6
|
hideElementsConfig?: EmbedPluginVisibilityConfig
|
7
|
-
huriPayload?: string |
|
7
|
+
huriPayload?: string | Payload
|
8
8
|
/** string for huri to resolve and payload for bypassing huri resolution */
|
9
9
|
onRefresh?: () => void
|
10
10
|
validateSchema?: boolean
|