GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing velt.dev — API Methods Index - Velt CommentsThreadsaddCommentAnnotation()Add a new comment annotation.
addCommentOnSelectedText()Add a comment on selected text.
addCommentOnElement()Add a comment on a specific element.
addManualComment()Add a comment with custom positioning.
deleteCommentAnnotation()Delete a comment annotation.
deleteSelectedComment()Delete the currently selected comment.
getCommentAnnotationsCount()Get the total and unread comment annotations count for specified documents.
getUnreadCommentAnnotationCountByLocationId()Get count of unread comment annotations by location ID.
getCommentAnnotations()Get all the comment annotations for all the specified documents.
getSelectedComments()Get currently selected comment annotations.
getCommentAnnotationById()Get a specific comment annotation by ID.
getElementRefByAnnotationId()Get the DOM element reference for a comment annotation.
submitComment()Programmatically submit a comment from a composer.
enableDraftMode()Enable Draft Mode to save partial comments as drafts.
disableDraftMode()Disable Draft Mode to prevent saving partial comments as drafts.
enableDraftConfirmation()Show a Keep Draft / Delete Draft confirmation popup before an unsent composer is saved as a draft. Requires Draft Mode to be on.
disableDraftConfirmation()Revert to saving an unsent composer as a draft silently, with no confirmation popup.
enableLazyLoadResolvedComments()Skip fetching resolved comments on a document’s initial load; they load on demand the first time the sidebar unlocks them.
disableLazyLoadResolvedComments()Revert to always fetching resolved comments on a document’s initial load.
clearComposer()Reset composer state including text, attachments, recordings, tagged users, assignments, custom lists.
getComposerData()Fetch current composer state on-demand. Returns same data structure as composerTextChange event.
setContextProvider()Set a function to provide context dynamically for comment annotations.
updateVisibility()Programmatically set comment visibility topublic, organizationPrivate, or restricted. When setting restricted type, the current user’s userId is automatically appended to userIds if not already present.
enablePrivateMode()Enable private mode so new comments are created with restricted visibility by default.
disablePrivateMode()Disable private mode, reverting new comments to default visibility.
enableVisibilityOptions()Enable the visibility banner in the comment composer, letting users set visibility before submitting.
disableVisibilityOptions()Disable the visibility banner in the comment composer.
setAssignToType()Configure assignment UI mode.
enableContextInPageModeComposer()Enable passing context data to page mode composer when opening via comment tool.
disableContextInPageModeComposer()Disable passing context data to page mode composer.
clearPageModeComposerContext()Clear context data from page mode composer.
enableFormatOptions()Enable text formatting toolbar in comment composers.
disableFormatOptions()Disable text formatting toolbar in comment composers.
setFormatConfig()Configure individual text formatting options (bold, italic, underline, strikethrough).
applyCommentSidebarClientFilters()Applies client-providedCommentSidebarFilters to a set of annotations, honoring the current systemFiltersOperator. Backs the Comment Sidebar V2 declarative filtering.
SlatewithVeltComments()Higher-order function that enhances a Slate editor with Velt comments capabilities.
addComment()Creates a comment annotation for the currently selected text in the editor.
renderComments()Renders and highlights comment annotations in the editor.
SlateVeltCommentReact component that renders a Velt comment text element with annotation ID.
TiptapTiptapVeltComments.configure()A custom Tiptap extension for Velt comments.
addComment()Creates a comment annotation for the currently selected text in the editor.
renderComments()Renders and highlights comment annotations in the editor.
LexicaladdComment()Creates a comment annotation for the currently selected text in the editor.
renderComments()Renders and highlights comment annotations in the editor.
exportJSONWithoutComments()Export the editor state JSON while stripping comment nodes and normalizing adjacent text nodes.
PlateVeltCommentsPlugin.configure()A Plate.js plugin for Velt comments.
addComment()Creates a comment annotation for the currently selected text in the editor.
renderComments()Renders and highlights comment annotations in the editor.
exportJSONWithoutComments()Exports the editor content as JSON with Velt comment elements removed.
PlateVeltCommentReact component that renders a Velt comment element in the editor.
CodeMirrorCodemirrorVeltComments()Creates the Velt Comments extension for CodeMirror.
addComment()Creates a comment annotation for the currently selected text in the editor.
renderComments()Renders and highlights comment annotations in the editor.
AceAceVeltComments()Initializes the Velt Comments extension for an Ace Editor instance.
addComment()Creates a comment annotation for the currently selected text in the editor.
renderComments()Renders and highlights comment annotations in the editor.
QuillQuillVeltCommentsThe Velt Comments module for Quill. Register it with Quill before creating the editor.
addComment()Creates a comment annotation for the currently selected text in the editor.
renderComments()Renders and highlights comment annotations in the editor.
ApryseApryseVeltComments.configure()Creates the Velt Comments extension for the Apryse WebViewer. Call.attach(instance) on the result to wire it to a WebViewer instance.
addComment()Creates a comment annotation for the currently selected text in the WebViewer.
renderComments()Renders and highlights comment annotations in the WebViewer.
DraftJSDraftJSVeltEditorReact wrapper around the DraftJSEditor component that handles Velt comment decorator setup and annotation context tracking.
addComment()Creates a comment annotation for the currently selected text in the editor.
renderComments()Renders and highlights comment annotations in the DraftJS editor.
exportContentStateWithoutComments()Returns a DraftJSContentState with Velt comment entities removed.
ProseMirrorVeltCommentsPlugin()Creates the ProseMirror plugin that powers Velt comments. Add it to the editor state’splugins array.
addComment()Creates a comment annotation for the currently selected text in the ProseMirror editor.
renderComments()Renders and highlights comment annotations in the ProseMirror editor.
veltCommentsPluginKeyThe ProseMirrorPluginKey used by the package. Exported for advanced plugin state inspection.
TinyMCEVeltCommentsPluginThe registered TinyMCE plugin name ('veltcomments') that powers Velt comments. Import the package and add it to the editor’s plugins list.
registerVeltCommentsPlugin()Explicitly registers the TinyMCEveltcomments plugin against a TinyMCE instance. Use this when TinyMCE is loaded or provided after package import.
addComment()Creates a Velt comment annotation for the currently selected TinyMCE text.
renderComments()Resolves Velt comment annotations back to TinyMCE DOM ranges and renders stable<velt-comment-text> overlay elements for the visible comments.
CKEditorVeltCommentsPluginThe CKEditor 5 plugin class that powers Velt comments. Add it to the editor’splugins list and configure it with config.veltComments.
addComment()Creates a comment annotation for the currently selected text in CKEditor.
renderComments()Resolves and highlights Velt comment annotations in CKEditor.
MonacoregisterVeltComments()Registers the Velt comments integration on a Monaco editor instance and returns a disposable handle.
addComment()Creates a Velt comment annotation for the currently selected Monaco text.
renderComments()Resolves Velt comment annotations to Monaco ranges and renders stable<velt-comment-text> overlay elements for the visible comments.
isVeltAvailable()Checks whether the Velt SDK is loaded onwindow.Velt.
SuperDocSuperDocVeltCommentsCreates the Velt Comments extension for a SuperDoc editor. Configure it, then call.attach(instance) to wire it to an editor.
addComment()Creates a comment annotation for the currently selected text in the SuperDoc editor.
renderComments()Renders and updates Velt comment highlights in the SuperDoc editor.
NutrientNutrientVeltCommentsCreates the Velt Comments extension for a Nutrient viewer. Configure it, then call.attach(instance) to wire it to a viewer instance.
captureSelection()Records the current Nutrient text selection for the nextaddComment() call.
addComment()Creates a comment annotation for the currently captured text selection in the Nutrient viewer.
renderComments()Renders and updates Velt comment highlights in the Nutrient viewer.
SpreadJSSpreadJSVeltCommentsCreates the Velt Comments extension for a SpreadJS workbook. Configure it, then call.attach(instance) to wire it to a workbook instance.
addComment()Creates a comment annotation for the currently selected SpreadJS cell or range.
renderComments()Renders and updates Velt comment highlights in the SpreadJS workbook.
MessagesaddComment()Add a comment to a specific comment annotation.
updateComment()Update a comment in a specific comment annotation.
deleteComment()Delete a comment from a specific comment annotation.
getComment()Get comments from a specific comment annotation.
getUnreadCommentCountOnCurrentDocument()Get the number of unread comments on the current document.
getUnreadCommentCountByLocationId()Get the number of unread comments by location ID.
getUnreadCommentCountByAnnotationId()Get the number of unread comments by annotation ID.
markAsRead()Mark a comment annotation as read for the current user.
markAsUnread()Mark a comment annotation as unread for the current user.
setCommentProgressStaleAfter()Set how long a progress row can go without an update before it’s treated as stale and hidden.
@MentionsassignUser()Assign a user to a comment annotation.
disableCustomAutocompleteSearch()Disable custom autocomplete search for contact list.
enableAtHere()Enable or disable @here mentions.
enableUserMentions()Enable or disable user @mentions.
enablePaginatedContactList()Enable paginated loading of the contact list. On by default: each list loads 10 users plus the signed-in user.
disablePaginatedContactList()Disable paginated loading of the contact list so the full list loads up front.
enableAnonymousEmail()Enable display of unrecognized email addresses in the @mention dropdown.
disableAnonymousEmail()Suppress unrecognized email addresses from appearing in the @mention dropdown.
enableCustomAutocompleteSearch()Enable custom autocomplete search for contact list.
getContactList()Subscribe to the list of users added to organization, folder, document, user groups or the ones overwritten using theupdateContactList API.
onContactSelected()Listen for when a contact is selected from the dropdown.
setAtHereLabel()Customize the @here label text.
setAtHereDescription()Customize the @here description text.
subscribeCommentAnnotation()Subscribe to a comment annotation.
unsubscribeCommentAnnotation()Unsubscribe from a comment annotation.
updateContactList()Update the contact list for the current user session.
updateOrgList()Supplies the list of teams shown in the comment dialog’s “Selected Teams” visibility picker. UnlikeupdateContactList(), this is a full replace on every call (it does not merge); pass { orgList: [] } to clear the picker. Exposed on contactElement only.
updateContactListScopeForOrganizationUsers()Restrict which contacts are shown in the dropdown for organization users.
MetadataaddContext()Add custom metadata to a comment annotation.
updateContext()Update custom metadata on a comment annotation.
Custom ListsaddCustomListDataOnAnnotation()Add a custom dropdown list at the Comment Annotation level.
addCustomListDataOnComment()Add a custom dropdown list that appears when a hotkey is pressed in the comment composer.
onAutocompleteChipClick()Listen for clicks on autocomplete chips in comments.
enableCustomAutocompleteSearch()Enable custom autocomplete search for custom list.
disableCustomAutocompleteSearch()Disable custom autocomplete search for custom list.
Event Subscriptionon()Subscribe to comment events.
AttachmentsenableAttachments()Enable file attachments in comments.
enableAttachmentDownload()Allow clicking an attachment to trigger a file download.
disableAttachmentDownload()Prevent clicking an attachment from triggering a file download;attachmentDownloadClicked still fires.
enableScreenshot()Enable screenshot option in comments.
disableScreenshot()Disable screenshot option in comments.
addAttachment()Add an attachment to a specific comment annotation.
deleteAttachment()Delete an attachment from a specific comment annotation.
getAttachment()Get attachments from a specific comment annotation.
setAllowedFileTypes()Limit file types in comment attachments. Applies to picked, pasted, and dropped files.
setComposerFileAttachments()Programmatically add file attachments to the comment composer from your application instead of requiring users to select files from the file system.
enableAttachmentDownload()Enable automatic file downloads when clicking the download button on attachments.
disableAttachmentDownload()Disable automatic file downloads. TheattachmentDownloadClicked event still fires, allowing custom download logic.
ReactionsenableReactions()Enable emoji reactions in comments.
setCustomReactions()Set custom reactions by passing a map containing reaction information.
addReaction()Add a reaction to a specific comment annotation.
deleteReaction()Delete a reaction from a specific comment annotation.
toggleReaction()Toggle a reaction for a specific comment annotation.
Status & PriorityenableStatus()Enable status dropdown & filters in comments.
setCustomStatus()Set custom statuses by passing an array of status objects.
enableResolveButton()Enable resolve button on comments.
updateStatus()Update the status of a comment annotation.
resolveCommentAnnotation()Resolve a comment annotation.
enablePriority()Enable priority settings in comments.
setCustomPriority()Set custom priorities by passing an array of priority objects.
updatePriority()Update the priority of a comment annotation.
RecordingsdeleteRecording()Delete a recording from a comment.
getRecording()Get recordings from a comment.
setAllowedRecordings()Set allowed recording types (audio, video, screen).
enableRecordingCountdown()Enable countdown before recording starts.
enableRecordingTranscription()Enable AI transcription for recordings.
Deep LinkgetLink()Get a link to a specific comment annotation.
copyLink()Copy a link to a specific comment annotation to clipboard.
NavigationscrollToCommentByAnnotationId()Scroll the page to a comment’s location.
selectCommentByAnnotationId()Programmatically select a comment annotation. When called without arguments or with an invalid ID, it will close the currently selected annotation.
onCommentSelectionChange()Subscribe to comment selection changes.
enableScrollToComment()Enable automatic scrolling to comments.
enableIdScopedAnchoring()Place pins whose xpath is rooted at an element id only inside that element. PassdocumentIds to limit it to specific documents.
disableIdScopedAnchoring()Restore the default scored pin anchoring.
DOM ControlsallowedElementIds()Set allowed element IDs for commenting.
allowedElementClassNames()Set allowed element class names for commenting.
allowedElementQuerySelectors()Set allowed element query selectors for commenting.
setContextInPageModeComposer()Set context data and optional target element for page mode composer.
focusPageModeComposer()Focus the page mode composer input field.
AI CategorizationenableAutoCategorize()Enable AI auto-categorization of comments.
setCustomCategory()Set custom categories for comment categorization.
UIupdateCommentDialogPosition()Update position of comment dialog relative to pin.
enableSidebarButtonOnCommentDialog()Enable sidebar button on comment dialogs.
onSidebarButtonOnCommentDialogClick()Subscribe to clicks on comment dialog sidebar button.
CommentDialogActionService.isSubmitInFlight()Advanced — intended for custom-actions hosts that intercept the comment submit flow. true while a real (non-draft) addComment call is in flight for the given dialog instance. Use this to guard against duplicate submits or skip auto-draft-save logic during an active submit.
enableDeleteReplyConfirmation()Enable confirmation dialog before deleting replies.
enableMobileMode()Enable mobile-optimized comment UI.
enableCommentPinHighlighter()Enable highlighting outline around comment pins.
enablePinDrag()Enable dragging of comment pins to reposition them.
disablePinDrag()Disable dragging of comment pins.
showCommentsOnDom()Show comments on the DOM.
enableDialogOnHover()Enable showing comment dialog on hover.
enableFloatingCommentDialog()Enable floating comment dialog next to pins.
showResolvedCommentsOnDom()Show resolved comments on the DOM.
enableCollapsedComments()Enable collapsing of comments in annotations.
enableShortUserName()Enable shortening of long user names.
enableSignInButton()Enable sign in button on comment dialog when user is anonymous or signed out.
onSignIn()Handle sign in button click event.
Extra InformationenableCommentIndex()Enable comment index indicators on pins and sidebar.
enableDeviceInfo()Enable device type indicators in comment threads.
enableDeviceIndicatorOnCommentPins()Enable device type indicators on comment pins.
enableGhostComments()Enable showing ghost comments on the DOM.
enableGhostCommentsIndicator()Enable ghost comment labels in the sidebar.
enableRestrictTextSearchToAnchor()Restrict the text-comment highlight search to the anchor element only. The comment ghosts immediately when the anchor text is gone (no body-level fallback).
disableRestrictTextSearchToAnchor()Allow the wider fallback search (document.body for body-anchored comments, location element for location-scoped ones) before ghosting. Default behavior.
Special File Type SupportenableSvgAsImg()Treat SVGs as flat images instead of layered elements.
Keyboard ControlsenableHotkey()Enable hotkeys for comments (e.g. ‘c’ to enable comment mode).
enableEnterKeyToSubmit()Enable using Enter key to submit comments.
enableDeleteOnBackspace()Enable deleting comments with backspace key.
ModerationenableModeratorMode()Enable moderator mode for comments requiring approval.
enableResolveStatusAccessAdminOnly()Restrict resolve action to admin users and comment authors.
approveCommentAnnotation()Approve a comment annotation in moderator mode.
enableSuggestionMode()Enable suggestion mode for accepting/rejecting comments.
acceptSuggestion()Accept a suggestion annotation (agent- or human-authored), the same action the comment dialog’s built-in Accept button performs. Setssuggestion.status and flips annotation.type to 'comment'.
rejectSuggestion()Reject a suggestion annotation (agent- or human-authored), the same action the comment dialog’s built-in Reject button performs. Setssuggestion.status and flips annotation.type to 'comment'.
Comment Read StatusenableSeenByUsers()Enable “Seen By” feature to show which users have seen each comment.
setUnreadIndicatorMode()Set unread indicator mode to either minimal (dot) or verbose (badge).
Toggle Comment TypesenableAreaComment()Enable area comments that allow drawing rectangles with comments.
enableInboxMode()Enable inbox mode for comments.
enablePopoverMode()Enable popover mode for comments.
enableStreamMode()Enable stream mode for comments.
enableTextMode()Enable text mode for comments.
enableInlineCommentMode()Enable inline comment mode to show comments under associated text.
enableMultiThread()Enable multithreaded comments.
enableCollapsedRepliesPreview()Show the collapsed thread teaser (first comment, “Show N replies…” divider, last comment) in a comment dialog’s non-selected preview state. Defaults to disabled.
disableCollapsedRepliesPreview()Revert to showing only the first comment in a comment dialog’s non-selected preview state.
Comment BubbleenableGroupMatchedComments()Enable grouping of multiple comment annotations in Comment Bubble component when multiple annotations match the providedcontext or targetElementId.
Comment ToolenableCommentMode()Enable comment mode to allow attaching comments to DOM elements.
onCommentModeChange()Subscribe to changes in comment mode state.
enableCommentTool()Enable/disable the comment tool button.
enableChangeDetectionInCommentMode()Enable DOM change detection while in comment mode.
enablePersistentCommentMode()Enable persistent comment mode to continue leaving comments after finishing one.
enableForceCloseAllOnEsc()Force close persistent comment mode when ESC key is pressed, even if a comment thread is active.
disableForceCloseAllOnEsc()Disable force close behavior for persistent comment mode when ESC key is pressed.
setPinCursorImage()Set custom cursor image for comment mode.
MinimapenableMinimap()Enable minimap showing comment locations on screen edge.
Popover CommentsenableDialogOnTargetElementClick()Enable opening comment dialog on target element click in popover mode.
enablePopoverTriangleComponent()Enable triangle indicator on popover comments.
Video Timeline CommentssetTotalMediaLength()Set the total length of media (in frames or seconds) for the timeline.
Comment PinenableBubbleOnPin()Show a Comment Bubble when hovering/clicking on Comment Pin instead of Comment Dialog.
enableBubbleOnPinHover()Show Comment Bubble on hover vs click for Comment Pins.
Component PropsVeltCommentsProps accepted by theVeltComments root component, including edit-mode placeholder overrides. Setting props here propagates to all comment dialogs automatically.
VeltCommentDialogProps accepted by theVeltCommentDialog component, including edit-mode placeholder overrides.
VeltCommentsSidebarProps accepted by theVeltCommentsSidebar component, including edit-mode placeholder overrides.
VeltInlineCommentsSectionProps accepted by theVeltInlineCommentsSection component, including edit-mode placeholder overrides.
Comments SidebarCustom filtering, sorting and groupingenableSidebarCustomActions()Enable custom filtering, sorting and grouping actions in the comments sidebar.
setCommentSidebarData()Set filtered/sorted/grouped data in the comments sidebar.
getCustomSidebarDataAnnotationIds()Returns a snapshot of the deduplicated annotation-ID set most recently passed tosetCommentSidebarData().
Advanced / internal — prefer setCommentSidebarData() for most use cases.
null indicates no override is active (no setCommentSidebarData call yet, or clearCache was called); an empty Set<string> means the client has explicitly set the visible list to empty (show nothing).getCustomSidebarDataAnnotationIds$()Returns an Observable that replays the current annotation-ID set and emits on everysetCommentSidebarData() call. Structurally equal ID sets are deduplicated (no redundant emissions).
Advanced / internal — prefer setCommentSidebarData() for most use cases.
NavigationonCommentClick()Listen for comment click events in the sidebar.
enableSidebarUrlNavigation()Enable automatic URL navigation when clicking comments in the sidebar.
UIopenCommentSidebar()Open the comments sidebar. PasssidebarId to open a named Sidebar V2 and annotationId to open it on a thread.
closeCommentSidebar()Close the comments sidebar. PasssidebarId to close a named Sidebar V2.
toggleCommentSidebar()Toggle the comments sidebar open/closed state. PasssidebarId to toggle a named Sidebar V2.
enableFullScreenInSidebar()Enable full-screen mode for the Comments Sidebar (only works in default mode).
disableFullScreenInSidebar()Disable full-screen mode for the Comments Sidebar.
excludeLocationIdsFromSidebar()Filter out comments from specified locations in the sidebar.
System Filters, Sorting and GroupingsetCommentSidebarFilters()Set filters for the comments sidebar programmatically. Included keys replace their selected values while omitted keys are preserved. The values render as checked options and are cleared by Reset — pass a present-but-empty array to clear one field, or an empty object to clear all selections.
setSystemFiltersOperator()Set how selections from different sidebar filter fields are combined. Values within one field always use OR.
setSidebarButtonCountType()Change what the sidebar button count badge reflects:'default' counts comments in open and in-progress states; 'filter' counts the sidebar’s filtered list.
NotificationsDatagetNotificationsData()Get the notifications data for the current user.
getUnreadNotificationsCount()Get count of unread notifications by tab.
Event Subscriptionon()Subscribe to Notification events.
onNotificationClick()Listen for notification click events in the Notifications Panel.
ConfigurationsetTabConfig()Customize notification tab names and visibility.
setMaxDays()Set maximum age in days for displayed notifications.
enableReadNotificationsOnForYouTab()Show read notifications in the “For You” tab.
enableCrossOrganization()Enable cross-organization “For You” notifications, merging notifications from other orgs the user belongs to. Passingnull or omitting config opts in with defaults; { enabled: false } disables.
disableCrossOrganization()Disable cross-organization notifications.
getCrossOrganizationConfig()Get the current cross-organization configuration.
getCrossOrganizationConfig$()Subscribe to changes in the cross-organization configuration.
enableUserScopedNotifications()Fetch the current user’s newest notifications for the current organization, independent of the recently-active-documents window, and merge them into the “For You” tab and unread count. Passingnull or omitting the config opts in with defaults; { enabled: false } disables and keeps the configured limit.
disableUserScopedNotifications()Disable the user-scoped notifications fetch and return to the recently-active-documents window.
ActionssetAllNotificationsAsRead()Mark all notifications as read globally or by tab.
markNotificationAsReadById()Mark a specific notification as read.
Notification SettingsenableSettings()Enable or disable the settings feature for notifications.
disableSettings()Disable the settings feature for notifications.
enableSettingsAtOrganizationLevel()Enable organization-level notification settings. Settings apply to all documents in the organization instead of per-document.
disableSettingsAtOrganizationLevel()Disable organization-level notification settings. Settings revert to per-document configuration.
setSettingsInitialConfig()Set the initial default configuration for notification settings.
muteAllNotifications()Mute all notifications across all channels for the current user.
setSettings()Update notification settings configuration for the current user.
getSettings()Get the current notification settings configuration for the user.
enableCurrentDocumentOnly()Filters notifications to show only those from the current document.
disableCurrentDocumentOnly()Shows notifications from all documents, not just the current document.
Activity LogsDatagetAllActivities()Subscribe to the real-time activity log feed, optionally filtered by document, feature type, or action type.
ActionscreateActivity()Create a custom activity log record for non-Velt events.
Element AccessgetActivityElement()Get the ActivityElement instance from the Velt client.
React HooksuseAllActivities()React Hook to subscribe to the activity log feed with optional filtering.
useActivityUtils()React Hook to access ActivityElement utility methods such ascreateActivity().
RecorderdownloadLatestVideo()Downloads the latest version of a recording.
enableRecordingCountdown()Controls whether to display a countdown timer before a recording starts.
enableRecordingTranscription()Controls whether to enable AI transcription for recordings.
fetchRecordings()Fetches recording data.
RecorderElement MethodssetMaxLength()Sets the maximum recording duration in seconds.
enablePictureInPicture()Enables Picture-in-Picture mode for recordings.
disablePictureInPicture()Disables Picture-in-Picture mode for recordings.
openPictureInPicture()Opens the Picture-in-Picture window for the current recording.
exitPictureInPicture()Exits the Picture-in-Picture window.
requestScreenPermission()Requests screen capture permissions for recording preview.
enablePlaybackOnPreviewClick()Enables click-to-play/pause functionality on recording preview thumbnails.
disablePlaybackOnPreviewClick()Disables click-to-play/pause functionality on recording preview thumbnails.
Event Subscriptionon()Subscribe to Recorder events.
Inline ReactionssetCustomReactions()Set custom reaction emojis for inline reactions.
View AnalyticsgetUniqueViewsByUser()Get unique views by user, optionally filtered by location.
getUniqueViewsByDate()Get unique views by date, optionally filtered by location.
Live State SyncgetLiveStateData()Retrieves live state data as an observable based on the provided ID.
setLiveStateData()Sets live state data for the provided ID and data.
fetchLiveStateData()Fetches live state data as a Promise. Use this when you need to retrieve the current state once, rather than subscribing to ongoing changes.
Single Editor ModeenableSingleEditorMode()Enables the single editor mode with an optional configuration.
disableSingleEditorMode()Disables the single editor mode.
isUserEditor()Checks if the current user is an editor. Returns an observable.
getEditor()Retrieves the current editor information.
setUserAsEditor()Sets the current user as an editor.
SetUserAsEditorResponse.error:
resetUserAccess()Resets the user access.
singleEditorModeContainerIds()Disables elements inside specific elements only when single editor mode is on.
enableAutoSyncState()Enables the autosync state feature.
requestEditorAccess()Initiates a request for editor access.
isEditorAccessRequested()Checks if editor access has been requested.
acceptEditorAccessRequest()Accepts an editor access request.
rejectEditorAccessRequest()Rejects an editor access request.
cancelEditorAccessRequest()Cancels an editor access request.
editCurrentTab()Edits the current tab.
setEditorAccessTimeout()Sets a timeout for editor access. (in milliseconds)
enableEditorAccessTransferOnTimeOut()Enables the transfer of editor access on timeout.
enableDefaultSingleEditorUI()Enables the default UI for single editor mode.
enableHeartbeat()Enables the heartbeat mechanism for Single Editor Mode presence detection. This feature is enabled by default when single editor mode is enabled.
disableHeartbeat()Disables the heartbeat mechanism for Single Editor Mode presence detection. Must be called before enabling single editor mode if you don’t want to use the heartbeat functionality.
CursorssetInactivityTime()Set the time it takes for a user’s cursor to be marked as inactive.
allowedElementIds()Set specific element IDs where cursors should be shown.
onCursorUserChange()Subscribe to cursor position changes for all users.
PresenceupdateUserPresence()Send a lightweight heartbeat from your host app to Velt. Velt will use that as a fallback in rare edge cases if it fails to detect multi‑tab/device presence. Most apps don’t need this; use only if you see ambiguity in who’s the active editor.
setInactivityTime()Set the time it takes for a user to be marked as inactive.
enableSelf()Include the current user in the list of presence users.
on()Subscribe to Presence events.
onPresenceUserChange()Subscribe to presence changes for all users.
onPresenceUserClick()Handle click events on presence avatar circles.
getData()Subscribe to presence data.
addUser()Programmatically add a custom user (e.g., AI agent, bot) to the presence list. SetlocalOnly: true to restrict the change to the current client without persisting to the database.
removeUser()Programmatically remove a custom user from the presence list. SetlocalOnly: true to restrict the removal to the current client.
Follow ModeenableFlockMode()Enable Follow Me mode globally wherever Presence is shown.
startFollowingUser()Start following a specific user.
stopFollowingUser()Stop following the current user.
onNavigate()Handle navigation events during Follow Me sessions.
HuddleenableChat()Enable the ephemeral chat feature in Huddle.
enableFlockModeOnAvatarClick()Enable Follow Me mode when clicking on a user’s avatar in Huddle.
Live SelectionenableDefaultElementsTracking()Enable automatic tracking of user presence on default element types (input, textarea, button, contenteditable).
enableUserIndicator()Enable the user indicator (avatar/name label) that appears near selected elements.
setUserIndicatorPosition()Set the position of the user indicator globally.
setUserIndicatorType()Set the type of user indicator globally.
getLiveSelectionData()Get the live selection data for the current document.
setInactivityTime()Set inactivity duration before hiding inactive selections.
AIRewriterenableRewriter()Enable the rewriter.
on()Subscribe to Rewriter events. Supports'textSelected' to receive TextSelectedEvent whenever a user selects text in a Rewriter-enabled region.
askAi()Send a text-generation prompt to any AI model via Velt’s proxy. Model is resolved from the name prefix to the configured provider.
replaceText()Replace the DOM text identified by aTextSelectedEvent with new text.
addComment()Create a comment annotation anchored to the text range from aTextSelectedEvent.
enableDefaultUI()Show the built-in Velt rewriter toolbar on text selection. This is the default state.
disableDefaultUI()Hide the built-in Velt rewriter toolbar; custom UI only. Rewriter events remain active.
ReactFlowuseVeltReactFlowCrdtExtension()Provides real-time collaborative ReactFlow editor functionality with Yjs and Velt SDK synchronization.
veltReactFlowStoreCreate and initialize a collaborative React Flow Zustand store.
onNodesChangeCRDT-aware handler to apply node changes (add/update/remove) that sync across collaborators.
onEdgesChangeCRDT-aware handler to apply edge changes (add/update/remove) that sync across collaborators.
onConnectCRDT-aware connect handler compatible with React Flow’sonConnect prop.
setNodesImperative setter for nodes (useful for non-event updates). Synced via the store.
setEdgesImperative setter for edges (useful for non-event updates). Synced via the store.
EncryptionsetEncryptionProvider(encryptionProvider)Register a custom encrypt/decrypt provider used by CRDT features.
CodeMirrorv2 APIuseCollaboration()Primary React hook for collaborative CodeMirror editing. Creates a CollaborationManager, initializes the CRDT store, and returns collaboration primitives for CodeMirror integration.
createCollaboration()Non-React factory function that creates a CollaborationManager for CodeMirror, initializes the CRDT store, and returns a ready-to-use instance.
CollaborationManager MethodsTheCollaborationManager is returned by useCollaboration (React) via the manager property, or directly by createCollaboration (non-React). All methods below work in both contexts.
manager.getCollaborationPrimitives()Returns the Yjs primitives (ytext, awareness, undoManager, doc) needed to call yCollab(). Non-React only — the React hook returns primitives directly.
manager.onStatusChange()Subscribe to connection status changes. Non-React only — the React hook returnsstatus directly.
manager.onSynced()Subscribe to sync state changes. Non-React only — the React hook returnsisSynced directly.
manager.initializedWhether initialization has completed.
manager.syncedWhether initial sync with the backend has completed.
manager.statusCurrent connection status.
manager.saveVersion()Save a named snapshot of the document state. Returns the version ID.
manager.getVersions()List all saved versions.
manager.restoreVersion()Restore to a saved version. Returnstrue on success.
manager.setStateFromVersion()Apply a Version object’s state locally to the current document.
manager.getDoc()Get the underlying Yjs document.
manager.getText() / manager.getYText()Get the Y.Text bound to the document content. React usesgetText(), non-React uses getYText().
manager.getProvider()Get the sync provider.
manager.getAwareness()Get the Yjs Awareness instance.
manager.getStore()Get the core CRDT Store.
manager.getUndoManager()Get the Y.UndoManager for undo/redo operations.
manager.destroy()Full cleanup. Automatic on editor destroy or component unmount. Safe to call multiple times.
v1 API (deprecated)The v1 API is deprecated. Use useCollaboration() (React) or createCollaboration() (non-React) for all new integrations.useVeltCodeMirrorCrdtExtension() (deprecated)Legacy React hook for collaborative CodeMirror editing. Internally delegates touseCollaboration via a compatibility wrapper.
createVeltCodeMirrorCrdtExtension() (deprecated)Legacy non-React function for collaborative CodeMirror editing using a callback-based pattern.
createVeltCodeMirrorStore() (deprecated)Legacy factory to create and initialize a collaborative CodeMirror store instance.
store.getStore() (deprecated)Get the underlying Store that manages state and synchronization.
store.getYDoc() (deprecated)Access the Yjs document used for collaborative editing.
store.getYText() (deprecated)Get the shared Y.Text bound to the current CodeMirror document.
store.getAwareness() (deprecated)Access the Yjs Awareness instance associated with the store.
store.getUndoManager() (deprecated)Access the Yjs UndoManager for collaborative undo/redo.
store.destroy() (deprecated)Clean up listeners and release resources.
BlockNotev2 APIuseCollaboration()Primary React hook for collaborative BlockNote editing. Creates a CollaborationManager, initializes the CRDT store, and returns a BlockNoteCollaborationConfig with cursor support.
manager.getCollaborationConfig()Get the BlockNote collaboration config.
manager.saveVersion()Save a named snapshot of the document state.
manager.getVersions()List all saved versions for this document.
manager.restoreVersion()Restore the document to a previously saved version. The restored state is pushed to all connected clients.
manager.setStateFromVersion()Apply a Version object’s state locally to the current document.
manager.getDoc()Get the underlying Yjs document.
manager.getXmlFragment()Get the XmlFragment bound to BlockNote’s document-store key.
manager.getProvider()Get the sync provider.
manager.getAwareness()Get the Yjs Awareness instance.
manager.getStore()Get the core CRDT Store.
manager.destroy()Full cleanup of the CollaborationManager (automatic on unmount).
Non-React v2 APIcreateCollaboration()Factory function that creates a CollaborationManager for BlockNote, initializes the CRDT store, and returns a ready-to-use instance.
manager.getCollaborationConfig()Returns the BlockNote collaboration config. Pass toBlockNoteEditor.create({ collaboration: ... }).
manager.onStatusChange()Subscribe to connection status changes.
manager.onSynced()Subscribe to sync state changes.
manager.initializedWhether initialization has completed.
manager.syncedWhether initial sync with the backend has completed.
manager.statusCurrent connection status.
v1 API (deprecated)The v1 BlockNote API is deprecated. Use useCollaboration() (React) or createCollaboration() (non-React) for all new integrations.useVeltBlockNoteCrdtExtension() (deprecated)Legacy React hook for collaborative BlockNote editing. Internally delegates touseCollaboration via a compatibility wrapper.
createVeltBlockNoteStore() (deprecated)Create and initialize a legacy collaborative BlockNote store instance.
store.getStore() (deprecated)Access the underlying CRDT store.
store.getYDoc() (deprecated)Accessor for the underlying Yjs document.
store.getYXml() (deprecated)Get the Y.XmlFragment representing the BlockNote document tree.
store.destroy() (deprecated)Tear down the store and clean listeners/resources.
TiptapReact v2 APIuseCollaboration()Primary React hook for collaborative TipTap editing. Creates a CollaborationManager, initializes the CRDT store, and returns a TipTap Extension with cursor support.
Non-React v2 APIcreateCollaboration()Factory function that creates a CollaborationManager, initializes the CRDT store, and returns a ready-to-use instance.
manager.createExtension()Returns a single TipTap Extension that bundles Yjs document binding and remote cursor rendering. Non-React only — the React hook returns the extension directly.
CollaborationManager MethodsShared methods available on theCollaborationManager instance. In React, access via manager from the useCollaboration hook. In non-React, the manager is returned by createCollaboration().
manager.onStatusChange()Subscribe to connection status changes.
manager.onSynced()Subscribe to sync state changes.
manager.initializedWhether initialization has completed.
manager.syncedWhether initial sync with the backend has completed.
manager.statusCurrent connection status.
manager.saveVersion()Save a named snapshot of the document state. Returns the version ID.
manager.getVersions()List all saved versions.
manager.restoreVersion()Restore to a saved version. Returnstrue on success.
manager.setStateFromVersion()Apply a Version object’s state locally to the current document.
manager.getDoc()Get the underlying Yjs document.
manager.getXmlFragment()Get the XmlFragment bound to TipTap content.
manager.getProvider()Get the sync provider.
manager.getAwareness()Get the Yjs Awareness instance.
manager.getStore()Get the core CRDT Store from the CollaborationManager.
manager.destroy()Full cleanup of the CollaborationManager (automatic on unmount).
v1 API (deprecated)The v1 API is deprecated. Use useCollaboration() (React) or createCollaboration() (non-React) for all new integrations.useVeltTiptapCrdtExtension() (deprecated)Legacy React hook for collaborative Tiptap editing. Internally delegates touseCollaboration via a compatibility wrapper.
createVeltTiptapCrdtExtension() (deprecated)Legacy non-React function for collaborative Tiptap editing using a callback-based pattern.
createVeltTipTapStore() (deprecated)Legacy factory to create and initialize a collaborative Tiptap store instance.
store.getCollabExtension() (deprecated)Get the Tiptap collaboration extension bound to the current Yjs document.
store.getStore() (deprecated)Access the underlying CRDT store managing document state.
store.destroy() (deprecated)Tear down the store and clean up listeners/resources.
store.getYDoc() (deprecated)Accessor for the underlying Yjs document.
store.getYXml() (deprecated)Accessor for the XML fragment in the Yjs document.
store.setStateFromVersion() (deprecated)Restores the document to a specific version state.
CoreClientinitConfig()Set up initial configurations for the Velt SDK.
getVeltInitState()Subscribe to detect whether Velt is initialized.
get Velt ClientAccess the core Velt client instance to call SDK APIs and subscribe to core events.
getMetadata()Get the currently set organization, document and location objects.
getUserPermissions()Get the current user’s access roles across organization, folder, and document scopes.
errorCode from the UserPermissionAccessRoleResult enum:
getCurrentUserPermissions()Subscribe to current user permissions updates. Returns real-time permission changes for the authenticated user across organization, folder, and document scopes. Useful for debugging and developer tools integration.
getHeartbeat()Subscribe to user-specific heartbeat data. Retrieve heartbeat data for the current user or specify a userId to monitor heartbeats for any user.
enableFirestorePersistentCache()Enable Firestore offline persistence and multi-tab synchronization. Call beforeidentify() to activate offline reads.
disableFirestorePersistentCache()Disable Firestore offline persistence and revert to the default non-persistent mode.
Authenticationidentify()Authenticate the client’s user with the Velt SDK. When called with organization change, previous document is set unlesssetDocuments() is explicitly called.
setPermissionProvider()Configure Permission Provider for real-time access validation. Supports a client-side dev resolver for local testing via thedev, endpointConfig, resolvePermissions, and resolveTimeout fields on VeltPermissionProvider.
signOutUser()To sign out a user.
getUser()Get the current authenticated user in Velt.
getCurrentUser()Subscribe to changes in the current user object.
Collaborationv2 React APIuseStore()React hook that creates and manages a CRDT store with reactive value, status, and version management.
useAwareness()React hook for reactive Yjs Awareness state (remote peers and local state).
Non-React APIcreateVeltStore()Create and initialize a collaborative CRDT store instance.
Store Methodsupdate()Update the store value.
getValue()Get the current store value.
subscribe()Subscribe to store updates.
getDoc()Get the underlying Yjs document.
getProvider()Get the provider instance for the store.
getText()Get the Y.Text instance if store type is ‘text’.
getXml()Get the Y.XmlFragment instance if store type is ‘xml’.
getAwareness()Get the Awareness instance for cursor/presence tracking.
destroy()Destroy the store, cleaning up resources and listeners.
Version MethodssaveVersion()Save the current state as a named version.
getVersions()Retrieve all saved versions.
getVersionById()Fetch a specific version by ID.
restoreVersion()Restore the store to a specific version by ID.
setStateFromVersion()Restore the state from a given version.
v1 React API (deprecated)The v1 useVeltCrdtStore hook is deprecated. Use useStore() for all new React integrations.useVeltCrdtStore() (deprecated)Legacy React Hook to create and sync a CRDT store. Internally delegates touseStore via a compatibility wrapper.
enableWebhook()Enable webhook notifications for CRDT data changes.
disableWebhook()Disable webhook notifications for CRDT data changes.
setWebhookDebounceTime()Configure webhook debounce interval (minimum 5000ms).
setActivityDebounceTime()Set how long CRDT editor keystrokes are batched before a single activity log record is flushed. Default: 10 minutes. Minimum: 10 seconds (10,000 ms).
getCrdtElement()Get the CRDT element instance from the client.
Message StreampushMessage()Push a raw Yjs message into the unified message stream for a document.
onMessage()Subscribe to incoming messages on the unified message stream. Returns an unsubscribe function.
getMessages()Retrieve historical messages from the unified message stream.
getSnapshot()Retrieve the latest CRDT state snapshot for a document.
saveSnapshot()Persist a CRDT state snapshot for a document.
pruneMessages()Delete historical messages older than a given timestamp from the message stream.
useCrdtUtils()React Hook to access CRDT utility methods.
useCrdtEventCallback()React Hook to subscribe to CRDT events.
Debug InfofetchDebugInfo()Retrieve debug information about the current Velt SDK state as a one-time fetch. Returns a Promise that resolves with comprehensive debug data including SDK version, API key, and server/client state metadata.
getDebugInfo()Subscribe to debug information updates about the current Velt SDK state. Returns an Observable that emits debug data whenever the SDK state changes.
FoldersfetchFolders()Fetch folder metadata and subfolders by organizationId, folderId with pagination.
DocumentssetDocuments()Initialize and subscribe to multiple Documents at once.
Behavior Update: This method now filters out documents the user doesn’t have access to instead of failing the entire operation. When using the allDocuments flag with a folder, only the first 50 documents are retrieved, and any inaccessible documents are automatically filtered out.Behavior Update: Calling this method again with the same documents and options is ignored. Repeated calls on every render no longer re-initialize documents or refetch comments. Passing a different set of documents re-runs, including when you narrow the set. An identical repeat does no work, so it does not refresh permissions. setDocument()Initialize and subscribe to a single Document.
setRootDocument()Set a different document as the root document when multiple documents are active.
unsetDocuments()Use this to unsubscribe from all documents at once.
fetchDocuments()Fetch document metadata byorganizationId, folderId, or specific documentIds. Supports pagination.
updateDocuments()Update document metadata by organizationId, folderId or documentIds.
Page InfosetPageInfo()Set custom page info (URL, title, path, etc.) used for all newly created data — comments, reactions, recordings, presence, cursors. Existing saved data is not affected.
clearPageInfo()Clear custom page info and revert to the SDK’s automatic browser-derived page info for newly created data.
LocationsetLocation()Set the current location context. Used to define specific areas within a document.
setLocations()Initialize multiple locations at once. By default, this replaces the existing additional locations. PassappendLocation: true to append instead.
setRootLocation()Set a different location as the root location when multiple locations are active.
removeLocations()Remove multiple locations. A location matches by itsid, even if you set it with more fields.
unsetLocationsIds()Unset locations by ids or all of them if you don’t specify any parameters.
Event Subscriptionon()Subscribe to Velt core events
Self HostingsetDataProviders()Set the data providers for self hosting data.
setAnonymousUserDataProvider()Register a provider to resolve email → userId mappings for anonymous users tagged by email in comments.
UIsetUiState()Set custom state data that can be used in Velt wireframes, Velt if and Velt data components.
getUiState()Get the custom UI state data.
injectCustomCss()To inject custom CSS within Components with Shadow DOM enabled.
setUnstyledMode()Toggle Velt’s built-in visual styling for headless use. Reversible at any time; applies to styles in the page head and shadow roots, including styles injected later.
removeVeltContent()To remove Velt specific content from provided html content. This is useful when using Velt on a text editor or editable element.
resetVeltButtonState()Reset the state of Velt Button components.
Feature UtilitiesIn the modular SDK everygetXElement() accessor returns a non-blocking lazy facade that kicks off the feature chunk load and returns immediately, preserving the synchronous, never-null contract. Calls made before the chunk finishes are bridged: void methods are queued and flushed once the chunk loads; promise-returning methods await the chunk load then delegate with the original args; on(...)/observable methods return a ReplaySubject(1)-backed proxy stream that bridges once the chunk lands, so subscribing early still delivers events. Each accessor also auto-enables its feature (ensureFeatureEnabled). Return types and method surfaces are unchanged, so existing code compiles and runs as-is.
getPresenceElement()Get the Presence Element Object to access the raw presence data.
getCursorElement()Get the Cursor Element Object to access the raw cursor data.
getCommentElement()Get the Comment Element Object to access the raw comment data.
getSelectionElement()Get the Selection Object to enable/disable the feature.
getRecorderElement()Get the Recorder Object.
getContactElement()Get the Contact Object.
getRewriterElement()Get the Rewriter Object.
getLiveStateSyncElement()Get the LiveStateSync Object.
getArrowElement()Get the Arrow Object.
getAreaElement()Get the Area Element Object.
getHuddleElement()Get the Huddle Element Object.
getNotificationElement()Get the Notification Element Object.
getReactionElement()Get the Reaction Element Object.
getTagElement()Get the Tag Element Object.
getViewsElement()Get the Views Element Object.
getSuggestionElement()Get the singletonSuggestionElement instance. Repeat calls return the same object.
Feature GatingisUserAllowed$()To check if user is allowed in provided document or not.
disableFeatures()Provide a list of features to disable. Provide an empty array to enable all the features.
isPlanExpired$()To check if plan is expired or not.
Modular SDK / Chunk PreloadingIn the modular SDK each feature is compiled into a lazy chunk fetched on demand. Opt in with theConfig.featureAllowList init option to preload only the listed feature chunks; omitting featureAllowList preserves pre-modular behavior, preloading all chunks in the background. Feature tags placed before their chunk loads render inert and silently upgrade in place once the chunk lands. The preload*() methods are idempotent and non-throwing (they log on failure and resolve). Calling getXElement() or preloadX() for a feature omitted from featureAllowList auto-enables it (ensureFeatureEnabled), so you are never locked out. The tag-only features userInvite, userRequest, and videoPlayer have no element accessor — load them via featureAllowList or the matching preload*().
preloadComment()Eagerly fetches thecomment feature chunk (velt-comment.js) and resolves once it is loaded and its custom elements are registered. Idempotent; never throws.
preloadCursor()Eagerly fetches thecursor feature chunk (velt-cursor.js) and resolves once it is loaded and its custom elements are registered. Idempotent; never throws.
preloadPresence()Eagerly fetches thepresence feature chunk (velt-presence.js) and resolves once it is loaded and its custom elements are registered. Idempotent; never throws.
preloadHuddle()Eagerly fetches thehuddle feature chunk (velt-huddle.js) and resolves once it is loaded and its custom elements are registered. Idempotent; never throws.
preloadRecorder()Eagerly fetches therecorder feature chunk (velt-recorder.js) and resolves once it is loaded and its custom elements are registered (including the transcription/subtitle embed elements, which are folded into the recorder chunk). Idempotent; never throws.
preloadNotification()Eagerly fetches thenotification feature chunk (velt-notification.js) and resolves once it is loaded and its custom elements are registered. Idempotent; never throws.
preloadReaction()Eagerly fetches thereaction feature chunk (velt-reaction.js) and resolves once it is loaded and its custom elements are registered. Idempotent; never throws.
preloadArrow()Eagerly fetches thearrow feature chunk (velt-arrow.js) and resolves once it is loaded and its custom elements are registered. Idempotent; never throws.
preloadTag()Eagerly fetches thetag feature chunk (velt-tag.js) and resolves once it is loaded and its custom elements are registered. Idempotent; never throws.
preloadRewriter()Eagerly fetches therewriter feature chunk (velt-rewriter.js) and resolves once it is loaded and its custom elements are registered. Idempotent; never throws.
preloadSelection()Eagerly fetches theselection feature chunk (velt-selection.js) and resolves once it is loaded and its custom elements are registered. Idempotent; never throws.
preloadArea()Eagerly fetches thearea feature chunk (velt-area.js) and resolves once it is loaded and its custom elements are registered. Idempotent; never throws.
preloadActivity()Eagerly fetches theactivity feature chunk (velt-activity-log.js) and resolves once it is loaded and its custom elements are registered. Idempotent; never throws.
preloadViews()Eagerly fetches theviews feature chunk (velt-views.js) and resolves once it is loaded and its custom elements are registered. Idempotent; never throws.
preloadUserInvite()Eagerly fetches theuserInvite feature chunk (velt-user-invite.js) and resolves once it is loaded and its custom elements are registered. Idempotent; never throws.
preloadUserRequest()Eagerly fetches theuserRequest feature chunk (velt-user-request.js) and resolves once it is loaded and its custom elements are registered. Idempotent; never throws.
preloadVideoPlayer()Eagerly fetches thevideoPlayer feature chunk (velt-video-player.js) and resolves once it is loaded and its custom elements are registered. Idempotent; never throws.
preloadCrdt()Eagerly fetches thecrdt feature chunk (velt-crdt.js) and resolves once it is loaded and its custom elements are registered. Idempotent; never throws.
preloadLiveStateSync()Eagerly fetches theliveStateSync feature chunk (velt-live-state-sync.js) and resolves once it is loaded and its custom elements are registered. Idempotent; never throws.
LocalizationsetLanguage()To set the language.
setTranslations()To set translations for multiple languages.
enableAutoTranslation()To enable automatic translation of text in Velt Components based on User’s language preference.
disableAutoTranslation()To disable automatic translation of text in Velt Components.
DOM ControlsetScrollableElementsIds()Tell us about the scrollable document ids to keep track on its scroll changes.
removeScrollableElementsIds()To remove document params from a User.
SuggestionsMethods on theSuggestionElement singleton returned by client.getSuggestionElement(). Tag DOM targets with data-velt-suggestion-target="<targetId>".
Mode ControlenableSuggestionMode()Turn on suggesting mode; users can propose changes to registered targets. By default (autoCommit: true), every detected edit on a tagged target is committed as a suggestion automatically. Pass { autoCommit: false } for detect-only mode.
disableSuggestionMode()Turn off suggesting mode; targets revert to normal edit behavior. TheautoCommit flag (including an autoCommit: false opt-out) is cleared; re-enabling without config returns to the default auto-commit behavior.
isSuggestionModeEnabled()Synchronously check whether suggestion mode is currently active.
isSuggestionModeEnabled$()Reactively observe suggestion mode state changes.
Target ManagementregisterTarget()Associate a getter function with a target ID so the SDK can snapshot complex (non-primitive) values. Remove the registration withunregisterTarget().
unregisterTarget()Remove a previously registered target and clean up its subscription.
Suggestion LifecyclestartSuggestion()Manually capture a snapshot of a target’s current value to begin a suggestion.
commitSuggestion()Explicitly commit a pending suggestion with a new value. Returns the created suggestion ID.
Querying SuggestionsgetSuggestions()Return all suggestions matching the optional filter synchronously.
getSuggestions$()Reactively observe suggestions matching the optional filter.
getPendingSuggestion()Return the pending suggestion for a specific target, ornull if none exists.
getPendingSuggestion$()Reactively observe the pending suggestion for a specific target.
Event Subscriptionon()Subscribe to a suggestion lifecycle event.
Was this page helpful? |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |