@fileverse-dev/ddoc 2.1.1-v2-patch-1 → 2.1.1-v2-patch-2

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.
@@ -9,23 +9,20 @@ export declare const bubbleMenuProps: (props: EditorBubbleMenuProps) => {
9
9
  zIndex: number;
10
10
  appendTo: () => HTMLElement | null;
11
11
  popperOptions: {
12
+ strategy: string;
12
13
  modifiers: ({
13
14
  name: string;
14
15
  options: {
15
- gpuAcceleration: boolean;
16
- adaptive: boolean;
17
- boundary?: undefined;
18
- padding?: undefined;
16
+ fallbackPlacements: string[];
19
17
  altAxis?: undefined;
18
+ tether?: undefined;
20
19
  };
21
20
  } | {
22
21
  name: string;
23
22
  options: {
24
- boundary: string;
25
- padding: number;
26
23
  altAxis: boolean;
27
- gpuAcceleration?: undefined;
28
- adaptive?: undefined;
24
+ tether: boolean;
25
+ fallbackPlacements?: undefined;
29
26
  };
30
27
  })[];
31
28
  };
@@ -52,6 +49,7 @@ export declare const bubbleMenuProps: (props: EditorBubbleMenuProps) => {
52
49
  walletAddress?: string;
53
50
  username?: string;
54
51
  onInlineComment?: () => void;
52
+ commentDrawerOpen?: boolean;
55
53
  setCommentDrawerOpen?: React.Dispatch<import('react').SetStateAction<boolean>>;
56
54
  };
57
55
  export declare const shouldShow: ({ editor }: {
@@ -19,6 +19,7 @@ export type EditorBubbleMenuProps = Omit<BubbleMenuProps, 'children'> & {
19
19
  walletAddress?: string;
20
20
  username?: string;
21
21
  onInlineComment?: () => void;
22
+ commentDrawerOpen?: boolean;
22
23
  setCommentDrawerOpen?: React.Dispatch<SetStateAction<boolean>>;
23
24
  };
24
25
  export interface NodeSelectorProps {
@@ -1,6 +1,7 @@
1
1
  import { Editor } from '@tiptap/core';
2
2
 
3
- export declare const CommentBubbleCard: ({ editor, activeCommentId, }: {
3
+ export declare const CommentBubbleCard: ({ editor, activeCommentId, commentDrawerOpen, }: {
4
4
  editor: Editor;
5
- activeCommentId: string;
5
+ activeCommentId: string | null;
6
+ commentDrawerOpen: boolean;
6
7
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,4 @@
1
- export declare const CommentSection: ({ activeCommentId, }: {
1
+ export declare const CommentSection: ({ activeCommentId, isNavbarVisible, }: {
2
2
  activeCommentId: string | null;
3
+ isNavbarVisible?: boolean;
3
4
  }) => import("react/jsx-runtime").JSX.Element;
@@ -45,6 +45,7 @@ export interface CommentContextType {
45
45
  activeComments: IComment[];
46
46
  handleInput: (e: React.FormEvent<HTMLTextAreaElement>, content: string) => void;
47
47
  isCommentActive: boolean;
48
+ isCommentResolved: boolean;
48
49
  }
49
50
  export interface CommentProviderProps {
50
51
  children: React.ReactNode;
@@ -20,6 +20,14 @@ declare module '@tiptap/core' {
20
20
  * Unresolve a comment (switch back to unresolved state)
21
21
  */
22
22
  unresolveComment: (commentId: string) => ReturnType;
23
+ /**
24
+ * Set a comment active
25
+ */
26
+ setCommentActive: (commentId: string) => ReturnType;
27
+ /**
28
+ * Unset comment active
29
+ */
30
+ unsetCommentActive: () => ReturnType;
23
31
  };
24
32
  }
25
33
  }