You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
' if (uiStr) {\r\n uiEdited.current=true; setUiCode(uiStr)\r\n const bm = uiStr.match(/BOUNDS\\s*=\\s*\\{\\s*x:\\s*(\\d+)[^}]*y:\\s*(\\d+)[^}]*w:\\s*(\\d+)[^}]*h:\\s*(\\d+)/)\r\n if (bm) setBounds({ x:+bm[1], y:+bm[2], w:+bm[3], h:+bm[4] })\r\n // Detect if ui.tsx is a React component (has JSX/React imports) vs plain SVG\r\n const hasReactImport = /import\\s+React|from\\s+[\'"]react[\'"]/.test(uiStr)\r\n const hasJsxExport = /export\\s+(const|function)\\s+\\w+.*=.*\\(/.test(uiStr)\r\n if (hasReactImport || hasJsxExport) {\r\n // React mode: set the full ui.tsx as reac'