vdc-editor 0.1.124 → 0.1.125

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.
@@ -1588,7 +1588,7 @@ function mL(t) {
1588
1588
  e.reduce((n, o) => G1(n, o, ""), {})
1589
1589
  );
1590
1590
  }
1591
- const gL = mL(), [mh, Use] = cn("ConfigProvider");
1591
+ const gL = mL(), [mh, jse] = cn("ConfigProvider");
1592
1592
  let bL = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", vL = (t = 21) => {
1593
1593
  let e = "", n = t;
1594
1594
  for (; n--; )
@@ -3050,7 +3050,7 @@ const y5 = {
3050
3050
  hideWhenDetached: !1,
3051
3051
  updatePositionStrategy: "optimized",
3052
3052
  prioritizePosition: !1
3053
- }, [Wse, wD] = cn("PopperContent"), wh = /* @__PURE__ */ q({
3053
+ }, [qse, wD] = cn("PopperContent"), wh = /* @__PURE__ */ q({
3054
3054
  inheritAttrs: !1,
3055
3055
  __name: "PopperContent",
3056
3056
  props: /* @__PURE__ */ zw({
@@ -6105,7 +6105,7 @@ const HP = /* @__PURE__ */ q({
6105
6105
  _: 3
6106
6106
  }, 16)) : Le("", !0);
6107
6107
  }
6108
- }), [jse, eB] = cn("SelectGroup"), tB = /* @__PURE__ */ q({
6108
+ }), [Kse, eB] = cn("SelectGroup"), tB = /* @__PURE__ */ q({
6109
6109
  __name: "SelectGroup",
6110
6110
  props: {
6111
6111
  asChild: { type: Boolean },
@@ -33046,7 +33046,7 @@ const QC = q({
33046
33046
  onDragstart: this.onDragStart
33047
33047
  }, (e = (t = this.$slots).default) === null || e === void 0 ? void 0 : e.call(t));
33048
33048
  }
33049
- }), Gse = (t = {}) => {
33049
+ }), Jse = (t = {}) => {
33050
33050
  const e = sh();
33051
33051
  return dt(() => {
33052
33052
  e.value = new Js(t);
@@ -41736,7 +41736,7 @@ function dT(t) {
41736
41736
  function ib() {
41737
41737
  return zs(10);
41738
41738
  }
41739
- const r0 = "paragraph", gr = "page", fT = "Extend", yu = "Node", $Q = yu + fT, HQ = "CC", mv = "heading", i0 = "bulletList", gv = "listItem", pT = "taskList", zQ = "taskItem", s0 = "orderedList", Ya = "table", bv = "tableHeader", vv = "tableRow", VQ = "tableCell", yv = "column", xu = "columns", xv = "textBox", Za = "image", Qa = "imageUpload", UQ = "iframe", WQ = "file", wv = "codeBlock", _v = "blockquote", jQ = "audio", qQ = "toc", hT = "video", KQ = "horizontalrule", Ev = "pagination", GQ = [Ya, s0, i0, pT], XQ = [hT, Za], a0 = "link", JQ = "placeholder", YQ = "focus", ZQ = "text", QQ = "text-bubble", eee = "gapCursor", tee = "dropCursor", nee = "characterCount", oee = "hardBreak", ree = "textStyle", iee = "selection", mT = "superText", sb = "configPlan", see = "fontSize", aee = "fontFamily", lee = "bold", uee = "italic", cee = "underline", dee = "strike", fee = "color", pee = "highlight", hee = "moreMark", mee = "textAlign", gee = "indent", bee = "lineHeight", vee = "painter", yee = "clear", Cv = "spellchecker", gT = "fontSizeIncreaseDecrease", Jse = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
41739
+ const r0 = "paragraph", gr = "page", fT = "Extend", yu = "Node", $Q = yu + fT, HQ = "CC", mv = "heading", i0 = "bulletList", gv = "listItem", pT = "taskList", zQ = "taskItem", s0 = "orderedList", Ya = "table", bv = "tableHeader", vv = "tableRow", VQ = "tableCell", yv = "column", xu = "columns", xv = "textBox", Za = "image", Qa = "imageUpload", UQ = "iframe", WQ = "file", wv = "codeBlock", _v = "blockquote", jQ = "audio", qQ = "toc", hT = "video", KQ = "horizontalrule", Ev = "pagination", GQ = [Ya, s0, i0, pT], XQ = [hT, Za], a0 = "link", JQ = "placeholder", YQ = "focus", ZQ = "text", QQ = "text-bubble", eee = "gapCursor", tee = "dropCursor", nee = "characterCount", oee = "hardBreak", ree = "textStyle", iee = "selection", mT = "superText", sb = "configPlan", see = "fontSize", aee = "fontFamily", lee = "bold", uee = "italic", cee = "underline", dee = "strike", fee = "color", pee = "highlight", hee = "moreMark", mee = "textAlign", gee = "indent", bee = "lineHeight", vee = "painter", yee = "clear", Cv = "spellchecker", gT = "fontSizeIncreaseDecrease", Zse = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
41740
41740
  __proto__: null,
41741
41741
  AUDIO: jQ,
41742
41742
  BLOCKQUOTE: _v,
@@ -51208,22 +51208,22 @@ Dn.getAdapter = o7.getAdapter;
51208
51208
  Dn.HttpStatusCode = yb;
51209
51209
  Dn.default = Dn;
51210
51210
  const {
51211
- Axios: eae,
51212
- AxiosError: tae,
51213
- CanceledError: nae,
51214
- isCancel: oae,
51215
- CancelToken: rae,
51216
- VERSION: iae,
51217
- all: sae,
51218
- Cancel: aae,
51219
- isAxiosError: lae,
51220
- spread: uae,
51221
- toFormData: cae,
51222
- AxiosHeaders: dae,
51223
- HttpStatusCode: fae,
51224
- formToJSON: pae,
51225
- getAdapter: hae,
51226
- mergeConfig: mae
51211
+ Axios: nae,
51212
+ AxiosError: oae,
51213
+ CanceledError: rae,
51214
+ isCancel: iae,
51215
+ CancelToken: sae,
51216
+ VERSION: aae,
51217
+ all: lae,
51218
+ Cancel: uae,
51219
+ isAxiosError: cae,
51220
+ spread: dae,
51221
+ toFormData: fae,
51222
+ AxiosHeaders: pae,
51223
+ HttpStatusCode: hae,
51224
+ formToJSON: mae,
51225
+ getAdapter: gae,
51226
+ mergeConfig: bae
51227
51227
  } = Dn, Bie = async function(t) {
51228
51228
  let e = [];
51229
51229
  try {
@@ -51276,7 +51276,7 @@ class a7 {
51276
51276
  return this.enabled;
51277
51277
  }
51278
51278
  }
51279
- const gae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
51279
+ const vae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
51280
51280
  __proto__: null,
51281
51281
  AI: _oe,
51282
51282
  BaseKit: NT,
@@ -51320,7 +51320,7 @@ const gae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
51320
51320
  Video: LT,
51321
51321
  VideoUpload: Koe
51322
51322
  }, Symbol.toStringTag, { value: "Module" })), Fie = '<page id="ft6nbbxs" extend="false" pagenumber="1" force="false"><h1 id="tk6n64mj" extend="&quot;false&quot;"><strong>Introduction(English)</strong></h1><p id="s864ng1o" extend="&quot;false&quot;">MyMy Editor is open-source document editor based on Vue3 and Tiptap. MyMy Editor provides comprehensive document editing capabilities, supports pagination, supports Markdown syntax, offers basic rich text editing functions, allows for the insertion of various node types in multiple formats, provides a variety of practical tools, and supports setting page styles. It also supports exporting in various formats, printing and print preview, block-level document editing, adding custom extensions, multi-language settings, and a dark theme.</p><h1 id="jm9johtz" extend="&quot;false&quot;"><strong>소개(국문)</strong></h1><p id="0qei01hl" extend="&quot;false&quot;">마이마이 에디터는 Vue3과 Tiptap을 기반으로 한 오픈소스 문서 편집기입니다. 마이마이 에디터는 포괄적인 문서 편집 기능을 제공하며, 페이지네이션, 마크다운 구문 지원, 기본적인 리치 텍스트 편집 기능, 다양한 형식의 다양한 노드 유형 삽입, 다양한 실용적인 도구 제공, 페이지 스타일 설정 지원 등을 제공합니다. 또한 다양한 형식으로 내보내기, 인쇄 및 인쇄 미리보기, 블록 수준의 문서 편집, 사용자 지정 확장 추가, 다국어 설정 및 다크 테마를 지원합니다.마이마이 에디터는 Vue3과 Tiptap을 기반으로 한 오픈소스 문서 편집기입니다. 마이마이 에디터는 포괄적인 문서 편집 기능을 제공하며, 페이지네이션, 마크다운 구문 지원, 기본적인 리치 텍스트 편집 기능, 다양한 형식의 다양한 노드 유형 삽입, 다양한 실용적인 도구 제공, 페이지 스타일 설정 지원 등을 제공합니다. 또한 다양한 형식으로 내보내기, 인쇄 및 인쇄 미리보기, 블록 수준의 문서 편집, 사용자 지정 확장 추가, 다국어 설정 및 다크 테마를 지원합니다.</p><blockquote class="blockquote"><p id="nekf7yi0" extend="false"><span style="color: rgb(115, 209, 61)"><strong><em>Make by VDC</em></strong></span></p></blockquote></page>';
51323
- function bae() {
51323
+ function yae() {
51324
51324
  const t = window.localStorage.getItem("content"), e = H(t || Fie), n = Z(() => [
51325
51325
  NT.configure({
51326
51326
  placeholder: {
@@ -52072,18 +52072,28 @@ function u7(t) {
52072
52072
  return t.replace(/<\/?([a-zA-Z0-9-]+)([^>]*)>/g, (e, n) => Qie.includes(n.toLowerCase()) ? e : e.replace(/</g, "&lt;").replace(/>/g, "&gt;"));
52073
52073
  }
52074
52074
  const Tr = (t, e, n) => {
52075
- if (typeof t == "string" && (t = u7(t), n === tt.PLAIN_TEXT))
52076
- return t.replace(/\n/g, "<br>");
52077
- if (!e || typeof t == "object") return t;
52075
+ if (typeof t == "object" || (typeof t == "string" && (t = u7(t), t = ese(t)), !e || n === tt.PLAIN_TEXT)) return t;
52078
52076
  const o = document.createElement("div");
52079
- return o.innerHTML = t, o.querySelectorAll("p").forEach((r) => {
52080
- const i = [];
52081
- r.querySelectorAll("button.super-text").forEach((s) => {
52082
- const a = s.getAttribute("data-text") || "", l = String(a).replace(/<\/p>\s*<p>/g, "<br/>").replace(/<\/?p>/g, ""), u = document.createElement("p");
52083
- u.innerHTML = `{${l}}`, u.setAttribute("class", "text-red-500"), i.push(u), s.remove();
52084
- }), i.forEach((s) => r.before(s)), r.innerHTML = r.innerHTML.trim();
52085
- }), o.innerHTML;
52086
- }, Rw = (t) => {
52077
+ return o.innerHTML = t, tse(o), o.innerHTML;
52078
+ };
52079
+ function ese(t) {
52080
+ if (/<p[\s>]/.test(t)) return t;
52081
+ const e = t.split(/\r?\n/), n = document.createElement("div");
52082
+ return e.forEach((o) => {
52083
+ const r = document.createElement("p");
52084
+ r.textContent = o.trim() ? o.trim() : "", n.appendChild(r);
52085
+ }), n.innerHTML;
52086
+ }
52087
+ function tse(t) {
52088
+ t.querySelectorAll("p").forEach((e) => {
52089
+ const n = [];
52090
+ e.querySelectorAll("button.super-text").forEach((o) => {
52091
+ const r = o.getAttribute("data-text") || "", i = String(r).replace(/<\/p>\s*<p>/g, "<br/>").replace(/<\/?p>/g, ""), s = document.createElement("p");
52092
+ s.innerHTML = `{${i}}`, s.setAttribute("class", "text-red-500"), n.push(s), o.remove();
52093
+ }), n.forEach((o) => e.before(o)), e.innerHTML = e.innerHTML.trim();
52094
+ });
52095
+ }
52096
+ const Rw = (t) => {
52087
52097
  if (typeof t == "string" && (t = u7(t)), typeof t == "object") return t;
52088
52098
  const e = document.createElement("div");
52089
52099
  return e.innerHTML = t, e.querySelectorAll("p").forEach((n) => {
@@ -52106,12 +52116,12 @@ const Tr = (t, e, n) => {
52106
52116
  setup(t) {
52107
52117
  const e = t;
52108
52118
  return (n, o) => (I(), xe("div", {
52109
- class: Ze(g(Xe)(g(ese)({ variant: e.variant }), e.class))
52119
+ class: Ze(g(Xe)(g(nse)({ variant: e.variant }), e.class))
52110
52120
  }, [
52111
52121
  ie(n.$slots, "default")
52112
52122
  ], 2));
52113
52123
  }
52114
- }), ese = l2(
52124
+ }), nse = l2(
52115
52125
  "inline-flex items-center rounded-full border px-2.5 py-0.5 font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
52116
52126
  {
52117
52127
  variants: {
@@ -52126,10 +52136,10 @@ const Tr = (t, e, n) => {
52126
52136
  variant: "default"
52127
52137
  }
52128
52138
  }
52129
- ), tse = {
52139
+ ), ose = {
52130
52140
  id: "super-text-view-wrapper",
52131
52141
  class: "relative w-[32%]"
52132
- }, nse = ["index", "book-mark-id", "line-id", "onMouseover"], ose = ["innerHTML"], rse = /* @__PURE__ */ q({
52142
+ }, rse = ["index", "book-mark-id", "line-id", "onMouseover"], ise = ["innerHTML"], sse = /* @__PURE__ */ q({
52133
52143
  __name: "SuperTextView",
52134
52144
  props: {
52135
52145
  editor: AC
@@ -52275,7 +52285,7 @@ const Tr = (t, e, n) => {
52275
52285
  };
52276
52286
  return (R, P) => {
52277
52287
  const N = vn;
52278
- return I(), xe("div", tse, [
52288
+ return I(), xe("div", ose, [
52279
52289
  (I(!0), xe(et, null, $t(r.value, (W, X) => {
52280
52290
  var ne;
52281
52291
  return I(), xe("div", {
@@ -52309,7 +52319,7 @@ const Tr = (t, e, n) => {
52309
52319
  se("div", {
52310
52320
  class: "super-text-lines",
52311
52321
  innerHTML: W.text
52312
- }, null, 8, ose),
52322
+ }, null, 8, ise),
52313
52323
  B(N, {
52314
52324
  name: "triangle",
52315
52325
  class: Ze(["absolute top-1.5 rotate-90 w-3 h-3 right-0", W.elementId ? "text-black" : "text-red-500"])
@@ -52317,7 +52327,7 @@ const Tr = (t, e, n) => {
52317
52327
  ]),
52318
52328
  _: 2
52319
52329
  }, 1032, ["class", "onDblclick"])
52320
- ], 46, nse);
52330
+ ], 46, rse);
52321
52331
  }), 128)),
52322
52332
  !g(l) && a.value ? (I(), $(pd, {
52323
52333
  key: 0,
@@ -52332,10 +52342,10 @@ const Tr = (t, e, n) => {
52332
52342
  ]);
52333
52343
  };
52334
52344
  }
52335
- }), ise = /* @__PURE__ */ ns(rse, [["__scopeId", "data-v-e7906d34"]]), sse = {
52345
+ }), ase = /* @__PURE__ */ ns(sse, [["__scopeId", "data-v-e7906d34"]]), lse = {
52336
52346
  id: "super-text-view-wrapper",
52337
52347
  class: "relative w-[32%]"
52338
- }, ase = ["index", "book-mark-id", "line-id", "onMouseover"], lse = ["innerHTML"], use = /* @__PURE__ */ q({
52348
+ }, use = ["index", "book-mark-id", "line-id", "onMouseover"], cse = ["innerHTML"], dse = /* @__PURE__ */ q({
52339
52349
  __name: "SuperTextViewComment",
52340
52350
  props: {
52341
52351
  editor: {},
@@ -52482,7 +52492,7 @@ const Tr = (t, e, n) => {
52482
52492
  };
52483
52493
  return (R, P) => {
52484
52494
  const N = vn;
52485
- return I(), xe("div", sse, [
52495
+ return I(), xe("div", lse, [
52486
52496
  (I(!0), xe(et, null, $t(r.value, (W, X) => {
52487
52497
  var ne;
52488
52498
  return I(), xe("div", {
@@ -52516,7 +52526,7 @@ const Tr = (t, e, n) => {
52516
52526
  se("div", {
52517
52527
  class: "super-text-lines",
52518
52528
  innerHTML: W.text
52519
- }, null, 8, lse),
52529
+ }, null, 8, cse),
52520
52530
  B(N, {
52521
52531
  name: "triangle",
52522
52532
  class: Ze(["absolute top-1.5 rotate-90 w-3 h-3 right-0", W.elementId ? "text-black" : "text-red-500"])
@@ -52524,7 +52534,7 @@ const Tr = (t, e, n) => {
52524
52534
  ]),
52525
52535
  _: 2
52526
52536
  }, 1032, ["class", "onDblclick"])
52527
- ], 46, ase);
52537
+ ], 46, use);
52528
52538
  }), 128)),
52529
52539
  !g(l) && a.value && !R.disableSuperInput ? (I(), $(pd, {
52530
52540
  key: 0,
@@ -52539,7 +52549,7 @@ const Tr = (t, e, n) => {
52539
52549
  ]);
52540
52550
  };
52541
52551
  }
52542
- }), cse = /* @__PURE__ */ ns(use, [["__scopeId", "data-v-2aada4ff"]]), d7 = (t) => {
52552
+ }), fse = /* @__PURE__ */ ns(dse, [["__scopeId", "data-v-2aada4ff"]]), d7 = (t) => {
52543
52553
  t = t.replace(/\s*style="[^"]*"/g, "");
52544
52554
  const e = t.match(/<!--StartFragment-->([\s\S]*?)<!--EndFragment-->/), o = (e ? e[1] : t).replace(/<br\s*\/?>/gi, `
52545
52555
  `).split(/\r?\n/), r = [];
@@ -52557,8 +52567,8 @@ const Tr = (t, e, n) => {
52557
52567
  /^<(?!p\b)[^>]+>/i.test(s) ? r.push(`<p>${s}</p>`) : r.push(s);
52558
52568
  }
52559
52569
  return r.join("");
52560
- }, dse = io(), gd = (t) => {
52561
- const e = Z(() => dse.state.spellCheck);
52570
+ }, pse = io(), gd = (t) => {
52571
+ const e = Z(() => pse.state.spellCheck);
52562
52572
  Be(
52563
52573
  () => e.value,
52564
52574
  (n) => {
@@ -52568,13 +52578,13 @@ const Tr = (t, e, n) => {
52568
52578
  immediate: !0
52569
52579
  }
52570
52580
  );
52571
- }, fse = {
52581
+ }, hse = {
52572
52582
  id: "editor-container-comment",
52573
52583
  class: "flex flex-col"
52574
- }, pse = { class: "flex flex-1" }, hse = {
52584
+ }, mse = { class: "flex flex-1" }, gse = {
52575
52585
  id: "editor-panel",
52576
52586
  class: "flex-1"
52577
- }, mse = /* @__PURE__ */ q({
52587
+ }, bse = /* @__PURE__ */ q({
52578
52588
  __name: "EditorComment",
52579
52589
  props: {
52580
52590
  isMobile: { type: Boolean },
@@ -52741,16 +52751,16 @@ const Tr = (t, e, n) => {
52741
52751
  (T) => {
52742
52752
  A(T);
52743
52753
  }
52744
- ), gd(x), e({ editor: x }), (T, k) => (I(), xe("div", fse, [
52745
- se("div", pse, [
52746
- Hr(B(cse, {
52754
+ ), gd(x), e({ editor: x }), (T, k) => (I(), xe("div", hse, [
52755
+ se("div", mse, [
52756
+ Hr(B(fse, {
52747
52757
  "disable-super-input": T.disableSuperInput,
52748
52758
  editor: g(x),
52749
52759
  class: "mr-2.5 border border-[#999999] rounded-[3px] bg-[#F2F2F7] dark:bg-black"
52750
52760
  }, null, 8, ["disable-super-input", "editor"]), [
52751
52761
  [qi, T.isOpenSuperView]
52752
52762
  ]),
52753
- se("div", hse, [
52763
+ se("div", gse, [
52754
52764
  B(Nv, {
52755
52765
  ref_key: "selectContextMenuRef",
52756
52766
  ref: _,
@@ -52773,7 +52783,7 @@ const Tr = (t, e, n) => {
52773
52783
  ]));
52774
52784
  }
52775
52785
  });
52776
- function gse(t, e, n = !1, o = 200) {
52786
+ function vse(t, e, n = !1, o = 200) {
52777
52787
  const { height: r } = rR(t), i = H(0), s = H(0), a = H(o), l = H(0), u = async () => {
52778
52788
  await Mt();
52779
52789
  const d = r.value - 8;
@@ -52788,7 +52798,7 @@ function gse(t, e, n = !1, o = 200) {
52788
52798
  minHeightComment: l
52789
52799
  };
52790
52800
  }
52791
- const bse = { class: "flex flex-1" }, vse = {
52801
+ const yse = { class: "flex flex-1" }, xse = {
52792
52802
  id: "editor-panel",
52793
52803
  class: "flex-1"
52794
52804
  }, Wv = /* @__PURE__ */ q({
@@ -53021,7 +53031,7 @@ const bse = { class: "flex flex-1" }, vse = {
53021
53031
  if (!((we = ne == null ? void 0 : ne.storage) != null && we.superText)) return !1;
53022
53032
  const { enable: J } = ne.storage.superText, ae = [tt.EDITOR, tt.PLAIN_TEXT].includes(o.mode), ue = o.disabled;
53023
53033
  return J && !ae && !ue;
53024
- }), Y = H(null), le = Z(() => o.mode), { commentHeight: fe, contentHeight: he, minHeight: Re, minHeightComment: De } = gse(
53034
+ }), Y = H(null), le = Z(() => o.mode), { commentHeight: fe, contentHeight: he, minHeight: Re, minHeightComment: De } = vse(
53025
53035
  Y,
53026
53036
  le,
53027
53037
  o.autoHeight,
@@ -53095,7 +53105,7 @@ const bse = { class: "flex flex-1" }, vse = {
53095
53105
  ),
53096
53106
  style: Vt(N.value)
53097
53107
  }, [
53098
- J.mode === g(tt).REPORT && !J.hideComment ? (I(), $(mse, {
53108
+ J.mode === g(tt).REPORT && !J.hideComment ? (I(), $(bse, {
53099
53109
  key: 0,
53100
53110
  ref_key: "editorCommentRef",
53101
53111
  ref: Ve,
@@ -53123,14 +53133,14 @@ const bse = { class: "flex flex-1" }, vse = {
53123
53133
  }
53124
53134
  )
53125
53135
  }, [
53126
- se("div", bse, [
53127
- Hr(B(ise, {
53136
+ se("div", yse, [
53137
+ Hr(B(ase, {
53128
53138
  editor: g(ne),
53129
53139
  class: "mr-2.5 border border-[#999999] rounded-[3px] bg-[#F2F2F7] dark:bg-black"
53130
53140
  }, null, 8, ["editor"]), [
53131
53141
  [qi, F.value]
53132
53142
  ]),
53133
- se("div", vse, [
53143
+ se("div", xse, [
53134
53144
  B(Nv, {
53135
53145
  ref_key: "selectContextMenuRef",
53136
53146
  ref: ye,
@@ -53154,7 +53164,7 @@ const bse = { class: "flex flex-1" }, vse = {
53154
53164
  ], 6)) : Le("", !0);
53155
53165
  };
53156
53166
  }
53157
- }), yse = { class: "flex gap-2 items-center" }, xse = /* @__PURE__ */ q({
53167
+ }), wse = { class: "flex gap-2 items-center" }, _se = /* @__PURE__ */ q({
53158
53168
  __name: "ToolbarFormat",
53159
53169
  props: {
53160
53170
  editor: {},
@@ -53205,7 +53215,7 @@ const bse = { class: "flex flex-1" }, vse = {
53205
53215
  )
53206
53216
  )
53207
53217
  }, [
53208
- se("div", yse, [
53218
+ se("div", wse, [
53209
53219
  (I(!0), xe(et, null, $t(r.value, (u, d) => {
53210
53220
  var p;
53211
53221
  return I(), $(or(u.button.component), Ae({
@@ -53231,7 +53241,7 @@ const bse = { class: "flex flex-1" }, vse = {
53231
53241
  ])
53232
53242
  ], 2));
53233
53243
  }
53234
- }), f7 = /* @__PURE__ */ ns(xse, [["__scopeId", "data-v-5cf68949"]]), wse = { class: "flex gap-2 items-center overflow-x-auto" }, _se = /* @__PURE__ */ q({
53244
+ }), f7 = /* @__PURE__ */ ns(_se, [["__scopeId", "data-v-5cf68949"]]), Ese = { class: "flex gap-2 items-center overflow-x-auto" }, Cse = /* @__PURE__ */ q({
53235
53245
  __name: "ToolbarMobile",
53236
53246
  props: {
53237
53247
  editor: {},
@@ -53282,7 +53292,7 @@ const bse = { class: "flex flex-1" }, vse = {
53282
53292
  )
53283
53293
  )
53284
53294
  }, [
53285
- se("div", wse, [
53295
+ se("div", Ese, [
53286
53296
  (I(!0), xe(et, null, $t(r.value, (u, d) => {
53287
53297
  var p;
53288
53298
  return I(), xe(et, { key: d }, [
@@ -53319,7 +53329,7 @@ const bse = { class: "flex flex-1" }, vse = {
53319
53329
  ])
53320
53330
  ], 2));
53321
53331
  }
53322
- }), p7 = /* @__PURE__ */ ns(_se, [["__scopeId", "data-v-236fec84"]]), Ese = { class: "bg-ed-blue px-1" }, Cse = { class: "bg-ed-blue px-1" }, Sse = /* @__PURE__ */ q({
53332
+ }), p7 = /* @__PURE__ */ ns(Cse, [["__scopeId", "data-v-236fec84"]]), Sse = { class: "bg-ed-blue px-1" }, Tse = { class: "bg-ed-blue px-1" }, kse = /* @__PURE__ */ q({
53323
53333
  __name: "SelectContextMenuMobile",
53324
53334
  props: {
53325
53335
  editor: {},
@@ -53389,7 +53399,7 @@ const bse = { class: "flex flex-1" }, vse = {
53389
53399
  onClick: C[0] || (C[0] = (N) => x.editor.commands.toggleSuperInputMoblie())
53390
53400
  }, {
53391
53401
  default: M(() => [
53392
- se("span", Ese, Fe(g(n)("editor.super")), 1)
53402
+ se("span", Sse, Fe(g(n)("editor.super")), 1)
53393
53403
  ]),
53394
53404
  _: 1
53395
53405
  })) : Le("", !0),
@@ -53398,7 +53408,7 @@ const bse = { class: "flex flex-1" }, vse = {
53398
53408
  onClick: C[1] || (C[1] = (N) => x.editor.commands.toggleConfigPlanInput())
53399
53409
  }, {
53400
53410
  default: M(() => [
53401
- se("span", Cse, Fe(g(n)("editor.configPlan")), 1)
53411
+ se("span", Tse, Fe(g(n)("editor.configPlan")), 1)
53402
53412
  ]),
53403
53413
  _: 1
53404
53414
  })) : Le("", !0),
@@ -53455,7 +53465,7 @@ const bse = { class: "flex flex-1" }, vse = {
53455
53465
  ], 64);
53456
53466
  };
53457
53467
  }
53458
- }), jv = /* @__PURE__ */ ns(Sse, [["__scopeId", "data-v-4d192286"]]), Tse = { class: "text-red-500 relative -top-1" }, y0 = /* @__PURE__ */ q({
53468
+ }), jv = /* @__PURE__ */ ns(kse, [["__scopeId", "data-v-4d192286"]]), Ase = { class: "text-red-500 relative -top-1" }, y0 = /* @__PURE__ */ q({
53459
53469
  __name: "EditorFieldName",
53460
53470
  props: {
53461
53471
  fieldName: {},
@@ -53478,12 +53488,12 @@ const bse = { class: "flex flex-1" }, vse = {
53478
53488
  )
53479
53489
  )
53480
53490
  }, Fe(g(n)), 3),
53481
- Hr(se("span", Tse, " •", 512), [
53491
+ Hr(se("span", Ase, " •", 512), [
53482
53492
  [qi, r.fieldName.isRequired]
53483
53493
  ])
53484
53494
  ]));
53485
53495
  }
53486
- }), kse = /* @__PURE__ */ q({
53496
+ }), Ose = /* @__PURE__ */ q({
53487
53497
  __name: "EditorCommentMoblie",
53488
53498
  props: {
53489
53499
  isMobile: { type: Boolean },
@@ -54367,7 +54377,7 @@ const Kv = /* @__PURE__ */ q({
54367
54377
  )
54368
54378
  )
54369
54379
  }, [
54370
- B(kse, {
54380
+ B(Ose, {
54371
54381
  ref_key: "editorCommentRef",
54372
54382
  ref: X,
54373
54383
  mode: te.mode,
@@ -54473,7 +54483,7 @@ const Kv = /* @__PURE__ */ q({
54473
54483
  ], 64);
54474
54484
  };
54475
54485
  }
54476
- }), vae = /* @__PURE__ */ q({
54486
+ }), xae = /* @__PURE__ */ q({
54477
54487
  __name: "ArticleEditor",
54478
54488
  props: {
54479
54489
  mode: { default: tt.STRAIGHT },
@@ -54527,7 +54537,7 @@ const Kv = /* @__PURE__ */ q({
54527
54537
  "onUpdate:comment": r[1] || (r[1] = (i) => o.$emit("update:comment", i))
54528
54538
  }), null, 16));
54529
54539
  }
54530
- }), yae = /* @__PURE__ */ q({
54540
+ }), wae = /* @__PURE__ */ q({
54531
54541
  __name: "DigitalNewsEditor",
54532
54542
  props: {
54533
54543
  mode: { default: tt.EDITOR },
@@ -54937,15 +54947,15 @@ var h7 = { exports: {} };
54937
54947
  oe.htmlToTokens = w, oe.findMatchingBlocks = R, R.findBestMatch = A, R.createMap = C, R.createToken = b, R.createSegment = k, R.getKeyForToken = x, oe.calculateOperations = P, oe.renderOperations = ne, t !== null ? t.exports = oe : this.htmldiff = oe;
54938
54948
  }).call(Sl);
54939
54949
  })(h7);
54940
- var Ase = h7.exports;
54941
- const Ose = /* @__PURE__ */ dF(Ase), Lw = (t, e, n) => {
54950
+ var Mse = h7.exports;
54951
+ const Nse = /* @__PURE__ */ dF(Mse), Lw = (t, e, n) => {
54942
54952
  let o = "";
54943
54953
  {
54944
54954
  const r = Tr(t, n), i = Tr(e, n);
54945
- o = Ose(r, i, null, null, "button");
54955
+ o = Nse(r, i, null, null, "button");
54946
54956
  }
54947
54957
  return o = o.replace(/<del[^>]*>/g, '<mark style="background:#ffa8a8;color:white;">').replace(/<\/del>/g, "</mark>").replace(/<ins[^>]*>/g, '<mark style="background:#42424266;">').replace(/<\/ins>/g, "</mark>"), o;
54948
- }, Mse = { class: "border border-ed-gray rounded-[5px] p-2.5 flex-1 overflow-y-auto" }, Nse = { class: "border border-ed-gray rounded-[5px] p-2.5 h-full" }, Ise = { class: "border border-ed-gray rounded-[5px] p-2.5 flex-1 overflow-y-auto" }, Rse = /* @__PURE__ */ q({
54958
+ }, Ise = { class: "border border-ed-gray rounded-[5px] p-2.5 flex-1 overflow-y-auto" }, Rse = { class: "border border-ed-gray rounded-[5px] p-2.5 h-full" }, Lse = { class: "border border-ed-gray rounded-[5px] p-2.5 flex-1 overflow-y-auto" }, Dse = /* @__PURE__ */ q({
54949
54959
  __name: "ArticleCompareEditor",
54950
54960
  props: {
54951
54961
  originalData: {},
@@ -55003,7 +55013,7 @@ const Ose = /* @__PURE__ */ dF(Ase), Lw = (t, e, n) => {
55003
55013
  "title-bar": b.originalData.titleBar,
55004
55014
  class: "text-[12px] mb-[3px]"
55005
55015
  }, null, 8, ["title-bar"])) : Le("", !0),
55006
- se("div", Mse, [
55016
+ se("div", Ise, [
55007
55017
  B(vc, {
55008
55018
  "editor-class": "h-full",
55009
55019
  mode: g(tt).REPORT,
@@ -55024,7 +55034,7 @@ const Ose = /* @__PURE__ */ dF(Ase), Lw = (t, e, n) => {
55024
55034
  default: M(() => {
55025
55035
  var x, C, S, _;
55026
55036
  return [
55027
- se("div", Nse, [
55037
+ se("div", Rse, [
55028
55038
  B(vc, {
55029
55039
  "editor-class": "h-full",
55030
55040
  mode: g(tt).REPORT,
@@ -55054,7 +55064,7 @@ const Ose = /* @__PURE__ */ dF(Ase), Lw = (t, e, n) => {
55054
55064
  class: "text-[12px] mb-[3px]",
55055
55065
  "custom-class": "bg-[#34c759]"
55056
55066
  }, null, 8, ["title-bar"])) : Le("", !0),
55057
- se("div", Ise, [
55067
+ se("div", Lse, [
55058
55068
  B(vc, {
55059
55069
  "editor-class": "h-full",
55060
55070
  mode: g(tt).REPORT,
@@ -55087,7 +55097,7 @@ const Ose = /* @__PURE__ */ dF(Ase), Lw = (t, e, n) => {
55087
55097
  ], 64);
55088
55098
  };
55089
55099
  }
55090
- }), xae = /* @__PURE__ */ ns(Rse, [["__scopeId", "data-v-d4041208"]]), Lse = (t, e) => {
55100
+ }), _ae = /* @__PURE__ */ ns(Dse, [["__scopeId", "data-v-d4041208"]]), Pse = (t, e) => {
55091
55101
  let n = null;
55092
55102
  return t.state.doc.descendants((o, r) => {
55093
55103
  if (o.type.name === "paragraph" && Number(o.attrs["number-line"]) === e)
@@ -55107,7 +55117,7 @@ async function m7({
55107
55117
  return e.view.dispatch(u), !1;
55108
55118
  }
55109
55119
  }), await Mt(), !t) return;
55110
- const n = Lse(e, t);
55120
+ const n = Pse(e, t);
55111
55121
  if (!n) return;
55112
55122
  const { node: o, pos: r } = n, i = e.state.tr.setNodeMarkup(r, void 0, {
55113
55123
  ...o.attrs,
@@ -55115,7 +55125,7 @@ async function m7({
55115
55125
  });
55116
55126
  e.view.dispatch(i), await Mt(), e.view.nodeDOM(r).scrollIntoView({ behavior: "smooth" });
55117
55127
  }
55118
- const Dse = /* @__PURE__ */ q({
55128
+ const Bse = /* @__PURE__ */ q({
55119
55129
  __name: "SuperViewMobileSuperEditor",
55120
55130
  props: {
55121
55131
  isMobile: { type: Boolean },
@@ -55305,7 +55315,7 @@ const Dse = /* @__PURE__ */ q({
55305
55315
  ], 64);
55306
55316
  };
55307
55317
  }
55308
- }), wae = /* @__PURE__ */ q({
55318
+ }), Eae = /* @__PURE__ */ q({
55309
55319
  __name: "SuperViewMobileEditor",
55310
55320
  props: {
55311
55321
  isMobile: { type: Boolean },
@@ -55604,7 +55614,7 @@ const Dse = /* @__PURE__ */ q({
55604
55614
  )
55605
55615
  )
55606
55616
  }, [
55607
- B(Dse, {
55617
+ B(Bse, {
55608
55618
  mode: ye.mode,
55609
55619
  "field-name-super": ye.fieldNameSuper,
55610
55620
  extensions: ye.extensions,
@@ -55633,7 +55643,7 @@ const Dse = /* @__PURE__ */ q({
55633
55643
  ], 64);
55634
55644
  };
55635
55645
  }
55636
- }), Pse = {
55646
+ }), Fse = {
55637
55647
  "editor.remove": "Remove",
55638
55648
  "editor.copy": "Copy",
55639
55649
  "editor.words": "WORDS",
@@ -55830,7 +55840,7 @@ const Dse = /* @__PURE__ */ q({
55830
55840
  "editor.alert": "Super has been changed. Super ID will be deleted.",
55831
55841
  "editor.alertConfirm": "Confirm",
55832
55842
  "editor.alertYes": "OK"
55833
- }, Bse = {
55843
+ }, $se = {
55834
55844
  "editor.remove": "제거",
55835
55845
  "editor.copy": "복사",
55836
55846
  "editor.words": "낱말",
@@ -56027,42 +56037,42 @@ const Dse = /* @__PURE__ */ q({
56027
56037
  "editor.alert": "수퍼가 변경되었습니다. 수퍼아이디를 삭제합니다.",
56028
56038
  "editor.alertConfirm": "확인",
56029
56039
  "editor.alertYes": "확인"
56030
- }, Fse = jH({
56040
+ }, Hse = jH({
56031
56041
  legacy: !1,
56032
56042
  locale: "en",
56033
56043
  fallbackLocale: "en",
56034
56044
  messages: {
56035
- en: Pse,
56036
- ko: Bse
56045
+ en: Fse,
56046
+ ko: $se
56037
56047
  }
56038
56048
  });
56039
56049
  z_();
56040
- const _ae = {
56050
+ const Cae = {
56041
56051
  install(t) {
56042
- t.use(Fse), t.component("vdc-editor", Wv);
56052
+ t.use(Hse), t.component("vdc-editor", Wv);
56043
56053
  }
56044
- }, $se = Jn(ro.RENDER_SUPER_TEXT);
56045
- function Eae() {
56046
- $se.emit({
56054
+ }, zse = Jn(ro.RENDER_SUPER_TEXT);
56055
+ function Sae() {
56056
+ zse.emit({
56047
56057
  action: "render"
56048
56058
  });
56049
56059
  }
56050
56060
  export {
56051
- xae as ArticleCompareEditor,
56052
- vae as ArticleEditor,
56061
+ _ae as ArticleCompareEditor,
56062
+ xae as ArticleEditor,
56053
56063
  Wv as CoreEditor,
56054
- yae as DigitalNewsEditor,
56064
+ wae as DigitalNewsEditor,
56055
56065
  tt as EditorMode,
56056
- _ae as SBSEditorPlugin,
56057
- wae as SuperViewMobileEditor,
56058
- _ae as default,
56059
- Pse as enUS,
56060
- gae as extension,
56061
- Bse as koKR,
56062
- Jse as nodeNames,
56063
- Eae as updateSuperTextView,
56064
- bae as useConfigTiptap,
56065
- Gse as useEditor,
56066
+ Cae as SBSEditorPlugin,
56067
+ Eae as SuperViewMobileEditor,
56068
+ Cae as default,
56069
+ Fse as enUS,
56070
+ vae as extension,
56071
+ $se as koKR,
56072
+ Zse as nodeNames,
56073
+ Sae as updateSuperTextView,
56074
+ yae as useConfigTiptap,
56075
+ Jse as useEditor,
56066
56076
  io as useTiptapStore
56067
56077
  };
56068
56078
  //# sourceMappingURL=vdc-editor.mjs.map