kindy-editor 3.1.0 → 3.2.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.
Files changed (50) hide show
  1. package/README.md +27 -2
  2. package/dist-lib/builder.js +4 -4
  3. package/dist-lib/{editorApp-F48A7I6z.js → editorApp-CtrnSSsP.js} +9620 -8998
  4. package/dist-lib/events.js +1 -1
  5. package/dist-lib/export.js +6 -6
  6. package/dist-lib/generate-toc.js +3 -3
  7. package/dist-lib/import.js +2 -2
  8. package/dist-lib/{kindy-editor-DnWvHijW.js → kindy-editor-CoeqFYYG.js} +100 -85
  9. package/dist-lib/kindy-editor.js +1 -1
  10. package/dist-lib/measure.js +3 -3
  11. package/dist-lib/{measureHost-Ca_gM01T.js → measureHost-mtLj644m.js} +2 -2
  12. package/dist-lib/{metrics-BFTHu_jF.js → metrics-DHgtBP-R.js} +1 -1
  13. package/dist-lib/{paintStyle-GQFOpJKx.js → paintStyle-Cjk9egel.js} +10 -9
  14. package/dist-lib/{parse-DmTwoFz6.js → parse-D3V5Abci.js} +11 -11
  15. package/dist-lib/{pipeline-BTemNJdx.js → pipeline-JfHxzjns.js} +1 -1
  16. package/dist-lib/recalc-docx.js +1 -1
  17. package/dist-lib/{recalcToc-c9kIMGbk.js → recalcToc-MRszlj8g.js} +80 -80
  18. package/dist-lib/{stylesheet-BcU1Q_JI.js → stylesheet-E5bu1xch.js} +1 -1
  19. package/dist-lib/{toc-mgkp-28Y.js → toc-DSwkNKls.js} +15 -15
  20. package/dist-lib/{webmcp-BLC_QALL.js → webmcp-Dr3n_xAO.js} +2 -2
  21. package/docs/.vitepress/cache/deps/_metadata.json +7 -7
  22. package/docs/.vitepress/config.ts +4 -0
  23. package/docs/.vitepress/dist/404.html +2 -2
  24. package/docs/.vitepress/dist/assets/{app.DYJtoZwO.js → app.rXBVdtfQ.js} +1 -1
  25. package/docs/.vitepress/dist/assets/chunks/framework.D9_ZvfG7.js +19 -0
  26. package/docs/.vitepress/dist/assets/chunks/{theme.BTGY7hKU.js → theme.CFP3sGN8.js} +1 -1
  27. package/docs/.vitepress/dist/assets/fonts.md.W87hfQua.js +75 -0
  28. package/docs/.vitepress/dist/assets/fonts.md.W87hfQua.lean.js +1 -0
  29. package/docs/.vitepress/dist/assets/{http-event-sink.md.BViKRVhd.js → http-event-sink.md.D7mTerle.js} +1 -1
  30. package/docs/.vitepress/dist/assets/{http-event-sink.md.BViKRVhd.lean.js → http-event-sink.md.D7mTerle.lean.js} +1 -1
  31. package/docs/.vitepress/dist/assets/{index.md.Bc6V9_E3.js → index.md.DN1JXJhG.js} +1 -1
  32. package/docs/.vitepress/dist/assets/{index.md.Bc6V9_E3.lean.js → index.md.DN1JXJhG.lean.js} +1 -1
  33. package/docs/.vitepress/dist/assets/{public-events.md.CMTD1Y84.js → public-events.md.Rj44CdBr.js} +1 -1
  34. package/docs/.vitepress/dist/assets/{public-events.md.CMTD1Y84.lean.js → public-events.md.Rj44CdBr.lean.js} +1 -1
  35. package/docs/.vitepress/dist/assets/{review-comments.md.19jCC2Pi.js → review-comments.md.466PcTcC.js} +1 -1
  36. package/docs/.vitepress/dist/assets/{review-comments.md.19jCC2Pi.lean.js → review-comments.md.466PcTcC.lean.js} +1 -1
  37. package/docs/.vitepress/dist/assets/table-editing.md.Bso_sgTE.js +28 -0
  38. package/docs/.vitepress/dist/assets/table-editing.md.Bso_sgTE.lean.js +1 -0
  39. package/docs/.vitepress/dist/fonts.html +99 -0
  40. package/docs/.vitepress/dist/hashmap.json +1 -1
  41. package/docs/.vitepress/dist/http-event-sink.html +6 -6
  42. package/docs/.vitepress/dist/index.html +6 -6
  43. package/docs/.vitepress/dist/public-events.html +7 -7
  44. package/docs/.vitepress/dist/review-comments.html +6 -6
  45. package/docs/.vitepress/dist/table-editing.html +52 -0
  46. package/docs/fonts.md +139 -0
  47. package/docs/table-editing.md +102 -0
  48. package/package.json +4 -1
  49. package/types/kindy-editor.d.ts +65 -1
  50. package/docs/.vitepress/dist/assets/chunks/framework.DCJ5T8RY.js +0 -19
