@veltdev/plate-comments-react 1.0.1 → 5.0.0-beta.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/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/cjs/types/index.d.ts +1 -1
- package/esm/index.js +1 -1
- package/esm/index.js.map +1 -1
- package/esm/types/index.d.ts +1 -1
- package/index.d.ts +1 -8
- package/package.json +4 -4
package/esm/types/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
export { VeltCommentsPlugin } from '@/core/extension';
|
|
10
10
|
export type { VeltCommentsPluginConfig } from '@/core/extension';
|
|
11
11
|
export { addComment } from '@/features/addComment';
|
|
12
|
-
export { renderComments
|
|
12
|
+
export { renderComments } from '@/features/renderComments';
|
|
13
13
|
export { exportJSONWithoutComments } from '@/utils/serializer';
|
|
14
14
|
export { PlateVeltComment } from '@/core/ExtensionComponent';
|
|
15
15
|
export type { AddCommentRequest, CommentAnnotationContext, RenderCommentsRequest } from '@/types/common';
|
package/index.d.ts
CHANGED
|
@@ -247,13 +247,6 @@ declare function addComment({ editorId, editor, context: clientContext, }: AddCo
|
|
|
247
247
|
* - Re-applies marks when resolved comments are selected
|
|
248
248
|
*/
|
|
249
249
|
declare const renderComments: ({ editor, editorId, commentAnnotations, }: RenderCommentsRequest) => void;
|
|
250
|
-
/**
|
|
251
|
-
* Cleans up subscriptions and renderer state for an editor.
|
|
252
|
-
* Should be called when editor is destroyed.
|
|
253
|
-
*
|
|
254
|
-
* @param editorId Unique identifier for the editor
|
|
255
|
-
*/
|
|
256
|
-
declare const cleanupRenderComments: (editorId: string) => void;
|
|
257
250
|
|
|
258
251
|
/**
|
|
259
252
|
* Serializer utilities for Plate editor content
|
|
@@ -288,4 +281,4 @@ declare const PlateVeltComment: (props: Omit<RenderElementProps, "element"> & {
|
|
|
288
281
|
element: VeltCommentsElement;
|
|
289
282
|
}) => React.ReactElement;
|
|
290
283
|
|
|
291
|
-
export { AddCommentRequest, CommentAnnotationContext, PlateVeltComment, RenderCommentsRequest, VeltCommentsEditor, VeltCommentsElement, VeltCommentsPlugin, VeltCommentsPluginConfig, addComment,
|
|
284
|
+
export { AddCommentRequest, CommentAnnotationContext, PlateVeltComment, RenderCommentsRequest, VeltCommentsEditor, VeltCommentsElement, VeltCommentsPlugin, VeltCommentsPluginConfig, addComment, exportJSONWithoutComments, renderComments };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/plate-comments-react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0-beta.1",
|
|
4
4
|
"description": "Velt Comments integration for Plate.js editor",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"react": "^19.0.0 || ^18.0.0 || ^17.0.0 || ^16.0.0",
|
|
22
22
|
"react-dom": "^19.0.0 || ^18.0.0 || ^17.0.0 || ^16.0.0",
|
|
23
|
-
"@platejs/core": "
|
|
24
|
-
"slate": "
|
|
25
|
-
"slate-react": "
|
|
23
|
+
"@platejs/core": ">=49.0.0",
|
|
24
|
+
"slate": ">=0.112.0",
|
|
25
|
+
"slate-react": ">=0.112.0"
|
|
26
26
|
},
|
|
27
27
|
"license": "Proprietary"
|
|
28
28
|
}
|