@octanejs/xyflow 0.1.6 → 0.1.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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@octanejs/xyflow",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@xyflow/system": "0.0.79",
|
|
47
47
|
"classcat": "5.0.5",
|
|
48
|
-
"@octanejs/zustand": "0.1.
|
|
48
|
+
"@octanejs/zustand": "0.1.54"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"octane": "^0.1.51 || ^0.2.0"
|
|
51
|
+
"octane": "^0.1.51 || ^0.2.0 || ^0.3.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@tsrx/react": "^0.3.0",
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
"react": "19.2.7",
|
|
60
60
|
"react-dom": "19.2.7",
|
|
61
61
|
"vitest": "^4.1.10",
|
|
62
|
-
"@octanejs/zustand": "0.1.
|
|
63
|
-
"octane": "0.
|
|
62
|
+
"@octanejs/zustand": "0.1.54",
|
|
63
|
+
"octane": "0.3.0"
|
|
64
64
|
},
|
|
65
65
|
"scripts": {
|
|
66
66
|
"test": "vitest run --root ../.. --project xyflow --project xyflow-differential",
|
|
@@ -108,7 +108,7 @@ export function BatchProvider<NodeType extends Node = Node, EdgeType extends Edg
|
|
|
108
108
|
|
|
109
109
|
const value = useMemo(() => ({ nodeQueue, edgeQueue }), []);
|
|
110
110
|
|
|
111
|
-
return <BatchContext
|
|
111
|
+
return <BatchContext value={value}>{children}</BatchContext>;
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
export function useBatchContext(..._rest: [slot?: symbol]) {
|
|
@@ -24,7 +24,7 @@ const HandleConfigContext = createContext<HandleConfig | null>(null);
|
|
|
24
24
|
*/
|
|
25
25
|
export function HandleConfigProvider({ children }: { children: OctaneNode }) {
|
|
26
26
|
const config = useStore(selector, shallow);
|
|
27
|
-
return <HandleConfigContext
|
|
27
|
+
return <HandleConfigContext value={config}>{children}</HandleConfigContext>;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
export function useHandleConfig() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createContext, useContext } from 'octane';
|
|
2
2
|
|
|
3
3
|
export const NodeIdContext = createContext<string | null>(null);
|
|
4
|
-
export const Provider = NodeIdContext
|
|
4
|
+
export const Provider = NodeIdContext;
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* You can use this hook to get the id of the node it is used inside. It is useful
|