vdc-editor 0.1.286 → 0.1.288

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-BDoYsAYw.mjs";
2
+ export {
3
+ f as default
4
+ };
5
+ //# sourceMappingURL=BulkSpellChecker-DW_F31ne.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BulkSpellChecker-DW_F31ne.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-DWb9Bf6o.mjs")), { t: n } = Jt(), o = t, r = zt("isEditable", z(!0)), i = [
32469
+ const e = DR(() => import("./BulkSpellChecker-DW_F31ne.mjs")), { t: n } = Jt(), o = t, r = zt("isEditable", z(!0)), i = [
32470
32470
  mh,
32471
32471
  hd,
32472
32472
  vh,
@@ -42243,7 +42243,7 @@ const xne = ko.create({
42243
42243
  const { schema: n, doc: o, tr: r } = t.state, i = f0(o.resolve(e), n.marks.link);
42244
42244
  if (!i) return !1;
42245
42245
  const s = o.resolve(i.from), a = o.resolve(i.to), l = r.setSelection(new Xe(s, a));
42246
- t.dispatch(l);
42246
+ return t.dispatch(l), !0;
42247
42247
  }
42248
42248
  }
42249
42249
  })
@@ -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(() => [
@@ -49313,7 +49313,7 @@ const Pse = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: o, edi
49313
49313
  })
49314
49314
  ]),
49315
49315
  Tab: () => this.editor.commands.first(({ commands: o }) => [
49316
- () => !0
49316
+ () => !this.editor.isActive("table")
49317
49317
  ]),
49318
49318
  "Mod-Enter": () => this.editor.commands.setPageBreak()
49319
49319
  };
@@ -52911,22 +52911,20 @@ const zle = bt.create({
52911
52911
  t.chain().focus().run();
52912
52912
  const e = t.storage.deviceEnv.isMobile ? await Ble() : await Hle();
52913
52913
  if (!e) return;
52914
- let n = "", o = "";
52914
+ const n = new DataTransfer();
52915
52915
  if (lse(e)) {
52916
- n = e;
52917
- const s = document.createElement("div");
52918
- s.innerHTML = e, o = s.innerText;
52916
+ n.setData("text/html", e);
52917
+ const r = document.createElement("div");
52918
+ r.innerHTML = e, n.setData("text/plain", r.innerText);
52919
52919
  } else
52920
- o = e, n = e.replace(/\n/g, "<br>");
52921
- const r = new DataTransfer();
52922
- r.setData("text/html", n), r.setData("text/plain", o);
52923
- const i = new ClipboardEvent("paste", {
52920
+ n.setData("text/plain", e);
52921
+ const o = new ClipboardEvent("paste", {
52924
52922
  bubbles: !0,
52925
52923
  cancelable: !0
52926
52924
  });
52927
- Object.defineProperty(i, "clipboardData", {
52928
- value: r
52929
- }), t.view.dom.dispatchEvent(i);
52925
+ Object.defineProperty(o, "clipboardData", {
52926
+ value: n
52927
+ }), t.view.dom.dispatchEvent(o);
52930
52928
  } catch (e) {
52931
52929
  console.warn("Clipboard paste failed:", e);
52932
52930
  }
@@ -56200,7 +56198,7 @@ const dce = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
56200
56198
  variant: "outline",
56201
56199
  class: Fe(
56202
56200
  g(Be)(
56203
- "wrap-anywhere whitespace-normal w-full !font-normal px-1 pt-0 m-0 !leading-tight rounded-sm text-white border-transparent cursor-pointer",
56201
+ "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",
56204
56202
  M.elementId ? ((L = E.superPreviewCustomClass) == null ? void 0 : L.completedSuper) ?? "bg-black" : ((U = E.superPreviewCustomClass) == null ? void 0 : U.unproducedSuper) ?? "bg-red-500",
56205
56203
  {
56206
56204
  "cursor-default": !g(u)
@@ -56235,7 +56233,7 @@ const dce = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
56235
56233
  ], 6);
56236
56234
  };
56237
56235
  }
56238
- }), Tce = /* @__PURE__ */ ui(kce, [["__scopeId", "data-v-18e941f3"]]), Ace = ["index", "book-mark-id", "line-id", "onMouseover"], Mce = ["innerHTML"], Oce = /* @__PURE__ */ Y({
56236
+ }), Tce = /* @__PURE__ */ ui(kce, [["__scopeId", "data-v-f034d4ce"]]), Ace = ["index", "book-mark-id", "line-id", "onMouseover"], Mce = ["innerHTML"], Oce = /* @__PURE__ */ Y({
56239
56237
  __name: "SuperTextViewComment",
56240
56238
  props: {
56241
56239
  editor: {},
@@ -56294,7 +56292,7 @@ const dce = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
56294
56292
  variant: "outline",
56295
56293
  class: Fe(
56296
56294
  g(Be)(
56297
- "wrap-anywhere whitespace-normal w-full !font-normal px-1 pt-0 m-0 !leading-tight rounded-sm text-white border-transparent cursor-pointer",
56295
+ "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",
56298
56296
  C.elementId ? ((M = y.superPreviewCustomClass) == null ? void 0 : M.completedSuper) ?? "bg-black" : ((F = y.superPreviewCustomClass) == null ? void 0 : F.unproducedSuper) ?? "bg-red-500",
56299
56297
  {
56300
56298
  "cursor-default": !g(l)
@@ -56329,7 +56327,7 @@ const dce = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
56329
56327
  ], 6);
56330
56328
  };
56331
56329
  }
56332
- }), Ice = /* @__PURE__ */ ui(Oce, [["__scopeId", "data-v-9e49a79c"]]), qk = (t) => {
56330
+ }), Ice = /* @__PURE__ */ ui(Oce, [["__scopeId", "data-v-b0ec2837"]]), qk = (t) => {
56333
56331
  console.log(t), t = t.replace(/\s*style="[^"]*"/g, ""), t = t.replace(/<iframe\b[\s\S]*?<\/iframe\s*>/gi, "");
56334
56332
  const e = t.match(/<!--StartFragment-->([\s\S]*?)<!--EndFragment-->/), o = (e ? e[1] : t).replace(/<br\s*\/?>/gi, `
56335
56333
  `).split(/\r?\n/), r = [];
@@ -56435,7 +56433,8 @@ const dce = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
56435
56433
  toolbarExtensionOrder: {},
56436
56434
  watermarkOverlay: {},
56437
56435
  bottomOffset: {},
56438
- characterCountLimit: {}
56436
+ characterCountLimit: {},
56437
+ blockSeparatorPolicy: {}
56439
56438
  },
