/** * WP dashboard widget entry (adoption plan Feature 3, Phase D Lane D1). * * Standalone bundle enqueued by includes/class-dashboard-widget.php on * index.php only. Mounts onto the #llmagnet-dashboard-widget-root div * printed by Dashboard_Widget::render(), replacing the PHP skeleton. * * recharts is NOT in this entry chunk — wp-dashboard-widget.tsx lazy-loads * the chart via dynamic import after the score row paints. */ import React from 'react'; import ReactDOM from 'react-dom/client'; import { WpDashboardWidget } from './components/wp-dashboard-widget'; import './wp-dashboard-widget.css'; const rootElement = document.getElementById('llmagnet-dashboard-widget-root'); const data = window.llmagnetWidgetData; if (rootElement && data) { rootElement.innerHTML = ''; // Drop the PHP skeleton. ReactDOM.createRoot(rootElement).render( ); }