@fileverse-dev/ddoc 3.0.34-patch-2 → 3.0.34
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-ByOEaqj9.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;
|
|
@@ -93963,7 +93963,7 @@ async function SF(e, t) {
|
|
|
93963
93963
|
});
|
|
93964
93964
|
return te === "0x" ? { data: void 0 } : { data: te };
|
|
93965
93965
|
} catch (R) {
|
|
93966
|
-
const B = IKt(R), { offchainLookup: H, offchainLookupSignature: $ } = await import("./ccip-
|
|
93966
|
+
const B = IKt(R), { offchainLookup: H, offchainLookupSignature: $ } = await import("./ccip-9Gyiz2Ta.mjs");
|
|
93967
93967
|
if (e.ccipRead !== !1 && (B == null ? void 0 : B.slice(0, 10)) === $ && x)
|
|
93968
93968
|
return { data: await H(e, { data: B, to: x }) };
|
|
93969
93969
|
throw I && (B == null ? void 0 : B.slice(0, 10)) === "0x101bb98d" ? new pZt({ factory: f }) : Sge(R, {
|
|
@@ -99411,7 +99411,7 @@ const Mme = Gn(void 0), nQt = ({
|
|
|
99411
99411
|
Ae,
|
|
99412
99412
|
ze || o
|
|
99413
99413
|
);
|
|
99414
|
-
return t
|
|
99414
|
+
return t == null || t.commands.setComment(pt.id || ""), s(pt.id || ""), setTimeout(l, 0), u == null || u(pt), pt.id;
|
|
99415
99415
|
},
|
|
99416
99416
|
[
|
|
99417
99417
|
t,
|
|
@@ -263989,28 +263989,19 @@ const $Pn = ({
|
|
|
263989
263989
|
He(() => {
|
|
263990
263990
|
s.current = o || !1;
|
|
263991
263991
|
}, [o]);
|
|
263992
|
-
const l =
|
|
263993
|
-
|
|
263994
|
-
|
|
263995
|
-
}, u = i == null ? void 0 : i.find(
|
|
263996
|
-
(d) => d.id === t
|
|
263997
|
-
), c = Lt(
|
|
263992
|
+
const l = i == null ? void 0 : i.find(
|
|
263993
|
+
(c) => c.id === t
|
|
263994
|
+
), u = Lt(
|
|
263998
263995
|
() => ({
|
|
263999
|
-
shouldShow: ({
|
|
264000
|
-
|
|
264001
|
-
|
|
264002
|
-
|
|
264003
|
-
|
|
264004
|
-
|
|
264005
|
-
if (!f.hasFocus())
|
|
264006
|
-
return !1;
|
|
264007
|
-
const m = (d.isActive("comment") && !h && r && !p) ?? !1;
|
|
264008
|
-
if (m) {
|
|
264009
|
-
const v = (b = d.getAttributes("comment")) == null ? void 0 : b.commentId;
|
|
264010
|
-
d.commands.setCommentActive(v);
|
|
263996
|
+
shouldShow: ({ editor: c }) => {
|
|
263997
|
+
var p, g;
|
|
263998
|
+
const d = (p = c.getAttributes("comment")) == null ? void 0 : p.resolved, f = s.current, h = (c.isActive("comment") && !d && r && !f) ?? !1;
|
|
263999
|
+
if (h) {
|
|
264000
|
+
const m = (g = c.getAttributes("comment")) == null ? void 0 : g.commentId;
|
|
264001
|
+
c.commands.setCommentActive(m);
|
|
264011
264002
|
} else
|
|
264012
|
-
|
|
264013
|
-
return
|
|
264003
|
+
c.commands.unsetCommentActive();
|
|
264004
|
+
return h;
|
|
264014
264005
|
},
|
|
264015
264006
|
appendTo: () => document.getElementById("editor-canvas")
|
|
264016
264007
|
}),
|
|
@@ -264019,8 +264010,7 @@ const $Pn = ({
|
|
|
264019
264010
|
return /* @__PURE__ */ E.jsx(
|
|
264020
264011
|
uk,
|
|
264021
264012
|
{
|
|
264022
|
-
|
|
264023
|
-
...c,
|
|
264013
|
+
...u,
|
|
264024
264014
|
options: {
|
|
264025
264015
|
offset: {
|
|
264026
264016
|
mainAxis: 0,
|
|
@@ -264049,13 +264039,13 @@ const $Pn = ({
|
|
|
264049
264039
|
editor: e,
|
|
264050
264040
|
activeCommentId: t ?? void 0,
|
|
264051
264041
|
isBubbleMenu: !0,
|
|
264052
|
-
initialComment:
|
|
264053
|
-
selectedContent:
|
|
264042
|
+
initialComment: l == null ? void 0 : l.content,
|
|
264043
|
+
selectedContent: l == null ? void 0 : l.selectedContent,
|
|
264054
264044
|
isDisabled: (
|
|
264055
264045
|
/* @ts-expect-error ts */
|
|
264056
|
-
|
|
264046
|
+
l && !Object.hasOwn(l, "commentIndex")
|
|
264057
264047
|
),
|
|
264058
|
-
isCommentOwner: (
|
|
264048
|
+
isCommentOwner: (l == null ? void 0 : l.username) === a
|
|
264059
264049
|
}
|
|
264060
264050
|
)
|
|
264061
264051
|
}
|
package/dist/index.es.js
CHANGED