@xyo-network/react-payload-diviner 2.35.11 → 2.35.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,37 +1,13 @@
1
1
  import { Dispatch } from 'react';
2
2
  export declare const usePayloadDiviner: (required?: boolean) => Omit<import("./State").PayloadDivinerState & import("@xyo-network/react-shared").ContextExState, "provided">;
3
- export declare const useDivinePayload: <T extends {
3
+ export declare const useDivinePayload: <T extends import("@xyo-network/payload").SchemaFields & import("@xyo-network/payload").PayloadFields & {
4
4
  schema: string;
5
- } & {
6
- previousHash?: string | undefined;
7
- sources?: string[] | undefined;
8
- timestamp?: number | undefined;
9
- } & {
10
- schema: string;
11
- } = {
12
- schema: string;
13
- } & {
14
- previousHash?: string | undefined;
15
- sources?: string[] | undefined;
16
- timestamp?: number | undefined;
17
- } & {
5
+ } = import("@xyo-network/payload").SchemaFields & import("@xyo-network/payload").PayloadFields & {
18
6
  schema: string;
19
7
  }>(huri?: string) => [T | null | undefined, Dispatch<T | null | undefined>, Error | undefined];
20
- export declare const useDivinePayloads: <T extends {
21
- schema: string;
22
- } & {
23
- previousHash?: string | undefined;
24
- sources?: string[] | undefined;
25
- timestamp?: number | undefined;
26
- } & {
27
- schema: string;
28
- } = {
8
+ export declare const useDivinePayloads: <T extends import("@xyo-network/payload").SchemaFields & import("@xyo-network/payload").PayloadFields & {
29
9
  schema: string;
30
- } & {
31
- previousHash?: string | undefined;
32
- sources?: string[] | undefined;
33
- timestamp?: number | undefined;
34
- } & {
10
+ } = import("@xyo-network/payload").SchemaFields & import("@xyo-network/payload").PayloadFields & {
35
11
  schema: string;
36
12
  }>(huriList: string[]) => [(T | null)[] | undefined, Dispatch<(T | null)[] | undefined>, Error[] | undefined];
37
13
  //# sourceMappingURL=use.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../../src/contexts/PayloadDiviner/use.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,QAAQ,EAAuB,MAAM,OAAO,CAAA;AAIrD,eAAO,MAAM,iBAAiB,sIAE7B,CAAA;AAED,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;UACpB,MAAM,8EAmCd,CAAA;AAED,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;aAClB,MAAM,EAAE,wFA0CnB,CAAA"}
1
+ {"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../../src/contexts/PayloadDiviner/use.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,QAAQ,EAAuB,MAAM,OAAO,CAAA;AAIrD,eAAO,MAAM,iBAAiB,sIAE7B,CAAA;AAED,eAAO,MAAM,gBAAgB;;;;UACpB,MAAM,8EAmCd,CAAA;AAED,eAAO,MAAM,iBAAiB;;;;aAClB,MAAM,EAAE,wFA0CnB,CAAA"}
package/dist/docs.json CHANGED
@@ -26,7 +26,7 @@
26
26
  "fileName": "packages/sdk/packages/payload-diviner/src/contexts/PayloadDiviner/State.ts",
27
27
  "line": 5,
28
28
  "character": 2,
29
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/f41ed250/packages/sdk/packages/payload-diviner/src/contexts/PayloadDiviner/State.ts#L5"
29
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/055364f6b/packages/sdk/packages/payload-diviner/src/contexts/PayloadDiviner/State.ts#L5"
30
30
  }
31
31
  ],
32
32
  "type": {
@@ -36,43 +36,21 @@
36
36
  "type": "intersection",
37
37
  "types": [
38
38
  {
39
- "type": "reflection",
40
- "declaration": {
41
- "id": 26,
42
- "name": "__type",
43
- "kind": 65536,
44
- "kindString": "Type literal",
45
- "flags": {},
46
- "sources": [
47
- {
48
- "fileName": "node_modules/@xyo-network/payload/dist/esm/models/Base.d.ts",
49
- "line": 7,
50
- "character": 77
51
- }
52
- ]
53
- }
39
+ "type": "reference",
40
+ "name": "SchemaFields",
41
+ "qualifiedName": "SchemaFields",
42
+ "package": "@xyo-network/payload"
54
43
  },
55
44
  {
56
- "type": "reflection",
57
- "declaration": {
58
- "id": 27,
59
- "name": "__type",
60
- "kind": 65536,
61
- "kindString": "Type literal",
62
- "flags": {},
63
- "sources": [
64
- {
65
- "fileName": "node_modules/@xyo-network/payload/dist/esm/models/Base.d.ts",
66
- "line": 10,
67
- "character": 92
68
- }
69
- ]
70
- }
45
+ "type": "reference",
46
+ "name": "PayloadFields",
47
+ "qualifiedName": "PayloadFields",
48
+ "package": "@xyo-network/payload"
71
49
  },
72
50
  {
73
51
  "type": "reflection",
74
52
  "declaration": {
75
- "id": 28,
53
+ "id": 26,
76
54
  "name": "__type",
77
55
  "kind": 65536,
78
56
  "kindString": "Type literal",
@@ -80,141 +58,13 @@
80
58
  "sources": [
81
59
  {
82
60
  "fileName": "node_modules/@xyo-network/payload/dist/esm/models/Base.d.ts",
83
- "line": 17,
84
- "character": 45
61
+ "line": 19,
62
+ "character": 17
85
63
  }
86
64
  ]
87
65
  }
88
66
  }
89
67
  ]
90
- },
91
- {
92
- "type": "reference",
93
- "typeArguments": [
94
- {
95
- "type": "intersection",
96
- "types": [
97
- {
98
- "type": "reflection",
99
- "declaration": {
100
- "id": 29,
101
- "name": "__type",
102
- "kind": 65536,
103
- "kindString": "Type literal",
104
- "flags": {},
105
- "sources": [
106
- {
107
- "fileName": "node_modules/@xyo-network/payload/dist/esm/models/Base.d.ts",
108
- "line": 7,
109
- "character": 77
110
- }
111
- ]
112
- }
113
- },
114
- {
115
- "type": "reflection",
116
- "declaration": {
117
- "id": 30,
118
- "name": "__type",
119
- "kind": 65536,
120
- "kindString": "Type literal",
121
- "flags": {},
122
- "sources": [
123
- {
124
- "fileName": "node_modules/@xyo-network/payload/dist/esm/models/Base.d.ts",
125
- "line": 10,
126
- "character": 92
127
- }
128
- ]
129
- }
130
- },
131
- {
132
- "type": "reflection",
133
- "declaration": {
134
- "id": 31,
135
- "name": "__type",
136
- "kind": 65536,
137
- "kindString": "Type literal",
138
- "flags": {},
139
- "sources": [
140
- {
141
- "fileName": "node_modules/@xyo-network/payload/dist/esm/models/Base.d.ts",
142
- "line": 17,
143
- "character": 45
144
- }
145
- ]
146
- }
147
- }
148
- ]
149
- }
150
- ],
151
- "name": "XyoPayloadBase",
152
- "qualifiedName": "XyoPayloadBase",
153
- "package": "@xyo-network/payload"
154
- },
155
- {
156
- "type": "reference",
157
- "typeArguments": [
158
- {
159
- "type": "intersection",
160
- "types": [
161
- {
162
- "type": "reflection",
163
- "declaration": {
164
- "id": 32,
165
- "name": "__type",
166
- "kind": 65536,
167
- "kindString": "Type literal",
168
- "flags": {},
169
- "sources": [
170
- {
171
- "fileName": "node_modules/@xyo-network/payload/dist/esm/models/Base.d.ts",
172
- "line": 7,
173
- "character": 77
174
- }
175
- ]
176
- }
177
- },
178
- {
179
- "type": "reflection",
180
- "declaration": {
181
- "id": 33,
182
- "name": "__type",
183
- "kind": 65536,
184
- "kindString": "Type literal",
185
- "flags": {},
186
- "sources": [
187
- {
188
- "fileName": "node_modules/@xyo-network/payload/dist/esm/models/Base.d.ts",
189
- "line": 10,
190
- "character": 92
191
- }
192
- ]
193
- }
194
- },
195
- {
196
- "type": "reflection",
197
- "declaration": {
198
- "id": 34,
199
- "name": "__type",
200
- "kind": 65536,
201
- "kindString": "Type literal",
202
- "flags": {},
203
- "sources": [
204
- {
205
- "fileName": "node_modules/@xyo-network/payload/dist/esm/models/Base.d.ts",
206
- "line": 17,
207
- "character": 45
208
- }
209
- ]
210
- }
211
- }
212
- ]
213
- }
214
- ],
215
- "name": "XyoDivinerQueryBase",
216
- "qualifiedName": "XyoDivinerQueryBase",
217
- "package": "@xyo-network/diviner"
218
68
  }
219
69
  ],
220
70
  "name": "XyoPayloadDiviner",
@@ -223,7 +73,7 @@
223
73
  }
224
74
  },
225
75
  {
226
- "id": 35,
76
+ "id": 27,
227
77
  "name": "setDiviner",
228
78
  "kind": 1024,
229
79
  "kindString": "Property",
@@ -235,7 +85,7 @@
235
85
  "fileName": "packages/sdk/packages/payload-diviner/src/contexts/PayloadDiviner/State.ts",
236
86
  "line": 6,
237
87
  "character": 2,
238
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/f41ed250/packages/sdk/packages/payload-diviner/src/contexts/PayloadDiviner/State.ts#L6"
88
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/055364f6b/packages/sdk/packages/payload-diviner/src/contexts/PayloadDiviner/State.ts#L6"
239
89
  }
240
90
  ],
241
91
  "type": {
@@ -248,43 +98,21 @@
248
98
  "type": "intersection",
249
99
  "types": [
250
100
  {
251
- "type": "reflection",
252
- "declaration": {
253
- "id": 36,
254
- "name": "__type",
255
- "kind": 65536,
256
- "kindString": "Type literal",
257
- "flags": {},
258
- "sources": [
259
- {
260
- "fileName": "node_modules/@xyo-network/payload/dist/esm/models/Base.d.ts",
261
- "line": 7,
262
- "character": 77
263
- }
264
- ]
265
- }
101
+ "type": "reference",
102
+ "name": "SchemaFields",
103
+ "qualifiedName": "SchemaFields",
104
+ "package": "@xyo-network/payload"
266
105
  },
267
106
  {
268
- "type": "reflection",
269
- "declaration": {
270
- "id": 37,
271
- "name": "__type",
272
- "kind": 65536,
273
- "kindString": "Type literal",
274
- "flags": {},
275
- "sources": [
276
- {
277
- "fileName": "node_modules/@xyo-network/payload/dist/esm/models/Base.d.ts",
278
- "line": 10,
279
- "character": 92
280
- }
281
- ]
282
- }
107
+ "type": "reference",
108
+ "name": "PayloadFields",
109
+ "qualifiedName": "PayloadFields",
110
+ "package": "@xyo-network/payload"
283
111
  },
284
112
  {
285
113
  "type": "reflection",
286
114
  "declaration": {
287
- "id": 38,
115
+ "id": 28,
288
116
  "name": "__type",
289
117
  "kind": 65536,
290
118
  "kindString": "Type literal",
@@ -292,141 +120,13 @@
292
120
  "sources": [
293
121
  {
294
122
  "fileName": "node_modules/@xyo-network/payload/dist/esm/models/Base.d.ts",
295
- "line": 17,
296
- "character": 45
123
+ "line": 19,
124
+ "character": 17
297
125
  }
298
126
  ]
299
127
  }
300
128
  }
301
129
  ]
302
- },
303
- {
304
- "type": "reference",
305
- "typeArguments": [
306
- {
307
- "type": "intersection",
308
- "types": [
309
- {
310
- "type": "reflection",
311
- "declaration": {
312
- "id": 39,
313
- "name": "__type",
314
- "kind": 65536,
315
- "kindString": "Type literal",
316
- "flags": {},
317
- "sources": [
318
- {
319
- "fileName": "node_modules/@xyo-network/payload/dist/esm/models/Base.d.ts",
320
- "line": 7,
321
- "character": 77
322
- }
323
- ]
324
- }
325
- },
326
- {
327
- "type": "reflection",
328
- "declaration": {
329
- "id": 40,
330
- "name": "__type",
331
- "kind": 65536,
332
- "kindString": "Type literal",
333
- "flags": {},
334
- "sources": [
335
- {
336
- "fileName": "node_modules/@xyo-network/payload/dist/esm/models/Base.d.ts",
337
- "line": 10,
338
- "character": 92
339
- }
340
- ]
341
- }
342
- },
343
- {
344
- "type": "reflection",
345
- "declaration": {
346
- "id": 41,
347
- "name": "__type",
348
- "kind": 65536,
349
- "kindString": "Type literal",
350
- "flags": {},
351
- "sources": [
352
- {
353
- "fileName": "node_modules/@xyo-network/payload/dist/esm/models/Base.d.ts",
354
- "line": 17,
355
- "character": 45
356
- }
357
- ]
358
- }
359
- }
360
- ]
361
- }
362
- ],
363
- "name": "XyoPayloadBase",
364
- "qualifiedName": "XyoPayloadBase",
365
- "package": "@xyo-network/payload"
366
- },
367
- {
368
- "type": "reference",
369
- "typeArguments": [
370
- {
371
- "type": "intersection",
372
- "types": [
373
- {
374
- "type": "reflection",
375
- "declaration": {
376
- "id": 42,
377
- "name": "__type",
378
- "kind": 65536,
379
- "kindString": "Type literal",
380
- "flags": {},
381
- "sources": [
382
- {
383
- "fileName": "node_modules/@xyo-network/payload/dist/esm/models/Base.d.ts",
384
- "line": 7,
385
- "character": 77
386
- }
387
- ]
388
- }
389
- },
390
- {
391
- "type": "reflection",
392
- "declaration": {
393
- "id": 43,
394
- "name": "__type",
395
- "kind": 65536,
396
- "kindString": "Type literal",
397
- "flags": {},
398
- "sources": [
399
- {
400
- "fileName": "node_modules/@xyo-network/payload/dist/esm/models/Base.d.ts",
401
- "line": 10,
402
- "character": 92
403
- }
404
- ]
405
- }
406
- },
407
- {
408
- "type": "reflection",
409
- "declaration": {
410
- "id": 44,
411
- "name": "__type",
412
- "kind": 65536,
413
- "kindString": "Type literal",
414
- "flags": {},
415
- "sources": [
416
- {
417
- "fileName": "node_modules/@xyo-network/payload/dist/esm/models/Base.d.ts",
418
- "line": 17,
419
- "character": 45
420
- }
421
- ]
422
- }
423
- }
424
- ]
425
- }
426
- ],
427
- "name": "XyoDivinerQueryBase",
428
- "qualifiedName": "XyoDivinerQueryBase",
429
- "package": "@xyo-network/diviner"
430
130
  }
431
131
  ],
432
132
  "name": "XyoPayloadDiviner",
@@ -445,7 +145,7 @@
445
145
  "title": "Properties",
446
146
  "children": [
447
147
  25,
448
- 35
148
+ 27
449
149
  ]
450
150
  }
451
151
  ],
@@ -454,7 +154,7 @@
454
154
  "fileName": "packages/sdk/packages/payload-diviner/src/contexts/PayloadDiviner/State.ts",
455
155
  "line": 4,
456
156
  "character": 17,
457
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/f41ed250/packages/sdk/packages/payload-diviner/src/contexts/PayloadDiviner/State.ts#L4"
157
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/055364f6b/packages/sdk/packages/payload-diviner/src/contexts/PayloadDiviner/State.ts#L4"
458
158
  }
459
159
  ]
460
160
  },
@@ -469,7 +169,7 @@
469
169
  "fileName": "packages/sdk/packages/payload-diviner/src/contexts/PayloadDiviner/Provider.tsx",
470
170
  "line": 7,
471
171
  "character": 12,
472
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/f41ed250/packages/sdk/packages/payload-diviner/src/contexts/PayloadDiviner/Provider.tsx#L7"
172
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/055364f6b/packages/sdk/packages/payload-diviner/src/contexts/PayloadDiviner/Provider.tsx#L7"
473
173
  }
474
174
  ],
475
175
  "type": {
@@ -505,7 +205,7 @@
505
205
  "fileName": "packages/sdk/packages/payload-diviner/src/contexts/PayloadDiviner/Provider.tsx",
506
206
  "line": 9,
507
207
  "character": 2,
508
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/f41ed250/packages/sdk/packages/payload-diviner/src/contexts/PayloadDiviner/Provider.tsx#L9"
208
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/055364f6b/packages/sdk/packages/payload-diviner/src/contexts/PayloadDiviner/Provider.tsx#L9"
509
209
  }
510
210
  ],
511
211
  "type": {
@@ -529,7 +229,7 @@
529
229
  "fileName": "packages/sdk/packages/payload-diviner/src/contexts/PayloadDiviner/Provider.tsx",
530
230
  "line": 7,
531
231
  "character": 65,
532
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/f41ed250/packages/sdk/packages/payload-diviner/src/contexts/PayloadDiviner/Provider.tsx#L7"
232
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/055364f6b/packages/sdk/packages/payload-diviner/src/contexts/PayloadDiviner/Provider.tsx#L7"
533
233
  }
534
234
  ]
535
235
  }
@@ -551,7 +251,7 @@
551
251
  "fileName": "packages/sdk/packages/payload-diviner/src/contexts/DivinedPayload/Context.tsx",
552
252
  "line": 5,
553
253
  "character": 13,
554
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/f41ed250/packages/sdk/packages/payload-diviner/src/contexts/DivinedPayload/Context.tsx#L5"
254
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/055364f6b/packages/sdk/packages/payload-diviner/src/contexts/DivinedPayload/Context.tsx#L5"
555
255
  }
556
256
  ],
557
257
  "type": {
@@ -590,7 +290,7 @@
590
290
  "fileName": "packages/sdk/packages/payload-diviner/src/contexts/PayloadDiviner/Context.ts",
591
291
  "line": 5,
592
292
  "character": 6,
593
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/f41ed250/packages/sdk/packages/payload-diviner/src/contexts/PayloadDiviner/Context.ts#L5"
293
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/055364f6b/packages/sdk/packages/payload-diviner/src/contexts/PayloadDiviner/Context.ts#L5"
594
294
  }
595
295
  ],
596
296
  "type": {
@@ -628,7 +328,7 @@
628
328
  "fileName": "packages/sdk/packages/payload-diviner/src/contexts/DivinedPayload/Provider.tsx",
629
329
  "line": 15,
630
330
  "character": 13,
631
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/f41ed250/packages/sdk/packages/payload-diviner/src/contexts/DivinedPayload/Provider.tsx#L15"
331
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/055364f6b/packages/sdk/packages/payload-diviner/src/contexts/DivinedPayload/Provider.tsx#L15"
632
332
  }
633
333
  ],
634
334
  "signatures": [
@@ -703,7 +403,7 @@
703
403
  "fileName": "packages/sdk/packages/payload-diviner/src/contexts/DivinedPayload/Provider.tsx",
704
404
  "line": 30,
705
405
  "character": 13,
706
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/f41ed250/packages/sdk/packages/payload-diviner/src/contexts/DivinedPayload/Provider.tsx#L30"
406
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/055364f6b/packages/sdk/packages/payload-diviner/src/contexts/DivinedPayload/Provider.tsx#L30"
707
407
  }
708
408
  ],
