kindy-editor 3.2.5 → 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-B6qDC4lD.js → editorApp-BtDzRfJq.js} +9246 -8819
- 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-CT14IO-Y.js → kindy-editor---oVGhZU.js} +99 -56
- 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-BcWSo1v9.js → webmcp-B0swfp0T.js} +2 -2
- package/docs/find-and-replace.md +224 -0
- package/docs/qrcode-integration-guide.md +36 -1
- package/docs/security-review.md +26 -0
- package/docs/table-editing.md +99 -1
- package/docs/table-form-integration.md +92 -1
- package/package.json +6 -6
- package/types/import.d.ts +7 -0
- package/types/kindy-editor.d.ts +122 -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
|
|
5
|
-
const z = 1.1, B = 0.25, R = 5, M = 36,
|
|
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
|
+
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,
|
|
@@ -37,10 +37,10 @@ const z = 1.1, B = 0.25, R = 5, M = 36, p = {
|
|
|
37
37
|
};
|
|
38
38
|
function E(r) {
|
|
39
39
|
return r ? {
|
|
40
|
-
...
|
|
40
|
+
...c,
|
|
41
41
|
...l(r),
|
|
42
|
-
ruler: { ...
|
|
43
|
-
} :
|
|
42
|
+
ruler: { ...c.ruler, ...r.ruler ? l(r.ruler) : {} }
|
|
43
|
+
} : c;
|
|
44
44
|
}
|
|
45
45
|
function F(r) {
|
|
46
46
|
return r ? { ...g, ...l(r) } : g;
|
|
@@ -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,
|
|
@@ -77,10 +77,10 @@ function O(r) {
|
|
|
77
77
|
}
|
|
78
78
|
function l(r) {
|
|
79
79
|
const e = {};
|
|
80
|
-
for (const [t,
|
|
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,39 +783,39 @@ 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;}
|
|
790
790
|
.ked-drag-handle::before{content:"⠿";color:#b0b4ba;font-size:14px;line-height:1;margin-right:4px;flex:0 0 auto;}`;
|
|
791
791
|
function Z(r) {
|
|
792
792
|
h("ked-drag-handle-styles", U);
|
|
793
|
-
const { backdrop: e, modal: t, handle:
|
|
794
|
-
e.style.pointerEvents = "none", e.style.background = "transparent", e.style.display = "block", t.style.position = "fixed", t.style.margin = "0", t.style.pointerEvents = "auto",
|
|
793
|
+
const { backdrop: e, modal: t, handle: o, signal: n } = r;
|
|
794
|
+
e.style.pointerEvents = "none", e.style.background = "transparent", e.style.display = "block", t.style.position = "fixed", t.style.margin = "0", t.style.pointerEvents = "auto", o.classList.add("ked-drag-handle");
|
|
795
795
|
const d = (a, s) => {
|
|
796
796
|
const b = Math.max(4, window.innerWidth - t.offsetWidth - 6), k = Math.max(4, window.innerHeight - 44);
|
|
797
797
|
t.style.left = `${Math.min(Math.max(4, a), b)}px`, t.style.top = `${Math.min(Math.max(4, s), k)}px`;
|
|
798
798
|
};
|
|
799
799
|
d(window.innerWidth - t.offsetWidth - 24, 72);
|
|
800
800
|
let i = null;
|
|
801
|
-
|
|
801
|
+
o.addEventListener(
|
|
802
802
|
"mousedown",
|
|
803
803
|
(a) => {
|
|
804
804
|
if (r.noDrag && a.target.closest(r.noDrag)) return;
|
|
805
805
|
const s = t.getBoundingClientRect();
|
|
806
806
|
i = { dx: a.clientX - s.left, dy: a.clientY - s.top }, a.preventDefault();
|
|
807
807
|
},
|
|
808
|
-
{ signal:
|
|
808
|
+
{ signal: n }
|
|
809
809
|
), window.addEventListener("mousemove", (a) => {
|
|
810
810
|
i && d(a.clientX - i.dx, a.clientY - i.dy);
|
|
811
|
-
}, { signal:
|
|
811
|
+
}, { signal: n }), window.addEventListener("mouseup", () => {
|
|
812
812
|
i = null;
|
|
813
|
-
}, { signal:
|
|
813
|
+
}, { signal: n });
|
|
814
814
|
}
|
|
815
|
-
const
|
|
815
|
+
const p = 0.15;
|
|
816
816
|
function Y(r, e) {
|
|
817
817
|
const t = e > 0 ? r / e : 1;
|
|
818
|
-
return { phase: "fonts", loaded: r, total: e, percent:
|
|
818
|
+
return { phase: "fonts", loaded: r, total: e, percent: p + (1 - p) * t };
|
|
819
819
|
}
|
|
820
820
|
const u = {
|
|
821
821
|
common: {
|
|
@@ -1298,7 +1298,7 @@ const u = {
|
|
|
1298
1298
|
submit: "Comment",
|
|
1299
1299
|
replyPlaceholder: "Reply…"
|
|
1300
1300
|
}
|
|
1301
|
-
},
|
|
1301
|
+
}, V = {
|
|
1302
1302
|
common: {
|
|
1303
1303
|
ok: "Đồng ý",
|
|
1304
1304
|
cancel: "Hủy",
|
|
@@ -1779,13 +1779,13 @@ const u = {
|
|
|
1779
1779
|
submit: "Nhận xét",
|
|
1780
1780
|
replyPlaceholder: "Trả lời…"
|
|
1781
1781
|
}
|
|
1782
|
-
},
|
|
1782
|
+
}, K = {
|
|
1783
1783
|
en: u,
|
|
1784
|
-
vi:
|
|
1784
|
+
vi: V
|
|
1785
1785
|
};
|
|
1786
1786
|
function j(r) {
|
|
1787
1787
|
const t = (r ?? (typeof navigator < "u" ? navigator.language : "en") ?? "en").split(/[-_]/)[0].toLowerCase();
|
|
1788
|
-
return
|
|
1788
|
+
return K[t] ?? u;
|
|
1789
1789
|
}
|
|
1790
1790
|
class $ {
|
|
1791
1791
|
/** Namespaced, typed public integration events. Legacy on()/off() remains. */
|
|
@@ -1795,8 +1795,8 @@ class $ {
|
|
|
1795
1795
|
ready;
|
|
1796
1796
|
handlers = /* @__PURE__ */ new Map();
|
|
1797
1797
|
constructor(e) {
|
|
1798
|
-
this.pendingQRCode = e.qrCode, this.events = new
|
|
1799
|
-
const
|
|
1798
|
+
this.pendingQRCode = e.qrCode, this.events = new P(e.events), this.ready = new Promise((t) => {
|
|
1799
|
+
const o = {
|
|
1800
1800
|
container: e.container,
|
|
1801
1801
|
backendUrl: e.backendUrl,
|
|
1802
1802
|
// `docId` is the canonical name; fall back to the deprecated `collabId`.
|
|
@@ -1828,27 +1828,27 @@ class $ {
|
|
|
1828
1828
|
onVariableClick: e.onVariableClick,
|
|
1829
1829
|
showVariablePopover: e.showVariablePopover,
|
|
1830
1830
|
qrCode: e.qrCode,
|
|
1831
|
-
onReady: (
|
|
1832
|
-
this.handle =
|
|
1831
|
+
onReady: (n) => {
|
|
1832
|
+
this.handle = n, this.pendingQRCode !== void 0 && n.setQRCode(this.pendingQRCode), t(n);
|
|
1833
1833
|
},
|
|
1834
|
-
onEvent: (
|
|
1835
|
-
onPublicEvent: (
|
|
1834
|
+
onEvent: (n) => this.emit(n),
|
|
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. */
|
|
1841
1841
|
on(e, t) {
|
|
1842
|
-
let
|
|
1843
|
-
return
|
|
1842
|
+
let o = this.handlers.get(e);
|
|
1843
|
+
return o || this.handlers.set(e, o = /* @__PURE__ */ new Set()), o.add(t), () => this.off(e, t);
|
|
1844
1844
|
}
|
|
1845
1845
|
/** Unsubscribe a handler previously passed to on(). */
|
|
1846
1846
|
off(e, t) {
|
|
1847
1847
|
this.handlers.get(e)?.delete(t);
|
|
1848
1848
|
}
|
|
1849
1849
|
emit(e) {
|
|
1850
|
-
const { type: t, ...
|
|
1851
|
-
for (const
|
|
1850
|
+
const { type: t, ...o } = e;
|
|
1851
|
+
for (const n of this.handlers.get(t) ?? []) n(o);
|
|
1852
1852
|
}
|
|
1853
1853
|
/** Resolves once the editor is mounted and ready. */
|
|
1854
1854
|
whenReady() {
|
|
@@ -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;",
|
|
@@ -1882,20 +1881,20 @@ class $ {
|
|
|
1882
1881
|
* is ready are buffered and flush on ready. (mountEditor() requires the editor
|
|
1883
1882
|
* to be ready — await whenReady() first.) */
|
|
1884
1883
|
createChild() {
|
|
1885
|
-
let e = null, t = null,
|
|
1886
|
-
return this.ready.then((
|
|
1887
|
-
|
|
1884
|
+
let e = null, t = null, o = !1;
|
|
1885
|
+
return this.ready.then((n) => {
|
|
1886
|
+
o || (e = n.createChild(), t?.(), t = null);
|
|
1888
1887
|
}), {
|
|
1889
|
-
render: (
|
|
1890
|
-
const a = () => e?.render(
|
|
1888
|
+
render: (n, d, i) => {
|
|
1889
|
+
const a = () => e?.render(n, d, i);
|
|
1891
1890
|
e ? a() : t = a;
|
|
1892
1891
|
},
|
|
1893
|
-
mountEditor: (
|
|
1892
|
+
mountEditor: (n, d, i) => {
|
|
1894
1893
|
if (!e) throw new Error("KindyEditor.createChild(): await whenReady() before mountEditor()");
|
|
1895
|
-
return e.mountEditor(
|
|
1894
|
+
return e.mountEditor(n, d, i);
|
|
1896
1895
|
},
|
|
1897
1896
|
destroy: () => {
|
|
1898
|
-
|
|
1897
|
+
o = !0, e?.destroy(), e = null;
|
|
1899
1898
|
}
|
|
1900
1899
|
};
|
|
1901
1900
|
}
|
|
@@ -1981,8 +1980,8 @@ class $ {
|
|
|
1981
1980
|
async addComment(e, t) {
|
|
1982
1981
|
return (await this.ready).addComment(e, t);
|
|
1983
1982
|
}
|
|
1984
|
-
async replyToComment(e, t,
|
|
1985
|
-
(await this.ready).replyToComment(e, t,
|
|
1983
|
+
async replyToComment(e, t, o) {
|
|
1984
|
+
(await this.ready).replyToComment(e, t, o);
|
|
1986
1985
|
}
|
|
1987
1986
|
async startComment() {
|
|
1988
1987
|
(await this.ready).startComment();
|
|
@@ -1990,8 +1989,8 @@ class $ {
|
|
|
1990
1989
|
async openCommentThread(e) {
|
|
1991
1990
|
(await this.ready).openCommentThread(e);
|
|
1992
1991
|
}
|
|
1993
|
-
async editComment(e, t,
|
|
1994
|
-
(await this.ready).editComment(e, t,
|
|
1992
|
+
async editComment(e, t, o, n) {
|
|
1993
|
+
(await this.ready).editComment(e, t, o, n);
|
|
1995
1994
|
}
|
|
1996
1995
|
async deleteComment(e, t) {
|
|
1997
1996
|
(await this.ready).deleteComment(e, t);
|
|
@@ -2023,6 +2022,26 @@ class $ {
|
|
|
2023
2022
|
async executeTableAction(e) {
|
|
2024
2023
|
return (await this.ready).executeTableAction(e);
|
|
2025
2024
|
}
|
|
2025
|
+
/** Check if a table action can be executed by host with optional selection. */
|
|
2026
|
+
canExecuteHostTableAction(e, t) {
|
|
2027
|
+
return this.handle?.canExecuteHostTableAction(e, t) ?? !1;
|
|
2028
|
+
}
|
|
2029
|
+
/** Execute a table action from host/code, optionally targeting a specific selection or table path/ID. */
|
|
2030
|
+
async executeHostTableAction(e, t) {
|
|
2031
|
+
return (await this.ready).executeHostTableAction(e, t);
|
|
2032
|
+
}
|
|
2033
|
+
/** Update the text value of a single cell in a table. */
|
|
2034
|
+
async setTableCellValue(e, t, o, n) {
|
|
2035
|
+
return (await this.ready).setTableCellValue(e, t, o, n);
|
|
2036
|
+
}
|
|
2037
|
+
/** Replace data rows in a table in a single atomic batch update. */
|
|
2038
|
+
async replaceTableRows(e, t, o) {
|
|
2039
|
+
return (await this.ready).replaceTableRows(e, t, o);
|
|
2040
|
+
}
|
|
2041
|
+
/** Get summaries of all tables in the document. */
|
|
2042
|
+
getTables() {
|
|
2043
|
+
return this.handle?.getTables() ?? [];
|
|
2044
|
+
}
|
|
2026
2045
|
getDocId() {
|
|
2027
2046
|
return this.handle?.getDocId() ?? null;
|
|
2028
2047
|
}
|
|
@@ -2042,14 +2061,38 @@ class $ {
|
|
|
2042
2061
|
async revealRange(e, t) {
|
|
2043
2062
|
(await this.ready).revealRange(e, t);
|
|
2044
2063
|
}
|
|
2064
|
+
/** Scroll the viewport directly to the specified 1-based page number. */
|
|
2065
|
+
async goToPage(e, t) {
|
|
2066
|
+
return (await this.ready).goToPage(e, t);
|
|
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
|
+
}
|
|
2045
2088
|
/** Live-update {{KEY}} template placeholders in the document without full reload,
|
|
2046
2089
|
* preserving zoom, scroll position, and selection. */
|
|
2047
2090
|
async setTemplateVariables(e, t) {
|
|
2048
2091
|
(await this.ready).setTemplateVariables(e, t);
|
|
2049
2092
|
}
|
|
2050
2093
|
/** Revert a template variable to an earlier value recorded in its audit history. */
|
|
2051
|
-
async revertTemplateVariable(e, t,
|
|
2052
|
-
return (await this.ready).revertTemplateVariable(e, t,
|
|
2094
|
+
async revertTemplateVariable(e, t, o) {
|
|
2095
|
+
return (await this.ready).revertTemplateVariable(e, t, o);
|
|
2053
2096
|
}
|
|
2054
2097
|
/** Insert an atomic template variable token at current caret/selection. */
|
|
2055
2098
|
async insertTemplateVariable(e, t) {
|
|
@@ -2108,8 +2151,8 @@ class $ {
|
|
|
2108
2151
|
(await this.ready).markSigningArea(e);
|
|
2109
2152
|
}
|
|
2110
2153
|
/** Thay đổi kích thước (Width x Height) của một ô ký */
|
|
2111
|
-
async resizeSignatureBox(e, t,
|
|
2112
|
-
(await this.ready).resizeSignatureBox(e, t,
|
|
2154
|
+
async resizeSignatureBox(e, t, o) {
|
|
2155
|
+
(await this.ready).resizeSignatureBox(e, t, o);
|
|
2113
2156
|
}
|
|
2114
2157
|
/** Cập nhật thông tin và kích thước của một ô ký */
|
|
2115
2158
|
async updateSignatureBox(e, t) {
|
|
@@ -2132,7 +2175,7 @@ class $ {
|
|
|
2132
2175
|
}
|
|
2133
2176
|
}
|
|
2134
2177
|
export {
|
|
2135
|
-
|
|
2178
|
+
c as D,
|
|
2136
2179
|
$ as K,
|
|
2137
2180
|
B as Z,
|
|
2138
2181
|
R as a,
|
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(
|