feat(node-toolbar): add node-toolbar component

This commit is contained in:
Christopher Möller
2022-11-15 21:48:08 +01:00
parent fd00b18ebe
commit beba0a32de
17 changed files with 386 additions and 50 deletions
+4 -2
View File
@@ -38,7 +38,8 @@
"@reactflow/background": "workspace:*",
"@reactflow/controls": "workspace:*",
"@reactflow/core": "workspace:*",
"@reactflow/minimap": "workspace:*"
"@reactflow/minimap": "workspace:*",
"@reactflow/node-toolbar": "workspace:*"
},
"peerDependencies": {
"react": ">=17",
@@ -58,7 +59,8 @@
"@reactflow/background": "ReactFlowBackground",
"@reactflow/controls": "ReactFlowControls",
"@reactflow/core": "ReactFlowCore",
"@reactflow/minimap": "ReactFlowMinimap"
"@reactflow/minimap": "ReactFlowMinimap",
"@reactflow/node-toolbar": "ReactFlowNodeToolbar"
},
"name": "ReactFlow"
}
+1
View File
@@ -2,5 +2,6 @@ export * from '@reactflow/core';
export * from '@reactflow/minimap';
export * from '@reactflow/controls';
export * from '@reactflow/background';
export * from '@reactflow/node-toolbar';
export { ReactFlow as default } from '@reactflow/core';
+1
View File
@@ -1,3 +1,4 @@
@import '@reactflow/core/dist/style.css';
@import '@reactflow/controls/dist/style.css';
@import '@reactflow/minimap/dist/style.css';
@import '@reactflow/node-toolbar/dist/style.css';