@fileverse-dev/ddoc 2.0.9-patch-5 → 2.0.9-patch-6.1

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.
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__ */ P.jsx(
80873
- AYe,
80874
- {
80875
- editor: t.editor,
80876
- elementRef: l
80877
- }
80878
- );
80872
+ return /* @__PURE__ */ P.jsx(AYe, { editor: t.editor, elementRef: l });
80879
80873
  default:
80880
80874
  return null;
80881
80875
  }
80882
80876
  }, h = z1("(max-width: 1023px)"), p = () => {
80877
+ if (console.log("runnning"), !(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, k = m.doc.textBetween(g, v, " ");
@@ -80929,32 +80927,19 @@ const u$ = /* @__PURE__ */ sy(EYe), TYe = (t) => {
80929
80927
  )
80930
80928
  }
80931
80929
  ) : /* @__PURE__ */ P.jsxs(P.Fragment, { children: [
80932
- /* @__PURE__ */ P.jsx(
80933
- wZe,
80934
- {
80935
- editor: t.editor,
80936
- elementRef: l
80937
- }
80938
- ),
80939
- r.map((m, g) => m.name === "Bold" || m.name === "Italic" || m.name === "Underline" || m.name === "Strikethrough" || m.name === "Code" ? /* @__PURE__ */ P.jsxs(
80940
- "div",
80941
- {
80942
- className: "flex items-center",
80943
- children: [
80944
- /* @__PURE__ */ P.jsx(
80945
- Si,
80946
- {
80947
- icon: m.icon,
80948
- size: "sm",
80949
- onClick: m.command,
80950
- isActive: m.isActive()
80951
- }
80952
- ),
80953
- g === 3 && /* @__PURE__ */ P.jsx("div", { className: "w-[1px] h-4 bg-gray-200 ml-2" })
80954
- ]
80955
- },
80956
- g
80957
- ) : m.name === "Alignment" ? /* @__PURE__ */ P.jsxs(Me.Fragment, { children: [
80930
+ /* @__PURE__ */ P.jsx(wZe, { editor: t.editor, elementRef: l }),
80931
+ r.map((m, g) => m.name === "Bold" || m.name === "Italic" || m.name === "Underline" || m.name === "Strikethrough" || m.name === "Code" ? /* @__PURE__ */ P.jsxs("div", { className: "flex items-center", children: [
80932
+ /* @__PURE__ */ P.jsx(
80933
+ Si,
80934
+ {
80935
+ icon: m.icon,
80936
+ size: "sm",
80937
+ onClick: m.command,
80938
+ isActive: m.isActive()
80939
+ }
80940
+ ),
80941
+ g === 3 && /* @__PURE__ */ P.jsx("div", { className: "w-[1px] h-4 bg-gray-200 ml-2" })
80942
+ ] }, g) : m.name === "Alignment" ? /* @__PURE__ */ P.jsxs(Me.Fragment, { children: [
80958
80943
  /* @__PURE__ */ P.jsx(
80959
80944
  Ro,
80960
80945
  {
@@ -142220,7 +142205,9 @@ const Rse = ({ children: t, exitBeforeEnter: e, custom: n, initial: r = !0, onEx
142220
142205
  setIsCommentSectionOpen: E,
142221
142206
  inlineCommentData: D,
142222
142207
  setInlineCommentData: L,
142223
- isPreviewMode: t
142208
+ isPreviewMode: t,
142209
+ username: i,
142210
+ walletAddress: o
142224
142211
  }
142225
142212
  ),
142226
142213
  /* @__PURE__ */ P.jsx(OYe, { editor: me, appendTo: Pe })
@@ -1,4 +1,4 @@
1
- import { BubbleMenuProps, Editor } from '@tiptap/react';
1
+ import { BubbleMenuProps } from '@tiptap/react';
2
2
  import { default as React } from 'react';
3
3
 
4
4
  export interface BubbleMenuItem {
@@ -14,7 +14,8 @@ type EditorBubbleMenuProps = Omit<BubbleMenuProps, 'children'> & {
14
14
  setIsCommentSectionOpen?: (isOpen: boolean) => void;
15
15
  inlineCommentData?: InlineCommentData;
16
16
  setInlineCommentData?: React.Dispatch<React.SetStateAction<InlineCommentData>>;
17
- editor: Editor;
17
+ walletAddress?: string;
18
+ username?: string;
18
19
  };
19
20
  export declare const EditorBubbleMenu: (props: EditorBubbleMenuProps) => import("react/jsx-runtime").JSX.Element;
20
21
  export {};
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.0.9-patch-5",
5
+ "version": "2.0.9-patch-6.1",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {