@xyo-network/react-diviner 2.47.22 → 2.47.24

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.
@@ -2,4 +2,5 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./useDiviner"), exports);
5
+ tslib_1.__exportStar(require("./useDiviners"), exports);
5
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":";;;AAAA,uDAA4B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":";;;AAAA,uDAA4B;AAC5B,wDAA6B"}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useDiviners = void 0;
4
+ const diviner_1 = require("@xyo-network/diviner");
5
+ const react_node_1 = require("@xyo-network/react-node");
6
+ exports.useDiviners = (0, react_node_1.WrappedModulesHookFactory)(diviner_1.DivinerWrapper, 'useDiviners');
7
+ //# sourceMappingURL=useDiviners.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDiviners.js","sourceRoot":"","sources":["../../../src/hooks/useDiviners.tsx"],"names":[],"mappings":";;;AAAA,kDAAqD;AACrD,wDAAmE;AAEtD,QAAA,WAAW,GAAG,IAAA,sCAAyB,EAAC,wBAAc,EAAE,aAAa,CAAC,CAAA"}
package/dist/docs.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "fileName": "packages/modules/packages/diviner/src/hooks/useDiviner.tsx",
18
18
  "line": 4,
19
19
  "character": 13,
20
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/e8709701b/packages/modules/packages/diviner/src/hooks/useDiviner.tsx#L4"
20
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/14703ddfca1/packages/modules/packages/diviner/src/hooks/useDiviner.tsx#L4"
21
21
  }
22
22
  ],
23
23
  "signatures": [
@@ -299,13 +299,298 @@
299
299
  }
300
300
  }
301
301
  ]
