ReferencePackages
@mwillbanks/tuil-content
Shared Markdown code diff JSON structured-content projections and selection models for tuil.
Overview
Shared Markdown code diff JSON structured-content projections and selection models for tuil.
@mwillbanks/tuil-content is independently installable and also participates in the
umbrella @mwillbanks/tuil runtime where applicable.
Installation
npm install @mwillbanks/tuil-contentHow it operates
Content models retain structured paths and diff source positions while exposing raw, tree, table, unified, and split projections.
API
| API | Signature | Description |
|---|---|---|
resolveJsonPath | function resolveJsonPath | Public function resolveJsonPath. |
StructuredContentModel | class StructuredContentModel | Public class StructuredContentModel. |
TreeRow | interface TreeRow | Public interface TreeRow. |
Events and lifecycle
Models are deterministic values and expose results directly without global events.
All subscriptions and registrations return a disposer or belong to an owning runtime that disposes them in reverse order.
Example
import { StructuredContentModel } from "@mwillbanks/tuil-content";
const model = new StructuredContentModel({ service: { ready: true } });