kindy-editor 3.2.1 → 3.2.2
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-_GAJUHf5.js → worker-DO8U44KQ.js} +1 -0
- package/dist-lib/builder.js +4 -4
- package/dist-lib/{editorApp-7-JzxxVn.js → editorApp-N20nk5uQ.js} +9214 -8515
- package/dist-lib/events.js +1 -1
- package/dist-lib/export.js +1396 -1385
- package/dist-lib/generate-toc.js +3 -3
- package/dist-lib/import.js +2 -2
- package/dist-lib/index-Dd7gMK7l.js +12857 -0
- package/dist-lib/{kindy-editor-DKDwpt09.js → kindy-editor-D4xSNtvA.js} +133 -83
- package/dist-lib/kindy-editor.js +1 -1
- package/dist-lib/{parse-D4RpPrd7.js → parse-JE_w0NNt.js} +3 -3
- package/dist-lib/{pipeline-DhhBcLvV.js → pipeline-CgbvBwNe.js} +1 -1
- package/dist-lib/recalc-docx.js +1 -1
- package/dist-lib/{recalcToc-n50vq4nC.js → recalcToc-DKJK9f5X.js} +1 -1
- package/dist-lib/{stylesheet-E5bu1xch.js → stylesheet-COz2MSt6.js} +1 -1
- package/dist-lib/{toc-DSwkNKls.js → toc-C6XLbDEA.js} +389 -360
- package/dist-lib/{webmcp-KVT__0GH.js → webmcp-DrpPKUeh.js} +2 -2
- package/docs/.vitepress/config.ts +2 -0
- package/docs/public-events.md +1 -0
- package/docs/template-variables.md +310 -0
- package/package.json +1 -1
- package/types/kindy-editor.d.ts +122 -3
- package/dist-lib/index-Brv5TV-9.js +0 -11822
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import "./toc-
|
|
2
|
-
import { m as x } from "./stylesheet-
|
|
3
|
-
import { H as m, A as f, y as v, C as
|
|
4
|
-
import { E as
|
|
5
|
-
const z = 1.1, B = 0.25, R = 5,
|
|
1
|
+
import "./toc-C6XLbDEA.js";
|
|
2
|
+
import { m as x } from "./stylesheet-COz2MSt6.js";
|
|
3
|
+
import { H as m, A as f, y as v, C as y, I as w, a as C, P as T, F as S, Q as L, R as D, D as P } from "./paintStyle-Cjk9egel.js";
|
|
4
|
+
import { E as A } from "./eventHub-CZFpTVqe.js";
|
|
5
|
+
const z = 1.1, B = 0.25, R = 5, M = 36, p = {
|
|
6
6
|
canvasBackground: "#e8eaed",
|
|
7
|
-
grid:
|
|
7
|
+
grid: P,
|
|
8
8
|
gridMesh: "rgba(0,0,0,0.08)",
|
|
9
9
|
externalLink: D,
|
|
10
10
|
accent: L,
|
|
11
11
|
footnoteRule: S,
|
|
12
12
|
formattingMark: T,
|
|
13
13
|
tocLeader: C,
|
|
14
|
-
imagePlaceholder:
|
|
15
|
-
columnSeparator:
|
|
14
|
+
imagePlaceholder: w,
|
|
15
|
+
columnSeparator: y,
|
|
16
16
|
caret: "#1a1a2e",
|
|
17
17
|
searchHighlight: "rgba(251, 188, 4, 0.45)",
|
|
18
18
|
reviewPinResolved: "#9aa0a6",
|
|
@@ -29,45 +29,45 @@ const z = 1.1, B = 0.25, R = 5, E = 36, p = {
|
|
|
29
29
|
zoomStep: z,
|
|
30
30
|
zoomMin: B,
|
|
31
31
|
zoomMax: R,
|
|
32
|
-
indentStepPx:
|
|
32
|
+
indentStepPx: M,
|
|
33
33
|
gridSpacingPx: 24
|
|
34
34
|
}, q = {
|
|
35
35
|
canvasBackground: "#202124",
|
|
36
36
|
ruler: { bg: "#2a2d31", content: "#3c4043", line: "#5f6368", label: "#bdc1c6" }
|
|
37
37
|
};
|
|
38
|
-
function
|
|
39
|
-
return
|
|
38
|
+
function E(r) {
|
|
39
|
+
return r ? {
|
|
40
40
|
...p,
|
|
41
|
-
...l(
|
|
42
|
-
ruler: { ...p.ruler, ...
|
|
41
|
+
...l(r),
|
|
42
|
+
ruler: { ...p.ruler, ...r.ruler ? l(r.ruler) : {} }
|
|
43
43
|
} : p;
|
|
44
44
|
}
|
|
45
|
-
function F(
|
|
46
|
-
return
|
|
45
|
+
function F(r) {
|
|
46
|
+
return r ? { ...g, ...l(r) } : g;
|
|
47
47
|
}
|
|
48
|
-
function I(
|
|
49
|
-
return
|
|
50
|
-
disableBuiltin:
|
|
51
|
-
fonts:
|
|
52
|
-
...
|
|
53
|
-
...
|
|
54
|
-
...
|
|
48
|
+
function I(r) {
|
|
49
|
+
return r ? {
|
|
50
|
+
disableBuiltin: r.disableBuiltin ? [...r.disableBuiltin] : [],
|
|
51
|
+
fonts: r.fonts ? r.fonts.map((e) => ({ ...e, faces: { ...e.faces }, sizing: { ...e.sizing } })) : [],
|
|
52
|
+
...r.baseUrl ? { baseUrl: r.baseUrl } : {},
|
|
53
|
+
...r.manifests ? { manifests: r.manifests.map((e) => typeof e == "string" ? { url: e } : { ...e }) } : {},
|
|
54
|
+
...r.loader ? { loader: r.loader } : {}
|
|
55
55
|
} : { disableBuiltin: [], fonts: [] };
|
|
56
56
|
}
|
|
57
|
-
function J(
|
|
58
|
-
const e =
|
|
57
|
+
function J(r = {}) {
|
|
58
|
+
const e = r.overrideDefaultStyles ? l(r.overrideDefaultStyles) : {};
|
|
59
59
|
return {
|
|
60
|
-
theme:
|
|
61
|
-
behavior: F(
|
|
60
|
+
theme: E(r.theme),
|
|
61
|
+
behavior: F(r.behavior),
|
|
62
62
|
typography: e,
|
|
63
63
|
stylesheet: x(e),
|
|
64
|
-
fonts: I(
|
|
65
|
-
cjk: O(
|
|
66
|
-
develop:
|
|
64
|
+
fonts: I(r.fonts),
|
|
65
|
+
cjk: O(r.cjk),
|
|
66
|
+
develop: r.develop ?? !1
|
|
67
67
|
};
|
|
68
68
|
}
|
|
69
|
-
function O(
|
|
70
|
-
const e =
|
|
69
|
+
function O(r) {
|
|
70
|
+
const e = r ? l(r) : {};
|
|
71
71
|
return {
|
|
72
72
|
...e,
|
|
73
73
|
fallbackFont: e.fallbackFont ?? v,
|
|
@@ -75,9 +75,9 @@ function O(t) {
|
|
|
75
75
|
hebrewFallbackFont: e.hebrewFallbackFont ?? m
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
|
-
function l(
|
|
78
|
+
function l(r) {
|
|
79
79
|
const e = {};
|
|
80
|
-
for (const [
|
|
80
|
+
for (const [t, n] of Object.entries(r)) n !== void 0 && (e[t] = n);
|
|
81
81
|
return e;
|
|
82
82
|
}
|
|
83
83
|
const N = "kindy-editor-styles", H = `
|
|
@@ -777,10 +777,10 @@ const N = "kindy-editor-styles", H = `
|
|
|
777
777
|
.ked-obj-handle::before { content: ""; position: absolute; inset: -8px; }
|
|
778
778
|
}
|
|
779
779
|
`;
|
|
780
|
-
function h(
|
|
781
|
-
if (document.getElementById(
|
|
782
|
-
const
|
|
783
|
-
|
|
780
|
+
function h(r, e) {
|
|
781
|
+
if (document.getElementById(r)) return;
|
|
782
|
+
const t = document.createElement("style");
|
|
783
|
+
t.id = r, t.textContent = e, document.head.appendChild(t);
|
|
784
784
|
}
|
|
785
785
|
function Z() {
|
|
786
786
|
h(N, H);
|
|
@@ -788,21 +788,21 @@ function Z() {
|
|
|
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
|
-
function Y(
|
|
791
|
+
function Y(r) {
|
|
792
792
|
h("ked-drag-handle-styles", U);
|
|
793
|
-
const { backdrop: e, modal:
|
|
794
|
-
e.style.pointerEvents = "none", e.style.background = "transparent", e.style.display = "block",
|
|
793
|
+
const { backdrop: e, modal: t, handle: n, signal: o } = 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", n.classList.add("ked-drag-handle");
|
|
795
795
|
const d = (a, s) => {
|
|
796
|
-
const b = Math.max(4, window.innerWidth -
|
|
797
|
-
|
|
796
|
+
const b = Math.max(4, window.innerWidth - t.offsetWidth - 6), k = Math.max(4, window.innerHeight - 44);
|
|
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
|
-
d(window.innerWidth -
|
|
799
|
+
d(window.innerWidth - t.offsetWidth - 24, 72);
|
|
800
800
|
let i = null;
|
|
801
801
|
n.addEventListener(
|
|
802
802
|
"mousedown",
|
|
803
803
|
(a) => {
|
|
804
|
-
if (
|
|
805
|
-
const s =
|
|
804
|
+
if (r.noDrag && a.target.closest(r.noDrag)) return;
|
|
805
|
+
const s = t.getBoundingClientRect();
|
|
806
806
|
i = { dx: a.clientX - s.left, dy: a.clientY - s.top }, a.preventDefault();
|
|
807
807
|
},
|
|
808
808
|
{ signal: o }
|
|
@@ -813,9 +813,9 @@ function Y(t) {
|
|
|
813
813
|
}, { signal: o });
|
|
814
814
|
}
|
|
815
815
|
const c = 0.15;
|
|
816
|
-
function Q(
|
|
817
|
-
const
|
|
818
|
-
return { phase: "fonts", loaded:
|
|
816
|
+
function Q(r, e) {
|
|
817
|
+
const t = e > 0 ? r / e : 1;
|
|
818
|
+
return { phase: "fonts", loaded: r, total: e, percent: c + (1 - c) * t };
|
|
819
819
|
}
|
|
820
820
|
const u = {
|
|
821
821
|
common: {
|
|
@@ -1297,7 +1297,7 @@ const u = {
|
|
|
1297
1297
|
submit: "Comment",
|
|
1298
1298
|
replyPlaceholder: "Reply…"
|
|
1299
1299
|
}
|
|
1300
|
-
},
|
|
1300
|
+
}, V = {
|
|
1301
1301
|
common: {
|
|
1302
1302
|
ok: "Đồng ý",
|
|
1303
1303
|
cancel: "Hủy",
|
|
@@ -1777,13 +1777,13 @@ const u = {
|
|
|
1777
1777
|
submit: "Nhận xét",
|
|
1778
1778
|
replyPlaceholder: "Trả lời…"
|
|
1779
1779
|
}
|
|
1780
|
-
},
|
|
1780
|
+
}, K = {
|
|
1781
1781
|
en: u,
|
|
1782
|
-
vi:
|
|
1782
|
+
vi: V
|
|
1783
1783
|
};
|
|
1784
|
-
function
|
|
1785
|
-
const
|
|
1786
|
-
return
|
|
1784
|
+
function j(r) {
|
|
1785
|
+
const t = (r ?? (typeof navigator < "u" ? navigator.language : "en") ?? "en").split(/[-_]/)[0].toLowerCase();
|
|
1786
|
+
return K[t] ?? u;
|
|
1787
1787
|
}
|
|
1788
1788
|
class $ {
|
|
1789
1789
|
/** Namespaced, typed public integration events. Legacy on()/off() remains. */
|
|
@@ -1792,7 +1792,7 @@ class $ {
|
|
|
1792
1792
|
ready;
|
|
1793
1793
|
handlers = /* @__PURE__ */ new Map();
|
|
1794
1794
|
constructor(e) {
|
|
1795
|
-
this.events = new
|
|
1795
|
+
this.events = new A(e.events), this.ready = new Promise((t) => {
|
|
1796
1796
|
const n = {
|
|
1797
1797
|
container: e.container,
|
|
1798
1798
|
backendUrl: e.backendUrl,
|
|
@@ -1821,28 +1821,30 @@ class $ {
|
|
|
1821
1821
|
onLoadProgress: e.onLoadProgress,
|
|
1822
1822
|
eventDetail: this.events.detail,
|
|
1823
1823
|
includeSelectionEvents: this.events.includeSelection,
|
|
1824
|
-
messages:
|
|
1824
|
+
messages: j(e.locale),
|
|
1825
|
+
onVariableClick: e.onVariableClick,
|
|
1826
|
+
showVariablePopover: e.showVariablePopover,
|
|
1825
1827
|
onReady: (o) => {
|
|
1826
|
-
this.handle = o,
|
|
1828
|
+
this.handle = o, t(o);
|
|
1827
1829
|
},
|
|
1828
1830
|
onEvent: (o) => this.emit(o),
|
|
1829
1831
|
onPublicEvent: (o) => this.events.dispatch(o)
|
|
1830
1832
|
};
|
|
1831
|
-
e.onLoadProgress?.({ phase: "bundle", percent: 0, loaded: 0, total: 0 }), import("./editorApp-
|
|
1833
|
+
e.onLoadProgress?.({ phase: "bundle", percent: 0, loaded: 0, total: 0 }), import("./editorApp-N20nk5uQ.js").then((o) => o.e).then((o) => (e.onLoadProgress?.({ phase: "bundle", percent: c, loaded: 0, total: 0 }), o.mountEditorApp(n)));
|
|
1832
1834
|
});
|
|
1833
1835
|
}
|
|
1834
1836
|
/** Subscribe to a collaboration event. Returns an unsubscribe function. */
|
|
1835
|
-
on(e,
|
|
1837
|
+
on(e, t) {
|
|
1836
1838
|
let n = this.handlers.get(e);
|
|
1837
|
-
return n || this.handlers.set(e, n = /* @__PURE__ */ new Set()), n.add(
|
|
1839
|
+
return n || this.handlers.set(e, n = /* @__PURE__ */ new Set()), n.add(t), () => this.off(e, t);
|
|
1838
1840
|
}
|
|
1839
1841
|
/** Unsubscribe a handler previously passed to on(). */
|
|
1840
|
-
off(e,
|
|
1841
|
-
this.handlers.get(e)?.delete(
|
|
1842
|
+
off(e, t) {
|
|
1843
|
+
this.handlers.get(e)?.delete(t);
|
|
1842
1844
|
}
|
|
1843
1845
|
emit(e) {
|
|
1844
|
-
const { type:
|
|
1845
|
-
for (const o of this.handlers.get(
|
|
1846
|
+
const { type: t, ...n } = e;
|
|
1847
|
+
for (const o of this.handlers.get(t) ?? []) o(n);
|
|
1846
1848
|
}
|
|
1847
1849
|
/** Resolves once the editor is mounted and ready. */
|
|
1848
1850
|
whenReady() {
|
|
@@ -1856,13 +1858,13 @@ class $ {
|
|
|
1856
1858
|
* is ready are buffered and flush on ready. (mountEditor() requires the editor
|
|
1857
1859
|
* to be ready — await whenReady() first.) */
|
|
1858
1860
|
createChild() {
|
|
1859
|
-
let e = null,
|
|
1861
|
+
let e = null, t = null, n = !1;
|
|
1860
1862
|
return this.ready.then((o) => {
|
|
1861
|
-
n || (e = o.createChild(),
|
|
1863
|
+
n || (e = o.createChild(), t?.(), t = null);
|
|
1862
1864
|
}), {
|
|
1863
1865
|
render: (o, d, i) => {
|
|
1864
1866
|
const a = () => e?.render(o, d, i);
|
|
1865
|
-
e ? a() :
|
|
1867
|
+
e ? a() : t = a;
|
|
1866
1868
|
},
|
|
1867
1869
|
mountEditor: (o, d, i) => {
|
|
1868
1870
|
if (!e) throw new Error("KindyEditor.createChild(): await whenReady() before mountEditor()");
|
|
@@ -1948,11 +1950,11 @@ class $ {
|
|
|
1948
1950
|
/** Add a comment thread anchored to the current selection (a rich-text body;
|
|
1949
1951
|
* `mentions` are @-tagged users). Resolves to the thread id, or null if
|
|
1950
1952
|
* there's no selection. */
|
|
1951
|
-
async addComment(e,
|
|
1952
|
-
return (await this.ready).addComment(e,
|
|
1953
|
+
async addComment(e, t) {
|
|
1954
|
+
return (await this.ready).addComment(e, t);
|
|
1953
1955
|
}
|
|
1954
|
-
async replyToComment(e,
|
|
1955
|
-
(await this.ready).replyToComment(e,
|
|
1956
|
+
async replyToComment(e, t, n) {
|
|
1957
|
+
(await this.ready).replyToComment(e, t, n);
|
|
1956
1958
|
}
|
|
1957
1959
|
async startComment() {
|
|
1958
1960
|
(await this.ready).startComment();
|
|
@@ -1960,14 +1962,14 @@ class $ {
|
|
|
1960
1962
|
async openCommentThread(e) {
|
|
1961
1963
|
(await this.ready).openCommentThread(e);
|
|
1962
1964
|
}
|
|
1963
|
-
async editComment(e,
|
|
1964
|
-
(await this.ready).editComment(e,
|
|
1965
|
+
async editComment(e, t, n, o) {
|
|
1966
|
+
(await this.ready).editComment(e, t, n, o);
|
|
1965
1967
|
}
|
|
1966
|
-
async deleteComment(e,
|
|
1967
|
-
(await this.ready).deleteComment(e,
|
|
1968
|
+
async deleteComment(e, t) {
|
|
1969
|
+
(await this.ready).deleteComment(e, t);
|
|
1968
1970
|
}
|
|
1969
|
-
async resolveThread(e,
|
|
1970
|
-
(await this.ready).resolveThread(e,
|
|
1971
|
+
async resolveThread(e, t = !0) {
|
|
1972
|
+
(await this.ready).resolveThread(e, t);
|
|
1971
1973
|
}
|
|
1972
1974
|
async setReviewAccess(e) {
|
|
1973
1975
|
(await this.ready).setReviewAccess(e);
|
|
@@ -2001,21 +2003,69 @@ class $ {
|
|
|
2001
2003
|
}
|
|
2002
2004
|
/** Render ephemeral highlight decorations for external comments/annotations.
|
|
2003
2005
|
* Does not modify document content, dirty state, or DOCX/PDF export. */
|
|
2004
|
-
async setExternalAnnotations(e,
|
|
2005
|
-
(await this.ready).setExternalAnnotations(e,
|
|
2006
|
+
async setExternalAnnotations(e, t) {
|
|
2007
|
+
(await this.ready).setExternalAnnotations(e, t);
|
|
2006
2008
|
}
|
|
2007
2009
|
/** Clear all external comment/annotation highlight decorations. */
|
|
2008
2010
|
async clearExternalAnnotations() {
|
|
2009
2011
|
(await this.ready).clearExternalAnnotations();
|
|
2010
2012
|
}
|
|
2011
2013
|
/** Scroll the viewport to reveal a document range with smooth animation. */
|
|
2012
|
-
async revealRange(e,
|
|
2013
|
-
(await this.ready).revealRange(e,
|
|
2014
|
+
async revealRange(e, t) {
|
|
2015
|
+
(await this.ready).revealRange(e, t);
|
|
2014
2016
|
}
|
|
2015
2017
|
/** Live-update {{KEY}} template placeholders in the document without full reload,
|
|
2016
2018
|
* preserving zoom, scroll position, and selection. */
|
|
2017
|
-
async setTemplateVariables(e) {
|
|
2018
|
-
(await this.ready).setTemplateVariables(e);
|
|
2019
|
+
async setTemplateVariables(e, t) {
|
|
2020
|
+
(await this.ready).setTemplateVariables(e, t);
|
|
2021
|
+
}
|
|
2022
|
+
/** Revert a template variable to an earlier value recorded in its audit history. */
|
|
2023
|
+
async revertTemplateVariable(e, t, n) {
|
|
2024
|
+
return (await this.ready).revertTemplateVariable(e, t, n);
|
|
2025
|
+
}
|
|
2026
|
+
/** Insert an atomic template variable token at current caret/selection. */
|
|
2027
|
+
async insertTemplateVariable(e, t) {
|
|
2028
|
+
return (await this.ready).insertTemplateVariable(e, t);
|
|
2029
|
+
}
|
|
2030
|
+
/** Open the contract metadata palette autocomplete at current caret position. */
|
|
2031
|
+
async openMetadataPalette() {
|
|
2032
|
+
(await this.ready).openMetadataPalette();
|
|
2033
|
+
}
|
|
2034
|
+
/** Set template variable display mode ('code' | 'value' | 'placeholder'). */
|
|
2035
|
+
async setVariableDisplayMode(e) {
|
|
2036
|
+
(await this.ready).setVariableDisplayMode(e);
|
|
2037
|
+
}
|
|
2038
|
+
/** Get current template variable display mode. */
|
|
2039
|
+
async getVariableDisplayMode() {
|
|
2040
|
+
return (await this.ready).getVariableDisplayMode();
|
|
2041
|
+
}
|
|
2042
|
+
/** Get all registered template variables in the document. */
|
|
2043
|
+
async getTemplateVariables() {
|
|
2044
|
+
return (await this.ready).getTemplateVariables();
|
|
2045
|
+
}
|
|
2046
|
+
/** Get a single registered template variable definition by key. */
|
|
2047
|
+
async getTemplateVariable(e) {
|
|
2048
|
+
return (await this.ready).getTemplateVariable(e);
|
|
2049
|
+
}
|
|
2050
|
+
/** Get audit trail history for a template variable. */
|
|
2051
|
+
async getVariableHistory(e) {
|
|
2052
|
+
return (await this.ready).getVariableHistory(e);
|
|
2053
|
+
}
|
|
2054
|
+
/** Open built-in variable popover explicitly. */
|
|
2055
|
+
async openVariablePopover(e, t) {
|
|
2056
|
+
(await this.ready).openVariablePopover(e, t);
|
|
2057
|
+
}
|
|
2058
|
+
/** Close built-in variable popover. */
|
|
2059
|
+
async closeVariablePopover() {
|
|
2060
|
+
(await this.ready).closeVariablePopover();
|
|
2061
|
+
}
|
|
2062
|
+
/** Get all metadata IDs (numbers) currently used by template variables in the document. */
|
|
2063
|
+
async getUsedMetadataIds() {
|
|
2064
|
+
return (await this.ready).getUsedMetadataIds();
|
|
2065
|
+
}
|
|
2066
|
+
/** Set custom metadata catalog for autocomplete palette. */
|
|
2067
|
+
async setMetadataCatalog(e) {
|
|
2068
|
+
(await this.ready).setMetadataCatalog(e);
|
|
2019
2069
|
}
|
|
2020
2070
|
/** Update fine-grained capabilities (e.g. allow comments/selection in view mode). */
|
|
2021
2071
|
async setPermissions(e) {
|
package/dist-lib/kindy-editor.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { e as V, _ as H, D as W, Q as $ } from "./toc-
|
|
2
|
-
import { b as C, s as G } from "./stylesheet-
|
|
3
|
-
import { d as m, g as f, h as g, l as y, t as x } from "./pipeline-
|
|
1
|
+
import { e as V, _ as H, D as W, Q as $ } from "./toc-C6XLbDEA.js";
|
|
2
|
+
import { b as C, s as G } from "./stylesheet-COz2MSt6.js";
|
|
3
|
+
import { d as m, g as f, h as g, l as y, t as x } from "./pipeline-CgbvBwNe.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(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ne, D as oe, G as Ie, J as ze, $ as $e } from "./toc-
|
|
1
|
+
import { t as ne, D as oe, G as Ie, J as ze, $ as $e } from "./toc-C6XLbDEA.js";
|
|
2
2
|
import { h as je, e as f, b as h, n as y, v as nt, o as Z, c as dt, p as vt, r as wt, d as ot, t as Pt, I as xt, g as Et, f as Ge, W as _e } from "./contentTypes-ChqPfcVI.js";
|
|
3
3
|
import { u as ie, a as Ue } from "./browser-BxYyzpLt.js";
|
|
4
4
|
function Me() {
|
package/dist-lib/recalc-docx.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { u, a as f, s as m, z as g } from "./browser-BxYyzpLt.js";
|
|
2
2
|
import { f as h } from "./contentTypes-ChqPfcVI.js";
|
|
3
|
-
import { p as b, c as k } from "./recalcToc-
|
|
3
|
+
import { p as b, c as k } from "./recalcToc-DKJK9f5X.js";
|
|
4
4
|
function w(s, r) {
|
|
5
5
|
const n = b(r), a = {};
|
|
6
6
|
for (const [o, i] of Object.entries(s.bookmarks ?? {})) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Y as Ln, H as Ls, t as Os, s as Ps } from "./toc-
|
|
1
|
+
import { Y as Ln, H as Ls, t as Os, s as Ps } from "./toc-C6XLbDEA.js";
|
|
2
2
|
import { e as Is, f as Ze } from "./lists-DpmgbDyt.js";
|
|
3
3
|
import { m as he, f as Ue, c as le } from "./metrics-DHgtBP-R.js";
|
|
4
4
|
import { B as vs, V as On, M as nt, a2 as Rs, a3 as Mt, w as Ws, o as Ts } from "./paintStyle-Cjk9egel.js";
|