@veltdev/react 6.0.8 → 6.0.9

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.
@@ -1,4 +1,4 @@
1
- import { CrossOrganizationConfig, NotificationPanelMode, NotificationSettingsLayout } from '@veltdev/types';
1
+ import { CrossOrganizationConfig, NotificationPanelMode, NotificationSettingsLayout, UserScopedNotificationsConfig } from '@veltdev/types';
2
2
  import React from 'react';
3
3
  export declare class NotificationTabConfigItem {
4
4
  name?: string;
@@ -25,6 +25,7 @@ export interface IVeltNotificationsPanelProps {
25
25
  enableSettingsAtOrganizationLevel?: boolean;
26
26
  defaultCondition?: boolean;
27
27
  enableCrossOrganization?: boolean | string | CrossOrganizationConfig;
28
+ enableUserScopedNotifications?: boolean | string | UserScopedNotificationsConfig;
28
29
  }
29
30
  declare const VeltNotificationsPanel: React.FC<IVeltNotificationsPanelProps>;
30
31
  export default VeltNotificationsPanel;
@@ -1,4 +1,4 @@
1
- import { CrossOrganizationConfig, NotificationSettingsLayout } from '@veltdev/types';
1
+ import { CrossOrganizationConfig, NotificationSettingsLayout, UserScopedNotificationsConfig } from '@veltdev/types';
2
2
  import React from 'react';
3
3
  export declare class NotificationTabConfigItem {
4
4
  name?: string;
@@ -29,6 +29,7 @@ export interface IVeltNotificationsToolProps extends React.DetailedHTMLProps<Rea
29
29
  enableSettingsAtOrganizationLevel?: boolean;
30
30
  defaultCondition?: boolean;
31
31
  enableCrossOrganization?: boolean | string | CrossOrganizationConfig;
32
+ enableUserScopedNotifications?: boolean | string | UserScopedNotificationsConfig;
32
33
  }
33
34
  declare const VeltNotificationsTool: React.FC<IVeltNotificationsToolProps>;
34
35
  export default VeltNotificationsTool;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare const VELT_SDK_VERSION = "6.0.8";
2
+ export declare const VELT_SDK_VERSION = "6.0.9";
3
3
  export declare const VELT_SDK_INIT_EVENT = "onVeltInit";
4
4
  export declare const VELT_TAB_ID = "veltTabId";
5
5
  export declare const INTEGRITY_MAP: Record<string, string>;
@@ -1,4 +1,4 @@
1
- import { AddAttachmentRequest, AddAttachmentResponse, AddCommentAnnotationEvent, AddCommentAnnotationRequest, AddCommentEvent, AddCommentRequest, AddReactionEvent, AddReactionRequest, ApproveCommentAnnotationEvent, ApproveCommentAnnotationRequest, AssignUserEvent, AssignUserRequest, Attachment, CommentEventTypesMap, CommentRequestQuery, CopyLinkEvent, CopyLinkRequest, DeleteAttachmentEvent, DeleteAttachmentRequest, DeleteCommentAnnotationEvent, DeleteCommentAnnotationRequest, DeleteCommentEvent, DeleteCommentRequest, DeleteReactionEvent, DeleteReactionRequest, DeleteRecordingEvent, DeleteRecordingRequest, GetAttachmentRequest, GetCommentAnnotationsCountResponse, GetCommentAnnotationsResponse, GetCommentRequest, GetLinkRequest, GetLinkResponse, GetRecordingRequest, RecordedData, RejectCommentAnnotationEvent, RejectCommentAnnotationRequest, ResolveCommentAnnotationRequest, SubscribeCommentAnnotationEvent, SubscribeCommentAnnotationRequest, ToggleReactionEvent, ToggleReactionRequest, UnsubscribeCommentAnnotationEvent, UnsubscribeCommentAnnotationRequest, UpdateAccessEvent, UpdateAccessRequest, UpdateCommentEvent, UpdateCommentRequest, UpdatePriorityEvent, UpdatePriorityRequest, UpdateStatusEvent, UpdateStatusRequest } from "@veltdev/types";
1
+ import { AddAttachmentRequest, AddAttachmentResponse, AddCommentAnnotationEvent, AddCommentAnnotationRequest, AddCommentEvent, AddCommentRequest, AddReactionEvent, AddReactionRequest, ApproveCommentAnnotationEvent, ApproveCommentAnnotationRequest, AssignUserEvent, AssignUserRequest, Attachment, CommentEventTypesMap, CommentRequestQuery, CopyLinkEvent, CopyLinkRequest, DeleteAttachmentEvent, DeleteAttachmentRequest, DeleteCommentAnnotationEvent, DeleteCommentAnnotationRequest, DeleteCommentEvent, DeleteCommentRequest, DeleteReactionEvent, DeleteReactionRequest, DeleteRecordingEvent, DeleteRecordingRequest, GetAttachmentRequest, GetCommentAnnotationsCountResponse, GetCommentAnnotationsResponse, GetCommentRequest, GetLinkRequest, GetLinkResponse, GetRecordingRequest, RecordedData, RejectCommentAnnotationEvent, RejectCommentAnnotationRequest, ResolveCommentAnnotationRequest, AcceptSuggestionRequest, RejectSuggestionRequest, SuggestionAcceptEvent, SuggestionRejectEvent, SubscribeCommentAnnotationEvent, SubscribeCommentAnnotationRequest, ToggleReactionEvent, ToggleReactionRequest, UnsubscribeCommentAnnotationEvent, UnsubscribeCommentAnnotationRequest, UpdateAccessEvent, UpdateAccessRequest, UpdateCommentEvent, UpdateCommentRequest, UpdatePriorityEvent, UpdatePriorityRequest, UpdateStatusEvent, UpdateStatusRequest } from "@veltdev/types";
2
2
  export declare function useAddCommentAnnotation(): {
3
3
  addCommentAnnotation: (request: AddCommentAnnotationRequest) => Promise<AddCommentAnnotationEvent | null>;
4
4
  };
@@ -8,6 +8,28 @@ export declare function useApproveCommentAnnotation(): {
8
8
  export declare function useRejectCommentAnnotation(): {
9
9
  rejectCommentAnnotation: (request: RejectCommentAnnotationRequest) => Promise<RejectCommentAnnotationEvent | null>;
10
10
  };
11
+ /**
12
+ * Accept a `type: 'suggestion'` annotation — the same operation the suggestion
13
+ * card's built-in accept button performs.
14
+ *
15
+ * Distinct from `useAcceptCommentAnnotation`, which is the legacy
16
+ * comments-as-suggestions flow: that writes `annotation.status`, this writes
17
+ * `suggestion.status` AND flips `type` to `'comment'`, which is what retires the
18
+ * suggestion card into a normal thread.
19
+ *
20
+ * Needed because customer-defined action chips REPLACE the built-in
21
+ * accept/reject on that card — without this, a customer who declares their own
22
+ * actions has no way to accept or reject from the browser.
23
+ */
24
+ export declare function useAcceptSuggestion(): {
25
+ acceptSuggestion: (request: AcceptSuggestionRequest) => Promise<SuggestionAcceptEvent | null>;
26
+ };
27
+ /**
28
+ * Reject a `type: 'suggestion'` annotation. See {@link useAcceptSuggestion}.
29
+ */
30
+ export declare function useRejectSuggestion(): {
31
+ rejectSuggestion: (request: RejectSuggestionRequest) => Promise<SuggestionRejectEvent | null>;
32
+ };
11
33
  export declare function useSubscribeCommentAnnotation(): {
12
34
  subscribeCommentAnnotation: (request: SubscribeCommentAnnotationRequest) => Promise<SubscribeCommentAnnotationEvent | null>;
13
35
  };
@@ -1,6 +1,6 @@
1
1
  export { useSetLocation, useSetDocument, useSetDocumentId, useSetDocuments, useSetRootDocument, useSetPageInfo, useClearPageInfo, useSetLocations, useSetRootLocation, useUnsetDocumentId, useUnsetDocuments, useIdentify, useClient, useVeltInitState, useUiState, useHeartbeat, useCurrentUser, useCurrentUserPermissions, } from './Client';
2
2
  export { useCommentUtils, useCommentAnnotations, useCommentAddHandler, useCommentModeState, useCommentUpdateHandler, useCommentDialogSidebarClickHandler, useCommentSelectionChangeHandler, useUnreadCommentCountByAnnotationId, useUnreadCommentAnnotationCountOnCurrentDocument, useUnreadCommentCountOnCurrentDocument, useUnreadCommentAnnotationCountByLocationId, useUnreadCommentCountByLocationId, useCommentCopyLinkHandler, useCommentAnnotationById, useCommentSidebarActionButtonClick, useCommentSidebarInit, useCommentSidebarData, useSetContextProvider, } from './CommentElement';
3
- export { useAddAttachment, useDeleteAttachment, useGetAttachment, useDeleteRecording, useGetRecording, useAddReaction, useDeleteReaction, useToggleReaction, useAddComment, useUpdateComment, useDeleteComment, useAddCommentAnnotation, useDeleteCommentAnnotation, useApproveCommentAnnotation, useSubscribeCommentAnnotation, useUnsubscribeCommentAnnotation, useAssignUser, useCopyLink, useGetComment, useGetLink, useRejectCommentAnnotation, useResolveCommentAnnotation, useUpdateAccess, useUpdatePriority, useUpdateStatus, useCommentActionCallback, useCommentEventCallback, useGetCommentAnnotations, useCommentAnnotationsCount, } from './CommentActions';
3
+ export { useAddAttachment, useDeleteAttachment, useGetAttachment, useDeleteRecording, useGetRecording, useAddReaction, useDeleteReaction, useToggleReaction, useAddComment, useUpdateComment, useDeleteComment, useAddCommentAnnotation, useDeleteCommentAnnotation, useApproveCommentAnnotation, useSubscribeCommentAnnotation, useUnsubscribeCommentAnnotation, useAssignUser, useCopyLink, useGetComment, useGetLink, useRejectCommentAnnotation, useAcceptSuggestion, useRejectSuggestion, useResolveCommentAnnotation, useUpdateAccess, useUpdatePriority, useUpdateStatus, useCommentActionCallback, useCommentEventCallback, useGetCommentAnnotations, useCommentAnnotationsCount, } from './CommentActions';
4
4
  export { useVeltEventCallback } from './CoreActions';
5
5
  export { useCursorUtils, useCursorUsers, } from './CursorElement';
6
6
  export { useHuddleUtils, } from './HuddleElement';
package/cjs/index.js CHANGED
@@ -212,13 +212,13 @@ var loadVelt = function (callback, version, staging, develop, proxyDomain, integ
212
212
  };
213
213
  };
214
214
 
215
- var VELT_SDK_VERSION = '6.0.8';
215
+ var VELT_SDK_VERSION = '6.0.9';
216
216
  var VELT_SDK_INIT_EVENT = 'onVeltInit';
217
217
  var VELT_TAB_ID = 'veltTabId';
218
218
  // integrity map for the Velt SDK
219
219
  // Note: generate integrity hashes with: https://www.srihash.org/
220
220
  var INTEGRITY_MAP = {
221
- '6.0.8': 'sha384-0cnt2EDYR3gsne7t06oOZYienOD77qpk8fWokFz8qvNLN0h0Lf5ZvQGqqc7uxAE9',
221
+ '6.0.9': 'sha384-sXcl87L0neecQKa3PiDXUgTbZFF3jkuby1mvIgIn0zKU2YbODHgm0uWJ3EHQig2q',
222
222
  };
223
223
 
224
224
  var validProps = ['veltIf', 'veltClass', 'className', 'variant'];
@@ -1157,7 +1157,7 @@ var VeltCommentThread = function (props) {
1157
1157
  };
1158
1158
 
1159
1159
  var VeltNotificationsTool = function (props) {
1160
- var children = props.children, darkMode = props.darkMode, onNotificationClick = props.onNotificationClick, shadowDom = props.shadowDom, panelShadowDom = props.panelShadowDom, variant = props.variant, maxDays = props.maxDays, tabConfig = props.tabConfig, panelOpenMode = props.panelOpenMode, panelVariant = props.panelVariant, readNotificationsOnForYouTab = props.readNotificationsOnForYouTab, settings = props.settings, selfNotifications = props.selfNotifications, considerAllNotifications = props.considerAllNotifications, pageSize = props.pageSize, settingsLayout = props.settingsLayout, enableSettingsAtOrganizationLevel = props.enableSettingsAtOrganizationLevel, defaultCondition = props.defaultCondition, enableCrossOrganization = props.enableCrossOrganization;
1160
+ var children = props.children, darkMode = props.darkMode, onNotificationClick = props.onNotificationClick, shadowDom = props.shadowDom, panelShadowDom = props.panelShadowDom, variant = props.variant, maxDays = props.maxDays, tabConfig = props.tabConfig, panelOpenMode = props.panelOpenMode, panelVariant = props.panelVariant, readNotificationsOnForYouTab = props.readNotificationsOnForYouTab, settings = props.settings, selfNotifications = props.selfNotifications, considerAllNotifications = props.considerAllNotifications, pageSize = props.pageSize, settingsLayout = props.settingsLayout, enableSettingsAtOrganizationLevel = props.enableSettingsAtOrganizationLevel, defaultCondition = props.defaultCondition, enableCrossOrganization = props.enableCrossOrganization, enableUserScopedNotifications = props.enableUserScopedNotifications;
1161
1161
  var ref = React.useRef();
1162
1162
  var onNotificationClickRef = React.useRef(onNotificationClick);
1163
1163
  // Update the ref to always point to the latest callback function
@@ -1200,7 +1200,24 @@ var VeltNotificationsTool = function (props) {
1200
1200
  return undefined;
1201
1201
  }
1202
1202
  }, [enableCrossOrganization]);
