vdc-editor 0.1.282 → 0.1.283

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-C51bIxfa.mjs";
2
+ export {
3
+ f as default
4
+ };
5
+ //# sourceMappingURL=BulkSpellChecker-DgIhy1y0.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BulkSpellChecker-DgIhy1y0.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -21429,14 +21429,20 @@ const pV = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, hV = an.c
21429
21429
  n[o] = r;
21430
21430
  return n;
21431
21431
  }, yV = /* @__PURE__ */ ai(vV, [["__scopeId", "data-v-db9342d0"]]), Bd = hV.extend({
21432
- group: "inline",
21433
- inline: !0,
21432
+ group: "block",
21434
21433
  defining: !0,
21435
21434
  isolating: !0,
21436
21435
  addAttributes() {
21437
21436
  var t;
21438
21437
  return {
21439
21438
  ...(t = this.parent) == null ? void 0 : t.call(this),
21439
+ src: {
21440
+ default: null,
21441
+ parseHTML: (e) => {
21442
+ const n = e.tagName === "P" ? e.querySelector("img") : e;
21443
+ return n == null ? void 0 : n.getAttribute("src");
21444
+ }
21445
+ },
21440
21446
  flipX: {
21441
21447
  default: !1
21442
21448
  },
@@ -21459,8 +21465,8 @@ const pV = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, hV = an.c
21459
21465
  width: {
21460
21466
  default: "100%",
21461
21467
  parseHTML: (e) => {
21462
- const n = e.style.width || e.getAttribute("width") || null;
21463
- return n && n.endsWith("%") ? n : n == null ? null : parseInt(n, 10);
21468
+ const n = e.tagName === "P" ? e.querySelector("img") : e, o = n && (n.style.width || n.getAttribute("width")) || null;
21469
+ return o && o.endsWith("%") ? o : o == null ? null : parseInt(o, 10);
21464
21470
  },
21465
21471
  renderHTML: (e) => ({
21466
21472
  width: e.width
@@ -21470,7 +21476,7 @@ const pV = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, hV = an.c
21470
21476
  default: "auto",
21471
21477
  parseHTML: (e) => {
21472
21478
  const n = e.style.height || e.getAttribute("height") || null;
21473
- return n == null ? null : parseInt(n, 10);
21479
+ return n == null || n === "auto" ? null : parseInt(n, 10);
21474
21480
  },
21475
21481
  renderHTML: (e) => ({
21476
21482
  height: e.height
@@ -21521,6 +21527,15 @@ const pV = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, hV = an.c
21521
21527
  return [
21522
21528
  {
21523
21529
  tag: "img[src]"
21530
+ },
21531
+ {
21532
+ tag: "p",
21533
+ priority: 1001,
21534
+ getAttrs: (t) => {
21535
+ var n, o;
21536
+ const e = t;
21537
+ return e.children.length === 1 && ((n = e.firstElementChild) == null ? void 0 : n.tagName) === "IMG" && !!!((o = e.textContent) != null && o.trim()) && e.firstElementChild.hasAttribute("src") ? null : !1;
21538
+ }
21524
21539
  }
21525
21540
  ];
21526
21541
  },
@@ -32451,7 +32466,7 @@ const xY = { class: "flex gap-2 items-center overflow-x-auto overflow-y-hidden [
32451
32466
  toolbarExtensionOrder: {}
32452
32467
  },
32453
32468
  setup(t) {
32454
- const e = RR(() => import("./BulkSpellChecker-B8B_X7p2.mjs")), { t: n } = Jt(), o = t, r = zt("isEditable", z(!0)), i = [
32469
+ const e = RR(() => import("./BulkSpellChecker-DgIhy1y0.mjs")), { t: n } = Jt(), o = t, r = zt("isEditable", z(!0)), i = [
32455
32470
  mh,
32456
32471
  hd,
32457
32472
  vh,
@@ -61700,4 +61715,4 @@ export {
61700
61715
  bfe as n,
61701
61716
  jfe as u
61702
61717
  };
61703
- //# sourceMappingURL=index-ARe29obu.mjs.map
61718
+ //# sourceMappingURL=index-C51bIxfa.mjs.map