@xyo-network/react-archivist 2.49.12 → 2.50.0
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.
- package/dist/cjs/components/Details/Details.js +6 -4
- package/dist/cjs/components/Details/Details.js.map +1 -1
- package/dist/docs.json +71 -111
- package/dist/esm/components/Details/Details.js +6 -4
- package/dist/esm/components/Details/Details.js.map +1 -1
- package/dist/types/components/Details/Details.d.ts.map +1 -1
- package/dist/types/hooks/useArchivist.d.ts +18 -16
- package/dist/types/hooks/useArchivist.d.ts.map +1 -1
- package/dist/types/hooks/useArchivistStates.d.ts +18 -16
- package/dist/types/hooks/useArchivistStates.d.ts.map +1 -1
- package/dist/types/hooks/useArchivists.d.ts +18 -16
- package/dist/types/hooks/useArchivists.d.ts.map +1 -1
- package/package.json +16 -16
- package/src/components/Card/Card.stories.tsx +2 -5
- package/src/components/Card/components/Stats/MemoryArchivistStats.stories.tsx +2 -5
- package/src/components/Details/Details.tsx +6 -4
- package/typedoc.json +5 -0
|
@@ -13,9 +13,9 @@ const module_1 = require("@xyo-network/module");
|
|
|
13
13
|
const react_1 = require("react");
|
|
14
14
|
const hooks_1 = require("../../hooks");
|
|
15
15
|
const testQueryCommit = { schema: archivist_1.ArchivistCommitQuerySchema };
|
|
16
|
-
const
|
|
16
|
+
const testQueryCommitBoundWitnessBuilder = new module_1.QueryBoundWitnessBuilder({ inlinePayloads: true }).query(testQueryCommit);
|
|
17
17
|
const testQueryClear = { schema: archivist_1.ArchivistClearQuerySchema };
|
|
18
|
-
const
|
|
18
|
+
const testQueryClearBoundWitnessBuilder = new module_1.QueryBoundWitnessBuilder({ inlinePayloads: true }).query(testQueryClear);
|
|
19
19
|
const ArchivistDetails = (_a) => {
|
|
20
20
|
var { address } = _a, props = tslib_1.__rest(_a, ["address"]);
|
|
21
21
|
const [archivist] = (0, hooks_1.useArchivist)(address);
|
|
@@ -28,8 +28,10 @@ const ArchivistDetails = (_a) => {
|
|
|
28
28
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
29
29
|
() => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
30
30
|
if (archivist) {
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
const [commitBW] = yield testQueryCommitBoundWitnessBuilder.build();
|
|
32
|
+
const [clearBW] = yield testQueryClearBoundWitnessBuilder.build();
|
|
33
|
+
setQueryableCommit(yield (archivist === null || archivist === void 0 ? void 0 : archivist.queryable(commitBW, [testQueryCommit])));
|
|
34
|
+
setQueryableClear(yield (archivist === null || archivist === void 0 ? void 0 : archivist.queryable(clearBW, [testQueryClear])));
|
|
33
35
|
}
|
|
34
36
|
}), [archivist]);
|
|
35
37
|
(0, react_1.useEffect)(() => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Details.js","sourceRoot":"","sources":["../../../../src/components/Details/Details.tsx"],"names":[],"mappings":";;;;;AAAA,4CAAuD;AACvD,mEAA2D;AAC3D,uDAA+C;AAC/C,yDAA6D;AAC7D,sDAA8F;AAC9F,sEAAiE;AACjE,gDAA8D;AAE9D,iCAA2C;AAE3C,uCAA0C;AAE1C,MAAM,eAAe,GAAG,EAAE,MAAM,EAAE,sCAA0B,EAAE,CAAA;AAC9D,MAAM,
|
|
1
|
+
{"version":3,"file":"Details.js","sourceRoot":"","sources":["../../../../src/components/Details/Details.tsx"],"names":[],"mappings":";;;;;AAAA,4CAAuD;AACvD,mEAA2D;AAC3D,uDAA+C;AAC/C,yDAA6D;AAC7D,sDAA8F;AAC9F,sEAAiE;AACjE,gDAA8D;AAE9D,iCAA2C;AAE3C,uCAA0C;AAE1C,MAAM,eAAe,GAAG,EAAE,MAAM,EAAE,sCAA0B,EAAE,CAAA;AAC9D,MAAM,kCAAkC,GAAG,IAAI,iCAAwB,CAAC,EAAE,cAAc,EAAE,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAA;AAExH,MAAM,cAAc,GAAG,EAAE,MAAM,EAAE,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BACZ,UAAU,CAAC,OAAO,GAAG,CAAC,CAAC,CAAA;wBACzB,CAAC,6BAGQ,IACC,KACN,CACX,CAAA;AACH,CAAC,CAAA;AAzDY,QAAA,gBAAgB,oBAyD5B"}
|
package/dist/docs.json
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"fileName": "packages/modules/packages/archivist/src/components/Details/Details.tsx",
|
|
27
27
|
"line": 20,
|
|
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/2db82686c/packages/modules/packages/archivist/src/components/Details/Details.tsx#L20"
|
|
30
30
|
}
|
|
31
31
|
],
|
|
32
32
|
"type": {
|
|
@@ -18396,13 +18396,13 @@
|
|
|
18396
18396
|
"fileName": "packages/modules/packages/archivist/src/components/Details/Details.tsx",
|
|
18397
18397
|
"line": 19,
|
|
18398
18398
|
"character": 17,
|
|
18399
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
18399
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/2db82686c/packages/modules/packages/archivist/src/components/Details/Details.tsx#L19"
|
|
18400
18400
|
},
|
|
18401
18401
|
{
|
|
18402
18402
|
"fileName": "packages/modules/packages/archivist/src/components/Details/Details.tsx",
|
|
18403
18403
|
"line": 23,
|
|
18404
18404
|
"character": 13,
|
|
18405
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
18405
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/2db82686c/packages/modules/packages/archivist/src/components/Details/Details.tsx#L23"
|
|
18406
18406
|
}
|
|
18407
18407
|
],
|
|
18408
18408
|
"extendedTypes": [
|
|
@@ -18415,7 +18415,7 @@
|
|
|
18415
18415
|
]
|
|
18416
18416
|
},
|
|
18417
18417
|
{
|
|
18418
|
-
"id":
|
|
18418
|
+
"id": 436,
|
|
18419
18419
|
"name": "RefreshCallback",
|
|
18420
18420
|
"kind": 4194304,
|
|
18421
18421
|
"kindString": "Type alias",
|
|
@@ -18425,13 +18425,13 @@
|
|
|
18425
18425
|
"fileName": "packages/modules/packages/archivist/src/hooks/useArchivistStates.tsx",
|
|
18426
18426
|
"line": 7,
|
|
18427
18427
|
"character": 12,
|
|
18428
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
18428
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/2db82686c/packages/modules/packages/archivist/src/hooks/useArchivistStates.tsx#L7"
|
|
18429
18429
|
}
|
|
18430
18430
|
],
|
|
18431
18431
|
"type": {
|
|
18432
18432
|
"type": "reflection",
|
|
18433
18433
|
"declaration": {
|
|
18434
|
-
"id":
|
|
18434
|
+
"id": 437,
|
|
18435
18435
|
"name": "__type",
|
|
18436
18436
|
"kind": 65536,
|
|
18437
18437
|
"kindString": "Type literal",
|
|
@@ -18441,12 +18441,12 @@
|
|
|
18441
18441
|
"fileName": "packages/modules/packages/archivist/src/hooks/useArchivistStates.tsx",
|
|
18442
18442
|
"line": 7,
|
|
18443
18443
|
"character": 30,
|
|
18444
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
18444
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/2db82686c/packages/modules/packages/archivist/src/hooks/useArchivistStates.tsx#L7"
|
|
18445
18445
|
}
|
|
18446
18446
|
],
|
|
18447
18447
|
"signatures": [
|
|
18448
18448
|
{
|
|
18449
|
-
"id":
|
|
18449
|
+
"id": 438,
|
|
18450
18450
|
"name": "__type",
|
|
18451
18451
|
"kind": 4096,
|
|
18452
18452
|
"kindString": "Call signature",
|
|
@@ -18471,7 +18471,7 @@
|
|
|
18471
18471
|
"fileName": "packages/modules/packages/archivist/src/components/Card/Card.tsx",
|
|
18472
18472
|
"line": 8,
|
|
18473
18473
|
"character": 13,
|
|
18474
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
18474
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/2db82686c/packages/modules/packages/archivist/src/components/Card/Card.tsx#L8"
|
|
18475
18475
|
}
|
|
18476
18476
|
],
|
|
18477
18477
|
"signatures": [
|
|
@@ -19732,7 +19732,7 @@
|
|
|
19732
19732
|
"sources": [
|
|
19733
19733
|
{
|
|
19734
19734
|
"fileName": "node_modules/@xyo-network/module-model/dist/types/Config.d.ts",
|
|
19735
|
-
"line":
|
|
19735
|
+
"line": 15,
|
|
19736
19736
|
"character": 103
|
|
19737
19737
|
}
|
|
19738
19738
|
]
|
|
@@ -19773,7 +19773,7 @@
|
|
|
19773
19773
|
"sources": [
|
|
19774
19774
|
{
|
|
19775
19775
|
"fileName": "node_modules/@xyo-network/module-model/dist/types/Config.d.ts",
|
|
19776
|
-
"line":
|
|
19776
|
+
"line": 15,
|
|
19777
19777
|
"character": 103
|
|
19778
19778
|
}
|
|
19779
19779
|
]
|
|
@@ -19851,7 +19851,7 @@
|
|
|
19851
19851
|
"sources": [
|
|
19852
19852
|
{
|
|
19853
19853
|
"fileName": "node_modules/@xyo-network/module-model/dist/types/Config.d.ts",
|
|
19854
|
-
"line":
|
|
19854
|
+
"line": 64,
|
|
19855
19855
|
"character": 58
|
|
19856
19856
|
}
|
|
19857
19857
|
]
|
|
@@ -19949,7 +19949,7 @@
|
|
|
19949
19949
|
"fileName": "packages/modules/packages/archivist/src/components/Card/CardContent.tsx",
|
|
19950
19950
|
"line": 11,
|
|
19951
19951
|
"character": 13,
|
|
19952
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
19952
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/2db82686c/packages/modules/packages/archivist/src/components/Card/CardContent.tsx#L11"
|
|
19953
19953
|
}
|
|
19954
19954
|
],
|
|
19955
19955
|
"signatures": [
|
|
@@ -20004,7 +20004,7 @@
|
|
|
20004
20004
|
"sources": [
|
|
20005
20005
|
{
|
|
20006
20006
|
"fileName": "node_modules/@xyo-network/module-model/dist/types/Config.d.ts",
|
|
20007
|
-
"line":
|
|
20007
|
+
"line": 15,
|
|
20008
20008
|
"character": 103
|
|
20009
20009
|
}
|
|
20010
20010
|
]
|
|
@@ -20045,7 +20045,7 @@
|
|
|
20045
20045
|
"sources": [
|
|
20046
20046
|
{
|
|
20047
20047
|
"fileName": "node_modules/@xyo-network/module-model/dist/types/Config.d.ts",
|
|
20048
|
-
"line":
|
|
20048
|
+
"line": 15,
|
|
20049
20049
|
"character": 103
|
|
20050
20050
|
}
|
|
20051
20051
|
]
|
|
@@ -20123,7 +20123,7 @@
|
|
|
20123
20123
|
"sources": [
|
|
20124
20124
|
{
|
|
20125
20125
|
"fileName": "node_modules/@xyo-network/module-model/dist/types/Config.d.ts",
|
|
20126
|
-
"line":
|
|
20126
|
+
"line": 64,
|
|
20127
20127
|
"character": 58
|
|
20128
20128
|
}
|
|
20129
20129
|
]
|
|
@@ -20337,7 +20337,7 @@
|
|
|
20337
20337
|
"fileName": "packages/modules/packages/archivist/src/components/Card/CardHeader.tsx",
|
|
20338
20338
|
"line": 17,
|
|
20339
20339
|
"character": 13,
|
|
20340
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
20340
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/2db82686c/packages/modules/packages/archivist/src/components/Card/CardHeader.tsx#L17"
|
|
20341
20341
|
}
|
|
20342
20342
|
],
|
|
20343
20343
|
"signatures": [
|
|
@@ -20392,7 +20392,7 @@
|
|
|
20392
20392
|
"sources": [
|
|
20393
20393
|
{
|
|
20394
20394
|
"fileName": "node_modules/@xyo-network/module-model/dist/types/Config.d.ts",
|
|
20395
|
-
"line":
|
|
20395
|
+
"line": 15,
|
|
20396
20396
|
"character": 103
|
|
20397
20397
|
}
|
|
20398
20398
|
]
|
|
@@ -20433,7 +20433,7 @@
|
|
|
20433
20433
|
"sources": [
|
|
20434
20434
|
{
|
|
20435
20435
|
"fileName": "node_modules/@xyo-network/module-model/dist/types/Config.d.ts",
|
|
20436
|
-
"line":
|
|
20436
|
+
"line": 15,
|
|
20437
20437
|
"character": 103
|
|
20438
20438
|
}
|
|
20439
20439
|
]
|
|
@@ -20511,7 +20511,7 @@
|
|
|
20511
20511
|
"sources": [
|
|
20512
20512
|
{
|
|
20513
20513
|
"fileName": "node_modules/@xyo-network/module-model/dist/types/Config.d.ts",
|
|
20514
|
-
"line":
|
|
20514
|
+
"line": 64,
|
|
20515
20515
|
"character": 58
|
|
20516
20516
|
}
|
|
20517
20517
|
]
|
|
@@ -20749,13 +20749,13 @@
|
|
|
20749
20749
|
"fileName": "packages/modules/packages/archivist/src/components/Details/Details.tsx",
|
|
20750
20750
|
"line": 19,
|
|
20751
20751
|
"character": 17,
|
|
20752
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
20752
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/2db82686c/packages/modules/packages/archivist/src/components/Details/Details.tsx#L19"
|
|
20753
20753
|
},
|
|
20754
20754
|
{
|
|
20755
20755
|
"fileName": "packages/modules/packages/archivist/src/components/Details/Details.tsx",
|
|
20756
20756
|
"line": 23,
|
|
20757
20757
|
"character": 13,
|
|
20758
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
20758
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/2db82686c/packages/modules/packages/archivist/src/components/Details/Details.tsx#L23"
|
|
20759
20759
|
}
|
|
20760
20760
|
],
|
|
20761
20761
|
"signatures": [
|
|
@@ -20831,7 +20831,7 @@
|
|
|
20831
20831
|
"fileName": "packages/modules/packages/archivist/src/hooks/useArchivist.tsx",
|
|
20832
20832
|
"line": 4,
|
|
20833
20833
|
"character": 13,
|
|
20834
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
20834
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/2db82686c/packages/modules/packages/archivist/src/hooks/useArchivist.tsx#L4"
|
|
20835
20835
|
}
|
|
20836
20836
|
],
|
|
20837
20837
|
"signatures": [
|
|
@@ -20931,7 +20931,7 @@
|
|
|
20931
20931
|
"sources": [
|
|
20932
20932
|
{
|
|
20933
20933
|
"fileName": "node_modules/@xyo-network/module-model/dist/types/Config.d.ts",
|
|
20934
|
-
"line":
|
|
20934
|
+
"line": 15,
|
|
20935
20935
|
"character": 103
|
|
20936
20936
|
}
|
|
20937
20937
|
]
|
|
@@ -20972,7 +20972,7 @@
|
|
|
20972
20972
|
"sources": [
|
|
20973
20973
|
{
|
|
20974
20974
|
"fileName": "node_modules/@xyo-network/module-model/dist/types/Config.d.ts",
|
|
20975
|
-
"line":
|
|
20975
|
+
"line": 15,
|
|
20976
20976
|
"character": 103
|
|
20977
20977
|
}
|
|
20978
20978
|
]
|
|
@@ -21050,7 +21050,7 @@
|
|
|
21050
21050
|
"sources": [
|
|
21051
21051
|
{
|
|
21052
21052
|
"fileName": "node_modules/@xyo-network/module-model/dist/types/Config.d.ts",
|
|
21053
|
-
"line":
|
|
21053
|
+
"line": 64,
|
|
21054
21054
|
"character": 58
|
|
21055
21055
|
}
|
|
21056
21056
|
]
|
|
@@ -21127,7 +21127,7 @@
|
|
|
21127
21127
|
"fileName": "packages/modules/packages/archivist/src/hooks/useArchivistAll.tsx",
|
|
21128
21128
|
"line": 6,
|
|
21129
21129
|
"character": 13,
|
|
21130
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
21130
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/2db82686c/packages/modules/packages/archivist/src/hooks/useArchivistAll.tsx#L6"
|
|
21131
21131
|
}
|
|
21132
21132
|
],
|
|
21133
21133
|
"signatures": [
|
|
@@ -21202,7 +21202,7 @@
|
|
|
21202
21202
|
"fileName": "packages/modules/packages/archivist/src/hooks/useArchivistStates.tsx",
|
|
21203
21203
|
"line": 14,
|
|
21204
21204
|
"character": 26,
|
|
21205
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
21205
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/2db82686c/packages/modules/packages/archivist/src/hooks/useArchivistStates.tsx#L14"
|
|
21206
21206
|
}
|
|
21207
21207
|
],
|
|
21208
21208
|
"signatures": [
|
|
@@ -21237,7 +21237,7 @@
|
|
|
21237
21237
|
"fileName": "packages/modules/packages/archivist/src/hooks/useArchivistGet.tsx",
|
|
21238
21238
|
"line": 9,
|
|
21239
21239
|
"character": 13,
|
|
21240
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
21240
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/2db82686c/packages/modules/packages/archivist/src/hooks/useArchivistGet.tsx#L9"
|
|
21241
21241
|
}
|
|
21242
21242
|
],
|
|
21243
21243
|
"signatures": [
|
|
@@ -21467,46 +21467,6 @@
|
|
|
21467
21467
|
}
|
|
21468
21468
|
]
|
|
21469
21469
|
},
|
|
21470
|
-
{
|
|
21471
|
-
"type": "intersection",
|
|
21472
|
-
"types": [
|
|
21473
|
-
{
|
|
21474
|
-
"type": "reference",
|
|
21475
|
-
"name": "SchemaFields",
|
|
21476
|
-
"qualifiedName": "SchemaFields",
|
|
21477
|
-
"package": "@xyo-network/payload-model"
|
|
21478
|
-
},
|
|
21479
|
-
{
|
|
21480
|
-
"type": "reference",
|
|
21481
|
-
"name": "PayloadFields",
|
|
21482
|
-
"qualifiedName": "PayloadFields",
|
|
21483
|
-
"package": "@xyo-network/payload-model"
|
|
21484
|
-
},
|
|
21485
|
-
{
|
|
21486
|
-
"type": "reflection",
|
|
21487
|
-
"declaration": {
|
|
21488
|
-
"id": 436,
|
|
21489
|
-
"name": "__type",
|
|
21490
|
-
"kind": 65536,
|
|
21491
|
-
"kindString": "Type literal",
|
|
21492
|
-
"flags": {},
|
|
21493
|
-
"sources": [
|
|
21494
|
-
{
|
|
21495
|
-
"fileName": "node_modules/@xyo-network/payload-model/dist/types/Payload.d.ts",
|
|
21496
|
-
"line": 20,
|
|
21497
|
-
"character": 17
|
|
21498
|
-
}
|
|
21499
|
-
]
|
|
21500
|
-
}
|
|
21501
|
-
}
|
|
21502
|
-
]
|
|
21503
|
-
},
|
|
21504
|
-
{
|
|
21505
|
-
"type": "reference",
|
|
21506
|
-
"name": "PayloadFindFilter",
|
|
21507
|
-
"qualifiedName": "PayloadFindFilter",
|
|
21508
|
-
"package": "@xyo-network/payload-model"
|
|
21509
|
-
},
|
|
21510
21470
|
{
|
|
21511
21471
|
"type": "intrinsic",
|
|
21512
21472
|
"name": "string"
|
|
@@ -21547,7 +21507,7 @@
|
|
|
21547
21507
|
"type": "optional",
|
|
21548
21508
|
"elementType": {
|
|
21549
21509
|
"type": "reference",
|
|
21550
|
-
"id":
|
|
21510
|
+
"id": 436,
|
|
21551
21511
|
"name": "RefreshCallback"
|
|
21552
21512
|
}
|
|
21553
21513
|
}
|
|
@@ -21557,7 +21517,7 @@
|
|
|
21557
21517
|
]
|
|
21558
21518
|
},
|
|
21559
21519
|
{
|
|
21560
|
-
"id":
|
|
21520
|
+
"id": 439,
|
|
21561
21521
|
"name": "useArchivistStates",
|
|
21562
21522
|
"kind": 64,
|
|
21563
21523
|
"kindString": "Function",
|
|
@@ -21567,19 +21527,19 @@
|
|
|
21567
21527
|
"fileName": "packages/modules/packages/archivist/src/hooks/useArchivistStates.tsx",
|
|
21568
21528
|
"line": 9,
|
|
21569
21529
|
"character": 13,
|
|
21570
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
21530
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/2db82686c/packages/modules/packages/archivist/src/hooks/useArchivistStates.tsx#L9"
|
|
21571
21531
|
}
|
|
21572
21532
|
],
|
|
21573
21533
|
"signatures": [
|
|
21574
21534
|
{
|
|
21575
|
-
"id":
|
|
21535
|
+
"id": 440,
|
|
21576
21536
|
"name": "useArchivistStates",
|
|
21577
21537
|
"kind": 4096,
|
|
21578
21538
|
"kindString": "Call signature",
|
|
21579
21539
|
"flags": {},
|
|
21580
21540
|
"typeParameter": [
|
|
21581
21541
|
{
|
|
21582
|
-
"id":
|
|
21542
|
+
"id": 443,
|
|
21583
21543
|
"name": "T",
|
|
21584
21544
|
"kind": 131072,
|
|
21585
21545
|
"kindString": "Type parameter",
|
|
@@ -21602,7 +21562,7 @@
|
|
|
21602
21562
|
{
|
|
21603
21563
|
"type": "reflection",
|
|
21604
21564
|
"declaration": {
|
|
21605
|
-
"id":
|
|
21565
|
+
"id": 441,
|
|
21606
21566
|
"name": "__type",
|
|
21607
21567
|
"kind": 65536,
|
|
21608
21568
|
"kindString": "Type literal",
|
|
@@ -21636,7 +21596,7 @@
|
|
|
21636
21596
|
{
|
|
21637
21597
|
"type": "reflection",
|
|
21638
21598
|
"declaration": {
|
|
21639
|
-
"id":
|
|
21599
|
+
"id": 442,
|
|
21640
21600
|
"name": "__type",
|
|
21641
21601
|
"kind": 65536,
|
|
21642
21602
|
"kindString": "Type literal",
|
|
@@ -21657,14 +21617,14 @@
|
|
|
21657
21617
|
"type": {
|
|
21658
21618
|
"type": "reflection",
|
|
21659
21619
|
"declaration": {
|
|
21660
|
-
"id":
|
|
21620
|
+
"id": 444,
|
|
21661
21621
|
"name": "__type",
|
|
21662
21622
|
"kind": 65536,
|
|
21663
21623
|
"kindString": "Type literal",
|
|
21664
21624
|
"flags": {},
|
|
21665
21625
|
"children": [
|
|
21666
21626
|
{
|
|
21667
|
-
"id":
|
|
21627
|
+
"id": 445,
|
|
21668
21628
|
"name": "archivist",
|
|
21669
21629
|
"kind": 1024,
|
|
21670
21630
|
"kindString": "Property",
|
|
@@ -21674,7 +21634,7 @@
|
|
|
21674
21634
|
"fileName": "packages/modules/packages/archivist/src/hooks/useArchivistStates.tsx",
|
|
21675
21635
|
"line": 24,
|
|
21676
21636
|
"character": 11,
|
|
21677
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
21637
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/2db82686c/packages/modules/packages/archivist/src/hooks/useArchivistStates.tsx#L24"
|
|
21678
21638
|
}
|
|
21679
21639
|
],
|
|
21680
21640
|
"type": {
|
|
@@ -21711,7 +21671,7 @@
|
|
|
21711
21671
|
{
|
|
21712
21672
|
"type": "reflection",
|
|
21713
21673
|
"declaration": {
|
|
21714
|
-
"id":
|
|
21674
|
+
"id": 446,
|
|
21715
21675
|
"name": "__type",
|
|
21716
21676
|
"kind": 65536,
|
|
21717
21677
|
"kindString": "Type literal",
|
|
@@ -21719,7 +21679,7 @@
|
|
|
21719
21679
|
"sources": [
|
|
21720
21680
|
{
|
|
21721
21681
|
"fileName": "node_modules/@xyo-network/module-model/dist/types/Config.d.ts",
|
|
21722
|
-
"line":
|
|
21682
|
+
"line": 15,
|
|
21723
21683
|
"character": 103
|
|
21724
21684
|
}
|
|
21725
21685
|
]
|
|
@@ -21752,7 +21712,7 @@
|
|
|
21752
21712
|
{
|
|
21753
21713
|
"type": "reflection",
|
|
21754
21714
|
"declaration": {
|
|
21755
|
-
"id":
|
|
21715
|
+
"id": 447,
|
|
21756
21716
|
"name": "__type",
|
|
21757
21717
|
"kind": 65536,
|
|
21758
21718
|
"kindString": "Type literal",
|
|
@@ -21760,7 +21720,7 @@
|
|
|
21760
21720
|
"sources": [
|
|
21761
21721
|
{
|
|
21762
21722
|
"fileName": "node_modules/@xyo-network/module-model/dist/types/Config.d.ts",
|
|
21763
|
-
"line":
|
|
21723
|
+
"line": 15,
|
|
21764
21724
|
"character": 103
|
|
21765
21725
|
}
|
|
21766
21726
|
]
|
|
@@ -21775,7 +21735,7 @@
|
|
|
21775
21735
|
{
|
|
21776
21736
|
"type": "reflection",
|
|
21777
21737
|
"declaration": {
|
|
21778
|
-
"id":
|
|
21738
|
+
"id": 448,
|
|
21779
21739
|
"name": "__type",
|
|
21780
21740
|
"kind": 65536,
|
|
21781
21741
|
"kindString": "Type literal",
|
|
@@ -21830,7 +21790,7 @@
|
|
|
21830
21790
|
{
|
|
21831
21791
|
"type": "reflection",
|
|
21832
21792
|
"declaration": {
|
|
21833
|
-
"id":
|
|
21793
|
+
"id": 449,
|
|
21834
21794
|
"name": "__type",
|
|
21835
21795
|
"kind": 65536,
|
|
21836
21796
|
"kindString": "Type literal",
|
|
@@ -21838,7 +21798,7 @@
|
|
|
21838
21798
|
"sources": [
|
|
21839
21799
|
{
|
|
21840
21800
|
"fileName": "node_modules/@xyo-network/module-model/dist/types/Config.d.ts",
|
|
21841
|
-
"line":
|
|
21801
|
+
"line": 64,
|
|
21842
21802
|
"character": 58
|
|
21843
21803
|
}
|
|
21844
21804
|
]
|
|
@@ -21886,7 +21846,7 @@
|
|
|
21886
21846
|
}
|
|
21887
21847
|
},
|
|
21888
21848
|
{
|
|
21889
|
-
"id":
|
|
21849
|
+
"id": 450,
|
|
21890
21850
|
"name": "error",
|
|
21891
21851
|
"kind": 1024,
|
|
21892
21852
|
"kindString": "Property",
|
|
@@ -21896,7 +21856,7 @@
|
|
|
21896
21856
|
"fileName": "packages/modules/packages/archivist/src/hooks/useArchivistStates.tsx",
|
|
21897
21857
|
"line": 24,
|
|
21898
21858
|
"character": 22,
|
|
21899
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
21859
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/2db82686c/packages/modules/packages/archivist/src/hooks/useArchivistStates.tsx#L24"
|
|
21900
21860
|
}
|
|
21901
21861
|
],
|
|
21902
21862
|
"type": {
|
|
@@ -21916,7 +21876,7 @@
|
|
|
21916
21876
|
}
|
|
21917
21877
|
},
|
|
21918
21878
|
{
|
|
21919
|
-
"id":
|
|
21879
|
+
"id": 451,
|
|
21920
21880
|
"name": "payloads",
|
|
21921
21881
|
"kind": 1024,
|
|
21922
21882
|
"kindString": "Property",
|
|
@@ -21926,7 +21886,7 @@
|
|
|
21926
21886
|
"fileName": "packages/modules/packages/archivist/src/hooks/useArchivistStates.tsx",
|
|
21927
21887
|
"line": 24,
|
|
21928
21888
|
"character": 29,
|
|
21929
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
21889
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/2db82686c/packages/modules/packages/archivist/src/hooks/useArchivistStates.tsx#L24"
|
|
21930
21890
|
}
|
|
21931
21891
|
],
|
|
21932
21892
|
"type": {
|
|
@@ -21940,7 +21900,7 @@
|
|
|
21940
21900
|
"type": "array",
|
|
21941
21901
|
"elementType": {
|
|
21942
21902
|
"type": "reference",
|
|
21943
|
-
"id":
|
|
21903
|
+
"id": 443,
|
|
21944
21904
|
"name": "T"
|
|
21945
21905
|
}
|
|
21946
21906
|
}
|
|
@@ -21948,7 +21908,7 @@
|
|
|
21948
21908
|
}
|
|
21949
21909
|
},
|
|
21950
21910
|
{
|
|
21951
|
-
"id":
|
|
21911
|
+
"id": 452,
|
|
21952
21912
|
"name": "refresh",
|
|
21953
21913
|
"kind": 1024,
|
|
21954
21914
|
"kindString": "Property",
|
|
@@ -21958,13 +21918,13 @@
|
|
|
21958
21918
|
"fileName": "packages/modules/packages/archivist/src/hooks/useArchivistStates.tsx",
|
|
21959
21919
|
"line": 24,
|
|
21960
21920
|
"character": 39,
|
|
21961
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
21921
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/2db82686c/packages/modules/packages/archivist/src/hooks/useArchivistStates.tsx#L24"
|
|
21962
21922
|
}
|
|
21963
21923
|
],
|
|
21964
21924
|
"type": {
|
|
21965
21925
|
"type": "reflection",
|
|
21966
21926
|
"declaration": {
|
|
21967
|
-
"id":
|
|
21927
|
+
"id": 453,
|
|
21968
21928
|
"name": "__type",
|
|
21969
21929
|
"kind": 65536,
|
|
21970
21930
|
"kindString": "Type literal",
|
|
@@ -21974,12 +21934,12 @@
|
|
|
21974
21934
|
"fileName": "packages/modules/packages/archivist/src/hooks/useArchivistStates.tsx",
|
|
21975
21935
|
"line": 14,
|
|
21976
21936
|
"character": 26,
|
|
21977
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
21937
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/2db82686c/packages/modules/packages/archivist/src/hooks/useArchivistStates.tsx#L14"
|
|
21978
21938
|
}
|
|
21979
21939
|
],
|
|
21980
21940
|
"signatures": [
|
|
21981
21941
|
{
|
|
21982
|
-
"id":
|
|
21942
|
+
"id": 454,
|
|
21983
21943
|
"name": "__type",
|
|
21984
21944
|
"kind": 4096,
|
|
21985
21945
|
"kindString": "Call signature",
|
|
@@ -21995,7 +21955,7 @@
|
|
|
21995
21955
|
"defaultValue": "refreshPayloads"
|
|
21996
21956
|
},
|
|
21997
21957
|
{
|
|
21998
|
-
"id":
|
|
21958
|
+
"id": 455,
|
|
21999
21959
|
"name": "refreshCount",
|
|
22000
21960
|
"kind": 1024,
|
|
22001
21961
|
"kindString": "Property",
|
|
@@ -22005,7 +21965,7 @@
|
|
|
22005
21965
|
"fileName": "packages/modules/packages/archivist/src/hooks/useArchivistStates.tsx",
|
|
22006
21966
|
"line": 24,
|
|
22007
21967
|
"character": 65,
|
|
22008
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
21968
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/2db82686c/packages/modules/packages/archivist/src/hooks/useArchivistStates.tsx#L24"
|
|
22009
21969
|
}
|
|
22010
21970
|
],
|
|
22011
21971
|
"type": {
|
|
@@ -22014,7 +21974,7 @@
|
|
|
22014
21974
|
}
|
|
22015
21975
|
},
|
|
22016
21976
|
{
|
|
22017
|
-
"id":
|
|
21977
|
+
"id": 456,
|
|
22018
21978
|
"name": "setError",
|
|
22019
21979
|
"kind": 1024,
|
|
22020
21980
|
"kindString": "Property",
|
|
@@ -22024,7 +21984,7 @@
|
|
|
22024
21984
|
"fileName": "packages/modules/packages/archivist/src/hooks/useArchivistStates.tsx",
|
|
22025
21985
|
"line": 24,
|
|
22026
21986
|
"character": 79,
|
|
22027
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
21987
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/2db82686c/packages/modules/packages/archivist/src/hooks/useArchivistStates.tsx#L24"
|
|
22028
21988
|
}
|
|
22029
21989
|
],
|
|
22030
21990
|
"type": {
|
|
@@ -22060,7 +22020,7 @@
|
|
|
22060
22020
|
}
|
|
22061
22021
|
},
|
|
22062
22022
|
{
|
|
22063
|
-
"id":
|
|
22023
|
+
"id": 457,
|
|
22064
22024
|
"name": "setPayloads",
|
|
22065
22025
|
"kind": 1024,
|
|
22066
22026
|
"kindString": "Property",
|
|
@@ -22070,7 +22030,7 @@
|
|
|
22070
22030
|
"fileName": "packages/modules/packages/archivist/src/hooks/useArchivistStates.tsx",
|
|
22071
22031
|
"line": 24,
|
|
22072
22032
|
"character": 89,
|
|
22073
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
22033
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/2db82686c/packages/modules/packages/archivist/src/hooks/useArchivistStates.tsx#L24"
|
|
22074
22034
|
}
|
|
22075
22035
|
],
|
|
22076
22036
|
"type": {
|
|
@@ -22090,7 +22050,7 @@
|
|
|
22090
22050
|
"type": "array",
|
|
22091
22051
|
"elementType": {
|
|
22092
22052
|
"type": "reference",
|
|
22093
|
-
"id":
|
|
22053
|
+
"id": 443,
|
|
22094
22054
|
"name": "T"
|
|
22095
22055
|
}
|
|
22096
22056
|
}
|
|
@@ -22112,13 +22072,13 @@
|
|
|
22112
22072
|
{
|
|
22113
22073
|
"title": "Properties",
|
|
22114
22074
|
"children": [
|
|
22115
|
-
|
|
22075
|
+
445,
|
|
22076
|
+
450,
|
|
22116
22077
|
451,
|
|
22117
22078
|
452,
|
|
22118
|
-
|
|
22079
|
+
455,
|
|
22119
22080
|
456,
|
|
22120
|
-
457
|
|
22121
|
-
458
|
|
22081
|
+
457
|
|
22122
22082
|
]
|
|
22123
22083
|
}
|
|
22124
22084
|
],
|
|
@@ -22127,7 +22087,7 @@
|
|
|
22127
22087
|
"fileName": "packages/modules/packages/archivist/src/hooks/useArchivistStates.tsx",
|
|
22128
22088
|
"line": 24,
|
|
22129
22089
|
"character": 9,
|
|
22130
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
22090
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/2db82686c/packages/modules/packages/archivist/src/hooks/useArchivistStates.tsx#L24"
|
|
22131
22091
|
}
|
|
22132
22092
|
]
|
|
22133
22093
|
}
|
|
@@ -22146,7 +22106,7 @@
|
|
|
22146
22106
|
{
|
|
22147
22107
|
"title": "Type Aliases",
|
|
22148
22108
|
"children": [
|
|
22149
|
-
|
|
22109
|
+
436
|
|
22150
22110
|
]
|
|
22151
22111
|
},
|
|
22152
22112
|
{
|
|
@@ -22159,7 +22119,7 @@
|
|
|
22159
22119
|
412,
|
|
22160
22120
|
421,
|
|
22161
22121
|
426,
|
|
22162
|
-
|
|
22122
|
+
439
|
|
22163
22123
|
]
|
|
22164
22124
|
}
|
|
22165
22125
|
],
|
|
@@ -22168,7 +22128,7 @@
|
|
|
22168
22128
|
"fileName": "packages/modules/packages/archivist/src/index.ts",
|
|
22169
22129
|
"line": 1,
|
|
22170
22130
|
"character": 0,
|
|
22171
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
22131
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/2db82686c/packages/modules/packages/archivist/src/index.ts#L1"
|
|
22172
22132
|
}
|
|
22173
22133
|
]
|
|
22174
22134
|
}
|
|
@@ -9,9 +9,9 @@ import { QueryBoundWitnessBuilder } from '@xyo-network/module';
|
|
|
9
9
|
import { useEffect, useState } from 'react';
|
|
10
10
|
import { useArchivist } from '../../hooks';
|
|
11
11
|
const testQueryCommit = { schema: ArchivistCommitQuerySchema };
|
|
12
|
-
const
|
|
12
|
+
const testQueryCommitBoundWitnessBuilder = new QueryBoundWitnessBuilder({ inlinePayloads: true }).query(testQueryCommit);
|
|
13
13
|
const testQueryClear = { schema: ArchivistClearQuerySchema };
|
|
14
|
-
const
|
|
14
|
+
const testQueryClearBoundWitnessBuilder = new QueryBoundWitnessBuilder({ inlinePayloads: true }).query(testQueryClear);
|
|
15
15
|
export const ArchivistDetails = ({ address, ...props }) => {
|
|
16
16
|
const [archivist] = useArchivist(address);
|
|
17
17
|
const [payloads, setPayloads] = useState();
|
|
@@ -23,8 +23,10 @@ export const ArchivistDetails = ({ address, ...props }) => {
|
|
|
23
23
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
24
24
|
async () => {
|
|
25
25
|
if (archivist) {
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
const [commitBW] = await testQueryCommitBoundWitnessBuilder.build();
|
|
27
|
+
const [clearBW] = await testQueryClearBoundWitnessBuilder.build();
|
|
28
|
+
setQueryableCommit(await archivist?.queryable(commitBW, [testQueryCommit]));
|
|
29
|
+
setQueryableClear(await archivist?.queryable(clearBW, [testQueryClear]));
|
|
28
30
|
}
|
|
29
31
|
}, [archivist]);
|
|
30
32
|
useEffect(() => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Details.js","sourceRoot":"","sources":["../../../../src/components/Details/Details.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAC3D,OAAO,EAAE,QAA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7D,MAAM,WAAW,gBAAiB,SAAQ,YAAY;IACpD,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,
|
|
1
|
+
{"version":3,"file":"Details.d.ts","sourceRoot":"","sources":["../../../../src/components/Details/Details.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,YAAY,EAAW,MAAM,uBAAuB,CAAA;AAe7D,MAAM,WAAW,gBAAiB,SAAQ,YAAY;IACpD,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAyDvD,CAAA"}
|
|
@@ -1,28 +1,30 @@
|
|
|
1
1
|
import { ArchivistWrapper } from '@xyo-network/archivist';
|
|
2
2
|
export declare const useArchivist: (nameOrAddress?: string | undefined, account?: import("@xyo-network/account-model").AccountInstance | undefined, logger?: import("@xyo-network/core").Logger | undefined) => [ArchivistWrapper<import("@xyo-network/archivist").ArchivistModule<import("@xyo-network/archivist").ArchivistParams<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
4
|
+
readonly name?: string | undefined;
|
|
5
|
+
readonly paging?: Record<string, {
|
|
5
6
|
size?: number | undefined;
|
|
6
7
|
}> | 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;
|
|
8
|
+
readonly schema: string;
|
|
9
|
+
readonly security?: {
|
|
10
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
11
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
12
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
12
13
|
} | undefined;
|
|
13
|
-
storeQueries?: boolean | undefined;
|
|
14
|
+
readonly storeQueries?: boolean | undefined;
|
|
14
15
|
} & Omit<Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
17
|
+
readonly name?: string | undefined;
|
|
18
|
+
readonly paging?: Record<string, {
|
|
17
19
|
size?: number | undefined;
|
|
18
20
|
}> | undefined;
|
|
19
|
-
schema: "network.xyo.archivist.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;
|
|
21
|
+
readonly schema: "network.xyo.archivist.config";
|
|
22
|
+
readonly security?: {
|
|
23
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
24
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
25
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
24
26
|
} | undefined;
|
|
25
|
-
storeQueries?: boolean | undefined;
|
|
27
|
+
readonly storeQueries?: boolean | undefined;
|
|
26
28
|
} & Omit<{
|
|
27
29
|
parents?: import("@xyo-network/archivist").ArchivistParents | undefined;
|
|
28
30
|
schema: "network.xyo.archivist.config";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useArchivist.d.ts","sourceRoot":"","sources":["../../../src/hooks/useArchivist.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAGzD,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"useArchivist.d.ts","sourceRoot":"","sources":["../../../src/hooks/useArchivist.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAGzD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qHAA6D,CAAA"}
|
|
@@ -7,29 +7,31 @@ export declare const useArchivistStates: <T extends import("@xyo-network/payload
|
|
|
7
7
|
schema: string;
|
|
8
8
|
}>() => {
|
|
9
9
|
archivist: ArchivistWrapper<import("@xyo-network/archivist").ArchivistModule<import("@xyo-network/archivist").ArchivistParams<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
11
|
+
readonly name?: string | undefined;
|
|
12
|
+
readonly paging?: Record<string, {
|
|
12
13
|
size?: number | undefined;
|
|
13
14
|
}> | undefined;
|
|
14
|
-
schema: string;
|
|
15
|
-
security?: {
|
|
16
|
-
allowAnonymous?: boolean | undefined;
|
|
17
|
-
allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
18
|
-
disallowed?: Record<string, string[]> | undefined;
|
|
15
|
+
readonly schema: string;
|
|
16
|
+
readonly security?: {
|
|
17
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
18
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
19
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
19
20
|
} | undefined;
|
|
20
|
-
storeQueries?: boolean | undefined;
|
|
21
|
+
readonly storeQueries?: boolean | undefined;
|
|
21
22
|
} & Omit<Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
24
|
+
readonly name?: string | undefined;
|
|
25
|
+
readonly paging?: Record<string, {
|
|
24
26
|
size?: number | undefined;
|
|
25
27
|
}> | undefined;
|
|
26
|
-
schema: "network.xyo.archivist.config";
|
|
27
|
-
security?: {
|
|
28
|
-
allowAnonymous?: boolean | undefined;
|
|
29
|
-
allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
30
|
-
disallowed?: Record<string, string[]> | undefined;
|
|
28
|
+
readonly schema: "network.xyo.archivist.config";
|
|
29
|
+
readonly security?: {
|
|
30
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
31
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
32
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
31
33
|
} | undefined;
|
|
32
|
-
storeQueries?: boolean | undefined;
|
|
34
|
+
readonly storeQueries?: boolean | undefined;
|
|
33
35
|
} & Omit<{
|
|
34
36
|
parents?: import("@xyo-network/archivist").ArchivistParents | undefined;
|
|
35
37
|
schema: "network.xyo.archivist.config";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useArchivistStates.d.ts","sourceRoot":"","sources":["../../../src/hooks/useArchivistStates.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAMzD,MAAM,MAAM,eAAe,GAAG,MAAM,IAAI,CAAA;AAExC,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"useArchivistStates.d.ts","sourceRoot":"","sources":["../../../src/hooks/useArchivistStates.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAMzD,MAAM,MAAM,eAAe,GAAG,MAAM,IAAI,CAAA;AAExC,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgB9B,CAAA"}
|
|
@@ -1,28 +1,30 @@
|
|
|
1
1
|
import { ArchivistWrapper } from '@xyo-network/archivist';
|
|
2
2
|
export declare const useArchivists: (account?: import("@xyo-network/account-model").AccountInstance | undefined, logger?: import("@xyo-network/core").Logger | undefined) => [ArchivistWrapper<import("@xyo-network/archivist").ArchivistModule<import("@xyo-network/archivist").ArchivistParams<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
4
|
+
readonly name?: string | undefined;
|
|
5
|
+
readonly paging?: Record<string, {
|
|
5
6
|
size?: number | undefined;
|
|
6
7
|
}> | 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;
|
|
8
|
+
readonly schema: string;
|
|
9
|
+
readonly security?: {
|
|
10
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
11
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
12
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
12
13
|
} | undefined;
|
|
13
|
-
storeQueries?: boolean | undefined;
|
|
14
|
+
readonly storeQueries?: boolean | undefined;
|
|
14
15
|
} & Omit<Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
17
|
+
readonly name?: string | undefined;
|
|
18
|
+
readonly paging?: Record<string, {
|
|
17
19
|
size?: number | undefined;
|
|
18
20
|
}> | undefined;
|
|
19
|
-
schema: "network.xyo.archivist.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;
|
|
21
|
+
readonly schema: "network.xyo.archivist.config";
|
|
22
|
+
readonly security?: {
|
|
23
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
24
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
25
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
24
26
|
} | undefined;
|
|
25
|
-
storeQueries?: boolean | undefined;
|
|
27
|
+
readonly storeQueries?: boolean | undefined;
|
|
26
28
|
} & Omit<{
|
|
27
29
|
parents?: import("@xyo-network/archivist").ArchivistParents | undefined;
|
|
28
30
|
schema: "network.xyo.archivist.config";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useArchivists.d.ts","sourceRoot":"","sources":["../../../src/hooks/useArchivists.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAGzD,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"useArchivists.d.ts","sourceRoot":"","sources":["../../../src/hooks/useArchivists.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAGzD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uHAA+D,CAAA"}
|
package/package.json
CHANGED
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/issues"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@xylabs/react-button": "^2.17.
|
|
14
|
-
"@xylabs/react-flexbox": "^2.17.
|
|
15
|
-
"@xyo-network/boundwitness-model": "^2.
|
|
16
|
-
"@xyo-network/boundwitness-wrapper": "^2.
|
|
17
|
-
"@xyo-network/react-module": "^2.
|
|
18
|
-
"@xyo-network/react-node": "^2.
|
|
13
|
+
"@xylabs/react-button": "^2.17.3",
|
|
14
|
+
"@xylabs/react-flexbox": "^2.17.3",
|
|
15
|
+
"@xyo-network/boundwitness-model": "^2.58.0",
|
|
16
|
+
"@xyo-network/boundwitness-wrapper": "^2.58.0",
|
|
17
|
+
"@xyo-network/react-module": "^2.50.0",
|
|
18
|
+
"@xyo-network/react-node": "^2.50.0",
|
|
19
19
|
"react-icons": "^4.8.0"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
@@ -29,17 +29,17 @@
|
|
|
29
29
|
},
|
|
30
30
|
"description": "Common React library for all XYO projects that use React",
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@storybook/react": "^7.0.
|
|
33
|
-
"@xylabs/react-async-effect": "^2.17.
|
|
32
|
+
"@storybook/react": "^7.0.17",
|
|
33
|
+
"@xylabs/react-async-effect": "^2.17.3",
|
|
34
34
|
"@xylabs/ts-scripts-yarn3": "^2.17.13",
|
|
35
35
|
"@xylabs/tsconfig-react": "^2.17.13",
|
|
36
|
-
"@xyo-network/account": "^2.
|
|
37
|
-
"@xyo-network/archivist": "^2.
|
|
38
|
-
"@xyo-network/archivist-wrapper": "^2.
|
|
39
|
-
"@xyo-network/boundwitness-builder": "^2.
|
|
40
|
-
"@xyo-network/module": "^2.
|
|
41
|
-
"@xyo-network/payload-model": "^2.
|
|
42
|
-
"@xyo-network/react-storybook": "^2.
|
|
36
|
+
"@xyo-network/account": "^2.58.0",
|
|
37
|
+
"@xyo-network/archivist": "^2.58.0",
|
|
38
|
+
"@xyo-network/archivist-wrapper": "^2.58.0",
|
|
39
|
+
"@xyo-network/boundwitness-builder": "^2.58.0",
|
|
40
|
+
"@xyo-network/module": "^2.58.0",
|
|
41
|
+
"@xyo-network/payload-model": "^2.58.0",
|
|
42
|
+
"@xyo-network/react-storybook": "^2.50.0",
|
|
43
43
|
"typescript": "^5.0.4"
|
|
44
44
|
},
|
|
45
45
|
"browser": "dist/esm/index.js",
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
},
|
|
85
85
|
"sideEffects": false,
|
|
86
86
|
"types": "dist/types/index.d.ts",
|
|
87
|
-
"version": "2.
|
|
87
|
+
"version": "2.50.0"
|
|
88
88
|
}
|
|
@@ -24,11 +24,8 @@ const insertPayload = async (archivist?: ArchivistModule) => {
|
|
|
24
24
|
const payload = { schema: 'network.xyo.payload', timestamp: Date.now() }
|
|
25
25
|
const insertQuery = { schema: ArchivistInsertQuerySchema }
|
|
26
26
|
const account = new Account()
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
.witness(account)
|
|
30
|
-
.query(insertQuery)
|
|
31
|
-
.build()
|
|
27
|
+
const builder = new QueryBoundWitnessBuilder({ inlinePayloads: true }).payloads([insertQuery, payload]).witness(account).query(insertQuery)
|
|
28
|
+
const [insertQueryBoundWitness, payloads] = await builder.build()
|
|
32
29
|
const wrapper = ArchivistWrapper.wrap(archivist, account)
|
|
33
30
|
await wrapper.insert([insertQueryBoundWitness, ...payloads])
|
|
34
31
|
}
|
|
@@ -35,11 +35,8 @@ const Template: StoryFn<typeof MemoryArchivistsStats> = () => {
|
|
|
35
35
|
const payload = { schema: 'network.xyo.payload' }
|
|
36
36
|
const insertQuery = { schema: ArchivistInsertQuerySchema }
|
|
37
37
|
const account = new Account()
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
.witness(account)
|
|
41
|
-
.query(insertQuery)
|
|
42
|
-
.build()
|
|
38
|
+
const builder = new QueryBoundWitnessBuilder({ inlinePayloads: true }).payloads([insertQuery, payload]).witness(account).query(insertQuery)
|
|
39
|
+
const [insertQueryBoundWitness, payloads] = await builder.build()
|
|
43
40
|
const wrapper = ArchivistWrapper.wrap(newModule, account)
|
|
44
41
|
await wrapper.insert([insertQueryBoundWitness, ...payloads])
|
|
45
42
|
if (mounted()) {
|
|
@@ -11,10 +11,10 @@ import { useEffect, useState } from 'react'
|
|
|
11
11
|
import { useArchivist } from '../../hooks'
|
|
12
12
|
|
|
13
13
|
const testQueryCommit = { schema: ArchivistCommitQuerySchema }
|
|
14
|
-
const
|
|
14
|
+
const testQueryCommitBoundWitnessBuilder = new QueryBoundWitnessBuilder({ inlinePayloads: true }).query(testQueryCommit)
|
|
15
15
|
|
|
16
16
|
const testQueryClear = { schema: ArchivistClearQuerySchema }
|
|
17
|
-
const
|
|
17
|
+
const testQueryClearBoundWitnessBuilder = new QueryBoundWitnessBuilder({ inlinePayloads: true }).query(testQueryClear)
|
|
18
18
|
|
|
19
19
|
export interface ArchivistDetails extends FlexBoxProps {
|
|
20
20
|
address?: string
|
|
@@ -32,8 +32,10 @@ export const ArchivistDetails: React.FC<ArchivistDetails> = ({ address, ...props
|
|
|
32
32
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
33
33
|
async () => {
|
|
34
34
|
if (archivist) {
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
const [commitBW] = await testQueryCommitBoundWitnessBuilder.build()
|
|
36
|
+
const [clearBW] = await testQueryClearBoundWitnessBuilder.build()
|
|
37
|
+
setQueryableCommit(await archivist?.queryable(commitBW, [testQueryCommit]))
|
|
38
|
+
setQueryableClear(await archivist?.queryable(clearBW, [testQueryClear]))
|
|
37
39
|
}
|
|
38
40
|
},
|
|
39
41
|
[archivist],
|