@veltdev/sdk 3.0.52 → 3.0.53
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/app/models/data/comment-annotation.data.model.d.ts +2 -0
- package/app/models/data/comment-events.data.model.d.ts +33 -0
- package/app/models/element/comment-element.model.d.ts +3 -2
- package/app/utils/constants.d.ts +1 -0
- package/models.d.ts +1 -0
- package/package.json +1 -1
- package/velt.js +2 -2
|
@@ -174,6 +174,7 @@ export declare class CommentAnnotation {
|
|
|
174
174
|
resolvedByUserId?: string | null;
|
|
175
175
|
multiThreadAnnotationId?: string;
|
|
176
176
|
isDraft?: boolean;
|
|
177
|
+
sourceId?: string;
|
|
177
178
|
}
|
|
178
179
|
export declare class GhostComment {
|
|
179
180
|
targetElement?: TargetElement | null;
|
|
@@ -202,6 +203,7 @@ export declare class CommentOnElementConfig {
|
|
|
202
203
|
status?: string;
|
|
203
204
|
context?: any;
|
|
204
205
|
openComment?: boolean;
|
|
206
|
+
sourceId?: string;
|
|
205
207
|
}
|
|
206
208
|
export declare class CommentIAMConfig {
|
|
207
209
|
accessMode?: CommentAccessMode;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { CommentStatus } from "../../utils/enums";
|
|
2
|
+
import { CommentAnnotation, UpdateContextConfig } from "./comment-annotation.data.model";
|
|
3
|
+
import { Location } from "./location.model";
|
|
4
|
+
import { User } from "./user.data.model";
|
|
5
|
+
export interface CommentAddEventData {
|
|
6
|
+
annotation: CommentAnnotation;
|
|
7
|
+
location?: Location;
|
|
8
|
+
documentId?: string;
|
|
9
|
+
addContext: (context: any) => void;
|
|
10
|
+
targetAnnotationId?: string;
|
|
11
|
+
targetCommentId?: number;
|
|
12
|
+
elementRef?: {
|
|
13
|
+
xpath: string;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export interface CommentEvent {
|
|
17
|
+
annotation?: CommentAnnotation | null;
|
|
18
|
+
element?: HTMLElement;
|
|
19
|
+
type?: string;
|
|
20
|
+
targetAnnotationId?: string;
|
|
21
|
+
targetCommentId?: number;
|
|
22
|
+
updateContext?: (context: any, config?: UpdateContextConfig) => void;
|
|
23
|
+
}
|
|
24
|
+
export interface CommentUpdateEventData extends CommentEvent {
|
|
25
|
+
}
|
|
26
|
+
export interface CommentSuggestionEventData {
|
|
27
|
+
annotationId: string;
|
|
28
|
+
actionUser?: User;
|
|
29
|
+
actionType?: CommentStatus;
|
|
30
|
+
replaceContentHtml?: string;
|
|
31
|
+
replaceContentText?: string;
|
|
32
|
+
annotation?: any;
|
|
33
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
import { Observable } from "rxjs";
|
|
3
3
|
import { CommentAnnotation, CommentOnElementConfig, CommentSelectionChangeData, ManualCommentAnnotationConfig, UpdateContextConfig } from "../data/comment-annotation.data.model";
|
|
4
|
+
import { CommentAddEventData, CommentUpdateEventData } from "../data/comment-events.data.model";
|
|
4
5
|
import { CustomCategory, CustomPriority, CustomStatus } from "../data/custom-filter.data.model";
|
|
5
6
|
import { CustomAnnotationDropdownData } from "../data/custom-chip-dropdown.data.model";
|
|
6
7
|
import { AutocompleteData } from "../data/autocomplete.data.model";
|
|
@@ -393,12 +394,12 @@ export declare class CommentElement {
|
|
|
393
394
|
/**
|
|
394
395
|
* To get documentId, location and set context data when comment is added.
|
|
395
396
|
*/
|
|
396
|
-
public onCommentAdd: () => Observable<
|
|
397
|
+
public onCommentAdd: () => Observable<CommentAddEventData>;
|
|
397
398
|
|
|
398
399
|
/**
|
|
399
400
|
* To get data when comment is updated.
|
|
400
401
|
*/
|
|
401
|
-
public onCommentUpdate: () => Observable<
|
|
402
|
+
public onCommentUpdate: () => Observable<CommentUpdateEventData>;
|
|
402
403
|
|
|
403
404
|
/**
|
|
404
405
|
* To add comment on selected text.
|
package/app/utils/constants.d.ts
CHANGED
package/models.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from './app/models/data/attachment.model';
|
|
|
3
3
|
export * from './app/models/data/area-annotation.data.model';
|
|
4
4
|
export * from './app/models/data/chatgpt.data.model';
|
|
5
5
|
export * from './app/models/data/comment-annotation.data.model';
|
|
6
|
+
export * from './app/models/data/comment-events.data.model';
|
|
6
7
|
export * from './app/models/data/comment.data.model';
|
|
7
8
|
export * from './app/models/data/config.data.model';
|
|
8
9
|
export * from './app/models/data/cursor-position.data.model';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/sdk",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.53",
|
|
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": [
|