1203
- return (React__default["default"].createElement("velt-notifications-tool", { ref: ref, "panel-open-mode": panelOpenMode, "panel-variant": panelVariant, "tab-config": JSON.stringify(tabConfig), variant: variant, "max-days": (maxDays && maxDays > 0) ? maxDays + '' : undefined, "panel-shadow-dom": [true, false].includes(panelShadowDom) ? (panelShadowDom ? 'true' : 'false') : undefined, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined, settings: [true, false].includes(settings) ? (settings ? 'true' : 'false') : undefined, "self-notifications": [true, false].includes(selfNotifications) ? (selfNotifications ? 'true' : 'false') : undefined, "read-notifications-on-for-you-tab": [true, false].includes(readNotificationsOnForYouTab) ? (readNotificationsOnForYouTab ? 'true' : 'false') : undefined, "consider-all-notifications": [true, false].includes(considerAllNotifications) ? (considerAllNotifications ? 'true' : 'false') : undefined, "page-size": (pageSize && pageSize > 0) ? pageSize + '' : undefined, "settings-layout": settingsLayout, "enable-settings-at-organization-level": [true, false].includes(enableSettingsAtOrganizationLevel) ? (enableSettingsAtOrganizationLevel ? 'true' : 'false') : undefined, "default-condition": [true, false].includes(defaultCondition) ? (defaultCondition ? 'true' : 'false') : undefined, "enable-cross-organization": enableCrossOrganizationValue }, children));
1203
+ var enableUserScopedNotificationsValue = React.useMemo(function () {
1204
+ try {
1205
+ if (typeof enableUserScopedNotifications === 'boolean') {
1206
+ return enableUserScopedNotifications ? 'true' : 'false';
1207
+ }
1208
+ else if (typeof enableUserScopedNotifications === 'string') {
1209
+ return enableUserScopedNotifications;
1210
+ }
1211
+ else if (typeof enableUserScopedNotifications === 'object') {
1212
+ return JSON.stringify(enableUserScopedNotifications);
1213
+ }
1214
+ return undefined;
1215
+ }
1216
+ catch (error) {
1217
+ return undefined;
1218
+ }
1219
+ }, [enableUserScopedNotifications]);
1220
+ return (React__default["default"].createElement("velt-notifications-tool", { ref: ref, "panel-open-mode": panelOpenMode, "panel-variant": panelVariant, "tab-config": JSON.stringify(tabConfig), variant: variant, "max-days": (maxDays && maxDays > 0) ? maxDays + '' : undefined, "panel-shadow-dom": [true, false].includes(panelShadowDom) ? (panelShadowDom ? 'true' : 'false') : undefined, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined, settings: [true, false].includes(settings) ? (settings ? 'true' : 'false') : undefined, "self-notifications": [true, false].includes(selfNotifications) ? (selfNotifications ? 'true' : 'false') : undefined, "read-notifications-on-for-you-tab": [true, false].includes(readNotificationsOnForYouTab) ? (readNotificationsOnForYouTab ? 'true' : 'false') : undefined, "consider-all-notifications": [true, false].includes(considerAllNotifications) ? (considerAllNotifications ? 'true' : 'false') : undefined, "page-size": (pageSize && pageSize > 0) ? pageSize + '' : undefined, "settings-layout": settingsLayout, "enable-settings-at-organization-level": [true, false].includes(enableSettingsAtOrganizationLevel) ? (enableSettingsAtOrganizationLevel ? 'true' : 'false') : undefined, "default-condition": [true, false].includes(defaultCondition) ? (defaultCondition ? 'true' : 'false') : undefined, "enable-cross-organization": enableCrossOrganizationValue, "enable-user-scoped-notifications": enableUserScopedNotificationsValue }, children));
1204
1221
  };
