@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-
|
|
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-
|
|
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
|
|
109916
|
+
var d;
|
|
109917
109917
|
const t = window.getSelection(), n = document.querySelectorAll(".comment-card");
|
|
109918
109918
|
if (t) {
|
|
109919
|
-
for (const
|
|
109920
|
-
if (
|
|
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 =
|
|
109924
|
-
if (
|
|
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
|
|
109927
|
-
return e.state.doc.nodesBetween(r, o, (
|
|
109928
|
-
|
|
109929
|
-
|
|
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
|
-
}), !
|
|
109938
|
+
}), !c;
|
|
109932
109939
|
}, P3e = (e) => {
|
|
109933
109940
|
const t = qe(
|
|
109934
109941
|
(o) => {
|
package/dist/index.es.js
CHANGED
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.
|
|
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
|
+
}
|