Commit 82d2202
feat(spec): add element:metadata_viewer component (ADR-0051 P1) (#1942)
Read-only SDUI component a ```metadata doc fence compiles to — the
inline form of ADR-0046 §3.5 "derived content is rendered, never
written". Renders a state_machine | flow | permission view live and
permission-projected at read time; the props carry no expressions or
actions, so the embed stays on the data side of the §3.4 trust boundary
(embeddableInDoc).
- New ElementMetadataViewerPropsSchema placed in Content Elements
(read-only), not Interactive — reinforces the content-embeddable vs
interactive-not boundary.
- Registered as 'element:metadata_viewer' in ComponentPropsMap.
- `detail` is the authored altitude (business collapses technical flow
nodes); permission projection is automatic and render-time, not here.
- `object` embeds deferred (ADR-0051 §5).
Spec-only; the fence parser, resolver, publish lint and console render
land in follow-ups.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 52dc3e9 commit 82d2202
1 file changed
Lines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
219 | 246 | | |
220 | 247 | | |
221 | 248 | | |
| |||
311 | 338 | | |
312 | 339 | | |
313 | 340 | | |
| 341 | + | |
314 | 342 | | |
315 | 343 | | |
316 | 344 | | |
| |||
0 commit comments