@@ -8,6 +8,7 @@ import { RegisterNodeFactoryFunction } from '@devhelpr/web-flow-executor';
88// Add Shoelace imports at the top
99import '@shoelace-style/shoelace/dist/themes/light.css' ;
1010import '@shoelace-style/shoelace/dist/components/color-picker/color-picker.js' ;
11+ import { getMermaidNode , mermaidNodeName } from '../custom-nodes/mermaid' ;
1112
1213export function ocwgPage ( ) {
1314 // Add color picker popup
@@ -99,6 +100,13 @@ export function ocwgPage() {
99100 app . theme . backgroundAsHexColor = '#336699' ;
100101 app . theme . nodeBackground = 'bg-[#113366]' ;
101102
103+ app . registerExternalNodes = (
104+ registerNodeFactory : RegisterNodeFactoryFunction
105+ ) => {
106+ //registerNodeFactory('test-external-node', getExternalTestNode());
107+ registerNodeFactory ( mermaidNodeName , getMermaidNode ( ) ) ;
108+ } ;
109+
102110 // Add color picker change handlers
103111 const backgroundPicker = document . getElementById ( 'background-color' ) as any ;
104112 const nodeBackgroundPicker = document . getElementById (
@@ -128,12 +136,6 @@ export function ocwgPage() {
128136 }
129137 } ) ;
130138
131- app . registerExternalNodes = (
132- _registerNodeFactory : RegisterNodeFactoryFunction
133- ) => {
134- //
135- } ;
136-
137139 // Rest of the existing code...
138140 let currentOcwgExport = '' ;
139141 ocwgElement
0 commit comments