@harbour-enterprises/superdoc 0.11.16 → 0.11.17

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.
@@ -16661,7 +16661,7 @@ const gs = class jv {
16661
16661
  return;
16662
16662
  }
16663
16663
  }
16664
- static updateDocumentVersion(e = this.convertedXml, n = "0.11.16") {
16664
+ static updateDocumentVersion(e = this.convertedXml, n = "0.11.17") {
16665
16665
  const r = "docProps/custom.xml";
16666
16666
  e[r] || (e[r] = qv());
16667
16667
  const o = e["docProps/custom.xml"];
@@ -16924,7 +16924,7 @@ function X$(t) {
16924
16924
  function qv() {
16925
16925
  return b4;
16926
16926
  }
16927
- function Uv(t = 2, e = "0.11.16") {
16927
+ function Uv(t = 2, e = "0.11.17") {
16928
16928
  return {
16929
16929
  type: "element",
16930
16930
  name: "property",
@@ -28628,7 +28628,7 @@ const rh = (t) => {
28628
28628
  const k = Ge.inline(h, h + p.nodeSize, {
28629
28629
  style: `background-color: ${N};`,
28630
28630
  "data-thread-id": T,
28631
- class: "comment-highlight"
28631
+ class: "sd-editor-comment-highlight"
28632
28632
  });
28633
28633
  g && n !== T || u.push(k);
28634
28634
  });
@@ -29398,7 +29398,7 @@ const _8 = class Px extends DM {
29398
29398
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
29399
29399
  */
29400
29400
  processCollaborationMigrations() {
29401
- if (console.debug("[checkVersionMigrations] Current editor version", "0.11.16"), !this.options.ydoc) return;
29401
+ if (console.debug("[checkVersionMigrations] Current editor version", "0.11.17"), !this.options.ydoc) return;
29402
29402
  let e = this.options.ydoc.getMap("meta").get("version");
29403
29403
  e || (e = "initial"), console.debug("[checkVersionMigrations] Document version", e);
29404
29404
  const n = pw(e) || [], r = this.state.plugins.find((i) => i.key.startsWith("y-sync"));
@@ -30388,7 +30388,7 @@ const q8 = ct.create({
30388
30388
  inclusive: !1,
30389
30389
  addOptions() {
30390
30390
  return {
30391
- htmlAttributes: { class: "super-editor-ai" }
30391
+ htmlAttributes: { class: "sd-editor-ai" }
30392
30392
  };
30393
30393
  },
30394
30394
  addAttributes() {
@@ -31382,7 +31382,7 @@ const o3 = et.create({
31382
31382
  }
31383
31383
  },
31384
31384
  class: {
31385
- renderDOM: (t) => t.dropcap ? { class: "super-doc-dropcap" } : null
31385
+ renderDOM: (t) => t.dropcap ? { class: "sd-editor-dropcap" } : null
31386
31386
  },
31387
31387
  styleId: {},
31388
31388
  attributes: {
@@ -31594,7 +31594,7 @@ const l3 = et.create({
31594
31594
  excludes: "",
31595
31595
  addOptions() {
31596
31596
  return {
31597
- htmlAttributes: { class: "super-editor-comment" }
31597
+ htmlAttributes: { class: "sd-editor-comment" }
31598
31598
  };
31599
31599
  },
31600
31600
  addAttributes() {
@@ -31625,7 +31625,7 @@ const l3 = et.create({
31625
31625
  addOptions() {
31626
31626
  return {
31627
31627
  htmlAttributes: {
31628
- class: "super-doc-tab",
31628
+ class: "sd-editor-tab",
31629
31629
  // this works together with content prop:
31630
31630
  // since tab can't have content inside but content prop is defined I have to manually add attribute
31631
31631
  contentEditable: !1
@@ -31633,7 +31633,7 @@ const l3 = et.create({
31633
31633
  };
31634
31634
  },
31635
31635
  parseDOM() {
31636
- return [{ tag: "span.super-doc-tab" }];
31636
+ return [{ tag: "span.sd-editor-tab" }];
31637
31637
  },
31638
31638
  renderDOM({ htmlAttributes: t }) {
31639
31639
  return ["span", Oe.mergeAttributes(this.options.htmlAttributes, t), 0];
@@ -35014,7 +35014,7 @@ const Mo = new Qe("ImagePlaceholder"), lN = (t = {}) => new Ye({
35014
35014
  addOptions() {
35015
35015
  return {
35016
35016
  htmlAttributes: {
35017
- class: "super-editor-mention"
35017
+ class: "sd-editor-mention"
35018
35018
  }
35019
35019
  };
35020
35020
  },
@@ -35087,7 +35087,7 @@ const Mo = new Qe("ImagePlaceholder"), lN = (t = {}) => new Ye({
35087
35087
  addOptions() {
35088
35088
  return {
35089
35089
  htmlAttributes: {
35090
- class: "pm-shape-container"
35090
+ class: "sd-editor-shape-container"
35091
35091
  }
35092
35092
  };
35093
35093
  },
@@ -35133,7 +35133,7 @@ const Mo = new Qe("ImagePlaceholder"), lN = (t = {}) => new Ye({
35133
35133
  addOptions() {
35134
35134
  return {
35135
35135
  htmlAttributes: {
35136
- class: "pm-shape-textbox"
35136
+ class: "sd-editor-shape-textbox"
35137
35137
  }
35138
35138
  };
35139
35139
  },
@@ -35839,7 +35839,7 @@ const bN = "track-insert", B3 = yn.create({
35839
35839
  if (e.doc.textBetween(0, e.doc.content.size, " ", " ") !== "") return Re.empty;
35840
35840
  const { $from: n } = e.selection, r = Ge.node(n.before(), n.after(), {
35841
35841
  "data-placeholder": this.options.placeholder,
35842
- class: "super-editor-placeholder"
35842
+ class: "sd-editor-placeholder"
35843
35843
  });
35844
35844
  return Re.create(e.doc, [r]);
35845
35845
  };
@@ -37662,7 +37662,7 @@ class uR {
37662
37662
  je(this, "handleKeyDown", (r) => {
37663
37663
  const o = r.key === "ArrowDown" || r.key === "ArrowUp";
37664
37664
  this.tippyInstance.state.isVisible && o && (r.preventDefault(), this.popover.firstChild.focus());
37665
- }), this.editor = n, this.view = e, this.popover = document.createElement("div"), this.popover.className = "popover", document.body.appendChild(this.popover), this.tippyInstance = Ea(this.popover, {
37665
+ }), this.editor = n, this.view = e, this.popover = document.createElement("div"), this.popover.className = "sd-editor-popover", document.body.appendChild(this.popover), this.tippyInstance = Ea(this.popover, {
37666
37666
  trigger: "manual",
37667
37667
  placement: "bottom-start",
37668
37668
  interactive: !0,
@@ -37674,7 +37674,7 @@ class uR {
37674
37674
  onHide: () => {
37675
37675
  this.unbindKeyDownEvents();
37676
37676
  },
37677
- theme: "popover"
37677
+ theme: "sd-editor-popover"
37678
37678
  });
37679
37679
  }
37680
37680
  bindKeyDownEvents() {
@@ -45633,7 +45633,7 @@ const Vq = {
45633
45633
  show: x.expand.value,
45634
45634
  size: "medium",
45635
45635
  placement: "bottom-start",
45636
- class: "toolbar-button toolbar-dropdown",
45636
+ class: "toolbar-button toolbar-dropdown sd-editor-toolbar-dropdown",
45637
45637
  onSelect: (w, T) => m(x, T),
45638
45638
  onClickoutside: y,
45639
45639
  style: Zt(x.dropdownStyles.value)
@@ -45662,7 +45662,8 @@ const Vq = {
45662
45662
  _: 2
45663
45663
  }, 1032, ["options", "trigger", "show", "onSelect", "style"])) : l(x) ? (xe(), Hr(Fe(Ob), {
45664
45664
  key: 2,
45665
- trigger: "hover"
45665
+ trigger: "hover",
45666
+ class: "sd-editor-toolbar-tooltip"
45666
45667
  }, {
45667
45668
  trigger: Zi(() => [
45668
45669
  Ot(Jf, {
@@ -45687,7 +45688,7 @@ const Vq = {
45687
45688
  ], 2))), 128))
45688
45689
  ], 4));
45689
45690
  }
45690
- }, Tl = /* @__PURE__ */ kt(Yq, [["__scopeId", "data-v-85a28a08"]]), Zq = {
45691
+ }, Tl = /* @__PURE__ */ kt(Yq, [["__scopeId", "data-v-7a2db351"]]), Zq = {
45691
45692
  __name: "Toolbar",
45692
45693
  emits: ["command", "toggle", "select"],
45693
45694
  setup(t, { emit: e }) {