@folijs/pdf 0.6.0 → 1.0.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/CHANGELOG.md CHANGED
@@ -1,5 +1,101 @@
1
1
  # @folijs/pdf
2
2
 
3
+ ## 1.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - 7f252a3: **Foli 1.0.** The first stable release: from here the public API and the saved format change only
8
+ as [semver](https://semver.org/) allows. Moving from 0.x:
9
+ [the migration guide](https://foli.josepaudenis.com/docs/guides/migrating-from-0x/) (every
10
+ change since 0.6.0, each older minor's breaks, documents v1 to v5).
11
+
12
+ **What 1.0 promises** ([ADR-0008](https://foli.josepaudenis.com/docs/decisions/ADR-0008-1.0-contract-and-extensions/),
13
+ [versions and deprecation](https://foli.josepaudenis.com/docs/deprecation/)):
14
+ - **The API.** What each package's entry exports by name, as the
15
+ [API reference](https://foli.josepaudenis.com/docs/api/) lists it and its API report
16
+ (`api-report.d.ts`) records it, is the 1.x API: nothing is removed or changed before 2.0.
17
+ `@folijs/core/internal` is what the other Foli packages use from core, with no promise. The
18
+ `--foli-*` CSS variables and the documented classes are part of it.
19
+ - **Deprecation.** A name that will go is first deprecated in a minor (`@deprecated` naming its
20
+ replacement, a one-time development warning where cheap, listed in the changelog) and stays
21
+ until the next major at least.
22
+ - **One version.** The five packages share one version, and `@folijs/view`, `@folijs/react`,
23
+ `@folijs/docx` and `@folijs/pdf` take `@folijs/core` (React also `@folijs/view`) as a peer at
24
+ exactly that version: install and upgrade them together.
25
+ - **Saved documents.** Every 1.x reads every earlier format without loss: schema v1 to v5 (0.1.0
26
+ to 0.6.0), and any version a 1.x minor adds (only by adding, with a migration). A document is
27
+ saved with the lowest version its content needs: 1.0 saves v5, as 0.6.0 does. An older 1.x
28
+ refuses a document that needs a newer version with a `FoliDocumentError`; it never reads one
29
+ in part. Apps that walk the JSON must ignore node and mark types they do not know.
30
+
31
+ **New since 0.6.0** (details in the entries below):
32
+ - Custom nodes and marks (`Extension`: namespaced inline and block leaves and marks on Word's
33
+ schema), validated, saved in the JSON, copied and pasted, found, tracked, and written to `.docx`
34
+ as content controls tagged `foli:` and read back; without their extension they load as foreign
35
+ nodes and are kept.
36
+ - View extensions in `@folijs/view` (`ViewExtension`): node views (block ones laid out and split
37
+ across pages), mark views, decorations and plugin views, through `createEditor({ extensions })`
38
+ or React's `extensions` prop.
39
+ - Named commands from plugins (`PluginSpec.commands`, `editor.commands`, typed by augmenting
40
+ `FoliCommands`); a plugin's keymap overrides the view's own keys, the rest listed as reserved
41
+ ([keyboard](https://foli.josepaudenis.com/docs/keyboard/)).
42
+ - Toolbar items: `FoliToolbar`'s and `FoliEditor`'s `items`, the built-in items by name
43
+ (`toolbarItems`, `defaultToolbarItems`), app buttons and menus, `useCommand`.
44
+ - The public API listed by name, internals stripped from the published types, exact peers.
45
+ - Safer `.docx` import (`maxNodes`, a long paragraph in linear time), pictures copied into another
46
+ document with their images, faster keystrokes in long documents with lists.
47
+ - The docs site, [foli.josepaudenis.com/docs](https://foli.josepaudenis.com/docs/): getting
48
+ started, guides (extensions, theming, migration), the API reference per package, live examples,
49
+ the limitations.
50
+
51
+ **Known risks, accepted by the owner for 1.0 (2026-11-20):**
52
+ - The manual checks of ADR-0003 were never run on real devices: IME and dead keys on real
53
+ Windows, macOS, Android and iOS input methods (only Chromium's emulation is automated), screen
54
+ readers (NVDA, VoiceOver), macOS key bindings, spellcheck and autocorrect at a page edge, pastes
55
+ from real Word, Google Docs and LibreOffice, Safari (tests run on Playwright's WebKit on
56
+ Windows). A failure found later is fixed in a 1.x patch.
57
+ - Phase 5's speed targets are missed at 100 pages (104 pages, the owner's laptop, Chromium; Firefox
58
+ in brackets; [benchmarks](https://foli.josepaudenis.com/docs/benchmarks/#10-numbers)): the
59
+ first layout takes 118 ms (146; target 60), a full re-flow 148 ms (164; target 100), Enter's
60
+ handler 9.9 ms (14; target 8) and its paint p95 35 ms (49; target 25). Typing meets them in
61
+ Chromium (handler 7.9 ms, paint p95 14 ms), not in Firefox (11 and 28 ms). Every page is in the
62
+ DOM and laid out on load (no virtualization); the incremental redraw is for a 1.x minor.
63
+ - Everything else is a documented known limit:
64
+ [limitations](https://foli.josepaudenis.com/docs/limitations/).
65
+
66
+ ### Minor Changes
67
+
68
+ - 2fac8e8: The public API is now listed by name (ADR-0008). `@folijs/core`'s entry exports each public name
69
+ explicitly; what the other Foli packages need from core without a promise moved to a second
70
+ entry, `@folijs/core/internal` (the Word context and envelope: `wordContext`, `withEnvelope`,
71
+ `setComments`, `StoryStep`, `CommentStep`, `EnvelopeStep`; the formatting resolver: `Resolver`,
72
+ `formatNumber`, `tableConditions` and their types; clipboard fitting: `copiedDefinitions`,
73
+ `fitPaste`, `fitPastedV2`; layout helpers; `schema`, `checkSection`, `checkControl`,
74
+ `RUN_PROPERTY_MARKS`), and a few helpers left the API (`defaultTextblockType`, `isNote`,
75
+ `storyBody`). Every other module export is tagged `@internal` and left out of the published
76
+ types. `@folijs/view` exports `RenderDocumentOptions`, the type of `renderDocument`'s options
77
+ (`review`, `fieldCodes`, `resource`). The model classes' constructors now appear in the types
78
+ with their parameters (create nodes and marks through `NodeType`, `MarkType` and `Schema`).
79
+ `@folijs/view`, `@folijs/react`, `@folijs/docx` and `@folijs/pdf` now take `@folijs/core` (and
80
+ `@folijs/react` also `@folijs/view`) as a peer dependency at exactly their own version instead of
81
+ a dependency: install the Foli packages together, at one version (npm 7+ and pnpm install peers
82
+ themselves).
83
+
84
+ ### Patch Changes
85
+
86
+ - 75d0cb6: `exportDocx` and `DocxPackage.write` return, and `exportPdf`'s `pdf` is, a
87
+ `Uint8Array<ArrayBuffer>` (they always were): with TypeScript 5.7 or later the bytes go into a
88
+ `Blob` or a `Response` without a cast. The published types now need TypeScript 5.7 or later.
89
+ - Updated dependencies [0cb49e7]
90
+ - Updated dependencies [6e698b3]
91
+ - Updated dependencies [4f7197a]
92
+ - Updated dependencies [f96c3dc]
93
+ - Updated dependencies [c9c227d]
94
+ - Updated dependencies [2fac8e8]
95
+ - Updated dependencies [7f252a3]
96
+ - Updated dependencies [9a4a87f]
97
+ - @folijs/core@1.0.0
98
+
3
99
  ## 0.6.0
4
100
 
5
101
  ### Minor Changes
package/README.md CHANGED
@@ -5,7 +5,7 @@ v5 of `@folijs/core`) to PDF with a headless Chromium page your app supplies, fr
5
5
  layout: the pages the editor shows and prints. No browser dependency of its own: bring
6
6
  Playwright (1.42+) or Puppeteer.
7
7
 
8
- > Early release: the API may change in any 0.x minor version (changes in `CHANGELOG.md`).
8
+ > Stable since 1.0.0: the public API and the saved format follow semver ([versions and deprecation](https://foli.josepaudenis.com/docs/deprecation/)); changes in `CHANGELOG.md`. Docs: [foli.josepaudenis.com/docs](https://foli.josepaudenis.com/docs/).
9
9
 
10
10
  ```bash
11
11
  npm install @folijs/pdf @folijs/core
package/dist/index.d.ts CHANGED
@@ -49,7 +49,7 @@ export interface ExportPdfOptions {
49
49
  }
50
50
  export interface ExportedPdf {
51
51
  /** The PDF file. */
52
- pdf: Uint8Array;
52
+ pdf: Uint8Array<ArrayBuffer>;
53
53
  /** Its pages. */
54
54
  pages: number;
55
55
  /** The fields updated before printing, and those left as they were and why. */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,YAAY,EAEjB,KAAK,YAAY,EACjB,KAAK,UAAU,EAChB,MAAM,cAAc,CAAC;AAEtB;;;GAGG;AACH,MAAM,WAAW,OAAO;IACtB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAC3C,YAAY,CAAC,OAAO,EAAE;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAE7D,QAAQ,CAAC,EAAE,EAAE,CAAC,GAAG,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,EAAE,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C/B,2FAA2F;IAC3F,IAAI,EAAE,OAAO,CAAC;IACd;;;OAGG;IACH,SAAS,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,YAAY,KAAK,QAAQ,CAAC,GAAG,SAAS,CAAC;IAC5E,2FAA2F;IAC3F,MAAM,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IAChC;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B;AAED,MAAM,WAAW,WAAW;IAC1B,oBAAoB;IACpB,GAAG,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;IAC7B,iBAAiB;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,+EAA+E;IAC/E,MAAM,EAAE,YAAY,CAAC;CACtB;AAED,yDAAyD;AACzD,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,YAAY,CAAC;IACvB,6DAA6D;IAC7D,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,CAAC;IACtC,MAAM,EAAE,UAAU,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,2CAA2C;AAC3C,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,YAAY,CAAC;CACtB;AAkED;;;;;;GAMG;AACH,wBAAsB,SAAS,CAC7B,QAAQ,EAAE,YAAY,EACtB,OAAO,EAAE,gBAAgB,GACxB,OAAO,CAAC,WAAW,CAAC,CA6BtB"}
package/dist/index.js CHANGED
@@ -88,6 +88,7 @@ export async function exportPdf(document, options) {
88
88
  outline: true,
89
89
  tagged: true,
90
90
  });
91
- return { pdf, pages: rendered.pages, fields: rendered.fields };
91
+ // Playwright's Buffer and Puppeteer's Uint8Array are never over a SharedArrayBuffer.
92
+ return { pdf: pdf, pages: rendered.pages, fields: rendered.fields };
92
93
  }
93
94
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1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