@fileverse-dev/ddoc 3.2.6 → 3.2.7

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.
@@ -3,6 +3,7 @@ import { Editor } from '@tiptap/core';
3
3
  import { IComment } from '../extensions/comment';
4
4
  import { CommentAnchor } from '../extensions/comment/comment-decoration-plugin';
5
5
  import { CommentMutationMeta, SerializedCommentAnchor } from '../types';
6
+ import { createCommentStore } from './comment-store';
6
7
 
7
8
  import * as Y from 'yjs';
8
9
  export interface CommentStoreProviderProps {
@@ -28,6 +29,13 @@ export interface CommentStoreProviderProps {
28
29
  connectViaUsername?: (username: string) => Promise<void>;
29
30
  ensResolutionUrl: string;
30
31
  commentAnchorsRef?: React.MutableRefObject<CommentAnchor[]>;
32
+ draftAnchorsRef?: React.MutableRefObject<CommentAnchor[]>;
33
+ /**
34
+ * Ref populated by the provider with the Zustand store instance.
35
+ * SuggestionTrackingExtension reads this inside event handlers to route
36
+ * keystrokes into draft actions without rebuilding the editor.
37
+ */
38
+ storeApiRef?: React.MutableRefObject<ReturnType<typeof createCommentStore> | null>;
31
39
  initialCommentAnchors?: SerializedCommentAnchor[];
32
40
  initialComments: IComment[];
33
41
  username: string | null;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/ddoc",
3
3
  "private": false,
4
4
  "description": "DDoc",
5
- "version": "3.2.6",
5
+ "version": "3.2.7",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {