3.0.29

New Features

  • [Comments]: Added ability to control whether comments inside the annotation should be collapsed.

Using Props:

<VeltComments collapsedComments={false} />

Using API:

const commentElement = client.getCommentElement();
commentElement.enableCollapsedComments();
commentElement.disableCollapsedComments();
  • [Comments]: Added ability to get comment annotation by ID.

Using Hooks:

const annotation = useCommentAnnotationById({
  annotationId: '-O6W3jD0Lz3rxuDuqQFx',  // AnnotationID
  documentId: 'document-id'              // DocumentId (Optional)
});

React.useEffect(() => {
  console.log('annotation', annotation);
}, [annotation]);

Using API:

const commentElement = client.getCommentElement();

commentElement.getCommentAnnotationById({
  annotationId: '-O6W3jD0Lz3rxuDuqQFx',  // AnnotationID
  documentId: 'document-id'              // DocumentId (Optional)
}).subscribe((annotation) => {
  console.log('annotation', annotation);
});
  • [Notifications]: Added API to mark all notifications as read.
    • Mark all notifications as read, either globally or for a specific tab.
    • Using ‘all’ or ‘document’ as the tabId marks all notifications as read across all tabs (equivalent to calling setAllNotificationsAsRead() without arguments).
    • Using ‘for-you’ as the tabId only marks notifications in the ‘for-you’ tab as read.
const notificationElement = client.getNotificationElement();

// Mark all notifications as read
notificationElement.setAllNotificationsAsRead();

// Mark all notifications as read for a specific tab
notificationElement.setAllNotificationsAsRead({ tabId: 'for-you' });
notificationElement.setAllNotificationsAsRead({ tabId: 'all' });
notificationElement.setAllNotificationsAsRead({ tabId: 'document' });

Bug Fixes

  • [UI Customization]: Fixed an issue in velt if where string comparisions were not working as expected.

3.0.28

New Features

  • [Comments]: Added a reset filter button wireframe in multithread comment dialog.

  • [Notifications]: Added a notifications panel loading state skeleton with wireframes.

<VeltNotificationsPanelWireframe.Skeleton />

Bug Fixes

  • [Comments]: Fixed an issue where draft comments were not being saved for multithread comments in some cases.
  • [Comments]: Fixed an issue where in inline mode, when editing a comment, the annotation was not being selected.