@fileverse-dev/ddoc 3.1.7-comment-re-arch-16 → 3.1.7-comment-re-arch-18
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.
|
@@ -49,6 +49,10 @@ export interface MarkWithRange {
|
|
|
49
49
|
mark: PMMark;
|
|
50
50
|
range: Range;
|
|
51
51
|
}
|
|
52
|
+
export interface CommentMarkMatch {
|
|
53
|
+
commentId: string;
|
|
54
|
+
resolved: boolean;
|
|
55
|
+
}
|
|
52
56
|
export interface CommentOptions {
|
|
53
57
|
HTMLAttributes: Record<string, any>;
|
|
54
58
|
onCommentActivated: (commentId: string) => void;
|
|
@@ -71,6 +75,8 @@ interface DraftCommentPluginState {
|
|
|
71
75
|
export declare const draftCommentPluginKey: PluginKey<DraftCommentPluginState>;
|
|
72
76
|
export declare const getDraftCommentState: (state: EditorState) => DraftCommentPluginState | undefined;
|
|
73
77
|
export declare const getDraftCommentRange: (state: EditorState, draftId: string) => DraftCommentRange | null;
|
|
78
|
+
export declare const getCommentMarkAtPosition: (state: EditorState, pos: number) => CommentMarkMatch | null;
|
|
79
|
+
export declare const getCommentMarkRange: (state: EditorState, commentId: string) => Range | null;
|
|
74
80
|
export interface IComment {
|
|
75
81
|
id?: string;
|
|
76
82
|
tabId?: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const logCommentDebug: (event: string, payload: Record<string, unknown>) => void;
|