@veltdev/sdk-dev 6.0.14 → 6.0.16-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.
@@ -178,6 +178,13 @@ export interface AddCommentAnnotationEvent {
178
178
  elementRef?: {
179
179
  xpath: string;
180
180
  };
181
+ /**
182
+ * `true` when this event changed the annotation's assignee — it assigned a user, or removed the assignee;
183
+ * otherwise `false`. The comparison uses `userId`, falling back to `email`.
184
+ * Read `commentAnnotation.assignedTo` for the current assignee.
185
+ * For the event that creates an annotation, any assignee it carries counts as a change.
186
+ */
187
+ isAssigneeChanged: boolean;
181
188
  }
182
189
  export interface ApproveCommentAnnotationEvent {
183
190
  annotationId: string;
@@ -254,6 +261,13 @@ export interface AddCommentEvent {
254
261
  commentId: number;
255
262
  comment: Comment;
256
263
  metadata: VeltEventMetadata;
264
+ /**
265
+ * `true` when this event changed the annotation's assignee — it assigned a user, or removed the assignee;
266
+ * otherwise `false`. The comparison uses `userId`, falling back to `email`.
267
+ * Read `commentAnnotation.assignedTo` for the current assignee.
268
+ * For the event that creates an annotation, any assignee it carries counts as a change.
269
+ */
270
+ isAssigneeChanged: boolean;
257
271
  }
258
272
  export interface AddCommentDraftEvent {
259
273
  annotationId: string;
@@ -277,6 +291,13 @@ export interface UpdateCommentEvent {
277
291
  commentId: number;
278
292
  comment: Comment;
279
293
  metadata: VeltEventMetadata;
294
+ /**
295
+ * `true` when this event changed the annotation's assignee — it assigned a user, or removed the assignee;
296
+ * otherwise `false`. The comparison uses `userId`, falling back to `email`.
297
+ * Read `commentAnnotation.assignedTo` for the current assignee.
298
+ * Updates made through the `updateComment` API always report `false`; listen to `assignUser` for assignments made separately.
299
+ */
300
+ isAssigneeChanged: boolean;
280
301
  }
281
302
  export interface DeleteCommentEvent {
282
303
  annotationId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/sdk-dev",
3
- "version": "6.0.14",
3
+ "version": "6.0.16-beta.1",
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": [