@xyo-network/react-node-renderer 2.67.5 → 2.67.7

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.
Files changed (58) hide show
  1. package/dist/browser/Cytoscape/CytoscapeElements.d.cts +10 -10
  2. package/dist/browser/Cytoscape/CytoscapeElements.d.cts.map +1 -1
  3. package/dist/browser/Cytoscape/CytoscapeElements.d.mts +10 -10
  4. package/dist/browser/Cytoscape/CytoscapeElements.d.mts.map +1 -1
  5. package/dist/browser/Cytoscape/CytoscapeElements.d.ts +10 -10
  6. package/dist/browser/Cytoscape/CytoscapeElements.d.ts.map +1 -1
  7. package/dist/browser/components/module/CardParser.d.cts.map +1 -1
  8. package/dist/browser/components/module/CardParser.d.mts.map +1 -1
  9. package/dist/browser/components/module/CardParser.d.ts.map +1 -1
  10. package/dist/browser/hooks/cytoscape/elements/useHoveredNode.d.cts.map +1 -1
  11. package/dist/browser/hooks/cytoscape/elements/useHoveredNode.d.mts.map +1 -1
  12. package/dist/browser/hooks/cytoscape/elements/useHoveredNode.d.ts.map +1 -1
  13. package/dist/browser/hooks/cytoscape/useIcons.d.cts.map +1 -1
  14. package/dist/browser/hooks/cytoscape/useIcons.d.mts.map +1 -1
  15. package/dist/browser/hooks/cytoscape/useIcons.d.ts.map +1 -1
  16. package/dist/browser/hooks/cytoscape/useModuleDetails.d.cts +6 -341
  17. package/dist/browser/hooks/cytoscape/useModuleDetails.d.cts.map +1 -1
  18. package/dist/browser/hooks/cytoscape/useModuleDetails.d.mts +6 -341
  19. package/dist/browser/hooks/cytoscape/useModuleDetails.d.mts.map +1 -1
  20. package/dist/browser/hooks/cytoscape/useModuleDetails.d.ts +6 -341
  21. package/dist/browser/hooks/cytoscape/useModuleDetails.d.ts.map +1 -1
  22. package/dist/browser/index.cjs +35 -31
  23. package/dist/browser/index.cjs.map +1 -1
  24. package/dist/browser/index.js +35 -31
  25. package/dist/browser/index.js.map +1 -1
  26. package/dist/node/Cytoscape/CytoscapeElements.d.cts +10 -10
  27. package/dist/node/Cytoscape/CytoscapeElements.d.cts.map +1 -1
  28. package/dist/node/Cytoscape/CytoscapeElements.d.mts +10 -10
  29. package/dist/node/Cytoscape/CytoscapeElements.d.mts.map +1 -1
  30. package/dist/node/Cytoscape/CytoscapeElements.d.ts +10 -10
  31. package/dist/node/Cytoscape/CytoscapeElements.d.ts.map +1 -1
  32. package/dist/node/components/module/CardParser.d.cts.map +1 -1
  33. package/dist/node/components/module/CardParser.d.mts.map +1 -1
  34. package/dist/node/components/module/CardParser.d.ts.map +1 -1
  35. package/dist/node/hooks/cytoscape/elements/useHoveredNode.d.cts.map +1 -1
  36. package/dist/node/hooks/cytoscape/elements/useHoveredNode.d.mts.map +1 -1
  37. package/dist/node/hooks/cytoscape/elements/useHoveredNode.d.ts.map +1 -1
  38. package/dist/node/hooks/cytoscape/useIcons.d.cts.map +1 -1
  39. package/dist/node/hooks/cytoscape/useIcons.d.mts.map +1 -1
  40. package/dist/node/hooks/cytoscape/useIcons.d.ts.map +1 -1
  41. package/dist/node/hooks/cytoscape/useModuleDetails.d.cts +6 -341
  42. package/dist/node/hooks/cytoscape/useModuleDetails.d.cts.map +1 -1
  43. package/dist/node/hooks/cytoscape/useModuleDetails.d.mts +6 -341
  44. package/dist/node/hooks/cytoscape/useModuleDetails.d.mts.map +1 -1
  45. package/dist/node/hooks/cytoscape/useModuleDetails.d.ts +6 -341
  46. package/dist/node/hooks/cytoscape/useModuleDetails.d.ts.map +1 -1
  47. package/dist/node/index.cjs +35 -31
  48. package/dist/node/index.cjs.map +1 -1
  49. package/dist/node/index.js +35 -31
  50. package/dist/node/index.js.map +1 -1
  51. package/package.json +24 -24
  52. package/src/Cytoscape/CytoscapeElements.ts +23 -22
  53. package/src/Cytoscape/lib/encodeSvg.ts +1 -1
  54. package/src/components/module/CardParser.tsx +6 -3
  55. package/src/hooks/cytoscape/elements/useCytoscapeElements.ts +2 -2
  56. package/src/hooks/cytoscape/elements/useHoveredNode.tsx +2 -0
  57. package/src/hooks/cytoscape/useIcons.tsx +1 -0
  58. package/src/hooks/cytoscape/useModuleDetails.tsx +1 -1
