kindy-editor 3.2.6 → 3.2.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.
Files changed (31) hide show
  1. package/dist-lib/assets/{worker-B7ALyZOw.js → worker-DjZBUOhB.js} +1009 -997
  2. package/dist-lib/assets/{worker-z-dyEi8F.js → worker-Du8hmveE.js} +2234 -2222
  3. package/dist-lib/builder.js +4 -4
  4. package/dist-lib/events.js +9 -120
  5. package/dist-lib/export.js +9 -11
  6. package/dist-lib/generate-toc.js +3 -3
  7. package/dist-lib/import.js +2 -2
  8. package/dist-lib/index-D5dkvB0x.js +490 -0
  9. package/dist-lib/{editorApp-Bu3dbUIU.js → kindy-editor-T1YCQdwF.js} +13483 -11185
  10. package/dist-lib/kindy-editor.js +4 -4
  11. package/dist-lib/measure.js +3 -4
  12. package/dist-lib/{measureHost-CpqJsipA.js → measureHost-BG9FPivu.js} +17 -18
  13. package/dist-lib/{paintStyle-Cb7IGKPW.js → metrics-D7Ma2xlj.js} +175 -148
  14. package/dist-lib/{parse-CKw-ZDr9.js → parse-BsUkqk-n.js} +3 -3
  15. package/dist-lib/{pipeline-BkC7G8gU.js → pipeline-CX_Hc5BD.js} +850 -837
  16. package/dist-lib/{qrcode-oNwKusWD.js → qrcode--5MhVNEZ.js} +1 -1
  17. package/dist-lib/{qrcode-efBlPzzh.js → qrcode-CR8i1-w0.js} +11 -11
  18. package/dist-lib/recalc-docx.js +1 -1
  19. package/dist-lib/{recalcToc-Bc8V9Ecn.js → recalcToc-zAFS4S6S.js} +755 -742
  20. package/dist-lib/{stylesheet-BT1DGhnx.js → stylesheet-BfxJTGA5.js} +1 -1
  21. package/dist-lib/{webmcp-ClHEa6Gq.js → webmcp-Ds469lXP.js} +2 -2
  22. package/docs/find-and-replace.md +224 -0
  23. package/docs/security-review.md +26 -0
  24. package/docs/table-editing.md +17 -2
  25. package/docs/table-form-integration.md +53 -1
  26. package/package.json +6 -6
  27. package/types/import.d.ts +7 -0
  28. package/types/kindy-editor.d.ts +30 -0
  29. package/dist-lib/changeAggregator-ZI959nPP.js +0 -376
  30. package/dist-lib/kindy-editor-CToKn_gP.js +0 -2171
  31. package/dist-lib/metrics-CdfHD-8y.js +0 -31
@@ -1,31 +0,0 @@
1
- import { S as u, c as r, f as m, a as f, m as x } from "./paintStyle-Cb7IGKPW.js";
2
- let o = null, a = null;
3
- function C(t) {
4
- o = t;
5
- }
6
- function d() {
7
- return o || (a || (a = document.createElement("canvas").getContext("2d")), a);
8
- }
9
- function F(t) {
10
- const n = t.italic ? "italic " : "", e = t.bold ? "700" : "400", c = t.verticalAlign ? Math.round(t.fontSizePx * u) : t.fontSizePx, i = r(m(t.fontFamily)).clone;
11
- return `${n}${e} ${c}px ${i}`;
12
- }
13
- function y(t, n) {
14
- const e = d();
15
- return e.font = n, e.measureText(t).width;
16
- }
17
- function S(t) {
18
- const n = f().metricsCache;
19
- let e = n.get(t);
20
- if (!e) {
21
- const c = /(\d+(?:\.\d+)?)px/.exec(t), i = c ? parseFloat(c[1]) : 16, l = t.slice(t.indexOf("px ") + 3).trim(), s = x(r(l).clone);
22
- e = { ascent: Math.round(s.ascent * i), descent: Math.round(s.descent * i) }, n.set(t, e);
23
- }
24
- return e;
25
- }
26
- export {
27
- F as c,
28
- S as f,
29
- y as m,
30
- C as s
31
- };