302
+ },
303
+ {
304
+ "id": 10,
305
+ "name": "useDiviners",
306
+ "kind": 64,
307
+ "kindString": "Function",
308
+ "flags": {},
309
+ "sources": [
310
+ {
311
+ "fileName": "packages/modules/packages/diviner/src/hooks/useDiviners.tsx",
312
+ "line": 4,
313
+ "character": 13,
314
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/14703ddfca1/packages/modules/packages/diviner/src/hooks/useDiviners.tsx#L4"
315
+ }
316
+ ],
317
+ "signatures": [
318
+ {
319
+ "id": 11,
320
+ "name": "useDiviners",
321
+ "kind": 4096,
322
+ "kindString": "Call signature",
323
+ "flags": {},
324
+ "parameters": [
325
+ {
326
+ "id": 12,
327
+ "name": "account",
328
+ "kind": 32768,
329
+ "kindString": "Parameter",
330
+ "flags": {
331
+ "isOptional": true
332
+ },
333
+ "type": {
334
+ "type": "reference",
335
+ "name": "AccountInstance",
336
+ "qualifiedName": "AccountInstance",
337
+ "package": "@xyo-network/account-model"
338
+ }
339
+ },
340
+ {
341
+ "id": 13,
342
+ "name": "spinCheck",
343
+ "kind": 32768,
344
+ "kindString": "Parameter",
345
+ "flags": {
346
+ "isOptional": true
347
+ },
348
+ "type": {
349
+ "type": "intrinsic",
350
+ "name": "boolean"
351
+ }
352
+ }
353
+ ],
354
+ "type": {
355
+ "type": "tuple",
356
+ "elements": [
357
+ {
358
+ "type": "union",
359
+ "types": [
360
+ {
361
+ "type": "intrinsic",
362
+ "name": "undefined"
363
+ },
364
+ {
365
+ "type": "array",
366
+ "elementType": {
367
+ "type": "reference",
368
+ "typeArguments": [
369
+ {
370
+ "type": "reference",
371
+ "typeArguments": [
372
+ {
373
+ "type": "reference",
374
+ "typeArguments": [
375
+ {
376
+ "type": "intersection",
377
+ "types": [
378
+ {
379
+ "type": "reference",
380
+ "name": "SchemaFields",
381
+ "qualifiedName": "SchemaFields",
382
+ "package": "@xyo-network/payload-model"
383
+ },
384
+ {
385
+ "type": "reference",
386
+ "name": "PayloadFields",
387
+ "qualifiedName": "PayloadFields",
388
+ "package": "@xyo-network/payload-model"
389
+ },
390
+ {
391
+ "type": "reflection",
392
+ "declaration": {
393
+ "id": 14,
394
+ "name": "__type",
395
+ "kind": 65536,
396
+ "kindString": "Type literal",
397
+ "flags": {},
398
+ "sources": [
399
+ {
400
+ "fileName": "node_modules/@xyo-network/module-model/dist/types/Config.d.ts",
401
+ "line": 8,
402
+ "character": 103
403
+ }
404
+ ]
405
+ }
406
+ },
407
+ {
408
+ "type": "reference",
409
+ "typeArguments": [
410
+ {
411
+ "type": "intersection",
412
+ "types": [
413
+ {
414
+ "type": "reference",
415
+ "typeArguments": [
416
+ {
417
+ "type": "intersection",
418
+ "types": [
419
+ {
420
+ "type": "reference",
421
+ "name": "SchemaFields",
422
+ "qualifiedName": "SchemaFields",
423
+ "package": "@xyo-network/payload-model"
424
+ },
425
+ {
426
+ "type": "reference",
427
+ "name": "PayloadFields",
428
+ "qualifiedName": "PayloadFields",
429
+ "package": "@xyo-network/payload-model"
430
+ },
431
+ {
432
+ "type": "reflection",
433
+ "declaration": {
434
+ "id": 15,
435
+ "name": "__type",
436
+ "kind": 65536,
437
+ "kindString": "Type literal",
438
+ "flags": {},
439
+ "sources": [
440
+ {
441
+ "fileName": "node_modules/@xyo-network/module-model/dist/types/Config.d.ts",
442
+ "line": 8,
443
+ "character": 103
444
+ }
445
+ ]
446
+ }
447
+ },
448
+ {
449
+ "type": "reference",
450
+ "typeArguments": [
451
+ {
452
+ "type": "intersection",
453
+ "types": [
454
+ {
455
+ "type": "reflection",
456
+ "declaration": {
457
+ "id": 16,
458
+ "name": "__type",
459
+ "kind": 65536,
460
+ "kindString": "Type literal",
461
+ "flags": {},
462
+ "sources": [
463
+ {
464
+ "fileName": "node_modules/@xyo-network/diviner-model/dist/types/Config.d.ts",
465
+ "line": 5,
466
+ "character": 90
467
+ }
468
+ ]
469
+ }
470
+ },
471
+ {
472
+ "type": "reference",
473
+ "typeArguments": [
474
+ {
475
+ "type": "intrinsic",
476
+ "name": "undefined"
477
+ },
478
+ {
479
+ "type": "literal",
480
+ "value": "schema"
481
+ }
482
+ ],
483
+ "name": "Omit",
484
+ "qualifiedName": "Omit",
485
+ "package": "typescript"
486
+ }
487
+ ]
488
+ },
489
+ {
490
+ "type": "literal",
491
+ "value": "schema"
492
+ }
493
+ ],
494
+ "name": "Omit",
495
+ "qualifiedName": "Omit",
496
+ "package": "typescript"
497
+ }
498
+ ]
499
+ },
500
+ {
501
+ "type": "literal",
502
+ "value": "schema"
503
+ }
504
+ ],
505
+ "name": "Omit",
506
+ "qualifiedName": "Omit",
507
+ "package": "typescript"
508
+ },
509
+ {
510
+ "type": "reflection",
511
+ "declaration": {
512
+ "id": 17,
513
+ "name": "__type",
514
+ "kind": 65536,
515
+ "kindString": "Type literal",
516
+ "flags": {},
517
+ "sources": [
518
+ {
519
+ "fileName": "node_modules/@xyo-network/module-model/dist/types/ModuleParams.d.ts",
520
+ "line": 18,
521
+ "character": 58
522
+ }
523
+ ]
524
+ }
525
+ }
526
+ ]
527
+ },
528
+ {
529
+ "type": "literal",
530
+ "value": "schema"
531
+ }
532
+ ],
533
+ "name": "Omit",
534
+ "qualifiedName": "Omit",
535
+ "package": "typescript"
536
+ }
537
+ ]
538
+ },
539
+ {
540
+ "type": "intrinsic",
541
+ "name": "undefined"
542
+ }
543
+ ],
544
+ "name": "DivinerParams",
545
+ "qualifiedName": "DivinerParams",
546
+ "package": "@xyo-network/diviner-model"
547
+ },
548
+ {
549
+ "type": "reference",
550
+ "name": "DivinerModuleEventData",
551
+ "qualifiedName": "DivinerModuleEventData",
552
+ "package": "@xyo-network/diviner-model"
553
+ }
554
+ ],
555
+ "name": "DivinerModule",
556
+ "qualifiedName": "DivinerModule",
557
+ "package": "@xyo-network/diviner-model"
558
+ }
559
+ ],
560
+ "name": "DivinerWrapper",
561
+ "qualifiedName": "DivinerWrapper",
562
+ "package": "@xyo-network/diviner-wrapper"
563
+ }
564
+ }
565
+ ]
566
+ },
567
+ {
568
+ "type": "union",
569
+ "types": [
570
+ {
571
+ "type": "intrinsic",
572
+ "name": "undefined"
573
+ },
574
+ {
575
+ "type": "reference",
576
+ "name": "Error",
577
+ "qualifiedName": "Error",
578
+ "package": "typescript"
579
+ }
580
+ ]
581
+ }
582
+ ]
583
+ }
584
+ }
585
+ ]
302
586
  }
