@xyo-network/react-node-renderer 7.4.2 → 7.5.1
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/browser/Cytoscape/CytoscapeElements.d.ts.map +1 -1
- package/dist/browser/components/lib/RelationalGraphProps.d.ts +1 -1
- package/dist/browser/components/lib/RelationalGraphProps.d.ts.map +1 -1
- package/dist/browser/components/module/graph/GraphFlexBox.stories.d.ts +3 -3
- package/dist/browser/components/module/graph/GraphFlexBox.stories.d.ts.map +1 -1
- package/dist/browser/components/module/graph/Popper.d.ts +2 -2
- package/dist/browser/components/module/graph/Popper.d.ts.map +1 -1
- package/dist/browser/components/module/graph/node/hooks/useNodeElement.d.ts +1 -1
- package/dist/browser/components/relational/graph/Graph.d.ts.map +1 -1
- package/dist/browser/components/relational/graph/Graph.stories.d.ts +6 -6
- package/dist/browser/components/relational/graph/Graph.stories.d.ts.map +1 -1
- package/dist/browser/components/relational/graph/GraphCola.stories.d.ts +6 -6
- package/dist/browser/components/relational/graph/GraphCola.stories.d.ts.map +1 -1
- package/dist/browser/components/relational/graph/GraphCoseBilkent.stories.d.ts +6 -6
- package/dist/browser/components/relational/graph/GraphCoseBilkent.stories.d.ts.map +1 -1
- package/dist/browser/components/relational/graph/GraphDagre.stories.d.ts +6 -6
- package/dist/browser/components/relational/graph/GraphDagre.stories.d.ts.map +1 -1
- package/dist/browser/components/relational/graph/GraphEuler.stories.d.ts +6 -6
- package/dist/browser/components/relational/graph/GraphEuler.stories.d.ts.map +1 -1
- package/dist/browser/components/relational/graph/GraphEvents.stories.d.ts +1 -1
- package/dist/browser/components/relational/graph/GraphEvents.stories.d.ts.map +1 -1
- package/dist/browser/index.mjs +423 -365
- package/dist/browser/index.mjs.map +1 -1
- package/package.json +47 -47
- package/src/Cytoscape/CytoscapeElements.ts +1 -2
- package/src/Cytoscape/lib/encodeSvg.ts +1 -1
- package/src/components/lib/RelationalGraphProps.ts +1 -1
- package/src/components/relational/graph/Graph.stories.tsx +3 -2
- package/src/components/relational/graph/Graph.tsx +2 -3
- package/src/components/relational/graph/GraphCola.stories.tsx +3 -2
- package/src/components/relational/graph/GraphCoseBilkent.stories.tsx +3 -2
- package/src/components/relational/graph/GraphEuler.stories.tsx +3 -2
- package/src/hooks/cytoscape/useCytoscapeOptions.ts +1 -1
- package/src/hooks/cytoscape/useModuleDetails.tsx +1 -1
|
@@ -6,6 +6,7 @@ import { useAsyncEffect } from '@xylabs/react-async-effect'
|
|
|
6
6
|
import { MemoryArchivist, MemoryArchivistConfigSchema } from '@xyo-network/archivist-memory'
|
|
7
7
|
import { HttpBridge, HttpBridgeConfigSchema } from '@xyo-network/bridge-http'
|
|
8
8
|
import { IdWitness, IdWitnessConfigSchema } from '@xyo-network/id-plugin'
|
|
9
|
+
import type { AttachableModuleInstance } from '@xyo-network/module-model'
|
|
9
10
|
import { MemoryNode } from '@xyo-network/node-memory'
|
|
10
11
|
import { NodeConfigSchema } from '@xyo-network/node-model'
|
|
11
12
|
import {
|
|
@@ -127,7 +128,7 @@ const TemplateAttachDetach: StoryFn<typeof NodeRelationalGraphFlexBox> = (props)
|
|
|
127
128
|
const handleAddWitness = async () => {
|
|
128
129
|
if (node && idWitness) {
|
|
129
130
|
const memoryNode = node.deref() as MemoryNode | undefined
|
|
130
|
-
await memoryNode?.register(idWitness)
|
|
131
|
+
await memoryNode?.register(idWitness as unknown as AttachableModuleInstance)
|
|
131
132
|
await memoryNode?.attach(idWitness.address, true)
|
|
132
133
|
}
|
|
133
134
|
}
|
|
@@ -136,7 +137,7 @@ const TemplateAttachDetach: StoryFn<typeof NodeRelationalGraphFlexBox> = (props)
|
|
|
136
137
|
if (node && idWitness) {
|
|
137
138
|
const memoryNode = node.deref() as MemoryNode | undefined
|
|
138
139
|
if (((await memoryNode?.registered()) ?? []).includes(idWitness.address)) {
|
|
139
|
-
await memoryNode?.unregister(idWitness)
|
|
140
|
+
await memoryNode?.unregister(idWitness as unknown as AttachableModuleInstance)
|
|
140
141
|
}
|
|
141
142
|
}
|
|
142
143
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { usePromise } from '@xylabs/react-promise'
|
|
2
2
|
import {
|
|
3
3
|
isDefined, isDefinedNotNull, isTruthy,
|
|
4
|
-
} from '@xylabs/
|
|
4
|
+
} from '@xylabs/sdk-js'
|
|
5
5
|
import type { ModuleInstance } from '@xyo-network/module-model'
|
|
6
6
|
import {
|
|
7
7
|
useCallback, useEffect, useState,
|