kindy-editor 3.2.1 → 3.2.3

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 (51) hide show
  1. package/dist-lib/assets/{worker-CHtzL1YW.js → worker-BIFTSRF2.js} +7043 -7021
  2. package/dist-lib/assets/{worker-_GAJUHf5.js → worker-DO8U44KQ.js} +1 -0
  3. package/dist-lib/{browser-BxYyzpLt.js → browser-xuRja-pP.js} +2 -2
  4. package/dist-lib/builder.js +7 -7
  5. package/dist-lib/changeAggregator-ymKDXGA8.js +376 -0
  6. package/dist-lib/{editorApp-7-JzxxVn.js → editorApp-zIpjgEaZ.js} +9026 -8276
  7. package/dist-lib/events.js +119 -43
  8. package/dist-lib/export.js +1742 -1724
  9. package/dist-lib/generate-toc.js +5 -5
  10. package/dist-lib/import.js +2 -2
  11. package/dist-lib/index-Dd7gMK7l.js +12857 -0
  12. package/dist-lib/{kindy-editor-DKDwpt09.js → kindy-editor-DuN692fi.js} +133 -83
  13. package/dist-lib/kindy-editor.js +9 -6
  14. package/dist-lib/{lists-DpmgbDyt.js → lists-BVCy5dMa.js} +2 -2
  15. package/dist-lib/measure.js +3 -3
  16. package/dist-lib/{measureHost-C2NOdNkI.js → measureHost-y37gLU6M.js} +2 -2
  17. package/dist-lib/{metrics-DHgtBP-R.js → metrics-CdfHD-8y.js} +3 -3
  18. package/dist-lib/{paintStyle-Cjk9egel.js → paintStyle-Cb7IGKPW.js} +51 -51
  19. package/dist-lib/{parse-D4RpPrd7.js → parse-DJZd-2A7.js} +20 -20
  20. package/dist-lib/{pipeline-DhhBcLvV.js → pipeline-DKgBMmw1.js} +301 -301
  21. package/dist-lib/recalc-docx.js +2 -2
  22. package/dist-lib/{recalcToc-n50vq4nC.js → recalcToc-DCykIt4o.js} +80 -80
  23. package/dist-lib/{styleProps-OePkgWnD.js → styleProps-Dg3Wf-ZJ.js} +3 -3
  24. package/dist-lib/{stylesheet-E5bu1xch.js → stylesheet-EQFx9l5c.js} +3 -3
  25. package/dist-lib/{toc-DSwkNKls.js → toc-BIj8uQ-W.js} +417 -388
  26. package/dist-lib/{webmcp-KVT__0GH.js → webmcp-QA5rVg1F.js} +2 -2
  27. package/docs/http-event-sink.md +7 -0
  28. package/docs/public-events.md +103 -0
  29. package/docs/template-variables.md +310 -0
  30. package/docs/track-changes-events.md +551 -0
  31. package/package.json +2 -2
  32. package/types/events.d.ts +67 -1
  33. package/types/kindy-editor.d.ts +126 -3
  34. package/dist-lib/eventHub-CZFpTVqe.js +0 -71
  35. package/dist-lib/events-D_WEQDa6.js +0 -104
  36. package/dist-lib/index-Brv5TV-9.js +0 -11822
  37. package/docs/.vitepress/cache/deps/@theme_index.js +0 -275
  38. package/docs/.vitepress/cache/deps/@theme_index.js.map +0 -7
  39. package/docs/.vitepress/cache/deps/_metadata.json +0 -40
  40. package/docs/.vitepress/cache/deps/chunk-FNDFPMRQ.js +0 -13131
  41. package/docs/.vitepress/cache/deps/chunk-FNDFPMRQ.js.map +0 -7
  42. package/docs/.vitepress/cache/deps/chunk-IOFLAFGL.js +0 -9719
  43. package/docs/.vitepress/cache/deps/chunk-IOFLAFGL.js.map +0 -7
  44. package/docs/.vitepress/cache/deps/package.json +0 -3
  45. package/docs/.vitepress/cache/deps/vitepress___@vue_devtools-api.js +0 -4483
  46. package/docs/.vitepress/cache/deps/vitepress___@vue_devtools-api.js.map +0 -7
  47. package/docs/.vitepress/cache/deps/vitepress___@vueuse_core.js +0 -583
  48. package/docs/.vitepress/cache/deps/vitepress___@vueuse_core.js.map +0 -7
  49. package/docs/.vitepress/cache/deps/vue.js +0 -347
  50. package/docs/.vitepress/cache/deps/vue.js.map +0 -7
  51. package/docs/.vitepress/config.ts +0 -30
