@reactflow/node-toolbar
Advanced tools
Comparing version 1.3.4 to 1.3.5
import React, { useCallback } from 'react'; | ||
import { useStore, useNodeId, getRectOfNodes, internalsSymbol, Position } from '@reactflow/core'; | ||
import { useStore, useNodeId, getNodesBounds, internalsSymbol, Position } from '@reactflow/core'; | ||
import cc from 'classcat'; | ||
@@ -86,3 +86,3 @@ import { shallow } from 'zustand/shallow'; | ||
} | ||
const nodeRect = getRectOfNodes(nodes, nodeOrigin); | ||
const nodeRect = getNodesBounds(nodes, nodeOrigin); | ||
const zIndex = Math.max(...nodes.map((node) => (node[internalsSymbol]?.z || 1) + 1)); | ||
@@ -89,0 +89,0 @@ const wrapperStyle = { |
{ | ||
"name": "@reactflow/node-toolbar", | ||
"version": "1.3.4", | ||
"version": "1.3.5", | ||
"description": "A toolbar component for React Flow that can be attached to a node.", | ||
@@ -33,3 +33,3 @@ "keywords": [ | ||
"type": "git", | ||
"url": "https://github.com/wbkd/react-flow.git", | ||
"url": "https://github.com/xyflow/xyflow.git", | ||
"directory": "packages/node-toolbar" | ||
@@ -40,3 +40,3 @@ }, | ||
"zustand": "^4.4.1", | ||
"@reactflow/core": "11.9.4" | ||
"@reactflow/core": "11.10.0" | ||
}, | ||
@@ -53,4 +53,4 @@ "peerDependencies": { | ||
"typescript": "^4.9.4", | ||
"@reactflow/rollup-config": "0.0.0", | ||
"@reactflow/eslint-config": "0.0.0", | ||
"@reactflow/rollup-config": "0.0.0", | ||
"@reactflow/tsconfig": "0.0.0" | ||
@@ -57,0 +57,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
152186
764
+ Added@reactflow/core@11.10.0(transitive)
- Removed@reactflow/core@11.9.4(transitive)
Updated@reactflow/core@11.10.0