Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | /**
* `@usefy/json-viewer/headless` — the engine with no React and no DOM.
*
* This entry carries **no `"use client"` banner** (SPEC.md decision #1): the
* tree model, the path formatters and the search scan are pure TypeScript and
* are meant to be importable from a React Server Component, a Node script, or
* a worker. `src/build.test.ts` asserts the built output stays that way.
*/
export { createJsonTree } from "./model/tree";
export {
classify,
isContainerKind,
childAccessor,
childCountOf,
keysOf,
previewOf,
displayOf,
bracketsOf,
ThrownValue,
type ChildAccessor,
type Display,
} from "./model/value";
export {
SparseOrder,
DenseOrder,
toDense,
type OrderIndex,
type Located,
} from "./model/order";
export {
formatPath,
parsePath,
pathToAccessor,
pathToPointer,
pathToJsonPath,
pointerToSegments,
resolvePath,
} from "./model/path";
export {
serializeSubtree,
type SerializeOptions,
type SerializeResult,
} from "./model/serialize";
export { searchJson } from "./search/scan";
export { scheduleYield, now } from "./search/scheduler";
export type {
JsonKind,
JsonPath,
PathSegment,
PathFormat,
JsonRow,
JsonTreeOptions,
JsonTreeModel,
ExpandResult,
ExpandRefusal,
JsonSearchOptions,
JsonSearchProgress,
JsonSearchResult,
} from "./types";
|