/** * Shortcode widget — name `shortcode`, rootClass `nxp-shortcode`, group general-c, * `render: "server"`. PHP definition and renderer: plugin/widgets/class-nexwordx-widget-shortcode.php. * * Content → section_shortcode "Shortcode": * - `shortcode` code (language shortcode), default "" → WordPress runs it with `do_shortcode()` * (the page is the global post); the result is the widget's output. * * No style controls of its own (the common Advanced controls style the wrapper). * * Markup: `
{rendered.html}
` — ServerHtml injects the HTML, * then loads `rendered.styles` and `rendered.scripts` (what the shortcode enqueued) and runs * `rendered.inline`. In the editor an empty shortcode shows a placeholder. */ import type { WidgetProps } from '../types'; import { ServerWidget } from './ServerWidget'; export function Shortcode(props: WidgetProps) { return ; }