@xyo-network/react-node 2.49.9 → 2.49.11
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/docs.json +50 -50
- package/package.json +15 -15
- package/src/components/Node.stories.tsx +11 -6
package/dist/docs.json
CHANGED
|
@@ -378,8 +378,8 @@
|
|
|
378
378
|
"flags": {},
|
|
379
379
|
"sources": [
|
|
380
380
|
{
|
|
381
|
-
"fileName": "node_modules/@xyo-network/module-model/dist/types/
|
|
382
|
-
"line":
|
|
381
|
+
"fileName": "node_modules/@xyo-network/module-model/dist/types/Config.d.ts",
|
|
382
|
+
"line": 26,
|
|
383
383
|
"character": 58
|
|
384
384
|
}
|
|
385
385
|
]
|
|
@@ -447,7 +447,7 @@
|
|
|
447
447
|
"fileName": "packages/modules/packages/node/src/components/NodeDrawer.tsx",
|
|
448
448
|
"line": 10,
|
|
449
449
|
"character": 17,
|
|
450
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
450
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/8097e309a432/packages/modules/packages/node/src/components/NodeDrawer.tsx#L10"
|
|
451
451
|
}
|
|
452
452
|
],
|
|
453
453
|
"extendedTypes": [
|
|
@@ -811,8 +811,8 @@
|
|
|
811
811
|
"flags": {},
|
|
812
812
|
"sources": [
|
|
813
813
|
{
|
|
814
|
-
"fileName": "node_modules/@xyo-network/module-model/dist/types/
|
|
815
|
-
"line":
|
|
814
|
+
"fileName": "node_modules/@xyo-network/module-model/dist/types/Config.d.ts",
|
|
815
|
+
"line": 26,
|
|
816
816
|
"character": 58
|
|
817
817
|
}
|
|
818
818
|
]
|
|
@@ -1071,7 +1071,7 @@
|
|
|
1071
1071
|
"type": {
|
|
1072
1072
|
"type": "reference",
|
|
1073
1073
|
"name": "Context",
|
|
1074
|
-
"qualifiedName": "\"/Users/
|
|
1074
|
+
"qualifiedName": "\"/Users/arietrouw/GitHub/XYOracleNetwork/sdk-xyo-react-js/node_modules/@types/react/ts5.0/index\"",
|
|
1075
1075
|
"package": "@types/react"
|
|
1076
1076
|
}
|
|
1077
1077
|
},
|
|
@@ -1093,7 +1093,7 @@
|
|
|
1093
1093
|
"type": {
|
|
1094
1094
|
"type": "reference",
|
|
1095
1095
|
"name": "Context",
|
|
1096
|
-
"qualifiedName": "\"/Users/
|
|
1096
|
+
"qualifiedName": "\"/Users/arietrouw/GitHub/XYOracleNetwork/sdk-xyo-react-js/node_modules/@types/react/ts5.0/index\"",
|
|
1097
1097
|
"package": "@types/react"
|
|
1098
1098
|
}
|
|
1099
1099
|
},
|
|
@@ -1115,7 +1115,7 @@
|
|
|
1115
1115
|
"type": {
|
|
1116
1116
|
"type": "reference",
|
|
1117
1117
|
"name": "Context",
|
|
1118
|
-
"qualifiedName": "\"/Users/
|
|
1118
|
+
"qualifiedName": "\"/Users/arietrouw/GitHub/XYOracleNetwork/sdk-xyo-react-js/node_modules/@types/react/ts5.0/index\"",
|
|
1119
1119
|
"package": "@types/react"
|
|
1120
1120
|
}
|
|
1121
1121
|
},
|
|
@@ -1279,7 +1279,7 @@
|
|
|
1279
1279
|
"fileName": "packages/modules/packages/node/src/components/Node.tsx",
|
|
1280
1280
|
"line": 8,
|
|
1281
1281
|
"character": 13,
|
|
1282
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
1282
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/8097e309a432/packages/modules/packages/node/src/components/Node.tsx#L8"
|
|
1283
1283
|
}
|
|
1284
1284
|
],
|
|
1285
1285
|
"signatures": [
|
|
@@ -1356,7 +1356,7 @@
|
|
|
1356
1356
|
"fileName": "packages/modules/packages/node/src/components/NodeDrawer.tsx",
|
|
1357
1357
|
"line": 12,
|
|
1358
1358
|
"character": 13,
|
|
1359
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
1359
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/8097e309a432/packages/modules/packages/node/src/components/NodeDrawer.tsx#L12"
|
|
1360
1360
|
}
|
|
1361
1361
|
],
|
|
1362
1362
|
"signatures": [
|
|
@@ -1590,7 +1590,7 @@
|
|
|
1590
1590
|
"fileName": "packages/modules/packages/node/src/hooks/useWrappedModule.tsx",
|
|
1591
1591
|
"line": 9,
|
|
1592
1592
|
"character": 13,
|
|
1593
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
1593
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/8097e309a432/packages/modules/packages/node/src/hooks/useWrappedModule.tsx#L9"
|
|
1594
1594
|
}
|
|
1595
1595
|
],
|
|
1596
1596
|
"signatures": [
|
|
@@ -1726,8 +1726,8 @@
|
|
|
1726
1726
|
"flags": {},
|
|
1727
1727
|
"sources": [
|
|
1728
1728
|
{
|
|
1729
|
-
"fileName": "node_modules/@xyo-network/module-model/dist/types/
|
|
1730
|
-
"line":
|
|
1729
|
+
"fileName": "node_modules/@xyo-network/module-model/dist/types/Config.d.ts",
|
|
1730
|
+
"line": 26,
|
|
1731
1731
|
"character": 58
|
|
1732
1732
|
}
|
|
1733
1733
|
]
|
|
@@ -1826,7 +1826,7 @@
|
|
|
1826
1826
|
"fileName": "packages/modules/packages/node/src/hooks/useWrappedModule.tsx",
|
|
1827
1827
|
"line": 13,
|
|
1828
1828
|
"character": 18,
|
|
1829
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
1829
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/8097e309a432/packages/modules/packages/node/src/hooks/useWrappedModule.tsx#L13"
|
|
1830
1830
|
}
|
|
1831
1831
|
],
|
|
1832
1832
|
"signatures": [
|
|
@@ -1933,7 +1933,7 @@
|
|
|
1933
1933
|
"fileName": "packages/modules/packages/node/src/hooks/useWrappedModules.tsx",
|
|
1934
1934
|
"line": 10,
|
|
1935
1935
|
"character": 13,
|
|
1936
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
1936
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/8097e309a432/packages/modules/packages/node/src/hooks/useWrappedModules.tsx#L10"
|
|
1937
1937
|
}
|
|
1938
1938
|
],
|
|
1939
1939
|
"signatures": [
|
|
@@ -2069,8 +2069,8 @@
|
|
|
2069
2069
|
"flags": {},
|
|
2070
2070
|
"sources": [
|
|
2071
2071
|
{
|
|
2072
|
-
"fileName": "node_modules/@xyo-network/module-model/dist/types/
|
|
2073
|
-
"line":
|
|
2072
|
+
"fileName": "node_modules/@xyo-network/module-model/dist/types/Config.d.ts",
|
|
2073
|
+
"line": 26,
|
|
2074
2074
|
"character": 58
|
|
2075
2075
|
}
|
|
2076
2076
|
]
|
|
@@ -2167,7 +2167,7 @@
|
|
|
2167
2167
|
"fileName": "packages/modules/packages/node/src/hooks/useWrappedModules.tsx",
|
|
2168
2168
|
"line": 17,
|
|
2169
2169
|
"character": 18,
|
|
2170
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
2170
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/8097e309a432/packages/modules/packages/node/src/hooks/useWrappedModules.tsx#L17"
|
|
2171
2171
|
}
|
|
2172
2172
|
],
|
|
2173
2173
|
"signatures": [
|
|
@@ -2264,7 +2264,7 @@
|
|
|
2264
2264
|
"fileName": "packages/modules/packages/node/src/hooks/useModule.tsx",
|
|
2265
2265
|
"line": 11,
|
|
2266
2266
|
"character": 13,
|
|
2267
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
2267
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/8097e309a432/packages/modules/packages/node/src/hooks/useModule.tsx#L11"
|
|
2268
2268
|
}
|
|
2269
2269
|
],
|
|
2270
2270
|
"signatures": [
|
|
@@ -2400,8 +2400,8 @@
|
|
|
2400
2400
|
"flags": {},
|
|
2401
2401
|
"sources": [
|
|
2402
2402
|
{
|
|
2403
|
-
"fileName": "node_modules/@xyo-network/module-model/dist/types/
|
|
2404
|
-
"line":
|
|
2403
|
+
"fileName": "node_modules/@xyo-network/module-model/dist/types/Config.d.ts",
|
|
2404
|
+
"line": 26,
|
|
2405
2405
|
"character": 58
|
|
2406
2406
|
}
|
|
2407
2407
|
]
|
|
@@ -2571,8 +2571,8 @@
|
|
|
2571
2571
|
"flags": {},
|
|
2572
2572
|
"sources": [
|
|
2573
2573
|
{
|
|
2574
|
-
"fileName": "node_modules/@xyo-network/module-model/dist/types/
|
|
2575
|
-
"line":
|
|
2574
|
+
"fileName": "node_modules/@xyo-network/module-model/dist/types/Config.d.ts",
|
|
2575
|
+
"line": 26,
|
|
2576
2576
|
"character": 58
|
|
2577
2577
|
}
|
|
2578
2578
|
]
|
|
@@ -2781,7 +2781,7 @@
|
|
|
2781
2781
|
"fileName": "packages/modules/packages/node/src/hooks/useModules.ts",
|
|
2782
2782
|
"line": 9,
|
|
2783
2783
|
"character": 13,
|
|
2784
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
2784
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/8097e309a432/packages/modules/packages/node/src/hooks/useModules.ts#L9"
|
|
2785
2785
|
}
|
|
2786
2786
|
],
|
|
2787
2787
|
"signatures": [
|
|
@@ -2917,8 +2917,8 @@
|
|
|
2917
2917
|
"flags": {},
|
|
2918
2918
|
"sources": [
|
|
2919
2919
|
{
|
|
2920
|
-
"fileName": "node_modules/@xyo-network/module-model/dist/types/
|
|
2921
|
-
"line":
|
|
2920
|
+
"fileName": "node_modules/@xyo-network/module-model/dist/types/Config.d.ts",
|
|
2921
|
+
"line": 26,
|
|
2922
2922
|
"character": 58
|
|
2923
2923
|
}
|
|
2924
2924
|
]
|
|
@@ -3088,8 +3088,8 @@
|
|
|
3088
3088
|
"flags": {},
|
|
3089
3089
|
"sources": [
|
|
3090
3090
|
{
|
|
3091
|
-
"fileName": "node_modules/@xyo-network/module-model/dist/types/
|
|
3092
|
-
"line":
|
|
3091
|
+
"fileName": "node_modules/@xyo-network/module-model/dist/types/Config.d.ts",
|
|
3092
|
+
"line": 26,
|
|
3093
3093
|
"character": 58
|
|
3094
3094
|
}
|
|
3095
3095
|
]
|
|
@@ -3213,7 +3213,7 @@
|
|
|
3213
3213
|
"fileName": "packages/modules/packages/node/src/hooks/useNode.tsx",
|
|
3214
3214
|
"line": 25,
|
|
3215
3215
|
"character": 13,
|
|
3216
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
3216
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/8097e309a432/packages/modules/packages/node/src/hooks/useNode.tsx#L25"
|
|
3217
3217
|
}
|
|
3218
3218
|
],
|
|
3219
3219
|
"signatures": [
|
|
@@ -3431,8 +3431,8 @@
|
|
|
3431
3431
|
"flags": {},
|
|
3432
3432
|
"sources": [
|
|
3433
3433
|
{
|
|
3434
|
-
"fileName": "node_modules/@xyo-network/module-model/dist/types/
|
|
3435
|
-
"line":
|
|
3434
|
+
"fileName": "node_modules/@xyo-network/module-model/dist/types/Config.d.ts",
|
|
3435
|
+
"line": 26,
|
|
3436
3436
|
"character": 58
|
|
3437
3437
|
}
|
|
3438
3438
|
]
|
|
@@ -3573,7 +3573,7 @@
|
|
|
3573
3573
|
"fileName": "packages/modules/packages/node/src/hooks/useProvidedNode.tsx",
|
|
3574
3574
|
"line": 7,
|
|
3575
3575
|
"character": 13,
|
|
3576
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
3576
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/8097e309a432/packages/modules/packages/node/src/hooks/useProvidedNode.tsx#L7"
|
|
3577
3577
|
}
|
|
3578
3578
|
],
|
|
3579
3579
|
"signatures": [
|
|
@@ -3743,8 +3743,8 @@
|
|
|
3743
3743
|
"flags": {},
|
|
3744
3744
|
"sources": [
|
|
3745
3745
|
{
|
|
3746
|
-
"fileName": "node_modules/@xyo-network/module-model/dist/types/
|
|
3747
|
-
"line":
|
|
3746
|
+
"fileName": "node_modules/@xyo-network/module-model/dist/types/Config.d.ts",
|
|
3747
|
+
"line": 26,
|
|
3748
3748
|
"character": 58
|
|
3749
3749
|
}
|
|
3750
3750
|
]
|
|
@@ -3801,7 +3801,7 @@
|
|
|
3801
3801
|
"fileName": "packages/modules/packages/node/src/hooks/useProvidedNodeAttachedAddresses.ts",
|
|
3802
3802
|
"line": 7,
|
|
3803
3803
|
"character": 13,
|
|
3804
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
3804
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/8097e309a432/packages/modules/packages/node/src/hooks/useProvidedNodeAttachedAddresses.ts#L7"
|
|
3805
3805
|
}
|
|
3806
3806
|
],
|
|
3807
3807
|
"signatures": [
|
|
@@ -3970,8 +3970,8 @@
|
|
|
3970
3970
|
"flags": {},
|
|
3971
3971
|
"sources": [
|
|
3972
3972
|
{
|
|
3973
|
-
"fileName": "node_modules/@xyo-network/module-model/dist/types/
|
|
3974
|
-
"line":
|
|
3973
|
+
"fileName": "node_modules/@xyo-network/module-model/dist/types/Config.d.ts",
|
|
3974
|
+
"line": 26,
|
|
3975
3975
|
"character": 58
|
|
3976
3976
|
}
|
|
3977
3977
|
]
|
|
@@ -4045,7 +4045,7 @@
|
|
|
4045
4045
|
"fileName": "packages/modules/packages/node/src/hooks/useProvidedNodeRegisteredAddresses.ts",
|
|
4046
4046
|
"line": 7,
|
|
4047
4047
|
"character": 13,
|
|
4048
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
4048
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/8097e309a432/packages/modules/packages/node/src/hooks/useProvidedNodeRegisteredAddresses.ts#L7"
|
|
4049
4049
|
}
|
|
4050
4050
|
],
|
|
4051
4051
|
"signatures": [
|
|
@@ -4214,8 +4214,8 @@
|
|
|
4214
4214
|
"flags": {},
|
|
4215
4215
|
"sources": [
|
|
4216
4216
|
{
|
|
4217
|
-
"fileName": "node_modules/@xyo-network/module-model/dist/types/
|
|
4218
|
-
"line":
|
|
4217
|
+
"fileName": "node_modules/@xyo-network/module-model/dist/types/Config.d.ts",
|
|
4218
|
+
"line": 26,
|
|
4219
4219
|
"character": 58
|
|
4220
4220
|
}
|
|
4221
4221
|
]
|
|
@@ -4289,7 +4289,7 @@
|
|
|
4289
4289
|
"fileName": "packages/modules/packages/node/src/hooks/useProvidedNode.tsx",
|
|
4290
4290
|
"line": 13,
|
|
4291
4291
|
"character": 13,
|
|
4292
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
4292
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/8097e309a432/packages/modules/packages/node/src/hooks/useProvidedNode.tsx#L13"
|
|
4293
4293
|
}
|
|
4294
4294
|
],
|
|
4295
4295
|
"signatures": [
|
|
@@ -4479,8 +4479,8 @@
|
|
|
4479
4479
|
"flags": {},
|
|
4480
4480
|
"sources": [
|
|
4481
4481
|
{
|
|
4482
|
-
"fileName": "node_modules/@xyo-network/module-model/dist/types/
|
|
4483
|
-
"line":
|
|
4482
|
+
"fileName": "node_modules/@xyo-network/module-model/dist/types/Config.d.ts",
|
|
4483
|
+
"line": 26,
|
|
4484
4484
|
"character": 58
|
|
4485
4485
|
}
|
|
4486
4486
|
]
|
|
@@ -4557,7 +4557,7 @@
|
|
|
4557
4557
|
"fileName": "packages/modules/packages/node/src/hooks/useWrappedModule.tsx",
|
|
4558
4558
|
"line": 58,
|
|
4559
4559
|
"character": 13,
|
|
4560
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
4560
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/8097e309a432/packages/modules/packages/node/src/hooks/useWrappedModule.tsx#L58"
|
|
4561
4561
|
}
|
|
4562
4562
|
],
|
|
4563
4563
|
"signatures": [
|
|
@@ -4741,8 +4741,8 @@
|
|
|
4741
4741
|
"flags": {},
|
|
4742
4742
|
"sources": [
|
|
4743
4743
|
{
|
|
4744
|
-
"fileName": "node_modules/@xyo-network/module-model/dist/types/
|
|
4745
|
-
"line":
|
|
4744
|
+
"fileName": "node_modules/@xyo-network/module-model/dist/types/Config.d.ts",
|
|
4745
|
+
"line": 26,
|
|
4746
4746
|
"character": 58
|
|
4747
4747
|
}
|
|
4748
4748
|
]
|
|
@@ -4819,7 +4819,7 @@
|
|
|
4819
4819
|
"fileName": "packages/modules/packages/node/src/hooks/useWrappedModules.tsx",
|
|
4820
4820
|
"line": 66,
|
|
4821
4821
|
"character": 13,
|
|
4822
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
4822
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/8097e309a432/packages/modules/packages/node/src/hooks/useWrappedModules.tsx#L66"
|
|
4823
4823
|
}
|
|
4824
4824
|
],
|
|
4825
4825
|
"signatures": [
|
|
@@ -4992,8 +4992,8 @@
|
|
|
4992
4992
|
"flags": {},
|
|
4993
4993
|
"sources": [
|
|
4994
4994
|
{
|
|
4995
|
-
"fileName": "node_modules/@xyo-network/module-model/dist/types/
|
|
4996
|
-
"line":
|
|
4995
|
+
"fileName": "node_modules/@xyo-network/module-model/dist/types/Config.d.ts",
|
|
4996
|
+
"line": 26,
|
|
4997
4997
|
"character": 58
|
|
4998
4998
|
}
|
|
4999
4999
|
]
|
|
@@ -5118,7 +5118,7 @@
|
|
|
5118
5118
|
"fileName": "packages/modules/packages/node/src/index.ts",
|
|
5119
5119
|
"line": 1,
|
|
5120
5120
|
"character": 0,
|
|
5121
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
5121
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/8097e309a432/packages/modules/packages/node/src/index.ts#L1"
|
|
5122
5122
|
}
|
|
5123
5123
|
]
|
|
5124
5124
|
}
|
package/package.json
CHANGED
|
@@ -14,24 +14,24 @@
|
|
|
14
14
|
"@xylabs/react-async-effect": "^2.17.2",
|
|
15
15
|
"@xylabs/react-flexbox": "^2.17.2",
|
|
16
16
|
"@xylabs/react-shared": "^2.17.2",
|
|
17
|
-
"@xyo-network/account-model": "^2.
|
|
18
|
-
"@xyo-network/core": "^2.
|
|
19
|
-
"@xyo-network/module": "^2.
|
|
20
|
-
"@xyo-network/module-model": "^2.
|
|
21
|
-
"@xyo-network/node": "^2.
|
|
22
|
-
"@xyo-network/react-node-context": "^2.49.
|
|
23
|
-
"@xyo-network/react-node-provider": "^2.49.
|
|
24
|
-
"@xyo-network/react-wallet": "^2.49.
|
|
17
|
+
"@xyo-network/account-model": "^2.57.5",
|
|
18
|
+
"@xyo-network/core": "^2.57.5",
|
|
19
|
+
"@xyo-network/module": "^2.57.5",
|
|
20
|
+
"@xyo-network/module-model": "^2.57.5",
|
|
21
|
+
"@xyo-network/node": "^2.57.5",
|
|
22
|
+
"@xyo-network/react-node-context": "^2.49.11",
|
|
23
|
+
"@xyo-network/react-node-provider": "^2.49.11",
|
|
24
|
+
"@xyo-network/react-wallet": "^2.49.11",
|
|
25
25
|
"lodash": "^4.17.21"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@storybook/react": "^7.0.
|
|
28
|
+
"@storybook/react": "^7.0.12",
|
|
29
29
|
"@types/lodash": "^4.14.194",
|
|
30
|
-
"@xylabs/ts-scripts-yarn3": "^2.17.
|
|
31
|
-
"@xylabs/tsconfig-react": "^2.17.
|
|
32
|
-
"@xyo-network/account": "^2.
|
|
33
|
-
"@xyo-network/react-storybook": "^2.49.
|
|
34
|
-
"@xyo-network/react-wallet": "^2.49.
|
|
30
|
+
"@xylabs/ts-scripts-yarn3": "^2.17.13",
|
|
31
|
+
"@xylabs/tsconfig-react": "^2.17.13",
|
|
32
|
+
"@xyo-network/account": "^2.57.5",
|
|
33
|
+
"@xyo-network/react-storybook": "^2.49.11",
|
|
34
|
+
"@xyo-network/react-wallet": "^2.49.11",
|
|
35
35
|
"typescript": "^5.0.4"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
},
|
|
87
87
|
"sideEffects": false,
|
|
88
88
|
"types": "dist/types/index.d.ts",
|
|
89
|
-
"version": "2.49.
|
|
89
|
+
"version": "2.49.11"
|
|
90
90
|
}
|
|
@@ -2,7 +2,7 @@ import { Decorator, Meta, StoryFn } from '@storybook/react'
|
|
|
2
2
|
import { useAsyncEffect } from '@xylabs/react-async-effect'
|
|
3
3
|
import { WithChildren } from '@xylabs/react-shared'
|
|
4
4
|
import { HDWallet } from '@xyo-network/account'
|
|
5
|
-
import { AbstractModule } from '@xyo-network/module'
|
|
5
|
+
import { AbstractModule, Query } from '@xyo-network/module'
|
|
6
6
|
import { MemoryNode, NodeConfigSchema, NodeWrapper } from '@xyo-network/node'
|
|
7
7
|
import { MemoryNodeProvider } from '@xyo-network/react-node-provider'
|
|
8
8
|
import { DefaultSeedPhrase } from '@xyo-network/react-storybook'
|
|
@@ -12,12 +12,17 @@ import { useEffect, useState } from 'react'
|
|
|
12
12
|
import { useModule, useProvidedNode } from '../hooks'
|
|
13
13
|
|
|
14
14
|
const randomWallet = HDWallet.fromMnemonic(DefaultSeedPhrase)
|
|
15
|
-
|
|
16
|
-
class TestModule extends AbstractModule {
|
|
15
|
+
const TestModuleConfigSchema = 'network.xyo.test.module'
|
|
16
|
+
class TestModule extends AbstractModule {
|
|
17
|
+
static override configSchema: string = TestModuleConfigSchema
|
|
18
|
+
get _queryAccountPaths(): Record<Query['schema'], string> {
|
|
19
|
+
return {}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
17
22
|
const TestModuleName = 'TestModule'
|
|
18
|
-
const TestModuleAccount = randomWallet.
|
|
23
|
+
const TestModuleAccount = randomWallet.derivePath('0')
|
|
19
24
|
|
|
20
|
-
const account = randomWallet.
|
|
25
|
+
const account = randomWallet.derivePath('0')
|
|
21
26
|
|
|
22
27
|
const MemoryNodeDecorator: Decorator = (Story, args) => {
|
|
23
28
|
return (
|
|
@@ -56,7 +61,7 @@ const Template: StoryFn<React.FC> = (props) => {
|
|
|
56
61
|
async (mounted) => {
|
|
57
62
|
if (node) {
|
|
58
63
|
try {
|
|
59
|
-
const mod = await TestModule.create({ account: TestModuleAccount, config: { name: TestModuleName, schema:
|
|
64
|
+
const mod = await TestModule.create({ account: TestModuleAccount, config: { name: TestModuleName, schema: TestModuleConfigSchema } })
|
|
60
65
|
await node?.register(mod)
|
|
61
66
|
await node?.attach(mod.address, true)
|
|
62
67
|
const wrapper = NodeWrapper.wrap(node)
|