1205
1222
 
1206
1223
  var VeltNotificationsToolIcon = function (props) {
@@ -1228,7 +1245,7 @@ var VeltNotificationsToolUnreadCount = function (props) {
1228
1245
  };
1229
1246
 
1230
1247
  var VeltNotificationsPanel = function (props) {
1231
- var darkMode = props.darkMode, onNotificationClick = props.onNotificationClick, shadowDom = props.shadowDom, tabConfig = props.tabConfig, variant = props.variant, readNotificationsOnForYouTab = props.readNotificationsOnForYouTab, panelOpenMode = props.panelOpenMode, settings = props.settings, selfNotifications = props.selfNotifications, pageSize = props.pageSize, settingsLayout = props.settingsLayout, enableSettingsAtOrganizationLevel = props.enableSettingsAtOrganizationLevel, defaultCondition = props.defaultCondition, enableCrossOrganization = props.enableCrossOrganization;
1248
+ var darkMode = props.darkMode, onNotificationClick = props.onNotificationClick, shadowDom = props.shadowDom, tabConfig = props.tabConfig, variant = props.variant, readNotificationsOnForYouTab = props.readNotificationsOnForYouTab, panelOpenMode = props.panelOpenMode, settings = props.settings, selfNotifications = props.selfNotifications, pageSize = props.pageSize, settingsLayout = props.settingsLayout, enableSettingsAtOrganizationLevel = props.enableSettingsAtOrganizationLevel, defaultCondition = props.defaultCondition, enableCrossOrganization = props.enableCrossOrganization, enableUserScopedNotifications = props.enableUserScopedNotifications;
1232
1249
  var ref = React.useRef();
1233
1250
  var onNotificationClickRef = React.useRef(onNotificationClick);
1234
1251
  // Update the ref to always point to the latest callback function
@@ -1271,7 +1288,24 @@ var VeltNotificationsPanel = function (props) {
1271
1288
  return undefined;
1272
1289
  }
1273
1290
  }, [enableCrossOrganization]);
