@xyo-network/react-node-renderer 6.0.0 → 6.1.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/components/module/CardParser.stories.d.ts +8 -0
- package/dist/browser/components/module/CardParser.stories.d.ts.map +1 -0
- package/dist/browser/components/module/graph/GraphFlexBox.stories.d.ts +8 -0
- package/dist/browser/components/module/graph/GraphFlexBox.stories.d.ts.map +1 -0
- package/dist/browser/components/relational/graph/Graph.stories.d.ts +11 -0
- package/dist/browser/components/relational/graph/Graph.stories.d.ts.map +1 -0
- package/dist/browser/components/relational/graph/GraphCola.stories.d.ts +11 -0
- package/dist/browser/components/relational/graph/GraphCola.stories.d.ts.map +1 -0
- package/dist/browser/components/relational/graph/GraphCoseBilkent.stories.d.ts +11 -0
- package/dist/browser/components/relational/graph/GraphCoseBilkent.stories.d.ts.map +1 -0
- package/dist/browser/components/relational/graph/GraphDagre.stories.d.ts +11 -0
- package/dist/browser/components/relational/graph/GraphDagre.stories.d.ts.map +1 -0
- package/dist/browser/components/relational/graph/GraphEuler.stories.d.ts +11 -0
- package/dist/browser/components/relational/graph/GraphEuler.stories.d.ts.map +1 -0
- package/dist/browser/components/relational/graph/GraphEvents.stories.d.ts +6 -0
- package/dist/browser/components/relational/graph/GraphEvents.stories.d.ts.map +1 -0
- package/dist/{types → browser}/hooks/cytoscape/useModuleDetails.d.ts +1 -1
- package/dist/browser/index.d.ts +158 -0
- package/dist/browser/index.mjs.map +1 -1
- package/package.json +38 -37
- package/src/hooks/cytoscape/elements/useCytoscapeElements.ts +1 -1
- package/dist/types/index.d.ts +0 -5
- /package/dist/{types → browser}/Cytoscape/CytoscapeElements.d.ts +0 -0
- /package/dist/{types → browser}/Cytoscape/CytoscapeElements.d.ts.map +0 -0
- /package/dist/{types → browser}/Cytoscape/CytoscapeIcons.d.ts +0 -0
- /package/dist/{types → browser}/Cytoscape/CytoscapeIcons.d.ts.map +0 -0
- /package/dist/{types → browser}/Cytoscape/CytoscapeStyles.d.ts +0 -0
- /package/dist/{types → browser}/Cytoscape/CytoscapeStyles.d.ts.map +0 -0
- /package/dist/{types → browser}/Cytoscape/index.d.ts +0 -0
- /package/dist/{types → browser}/Cytoscape/index.d.ts.map +0 -0
- /package/dist/{types → browser}/Cytoscape/lib/CyNodeModuleTypes.d.ts +0 -0
- /package/dist/{types → browser}/Cytoscape/lib/CyNodeModuleTypes.d.ts.map +0 -0
- /package/dist/{types → browser}/Cytoscape/lib/encodeSvg.d.ts +0 -0
- /package/dist/{types → browser}/Cytoscape/lib/encodeSvg.d.ts.map +0 -0
- /package/dist/{types → browser}/Cytoscape/lib/iconMap.d.ts +0 -0
- /package/dist/{types → browser}/Cytoscape/lib/iconMap.d.ts.map +0 -0
- /package/dist/{types → browser}/Cytoscape/lib/index.d.ts +0 -0
- /package/dist/{types → browser}/Cytoscape/lib/index.d.ts.map +0 -0
- /package/dist/{types → browser}/Cytoscape/lib/layout/ColaLayout.d.ts +0 -0
- /package/dist/{types → browser}/Cytoscape/lib/layout/ColaLayout.d.ts.map +0 -0
- /package/dist/{types → browser}/Cytoscape/lib/layout/ConcentricLayout.d.ts +0 -0
- /package/dist/{types → browser}/Cytoscape/lib/layout/ConcentricLayout.d.ts.map +0 -0
- /package/dist/{types → browser}/Cytoscape/lib/layout/index.d.ts +0 -0
- /package/dist/{types → browser}/Cytoscape/lib/layout/index.d.ts.map +0 -0
- /package/dist/{types → browser}/Cytoscape/lib/parseModuleType.d.ts +0 -0
- /package/dist/{types → browser}/Cytoscape/lib/parseModuleType.d.ts.map +0 -0
- /package/dist/{types → browser}/components/cytoscape-extensions/WithExtensions.d.ts +0 -0
- /package/dist/{types → browser}/components/cytoscape-extensions/WithExtensions.d.ts.map +0 -0
- /package/dist/{types → browser}/components/cytoscape-extensions/index.d.ts +0 -0
- /package/dist/{types → browser}/components/cytoscape-extensions/index.d.ts.map +0 -0
- /package/dist/{types → browser}/components/index.d.ts +0 -0
- /package/dist/{types → browser}/components/index.d.ts.map +0 -0
- /package/dist/{types → browser}/components/lib/RelationalGraphProps.d.ts +0 -0
- /package/dist/{types → browser}/components/lib/RelationalGraphProps.d.ts.map +0 -0
- /package/dist/{types → browser}/components/lib/index.d.ts +0 -0
- /package/dist/{types → browser}/components/lib/index.d.ts.map +0 -0
- /package/dist/{types → browser}/components/module/CardParser.d.ts +0 -0
- /package/dist/{types → browser}/components/module/CardParser.d.ts.map +0 -0
- /package/dist/{types → browser}/components/module/graph/DetailsFlexbox.d.ts +0 -0
- /package/dist/{types → browser}/components/module/graph/DetailsFlexbox.d.ts.map +0 -0
- /package/dist/{types → browser}/components/module/graph/GraphFlexBox.d.ts +0 -0
- /package/dist/{types → browser}/components/module/graph/GraphFlexBox.d.ts.map +0 -0
- /package/dist/{types → browser}/components/module/graph/Popper.d.ts +0 -0
- /package/dist/{types → browser}/components/module/graph/Popper.d.ts.map +0 -0
- /package/dist/{types → browser}/components/module/graph/index.d.ts +0 -0
- /package/dist/{types → browser}/components/module/graph/index.d.ts.map +0 -0
- /package/dist/{types → browser}/components/module/graph/node/Hover.d.ts +0 -0
- /package/dist/{types → browser}/components/module/graph/node/Hover.d.ts.map +0 -0
- /package/dist/{types → browser}/components/module/graph/node/hooks/index.d.ts +0 -0
- /package/dist/{types → browser}/components/module/graph/node/hooks/index.d.ts.map +0 -0
- /package/dist/{types → browser}/components/module/graph/node/hooks/useNodeElement.d.ts +0 -0
- /package/dist/{types → browser}/components/module/graph/node/hooks/useNodeElement.d.ts.map +0 -0
- /package/dist/{types → browser}/components/module/graph/node/index.d.ts +0 -0
- /package/dist/{types → browser}/components/module/graph/node/index.d.ts.map +0 -0
- /package/dist/{types → browser}/components/module/index.d.ts +0 -0
- /package/dist/{types → browser}/components/module/index.d.ts.map +0 -0
- /package/dist/{types → browser}/components/relational/graph/Graph.d.ts +0 -0
- /package/dist/{types → browser}/components/relational/graph/Graph.d.ts.map +0 -0
- /package/dist/{types → browser}/components/relational/graph/ProvidedNodeRenderer.d.ts +0 -0
- /package/dist/{types → browser}/components/relational/graph/ProvidedNodeRenderer.d.ts.map +0 -0
- /package/dist/{types → browser}/components/relational/graph/index.d.ts +0 -0
- /package/dist/{types → browser}/components/relational/graph/index.d.ts.map +0 -0
- /package/dist/{types → browser}/components/relational/graph/story/TestData.d.ts +0 -0
- /package/dist/{types → browser}/components/relational/graph/story/TestData.d.ts.map +0 -0
- /package/dist/{types → browser}/components/relational/graph/story/index.d.ts +0 -0
- /package/dist/{types → browser}/components/relational/graph/story/index.d.ts.map +0 -0
- /package/dist/{types → browser}/components/relational/index.d.ts +0 -0
- /package/dist/{types → browser}/components/relational/index.d.ts.map +0 -0
- /package/dist/{types → browser}/contexts/CytoscapeInstance/Context.d.ts +0 -0
- /package/dist/{types → browser}/contexts/CytoscapeInstance/Context.d.ts.map +0 -0
- /package/dist/{types → browser}/contexts/CytoscapeInstance/Provider.d.ts +0 -0
- /package/dist/{types → browser}/contexts/CytoscapeInstance/Provider.d.ts.map +0 -0
- /package/dist/{types → browser}/contexts/CytoscapeInstance/State.d.ts +0 -0
- /package/dist/{types → browser}/contexts/CytoscapeInstance/State.d.ts.map +0 -0
- /package/dist/{types → browser}/contexts/CytoscapeInstance/index.d.ts +0 -0
- /package/dist/{types → browser}/contexts/CytoscapeInstance/index.d.ts.map +0 -0
- /package/dist/{types → browser}/contexts/CytoscapeInstance/use.d.ts +0 -0
- /package/dist/{types → browser}/contexts/CytoscapeInstance/use.d.ts.map +0 -0
- /package/dist/{types → browser}/contexts/index.d.ts +0 -0
- /package/dist/{types → browser}/contexts/index.d.ts.map +0 -0
- /package/dist/{types → browser}/hooks/cytoscape/elements/index.d.ts +0 -0
- /package/dist/{types → browser}/hooks/cytoscape/elements/index.d.ts.map +0 -0
- /package/dist/{types → browser}/hooks/cytoscape/elements/useCytoscapeElements.d.ts +0 -0
- /package/dist/{types → browser}/hooks/cytoscape/elements/useCytoscapeElements.d.ts.map +0 -0
- /package/dist/{types → browser}/hooks/cytoscape/elements/useElements.d.ts +0 -0
- /package/dist/{types → browser}/hooks/cytoscape/elements/useElements.d.ts.map +0 -0
- /package/dist/{types → browser}/hooks/cytoscape/elements/useHoveredNode.d.ts +0 -0
- /package/dist/{types → browser}/hooks/cytoscape/elements/useHoveredNode.d.ts.map +0 -0
- /package/dist/{types → browser}/hooks/cytoscape/elements/useNewElements.d.ts +0 -0
- /package/dist/{types → browser}/hooks/cytoscape/elements/useNewElements.d.ts.map +0 -0
- /package/dist/{types → browser}/hooks/cytoscape/elements/useRenderNewElements.d.ts +0 -0
- /package/dist/{types → browser}/hooks/cytoscape/elements/useRenderNewElements.d.ts.map +0 -0
- /package/dist/{types → browser}/hooks/cytoscape/elements/useSelectedElement.d.ts +0 -0
- /package/dist/{types → browser}/hooks/cytoscape/elements/useSelectedElement.d.ts.map +0 -0
- /package/dist/{types → browser}/hooks/cytoscape/index.d.ts +0 -0
- /package/dist/{types → browser}/hooks/cytoscape/index.d.ts.map +0 -0
- /package/dist/{types → browser}/hooks/cytoscape/useCytoscapeOptions.d.ts +0 -0
- /package/dist/{types → browser}/hooks/cytoscape/useCytoscapeOptions.d.ts.map +0 -0
- /package/dist/{types → browser}/hooks/cytoscape/useCytoscapeStyle.d.ts +0 -0
- /package/dist/{types → browser}/hooks/cytoscape/useCytoscapeStyle.d.ts.map +0 -0
- /package/dist/{types → browser}/hooks/cytoscape/useIcons.d.ts +0 -0
- /package/dist/{types → browser}/hooks/cytoscape/useIcons.d.ts.map +0 -0
- /package/dist/{types → browser}/hooks/cytoscape/useModuleDetails.d.ts.map +0 -0
- /package/dist/{types → browser}/hooks/cytoscape/useRelationalGraphOptions.d.ts +0 -0
- /package/dist/{types → browser}/hooks/cytoscape/useRelationalGraphOptions.d.ts.map +0 -0
- /package/dist/{types → browser}/hooks/index.d.ts +0 -0
- /package/dist/{types → browser}/hooks/index.d.ts.map +0 -0
- /package/dist/{types → browser}/index.d.ts.map +0 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { ModuleCardParser } from './CardParser.tsx';
|
|
3
|
+
declare const meta: Meta<typeof ModuleCardParser>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof ModuleCardParser>;
|
|
6
|
+
export declare const WithArchivist: Story;
|
|
7
|
+
export declare const WithWitness: Story;
|
|
8
|
+
//# sourceMappingURL=CardParser.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CardParser.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/module/CardParser.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAK3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAEnD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,gBAAgB,CAIvC,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAE9C,eAAO,MAAM,aAAa,EAAE,KAa3B,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,KAIzB,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Meta } from '@storybook/react-vite';
|
|
2
|
+
declare const _default: Meta;
|
|
3
|
+
export default _default;
|
|
4
|
+
declare const Default: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./GraphFlexBox.tsx").ModuleGraphFlexBoxProps>;
|
|
5
|
+
declare const WithProvidedNode: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./GraphFlexBox.tsx").ModuleGraphFlexBoxProps>;
|
|
6
|
+
declare const WithDisabledDetails: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./GraphFlexBox.tsx").ModuleGraphFlexBoxProps>;
|
|
7
|
+
export { Default, WithDisabledDetails, WithProvidedNode, };
|
|
8
|
+
//# sourceMappingURL=GraphFlexBox.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GraphFlexBox.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/module/graph/GraphFlexBox.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACC,IAAI,EAChB,MAAM,uBAAuB,CAAA;wBA2EzB,IAAI;AAHT,wBAGS;AAyBT,QAAA,MAAM,OAAO,wJAAoB,CAAA;AAIjC,QAAA,MAAM,gBAAgB,wJAAsC,CAAA;AAI5D,QAAA,MAAM,mBAAmB,wJAAsC,CAAA;AAI/D,OAAO,EACL,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,GAC/C,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Meta } from '@storybook/react-vite';
|
|
2
|
+
declare const _default: Meta;
|
|
3
|
+
export default _default;
|
|
4
|
+
declare const Default: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("../../index.ts").NodeRelationalGraphProps>;
|
|
5
|
+
declare const WithData: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("../../index.ts").NodeRelationalGraphProps>;
|
|
6
|
+
declare const WithDescribe: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("../../index.ts").NodeRelationalGraphProps>;
|
|
7
|
+
declare const WithCustomAddress: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("../../index.ts").NodeRelationalGraphProps>;
|
|
8
|
+
declare const WithAttachDetach: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("../../index.ts").NodeRelationalGraphProps>;
|
|
9
|
+
declare const WithProvidedNodeRenderer: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./ProvidedNodeRenderer.tsx").ProvidedNodeRendererProps>;
|
|
10
|
+
export { Default, WithAttachDetach, WithCustomAddress, WithData, WithDescribe, WithProvidedNodeRenderer, };
|
|
11
|
+
//# sourceMappingURL=Graph.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Graph.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/relational/graph/Graph.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACC,IAAI,EAChB,MAAM,uBAAuB,CAAA;wBAmFzB,IAAI;AAHT,wBAGS;AA0FT,QAAA,MAAM,OAAO,qJAAoB,CAAA;AAGjC,QAAA,MAAM,QAAQ,qJAAoB,CAAA;AAGlC,QAAA,MAAM,YAAY,qJAA4B,CAAA;AAI9C,QAAA,MAAM,iBAAiB,qJAAiC,CAAA;AAIxD,QAAA,MAAM,gBAAgB,qJAAgC,CAAA;AAItD,QAAA,MAAM,wBAAwB,kKAAwC,CAAA;AAItE,OAAO,EACL,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,QAAQ,EAAE,YAAY,EAAE,wBAAwB,GAC/F,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Meta } from '@storybook/react-vite';
|
|
2
|
+
declare const _default: Meta;
|
|
3
|
+
export default _default;
|
|
4
|
+
declare const Default: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("../../index.ts").NodeRelationalGraphProps>;
|
|
5
|
+
declare const WithData: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("../../index.ts").NodeRelationalGraphProps>;
|
|
6
|
+
declare const WithDescribe: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("../../index.ts").NodeRelationalGraphProps>;
|
|
7
|
+
declare const WithCustomAddress: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("../../index.ts").NodeRelationalGraphProps>;
|
|
8
|
+
declare const WithAttachDetach: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("../../index.ts").NodeRelationalGraphProps>;
|
|
9
|
+
declare const WithProvidedNodeRenderer: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./ProvidedNodeRenderer.tsx").ProvidedNodeRendererProps>;
|
|
10
|
+
export { Default, WithAttachDetach, WithCustomAddress, WithData, WithDescribe, WithProvidedNodeRenderer, };
|
|
11
|
+
//# sourceMappingURL=GraphCola.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GraphCola.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/relational/graph/GraphCola.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACC,IAAI,EAChB,MAAM,uBAAuB,CAAA;wBAoFzB,IAAI;AAHT,wBAGS;AA0ET,QAAA,MAAM,OAAO,qJAAoB,CAAA;AAGjC,QAAA,MAAM,QAAQ,qJAAoB,CAAA;AAGlC,QAAA,MAAM,YAAY,qJAA4B,CAAA;AAI9C,QAAA,MAAM,iBAAiB,qJAAiC,CAAA;AAIxD,QAAA,MAAM,gBAAgB,qJAAgC,CAAA;AAItD,QAAA,MAAM,wBAAwB,kKAAwC,CAAA;AAItE,OAAO,EACL,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,QAAQ,EAAE,YAAY,EAAE,wBAAwB,GAC/F,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Meta } from '@storybook/react-vite';
|
|
2
|
+
declare const _default: Meta;
|
|
3
|
+
export default _default;
|
|
4
|
+
declare const Default: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("../../index.ts").NodeRelationalGraphProps>;
|
|
5
|
+
declare const WithData: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("../../index.ts").NodeRelationalGraphProps>;
|
|
6
|
+
declare const WithDescribe: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("../../index.ts").NodeRelationalGraphProps>;
|
|
7
|
+
declare const WithCustomAddress: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("../../index.ts").NodeRelationalGraphProps>;
|
|
8
|
+
declare const WithAttachDetach: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("../../index.ts").NodeRelationalGraphProps>;
|
|
9
|
+
declare const WithProvidedNodeRenderer: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./ProvidedNodeRenderer.tsx").ProvidedNodeRendererProps>;
|
|
10
|
+
export { Default, WithAttachDetach, WithCustomAddress, WithData, WithDescribe, WithProvidedNodeRenderer, };
|
|
11
|
+
//# sourceMappingURL=GraphCoseBilkent.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GraphCoseBilkent.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/relational/graph/GraphCoseBilkent.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACC,IAAI,EAChB,MAAM,uBAAuB,CAAA;wBAoFzB,IAAI;AAHT,wBAGS;AAyET,QAAA,MAAM,OAAO,qJAAoB,CAAA;AAGjC,QAAA,MAAM,QAAQ,qJAAoB,CAAA;AAGlC,QAAA,MAAM,YAAY,qJAA4B,CAAA;AAI9C,QAAA,MAAM,iBAAiB,qJAAiC,CAAA;AAIxD,QAAA,MAAM,gBAAgB,qJAAgC,CAAA;AAItD,QAAA,MAAM,wBAAwB,kKAAwC,CAAA;AAItE,OAAO,EACL,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,QAAQ,EAAE,YAAY,EAAE,wBAAwB,GAC/F,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Meta } from '@storybook/react-vite';
|
|
2
|
+
declare const _default: Meta;
|
|
3
|
+
export default _default;
|
|
4
|
+
declare const Default: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("../../index.ts").NodeRelationalGraphProps>;
|
|
5
|
+
declare const WithData: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("../../index.ts").NodeRelationalGraphProps>;
|
|
6
|
+
declare const WithDescribe: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("../../index.ts").NodeRelationalGraphProps>;
|
|
7
|
+
declare const WithCustomAddress: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("../../index.ts").NodeRelationalGraphProps>;
|
|
8
|
+
declare const WithAttachDetach: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("../../index.ts").NodeRelationalGraphProps>;
|
|
9
|
+
declare const WithProvidedNodeRenderer: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./ProvidedNodeRenderer.tsx").ProvidedNodeRendererProps>;
|
|
10
|
+
export { Default, WithAttachDetach, WithCustomAddress, WithData, WithDescribe, WithProvidedNodeRenderer, };
|
|
11
|
+
//# sourceMappingURL=GraphDagre.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GraphDagre.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/relational/graph/GraphDagre.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACC,IAAI,EAChB,MAAM,uBAAuB,CAAA;wBAoFzB,IAAI;AAHT,wBAGS;AA0ET,QAAA,MAAM,OAAO,qJAAoB,CAAA;AAGjC,QAAA,MAAM,QAAQ,qJAAoB,CAAA;AAGlC,QAAA,MAAM,YAAY,qJAA4B,CAAA;AAI9C,QAAA,MAAM,iBAAiB,qJAAiC,CAAA;AAIxD,QAAA,MAAM,gBAAgB,qJAAgC,CAAA;AAItD,QAAA,MAAM,wBAAwB,kKAAwC,CAAA;AAItE,OAAO,EACL,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,QAAQ,EAAE,YAAY,EAAE,wBAAwB,GAC/F,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Meta } from '@storybook/react-vite';
|
|
2
|
+
declare const _default: Meta;
|
|
3
|
+
export default _default;
|
|
4
|
+
declare const Default: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("../../index.ts").NodeRelationalGraphProps>;
|
|
5
|
+
declare const WithData: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("../../index.ts").NodeRelationalGraphProps>;
|
|
6
|
+
declare const WithDescribe: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("../../index.ts").NodeRelationalGraphProps>;
|
|
7
|
+
declare const WithCustomAddress: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("../../index.ts").NodeRelationalGraphProps>;
|
|
8
|
+
declare const WithAttachDetach: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("../../index.ts").NodeRelationalGraphProps>;
|
|
9
|
+
declare const WithProvidedNodeRenderer: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./ProvidedNodeRenderer.tsx").ProvidedNodeRendererProps>;
|
|
10
|
+
export { Default, WithAttachDetach, WithCustomAddress, WithData, WithDescribe, WithProvidedNodeRenderer, };
|
|
11
|
+
//# sourceMappingURL=GraphEuler.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GraphEuler.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/relational/graph/GraphEuler.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACC,IAAI,EAChB,MAAM,uBAAuB,CAAA;wBAqFzB,IAAI;AAHT,wBAGS;AAyET,QAAA,MAAM,OAAO,qJAAoB,CAAA;AAGjC,QAAA,MAAM,QAAQ,qJAAoB,CAAA;AAGlC,QAAA,MAAM,YAAY,qJAA4B,CAAA;AAI9C,QAAA,MAAM,iBAAiB,qJAAiC,CAAA;AAIxD,QAAA,MAAM,gBAAgB,qJAAgC,CAAA;AAItD,QAAA,MAAM,wBAAwB,kKAAwC,CAAA;AAItE,OAAO,EACL,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,QAAQ,EAAE,YAAY,EAAE,wBAAwB,GAC/F,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Meta } from '@storybook/react-vite';
|
|
2
|
+
declare const _default: Meta;
|
|
3
|
+
export default _default;
|
|
4
|
+
declare const Default: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("../../index.ts").NodeRelationalGraphProps>;
|
|
5
|
+
export { Default };
|
|
6
|
+
//# sourceMappingURL=GraphEvents.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GraphEvents.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/relational/graph/GraphEvents.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACC,IAAI,EAChB,MAAM,uBAAuB,CAAA;wBA+CzB,IAAI;AAHT,wBAGS;AA4BT,QAAA,MAAM,OAAO,qJAAoB,CAAA;AAIjC,OAAO,EAAE,OAAO,EAAE,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ModuleInstance } from '@xyo-network/module-model';
|
|
2
2
|
export declare const useModuleDetails: (rootModule?: WeakRef<ModuleInstance> | null, onFoundModule?: () => void) => {
|
|
3
|
-
mod: ModuleInstance<import("@xyo-network/module-model").ModuleParams<import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/module-model").ModuleConfig
|
|
3
|
+
mod: ModuleInstance<import("@xyo-network/module-model").ModuleParams<import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/module-model").ModuleConfig<object, void>>>, import("@xyo-network/module-model").ModuleEventData<object>> | null | undefined;
|
|
4
4
|
onModuleDetails: (address?: string | null) => void;
|
|
5
5
|
};
|
|
6
6
|
//# sourceMappingURL=useModuleDetails.d.ts.map
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { Address } from '@xylabs/hex';
|
|
2
|
+
import { FlexBoxProps } from '@xylabs/react-flexbox';
|
|
3
|
+
import { NodeInstance } from '@xyo-network/node-model';
|
|
4
|
+
import * as cytoscape from 'cytoscape';
|
|
5
|
+
import { CytoscapeOptions, Core, ElementDefinition, LayoutOptions, StylesheetCSS } from 'cytoscape';
|
|
6
|
+
import * as react from 'react';
|
|
7
|
+
import react__default, { PropsWithChildren, ReactNode, Dispatch, SetStateAction, ReactElement } from 'react';
|
|
8
|
+
import * as _xyo_network_module_model from '@xyo-network/module-model';
|
|
9
|
+
import { ModuleInstance } from '@xyo-network/module-model';
|
|
10
|
+
import { AccountInstance } from '@xyo-network/account-model';
|
|
11
|
+
import * as _xylabs_react_shared from '@xylabs/react-shared';
|
|
12
|
+
import { ContextExState } from '@xylabs/react-shared';
|
|
13
|
+
import { SvgIconComponent } from '@mui/icons-material';
|
|
14
|
+
|
|
15
|
+
interface NodeRelationalGraphProps extends PropsWithChildren<FlexBoxProps> {
|
|
16
|
+
actions?: ReactNode;
|
|
17
|
+
detail?: ReactNode;
|
|
18
|
+
layout?: 'dagre' | 'euler' | 'cose-bilkent' | 'cola';
|
|
19
|
+
layoutOptions?: object;
|
|
20
|
+
node?: WeakRef<NodeInstance>;
|
|
21
|
+
onHover?: (address?: Address) => void;
|
|
22
|
+
options?: CytoscapeOptions;
|
|
23
|
+
showDetails?: boolean;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
interface ModuleCardParserProps {
|
|
27
|
+
mod?: ModuleInstance;
|
|
28
|
+
}
|
|
29
|
+
declare const ModuleCardParser: react__default.FC<ModuleCardParserProps>;
|
|
30
|
+
|
|
31
|
+
interface ModuleGraphFlexBoxProps extends FlexBoxProps {
|
|
32
|
+
disableModuleDetails?: boolean;
|
|
33
|
+
hideActions?: boolean;
|
|
34
|
+
layout?: 'dagre' | 'euler' | 'cose-bilkent' | 'cola';
|
|
35
|
+
layoutOptions?: object;
|
|
36
|
+
rootModule?: WeakRef<ModuleInstance> | null;
|
|
37
|
+
}
|
|
38
|
+
declare const ModuleGraphFlexBox: react__default.FC<ModuleGraphFlexBoxProps>;
|
|
39
|
+
declare const ModuleGraphFlexBoxWithProvider: react__default.FC<ModuleGraphFlexBoxProps>;
|
|
40
|
+
|
|
41
|
+
declare const NodeRelationalGraphFlexBox: react__default.FC<NodeRelationalGraphProps>;
|
|
42
|
+
/** @deprecated */
|
|
43
|
+
declare const NodeRelationalGraph: react__default.FC<NodeRelationalGraphProps>;
|
|
44
|
+
|
|
45
|
+
interface ProvidedNodeRendererProps extends NodeRelationalGraphProps {
|
|
46
|
+
account?: AccountInstance;
|
|
47
|
+
layout?: 'dagre' | 'euler' | 'cose-bilkent' | 'cola';
|
|
48
|
+
layoutOptions?: object;
|
|
49
|
+
node?: WeakRef<NodeInstance>;
|
|
50
|
+
}
|
|
51
|
+
declare const ProvidedNodeRenderer: react__default.FC<ProvidedNodeRendererProps>;
|
|
52
|
+
|
|
53
|
+
declare const CytoscapeInstanceContext: react.Context<({
|
|
54
|
+
cy?: WeakRef<cytoscape.Core>;
|
|
55
|
+
setCy?: react.Dispatch<react.SetStateAction<WeakRef<cytoscape.Core> | undefined>>;
|
|
56
|
+
} & {
|
|
57
|
+
provided: true;
|
|
58
|
+
}) | (_xylabs_react_shared.FixedValues<_xylabs_react_shared.ProvidedContextExState<{
|
|
59
|
+
cy?: WeakRef<cytoscape.Core>;
|
|
60
|
+
setCy?: react.Dispatch<react.SetStateAction<WeakRef<cytoscape.Core> | undefined>>;
|
|
61
|
+
}>, never> & {
|
|
62
|
+
provided: false;
|
|
63
|
+
}) | (_xylabs_react_shared.FixedValues<_xylabs_react_shared.NotProvidedContextExState<{
|
|
64
|
+
cy?: WeakRef<cytoscape.Core>;
|
|
65
|
+
setCy?: react.Dispatch<react.SetStateAction<WeakRef<cytoscape.Core> | undefined>>;
|
|
66
|
+
}>, never> & {
|
|
67
|
+
provided: false;
|
|
68
|
+
})>;
|
|
69
|
+
|
|
70
|
+
interface CytoscapeInstanceProviderProps extends PropsWithChildren {
|
|
71
|
+
defaultInstance?: WeakRef<Core>;
|
|
72
|
+
}
|
|
73
|
+
declare const CytoscapeInstanceProvider: react__default.FC<CytoscapeInstanceProviderProps>;
|
|
74
|
+
|
|
75
|
+
type CytoscapeInstanceState = ContextExState<{
|
|
76
|
+
cy?: WeakRef<Core>;
|
|
77
|
+
setCy?: Dispatch<SetStateAction<WeakRef<Core> | undefined>>;
|
|
78
|
+
}>;
|
|
79
|
+
|
|
80
|
+
declare const useCytoscapeInstance: (required?: boolean) => Omit<{
|
|
81
|
+
cy?: WeakRef<cytoscape.Core>;
|
|
82
|
+
setCy?: react.Dispatch<react.SetStateAction<WeakRef<cytoscape.Core> | undefined>>;
|
|
83
|
+
} & {
|
|
84
|
+
provided: true;
|
|
85
|
+
}, "provided"> | Omit<_xylabs_react_shared.NotProvidedContextExState<CytoscapeInstanceState>, "provided">;
|
|
86
|
+
|
|
87
|
+
interface ModuleInfo {
|
|
88
|
+
children: ModuleInfo[];
|
|
89
|
+
depth: number;
|
|
90
|
+
mod: ModuleInstance;
|
|
91
|
+
}
|
|
92
|
+
declare const CytoscapeElements: {
|
|
93
|
+
MaxNameLength: number;
|
|
94
|
+
buildEdge(rootNode: ElementDefinition, newNode: ElementDefinition, properties?: {
|
|
95
|
+
[key: string]: unknown;
|
|
96
|
+
}): {
|
|
97
|
+
data: {
|
|
98
|
+
id: string;
|
|
99
|
+
source: string | undefined;
|
|
100
|
+
target: string | undefined;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
buildElements(mod: ModuleInstance): Promise<ElementDefinition[]>;
|
|
104
|
+
buildElementsFromInfo(info: ModuleInfo, root?: ElementDefinition, classes?: string[]): Promise<ElementDefinition[]>;
|
|
105
|
+
buildNode(mod: ModuleInstance, properties?: {
|
|
106
|
+
[key: string]: unknown;
|
|
107
|
+
}, classes?: string[]): ElementDefinition;
|
|
108
|
+
buildRootNode: (mod: ModuleInstance) => ElementDefinition;
|
|
109
|
+
normalizeName(name?: string): string | undefined;
|
|
110
|
+
recurseNodes(root: ModuleInstance, maxDepth?: number, depth?: number): Promise<ModuleInfo>;
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
type CyNodeModuleTypes = 'archivist' | 'bridge' | 'diviner' | 'module' | 'node' | 'witness' | 'sentinel';
|
|
114
|
+
|
|
115
|
+
declare const encodeSvg: (reactElement: ReactElement, color?: string) => string;
|
|
116
|
+
|
|
117
|
+
declare const generateIconMap: () => Record<CyNodeModuleTypes, string>;
|
|
118
|
+
|
|
119
|
+
declare const ColaLayout: {
|
|
120
|
+
centerGraph: boolean;
|
|
121
|
+
convergenceThreshold: number;
|
|
122
|
+
name: string;
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
declare const ConcentricLayout: LayoutOptions;
|
|
126
|
+
|
|
127
|
+
declare const parseModuleType: (mod?: ModuleInstance) => CyNodeModuleTypes;
|
|
128
|
+
|
|
129
|
+
declare const CyIconSet: Record<CyNodeModuleTypes, SvgIconComponent>;
|
|
130
|
+
|
|
131
|
+
declare const NodeWithName: (color?: string, outlineColor?: string) => StylesheetCSS;
|
|
132
|
+
declare const Node: (icons: Record<CyNodeModuleTypes, string>, bgColor?: string, hideLabels?: boolean) => StylesheetCSS;
|
|
133
|
+
declare const NodeAsRoot: (bgColor?: string) => StylesheetCSS;
|
|
134
|
+
declare const EdgeStyled: (lineColor?: string, targetArrowColor?: string) => StylesheetCSS;
|
|
135
|
+
|
|
136
|
+
declare const useCytoscapeElements: (mod?: WeakRef<ModuleInstance> | null) => ElementDefinition[];
|
|
137
|
+
|
|
138
|
+
declare const useElements: (hideLabels: boolean) => {
|
|
139
|
+
hoveredNode: cytoscape.NodeSingular | undefined;
|
|
140
|
+
setHoveredNode: react.Dispatch<react.SetStateAction<cytoscape.NodeSingular | undefined>>;
|
|
141
|
+
toggleSelectedElement: (address?: string) => void;
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
declare const useCytoscapeOptions: (elements: CytoscapeOptions["elements"], style?: CytoscapeOptions["style"], layout?: CytoscapeOptions["layout"]) => CytoscapeOptions | undefined;
|
|
145
|
+
|
|
146
|
+
declare const useModuleDetails: (rootModule?: WeakRef<ModuleInstance> | null, onFoundModule?: () => void) => {
|
|
147
|
+
mod: ModuleInstance<_xyo_network_module_model.ModuleParams<_xyo_network_module_model.AnyConfigSchema<_xyo_network_module_model.ModuleConfig<object, void>>>, _xyo_network_module_model.ModuleEventData<object>> | null | undefined;
|
|
148
|
+
onModuleDetails: (address?: string | null) => void;
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
declare const useRelationalGraphOptions: (mod?: WeakRef<ModuleInstance>) => {
|
|
152
|
+
handleToggleLabels: () => void;
|
|
153
|
+
hideLabels: boolean;
|
|
154
|
+
options: cytoscape.CytoscapeOptions | undefined;
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
export { ColaLayout, ConcentricLayout, CyIconSet, CytoscapeElements, CytoscapeInstanceContext, CytoscapeInstanceProvider, EdgeStyled, ModuleCardParser, ModuleGraphFlexBox, ModuleGraphFlexBoxWithProvider, Node, NodeAsRoot, NodeRelationalGraph, NodeRelationalGraphFlexBox, NodeWithName, ProvidedNodeRenderer, encodeSvg, generateIconMap, parseModuleType, useCytoscapeElements, useCytoscapeInstance, useCytoscapeOptions, useElements, useModuleDetails, useRelationalGraphOptions };
|
|
158
|
+
export type { CyNodeModuleTypes, CytoscapeInstanceProviderProps, CytoscapeInstanceState, ModuleCardParserProps, ModuleGraphFlexBoxProps, NodeRelationalGraphProps, ProvidedNodeRendererProps };
|