@veltdev/react 3.0.65 → 3.0.67
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 +5 -5
- package/cjs/index.js.map +1 -1
- package/cjs/types/components/SnippylyComments/SnippylyComments.d.ts +1 -0
- package/cjs/types/components/VeltCommentThread/VeltCommentThread.d.ts +2 -0
- package/cjs/types/constants.d.ts +1 -1
- package/cjs/types/hooks/CommentActions.d.ts +67 -0
- package/esm/index.js +5 -5
- package/esm/index.js.map +1 -1
- package/esm/types/components/SnippylyComments/SnippylyComments.d.ts +1 -0
- package/esm/types/components/VeltCommentThread/VeltCommentThread.d.ts +2 -0
- package/esm/types/constants.d.ts +1 -1
- package/esm/types/hooks/CommentActions.d.ts +67 -0
- package/index.d.ts +3 -1
- package/package.json +1 -1
|
@@ -131,6 +131,7 @@ export interface IVeltCommentsProps extends React.DetailedHTMLProps<React.HTMLAt
|
|
|
131
131
|
multiThread?: boolean;
|
|
132
132
|
deleteReplyConfirmation?: boolean;
|
|
133
133
|
collapsedComments?: boolean;
|
|
134
|
+
shortUserName?: boolean;
|
|
134
135
|
resolveStatusAccessAdminOnly?: boolean;
|
|
135
136
|
seenByUsers?: boolean;
|
|
136
137
|
}
|
package/esm/types/constants.d.ts
CHANGED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { Attachment, RecordedData } from "@veltdev/types";
|
|
2
|
+
export declare function useAddCommentAnnotation(): {
|
|
3
|
+
addCommentAnnotation: (config: AddCommentAnnotationConfig) => Promise<any>;
|
|
4
|
+
};
|
|
5
|
+
export declare function useApproveCommentAnnotation(): {
|
|
6
|
+
approveCommentAnnotation: (config: ApproveCommentAnnotationConfig) => Promise<any>;
|
|
7
|
+
};
|
|
8
|
+
export declare function useRejectCommentAnnotation(): {
|
|
9
|
+
rejectCommentAnnotation: (config: RejectCommentAnnotationConfig) => Promise<any>;
|
|
10
|
+
};
|
|
11
|
+
export declare function useDeleteCommentAnnotation(): {
|
|
12
|
+
deleteCommentAnnotation: (config: DeleteCommentAnnotationConfig) => Promise<any>;
|
|
13
|
+
};
|
|
14
|
+
export declare function useUpdatePriority(): {
|
|
15
|
+
updatePriority: (config: UpdatePriorityConfig) => Promise<any>;
|
|
16
|
+
};
|
|
17
|
+
export declare function useUpdateStatus(): {
|
|
18
|
+
updateStatus: (config: UpdateStatusConfig) => Promise<any>;
|
|
19
|
+
};
|
|
20
|
+
export declare function useUpdateAccess(): {
|
|
21
|
+
updateAccess: (config: UpdateAccessConfig) => Promise<any>;
|
|
22
|
+
};
|
|
23
|
+
export declare function useResolveCommentAnnotation(): {
|
|
24
|
+
resolveCommentAnnotation: (config: ResolveCommentAnnotationConfig) => Promise<any>;
|
|
25
|
+
};
|
|
26
|
+
export declare function useGetLink(): {
|
|
27
|
+
getLink: (config: GetLinkConfig) => Promise<any>;
|
|
28
|
+
};
|
|
29
|
+
export declare function useCopyLink(): {
|
|
30
|
+
copyLink: (config: CopyLinkConfig) => Promise<any>;
|
|
31
|
+
};
|
|
32
|
+
export declare function useAddComment(): {
|
|
33
|
+
addComment: (config: AddCommentConfig) => Promise<any>;
|
|
34
|
+
};
|
|
35
|
+
export declare function useUpdateComment(): {
|
|
36
|
+
updateComment: (config: UpdateCommentConfig) => Promise<any>;
|
|
37
|
+
};
|
|
38
|
+
export declare function useDeleteComment(): {
|
|
39
|
+
deleteComment: (config: DeleteCommentConfig) => Promise<any>;
|
|
40
|
+
};
|
|
41
|
+
export declare function useGetComment(): {
|
|
42
|
+
getComment: (config: GetCommentConfig) => Promise<Comment[]>;
|
|
43
|
+
};
|
|
44
|
+
export declare function useAddAttachment(): {
|
|
45
|
+
addAttachment: (config: AddAttachmentConfig) => Promise<AddAttachmentResponse[] | null>;
|
|
46
|
+
};
|
|
47
|
+
export declare function useDeleteAttachment(): {
|
|
48
|
+
deleteAttachment: (config: DeleteAttachmentConfig) => Promise<any>;
|
|
49
|
+
};
|
|
50
|
+
export declare function useGetAttachment(): {
|
|
51
|
+
getAttachment: (config: GetAttachmentConfig) => Promise<Attachment[] | null>;
|
|
52
|
+
};
|
|
53
|
+
export declare function useDeleteRecording(): {
|
|
54
|
+
deleteRecording: (config: DeleteRecordingConfig) => Promise<any>;
|
|
55
|
+
};
|
|
56
|
+
export declare function useGetRecording(): {
|
|
57
|
+
getRecording: (config: GetRecordingConfig) => Promise<RecordedData[] | null>;
|
|
58
|
+
};
|
|
59
|
+
export declare function useAddReaction(): {
|
|
60
|
+
addReaction: (config: AddReactionConfig) => Promise<any>;
|
|
61
|
+
};
|
|
62
|
+
export declare function useDeleteReaction(): {
|
|
63
|
+
deleteReaction: (config: DeleteReactionConfig) => Promise<any>;
|
|
64
|
+
};
|
|
65
|
+
export declare function useToggleReaction(): {
|
|
66
|
+
toggleReaction: (config: ToggleReactionConfig) => Promise<any>;
|
|
67
|
+
};
|
package/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { Config, Velt, ReactionMap, AutocompleteItem, User, Options, DocumentMetadata, Location as Location$1, CommentElement,
|
|
3
|
+
import { Config, Velt, ReactionMap, CommentAnnotation, AutocompleteItem, User, Options, DocumentMetadata, Location as Location$1, CommentElement, CommentAddEventData, CommentUpdateEventData, CommentSelectionChangeData, CommentSidebarCustomActionEventData, CursorElement, CursorUser, LiveStateSyncElement, UserEditorAccess, EditorAccessTimer, ServerConnectionState, PresenceElement, PresenceUser, RecorderElement, RecordedData, RewriterElement, SelectionElement, LiveSelectionData, TagElement, TagAnnotation, ViewsElement, ViewsByUser, ViewsByDate, NotificationElement, Notification, AutocompleteElement, AutocompleteChipData, ContactElement, SelectedUserContact } from '@veltdev/types';
|
|
4
4
|
|
|
5
5
|
interface IVeltProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
6
6
|
apiKey: string;
|
|
@@ -171,6 +171,7 @@ interface IVeltCommentsProps extends React.DetailedHTMLProps<React.HTMLAttribute
|
|
|
171
171
|
multiThread?: boolean;
|
|
172
172
|
deleteReplyConfirmation?: boolean;
|
|
173
173
|
collapsedComments?: boolean;
|
|
174
|
+
shortUserName?: boolean;
|
|
174
175
|
resolveStatusAccessAdminOnly?: boolean;
|
|
175
176
|
seenByUsers?: boolean;
|
|
176
177
|
}
|
|
@@ -509,6 +510,7 @@ declare const VeltViewAnalytics: React.FC<IVeltViewAnalyticsProps>;
|
|
|
509
510
|
|
|
510
511
|
interface IVeltCommentThreadProps {
|
|
511
512
|
annotationId?: string;
|
|
513
|
+
annotation?: CommentAnnotation;
|
|
512
514
|
onCommentClick?: Function;
|
|
513
515
|
darkMode?: boolean;
|
|
514
516
|
variant?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/react",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.67",
|
|
4
4
|
"description": "Velt is an SDK to add collaborative features to your product within minutes. Example: Comments like Figma, Frame.io, Google docs or sheets, Recording like Loom, Huddles like Slack and much more.",
|
|
5
5
|
"homepage": "https://velt.dev",
|
|
6
6
|
"keywords": [
|