kindy-editor 3.2.6 → 3.2.7
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-lib/assets/{worker-B7ALyZOw.js → worker-DjZBUOhB.js} +1009 -997
- package/dist-lib/assets/{worker-z-dyEi8F.js → worker-pUzyeoiR.js} +2 -4
- package/dist-lib/builder.js +4 -4
- package/dist-lib/{changeAggregator-ZI959nPP.js → changeAggregator-DEuynIcV.js} +1 -1
- package/dist-lib/{editorApp-Bu3dbUIU.js → editorApp-BtDzRfJq.js} +6070 -5955
- package/dist-lib/events.js +2 -2
- package/dist-lib/export.js +7 -9
- package/dist-lib/generate-toc.js +3 -3
- package/dist-lib/import.js +2 -2
- package/dist-lib/{kindy-editor-CToKn_gP.js → kindy-editor---oVGhZU.js} +32 -13
- package/dist-lib/kindy-editor.js +2 -2
- package/dist-lib/{parse-CKw-ZDr9.js → parse-CpGoMQ_v.js} +3 -3
- package/dist-lib/{pipeline-BkC7G8gU.js → pipeline-CCwWMjhw.js} +850 -837
- package/dist-lib/{qrcode-efBlPzzh.js → qrcode-B-JKix2T.js} +5 -5
- package/dist-lib/{qrcode-oNwKusWD.js → qrcode-BCaJLV1G.js} +1 -1
- package/dist-lib/recalc-docx.js +1 -1
- package/dist-lib/{recalcToc-Bc8V9Ecn.js → recalcToc-CaiTn2IJ.js} +1 -1
- package/dist-lib/{stylesheet-BT1DGhnx.js → stylesheet-BPIJJMlK.js} +1 -1
- package/dist-lib/{webmcp-ClHEa6Gq.js → webmcp-B0swfp0T.js} +2 -2
- package/docs/find-and-replace.md +224 -0
- package/docs/security-review.md +26 -0
- package/docs/table-editing.md +3 -1
- package/docs/table-form-integration.md +4 -0
- package/package.json +6 -6
- package/types/import.d.ts +7 -0
- package/types/kindy-editor.d.ts +26 -0
package/dist-lib/events.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as l, a as I, E as u, c as h } from "./changeAggregator-
|
|
2
|
-
import "./qrcode-
|
|
1
|
+
import { C as l, a as I, E as u, c as h } from "./changeAggregator-DEuynIcV.js";
|
|
2
|
+
import "./qrcode-B-JKix2T.js";
|
|
3
3
|
const n = "1.0";
|
|
4
4
|
function c(e) {
|
|
5
5
|
const t = /* @__PURE__ */ new Set();
|
package/dist-lib/export.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { B as $e } from "./index-6mKfgpcs.js";
|
|
2
2
|
import { c as Ct, g as Ir, a as ec, $ as tc, b as ka, r as jf, d as Uf, i as zf, e as Ba, s as rc } from "./measureHost-CpqJsipA.js";
|
|
3
3
|
import { _ as nc, f as nt } from "./__vite-browser-external-BYRIRx8p.js";
|
|
4
|
-
import { D as ic, d as ac, t as oc, a as sc, i as fc } from "./qrcode-
|
|
5
|
-
import { i as lc, r as qf, g as cc, b as uc, u as hc, f as dc, d as pc } from "./qrcode-
|
|
4
|
+
import { D as ic, d as ac, t as oc, a as sc, i as fc } from "./qrcode-B-JKix2T.js";
|
|
5
|
+
import { i as lc, r as qf, g as cc, b as uc, u as hc, f as dc, d as pc } from "./qrcode-BCaJLV1G.js";
|
|
6
6
|
import { q as Ma, r as gc, t as La, u as Da, T as xc, v as Na, x as yc, y as mc, I as bc, D as wc, B as ja, G as ea, U as Ua, J as za, z as vc, S as _c, w as Sc, K as Ec, O as Ac, Q as Pc, M as Tc, R as Rc, N as Cc, V as Oc, W as Fc, s as Tr, a3 as $f, L as Ic, b as kc, d as Bc, p as Mc, a4 as Wf, H as Lc, A as Dc, C as Nc } from "./paintStyle-Cb7IGKPW.js";
|
|
7
7
|
import { a as jc, z as Uc } from "./browser-ODPzT3Lm.js";
|
|
8
8
|
import { h as Wt, a as Je, r as kr, b as ca, p as zc, c as dr, d as Hf, e as qc, t as $c } from "./styleProps-Dg3Wf-ZJ.js";
|
|
9
9
|
import { e as j, X as st, a as Gf, W as Ht, t as Zf } from "./xmlWrite-DxSDwuaP.js";
|
|
10
|
-
import { a as Wc } from "./stylesheet-
|
|
11
|
-
import { p as Hc, c as Gc } from "./recalcToc-
|
|
10
|
+
import { a as Wc } from "./stylesheet-BPIJJMlK.js";
|
|
11
|
+
import { p as Hc, c as Gc } from "./recalcToc-CaiTn2IJ.js";
|
|
12
12
|
var pr = { exports: {} }, qa;
|
|
13
13
|
function ua() {
|
|
14
14
|
if (qa) return pr.exports;
|
|
@@ -3532,9 +3532,7 @@ function tr() {
|
|
|
3532
3532
|
}
|
|
3533
3533
|
}), ti;
|
|
3534
3534
|
}
|
|
3535
|
-
var ri = {}, xr = { exports: {} };
|
|
3536
|
-
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
3537
|
-
var ts;
|
|
3535
|
+
var ri = {}, xr = { exports: {} }, ts;
|
|
3538
3536
|
function Fu() {
|
|
3539
3537
|
return ts || (ts = 1, (function(e, t) {
|
|
3540
3538
|
var n = qt(), r = n.Buffer;
|
|
@@ -3546,7 +3544,7 @@ function Fu() {
|
|
|
3546
3544
|
function a(o, s, f) {
|
|
3547
3545
|
return r(o, s, f);
|
|
3548
3546
|
}
|
|
3549
|
-
|
|
3547
|
+
i(r, a), a.from = function(o, s, f) {
|
|
3550
3548
|
if (typeof o == "number")
|
|
3551
3549
|
throw new TypeError("Argument must not be a number");
|
|
3552
3550
|
return r(o, s, f);
|
|
@@ -14095,7 +14093,7 @@ async function rp(e, t = {}) {
|
|
|
14095
14093
|
}
|
|
14096
14094
|
async function np(e, t, n) {
|
|
14097
14095
|
await zf();
|
|
14098
|
-
const { createLayoutEngine: r } = await import("./recalcToc-
|
|
14096
|
+
const { createLayoutEngine: r } = await import("./recalcToc-CaiTn2IJ.js").then((g) => g.b), i = r(n, t.cjk).layout(e), a = new $l(), o = t.images ?? {}, s = new $r({ autoFirstPage: !1, compress: !0, font: !1 }), f = ap(s), d = /* @__PURE__ */ new Set(), p = (g, m, A) => {
|
|
14099
14097
|
const C = Ba(g, m, A);
|
|
14100
14098
|
return d.has(C.file) || (s.registerFont(C.file, Qi(C.bytes)), d.add(C.file), C.substituted && a.warn("font-substituted", g)), C.file;
|
|
14101
14099
|
}, h = /* @__PURE__ */ new Set();
|
package/dist-lib/generate-toc.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { u as G, s as C, a as R, z as M } from "./browser-ODPzT3Lm.js";
|
|
2
|
-
import { a as H, d as K, t as q, i as J, b as Q } from "./qrcode-
|
|
2
|
+
import { a as H, d as K, t as q, i as J, b as Q } from "./qrcode-B-JKix2T.js";
|
|
3
3
|
import { f as V } from "./contentTypes-ChqPfcVI.js";
|
|
4
|
-
import { r as N } from "./pipeline-
|
|
5
|
-
import { p as Y, c as Z } from "./recalcToc-
|
|
4
|
+
import { r as N } from "./pipeline-CCwWMjhw.js";
|
|
5
|
+
import { p as Y, c as Z } from "./recalcToc-CaiTn2IJ.js";
|
|
6
6
|
import { r as tt, p as et } from "./styleProps-Dg3Wf-ZJ.js";
|
|
7
7
|
import { e as d, t as T, a as nt } from "./xmlWrite-DxSDwuaP.js";
|
|
8
8
|
const b = (t) => d("w:r", void 0, d("w:fldChar", { "w:fldCharType": t })), j = (t) => d("w:r", void 0, d("w:instrText", { "xml:space": "preserve" }, nt(t)));
|
package/dist-lib/import.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./qrcode-
|
|
2
|
-
import { m as x } from "./stylesheet-
|
|
3
|
-
import { H as m, A as f, C as v, b as y, I as w, T as C, F as T, d as S, e as L, E as D, D as
|
|
4
|
-
import { E as
|
|
1
|
+
import "./qrcode-B-JKix2T.js";
|
|
2
|
+
import { m as x } from "./stylesheet-BPIJJMlK.js";
|
|
3
|
+
import { H as m, A as f, C as v, b as y, I as w, T as C, F as T, d as S, e as L, E as D, D as A } from "./paintStyle-Cb7IGKPW.js";
|
|
4
|
+
import { E as P } from "./changeAggregator-DEuynIcV.js";
|
|
5
5
|
const z = 1.1, B = 0.25, R = 5, M = 36, c = {
|
|
6
6
|
canvasBackground: "#e8eaed",
|
|
7
|
-
grid:
|
|
7
|
+
grid: A,
|
|
8
8
|
gridMesh: "rgba(0,0,0,0.08)",
|
|
9
9
|
externalLink: D,
|
|
10
10
|
accent: L,
|
|
@@ -62,11 +62,11 @@ function Q(r = {}) {
|
|
|
62
62
|
typography: e,
|
|
63
63
|
stylesheet: x(e),
|
|
64
64
|
fonts: I(r.fonts),
|
|
65
|
-
cjk:
|
|
65
|
+
cjk: N(r.cjk),
|
|
66
66
|
develop: r.develop ?? !1
|
|
67
67
|
};
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function N(r) {
|
|
70
70
|
const e = r ? l(r) : {};
|
|
71
71
|
return {
|
|
72
72
|
...e,
|
|
@@ -80,7 +80,7 @@ function l(r) {
|
|
|
80
80
|
for (const [t, o] of Object.entries(r)) o !== void 0 && (e[t] = o);
|
|
81
81
|
return e;
|
|
82
82
|
}
|
|
83
|
-
const
|
|
83
|
+
const O = "kindy-editor-styles", H = `
|
|
84
84
|
/* ===== Design tokens (Office 365 / Fluent-inspired palette) ========= */
|
|
85
85
|
.kindy-editor-root {
|
|
86
86
|
/* Brand blues */
|
|
@@ -783,7 +783,7 @@ function h(r, e) {
|
|
|
783
783
|
t.id = r, t.textContent = e, document.head.appendChild(t);
|
|
784
784
|
}
|
|
785
785
|
function J() {
|
|
786
|
-
h(
|
|
786
|
+
h(O, H);
|
|
787
787
|
}
|
|
788
788
|
const U = `
|
|
789
789
|
.ked-drag-handle{cursor:move;user-select:none;}
|
|
@@ -1795,7 +1795,7 @@ class $ {
|
|
|
1795
1795
|
ready;
|
|
1796
1796
|
handlers = /* @__PURE__ */ new Map();
|
|
1797
1797
|
constructor(e) {
|
|
1798
|
-
this.pendingQRCode = e.qrCode, this.events = new
|
|
1798
|
+
this.pendingQRCode = e.qrCode, this.events = new P(e.events), this.ready = new Promise((t) => {
|
|
1799
1799
|
const o = {
|
|
1800
1800
|
container: e.container,
|
|
1801
1801
|
backendUrl: e.backendUrl,
|
|
@@ -1834,7 +1834,7 @@ class $ {
|
|
|
1834
1834
|
onEvent: (n) => this.emit(n),
|
|
1835
1835
|
onPublicEvent: (n) => this.events.dispatch(n)
|
|
1836
1836
|
};
|
|
1837
|
-
e.onLoadProgress?.({ phase: "bundle", percent: 0, loaded: 0, total: 0 }), import("./editorApp-
|
|
1837
|
+
e.onLoadProgress?.({ phase: "bundle", percent: 0, loaded: 0, total: 0 }), import("./editorApp-BtDzRfJq.js").then((n) => n.e).then((n) => (e.onLoadProgress?.({ phase: "bundle", percent: p, loaded: 0, total: 0 }), n.mountEditorApp(o)));
|
|
1838
1838
|
});
|
|
1839
1839
|
}
|
|
1840
1840
|
/** Subscribe to a collaboration event. Returns an unsubscribe function. */
|
|
@@ -1859,8 +1859,7 @@ class $ {
|
|
|
1859
1859
|
this.pendingQRCode = e, this.handle?.setQRCode(e), typeof console < "u" && (e ? console.log(
|
|
1860
1860
|
"%c[KindyEditor]%c QR Code updated:",
|
|
1861
1861
|
"background:#2563eb;color:#fff;font-weight:bold;padding:1px 5px;border-radius:3px;",
|
|
1862
|
-
"color:#1e293b;font-weight:bold;"
|
|
1863
|
-
e
|
|
1862
|
+
"color:#1e293b;font-weight:bold;"
|
|
1864
1863
|
) : console.log(
|
|
1865
1864
|
"%c[KindyEditor]%c QR Code removed.",
|
|
1866
1865
|
"background:#64748b;color:#fff;font-weight:bold;padding:1px 5px;border-radius:3px;",
|
|
@@ -2066,6 +2065,26 @@ class $ {
|
|
|
2066
2065
|
async goToPage(e, t) {
|
|
2067
2066
|
return (await this.ready).goToPage(e, t);
|
|
2068
2067
|
}
|
|
2068
|
+
/** Find text in document, highlight matches, and scroll focus to the first match. */
|
|
2069
|
+
async search(e, t) {
|
|
2070
|
+
return (await this.ready).search(e, t);
|
|
2071
|
+
}
|
|
2072
|
+
/** Navigate to next (1) or previous (-1) search match and scroll focus to it. */
|
|
2073
|
+
async searchNav(e) {
|
|
2074
|
+
return (await this.ready).searchNav(e);
|
|
2075
|
+
}
|
|
2076
|
+
/** Replace currently focused match with new text and scroll focus to next match. */
|
|
2077
|
+
async searchReplaceCurrent(e) {
|
|
2078
|
+
return (await this.ready).searchReplaceCurrent(e);
|
|
2079
|
+
}
|
|
2080
|
+
/** Replace all search matches in document in a single atomic undoable transaction. */
|
|
2081
|
+
async searchReplaceAll(e) {
|
|
2082
|
+
return (await this.ready).searchReplaceAll(e);
|
|
2083
|
+
}
|
|
2084
|
+
/** Clear search highlights and reset search state. */
|
|
2085
|
+
async searchClear() {
|
|
2086
|
+
(await this.ready).searchClear();
|
|
2087
|
+
}
|
|
2069
2088
|
/** Live-update {{KEY}} template placeholders in the document without full reload,
|
|
2070
2089
|
* preserving zoom, scroll position, and selection. */
|
|
2071
2090
|
async setTemplateVariables(e, t) {
|
package/dist-lib/kindy-editor.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { K as e, d as o, m as r } from "./kindy-editor
|
|
2
|
-
import { C as i, a as m, E as n, c as g } from "./changeAggregator-
|
|
1
|
+
import { K as e, d as o, m as r } from "./kindy-editor---oVGhZU.js";
|
|
2
|
+
import { C as i, a as m, E as n, c as g } from "./changeAggregator-DEuynIcV.js";
|
|
3
3
|
export {
|
|
4
4
|
i as ChangeAggregator,
|
|
5
5
|
m as CommitPolicy,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as V, f as H, D as W, h as $ } from "./qrcode-
|
|
2
|
-
import { r as C, s as G } from "./stylesheet-
|
|
3
|
-
import { e as m, a as f, c as g, l as y, t as x } from "./pipeline-
|
|
1
|
+
import { g as V, f as H, D as W, h as $ } from "./qrcode-B-JKix2T.js";
|
|
2
|
+
import { r as C, s as G } from "./stylesheet-BPIJJMlK.js";
|
|
3
|
+
import { e as m, a as f, c as g, l as y, t as x } from "./pipeline-CCwWMjhw.js";
|
|
4
4
|
import { a as U, h as j } from "./contentTypes-ChqPfcVI.js";
|
|
5
5
|
function K(r) {
|
|
6
6
|
const t = V(r), e = r.rows.length, s = Array.from(
|