From ca9eafa2fa87274dd1784e642eb4d7335b4715f9 Mon Sep 17 00:00:00 2001 From: Jack Zhuang <277994282+os-zhuang@users.noreply.github.com> Date: Wed, 29 Jul 2026 01:20:23 +0800 Subject: [PATCH] docs(components): react-page scope comment says ObjectGrid, not the unregistered ObjectTable The `kind:'react'` page header comment advertised two identifiers that do not exist, so an author following it hit a wall either way: - `` -> ReferenceError, surfaced as the red "React page error" panel. `buildComponentScope` PascalCases each public non-container tag from the curated PUBLIC_BLOCKS contract, which carries `object-grid` (registered in plugin-grid) and no `object-table` at all, so the real injected identifier has always been `ObjectGrid`. - `` -> "Unknown component type", since nothing registers that type anywhere in the product. `object-table` survives only in sdui-parser's synthetic compiler fixtures, which build their own inline manifests and never touch the real registry. Comment-only; no behavior change. Co-Authored-By: Claude --- packages/components/src/renderers/layout/react-page.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/components/src/renderers/layout/react-page.tsx b/packages/components/src/renderers/layout/react-page.tsx index c31f588038..2d185d8bae 100644 --- a/packages/components/src/renderers/layout/react-page.tsx +++ b/packages/components/src/renderers/layout/react-page.tsx @@ -19,11 +19,11 @@ * * Scope injected into the source: * - `React` — so authors can call hooks. - * - the PUBLIC data blocks — ``, ``, charts, metrics… + * - the PUBLIC data blocks — ``, ``, charts, metrics… * each as a prop-driven wrapper that renders via SchemaRenderer. Layout is * left to plain HTML + Tailwind (React's strength); only the data blocks * that can't be expressed in HTML are injected. - * - `Block` — escape hatch: ``. + * - `Block` — escape hatch: ``. * - `useAdapter` — live data hook: query/create/update objects. * - `data` / `variables` — page data + local variables, for convenience. */