vde-open 0.1.6 → 0.1.8

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/README.md CHANGED
@@ -28,7 +28,7 @@ To install from a clone of this repository (Node.js 24.21.0 is pinned in `mise.t
28
28
  pnpm install --frozen-lockfile
29
29
  pnpm build
30
30
  pnpm test:pack # builds artifacts/vde-open-<version>.tgz and verifies an install in a separate directory
31
- bun add -g "$PWD/artifacts/vde-open-0.1.6.tgz" # bun add -g needs an absolute path
31
+ bun add -g "$PWD/artifacts/vde-open-0.1.8.tgz" # bun add -g needs an absolute path
32
32
  ```
33
33
 
34
34
  ## `vde-open` and `vo`
@@ -89,16 +89,17 @@ Markdown is rendered with TanStack Markdown 1.0.0. It is not fully compatible wi
89
89
  - Code is highlighted only for JS, JSX, TS, TSX, JSON, YAML, HTML, CSS, Bash, and Markdown. Code larger than 256 KiB and other languages are not highlighted.
90
90
  - Documents that cannot be parsed within 2 seconds, or that have more than 100,000 elements or more than 64 levels of nesting, are shown as source.
91
91
 
92
- ## Exporting Markdown to PDF
92
+ ## Exporting to PDF
93
93
 
94
- "Export PDF" in the header of a Markdown document saves the shown revision as a PDF, without a print dialog.
94
+ "Export PDF" in the header of a document saves the shown revision as a PDF, without a print dialog.
95
95
 
96
- - The PDF is A4 on a white background. Every page has the document title in the header and the page number ("3 / 12") in the footer, and the headings become PDF bookmarks.
96
+ - Markdown PDFs are A4 on a white background. Every page has the document title in the header and the page number ("3 / 12") in the footer, and the headings become PDF bookmarks.
97
97
  - The daemon prints it with the Google Chrome or Microsoft Edge (131 or later) installed on the machine; nothing is downloaded. To use another Chromium-based browser or another location, set `VDE_OPEN_BROWSER` for the daemon to the absolute path of the executable, then run `vo daemon restart`.
98
- - The rules of the view apply: raw HTML is shown as text, only images registered for the document are included (others show their alternative text), and links to other local documents become plain text.
98
+ - For Markdown, the rules of the view apply: raw HTML is shown as text, only images registered for the document are included (others show their alternative text), and links to other local documents become plain text.
99
99
  - The file name is the document's file name with `.pdf` (`README.md` → `README.pdf`); a document read from stdin uses its title.
100
- - The PDF uses the fonts installed on the machine, so it looks slightly different on each OS.
101
- - HTML documents cannot be exported. Printing must finish within 60 seconds.
100
+ - Markdown and any HTML text without a registered font use the fonts installed on the machine, so they look slightly different on each OS.
101
+ - HTML is exported using the static view rules, its own CSS (including `@media print` and `@page`), and registered CSS, images, and fonts. Without a page rule, it uses A4 with 20 mm margins. Markdown typography, headers, and footers are not added. Even an interactive document is exported from the saved HTML without running scripts; changes made by interacting with it are not included.
102
+ - Printing must finish within 60 seconds.
102
103
 
103
104
  ## Where the state is stored, and stopping
104
105
 
@@ -63,6 +63,273 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
63
63
  SOFTWARE.
64
64
  ```
65
65
 
66
+ ## @dnd-kit/abstract@0.5.0
67
+
68
+ License: MIT
69
+
70
+ ### LICENSE
71
+
72
+ ```text
73
+ MIT License
74
+
75
+ Copyright (c) 2021, Claudéric Demers
76
+
77
+ Permission is hereby granted, free of charge, to any person obtaining a copy
78
+ of this software and associated documentation files (the "Software"), to deal
79
+ in the Software without restriction, including without limitation the rights
80
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
81
+ copies of the Software, and to permit persons to whom the Software is
82
+ furnished to do so, subject to the following conditions:
83
+
84
+ The above copyright notice and this permission notice shall be included in all
85
+ copies or substantial portions of the Software.
86
+
87
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
88
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
89
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
90
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
91
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
92
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
93
+ SOFTWARE.
94
+ ```
95
+
96
+ ## @dnd-kit/collision@0.5.0
97
+
98
+ License: MIT
99
+
100
+ ### LICENSE
101
+
102
+ ```text
103
+ MIT License
104
+
105
+ Copyright (c) 2021, Claudéric Demers
106
+
107
+ Permission is hereby granted, free of charge, to any person obtaining a copy
108
+ of this software and associated documentation files (the "Software"), to deal
109
+ in the Software without restriction, including without limitation the rights
110
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
111
+ copies of the Software, and to permit persons to whom the Software is
112
+ furnished to do so, subject to the following conditions:
113
+
114
+ The above copyright notice and this permission notice shall be included in all
115
+ copies or substantial portions of the Software.
116
+
117
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
118
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
119
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
120
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
121
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
122
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
123
+ SOFTWARE.
124
+ ```
125
+
126
+ ## @dnd-kit/dom@0.5.0
127
+
128
+ License: MIT
129
+
130
+ ### LICENSE
131
+
132
+ ```text
133
+ MIT License
134
+
135
+ Copyright (c) 2021, Claudéric Demers
136
+
137
+ Permission is hereby granted, free of charge, to any person obtaining a copy
138
+ of this software and associated documentation files (the "Software"), to deal
139
+ in the Software without restriction, including without limitation the rights
140
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
141
+ copies of the Software, and to permit persons to whom the Software is
142
+ furnished to do so, subject to the following conditions:
143
+
144
+ The above copyright notice and this permission notice shall be included in all
145
+ copies or substantial portions of the Software.
146
+
147
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
148
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
149
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
150
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
151
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
152
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
153
+ SOFTWARE.
154
+ ```
155
+
156
+ ## @dnd-kit/geometry@0.5.0
157
+
158
+ License: MIT
159
+
160
+ ### LICENSE
161
+
162
+ ```text
163
+ MIT License
164
+
165
+ Copyright (c) 2021, Claudéric Demers
166
+
167
+ Permission is hereby granted, free of charge, to any person obtaining a copy
168
+ of this software and associated documentation files (the "Software"), to deal
169
+ in the Software without restriction, including without limitation the rights
170
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
171
+ copies of the Software, and to permit persons to whom the Software is
172
+ furnished to do so, subject to the following conditions:
173
+
174
+ The above copyright notice and this permission notice shall be included in all
175
+ copies or substantial portions of the Software.
176
+
177
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
178
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
179
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
180
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
181
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
182
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
183
+ SOFTWARE.
184
+ ```
185
+
186
+ ## @dnd-kit/react@0.5.0
187
+
188
+ License: MIT
189
+
190
+ ### LICENSE
191
+
192
+ ```text
193
+ MIT License
194
+
195
+ Copyright (c) 2021, Claudéric Demers
196
+
197
+ Permission is hereby granted, free of charge, to any person obtaining a copy
198
+ of this software and associated documentation files (the "Software"), to deal
199
+ in the Software without restriction, including without limitation the rights
200
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
201
+ copies of the Software, and to permit persons to whom the Software is
202
+ furnished to do so, subject to the following conditions:
203
+
204
+ The above copyright notice and this permission notice shall be included in all
205
+ copies or substantial portions of the Software.
206
+
207
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
208
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
209
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
210
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
211
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
212
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
213
+ SOFTWARE.
214
+ ```
215
+
216
+ ## @dnd-kit/state@0.5.0
217
+
218
+ License: MIT
219
+
220
+ ### LICENSE
221
+
222
+ ```text
223
+ MIT License
224
+
225
+ Copyright (c) 2021, Claudéric Demers
226
+
227
+ Permission is hereby granted, free of charge, to any person obtaining a copy
228
+ of this software and associated documentation files (the "Software"), to deal
229
+ in the Software without restriction, including without limitation the rights
230
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
231
+ copies of the Software, and to permit persons to whom the Software is
232
+ furnished to do so, subject to the following conditions:
233
+
234
+ The above copyright notice and this permission notice shall be included in all
235
+ copies or substantial portions of the Software.
236
+
237
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
238
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
239
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
240
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
241
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
242
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
243
+ SOFTWARE.
244
+ ```
245
+
246
+ ## @floating-ui/core@1.8.0
247
+
248
+ License: MIT
249
+
250
+ ### LICENSE
251
+
252
+ ```text
253
+ MIT License
254
+
255
+ Copyright (c) 2021-present Floating UI contributors
256
+
257
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
258
+ this software and associated documentation files (the "Software"), to deal in
259
+ the Software without restriction, including without limitation the rights to
260
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
261
+ the Software, and to permit persons to whom the Software is furnished to do so,
262
+ subject to the following conditions:
263
+
264
+ The above copyright notice and this permission notice shall be included in all
265
+ copies or substantial portions of the Software.
266
+
267
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
268
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
269
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
270
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
271
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
272
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
273
+ ```
274
+
275
+ ## @floating-ui/dom@1.8.0
276
+
277
+ License: MIT
278
+
279
+ ### LICENSE
280
+
281
+ ```text
282
+ MIT License
283
+
284
+ Copyright (c) 2021-present Floating UI contributors
285
+
286
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
287
+ this software and associated documentation files (the "Software"), to deal in
288
+ the Software without restriction, including without limitation the rights to
289
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
290
+ the Software, and to permit persons to whom the Software is furnished to do so,
291
+ subject to the following conditions:
292
+
293
+ The above copyright notice and this permission notice shall be included in all
294
+ copies or substantial portions of the Software.
295
+
296
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
297
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
298
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
299
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
300
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
301
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
302
+ ```
303
+
304
+ ## @floating-ui/react-dom@2.1.9
305
+
306
+ License: MIT
307
+
308
+ ### LICENSE
309
+
310
+ ```text
311
+ MIT License
312
+
313
+ Copyright (c) 2021-present Floating UI contributors
314
+
315
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
316
+ this software and associated documentation files (the "Software"), to deal in
317
+ the Software without restriction, including without limitation the rights to
318
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
319
+ the Software, and to permit persons to whom the Software is furnished to do so,
320
+ subject to the following conditions:
321
+
322
+ The above copyright notice and this permission notice shall be included in all
323
+ copies or substantial portions of the Software.
324
+
325
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
326
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
327
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
328
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
329
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
330
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
331
+ ```
332
+
66
333
  ## @floating-ui/utils@0.2.12
67
334
 
68
335
  License: MIT
@@ -224,6 +491,36 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
224
491
  SOFTWARE.
225
492
  ```
226
493
 
494
+ ## @preact/signals-core@1.14.4
495
+
496
+ License: MIT
497
+
498
+ ### LICENSE
499
+
500
+ ```text
501
+ The MIT License (MIT)
502
+
503
+ Copyright (c) 2022-present Preact Team
504
+
505
+ Permission is hereby granted, free of charge, to any person obtaining a copy
506
+ of this software and associated documentation files (the "Software"), to deal
507
+ in the Software without restriction, including without limitation the rights
508
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
509
+ copies of the Software, and to permit persons to whom the Software is
510
+ furnished to do so, subject to the following conditions:
511
+
512
+ The above copyright notice and this permission notice shall be included in all
513
+ copies or substantial portions of the Software.
514
+
515
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
516
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
517
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
518
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
519
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
520
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
521
+ SOFTWARE.
522
+ ```
523
+
227
524
  ## @tanstack/highlight@1.0.0
228
525
 
229
526
  License: MIT
package/dist/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { C as decodeStateFile, D as daemonEntryPath, E as resolveStateRoot, O as referencedBlobs, S as renameWithRetry, T as resolveRuntimeLocation, a as DAEMON_LOCK_NAME, b as proofMatches, c as readIpcKey, d as inspectOwner, f as readCurrentLock, g as encodeFrame, h as FrameDecoder, i as requirePrivateDirectoryIfExists, k as version, l as readPointer, m as systemProcessProbe, n as ensurePrivateDirectory, o as POINTER_FILE, p as releaseLock, r as inspectPrivateDirectory, s as START_LOCK_NAME, t as startDaemon, u as acquireLock, v as computeProof, w as currentPathEnvironment, x as removeWithRetry, y as createNonce } from "./main-C3SHFgNa.js";
2
+ import { C as decodeStateFile, D as daemonEntryPath, E as resolveStateRoot, O as referencedBlobs, S as renameWithRetry, T as resolveRuntimeLocation, a as DAEMON_LOCK_NAME, b as proofMatches, c as readIpcKey, d as inspectOwner, f as readCurrentLock, g as encodeFrame, h as FrameDecoder, i as requirePrivateDirectoryIfExists, k as version, l as readPointer, m as systemProcessProbe, n as ensurePrivateDirectory, o as POINTER_FILE, p as releaseLock, r as inspectPrivateDirectory, s as START_LOCK_NAME, t as startDaemon, u as acquireLock, v as computeProof, w as currentPathEnvironment, x as removeWithRetry, y as createNonce } from "./main-001DhaNk.js";
3
3
  import { A as successEnvelope, C as VdeError, D as ExitCode, E as isVdeError, O as envelopeSchema, T as isErrorCode, Y as LIMITS, k as errorEnvelope, w as exitCodeForError } from "./search-index-B7DqaWh6.js";
4
4
  import fs, { fstatSync } from "node:fs";
5
5
  import { lstat, readFile, readdir, stat as stat$1, writeFile } from "node:fs/promises";
package/dist/daemon.js CHANGED
@@ -1,4 +1,4 @@
1
- import { k as version, t as startDaemon, w as currentPathEnvironment } from "./main-C3SHFgNa.js";
1
+ import { k as version, t as startDaemon, w as currentPathEnvironment } from "./main-001DhaNk.js";
2
2
  import { E as isVdeError } from "./search-index-B7DqaWh6.js";
3
3
  //#region src/daemon.ts
4
4
  function notifyParent(message) {