56440
56439
  emits: ["enter", "change", "update:modelValue", "update:comment", "onFocusEditor", "changed:selection", "setEditorSelected", "onBlurEditor", "lineFocus", "onFocus", "onBlur"],
56441
56440
  setup(t, { expose: e, emit: n }) {
@@ -57477,7 +57476,8 @@ const Gk = /* @__PURE__ */ Y({
57477
57476
  toolbarExtensionOrder: { default: void 0 },
57478
57477
  watermarkOverlay: {},
57479
57478
  bottomOffset: {},
57480
- characterCountLimit: {}
57479
+ characterCountLimit: {},
57480
+ blockSeparatorPolicy: { default: "paragraph" }
57481
57481
  },
57482
57482
  emits: ["enter", "change", "update:modelValue", "update:comment", "onFocusEditor", "changed:selection", "setEditorSelected", "onBlurEditor", "lineFocus", "onFocus", "onBlur", "open-batch-replace"],
57483
57483
  setup(t, { expose: e, emit: n }) {
@@ -57552,6 +57552,14 @@ const Gk = /* @__PURE__ */ Y({
57552
57552
  }, $e = (me) => {
57553
57553
  V(me);
57554
57554
  }, he = new Ni({
57555
+ coreExtensionOptions: {
57556
+ clipboardTextSerializer: {
57557
+ blockSeparator: o.blockSeparatorPolicy === "line" ? `
57558
+ ` : `
57559
+
57560
+ `
57561
+ }
57562
+ },
57555
57563
  enablePasteRules: !1,
57556
57564
  // disable Markdown when pasting
57557
57565
  enableInputRules: !1,
@@ -59331,7 +59339,8 @@ const Pde = /* @__PURE__ */ Y({
59331
59339
  toolbarExtensionOrder: {},
59332
59340
  watermarkOverlay: {},
59333
59341
  bottomOffset: {},
59334
- characterCountLimit: {}
59342
+ characterCountLimit: {},
59343
+ blockSeparatorPolicy: {}
59335
59344
  },
59336
59345
  emits: ["enter", "change", "update:modelValue", "update:comment", "onFocusEditor", "changed:selection", "setEditorSelected", "onBlurEditor", "lineFocus", "onFocus", "onBlur"],
59337
59346
  setup(t, { expose: e, emit: n }) {
@@ -59581,7 +59590,8 @@ const Bde = { class: "flex justify-between items-center relative gap-x-3" }, Fde
59581
59590
  toolbarExtensionOrder: {},
59582
59591
  watermarkOverlay: {},
59583
59592
  bottomOffset: {},
59584
- characterCountLimit: {}
59593
+ characterCountLimit: {},
59594
+ blockSeparatorPolicy: {}
59585
59595
  },
59586
59596
  emits: ["enter", "change", "update:modelValue", "update:comment", "onFocusEditor", "changed:selection", "setEditorSelected", "onBlurEditor", "lineFocus", "onFocus", "onBlur"],
59587
59597
  setup(t, { expose: e, emit: n }) {
@@ -59624,6 +59634,14 @@ const Bde = { class: "flex justify-between items-center relative gap-x-3" }, Fde
59624
59634
  width: o.maxWidth ? "100%" : void 0,
59625
59635
  margin: o.maxWidth ? "0 auto" : void 0
59626
59636
  })), V = new Ni({
59637
+ coreExtensionOptions: {
59638
+ clipboardTextSerializer: {
59639
+ blockSeparator: o.blockSeparatorPolicy === "line" ? `
59640
+ ` : `
59641
+
59642
+ `
59643
+ }
59644
+ },
59627
59645
  enablePasteRules: !1,
59628
59646
  // disable Markdown when pasting
59629
59647
  enableInputRules: !1,
@@ -60173,7 +60191,8 @@ const Bde = { class: "flex justify-between items-center relative gap-x-3" }, Fde
60173
60191
  toolbarExtensionOrder: {},
60174
60192
  watermarkOverlay: {},
60175
60193
  bottomOffset: {},
60176
- characterCountLimit: {}
60194
+ characterCountLimit: {},
60195
+ blockSeparatorPolicy: {}
60177
60196
  },
60178
60197
  emits: ["update:modelValue", "update:comment"],
60179
60198
  setup(t, { emit: e }) {
@@ -60248,7 +60267,8 @@ const Bde = { class: "flex justify-between items-center relative gap-x-3" }, Fde
60248
60267
  toolbarExtensionOrder: {},
60249
60268
  watermarkOverlay: {},
60250
60269
  bottomOffset: {},
60251
- characterCountLimit: {}
60270
+ characterCountLimit: {},
60271
+ blockSeparatorPolicy: {}
60252
60272
  },
60253
60273
  setup(t) {
60254
60274
  const e = t;
@@ -60855,7 +60875,8 @@ const Hde = /* @__PURE__ */ cV($de), eC = (t, e, n) => {
60855
60875
  toolbarExtensionOrder: {},
60856
60876
  watermarkOverlay: {},
60857
60877
  bottomOffset: {},
60858
- characterCountLimit: {}
60878
+ characterCountLimit: {},
60879
+ blockSeparatorPolicy: {}
60859
60880
  },
60860
60881
  emits: ["enter", "change", "update:modelValue", "update:comment", "onFocusEditor", "changed:selection", "setEditorSelected", "onBlurEditor", "lineFocus", "onFocus", "onBlur"],
60861
60882
  setup(t, { expose: e, emit: n }) {
@@ -61055,7 +61076,8 @@ const Wfe = /* @__PURE__ */ Y({
61055
61076
  toolbarExtensionOrder: {},
61056
61077
  watermarkOverlay: {},
61057
61078
  bottomOffset: {},
61058
- characterCountLimit: {}
61079
+ characterCountLimit: {},
61080
+ blockSeparatorPolicy: {}
61059
61081
  },
61060
61082
  emits: ["enter", "change", "update:modelValue", "update:comment", "onFocusEditor", "changed:selection", "setEditorSelected", "onBlurEditor", "lineFocus", "onFocus", "onBlur"],
61061
61083
  setup(t, { expose: e, emit: n }) {
@@ -61745,4 +61767,4 @@ export {
61745
61767
  vfe as n,
61746
61768
  qfe as u
61747
61769
  };
61748
- //# sourceMappingURL=index-BEPLzVf6.mjs.map
61770
+ //# sourceMappingURL=index-BDoYsAYw.mjs.map