datajunction-ui 0.0.1-rc.8 → 0.0.1-rc.9
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/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useCallback, useEffect, useMemo } from 'react';
|
|
1
|
+
import React, { useCallback, useContext, useEffect, useMemo } from 'react';
|
|
2
2
|
import ReactFlow, {
|
|
3
3
|
addEdge,
|
|
4
4
|
MiniMap,
|
|
@@ -13,8 +13,10 @@ import '../../../styles/dag.css';
|
|
|
13
13
|
import 'reactflow/dist/style.css';
|
|
14
14
|
import DJNode from '../../components/djgraph/DJNode';
|
|
15
15
|
import dagre from 'dagre';
|
|
16
|
+
import DJClientContext from '../../providers/djclient';
|
|
16
17
|
|
|
17
|
-
const NodeLineage =
|
|
18
|
+
const NodeLineage = djNode => {
|
|
19
|
+
const djClient = useContext(DJClientContext).DataJunctionAPI;
|
|
18
20
|
const nodeTypes = useMemo(() => ({ DJNode: DJNode }), []);
|
|
19
21
|
|
|
20
22
|
const [nodes, setNodes, onNodesChange] = useNodesState([]);
|