tuil
ReferencePackages

@mwillbanks/tuil-content

Shared Markdown code diff JSON structured-content projections and selection models for tuil.

View rawEdit

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-content

How it operates

Content models retain structured paths and diff source positions while exposing raw, tree, table, unified, and split projections.

Documentation flow diagram. parse model; navigate/search; select/copy; project; S0 leads to S1; S1 leads to S2; S2 leads to S3
Documentation flow diagram. parse model; navigate/search; select/copy; project; S0 leads to S1; S1 leads to S2; S2 leads to S3

API

APISignatureDescription
resolveJsonPathfunction resolveJsonPathPublic function resolveJsonPath.
StructuredContentModelclass StructuredContentModelPublic class StructuredContentModel.
TreeRowinterface TreeRowPublic 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 } });

On this page