package/README.md CHANGED
@@ -5,8 +5,7 @@ Canvas-rendered Word-accurate document editor — an embeddable library.
5
5
  ## Quick Start
6
6
 
7
7
  ```bash
8
- npm install
9
- npm run dev # → http://localhost:5173/
8
+ npm install kindy-editor
10
9
  ```
11
10
 
12
11
  ## Embed
@@ -19,6 +18,28 @@ const editor = new KindyEditor({
19
18
  });
20
19
  ```
21
20
 
21
+ ### External fonts / CDN
22
+
23
+ ```js
24
+ const editor = new KindyEditor({
25
+ container: document.getElementById("editor"),
26
+ fonts: {
27
+ manifests: ["https://cdn.example.com/kindy-fonts/v1/manifest.json"],
28
+ baseUrl: "https://cdn.example.com/kindy-fonts/v1/",
29
+ fonts: [{
30
+ family: "Inter",
31
+ faces: { regular: "Inter-Regular.ttf", bold: "Inter-Bold.ttf" },
32
+ sizing: { ascent: 0.969, descent: 0.241 },
33
+ }],
34
+ },
35
+ });
36
+ ```
37
+
38
+ External TTF/OTF faces are used consistently by Canvas layout and PDF export;
39
+ DOCX keeps the declared family name and the same layout metrics. Authenticated
40
+ asset hosts can be integrated through `fonts.loader`. See
41
+ [Fonts and CDN](./docs/fonts.md).
42
+
22
43
  ## Exports
23
44
 
24
45
  | Path | Description |
@@ -38,6 +59,10 @@ the [HTTP sink guide](./docs/http-event-sink.md). For complete anchored
38
59
  discussions, host-owned @mention UI, permission callbacks, and notification event
39
60
  payloads, see [Review comments and @mentions](./docs/review-comments.md).
40
61
 
62
+ Table row/column/table selection, span-safe structural mutations, public
63
+ `TableSelection`/`TableAction` APIs, and current nested-table limitations are
64
+ documented in [Table editing](./docs/table-editing.md).
65
+
41
66
  ## Architecture
42
67
 
43
68
  ```
@@ -1,8 +1,8 @@
1
- import { t as k, B as I, b as E, g as N } from "./toc-mgkp-28Y.js";
2
- import { s as F, d as H } from "./stylesheet-BcU1Q_JI.js";
1
+ import { t as k, B as I, b as E, g as N } from "./toc-DSwkNKls.js";
2
+ import { s as F, d as H } from "./stylesheet-E5bu1xch.js";
3
3
  import { d as B, D as O, a as W, b as q, n as $, m as U } from "./lists-DpmgbDyt.js";
4
- import { l as j, p as K, D as z, b as _, B as T } from "./parse-DmTwoFz6.js";
5
- import { b as G, e as V, r as Z } from "./pipeline-BTemNJdx.js";
4
+ import { l as j, p as K, D as z, b as _, B as T } from "./parse-D3V5Abci.js";
5
+ import { b as G, e as V, r as Z } from "./pipeline-JfHxzjns.js";
6
6
  function M(a, t) {
7
7
  return { root: j(a), display: t };
8
8
  }