1274
- return (React__default["default"].createElement("velt-notifications-panel", { ref: ref, variant: variant, "tab-config": JSON.stringify(tabConfig), "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined, settings: [true, false].includes(settings) ? (settings ? 'true' : 'false') : undefined, "self-notifications": [true, false].includes(selfNotifications) ? (selfNotifications ? 'true' : 'false') : undefined, "read-notifications-on-for-you-tab": [true, false].includes(readNotificationsOnForYouTab) ? (readNotificationsOnForYouTab ? 'true' : 'false') : undefined, "panel-open-mode": panelOpenMode, "page-size": (pageSize && pageSize > 0) ? pageSize + '' : undefined, "settings-layout": settingsLayout, "enable-settings-at-organization-level": [true, false].includes(enableSettingsAtOrganizationLevel) ? (enableSettingsAtOrganizationLevel ? 'true' : 'false') : undefined, "default-condition": [true, false].includes(defaultCondition) ? (defaultCondition ? 'true' : 'false') : undefined, "enable-cross-organization": enableCrossOrganizationValue }));
1291
+ var enableUserScopedNotificationsValue = React.useMemo(function () {
1292
+ try {
1293
+ if (typeof enableUserScopedNotifications === 'boolean') {
1294
+ return enableUserScopedNotifications ? 'true' : 'false';
1295
+ }
1296
+ else if (typeof enableUserScopedNotifications === 'string') {
1297
+ return enableUserScopedNotifications;
1298
+ }
1299
+ else if (typeof enableUserScopedNotifications === 'object') {
1300
+ return JSON.stringify(enableUserScopedNotifications);
1301
+ }
1302
+ return undefined;
1303
+ }
1304
+ catch (error) {
1305
+ return undefined;
1306
+ }
1307
+ }, [enableUserScopedNotifications]);
1308
+ return (React__default["default"].createElement("velt-notifications-panel", { ref: ref, variant: variant, "tab-config": JSON.stringify(tabConfig), "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined, settings: [true, false].includes(settings) ? (settings ? 'true' : 'false') : undefined, "self-notifications": [true, false].includes(selfNotifications) ? (selfNotifications ? 'true' : 'false') : undefined, "read-notifications-on-for-you-tab": [true, false].includes(readNotificationsOnForYouTab) ? (readNotificationsOnForYouTab ? 'true' : 'false') : undefined, "panel-open-mode": panelOpenMode, "page-size": (pageSize && pageSize > 0) ? pageSize + '' : undefined, "settings-layout": settingsLayout, "enable-settings-at-organization-level": [true, false].includes(enableSettingsAtOrganizationLevel) ? (enableSettingsAtOrganizationLevel ? 'true' : 'false') : undefined, "default-condition": [true, false].includes(defaultCondition) ? (defaultCondition ? 'true' : 'false') : undefined, "enable-cross-organization": enableCrossOrganizationValue, "enable-user-scoped-notifications": enableUserScopedNotificationsValue }));
1275
1309
  };
1276
1310
 
1277
1311
  var VeltNotificationsPanelTitle = function (props) {
@@ -10892,6 +10926,46 @@ function useRejectCommentAnnotation() {
10892
10926
  }
10893
10927
  };
10894
10928
  }
10929
+ /**
10930
+ * Accept a `type: 'suggestion'` annotation — the same operation the suggestion
10931
+ * card's built-in accept button performs.
10932
+ *
10933
+ * Distinct from `useAcceptCommentAnnotation`, which is the legacy
10934
+ * comments-as-suggestions flow: that writes `annotation.status`, this writes
10935
+ * `suggestion.status` AND flips `type` to `'comment'`, which is what retires the
10936
+ * suggestion card into a normal thread.
10937
+ *
10938
+ * Needed because customer-defined action chips REPLACE the built-in
10939
+ * accept/reject on that card — without this, a customer who declares their own
10940
+ * actions has no way to accept or reject from the browser.
10941
+ */
10942
+ function useAcceptSuggestion() {
10943
+ var commentElement = useCommentUtils();
10944
+ return {
10945
+ acceptSuggestion: function (request) {
10946
+ return new Promise(function (resolve, reject) {
10947
+ if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.acceptSuggestion))
10948
+ return reject(new Error('Velt SDK is not initialized.'));
10949
+ commentElement.acceptSuggestion(request).then(resolve).catch(reject);
10950
+ });
10951
+ }
10952
+ };
10953
+ }
10954
+ /**
10955
+ * Reject a `type: 'suggestion'` annotation. See {@link useAcceptSuggestion}.
10956
+ */
10957
+ function useRejectSuggestion() {
10958
+ var commentElement = useCommentUtils();
10959
+ return {
10960
+ rejectSuggestion: function (request) {
10961
+ return new Promise(function (resolve, reject) {
10962
+ if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.rejectSuggestion))
10963
+ return reject(new Error('Velt SDK is not initialized.'));
10964
+ commentElement.rejectSuggestion(request).then(resolve).catch(reject);
10965
+ });
10966
+ }
10967
+ };
10968
+ }
10895
10969
  function useSubscribeCommentAnnotation() {
10896
10970
  var commentElement = useCommentUtils();
10897
10971
  return {
@@ -13092,6 +13166,7 @@ exports.VeltViewAnalytics = VeltViewAnalytics;
13092
13166
  exports.VeltWireframe = VeltWireframe;
13093
13167
  exports.createLiveStateMiddleware = createLiveStateMiddleware;
13094
13168
  exports.useAIRewriterUtils = useAIRewriterUtils;
13169
+ exports.useAcceptSuggestion = useAcceptSuggestion;
13095
13170
  exports.useActivityUtils = useActivityUtils;
13096
13171
  exports.useAddAttachment = useAddAttachment;
13097
13172
  exports.useAddComment = useAddComment;
@@ -13170,6 +13245,7 @@ exports.useRecordingDataByRecorderId = useRecordingDataByRecorderId;
13170
13245
  exports.useRecordings = useRecordings;
13171
13246
  exports.useRegisterTarget = useRegisterTarget;
13172
13247
  exports.useRejectCommentAnnotation = useRejectCommentAnnotation;
13248
+ exports.useRejectSuggestion = useRejectSuggestion;
13173
13249
  exports.useResolveCommentAnnotation = useResolveCommentAnnotation;
13174
13250
  exports.useServerConnectionStateChangeHandler = useServerConnectionStateChangeHandler;
13175
13251
  exports.useSetContextProvider = useSetContextProvider;