709
409
  "signatures": [
@@ -786,7 +486,7 @@
786
486
  "fileName": "packages/sdk/packages/payload-diviner/src/contexts/DivinedPayload/Provider.tsx",
787
487
  "line": 40,
788
488
  "character": 13,
789
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/f41ed250/packages/sdk/packages/payload-diviner/src/contexts/DivinedPayload/Provider.tsx#L40"
489
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/055364f6b/packages/sdk/packages/payload-diviner/src/contexts/DivinedPayload/Provider.tsx#L40"
790
490
  }
791
491
  ],
792
492
  "signatures": [
@@ -861,7 +561,7 @@
861
561
  "fileName": "packages/sdk/packages/payload-diviner/src/contexts/PayloadDiviner/Provider.tsx",
862
562
  "line": 12,
863
563
  "character": 13,
864
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/f41ed250/packages/sdk/packages/payload-diviner/src/contexts/PayloadDiviner/Provider.tsx#L12"
564
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/055364f6b/packages/sdk/packages/payload-diviner/src/contexts/PayloadDiviner/Provider.tsx#L12"
865
565
  }
866
566
  ],
867
567
  "signatures": [
@@ -927,7 +627,7 @@
927
627
  ]
928
628
  },
929
629
  {
930
- "id": 48,
630
+ "id": 32,
931
631
  "name": "useDivinePayload",
932
632
  "kind": 64,
933
633
  "kindString": "Function",
@@ -937,19 +637,19 @@
937
637
  "fileName": "packages/sdk/packages/payload-diviner/src/contexts/PayloadDiviner/use.ts",
938
638
  "line": 14,
939
639
  "character": 13,
940
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/f41ed250/packages/sdk/packages/payload-diviner/src/contexts/PayloadDiviner/use.ts#L14"
640
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/055364f6b/packages/sdk/packages/payload-diviner/src/contexts/PayloadDiviner/use.ts#L14"
941
641
  }
942
642
  ],
