@fileverse-dev/ddoc 2.5.0-tiptap-2 → 2.5.0-tiptap-3
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-Djz2GAUu.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;
|
|
@@ -93960,7 +93960,7 @@ async function vF(e, t) {
|
|
|
93960
93960
|
});
|
|
93961
93961
|
return Q === "0x" ? { data: void 0 } : { data: Q };
|
|
93962
93962
|
} catch (O) {
|
|
93963
|
-
const _ = lKt(O), { offchainLookup: H, offchainLookupSignature: $ } = await import("./ccip-
|
|
93963
|
+
const _ = lKt(O), { offchainLookup: H, offchainLookupSignature: $ } = await import("./ccip-eAS0N5Y9.mjs");
|
|
93964
93964
|
if (e.ccipRead !== !1 && (_ == null ? void 0 : _.slice(0, 10)) === $ && x)
|
|
93965
93965
|
return { data: await H(e, { data: _, to: x }) };
|
|
93966
93966
|
throw R && (_ == null ? void 0 : _.slice(0, 10)) === "0x101bb98d" ? new UGt({ factory: f }) : cge(O, {
|
|
@@ -109588,15 +109588,10 @@ const ron = /* @__PURE__ */ m0(non), p3 = () => {
|
|
|
109588
109588
|
EB,
|
|
109589
109589
|
{
|
|
109590
109590
|
editor: t,
|
|
109591
|
-
appendTo: () => document.getElementById("editor-canvas"),
|
|
109592
109591
|
options: {
|
|
109593
|
-
|
|
109594
|
-
flip:
|
|
109595
|
-
|
|
109596
|
-
},
|
|
109597
|
-
shift: {
|
|
109598
|
-
crossAxis: !0
|
|
109599
|
-
}
|
|
109592
|
+
placement: "top",
|
|
109593
|
+
flip: !0,
|
|
109594
|
+
shift: !0
|
|
109600
109595
|
},
|
|
109601
109596
|
shouldShow: oon,
|
|
109602
109597
|
className: Le(
|
|
@@ -127152,8 +127147,7 @@ const xfn = Udn.extend({
|
|
|
127152
127147
|
if (!m || !h) return;
|
|
127153
127148
|
const y = await Dpe({
|
|
127154
127149
|
encryptedKey: e,
|
|
127155
|
-
|
|
127156
|
-
privateKey: jR(r),
|
|
127150
|
+
privateKey: new Uint8Array(jR(r)).buffer,
|
|
127157
127151
|
iv: n,
|
|
127158
127152
|
imageBuffer: m
|
|
127159
127153
|
});
|
|
@@ -263044,7 +263038,7 @@ const PRn = ({
|
|
|
263044
263038
|
() => ({
|
|
263045
263039
|
shouldShow: ({ editor: c }) => {
|
|
263046
263040
|
var p, g;
|
|
263047
|
-
const d = (p = c.getAttributes("comment")) == null ? void 0 : p.resolved, f = s.current, h = c.isActive("comment") && !d && r && !f;
|
|
263041
|
+
const d = (p = c.getAttributes("comment")) == null ? void 0 : p.resolved, f = s.current, h = (c.isActive("comment") && !d && r && !f) ?? !1;
|
|
263048
263042
|
if (h) {
|
|
263049
263043
|
const m = (g = c.getAttributes("comment")) == null ? void 0 : g.commentId;
|
|
263050
263044
|
c.commands.setCommentActive(m);
|
|
@@ -263073,8 +263067,8 @@ const PRn = ({
|
|
|
263073
263067
|
shift: {
|
|
263074
263068
|
crossAxis: !0
|
|
263075
263069
|
},
|
|
263076
|
-
onHide: (
|
|
263077
|
-
|
|
263070
|
+
onHide: () => {
|
|
263071
|
+
e.commands.unsetCommentActive();
|
|
263078
263072
|
}
|
|
263079
263073
|
},
|
|
263080
263074
|
editor: e,
|
|
@@ -263085,11 +263079,15 @@ const PRn = ({
|
|
|
263085
263079
|
children: /* @__PURE__ */ A.jsx(
|
|
263086
263080
|
p3e,
|
|
263087
263081
|
{
|
|
263082
|
+
editor: e,
|
|
263088
263083
|
activeCommentId: t ?? void 0,
|
|
263089
263084
|
isBubbleMenu: !0,
|
|
263090
263085
|
initialComment: l == null ? void 0 : l.content,
|
|
263091
263086
|
selectedContent: l == null ? void 0 : l.selectedContent,
|
|
263092
|
-
isDisabled:
|
|
263087
|
+
isDisabled: (
|
|
263088
|
+
/* @ts-expect-error ts */
|
|
263089
|
+
l && !Object.hasOwn(l, "commentIndex")
|
|
263090
|
+
),
|
|
263093
263091
|
isCommentOwner: (l == null ? void 0 : l.username) === a
|
|
263094
263092
|
}
|
|
263095
263093
|
)
|
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": "2.5.0-tiptap-
|
|
5
|
+
"version": "2.5.0-tiptap-3",
|
|
6
6
|
"main": "dist/index.es.js",
|
|
7
7
|
"module": "dist/index.es.js",
|
|
8
8
|
"exports": {
|
|
@@ -148,4 +148,4 @@
|
|
|
148
148
|
"typescript": "^5.2.2",
|
|
149
149
|
"vite": "^5.0.0"
|
|
150
150
|
}
|
|
151
|
-
}
|
|
151
|
+
}
|