@@ -1,18 +1,18 @@
1
- import "./toc-DSwkNKls.js";
2
- import { m as x } from "./stylesheet-E5bu1xch.js";
3
- import { H as m, A as f, y as v, C as w, I as y, a as C, P as T, F as S, Q as L, R as D, D as A } from "./paintStyle-Cjk9egel.js";
4
- import { E as P } from "./eventHub-CZFpTVqe.js";
5
- const z = 1.1, B = 0.25, R = 5, E = 36, p = {
1
+ import "./toc-BIj8uQ-W.js";
2
+ import { m as x } from "./stylesheet-EQFx9l5c.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 P } from "./paintStyle-Cb7IGKPW.js";
4
+ import { E as A } from "./changeAggregator-ymKDXGA8.js";
5
+ const z = 1.1, B = 0.25, R = 5, M = 36, p = {
6
6
  canvasBackground: "#e8eaed",
7
- grid: A,
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: y,
15
- columnSeparator: w,
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: E,
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 M(t) {
39
- return t ? {
38
+ function E(r) {
39
+ return r ? {
40
40
  ...p,
41
- ...l(t),
42
- ruler: { ...p.ruler, ...t.ruler ? l(t.ruler) : {} }
41
+ ...l(r),
42
+ ruler: { ...p.ruler, ...r.ruler ? l(r.ruler) : {} }
43
43
  } : p;
44
44
  }
45
- function F(t) {
46
- return t ? { ...g, ...l(t) } : g;
45
+ function F(r) {
46
+ return r ? { ...g, ...l(r) } : g;
47
47
  }
48
- function I(t) {
49
- return t ? {
50
- disableBuiltin: t.disableBuiltin ? [...t.disableBuiltin] : [],
51
- fonts: t.fonts ? t.fonts.map((e) => ({ ...e, faces: { ...e.faces }, sizing: { ...e.sizing } })) : [],
52
- ...t.baseUrl ? { baseUrl: t.baseUrl } : {},
53
- ...t.manifests ? { manifests: t.manifests.map((e) => typeof e == "string" ? { url: e } : { ...e }) } : {},
54
- ...t.loader ? { loader: t.loader } : {}
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(t = {}) {
58
- const e = t.overrideDefaultStyles ? l(t.overrideDefaultStyles) : {};
57
+ function J(r = {}) {
58
+ const e = r.overrideDefaultStyles ? l(r.overrideDefaultStyles) : {};
59
59
  return {
60
- theme: M(t.theme),
61
- behavior: F(t.behavior),
60
+ theme: E(r.theme),
61
+ behavior: F(r.behavior),
62
62
  typography: e,
63
63
  stylesheet: x(e),
64
- fonts: I(t.fonts),
65
- cjk: O(t.cjk),
66
- develop: t.develop ?? !1
64
+ fonts: I(r.fonts),
65
+ cjk: O(r.cjk),
66
+ develop: r.develop ?? !1
67
67
  };
68
68
  }
69
- function O(t) {
70
- const e = t ? l(t) : {};
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(t) {
78
+ function l(r) {
79
79
  const e = {};
80
- for (const [r, n] of Object.entries(t)) n !== void 0 && (e[r] = n);
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(t, e) {
781
- if (document.getElementById(t)) return;
782
- const r = document.createElement("style");
783
- r.id = t, r.textContent = e, document.head.appendChild(r);
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(t) {
791
+ function Y(r) {
792
792
  h("ked-drag-handle-styles", U);
793
- const { backdrop: e, modal: r, handle: n, signal: o } = t;
794
- e.style.pointerEvents = "none", e.style.background = "transparent", e.style.display = "block", r.style.position = "fixed", r.style.margin = "0", r.style.pointerEvents = "auto", n.classList.add("ked-drag-handle");
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 - r.offsetWidth - 6), k = Math.max(4, window.innerHeight - 44);
797
- r.style.left = `${Math.min(Math.max(4, a), b)}px`, r.style.top = `${Math.min(Math.max(4, s), k)}px`;
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 - r.offsetWidth - 24, 72);
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 (t.noDrag && a.target.closest(t.noDrag)) return;
805
- const s = r.getBoundingClientRect();
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(t, e) {
817
- const r = e > 0 ? t / e : 1;
818
- return { phase: "fonts", loaded: t, total: e, percent: c + (1 - c) * r };
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
- }, K = {
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
- }, j = {
1780
+ }, K = {
1781
1781
  en: u,
1782
- vi: K
1782
+ vi: V
1783
1783
  };
1784
- function W(t) {
1785
- const r = (t ?? (typeof navigator < "u" ? navigator.language : "en") ?? "en").split(/[-_]/)[0].toLowerCase();
1786
- return j[r] ?? u;
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 P(e.events), this.ready = new Promise((r) => {
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: W(e.locale),
1824
+ messages: j(e.locale),
1825
+ onVariableClick: e.onVariableClick,
1826
+ showVariablePopover: e.showVariablePopover,
1825
1827
  onReady: (o) => {
1826
- this.handle = o, r(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-7-JzxxVn.js").then((o) => o.e).then((o) => (e.onLoadProgress?.({ phase: "bundle", percent: c, loaded: 0, total: 0 }), o.mountEditorApp(n)));
1833
+ e.onLoadProgress?.({ phase: "bundle", percent: 0, loaded: 0, total: 0 }), import("./editorApp-zIpjgEaZ.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, r) {
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(r), () => this.off(e, r);
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, r) {
1841
- this.handlers.get(e)?.delete(r);
1842
+ off(e, t) {
1843
+ this.handlers.get(e)?.delete(t);
1842
1844
  }
1843
1845
  emit(e) {
1844
- const { type: r, ...n } = e;
1845
- for (const o of this.handlers.get(r) ?? []) o(n);
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, r = null, n = !1;
1861
+ let e = null, t = null, n = !1;
1860
1862
  return this.ready.then((o) => {
1861
- n || (e = o.createChild(), r?.(), r = null);
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() : r = 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, r) {
1952
- return (await this.ready).addComment(e, r);
1953
+ async addComment(e, t) {
1954
+ return (await this.ready).addComment(e, t);
1953
1955
  }
1954
- async replyToComment(e, r, n) {
1955
- (await this.ready).replyToComment(e, r, n);
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, r, n, o) {
1964
- (await this.ready).editComment(e, r, n, o);
1965
+ async editComment(e, t, n, o) {
1966
+ (await this.ready).editComment(e, t, n, o);
1965
1967
  }
1966
- async deleteComment(e, r) {
1967
- (await this.ready).deleteComment(e, r);
1968
+ async deleteComment(e, t) {
1969
+ (await this.ready).deleteComment(e, t);
1968
1970
  }
1969
- async resolveThread(e, r = !0) {
1970
- (await this.ready).resolveThread(e, r);
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, r) {
2005
- (await this.ready).setExternalAnnotations(e, r);
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, r) {
2013
- (await this.ready).revealRange(e, r);
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) {
@@ -1,8 +1,11 @@
1
- import { K as r, d as e, m as s } from "./kindy-editor-DKDwpt09.js";
2
- import { E as d } from "./eventHub-CZFpTVqe.js";
1
+ import { K as e, d as o, m as r } from "./kindy-editor-DuN692fi.js";
2
+ import { C as i, a as m, E as n, c as g } from "./changeAggregator-ymKDXGA8.js";
3
3
  export {
4
- d as EditorEvents,
5
- r as KindyEditor,
6
- e as darkCanvasTheme,
7
- s as makeFloatingDialog
4
+ i as ChangeAggregator,
5
+ m as CommitPolicy,
6
+ n as EditorEvents,
7
+ e as KindyEditor,
8
+ g as createHttpEventSink,
9
+ o as darkCanvasTheme,
10
+ r as makeFloatingDialog
8
11
  };
@@ -101,9 +101,9 @@ export {
101
101
  p as D,
102
102
  b as a,
103
103
  D as b,
104
- P as c,
104
+ d as c,
105
105
  U as d,
106
- d as e,
106
+ P as e,
107
107
  E as f,
108
108
  N as m,
109
109
  I as n
@@ -1,7 +1,7 @@
1
1
  import "./TimesNewRoman-Regular-C7tOI8JO.js";
2
- import "./metrics-DHgtBP-R.js";
3
- import { i as p } from "./measureHost-C2NOdNkI.js";
4
- import "./paintStyle-Cjk9egel.js";
2
+ import "./metrics-CdfHD-8y.js";
3
+ import { i as p } from "./measureHost-y37gLU6M.js";
4
+ import "./paintStyle-Cb7IGKPW.js";
5
5
  export {
6
6
  p as installMeasureHost
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import { _ as si, a as ai, b as ni, c as ii, d as oi, e as li, f as ui, g as ci, h as fi, i as di, j as hi, k as pi, l as bi, m as gi, n as vi, o as xi, p as mi, q as wi, r as yi, s as Ci, t as Ai, u as Si, v as Ii, w as ki, x as Pi, y as Ei, z as Oi, A as Ti, B as Fi } from "./TimesNewRoman-Regular-C7tOI8JO.js";
2
- import { s as Bi } from "./metrics-DHgtBP-R.js";
2
+ import { s as Bi } from "./metrics-CdfHD-8y.js";
3
3
  import { B as P0 } from "./index-DJhF0j6V.js";
4
- import { z as Za, B as Di, E as Li, G as Mi, M as Ri, J as Ni, K as Sr, L as Ir, N as kr, O as Pr } from "./paintStyle-Cjk9egel.js";
4
+ import { a as Za, c as Di, h as Li, i as Mi, M as Ri, j as Ni, k as Sr, l as Ir, n as kr, o as Pr } from "./paintStyle-Cb7IGKPW.js";
5
5
  var Q2 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
6
6
  function Z0(a) {
7
7
  return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
@@ -1,4 +1,4 @@
1
- import { S as u, B as r, V as m, z as x, a4 as f } from "./paintStyle-Cjk9egel.js";
1
+ import { S as u, c as r, f as m, a as f, m as x } from "./paintStyle-Cb7IGKPW.js";
2
2
  let o = null, a = null;
3
3
  function C(t) {
4
4
  o = t;
@@ -15,10 +15,10 @@ function y(t, n) {
15
15
  return e.font = n, e.measureText(t).width;
16
16
  }
17
17
  function S(t) {
18
- const n = x().metricsCache;
18
+ const n = f().metricsCache;
19
19
  let e = n.get(t);
20
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 = f(r(l).clone);
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
22
  e = { ascent: Math.round(s.ascent * i), descent: Math.round(s.descent * i) }, n.set(t, e);
23
23
  }
24
24
  return e;
@@ -305,63 +305,63 @@ function Qt(t, e) {
305
305
  }
306
306
  const Zt = (t) => t + 1;
307
307
  export {
308
- x as $,
308
+ ht as $,
309
309
  $ as A,
310
- At as B,
311
- zt as C,
310
+ yt as B,
311
+ G as C,
312
312
  Ot as D,
313
- v as E,
314
- wt as F,
315
- Rt as G,
313
+ V as E,
314
+ Nt as F,
315
+ j as G,
316
316
  W as H,
317
317
  gt as I,
318
- Tt as J,
319
- P as K,
320
- H as L,
318
+ tt as J,
319
+ vt as K,
320
+ Vt as L,
321
321
  U as M,
322
- K as N,
323
- Y as O,
324
- Nt as P,
325
- St as Q,
326
- V as R,
322
+ Pt as N,
323
+ Jt as O,
324
+ Xt as P,
325
+ Qt as Q,
326
+ Ut as R,
327
327
  It as S,
328
- Wt as T,
328
+ bt as T,
329
329
  xt as U,
330
- S as V,
331
- q as W,
332
- w as X,
333
- m as Y,
334
- dt as Z,
335
- ht as _,
336
- bt as a,
337
- X as a0,
338
- Ft as a1,
339
- Bt as a2,
340
- Xt as a3,
341
- Lt as a4,
342
- Dt as b,
343
- Kt as c,
344
- Ht as d,
345
- j as e,
346
- Mt as f,
347
- vt as g,
348
- Jt as h,
349
- Qt as i,
350
- Pt as j,
351
- Gt as k,
352
- $t as l,
353
- Zt as m,
354
- pt as n,
355
- Ct as o,
356
- qt as p,
357
- mt as q,
358
- yt as r,
359
- tt as s,
360
- Vt as t,
361
- Ut as u,
362
- Yt as v,
330
+ Gt as V,
331
+ Zt as W,
332
+ q as X,
333
+ w as Y,
334
+ m as Z,
335
+ dt as _,
336
+ _t as a,
337
+ x as a0,
338
+ X as a1,
339
+ Ft as a2,
340
+ mt as a3,
341
+ Et as a4,
342
+ zt as b,
343
+ At as c,
344
+ wt as d,
345
+ St as e,
346
+ S as f,
347
+ Bt as g,
348
+ v as h,
349
+ Rt as i,
350
+ Tt as j,
351
+ P as k,
352
+ H as l,
353
+ Lt as m,
354
+ K as n,
355
+ Y as o,
356
+ Yt as p,
357
+ qt as q,
358
+ Dt as r,
359
+ Ct as s,
360
+ pt as t,
361
+ Wt as u,
362
+ Kt as v,
363
363
  kt as w,
364
- Et as x,
365
- G as y,
366
- _t as z
364
+ $t as x,
365
+ Ht as y,
366
+ Mt as z
367
367
  };