@fileverse-dev/ddoc 3.0.48 → 3.0.49

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.
@@ -1,4 +1,4 @@
1
- import { B as p, g as m, s as w, d as k, i as b, l as L, a as O, c as E, b as x, e as R, H as y, f as M } from "./index-CQx6ZWfA.mjs";
1
+ import { B as p, g as m, s as w, d as k, i as b, l as L, a as O, c as E, b as x, e as R, H as y, f as M } from "./index-C4jFcfnT.mjs";
2
2
  class S extends p {
3
3
  constructor({ callbackSelector: r, cause: a, data: n, extraData: i, sender: f, urls: t }) {
4
4
  var o;
@@ -94001,7 +94001,7 @@ async function jF(e, t) {
94001
94001
  });
94002
94002
  return oe === "0x" ? { data: void 0 } : { data: oe };
94003
94003
  } catch (O) {
94004
- const I = _Kt(O), { offchainLookup: H, offchainLookupSignature: $ } = await import("./ccip-C9OQBoB3.mjs");
94004
+ const I = _Kt(O), { offchainLookup: H, offchainLookupSignature: $ } = await import("./ccip-o7-9zG0V.mjs");
94005
94005
  if (e.ccipRead !== !1 && (I == null ? void 0 : I.slice(0, 10)) === $ && x)
94006
94006
  return { data: await H(e, { data: I, to: x }) };
94007
94007
  throw _ && (I == null ? void 0 : I.slice(0, 10)) === "0x101bb98d" ? new hZt({ factory: f }) : Sge(O, {
@@ -109913,22 +109913,29 @@ const nin = /* @__PURE__ */ m0(tin), b3 = () => {
109913
109913
  isWindows: i
109914
109914
  };
109915
109915
  }, rin = ({ editor: e }) => {
109916
- var p, g, m, y, b;
109916
+ var d;
109917
109917
  const t = window.getSelection(), n = document.querySelectorAll(".comment-card");
109918
109918
  if (t) {
109919
- for (const v of n)
109920
- if (v.contains(t.anchorNode) || v.contains(t.focusNode))
109919
+ for (const f of n)
109920
+ if (f.contains(t.anchorNode) || f.contains(t.focusNode))
109921
109921
  return !1;
109922
109922
  }
109923
- const { from: r, to: o, empty: i } = e.state.selection, a = ((p = e.state.doc.nodeAt(r)) == null ? void 0 : p.type.name) === "resizableMedia" || e.isActive("image"), s = ((g = e.state.doc.nodeAt(r)) == null ? void 0 : g.type.name) === "iframe", l = e.isActive("codeBlock"), u = ((m = e.state.doc.nodeAt(r)) == null ? void 0 : m.type.name) === "pageBreak", c = ((y = e.state.doc.nodeAt(r)) == null ? void 0 : y.type.name) === "reminderBlock", d = ((b = e.state.doc.nodeAt(r)) == null ? void 0 : b.type.name) === "aiWriter", f = e.isActive("horizontalRule");
109924
- if (i || a || l || s || u || c || d || f)
109923
+ const { from: r, to: o, empty: i } = e.state.selection, a = e.isActive("image"), s = e.isActive("codeBlock"), l = e.isActive("horizontalRule");
109924
+ if ([
109925
+ "resizableMedia",
109926
+ "iframe",
109927
+ "pageBreak",
109928
+ "reminderBlock",
109929
+ "aiWriter",
109930
+ "actionButton"
109931
+ ].includes(((d = e.state.doc.nodeAt(r)) == null ? void 0 : d.type.name) ?? "") || i || a || s || l)
109925
109932
  return !1;
109926
- let h = !1;
109927
- return e.state.doc.nodesBetween(r, o, (v) => {
109928
- v.marks && v.marks.forEach((x) => {
109929
- x.type.name === "highlight" && x.attrs.color === "yellow" && (h = !0);
109933
+ let c = !1;
109934
+ return e.state.doc.nodesBetween(r, o, (f) => {
109935
+ f.marks && f.marks.forEach((h) => {
109936
+ h.type.name === "highlight" && h.attrs.color === "yellow" && (c = !0);
109930
109937
  });
109931
- }), !h;
109938
+ }), !c;
109932
109939
  }, P3e = (e) => {
109933
109940
  const t = qe(
109934
109941
  (o) => {
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { D as d, E as r, P as s, R as a, h as t, u as i } from "./index-CQx6ZWfA.mjs";
1
+ import { D as d, E as r, P as s, R as a, h as t, u as i } from "./index-C4jFcfnT.mjs";
2
2
  export {
3
3
  d as DdocEditor,
4
4
  r as Editor,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/ddoc",
3
3
  "private": false,
4
4
  "description": "DDoc",
5
- "version": "3.0.48",
5
+ "version": "3.0.49",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {
@@ -150,4 +150,4 @@
150
150
  "typescript": "^5.2.2",
151
151
  "vite": "^5.0.0"
152
152
  }
153
- }
153
+ }