Libraries
@veltdev/react@veltdev/client@veltdev/sdk
New Features
- [Comments]: Added
addCommentAnnotationDraftevent to dynamically set context when creating comment annotations. Triggered beforeaddCommentAnnotationevent clicks on the comment tool and the composer is rendered.
- React / Next.js
- Other Frameworks
Improvements
- [Comments]: Added
setContextProvidermethod to set a global context provider for all comment annotations. Also addeduseSetContextProviderhook for React applications.
- React / Next.js
- Other Frameworks
Bug Fixes
- [Comments]: Fixed page mode and multi-thread annotation ID not found error. Page mode and multi-thread comments now work as expected.
-
[Comments]: Fixed
updateOverlayPositionfunction not triggering. Comment dialog now opens in the correct position. - [Comments]: Fixed unread status issues in inline and focused thread modes. Annotations are now marked as read when opened or clicked.
- [Comments]: Fixed three-dot menu not visible in sidebar.
- [Comments]: Fixed composer not being focused when opened.
- [Comments]: Fixed comments navigating on click. Comments now only navigate when the navigation button is clicked.
Bug Fixes
- [Comments]: Fixed
lastUpdatedtimestamp not being updated when changing context in comment annotation via SDK. Ensures context updates are properly synced to other users.
Improvements
- [Core]: Added robustness to initialization when
VeltProviderwas re-rendered multiple times over a slow network.
Bug Fixes
-
[Comments]: Refactored
submitCommentmethod to fix resolver issue forvelt-comment-composer. Now follows the standard comment submission flow. - [Comments]: Fixed unread status not updating correctly in bottom sheet. This was a regression in v5.
- [Comments]: Fixed navigation button not working properly. This was a regression in v5.
-
[Comments]: Fixed disable recording option not working in
velt-comment-composer. This was a regression in v5.
New Features
- [Core]: Added
globalStylesoption to control whether Velt’s global CSS is loaded. Set tofalseto disable default styles when implementing custom theming.
- React / Next.js
- Other Frameworks
- [Comments]: Added
submitComment(targetElementId)method to programmatically trigger comment submission. Enables custom buttons or keyboard shortcuts for submitting comments. Learn more
- React / Next.js
- Other Frameworks
- [Comments]: Added
placeholderprop to customize input placeholder text in comment composer. Overrides default placeholders. Learn more
- React / Next.js
- Other Frameworks
- [Comments]: Added
composerTextChangeevent that fires when text changes in any comment composer. Enables features like auto-save drafts, character counters, or real-time validation. Learn more
- React / Next.js
- Other Frameworks
Bug Fixes
Comment Dialog Primitives
Released 115+ primitive components for building custom comment dialogs. Each subcomponent can now be used independently without requiring the full dialog structure.- React / Next.js
- Other Frameworks
- Header/Body: Header, Body, CloseButton
- Thread: ThreadCard with Avatar, Name, Time, Message, Reactions, Recordings, Reply, Options, and more
- Composer: Composer, ComposerInput, ComposerActionButton, ComposerAttachmentButton, ComposerRecorderButton, ComposerRecorderPlayer, ComposerFiles
- Dropdowns: StatusDropdown, PriorityDropdown, OptionsDropdown, CustomAnnotationDropdown (each with full sub-component breakdown)
- Additional: ReplyAvatars, AssigneeBanner, ResolveButton, UnresolveButton, CopyLink, DeleteButton, PrivateBanner, NavigationButton, and 90+ more