943
643
  "signatures": [
944
644
  {
945
- "id": 49,
645
+ "id": 33,
946
646
  "name": "useDivinePayload",
947
647
  "kind": 4096,
948
648
  "kindString": "Call signature",
949
649
  "flags": {},
950
650
  "typeParameter": [
951
651
  {
952
- "id": 56,
652
+ "id": 36,
953
653
  "name": "T",
954
654
  "kind": 131072,
955
655
  "kindString": "Type parameter",
@@ -958,43 +658,21 @@
958
658
  "type": "intersection",
959
659
  "types": [
960
660
  {
961
- "type": "reflection",
962
- "declaration": {
963
- "id": 50,
964
- "name": "__type",
965
- "kind": 65536,
966
- "kindString": "Type literal",
967
- "flags": {},
968
- "sources": [
969
- {
970
- "fileName": "node_modules/@xyo-network/payload/dist/esm/models/Base.d.ts",
971
- "line": 7,
972
- "character": 77
973
- }
974
- ]
975
- }
661
+ "type": "reference",
662
+ "name": "SchemaFields",
663
+ "qualifiedName": "SchemaFields",
664
+ "package": "@xyo-network/payload"
976
665
  },
977
666
  {
978
- "type": "reflection",
979
- "declaration": {
980
- "id": 51,
981
- "name": "__type",
982
- "kind": 65536,
983
- "kindString": "Type literal",
984
- "flags": {},
985
- "sources": [
986
- {
987
- "fileName": "node_modules/@xyo-network/payload/dist/esm/models/Base.d.ts",
988
- "line": 10,
989
- "character": 92
990
- }
991
- ]
992
- }
667
+ "type": "reference",
668
+ "name": "PayloadFields",
669
+ "qualifiedName": "PayloadFields",
670
+ "package": "@xyo-network/payload"
993
671
  },
994
672
  {
995
673
  "type": "reflection",
996
674
  "declaration": {
997
- "id": 52,
675
+ "id": 34,
998
676
  "name": "__type",
999
677
  "kind": 65536,
1000
678
  "kindString": "Type literal",
@@ -1002,8 +680,8 @@
1002
680
  "sources": [
1003
681
  {
1004
682
  "fileName": "node_modules/@xyo-network/payload/dist/esm/models/Base.d.ts",
1005
- "line": 17,
1006
- "character": 45
683
+ "line": 19,
684
+ "character": 17
1007
685
  }
1008
686
  ]
1009
687
  }
@@ -1014,43 +692,21 @@
1014
692
  "type": "intersection",
1015
693
  "types": [
1016
694
  {
1017
- "type": "reflection",
1018
- "declaration": {
1019
- "id": 53,
1020
- "name": "__type",
1021
- "kind": 65536,
1022
- "kindString": "Type literal",
1023
- "flags": {},
1024
- "sources": [
1025
- {
1026
- "fileName": "node_modules/@xyo-network/payload/dist/esm/models/Base.d.ts",
1027
- "line": 7,
1028
- "character": 77
1029
- }
1030
- ]
1031
- }
695
+ "type": "reference",
696
+ "name": "SchemaFields",
697
+ "qualifiedName": "SchemaFields",
698
+ "package": "@xyo-network/payload"
1032
699
  },
1033
700
  {
1034
- "type": "reflection",
1035
- "declaration": {
1036
- "id": 54,
1037
- "name": "__type",
1038
- "kind": 65536,
1039
- "kindString": "Type literal",
1040
- "flags": {},
1041
- "sources": [
1042
- {
1043
- "fileName": "node_modules/@xyo-network/payload/dist/esm/models/Base.d.ts",
1044
- "line": 10,
1045
- "character": 92
1046
- }
1047
- ]
1048
- }
701
+ "type": "reference",
702
+ "name": "PayloadFields",
703
+ "qualifiedName": "PayloadFields",
704
+ "package": "@xyo-network/payload"
1049
705
  },
1050
706
  {
1051
707
  "type": "reflection",
1052
708
  "declaration": {
1053
- "id": 55,
709
+ "id": 35,
1054
710
  "name": "__type",
1055
711
  "kind": 65536,
1056
712
  "kindString": "Type literal",
@@ -1058,8 +714,8 @@
1058
714
  "sources": [
1059
715
  {
1060
716
  "fileName": "node_modules/@xyo-network/payload/dist/esm/models/Base.d.ts",
1061
- "line": 17,
1062
- "character": 45
717
+ "line": 19,
718
+ "character": 17
1063
719
  }
1064
720
  ]
1065
721
  }
@@ -1070,7 +726,7 @@
1070
726
  ],
1071
727
  "parameters": [
1072
728
  {
1073
- "id": 57,
729
+ "id": 37,
1074
730
  "name": "huri",
1075
731
  "kind": 32768,
1076
732
  "kindString": "Parameter",
@@ -1099,7 +755,7 @@
1099
755
  },
1100
756
  {
1101
757
  "type": "reference",
1102
- "id": 56,
758
+ "id": 36,
1103
759
  "name": "T"
1104
760
  }
1105
761
  ]
@@ -1120,7 +776,7 @@
1120
776
  },
1121
777
  {
1122
778
  "type": "reference",
1123
- "id": 56,
779
+ "id": 36,
1124
780
  "name": "T"
1125
781
  }
1126
782
  ]
@@ -1151,7 +807,7 @@
1151
807
  ]
1152
808
  },
1153
809
  {
1154
- "id": 58,
810
+ "id": 38,
1155
811
  "name": "useDivinePayloads",
1156
812
  "kind": 64,
1157
813
  "kindString": "Function",
@@ -1161,19 +817,19 @@
1161
817
  "fileName": "packages/sdk/packages/payload-diviner/src/contexts/PayloadDiviner/use.ts",
1162
818
  "line": 52,
1163
819
  "character": 13,
1164
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/f41ed250/packages/sdk/packages/payload-diviner/src/contexts/PayloadDiviner/use.ts#L52"
820
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/055364f6b/packages/sdk/packages/payload-diviner/src/contexts/PayloadDiviner/use.ts#L52"
1165
821
  }
1166
822
  ],
1167
823
  "signatures": [
1168
824
  {
1169
- "id": 59,
825
+ "id": 39,
1170
826
  "name": "useDivinePayloads",
1171
827
  "kind": 4096,
1172
828
  "kindString": "Call signature",
1173
829
  "flags": {},
1174
830
  "typeParameter": [
1175
831
  {
1176
- "id": 66,
832
+ "id": 42,
1177
833
  "name": "T",
1178
834
  "kind": 131072,
1179
835
  "kindString": "Type parameter",
@@ -1182,43 +838,21 @@
1182
838
  "type": "intersection",
1183
839
  "types": [
1184
840
  {
1185
- "type": "reflection",
1186
- "declaration": {
1187
- "id": 60,
1188
- "name": "__type",
1189
- "kind": 65536,
1190
- "kindString": "Type literal",
1191
- "flags": {},
1192
- "sources": [
1193
- {
1194
- "fileName": "node_modules/@xyo-network/payload/dist/esm/models/Base.d.ts",
1195
- "line": 7,
1196
- "character": 77
1197
- }
1198
- ]
1199
- }
841
+ "type": "reference",
842
+ "name": "SchemaFields",
843
+ "qualifiedName": "SchemaFields",
844
+ "package": "@xyo-network/payload"
1200
845
  },
1201
846
  {
1202
- "type": "reflection",
1203
- "declaration": {
1204
- "id": 61,
1205
- "name": "__type",
1206
- "kind": 65536,
1207
- "kindString": "Type literal",
1208
- "flags": {},
1209
- "sources": [
1210
- {
1211
- "fileName": "node_modules/@xyo-network/payload/dist/esm/models/Base.d.ts",
1212
- "line": 10,
1213
- "character": 92
1214
- }
1215
- ]
1216
- }
847
+ "type": "reference",
848
+ "name": "PayloadFields",
849
+ "qualifiedName": "PayloadFields",
850
+ "package": "@xyo-network/payload"
1217
851
  },
1218
852
  {
1219
853
  "type": "reflection",
1220
854
  "declaration": {
1221
- "id": 62,
855
+ "id": 40,
1222
856
  "name": "__type",
1223
857
  "kind": 65536,
1224
858
  "kindString": "Type literal",
@@ -1226,8 +860,8 @@
1226
860
  "sources": [
1227
861
  {
1228
862
  "fileName": "node_modules/@xyo-network/payload/dist/esm/models/Base.d.ts",
1229
- "line": 17,
1230
- "character": 45
863
+ "line": 19,
864
+ "character": 17
1231
865
  }
1232
866
  ]
1233
867
  }
@@ -1238,43 +872,21 @@
1238
872
  "type": "intersection",
1239
873
  "types": [
1240
874
  {
1241
- "type": "reflection",
1242
- "declaration": {
1243
- "id": 63,
1244
- "name": "__type",
1245
- "kind": 65536,
1246
- "kindString": "Type literal",
1247
- "flags": {},
1248
- "sources": [
1249
- {
1250
- "fileName": "node_modules/@xyo-network/payload/dist/esm/models/Base.d.ts",
1251
- "line": 7,
1252
- "character": 77
1253
- }
1254
- ]
1255
- }
875
+ "type": "reference",
876
+ "name": "SchemaFields",
877
+ "qualifiedName": "SchemaFields",
878
+ "package": "@xyo-network/payload"
1256
879
  },
1257
880
  {
1258
- "type": "reflection",
1259
- "declaration": {
1260
- "id": 64,
1261
- "name": "__type",
1262
- "kind": 65536,
1263
- "kindString": "Type literal",
1264
- "flags": {},
1265
- "sources": [
1266
- {
1267
- "fileName": "node_modules/@xyo-network/payload/dist/esm/models/Base.d.ts",
1268
- "line": 10,
1269
- "character": 92
1270
- }
1271
- ]
1272
- }
881
+ "type": "reference",
882
+ "name": "PayloadFields",
883
+ "qualifiedName": "PayloadFields",
884
+ "package": "@xyo-network/payload"
1273
885
  },
1274
886
  {
1275
887
  "type": "reflection",
1276
888
  "declaration": {
1277
- "id": 65,
889
+ "id": 41,
1278
890
  "name": "__type",
1279
891
  "kind": 65536,
1280
892
  "kindString": "Type literal",
@@ -1282,8 +894,8 @@
1282
894
  "sources": [
1283
895
  {
1284
896
  "fileName": "node_modules/@xyo-network/payload/dist/esm/models/Base.d.ts",
1285
- "line": 17,
1286
- "character": 45
897
+ "line": 19,
898
+ "character": 17
1287
899
  }
1288
900
  ]
1289
901
  }
@@ -1294,7 +906,7 @@
1294
906
  ],
1295
907
  "parameters": [
1296
908
  {
1297
- "id": 67,
909
+ "id": 43,
1298
910
  "name": "huriList",
1299
911
  "kind": 32768,
1300
912
  "kindString": "Parameter",
@@ -1329,7 +941,7 @@
1329
941
  },
1330
942
  {
1331
943
  "type": "reference",
1332
- "id": 66,
944
+ "id": 42,
1333
945
  "name": "T"
1334
946
  }
1335
947
  ]
@@ -1358,7 +970,7 @@
1358
970
  },
1359
971
  {
1360
972
  "type": "reference",
1361
- "id": 66,
973
+ "id": 42,
1362
974
  "name": "T"
1363
975
  }
1364
976
  ]
@@ -1405,7 +1017,7 @@
1405
1017
  "fileName": "packages/sdk/packages/payload-diviner/src/contexts/DivinedPayload/use.ts",
1406
1018
  "line": 5,
1407
1019
  "character": 13,
1408
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/f41ed250/packages/sdk/packages/payload-diviner/src/contexts/DivinedPayload/use.ts#L5"
1020
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/055364f6b/packages/sdk/packages/payload-diviner/src/contexts/DivinedPayload/use.ts#L5"
1409
1021
  }
1410
1022
  ],
1411
1023
  "signatures": [
@@ -1444,7 +1056,7 @@
1444
1056
  ]
1445
1057
  },
1446
1058
  {
1447
- "id": 45,
1059
+ "id": 29,
1448
1060
  "name": "usePayloadDiviner",
1449
1061
  "kind": 64,
1450
1062
  "kindString": "Function",
@@ -1454,19 +1066,19 @@
1454
1066
  "fileName": "packages/sdk/packages/payload-diviner/src/contexts/PayloadDiviner/use.ts",
1455
1067
  "line": 10,
1456
1068
  "character": 13,
1457
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/f41ed250/packages/sdk/packages/payload-diviner/src/contexts/PayloadDiviner/use.ts#L10"
1069
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/055364f6b/packages/sdk/packages/payload-diviner/src/contexts/PayloadDiviner/use.ts#L10"
1458
1070
  }
1459
1071
  ],
1460
1072
  "signatures": [
1461
1073
  {
1462
- "id": 46,
1074
+ "id": 30,
1463
1075
  "name": "usePayloadDiviner",
1464
1076
  "kind": 4096,
1465
1077
  "kindString": "Call signature",
1466
1078
  "flags": {},
1467
1079
  "parameters": [
1468
1080
  {
1469
- "id": 47,
1081
+ "id": 31,
1470
1082
  "name": "required",
1471
1083
  "kind": 32768,
1472
1084
  "kindString": "Parameter",
@@ -1535,10 +1147,10 @@
1535
1147
  6,
1536
1148
  10,
1537
1149
  20,
1538
- 48,
1539
- 58,
1150
+ 32,
1151
+ 38,
1540
1152
  14,
1541
- 45
1153
+ 29
1542
1154
  ]
1543
1155
  }
1544
1156
  ],
@@ -1547,7 +1159,7 @@
1547
1159
  "fileName": "packages/sdk/packages/payload-diviner/src/index.ts",
1548
1160
  "line": 1,
1549
1161
  "character": 0,
1550
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/f41ed250/packages/sdk/packages/payload-diviner/src/index.ts#L1"
1162
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/055364f6b/packages/sdk/packages/payload-diviner/src/index.ts#L1"
1551
1163
  }
1552
1164
  ]
1553
1165
  }
@@ -1,37 +1,13 @@
1
1
  import { Dispatch } from 'react';
2
2
  export declare const usePayloadDiviner: (required?: boolean) => Omit<import("./State").PayloadDivinerState & import("@xyo-network/react-shared").ContextExState, "provided">;
3
- export declare const useDivinePayload: <T extends {
3
+ export declare const useDivinePayload: <T extends import("@xyo-network/payload").SchemaFields & import("@xyo-network/payload").PayloadFields & {
4
4
  schema: string;
5
- } & {
6
- previousHash?: string | undefined;
7
- sources?: string[] | undefined;
8
- timestamp?: number | undefined;
9
- } & {
10
- schema: string;
11
- } = {
12
- schema: string;
13
- } & {
14
- previousHash?: string | undefined;
15
- sources?: string[] | undefined;
16
- timestamp?: number | undefined;
17
- } & {
5
+ } = import("@xyo-network/payload").SchemaFields & import("@xyo-network/payload").PayloadFields & {
18
6
  schema: string;
19
7
  }>(huri?: string) => [T | null | undefined, Dispatch<T | null | undefined>, Error | undefined];
20
- export declare const useDivinePayloads: <T extends {
21
- schema: string;
22
- } & {
23
- previousHash?: string | undefined;
24
- sources?: string[] | undefined;
25
- timestamp?: number | undefined;
26
- } & {
27
- schema: string;
28
- } = {
8
+ export declare const useDivinePayloads: <T extends import("@xyo-network/payload").SchemaFields & import("@xyo-network/payload").PayloadFields & {
29
9
  schema: string;
30
- } & {
31
- previousHash?: string | undefined;
32
- sources?: string[] | undefined;
33
- timestamp?: number | undefined;
34
- } & {
10
+ } = import("@xyo-network/payload").SchemaFields & import("@xyo-network/payload").PayloadFields & {
35
11
  schema: string;
36
12
  }>(huriList: string[]) => [(T | null)[] | undefined, Dispatch<(T | null)[] | undefined>, Error[] | undefined];
37
13
  //# sourceMappingURL=use.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../../src/contexts/PayloadDiviner/use.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,QAAQ,EAAuB,MAAM,OAAO,CAAA;AAIrD,eAAO,MAAM,iBAAiB,sIAE7B,CAAA;AAED,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;UACpB,MAAM,8EAmCd,CAAA;AAED,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;aAClB,MAAM,EAAE,wFA0CnB,CAAA"}
1
+ {"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../../src/contexts/PayloadDiviner/use.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,QAAQ,EAAuB,MAAM,OAAO,CAAA;AAIrD,eAAO,MAAM,iBAAiB,sIAE7B,CAAA;AAED,eAAO,MAAM,gBAAgB;;;;UACpB,MAAM,8EAmCd,CAAA;AAED,eAAO,MAAM,iBAAiB;;;;aAClB,MAAM,EAAE,wFA0CnB,CAAA"}
package/package.json CHANGED
@@ -11,10 +11,10 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "@xylabs/react-shared": "^2.14.20",
14
- "@xyo-network/react-api": "^2.35.11",
15
- "@xyo-network/react-auth-service": "^2.35.11",
16
- "@xyo-network/react-network": "^2.35.11",
17
- "@xyo-network/react-shared": "^2.35.11",
14
+ "@xyo-network/react-api": "^2.35.12",
15
+ "@xyo-network/react-auth-service": "^2.35.12",
16
+ "@xyo-network/react-network": "^2.35.12",
17
+ "@xyo-network/react-shared": "^2.35.12",
18
18
  "lodash": "^4.17.21",
19
19
  "tslib": "^2.4.0"
20
20
  },
@@ -75,5 +75,5 @@
75
75
  },
76
76
  "sideEffects": false,
77
77
  "types": "dist/esm/index.d.ts",
78
- "version": "2.35.11"
78
+ "version": "2.35.12"
79
79
  }