-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlib.typ
More file actions
27 lines (26 loc) · 1.15 KB
/
lib.typ
File metadata and controls
27 lines (26 loc) · 1.15 KB
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
// lib.typ
// ContextCloak public API entrypoint.
//
// This is the only file consumers import:
// #import "@preview/contextcloak:0.1.0": *
//
// It re-exports exactly the public surface.
// Internal symbols (_cc-require, etc.) are not re-exported.
//
// Public constructors:
// cc-digest any value → hex digest string
// cc-wrap dict → envelope dictionary
// cc-salt envelope + salt → salted envelope dictionary
//
// Public elision:
// cc-elide envelope + fields → envelope with elided fields
// cc-granular-wrap string + grain → granular Merkle tree
// cc-granular-elide granular + indices → granular with elided nodes
//
// Public renderers:
// render-envelope envelope → Markdown string (with elision placeholders)
// render-digest-tree envelope → Markdown string (audit view)
// render-granular granular → string (with ███ for elided units)
#import "src/envelope.typ": cc-digest, cc-wrap, cc-salt
#import "src/elision.typ": cc-elide, cc-granular-wrap, cc-granular-elide
#import "src/render.typ": render-envelope, render-digest-tree, render-granular