vdc-editor 0.1.285 → 0.1.287

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.
@@ -0,0 +1,5 @@
1
+ import { _ as f } from "./index-CSWlx85G.mjs";
2
+ export {
3
+ f as default
4
+ };
5
+ //# sourceMappingURL=BulkSpellChecker-IraxV0f0.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BulkSpellChecker-IraxV0f0.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -32466,7 +32466,7 @@ const CY = { class: "flex gap-2 items-center overflow-x-auto overflow-y-hidden [
32466
32466
  toolbarExtensionOrder: {}
32467
32467
  },
32468
32468
  setup(t) {
32469
- const e = DR(() => import("./BulkSpellChecker-D1u_4oGj.mjs")), { t: n } = Jt(), o = t, r = zt("isEditable", z(!0)), i = [
32469
+ const e = DR(() => import("./BulkSpellChecker-IraxV0f0.mjs")), { t: n } = Jt(), o = t, r = zt("isEditable", z(!0)), i = [
32470
32470
  mh,
32471
32471
  hd,
32472
32472
  vh,
@@ -47397,8 +47397,8 @@ const dse = ["innerHTML"], fse = ["book-mark-node-id", "book-mark-content", "nod
47397
47397
  default: O(() => [
47398
47398
  g(o) && !r.value ? (A(), ie("button", {
47399
47399
  key: 0,
47400
- onClick: pn(F, ["stop"]),
47401
- class: "w-6 inline-flex justify-center rounded text-ed-red-500 active:bg-ed-accent"
47400
+ class: "w-6 inline-flex justify-center rounded text-ed-red-500 active:bg-ed-accent",
47401
+ onClick: pn(F, ["stop"])
47402
47402
  }, [
47403
47403
  R(g(Qt), {
47404
47404
  name: "fileEdit2",
@@ -47407,9 +47407,9 @@ const dse = ["innerHTML"], fse = ["book-mark-node-id", "book-mark-content", "nod
47407
47407
  ])) : ye("", !0),
47408
47408
  g(o) && r.value ? (A(), ie("div", {
47409
47409
  key: 1,
47410
- innerHTML: I.value,
47410
+ class: "super-text-view-mode-item whitespace-pre-wrap",
47411
47411
  onClick: pn(F, ["stop"]),
47412
- class: "super-text-view-mode-item"
47412
+ innerHTML: I.value
47413
47413
  }, null, 8, dse)) : ye("", !0),
47414
47414
  g(o) ? ye("", !0) : (A(), H(W, { key: 2 }, {
47415
47415
  default: O(() => [
@@ -48469,7 +48469,7 @@ const k5 = io(), wo = {
48469
48469
  __name: "SimpleEditor",
48470
48470
  props: {
48471
48471
  modelValue: { default: "" },
48472
- parentEditor: {},
48472
+ parentEditor: { default: null },
48473
48473
  isReadOnly: { type: Boolean },
48474
48474
  autofocus: { type: [String, Number, Boolean, null], default: "start" },
48475
48475
  spellcheckEnabled: { type: Boolean, default: !0 }
@@ -48594,9 +48594,6 @@ const k5 = io(), wo = {
48594
48594
  return e({ insertSpecialCharater: h, isChecked: l, toggleSpellCheck: m, wrapText: C, editor: f }), (F, I) => (A(), ie("div", {
48595
48595
  ref_key: "contentInner",
48596
48596
  ref: b,
48597
- style: vt([g(x), g(k)]),
48598
- onScroll: I[0] || (I[0] = //@ts-ignore
48599
- (...L) => g(M) && g(M)(...L)),
48600
48597
  class: Fe(
48601
48598
  g(Be)(
48602
48599
  "h-40 overflow-y-auto border focus-within:border-ed-input-focus rounded-[3px] p-2.5 relative",
@@ -48604,7 +48601,10 @@ const k5 = io(), wo = {
48604
48601
  g(i) && "h-auto min-h-20 max-h-44 border-ed-gray rounded-md px-4 py-2.5",
48605
48602
  g(i) && !g(T) && "scrollbar-thumb-transparent"
48606
48603
  )
48607
- )
48604
+ ),
48605
+ style: vt([g(x), g(k)]),
48606
+ onScroll: I[0] || (I[0] = //@ts-ignore
48607
+ (...L) => g(M) && g(M)(...L))
48608
48608
  }, [
48609
48609
  R(g(Ro), {
48610
48610
  id: "editor-panel",
@@ -48646,7 +48646,8 @@ const k5 = io(), wo = {
48646
48646
  B.getBoundingClientRect();
48647
48647
  const ee = window.innerWidth, oe = window.innerHeight;
48648
48648
  u.value && u.value.x !== void 0 && u.value.y !== void 0 ? (d.x = u.value.x, d.y = u.value.y) : (d.x = Math.max((ee - B.offsetWidth) / 2, 0), d.y = Math.max((oe - B.offsetHeight) / 2, 0));
48649
- }
48649
+ },
48650
+ { immediate: !0 }
48650
48651
  );
48651
48652
  const E = () => {
48652
48653
  n("close"), i.value = "", s.value = "", l.value = !1;
@@ -48781,9 +48782,9 @@ const k5 = io(), wo = {
48781
48782
  g(V) ? (A(), H($e, {
48782
48783
  key: 0,
48783
48784
  editor: g(V),
48784
- isEnableSpellCheckRealTime: (fe = g(V)) == null ? void 0 : fe.extensionStorage.spellchecker.spellchecker.proofreader.enabled,
48785
+ "is-enable-spell-check-real-time": (fe = g(V)) == null ? void 0 : fe.extensionStorage.spellchecker.spellchecker.proofreader.enabled,
48785
48786
  align: "left"
48786
- }, null, 8, ["editor", "isEnableSpellCheckRealTime"])) : ye("", !0)
48787
+ }, null, 8, ["editor", "is-enable-spell-check-real-time"])) : ye("", !0)
48787
48788
  ])
48788
48789
  ], 2),
48789
48790
  l.value ? (A(), H(Tn((ge = g(T)) == null ? void 0 : ge.component), Ne({
@@ -50050,7 +50051,8 @@ const Xy = an.create({
50050
50051
  () => o.open,
50051
50052
  () => {
50052
50053
  o.open && o.superTextInit && (i.value = o.superTextInit);
50053
- }
50054
+ },
50055
+ { immediate: !0 }
50054
50056
  );
50055
50057
  const d = () => {
50056
50058
  n("close"), s.value = !1, a.value = !0, l.value = !1;
@@ -50064,7 +50066,7 @@ const Xy = an.create({
50064
50066
  return A(), H(k, { open: m.open }, {
50065
50067
  default: O(() => [
50066
50068
  R(C, {
50067
- isOverlayTransparent: "",
50069
+ "is-overlay-transparent": "",
50068
50070
  class: "p-2.5 gap-0 gap-y-2.5 border-none w-[calc(100%-40px)] !shadow-ed rounded-[5px]"
50069
50071
  }, {
50070
50072
  default: O(() => [
@@ -50098,12 +50100,12 @@ const Xy = an.create({
50098
50100
  }),
50099
50101
  R(_, { class: "hidden" }),
50100
50102
  R(qy, {
50101
- isReadOnly: a.value,
50102
50103
  modelValue: i.value,
50103
50104
  "onUpdate:modelValue": b[0] || (b[0] = (T) => i.value = T),
50105
+ "is-read-only": a.value,
50104
50106
  "parent-editor": m.editor,
50105
50107
  "spellcheck-enabled": !1
50106
- }, null, 8, ["isReadOnly", "modelValue", "parent-editor"]),
50108
+ }, null, 8, ["modelValue", "is-read-only", "parent-editor"]),
50107
50109
  R(E, { class: "flex-row justify-between" }, {
50108
50110
  default: O(() => [
50109
50111
  Wn(q("button", {
@@ -50114,11 +50116,11 @@ const Xy = an.create({
50114
50116
  Wn(q("div", rae, [
50115
50117
  q("button", { onClick: d }, Ie(g(r)("editor.menubar.menu.cancel")), 1),
50116
50118
  q("button", {
50117
- onClick: f,
50118
50119
  disabled: g(u),
50119
50120
  class: Fe({
50120
50121
  "cursor-not-allowed": g(u)
50121
- })
50122
+ }),
50123
+ onClick: f
50122
50124
  }, Ie(g(r)("editor.menubar.menu.save")), 11, iae)
50123
50125
  ], 512), [
50124
50126
  [po, l.value || !a.value]
@@ -50134,7 +50136,7 @@ const Xy = an.create({
50134
50136
  }, 8, ["open"]);
50135
50137
  };
50136
50138
  }
50137
- }), kk = /* @__PURE__ */ ui(sae, [["__scopeId", "data-v-2f4982a0"]]), aae = ["innerHTML"], lae = ["book-mark-node-id", "page-id", "page-number", "book-mark-content", "node-id", "line-id"], uae = /* @__PURE__ */ Y({
50139
+ }), kk = /* @__PURE__ */ ui(sae, [["__scopeId", "data-v-c6e8813c"]]), aae = ["innerHTML"], lae = ["book-mark-node-id", "page-id", "page-number", "book-mark-content", "node-id", "line-id"], uae = /* @__PURE__ */ Y({
50138
50140
  __name: "ConfigPlan",
50139
50141
  props: fl,
50140
50142
  setup(t) {
@@ -56198,7 +56200,7 @@ const dce = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
56198
56200
  variant: "outline",
56199
56201
  class: Fe(
56200
56202
  g(Be)(
56201
- "wrap-anywhere whitespace-normal w-full !font-normal px-1 pt-0 m-0 !leading-tight rounded-sm text-white border-transparent cursor-pointer",
56203
+ "wrap-anywhere whitespace-pre-wrap w-full !font-normal px-1 pt-0 m-0 !leading-tight rounded-sm text-white border-transparent cursor-pointer",
56202
56204
  M.elementId ? ((L = E.superPreviewCustomClass) == null ? void 0 : L.completedSuper) ?? "bg-black" : ((U = E.superPreviewCustomClass) == null ? void 0 : U.unproducedSuper) ?? "bg-red-500",
56203
56205
  {
56204
56206
  "cursor-default": !g(u)
@@ -56233,7 +56235,7 @@ const dce = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
56233
56235
  ], 6);
56234
56236
  };
56235
56237
  }
56236
- }), Tce = /* @__PURE__ */ ui(kce, [["__scopeId", "data-v-18e941f3"]]), Ace = ["index", "book-mark-id", "line-id", "onMouseover"], Mce = ["innerHTML"], Oce = /* @__PURE__ */ Y({
56238
+ }), Tce = /* @__PURE__ */ ui(kce, [["__scopeId", "data-v-f034d4ce"]]), Ace = ["index", "book-mark-id", "line-id", "onMouseover"], Mce = ["innerHTML"], Oce = /* @__PURE__ */ Y({
56237
56239
  __name: "SuperTextViewComment",
56238
56240
  props: {
56239
56241
  editor: {},
@@ -56292,7 +56294,7 @@ const dce = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
56292
56294
  variant: "outline",
56293
56295
  class: Fe(
56294
56296
  g(Be)(
56295
- "wrap-anywhere whitespace-normal w-full !font-normal px-1 pt-0 m-0 !leading-tight rounded-sm text-white border-transparent cursor-pointer",
56297
+ "wrap-anywhere whitespace-pre-wrap w-full !font-normal px-1 pt-0 m-0 !leading-tight rounded-sm text-white border-transparent cursor-pointer",
56296
56298
  C.elementId ? ((M = y.superPreviewCustomClass) == null ? void 0 : M.completedSuper) ?? "bg-black" : ((F = y.superPreviewCustomClass) == null ? void 0 : F.unproducedSuper) ?? "bg-red-500",
56297
56299
  {
56298
56300
  "cursor-default": !g(l)
@@ -56327,7 +56329,7 @@ const dce = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
56327
56329
  ], 6);
56328
56330
  };
56329
56331
  }
56330
- }), Ice = /* @__PURE__ */ ui(Oce, [["__scopeId", "data-v-9e49a79c"]]), qk = (t) => {
56332
+ }), Ice = /* @__PURE__ */ ui(Oce, [["__scopeId", "data-v-b0ec2837"]]), qk = (t) => {
56331
56333
  console.log(t), t = t.replace(/\s*style="[^"]*"/g, ""), t = t.replace(/<iframe\b[\s\S]*?<\/iframe\s*>/gi, "");
56332
56334
  const e = t.match(/<!--StartFragment-->([\s\S]*?)<!--EndFragment-->/), o = (e ? e[1] : t).replace(/<br\s*\/?>/gi, `
56333
56335
  `).split(/\r?\n/), r = [];
@@ -61743,4 +61745,4 @@ export {
61743
61745
  vfe as n,
61744
61746
  qfe as u
61745
61747
  };
61746
- //# sourceMappingURL=index-CGX9sZCx.mjs.map
61748
+ //# sourceMappingURL=index-CSWlx85G.mjs.map