@@ -2,160 +2,14 @@ import { ModuleInstance } from '@xyo-network/module-model';
2
2
  export declare const useModuleDetails: (rootModule?: ModuleInstance | null, onFoundModule?: () => void) => {
3
3
  module: ModuleInstance<import("@xyo-network/object").BaseParamsFields & {
4
4
  account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
5
- config: (import("@xyo-network/payload-model").SchemaFields & object & Omit<{
6
- accountDerivationPath?: string | undefined;
7
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
5
+ config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
6
+ readonly archivist?: string | undefined;
8
7
  readonly labels?: import("@xyo-network/module-model").Labels | undefined;
9
8
  readonly name?: string | undefined;
10
9
  readonly paging?: Record<string, {
11
10
  size?: number | undefined;
12
11
  }> | undefined;
13
- readonly security?: {
14
- readonly allowAnonymous?: boolean | undefined;
15
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
16
- readonly disallowed?: Record<string, string[]> | undefined;
17
- } | undefined;
18
- readonly sign?: boolean | undefined;
19
- readonly storeQueries?: boolean | undefined;
20
- readonly timestamp?: boolean | undefined;
21
- } & import("@xyo-network/module-model").ArchivingModuleConfig & {
22
- schema: string;
23
- } & Omit<(import("@xyo-network/payload-model").SchemaFields & object & {
24
- accountDerivationPath?: string | undefined;
25
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
26
- readonly labels?: import("@xyo-network/module-model").Labels | undefined;
27
- readonly name?: string | undefined;
28
- readonly paging?: Record<string, {
29
- size?: number | undefined;
30
- }> | undefined;
31
- readonly security?: {
32
- readonly allowAnonymous?: boolean | undefined;
33
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
34
- readonly disallowed?: Record<string, string[]> | undefined;
35
- } | undefined;
36
- readonly sign?: boolean | undefined;
37
- readonly storeQueries?: boolean | undefined;
38
- readonly timestamp?: boolean | undefined;
39
- } & import("@xyo-network/module-model").ArchivingModuleConfig & {
40
- schema: "network.xyo.module.config";
41
- }) | (import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadMetaFields & {
42
- accountDerivationPath?: string | undefined;
43
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
44
- readonly labels?: import("@xyo-network/module-model").Labels | undefined;
45
- readonly name?: string | undefined;
46
- readonly paging?: Record<string, {
47
- size?: number | undefined;
48
- }> | undefined;
49
- readonly security?: {
50
- readonly allowAnonymous?: boolean | undefined;
51
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
52
- readonly disallowed?: Record<string, string[]> | undefined;
53
- } | undefined;
54
- readonly sign?: boolean | undefined;
55
- readonly storeQueries?: boolean | undefined;
56
- readonly timestamp?: boolean | undefined;
57
- } & import("@xyo-network/module-model").ArchivingModuleConfig & {
58
- schema: "network.xyo.module.config";
59
- } & object) | (import("@xyo-network/payload-model").SchemaFields & object & {
60
- accountDerivationPath?: string | undefined;
61
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
62
- readonly labels?: import("@xyo-network/module-model").Labels | undefined;
63
- readonly name?: string | undefined;
64
- readonly paging?: Record<string, {
65
- size?: number | undefined;
66
- }> | undefined;
67
- readonly security?: {
68
- readonly allowAnonymous?: boolean | undefined;
69
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
70
- readonly disallowed?: Record<string, string[]> | undefined;
71
- } | undefined;
72
- readonly sign?: boolean | undefined;
73
- readonly storeQueries?: boolean | undefined;
74
- readonly timestamp?: boolean | undefined;
75
- } & import("@xyo-network/module-model").ArchivingModuleConfig & {
76
- schema: "network.xyo.module.config";
77
- } & import("@xyo-network/payload-model").PayloadMetaFields) | (import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadMetaFields & {
78
- accountDerivationPath?: string | undefined;
79
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
80
- readonly labels?: import("@xyo-network/module-model").Labels | undefined;
81
- readonly name?: string | undefined;
82
- readonly paging?: Record<string, {
83
- size?: number | undefined;
84
- }> | undefined;
85
- readonly security?: {
86
- readonly allowAnonymous?: boolean | undefined;
87
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
88
- readonly disallowed?: Record<string, string[]> | undefined;
89
- } | undefined;
90
- readonly sign?: boolean | undefined;
91
- readonly storeQueries?: boolean | undefined;
92
- readonly timestamp?: boolean | undefined;
93
- } & import("@xyo-network/module-model").ArchivingModuleConfig & {
94
12
  schema: "network.xyo.module.config";
95
- }), "schema">, "schema"> & {
96
- schema: string;
97
- }) | (import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadMetaFields & Omit<{
98
- accountDerivationPath?: string | undefined;
99
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
100
- readonly labels?: import("@xyo-network/module-model").Labels | undefined;
101
- readonly name?: string | undefined;
102
- readonly paging?: Record<string, {
103
- size?: number | undefined;
104
- }> | undefined;
105
- readonly security?: {
106
- readonly allowAnonymous?: boolean | undefined;
107
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
108
- readonly disallowed?: Record<string, string[]> | undefined;
109
- } | undefined;
110
- readonly sign?: boolean | undefined;
111
- readonly storeQueries?: boolean | undefined;
112
- readonly timestamp?: boolean | undefined;
113
- } & import("@xyo-network/module-model").ArchivingModuleConfig & {
114
- schema: string;
115
- } & Omit<(import("@xyo-network/payload-model").SchemaFields & object & {
116
- accountDerivationPath?: string | undefined;
117
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
118
- readonly labels?: import("@xyo-network/module-model").Labels | undefined;
119
- readonly name?: string | undefined;
120
- readonly paging?: Record<string, {
121
- size?: number | undefined;
122
- }> | undefined;
123
- readonly security?: {
124
- readonly allowAnonymous?: boolean | undefined;
125
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
126
- readonly disallowed?: Record<string, string[]> | undefined;
127
- } | undefined;
128
- readonly sign?: boolean | undefined;
129
- readonly storeQueries?: boolean | undefined;
130
- readonly timestamp?: boolean | undefined;
131
- } & import("@xyo-network/module-model").ArchivingModuleConfig & {
132
- schema: "network.xyo.module.config";
133
- }) | (import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadMetaFields & {
134
- accountDerivationPath?: string | undefined;
135
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
136
- readonly labels?: import("@xyo-network/module-model").Labels | undefined;
137
- readonly name?: string | undefined;
138
- readonly paging?: Record<string, {
139
- size?: number | undefined;
140
- }> | undefined;
141
- readonly security?: {
142
- readonly allowAnonymous?: boolean | undefined;
143
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
144
- readonly disallowed?: Record<string, string[]> | undefined;
145
- } | undefined;
146
- readonly sign?: boolean | undefined;
147
- readonly storeQueries?: boolean | undefined;
148
- readonly timestamp?: boolean | undefined;
149
- } & import("@xyo-network/module-model").ArchivingModuleConfig & {
150
- schema: "network.xyo.module.config";
151
- } & object) | (import("@xyo-network/payload-model").SchemaFields & object & {
152
- accountDerivationPath?: string | undefined;
153
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
154
- readonly labels?: import("@xyo-network/module-model").Labels | undefined;
155
- readonly name?: string | undefined;
156
- readonly paging?: Record<string, {
157
- size?: number | undefined;
158
- }> | undefined;
159
13
  readonly security?: {
160
14
  readonly allowAnonymous?: boolean | undefined;
161
15
  readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
@@ -164,36 +18,14 @@ export declare const useModuleDetails: (rootModule?: ModuleInstance | null, onFo
164
18
  readonly sign?: boolean | undefined;
165
19
  readonly storeQueries?: boolean | undefined;
166
20
  readonly timestamp?: boolean | undefined;
167
- } & import("@xyo-network/module-model").ArchivingModuleConfig & {
168
- schema: "network.xyo.module.config";
169
- } & import("@xyo-network/payload-model").PayloadMetaFields) | (import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadMetaFields & {
170
- accountDerivationPath?: string | undefined;
171
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
21
+ } & import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/payload-model").SchemaFields & object & {
22
+ readonly archivist?: string | undefined;
172
23
  readonly labels?: import("@xyo-network/module-model").Labels | undefined;
173
24
  readonly name?: string | undefined;
174
25
  readonly paging?: Record<string, {
175
26
  size?: number | undefined;
176
27
  }> | undefined;
177
- readonly security?: {
178
- readonly allowAnonymous?: boolean | undefined;
179
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
180
- readonly disallowed?: Record<string, string[]> | undefined;
181
- } | undefined;
182
- readonly sign?: boolean | undefined;
183
- readonly storeQueries?: boolean | undefined;
184
- readonly timestamp?: boolean | undefined;
185
- } & import("@xyo-network/module-model").ArchivingModuleConfig & {
186
28
  schema: "network.xyo.module.config";
187
- }), "schema">, "schema"> & {
188
- schema: string;
189
- } & object) | (import("@xyo-network/payload-model").SchemaFields & object & Omit<{
190
- accountDerivationPath?: string | undefined;
191
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
192
- readonly labels?: import("@xyo-network/module-model").Labels | undefined;
193
- readonly name?: string | undefined;
194
- readonly paging?: Record<string, {
195
- size?: number | undefined;
196
- }> | undefined;
197
29
  readonly security?: {
198
30
  readonly allowAnonymous?: boolean | undefined;
199
31
  readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
@@ -202,177 +34,10 @@ export declare const useModuleDetails: (rootModule?: ModuleInstance | null, onFo
202
34
  readonly sign?: boolean | undefined;
203
35
  readonly storeQueries?: boolean | undefined;
204
36
  readonly timestamp?: boolean | undefined;
205
- } & import("@xyo-network/module-model").ArchivingModuleConfig & {
206
- schema: string;
207
- } & Omit<(import("@xyo-network/payload-model").SchemaFields & object & {
208
- accountDerivationPath?: string | undefined;
209
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
210
- readonly labels?: import("@xyo-network/module-model").Labels | undefined;
211
- readonly name?: string | undefined;
212
- readonly paging?: Record<string, {
213
- size?: number | undefined;
214
- }> | undefined;
215
- readonly security?: {
216
- readonly allowAnonymous?: boolean | undefined;
217
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
218
- readonly disallowed?: Record<string, string[]> | undefined;
219
- } | undefined;
220
- readonly sign?: boolean | undefined;
221
- readonly storeQueries?: boolean | undefined;
222
- readonly timestamp?: boolean | undefined;
223
- } & import("@xyo-network/module-model").ArchivingModuleConfig & {
224
- schema: "network.xyo.module.config";
225
- }) | (import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadMetaFields & {
226
- accountDerivationPath?: string | undefined;
227
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
228
- readonly labels?: import("@xyo-network/module-model").Labels | undefined;
229
- readonly name?: string | undefined;
230
- readonly paging?: Record<string, {
231
- size?: number | undefined;
232
- }> | undefined;
233
- readonly security?: {
234
- readonly allowAnonymous?: boolean | undefined;
235
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
236
- readonly disallowed?: Record<string, string[]> | undefined;
237
- } | undefined;
238
- readonly sign?: boolean | undefined;
239
- readonly storeQueries?: boolean | undefined;
240
- readonly timestamp?: boolean | undefined;
241
- } & import("@xyo-network/module-model").ArchivingModuleConfig & {
242
- schema: "network.xyo.module.config";
243
- } & object) | (import("@xyo-network/payload-model").SchemaFields & object & {
244
- accountDerivationPath?: string | undefined;
245
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
246
- readonly labels?: import("@xyo-network/module-model").Labels | undefined;
247
- readonly name?: string | undefined;
248
- readonly paging?: Record<string, {
249
- size?: number | undefined;
250
- }> | undefined;
251
- readonly security?: {
252
- readonly allowAnonymous?: boolean | undefined;
253
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
254
- readonly disallowed?: Record<string, string[]> | undefined;
255
- } | undefined;
256
- readonly sign?: boolean | undefined;
257
- readonly storeQueries?: boolean | undefined;
258
- readonly timestamp?: boolean | undefined;
259
- } & import("@xyo-network/module-model").ArchivingModuleConfig & {
260
- schema: "network.xyo.module.config";
261
- } & import("@xyo-network/payload-model").PayloadMetaFields) | (import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadMetaFields & {
262
- accountDerivationPath?: string | undefined;
263
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
264
- readonly labels?: import("@xyo-network/module-model").Labels | undefined;
265
- readonly name?: string | undefined;
266
- readonly paging?: Record<string, {
267
- size?: number | undefined;
268
- }> | undefined;
269
- readonly security?: {
270
- readonly allowAnonymous?: boolean | undefined;
271
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
272
- readonly disallowed?: Record<string, string[]> | undefined;
273
- } | undefined;
274
- readonly sign?: boolean | undefined;
275
- readonly storeQueries?: boolean | undefined;
276
- readonly timestamp?: boolean | undefined;
277
- } & import("@xyo-network/module-model").ArchivingModuleConfig & {
278
- schema: "network.xyo.module.config";
279
- }), "schema">, "schema"> & {
280
- schema: string;
281
- } & import("@xyo-network/payload-model").PayloadMetaFields) | (import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadMetaFields & Omit<{
282
- accountDerivationPath?: string | undefined;
283
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
284
- readonly labels?: import("@xyo-network/module-model").Labels | undefined;
285
- readonly name?: string | undefined;
286
- readonly paging?: Record<string, {
287
- size?: number | undefined;
288
- }> | undefined;
289
- readonly security?: {
290
- readonly allowAnonymous?: boolean | undefined;
291
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
292
- readonly disallowed?: Record<string, string[]> | undefined;
293
- } | undefined;
294
- readonly sign?: boolean | undefined;
295
- readonly storeQueries?: boolean | undefined;
296
- readonly timestamp?: boolean | undefined;
297
- } & import("@xyo-network/module-model").ArchivingModuleConfig & {
298
- schema: string;
299
- } & Omit<(import("@xyo-network/payload-model").SchemaFields & object & {
300
- accountDerivationPath?: string | undefined;
301
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
302
- readonly labels?: import("@xyo-network/module-model").Labels | undefined;
303
- readonly name?: string | undefined;
304
- readonly paging?: Record<string, {
305
- size?: number | undefined;
306
- }> | undefined;
307
- readonly security?: {
308
- readonly allowAnonymous?: boolean | undefined;
309
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
310
- readonly disallowed?: Record<string, string[]> | undefined;
311
- } | undefined;
312
- readonly sign?: boolean | undefined;
313
- readonly storeQueries?: boolean | undefined;
314
- readonly timestamp?: boolean | undefined;
315
- } & import("@xyo-network/module-model").ArchivingModuleConfig & {
316
- schema: "network.xyo.module.config";
317
- }) | (import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadMetaFields & {
318
- accountDerivationPath?: string | undefined;
319
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
320
- readonly labels?: import("@xyo-network/module-model").Labels | undefined;
321
- readonly name?: string | undefined;
322
- readonly paging?: Record<string, {
323
- size?: number | undefined;
324
- }> | undefined;
325
- readonly security?: {
326
- readonly allowAnonymous?: boolean | undefined;
327
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
328
- readonly disallowed?: Record<string, string[]> | undefined;
329
- } | undefined;
330
- readonly sign?: boolean | undefined;
331
- readonly storeQueries?: boolean | undefined;
332
- readonly timestamp?: boolean | undefined;
333
- } & import("@xyo-network/module-model").ArchivingModuleConfig & {
334
- schema: "network.xyo.module.config";
335
- } & object) | (import("@xyo-network/payload-model").SchemaFields & object & {
336
- accountDerivationPath?: string | undefined;
337
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
338
- readonly labels?: import("@xyo-network/module-model").Labels | undefined;
339
- readonly name?: string | undefined;
340
- readonly paging?: Record<string, {
341
- size?: number | undefined;
342
- }> | undefined;
343
- readonly security?: {
344
- readonly allowAnonymous?: boolean | undefined;
345
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
346
- readonly disallowed?: Record<string, string[]> | undefined;
347
- } | undefined;
348
- readonly sign?: boolean | undefined;
349
- readonly storeQueries?: boolean | undefined;
350
- readonly timestamp?: boolean | undefined;
351
- } & import("@xyo-network/module-model").ArchivingModuleConfig & {
352
- schema: "network.xyo.module.config";
353
- } & import("@xyo-network/payload-model").PayloadMetaFields) | (import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadMetaFields & {
354
- accountDerivationPath?: string | undefined;
355
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
356
- readonly labels?: import("@xyo-network/module-model").Labels | undefined;
357
- readonly name?: string | undefined;
358
- readonly paging?: Record<string, {
359
- size?: number | undefined;
360
- }> | undefined;
361
- readonly security?: {
362
- readonly allowAnonymous?: boolean | undefined;
363
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
364
- readonly disallowed?: Record<string, string[]> | undefined;
365
- } | undefined;
366
- readonly sign?: boolean | undefined;
367
- readonly storeQueries?: boolean | undefined;
368
- readonly timestamp?: boolean | undefined;
369
- } & import("@xyo-network/module-model").ArchivingModuleConfig & {
370
- schema: "network.xyo.module.config";
371
- }), "schema">, "schema"> & {
37
+ }, "schema"> & {
372
38
  schema: string;
373
- });
39
+ };
374
40
  ephemeralQueryAccountEnabled?: boolean | undefined;
375
- wallet?: import("@xyo-network/wallet-model").WalletInstance | undefined;
376
41
  }, import("@xyo-network/module-model").ModuleEventData<object>> | null | undefined;
377
42
  onModuleDetails: (address?: string | null) => void;
378
43
  };
@@ -1 +1 @@
1
- {"version":3,"file":"useModuleDetails.d.ts","sourceRoot":"","sources":["../../../../src/hooks/cytoscape/useModuleDetails.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAK1D,eAAO,MAAM,gBAAgB,gBAAiB,cAAc,GAAG,IAAI,kBAAkB,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAyC1D,MAAM,GAAG,IAAI;CAoBjD,CAAA"}
1
+ {"version":3,"file":"useModuleDetails.d.ts","sourceRoot":"","sources":["../../../../src/hooks/cytoscape/useModuleDetails.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAK1D,eAAO,MAAM,gBAAgB,gBAAiB,cAAc,GAAG,IAAI,kBAAkB,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAyC1D,MAAM,GAAG,IAAI;CAoBjD,CAAA"}
@@ -66,12 +66,15 @@ var import_react_module = require("@xyo-network/react-module");
66
66
  var import_jsx_runtime = require("react/jsx-runtime");
67
67
  var ModuleCardParser = ({ module: module2 }) => {
68
68
  switch (true) {
69
- case (0, import_archivist_model.isArchivistInstance)(module2):
69
+ case (0, import_archivist_model.isArchivistInstance)(module2): {
70
70
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_archivist.ArchivistCard, { module: (0, import_archivist_model.asArchivistInstance)(module2) });
71
- case (0, import_diviner_model.isDivinerInstance)(module2):
71
+ }
72
+ case (0, import_diviner_model.isDivinerInstance)(module2): {
72
73
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_module.DivinerCard, { module: (0, import_diviner_model.asDivinerInstance)(module2) });
73
- default:
74
+ }
75
+ default: {
74
76
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_module.ModuleCard, { module: module2 });
77
+ }
75
78
  }
76
79
  };
77
80
 
@@ -112,7 +115,7 @@ var dataUri = "data:image/svg+xml,";
112
115
  var encodeSvg = (reactElement, color) => {
113
116
  const svgString = (0, import_server.renderToStaticMarkup)(reactElement);
114
117
  const doc = new DOMParser().parseFromString(svgString, "text/html");
115
- const svgElement = doc.getElementsByTagName("svg")[0];
118
+ const svgElement = doc.querySelectorAll("svg")[0];
116
119
  if (svgElement) {
117
120
  svgElement.setAttribute("xmlns", "http://www.w3.org/2000/svg");
118
121
  svgElement.setAttribute("height", "100");
@@ -181,9 +184,9 @@ var parseModuleType = (module2) => {
181
184
  };
182
185
 
183
186
  // src/Cytoscape/CytoscapeElements.ts
184
- var CytoscapeElements = class _CytoscapeElements {
185
- static MaxNameLength = 20;
186
- static buildEdge(rootNode, newNode) {
187
+ var CytoscapeElements = {
188
+ MaxNameLength: 20,
189
+ buildEdge(rootNode, newNode) {
187
190
  return {
188
191
  data: {
189
192
  id: `${rootNode.data.id}/${newNode.data.id}`,
@@ -191,27 +194,28 @@ var CytoscapeElements = class _CytoscapeElements {
191
194
  target: newNode.data.id
192
195
  }
193
196
  };
194
- }
195
- static async buildElements(module2) {
196
- const newRootNode = _CytoscapeElements.buildRootNode(module2);
197
+ },
198
+ async buildElements(module2) {
199
+ const newRootNode = CytoscapeElements.buildRootNode(module2);
197
200
  const newElements = [newRootNode];
198
201
  try {
199
- const childElements = await _CytoscapeElements.recurseNodes(module2);
200
- childElements?.forEach((module3) => {
201
- const newNode = _CytoscapeElements.buildNode(module3);
202
- newElements.push(newNode);
203
- const newEdge = _CytoscapeElements.buildEdge(newRootNode, newNode);
204
- newElements.push(newEdge);
205
- });
202
+ const childElements = await CytoscapeElements.recurseNodes(module2);
203
+ if (childElements)
204
+ for (const module3 of childElements) {
205
+ const newNode = CytoscapeElements.buildNode(module3);
206
+ newElements.push(newNode);
207
+ const newEdge = CytoscapeElements.buildEdge(newRootNode, newNode);
208
+ newElements.push(newEdge);
209
+ }
206
210
  return newElements;
207
211
  } catch (e) {
208
212
  console.error("error resolving modules", e);
209
213
  return [];
210
214
  }
211
- }
212
- static buildNode(module2, properties, classes) {
215
+ },
216
+ buildNode(module2, properties, classes) {
213
217
  const { address, config } = module2;
214
- const normalizedName = config.name ?? address.substring(0, 8);
218
+ const normalizedName = config.name ?? address.slice(0, 8);
215
219
  return {
216
220
  classes,
217
221
  data: {
@@ -222,18 +226,18 @@ var CytoscapeElements = class _CytoscapeElements {
222
226
  ...properties
223
227
  }
224
228
  };
225
- }
226
- static buildRootNode = (module2) => {
227
- return _CytoscapeElements.buildNode(module2, {}, ["activeNode"]);
228
- };
229
- static normalizeName(name) {
229
+ },
230
+ buildRootNode: (module2) => {
231
+ return CytoscapeElements.buildNode(module2, {}, ["activeNode"]);
232
+ },
233
+ normalizeName(name) {
230
234
  if (!name)
231
235
  return;
232
236
  if (name.length > this.MaxNameLength)
233
- return `${name.substring(0, 20)}...`;
237
+ return `${name.slice(0, 20)}...`;
234
238
  return name;
235
- }
236
- static async recurseNodes(module2, maxTraversals = 1) {
239
+ },
240
+ async recurseNodes(module2, maxTraversals = 1) {
237
241
  let localDepth = 0;
238
242
  const childModules = [];
239
243
  const traverse = async (nestedNode) => {
@@ -325,8 +329,8 @@ var useCytoscapeElements = (module2) => {
325
329
  [module2]
326
330
  );
327
331
  (0, import_react2.useEffect)(() => {
328
- let attachedListener = void 0;
329
- let detachedListener = void 0;
332
+ let attachedListener;
333
+ let detachedListener;
330
334
  if (module2 && (0, import_node_model3.isNodeInstance)(module2)) {
331
335
  attachedListener = module2.on("moduleAttached", async () => {
332
336
  const newElements = await CytoscapeElements.buildElements(module2) ?? [];
@@ -493,7 +497,7 @@ var useModuleDetails = (rootModule, onFoundModule) => {
493
497
  return null;
494
498
  if (moduleAddress && rootModule) {
495
499
  const foundModule2 = await rootModule.resolve(moduleAddress);
496
- return foundModule2 ? foundModule2 : null;
500
+ return foundModule2 ?? null;
497
501
  }
498
502
  }, [moduleAddress, rootModule]);
499
503
  (0, import_react10.useEffect)(() => {