@listen-fire/handbook 0.12.0-rc.7 → 0.12.0
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/dist/builtins.md +12 -2
- package/package.json +6 -7
package/dist/builtins.md
CHANGED
|
@@ -518,13 +518,23 @@ File: File.from(digest, "text")
|
|
|
518
518
|
|
|
519
519
|
### pdf.render
|
|
520
520
|
|
|
521
|
-
A PDF is drawn by the `@lf/pdf` plugin: `pdf.render(content)` → a `file` value, the PDF, always present. The content is drawn as plain text, line breaks preserved. `{ pageSize: "a4" | "letter", margin }`
|
|
521
|
+
A PDF is drawn by the `@lf/pdf` plugin: `pdf.render(content)` → a `file` value, the PDF, always present. The content is drawn as plain text, line breaks preserved. `{ pageSize: "a4" | "letter", margin, name }` is the settings record, last: `margin` in points from 0 to 200, `name` the file's name (`.pdf` is added when missing; the default is `movement-artifact.pdf`). A character the default writer has no glyph for (anything outside Latin-1 and the common punctuation) is drawn as `?` and the run is warned, naming `@lf/pdf`.
|
|
522
522
|
|
|
523
523
|
```
|
|
524
524
|
import { `@lf/pdf` as pdf } from plugins
|
|
525
525
|
|
|
526
526
|
File: pdf.render(digest)
|
|
527
|
-
File: pdf.render(digest, { pageSize: "letter" })
|
|
527
|
+
File: pdf.render(digest, { pageSize: "letter", name: "Q3 report" })
|
|
528
|
+
```
|
|
529
|
+
|
|
530
|
+
### web.render
|
|
531
|
+
|
|
532
|
+
`web.render(content)` → a `file` value, the PDF, always present: the `@lf/web` plugin draws text or HTML with the host's browser, so HTML keeps its layout. It takes the same settings record as `pdf.render` (`{ pageSize, margin, name }`) and is refused on a host with no browser.
|
|
533
|
+
|
|
534
|
+
```
|
|
535
|
+
import { `@lf/web` as web } from plugins
|
|
536
|
+
|
|
537
|
+
File: web.render(emailBody, { name: "Message" })
|
|
528
538
|
```
|
|
529
539
|
|
|
530
540
|
### File.read
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@listen-fire/handbook",
|
|
3
3
|
"license": "Apache-2.0",
|
|
4
|
-
"version": "0.12.0
|
|
4
|
+
"version": "0.12.0",
|
|
5
5
|
"description": "The movement language's handbook: the hand-written chapters, the front page, the routes into them and the language search over them. A host adds its own systems' and plugins' sections on top (the platform assembles system:* and plugin:* chapters). `testing` is the catalog every shown example is checked against, for a host's tests of its own sections.",
|
|
6
6
|
"engines": {
|
|
7
|
-
"node": "22.
|
|
7
|
+
"node": ">=22.23.4 <23"
|
|
8
8
|
},
|
|
9
9
|
"main": "./dist/index.js",
|
|
10
10
|
"types": "./dist/index.d.ts",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
},
|
|
22
22
|
"type": "commonjs",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@listen-fire/engine": "^0.12.0
|
|
25
|
-
"@listen-fire/
|
|
26
|
-
"@listen-fire/
|
|
24
|
+
"@listen-fire/engine": "^0.12.0",
|
|
25
|
+
"@listen-fire/engine-contracts": "^0.12.0",
|
|
26
|
+
"@listen-fire/movement-lang": "^0.12.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/jest": "29.5.14",
|
|
@@ -39,8 +39,7 @@
|
|
|
39
39
|
"dist"
|
|
40
40
|
],
|
|
41
41
|
"publishConfig": {
|
|
42
|
-
"access": "public"
|
|
43
|
-
"tag": "next"
|
|
42
|
+
"access": "public"
|
|
44
43
|
},
|
|
45
44
|
"scripts": {
|
|
46
45
|
"code:type-check": "tsc --pretty --noEmit",
|