@fileverse-dev/ddoc 2.4.22 → 2.4.23
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-CnFBfHaw.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;
|
|
@@ -89868,7 +89868,7 @@ async function Sk(e, t) {
|
|
|
89868
89868
|
});
|
|
89869
89869
|
return V === "0x" ? { data: void 0 } : { data: V };
|
|
89870
89870
|
} catch (B) {
|
|
89871
|
-
const L = RWt(B), { offchainLookup: j, offchainLookupSignature: N } = await import("./ccip-
|
|
89871
|
+
const L = RWt(B), { offchainLookup: j, offchainLookupSignature: N } = await import("./ccip-CMJobPnZ.mjs");
|
|
89872
89872
|
if (e.ccipRead !== !1 && (L == null ? void 0 : L.slice(0, 10)) === N && b)
|
|
89873
89873
|
return { data: await j(e, { data: L, to: b }) };
|
|
89874
89874
|
throw S && (L == null ? void 0 : L.slice(0, 10)) === "0x101bb98d" ? new VVt({ factory: c }) : cpe(B, {
|
|
@@ -110803,13 +110803,18 @@ const fin = (e, t) => uP(e) ? new din(t) : new cin(t, {
|
|
|
110803
110803
|
"Markdown"
|
|
110804
110804
|
);
|
|
110805
110805
|
}, yin = (e) => {
|
|
110806
|
-
var a, s;
|
|
110806
|
+
var o, i, a, s;
|
|
110807
110807
|
if (!e) return "Default";
|
|
110808
110808
|
const { state: t } = e, { from: n, empty: r } = t.selection;
|
|
110809
|
-
if (
|
|
110810
|
-
|
|
110811
|
-
|
|
110812
|
-
|
|
110809
|
+
if (r && ((o = t.storedMarks) != null && o.length)) {
|
|
110810
|
+
const l = t.storedMarks.find((u) => u.type.name === "textStyle");
|
|
110811
|
+
if ((i = l == null ? void 0 : l.attrs) != null && i.fontFamily) return l.attrs.fontFamily;
|
|
110812
|
+
}
|
|
110813
|
+
if (r) {
|
|
110814
|
+
const u = t.doc.resolve(n).marks().find((c) => c.type.name === "textStyle");
|
|
110815
|
+
return (a = u == null ? void 0 : u.attrs) != null && a.fontFamily ? u.attrs.fontFamily : "Default";
|
|
110816
|
+
}
|
|
110817
|
+
return (s = e.getAttributes("textStyle")) == null ? void 0 : s.fontFamily;
|
|
110813
110818
|
}, bin = Ne.memo(hge), vin = ({
|
|
110814
110819
|
editor: e,
|
|
110815
110820
|
onError: t,
|
|
@@ -110862,8 +110867,10 @@ const fin = (e, t) => uP(e) ? new din(t) : new cin(t, {
|
|
|
110862
110867
|
He(() => {
|
|
110863
110868
|
if (!e) return;
|
|
110864
110869
|
const W = () => L(yin(e));
|
|
110865
|
-
return e.on("selectionUpdate", W), e.on("transaction",
|
|
110866
|
-
|
|
110870
|
+
return e.on("selectionUpdate", W), e.on("transaction", ({ transaction: V }) => {
|
|
110871
|
+
(V.selectionSet || V.storedMarksSet || V.docChanged) && W();
|
|
110872
|
+
}), W(), () => {
|
|
110873
|
+
e.off("selectionUpdate", W), e.off("transaction");
|
|
110867
110874
|
};
|
|
110868
110875
|
}, [e]);
|
|
110869
110876
|
const N = (W) => {
|
package/dist/index.es.js
CHANGED