Fix: Update plugin configuration - add history plugin and configure minimap size

- Changed plugins to function returning array
- Added createHistoryNodePlugin for undo/redo support
- Configured minimap with smaller size (150x100px)
- Updated createPanelManagerPlugin with factories and layerProps
- All plugin creation functions now receive proper parameters

Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-11-23 10:18:38 +00:00
parent 829727ad33
commit a691951f6d
3 changed files with 18 additions and 2 deletions

View File

@ -112,6 +112,7 @@
"@flowgram.ai/free-node-panel-plugin": "1.0.2", "@flowgram.ai/free-node-panel-plugin": "1.0.2",
"@flowgram.ai/free-snap-plugin": "1.0.2", "@flowgram.ai/free-snap-plugin": "1.0.2",
"@flowgram.ai/free-stack-plugin": "1.0.2", "@flowgram.ai/free-stack-plugin": "1.0.2",
"@flowgram.ai/history-node-plugin": "1.0.2",
"@flowgram.ai/minimap-plugin": "1.0.2", "@flowgram.ai/minimap-plugin": "1.0.2",
"@flowgram.ai/panel-manager-plugin": "1.0.2", "@flowgram.ai/panel-manager-plugin": "1.0.2",
"@flowgram.ai/runtime-interface": "1.0.2", "@flowgram.ai/runtime-interface": "1.0.2",

View File

@ -171,6 +171,9 @@ devDependencies:
'@flowgram.ai/free-stack-plugin': '@flowgram.ai/free-stack-plugin':
specifier: 1.0.2 specifier: 1.0.2
version: 1.0.2(react-dom@18.3.1)(react@18.3.1) version: 1.0.2(react-dom@18.3.1)(react@18.3.1)
'@flowgram.ai/history-node-plugin':
specifier: 1.0.2
version: 1.0.2(react-dom@18.3.1)(react@18.3.1)
'@flowgram.ai/minimap-plugin': '@flowgram.ai/minimap-plugin':
specifier: 1.0.2 specifier: 1.0.2
version: 1.0.2(react-dom@18.3.1)(react@18.3.1) version: 1.0.2(react-dom@18.3.1)(react@18.3.1)

View File

@ -5,6 +5,7 @@ import { createFreeLinesPlugin } from '@flowgram.ai/free-lines-plugin';
import { createFreeNodePanelPlugin } from '@flowgram.ai/free-node-panel-plugin'; import { createFreeNodePanelPlugin } from '@flowgram.ai/free-node-panel-plugin';
import { createMinimapPlugin } from '@flowgram.ai/minimap-plugin'; import { createMinimapPlugin } from '@flowgram.ai/minimap-plugin';
import { createPanelManagerPlugin } from '@flowgram.ai/panel-manager-plugin'; import { createPanelManagerPlugin } from '@flowgram.ai/panel-manager-plugin';
import { createHistoryNodePlugin } from '@flowgram.ai/history-node-plugin';
import { FlowNodeRegistry } from '../nodes/http'; import { FlowNodeRegistry } from '../nodes/http';
export function useEditorProps( export function useEditorProps(
@ -25,8 +26,19 @@ export function useEditorProps(
createFreeSnapPlugin({}), createFreeSnapPlugin({}),
createFreeLinesPlugin({}), createFreeLinesPlugin({}),
createFreeNodePanelPlugin({}), createFreeNodePanelPlugin({}),
createMinimapPlugin({}), createHistoryNodePlugin(),
createPanelManagerPlugin({}), createMinimapPlugin({
style: {
width: '150px',
height: '100px',
bottom: '20px',
right: '20px',
},
}),
createPanelManagerPlugin({
factories: [],
layerProps: {},
}),
], ],
onChange: (data) => { onChange: (data) => {
console.log('Workflow changed:', data); console.log('Workflow changed:', data);