303
587
  ],
304
588
  "groups": [
305
589
  {
306
590
  "title": "Functions",
307
591
  "children": [
308
- 1
592
+ 1,
593
+ 10
309
594
  ]
310
595
  }
311
596
  ],
@@ -314,7 +599,7 @@
314
599
  "fileName": "packages/modules/packages/diviner/src/index.ts",
315
600
  "line": 1,
316
601
  "character": 0,
317
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/e8709701b/packages/modules/packages/diviner/src/index.ts#L1"
602
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/14703ddfca1/packages/modules/packages/diviner/src/index.ts#L1"
318
603
  }
319
604
  ]
320
605
  }
@@ -1,2 +1,3 @@
1
1
  export * from './useDiviner';
2
+ export * from './useDiviners';
2
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { DivinerWrapper } from '@xyo-network/diviner';
2
+ import { WrappedModulesHookFactory } from '@xyo-network/react-node';
3
+ export const useDiviners = WrappedModulesHookFactory(DivinerWrapper, 'useDiviners');
4
+ //# sourceMappingURL=useDiviners.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDiviners.js","sourceRoot":"","sources":["../../../src/hooks/useDiviners.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAA;AAEnE,MAAM,CAAC,MAAM,WAAW,GAAG,yBAAyB,CAAC,cAAc,EAAE,aAAa,CAAC,CAAA"}
@@ -1,2 +1,3 @@
1
1
  export * from './useDiviner';
2
+ export * from './useDiviners';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA"}
@@ -0,0 +1,31 @@
1
+ import { DivinerWrapper } from '@xyo-network/diviner';
2
+ export declare const useDiviners: (account?: import("@xyo-network/account-model").AccountInstance | undefined, spinCheck?: boolean | undefined) => [DivinerWrapper<import("@xyo-network/diviner").DivinerModule<import("@xyo-network/diviner").DivinerParams<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
3
+ name?: string | undefined;
4
+ paging?: Record<string, {
5
+ size?: number | undefined;
6
+ }> | undefined;
7
+ schema: string;
8
+ security?: {
9
+ allowAnonymous?: boolean | undefined;
10
+ allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
11
+ disallowed?: Record<string, string[]> | undefined;
12
+ } | undefined;
13
+ storeQueries?: boolean | undefined;
14
+ } & Omit<Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
15
+ name?: string | undefined;
16
+ paging?: Record<string, {
17
+ size?: number | undefined;
18
+ }> | undefined;
19
+ schema: "network.xyo.diviner.config";
20
+ security?: {
21
+ allowAnonymous?: boolean | undefined;
22
+ allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
23
+ disallowed?: Record<string, string[]> | undefined;
24
+ } | undefined;
25
+ storeQueries?: boolean | undefined;
26
+ } & Omit<{
27
+ schema: "network.xyo.diviner.config";
28
+ } & Omit<undefined, "schema">, "schema">, "schema"> & {
29
+ schema: string;
30
+ }, "schema">, undefined>, import("@xyo-network/diviner").DivinerModuleEventData>>[] | undefined, Error | undefined];
31
+ //# sourceMappingURL=useDiviners.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDiviners.d.ts","sourceRoot":"","sources":["../../../src/hooks/useDiviners.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAGrD,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;mHAA2D,CAAA"}
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "@xyo-network/diviner": "^2.53.26",
14
- "@xyo-network/react-node": "^2.47.22"
14
+ "@xyo-network/react-node": "^2.47.24"
15
15
  },
16
16
  "peerDependencies": {
17
17
  "@mui/icons-material": "^5",
@@ -70,5 +70,5 @@
70
70
  },
71
71
  "sideEffects": false,
72
72
  "types": "dist/types/index.d.ts",
73
- "version": "2.47.22"
73
+ "version": "2.47.24"
74
74
  }
@@ -1 +1,2 @@
1
1
  export * from './useDiviner'
2
+ export * from './useDiviners'
@@ -0,0 +1,4 @@
1
+ import { DivinerWrapper } from '@xyo-network/diviner'
2
+ import { WrappedModulesHookFactory } from '@xyo-network/react-node'
3
+
4
+ export const useDiviners = WrappedModulesHookFactory(DivinerWrapper, 'useDiviners')