rapier-html 1.2.17 → 1.2.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/BUILD.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "package": "rapier-html",
3
- "version": "1.2.17",
3
+ "version": "1.2.19",
4
4
  "path": "dist/rapier.html",
5
- "bytes": 5269576,
6
- "sha256": "2045062738d22c9e841fcc0858c19629e04c6cb5740c6264d44bf62cea501530",
7
- "builtAt": "2026-10-19T13:30:00.388Z",
5
+ "bytes": 5442212,
6
+ "sha256": "6d1a04bde888bf56759d8b264475018e103cc55c35829224a7c366d521b3d603",
7
+ "builtAt": "2026-10-21T00:26:54.501Z",
8
8
  "node": "v22.23.3",
9
9
  "canonical": true,
10
10
  "packing": "zopfli",
@@ -65,8 +65,8 @@
65
65
  "delivery": "built-in",
66
66
  "kind": "files",
67
67
  "element": "rapier-plugin-letters",
68
- "bytes": 1301524,
69
- "packedBytes": 537564,
68
+ "bytes": 1308205,
69
+ "packedBytes": 540421,
70
70
  "files": [
71
71
  {
72
72
  "id": "rapier-letters-field",
@@ -99,9 +99,9 @@
99
99
  {
100
100
  "id": "rapier-letters-silhouette",
101
101
  "name": "silhouette.json",
102
- "version": "Q3xiaZCG/VzF5fncbMgvaVB5VOvM0OSyi7SY+kzlRlgtsXRkwe5e7tryx+YcXAuJ",
103
- "bytes": 152868,
104
- "sri": "Q3xiaZCG/VzF5fncbMgvaVB5VOvM0OSyi7SY+kzlRlgtsXRkwe5e7tryx+YcXAuJ"
102
+ "version": "yJFqFaXJbR2Q11MIpd9hm7VfgQTh3tTgzzTo16dE7XC++oPW4rjC8VPGzQL6ysGm",
103
+ "bytes": 159609,
104
+ "sri": "yJFqFaXJbR2Q11MIpd9hm7VfgQTh3tTgzzTo16dE7XC++oPW4rjC8VPGzQL6ysGm"
105
105
  },
106
106
  {
107
107
  "id": "rapier-letters-gothic",
@@ -120,23 +120,23 @@
120
120
  {
121
121
  "id": "rapier-letters-illuminated-1490",
122
122
  "name": "illuminated-1490.json",
123
- "version": "E5TSBSWxu2lpB3U64cdo/tbGRvboirHs3oNmGQzxo9/Ve9cKR7WKWLfp5zRXdNvZ",
124
- "bytes": 150768,
125
- "sri": "E5TSBSWxu2lpB3U64cdo/tbGRvboirHs3oNmGQzxo9/Ve9cKR7WKWLfp5zRXdNvZ"
123
+ "version": "ip8RRkR+l19u9ra74hla3wQTTbrbbfa1dDREkyUYVbgmpY/3aZBAjnCHVp2QCCRd",
124
+ "bytes": 150674,
125
+ "sri": "ip8RRkR+l19u9ra74hla3wQTTbrbbfa1dDREkyUYVbgmpY/3aZBAjnCHVp2QCCRd"
126
126
  },
127
127
  {
128
128
  "id": "rapier-letters-tuscan-1845",
129
129
  "name": "tuscan-1845.json",
130
- "version": "ixYKmOumpE7HzAHVR/DtAaKIXNbjpcGIP//P1LRHVRNPNSHXG8ILc1N3Ut/4XVkz",
131
- "bytes": 148902,
132
- "sri": "ixYKmOumpE7HzAHVR/DtAaKIXNbjpcGIP//P1LRHVRNPNSHXG8ILc1N3Ut/4XVkz"
130
+ "version": "45c0TGPQ5Ykv1pt1EJskYIFzlmvTCymrMfauLN7dXdzJHZwKfjDUNqUr3SRDuw2L",
131
+ "bytes": 148919,
132
+ "sri": "45c0TGPQ5Ykv1pt1EJskYIFzlmvTCymrMfauLN7dXdzJHZwKfjDUNqUr3SRDuw2L"
133
133
  },
134
134
  {
135
135
  "id": "rapier-letters-renaissance-alphabet",
136
136
  "name": "renaissance-alphabet.json",
137
- "version": "pN1dqeJTJ1fnj+e3ELPDDl8R27n5NnYGW3B4XJFIFtiN4ip5yQr2BXUU7yhXLOAa",
138
- "bytes": 153841,
139
- "sri": "pN1dqeJTJ1fnj+e3ELPDDl8R27n5NnYGW3B4XJFIFtiN4ip5yQr2BXUU7yhXLOAa"
137
+ "version": "cNMp2eJEq7UR77fdqjCA5ScHPLteWMcDVCbDphe6qUdZixGING928388gCnW7SRp",
138
+ "bytes": 153858,
139
+ "sri": "cNMp2eJEq7UR77fdqjCA5ScHPLteWMcDVCbDphe6qUdZixGING928388gCnW7SRp"
140
140
  }
141
141
  ]
142
142
  },
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Turn Markdown into one offline HTML file that contains the full Rapier editor. It opens in any browser, on a phone or
4
4
  computer, with no account. People read, edit, draw and paint; agents hand over documents, show what changed and get
5
- the edited copy back. Start with `npx rapier-html@1.2.17 notes.md`.
5
+ the edited copy back. Start with `npx rapier-html@1.2.19 notes.md`.
6
6
 
7
7
  Use it for a plan to rearrange, a guide to annotate, a draft to keep writing, or a revision to review. The file works
8
8
  without any hosted workspace.
@@ -17,14 +17,14 @@ without any hosted workspace.
17
17
  Needs Node 22 or newer.
18
18
 
19
19
  ```sh
20
- npx -- rapier-html@1.2.17 notes.md # the editor, notes.md inside it, written beside the file
21
- npx -- rapier-html@1.2.17 notes.md --view draw # opens on Draw: sketch and paint, the document behind it
22
- npx -- rapier-html@1.2.17 notes.md --include draw,math # carries Draw and Math (default: what the document needs)
23
- npx -- rapier-html@1.2.17 notes.md --drawing sketch.svg # carries a drawing, opened on Draw over the document
24
- npx -- rapier-html@1.2.17 revised.md --compare original.md # opens showing what changed
25
- npx -- rapier-html@1.2.17 notes.md --return "$RETURN_URL" --return-expires-at "$RETURN_EXPIRES_AT" # Send back
26
- npx -- rapier-html@1.2.17 notes.md out.html # a named output
27
- npm install rapier-html@1.2.17 # as a library: writePage, unwrap
20
+ npx -- rapier-html@1.2.19 notes.md # the editor, notes.md inside it, written beside the file
21
+ npx -- rapier-html@1.2.19 notes.md --view draw # opens on Draw: sketch and paint, the document behind it
22
+ npx -- rapier-html@1.2.19 notes.md --include draw,math # carries Draw and Math (default: what the document needs)
23
+ npx -- rapier-html@1.2.19 notes.md --drawing sketch.svg # carries a drawing, opened on Draw over the document
24
+ npx -- rapier-html@1.2.19 revised.md --compare original.md # opens showing what changed
25
+ npx -- rapier-html@1.2.19 notes.md --return "$RETURN_URL" --return-expires-at "$RETURN_EXPIRES_AT" # Send back
26
+ npx -- rapier-html@1.2.19 notes.md out.html # a named output
27
+ npm install rapier-html@1.2.19 # as a library: writePage, unwrap
28
28
  ```
29
29
 
30
30
  The first `--` is for npm, so `--help` reaches the command. It never overwrites a file.
package/dist/page.d.mts CHANGED
@@ -6,6 +6,8 @@ export interface WrapOptions {
6
6
  kind?: DocKind;
7
7
  /** The view the page opens on, with the document behind it. */
8
8
  view?: 'draw' | 'notes';
9
+ /** Opening appearance; the reader can change it without changing their saved preference on open. */
10
+ theme?: 'light' | 'dark';
9
11
  /** An SVG drawing carried beside the document, opened on Draw. */
10
12
  drawing?: string;
11
13
  drawingName?: string;
@@ -28,6 +30,7 @@ export interface Unwrapped {
28
30
  name: string | null;
29
31
  kind: DocKind | null;
30
32
  view: 'draw' | 'notes' | null;
33
+ theme: 'light' | 'dark' | null;
31
34
  drawing: string | null;
32
35
  drawingName: string | null;
33
36
  base: string | null;