@veltdev/sdk-dev 6.0.15 → 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.
@@ -179,15 +179,12 @@ export interface AddCommentAnnotationEvent {
179
179
  xpath: string;
180
180
  };
181
181
  /**
182
- * Present only when this event changed the annotation's assignee.
183
- * - A `UserContact` when this event set the assignee to that user.
184
- * - `null` when this event cleared a previously set assignee.
185
- * - Absent (the key is not present) when this event did not change the assignee.
186
- * "Changed" compares the assignee before and after this event by `userId`, falling back to `email`.
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.
187
185
  * For the event that creates an annotation, any assignee it carries counts as a change.
188
- * To read the annotation's current assignee, use `commentAnnotation.assignedTo`.
189
186
  */
190
- assignedTo?: UserContact | null;
187
+ isAssigneeChanged: boolean;
191
188
  }
192
189
  export interface ApproveCommentAnnotationEvent {
193
190
  annotationId: string;
@@ -265,15 +262,12 @@ export interface AddCommentEvent {
265
262
  comment: Comment;
266
263
  metadata: VeltEventMetadata;
267
264
  /**
268
- * Present only when this event changed the annotation's assignee.
269
- * - A `UserContact` when this event set the assignee to that user.
270
- * - `null` when this event cleared a previously set assignee.
271
- * - Absent (the key is not present) when this event did not change the assignee.
272
- * "Changed" compares the assignee before and after this event by `userId`, falling back to `email`.
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.
273
268
  * For the event that creates an annotation, any assignee it carries counts as a change.
274
- * To read the annotation's current assignee, use `commentAnnotation.assignedTo`.
275
269
  */
276
- assignedTo?: UserContact | null;
270
+ isAssigneeChanged: boolean;
277
271
  }
278
272
  export interface AddCommentDraftEvent {
279
273
  annotationId: string;
@@ -298,15 +292,12 @@ export interface UpdateCommentEvent {
298
292
  comment: Comment;
299
293
  metadata: VeltEventMetadata;
300
294
  /**
301
- * Present only when this event changed the annotation's assignee.
302
- * - A `UserContact` when this event set the assignee to that user.
303
- * - `null` when this event cleared a previously set assignee.
304
- * - Absent (the key is not present) when this event did not change the assignee.
305
- * "Changed" compares the assignee before and after this event by `userId`, falling back to `email`.
306
- * Updates made through the `updateComment` API never carry it; listen to `assignUser` for assignments made separately.
307
- * To read the annotation's current assignee, use `commentAnnotation.assignedTo`.
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.
308
299
  */
309
- assignedTo?: UserContact | null;
300
+ isAssigneeChanged: boolean;
310
301
  }
311
302
  export interface DeleteCommentEvent {
312
303
  annotationId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/sdk-dev",
3
- "version": "6.0.15",
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": [