@fileverse-dev/ddoc 2.0.9-patch-6 → 2.0.9-patch-2.1
Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.es.js
CHANGED
@@ -80869,17 +80869,15 @@ const u$ = /* @__PURE__ */ sy(EYe), TYe = (t) => {
|
|
80869
80869
|
}
|
80870
80870
|
);
|
80871
80871
|
case "Scripts":
|
80872
|
-
return /* @__PURE__ */ O.jsx(
|
80873
|
-
AYe,
|
80874
|
-
{
|
80875
|
-
editor: t.editor,
|
80876
|
-
elementRef: l
|
80877
|
-
}
|
80878
|
-
);
|
80872
|
+
return /* @__PURE__ */ O.jsx(AYe, { editor: t.editor, elementRef: l });
|
80879
80873
|
default:
|
80880
80874
|
return null;
|
80881
80875
|
}
|
80882
80876
|
}, h = n4("(max-width: 1023px)"), p = () => {
|
80877
|
+
if (!(t.username || t.walletAddress)) {
|
80878
|
+
t.setIsCommentSectionOpen(!0);
|
80879
|
+
return;
|
80880
|
+
}
|
80883
80881
|
const { state: m } = t.editor;
|
80884
80882
|
if (!m) return;
|
80885
80883
|
const { from: g, to: v } = m.selection, w = m.doc.textBetween(g, v, " ");
|
@@ -80926,32 +80924,19 @@ const u$ = /* @__PURE__ */ sy(EYe), TYe = (t) => {
|
|
80926
80924
|
)
|
80927
80925
|
}
|
80928
80926
|
) : /* @__PURE__ */ O.jsxs(O.Fragment, { children: [
|
80929
|
-
/* @__PURE__ */ O.jsx(
|
80930
|
-
|
80931
|
-
|
80932
|
-
|
80933
|
-
|
80934
|
-
|
80935
|
-
|
80936
|
-
|
80937
|
-
|
80938
|
-
|
80939
|
-
|
80940
|
-
|
80941
|
-
|
80942
|
-
Si,
|
80943
|
-
{
|
80944
|
-
icon: m.icon,
|
80945
|
-
size: "sm",
|
80946
|
-
onClick: m.command,
|
80947
|
-
isActive: m.isActive()
|
80948
|
-
}
|
80949
|
-
),
|
80950
|
-
g === 3 && /* @__PURE__ */ O.jsx("div", { className: "w-[1px] h-4 bg-gray-200 ml-2" })
|
80951
|
-
]
|
80952
|
-
},
|
80953
|
-
g
|
80954
|
-
) : m.name === "Alignment" ? /* @__PURE__ */ O.jsxs(Ce.Fragment, { children: [
|
80927
|
+
/* @__PURE__ */ O.jsx(wZe, { editor: t.editor, elementRef: l }),
|
80928
|
+
r.map((m, g) => m.name === "Bold" || m.name === "Italic" || m.name === "Underline" || m.name === "Strikethrough" || m.name === "Code" ? /* @__PURE__ */ O.jsxs("div", { className: "flex items-center", children: [
|
80929
|
+
/* @__PURE__ */ O.jsx(
|
80930
|
+
Si,
|
80931
|
+
{
|
80932
|
+
icon: m.icon,
|
80933
|
+
size: "sm",
|
80934
|
+
onClick: m.command,
|
80935
|
+
isActive: m.isActive()
|
80936
|
+
}
|
80937
|
+
),
|
80938
|
+
g === 3 && /* @__PURE__ */ O.jsx("div", { className: "w-[1px] h-4 bg-gray-200 ml-2" })
|
80939
|
+
] }, g) : m.name === "Alignment" ? /* @__PURE__ */ O.jsxs(Ce.Fragment, { children: [
|
80955
80940
|
/* @__PURE__ */ O.jsx(
|
80956
80941
|
Ma,
|
80957
80942
|
{
|
@@ -142150,7 +142135,9 @@ const Rse = ({ children: t, exitBeforeEnter: e, custom: n, initial: r = !0, onEx
|
|
142150
142135
|
setIsCommentSectionOpen: E,
|
142151
142136
|
inlineCommentData: D,
|
142152
142137
|
setInlineCommentData: L,
|
142153
|
-
isPreviewMode: t
|
142138
|
+
isPreviewMode: t,
|
142139
|
+
username: i,
|
142140
|
+
walletAddress: o
|
142154
142141
|
}
|
142155
142142
|
),
|
142156
142143
|
/* @__PURE__ */ O.jsx(OYe, { editor: me, appendTo: ge })
|
@@ -13,6 +13,8 @@ type EditorBubbleMenuProps = Omit<BubbleMenuProps, 'children'> & {
|
|
13
13
|
setIsCommentSectionOpen?: (isOpen: boolean) => void;
|
14
14
|
inlineCommentData?: InlineCommentData;
|
15
15
|
setInlineCommentData?: React.Dispatch<React.SetStateAction<InlineCommentData>>;
|
16
|
+
walletAddress?: string;
|
17
|
+
username?: string;
|
16
18
|
};
|
17
19
|
export declare const EditorBubbleMenu: (props: EditorBubbleMenuProps) => import("react/jsx-runtime").JSX.Element;
|
18
20
|
export {};
|