@veltdev/react 4.7.1 → 4.7.2

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,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare const VELT_SDK_VERSION = "4.7.1";
2
+ export declare const VELT_SDK_VERSION = "4.7.2";
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,10 +1,10 @@
1
- import { Location, User, Options, DocumentMetadata, Document, SetDocumentsRequestOptions, SetLocationsRequestOptions, HeartbeatConfig, GetHeartbeatResponse, GetUserPermissionsResponse } from "@veltdev/types";
1
+ import { Location, User, Options, DocumentMetadata, Document, SetLocationsRequestOptions, HeartbeatConfig, GetHeartbeatResponse, GetUserPermissionsResponse } from "@veltdev/types";
2
2
  export declare function useClient(): any;
3
3
  export declare function useIdentify(user: User, userOptions?: Options): void;
4
4
  export declare function useSetDocument(documentId: string, documentMetadata?: DocumentMetadata): void;
5
5
  export declare function useSetDocumentId(documentId: string): void;
6
6
  export declare function useSetDocuments(): {
7
- setDocuments: (documents: Document[], options?: SetDocumentsRequestOptions) => void;
7
+ setDocuments: (documents: Document[], options?: any) => void;
8
8
  };
9
9
  export declare function useSetRootDocument(): {
10
10
  setRootDocument: (document: Document) => void;
@@ -1,53 +1,53 @@
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 { Attachment, CommentEventTypesMap, CommentRequestQuery, GetCommentAnnotationsCountResponse, GetCommentAnnotationsResponse, RecordedData } from "@veltdev/types";
2
2
  export declare function useAddCommentAnnotation(): {
3
- addCommentAnnotation: (request: AddCommentAnnotationRequest) => Promise<AddCommentAnnotationEvent | null>;
3
+ addCommentAnnotation: (request: AddCommentAnnotationRequest) => Promise<any>;
4
4
  };
5
5
  export declare function useApproveCommentAnnotation(): {
6
- approveCommentAnnotation: (request: ApproveCommentAnnotationRequest) => Promise<ApproveCommentAnnotationEvent | null>;
6
+ approveCommentAnnotation: (request: ApproveCommentAnnotationRequest) => Promise<any>;
7
7
  };
8
8
  export declare function useRejectCommentAnnotation(): {
9
- rejectCommentAnnotation: (request: RejectCommentAnnotationRequest) => Promise<RejectCommentAnnotationEvent | null>;
9
+ rejectCommentAnnotation: (request: RejectCommentAnnotationRequest) => Promise<any>;
10
10
  };
11
11
  export declare function useSubscribeCommentAnnotation(): {
12
- subscribeCommentAnnotation: (request: SubscribeCommentAnnotationRequest) => Promise<SubscribeCommentAnnotationEvent | null>;
12
+ subscribeCommentAnnotation: (request: SubscribeCommentAnnotationRequest) => Promise<any>;
13
13
  };
14
14
  export declare function useUnsubscribeCommentAnnotation(): {
15
- unsubscribeCommentAnnotation: (request: UnsubscribeCommentAnnotationRequest) => Promise<UnsubscribeCommentAnnotationEvent | null>;
15
+ unsubscribeCommentAnnotation: (request: UnsubscribeCommentAnnotationRequest) => Promise<any>;
16
16
  };
17
17
  export declare function useDeleteCommentAnnotation(): {
18
- deleteCommentAnnotation: (request: DeleteCommentAnnotationRequest) => Promise<DeleteCommentAnnotationEvent | null>;
18
+ deleteCommentAnnotation: (request: DeleteCommentAnnotationRequest) => Promise<any>;
19
19
  };
20
20
  export declare function useGetCommentAnnotations(query?: CommentRequestQuery): GetCommentAnnotationsResponse;
21
21
  export declare function useCommentAnnotationsCount(query?: CommentRequestQuery): GetCommentAnnotationsCountResponse;
22
22
  export declare function useAssignUser(): {
23
- assignUser: (request: AssignUserRequest) => Promise<AssignUserEvent | null>;
23
+ assignUser: (request: AssignUserRequest) => Promise<any>;
24
24
  };
25
25
  export declare function useUpdatePriority(): {
26
- updatePriority: (request: UpdatePriorityRequest) => Promise<UpdatePriorityEvent | null>;
26
+ updatePriority: (request: UpdatePriorityRequest) => Promise<any>;
27
27
  };
28
28
  export declare function useUpdateStatus(): {
29
- updateStatus: (request: UpdateStatusRequest) => Promise<UpdateStatusEvent | null>;
29
+ updateStatus: (request: UpdateStatusRequest) => Promise<any>;
30
30
  };
31
31
  export declare function useUpdateAccess(): {
32
- updateAccess: (request: UpdateAccessRequest) => Promise<UpdateAccessEvent | null>;
32
+ updateAccess: (request: UpdateAccessRequest) => Promise<any>;
33
33
  };
34
34
  export declare function useResolveCommentAnnotation(): {
35
- resolveCommentAnnotation: (request: ResolveCommentAnnotationRequest) => Promise<ResolveCommentAnnotationRequest | null>;
35
+ resolveCommentAnnotation: (request: ResolveCommentAnnotationRequest) => Promise<any>;
36
36
  };
37
37
  export declare function useGetLink(): {
38
- getLink: (request: GetLinkRequest) => Promise<GetLinkResponse | null>;
38
+ getLink: (request: GetLinkRequest) => Promise<any>;
39
39
  };
40
40
  export declare function useCopyLink(): {
41
- copyLink: (request: CopyLinkRequest) => Promise<CopyLinkEvent | null>;
41
+ copyLink: (request: CopyLinkRequest) => Promise<any>;
42
42
  };
43
43
  export declare function useAddComment(): {
44
- addComment: (request: AddCommentRequest) => Promise<AddCommentEvent | null>;
44
+ addComment: (request: AddCommentRequest) => Promise<any>;
45
45
  };
46
46
  export declare function useUpdateComment(): {
47
- updateComment: (request: UpdateCommentRequest) => Promise<UpdateCommentEvent | null>;
47
+ updateComment: (request: UpdateCommentRequest) => Promise<any>;
48
48
  };
49
49
  export declare function useDeleteComment(): {
50
- deleteComment: (request: DeleteCommentRequest) => Promise<DeleteCommentEvent | null>;
50
+ deleteComment: (request: DeleteCommentRequest) => Promise<any>;
51
51
  };
52
52
  export declare function useGetComment(): {
53
53
  getComment: (request: GetCommentRequest) => Promise<Comment[]>;
@@ -56,25 +56,25 @@ export declare function useAddAttachment(): {
56
56
  addAttachment: (request: AddAttachmentRequest) => Promise<AddAttachmentResponse[] | null>;
57
57
  };
58
58
  export declare function useDeleteAttachment(): {
59
- deleteAttachment: (request: DeleteAttachmentRequest) => Promise<DeleteAttachmentEvent | null>;
59
+ deleteAttachment: (request: DeleteAttachmentRequest) => Promise<any>;
60
60
  };
61
61
  export declare function useGetAttachment(): {
62
62
  getAttachment: (request: GetAttachmentRequest) => Promise<Attachment[] | null>;
63
63
  };
64
64
  export declare function useDeleteRecording(): {
65
- deleteRecording: (request: DeleteRecordingRequest) => Promise<DeleteRecordingEvent | null>;
65
+ deleteRecording: (request: DeleteRecordingRequest) => Promise<any>;
66
66
  };
67
67
  export declare function useGetRecording(): {
68
68
  getRecording: (request: GetRecordingRequest) => Promise<RecordedData[] | null>;
69
69
  };
70
70
  export declare function useAddReaction(): {
71
- addReaction: (request: AddReactionRequest) => Promise<AddReactionEvent | null>;
71
+ addReaction: (request: AddReactionRequest) => Promise<any>;
72
72
  };
73
73
  export declare function useDeleteReaction(): {
74
- deleteReaction: (request: DeleteReactionRequest) => Promise<DeleteReactionEvent | null>;
74
+ deleteReaction: (request: DeleteReactionRequest) => Promise<any>;
75
75
  };
76
76
  export declare function useToggleReaction(): {
77
- toggleReaction: (request: ToggleReactionRequest) => Promise<ToggleReactionEvent | null>;
77
+ toggleReaction: (request: ToggleReactionRequest) => Promise<any>;
78
78
  };
79
79
  /**
80
80
  * @deprecated Use useCommentEventCallback hook instead.
@@ -1,2 +1,28 @@
1
- declare const loadVelt: (callback: Function, version?: string, staging?: boolean, develop?: boolean, proxyDomain?: string, integrity?: boolean, integrityValue?: string) => void;
1
+ /**
2
+ * Loads the Velt script dynamically and calls the callback when ready.
3
+ * Returns a cleanup function to remove the event listener if component unmounts.
4
+ *
5
+ * ## Issue (Rapid Mount/Unmount with Slow Network)
6
+ *
7
+ * When VeltProvider is rapidly mounted/unmounted (e.g., conditional rendering,
8
+ * React Strict Mode, or route changes) while the Velt script is still loading
9
+ * over a slow network, multiple issues can occur:
10
+ *
11
+ * 1. First component mount creates the script tag and starts loading
12
+ * 2. Component unmounts before script loads (script tag remains in DOM)
13
+ * 3. Second component mount finds existing script tag
14
+ * 4. OLD BEHAVIOR: Immediately triggered callback assuming script was loaded
15
+ * 5. PROBLEM: Script wasn't actually loaded yet (still loading due to network delay)
16
+ * 6. This caused initVelt to run with window.Velt = undefined
17
+ *
18
+ * ## Fix
19
+ *
20
+ * 1. Check if window.Velt exists before triggering callback for existing scripts
21
+ * 2. If script tag exists but window.Velt doesn't, attach a new load event listener
22
+ * 3. Return a cleanup function that removes the event listener when component unmounts
23
+ * 4. This prevents orphaned callbacks from firing on destroyed component instances
24
+ *
25
+ * @returns Cleanup function to remove event listener (call on component unmount)
26
+ */
27
+ declare const loadVelt: (callback: Function, version?: string, staging?: boolean, develop?: boolean, proxyDomain?: string, integrity?: boolean, integrityValue?: string) => (() => void);
2
28
  export default loadVelt;
package/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React$1 from 'react';
3
- import { Config, UserDataProvider, VeltDataProvider, VeltEncryptionProvider, VeltAuthProvider, VeltPermissionProvider, Velt, ContextOptions, ReactionMap, CustomAnnotationDropdownData, AutocompleteData, AutoCompleteScrollConfig, CommentSidebarFilterConfig as CommentSidebarFilterConfig$2, CommentSidebarGroupConfig as CommentSidebarGroupConfig$2, CommentSidebarFilters as CommentSidebarFilters$2, SidebarFilterCriteria, SortOrder, SortBy, RecorderLayoutMode, RecordedData, RecorderMode, CommentAnnotation, NotificationSettingsLayout, NotificationPanelMode, AutocompleteItem, User, Options, DocumentMetadata, Document, SetDocumentsRequestOptions, Location as Location$1, SetLocationsRequestOptions, HeartbeatConfig, GetHeartbeatResponse, GetUserPermissionsResponse, CommentElement, UnreadCommentsCount, CommentAddEventData, CommentUpdateEventData, CommentSelectionChangeData, CommentSidebarCustomActionEventData, AddCommentAnnotationRequest, AddCommentAnnotationEvent, ApproveCommentAnnotationRequest, ApproveCommentAnnotationEvent, RejectCommentAnnotationRequest, RejectCommentAnnotationEvent, SubscribeCommentAnnotationRequest, SubscribeCommentAnnotationEvent, UnsubscribeCommentAnnotationRequest, UnsubscribeCommentAnnotationEvent, DeleteCommentAnnotationRequest, DeleteCommentAnnotationEvent, CommentRequestQuery, GetCommentAnnotationsResponse, GetCommentAnnotationsCountResponse, AssignUserRequest, AssignUserEvent, UpdatePriorityRequest, UpdatePriorityEvent, UpdateStatusRequest, UpdateStatusEvent, UpdateAccessRequest, UpdateAccessEvent, ResolveCommentAnnotationRequest, GetLinkRequest, GetLinkResponse, CopyLinkRequest, CopyLinkEvent, AddCommentRequest, AddCommentEvent, UpdateCommentRequest, UpdateCommentEvent, DeleteCommentRequest, DeleteCommentEvent, GetCommentRequest, AddAttachmentRequest, AddAttachmentResponse, DeleteAttachmentRequest, DeleteAttachmentEvent, GetAttachmentRequest, Attachment, DeleteRecordingRequest, DeleteRecordingEvent, GetRecordingRequest, AddReactionRequest, AddReactionEvent, DeleteReactionRequest, DeleteReactionEvent, ToggleReactionRequest, ToggleReactionEvent, CommentEventTypesMap, CoreEventTypesMap, CursorElement, CursorUser, LiveStateSyncElement, SetLiveStateDataConfig, UserEditorAccess, EditorAccessTimer, ServerConnectionState, LiveStateEventTypesMap, PresenceElement, PresenceUser, PresenceRequestQuery, GetPresenceDataResponse, PresenceEventTypesMap, RecorderElement, RecorderRequestQuery, GetRecordingsResponse, RecorderEventTypesMap, RewriterElement, SelectionElement, LiveSelectionData, TagElement, TagAnnotation, ViewsElement, ViewsByUser, ViewsByDate, NotificationElement, GetNotificationsDataQuery, Notification, NotificationSettingsConfig, NotificationInitialSettingsConfig, NotificationEventTypesMap, AutocompleteElement, AutocompleteChipData, ContactElement, SelectedUserContact, GetContactListResponse, CrdtElement, CrdtEventTypesMap } from '@veltdev/types';
3
+ import { Config, UserDataProvider, VeltDataProvider, VeltEncryptionProvider, VeltAuthProvider, VeltPermissionProvider, Velt, ContextOptions, ReactionMap, CustomAnnotationDropdownData, AutocompleteData, AutoCompleteScrollConfig, CommentSidebarFilterConfig as CommentSidebarFilterConfig$2, CommentSidebarGroupConfig as CommentSidebarGroupConfig$2, CommentSidebarFilters as CommentSidebarFilters$2, SidebarFilterCriteria, SortOrder, SortBy, RecorderLayoutMode, RecordedData, RecorderMode, CommentAnnotation, NotificationSettingsLayout, NotificationPanelMode, AutocompleteItem, User, Options, DocumentMetadata, Document, Location as Location$1, SetLocationsRequestOptions, HeartbeatConfig, GetHeartbeatResponse, GetUserPermissionsResponse, CommentElement, UnreadCommentsCount, CommentAddEventData, CommentUpdateEventData, CommentSelectionChangeData, CommentSidebarCustomActionEventData, CommentRequestQuery, GetCommentAnnotationsResponse, GetCommentAnnotationsCountResponse, Attachment, CommentEventTypesMap, CoreEventTypesMap, CursorElement, CursorUser, LiveStateSyncElement, SetLiveStateDataConfig, UserEditorAccess, EditorAccessTimer, ServerConnectionState, LiveStateEventTypesMap, PresenceElement, PresenceUser, PresenceRequestQuery, GetPresenceDataResponse, PresenceEventTypesMap, RecorderElement, RecorderRequestQuery, GetRecordingsResponse, RecorderEventTypesMap, RewriterElement, SelectionElement, LiveSelectionData, TagElement, TagAnnotation, ViewsElement, ViewsByUser, ViewsByDate, NotificationElement, GetNotificationsDataQuery, Notification, NotificationSettingsConfig, NotificationInitialSettingsConfig, NotificationEventTypesMap, AutocompleteElement, AutocompleteChipData, ContactElement, SelectedUserContact, GetContactListResponse, CrdtElement, CrdtEventTypesMap } from '@veltdev/types';
4
4
 
5
5
  interface IVeltProps extends React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLElement>, HTMLElement> {
6
6
  apiKey: string;
@@ -4363,7 +4363,7 @@ declare function useIdentify(user: User, userOptions?: Options): void;
4363
4363
  declare function useSetDocument(documentId: string, documentMetadata?: DocumentMetadata): void;
4364
4364
  declare function useSetDocumentId(documentId: string): void;
4365
4365
  declare function useSetDocuments(): {
4366
- setDocuments: (documents: Document[], options?: SetDocumentsRequestOptions) => void;
4366
+ setDocuments: (documents: Document[], options?: any) => void;
4367
4367
  };
4368
4368
  declare function useSetRootDocument(): {
4369
4369
  setRootDocument: (document: Document) => void;
@@ -4416,54 +4416,54 @@ declare function useCommentSidebarInit(): CommentSidebarCustomActionEventData |
4416
4416
  declare function useCommentSidebarData(): CommentSidebarCustomActionEventData | null;
4417
4417
 
4418
4418
  declare function useAddCommentAnnotation(): {
4419
- addCommentAnnotation: (request: AddCommentAnnotationRequest) => Promise<AddCommentAnnotationEvent | null>;
4419
+ addCommentAnnotation: (request: AddCommentAnnotationRequest) => Promise<any>;
4420
4420
  };
4421
4421
  declare function useApproveCommentAnnotation(): {
4422
- approveCommentAnnotation: (request: ApproveCommentAnnotationRequest) => Promise<ApproveCommentAnnotationEvent | null>;
4422
+ approveCommentAnnotation: (request: ApproveCommentAnnotationRequest) => Promise<any>;
4423
4423
  };
4424
4424
  declare function useRejectCommentAnnotation(): {
4425
- rejectCommentAnnotation: (request: RejectCommentAnnotationRequest) => Promise<RejectCommentAnnotationEvent | null>;
4425
+ rejectCommentAnnotation: (request: RejectCommentAnnotationRequest) => Promise<any>;
4426
4426
  };
4427
4427
  declare function useSubscribeCommentAnnotation(): {
4428
- subscribeCommentAnnotation: (request: SubscribeCommentAnnotationRequest) => Promise<SubscribeCommentAnnotationEvent | null>;
4428
+ subscribeCommentAnnotation: (request: SubscribeCommentAnnotationRequest) => Promise<any>;
4429
4429
  };
4430
4430
  declare function useUnsubscribeCommentAnnotation(): {
4431
- unsubscribeCommentAnnotation: (request: UnsubscribeCommentAnnotationRequest) => Promise<UnsubscribeCommentAnnotationEvent | null>;
4431
+ unsubscribeCommentAnnotation: (request: UnsubscribeCommentAnnotationRequest) => Promise<any>;
4432
4432
  };
4433
4433
  declare function useDeleteCommentAnnotation(): {
4434
- deleteCommentAnnotation: (request: DeleteCommentAnnotationRequest) => Promise<DeleteCommentAnnotationEvent | null>;
4434
+ deleteCommentAnnotation: (request: DeleteCommentAnnotationRequest) => Promise<any>;
4435
4435
  };
4436
4436
  declare function useGetCommentAnnotations(query?: CommentRequestQuery): GetCommentAnnotationsResponse;
4437
4437
  declare function useCommentAnnotationsCount(query?: CommentRequestQuery): GetCommentAnnotationsCountResponse;
4438
4438
  declare function useAssignUser(): {
4439
- assignUser: (request: AssignUserRequest) => Promise<AssignUserEvent | null>;
4439
+ assignUser: (request: AssignUserRequest) => Promise<any>;
4440
4440
  };
4441
4441
  declare function useUpdatePriority(): {
4442
- updatePriority: (request: UpdatePriorityRequest) => Promise<UpdatePriorityEvent | null>;
4442
+ updatePriority: (request: UpdatePriorityRequest) => Promise<any>;
4443
4443
  };
4444
4444
  declare function useUpdateStatus(): {
4445
- updateStatus: (request: UpdateStatusRequest) => Promise<UpdateStatusEvent | null>;
4445
+ updateStatus: (request: UpdateStatusRequest) => Promise<any>;
4446
4446
  };
4447
4447
  declare function useUpdateAccess(): {
4448
- updateAccess: (request: UpdateAccessRequest) => Promise<UpdateAccessEvent | null>;
4448
+ updateAccess: (request: UpdateAccessRequest) => Promise<any>;
4449
4449
  };
4450
4450
  declare function useResolveCommentAnnotation(): {
4451
- resolveCommentAnnotation: (request: ResolveCommentAnnotationRequest) => Promise<ResolveCommentAnnotationRequest | null>;
4451
+ resolveCommentAnnotation: (request: ResolveCommentAnnotationRequest) => Promise<any>;
4452
4452
  };
4453
4453
  declare function useGetLink(): {
4454
- getLink: (request: GetLinkRequest) => Promise<GetLinkResponse | null>;
4454
+ getLink: (request: GetLinkRequest) => Promise<any>;
4455
4455
  };
4456
4456
  declare function useCopyLink(): {
4457
- copyLink: (request: CopyLinkRequest) => Promise<CopyLinkEvent | null>;
4457
+ copyLink: (request: CopyLinkRequest) => Promise<any>;
4458
4458
  };
4459
4459
  declare function useAddComment(): {
4460
- addComment: (request: AddCommentRequest) => Promise<AddCommentEvent | null>;
4460
+ addComment: (request: AddCommentRequest) => Promise<any>;
4461
4461
  };
4462
4462
  declare function useUpdateComment(): {
4463
- updateComment: (request: UpdateCommentRequest) => Promise<UpdateCommentEvent | null>;
4463
+ updateComment: (request: UpdateCommentRequest) => Promise<any>;
4464
4464
  };
4465
4465
  declare function useDeleteComment(): {
4466
- deleteComment: (request: DeleteCommentRequest) => Promise<DeleteCommentEvent | null>;
4466
+ deleteComment: (request: DeleteCommentRequest) => Promise<any>;
4467
4467
  };
4468
4468
  declare function useGetComment(): {
4469
4469
  getComment: (request: GetCommentRequest) => Promise<Comment[]>;
@@ -4472,25 +4472,25 @@ declare function useAddAttachment(): {
4472
4472
  addAttachment: (request: AddAttachmentRequest) => Promise<AddAttachmentResponse[] | null>;
4473
4473
  };
4474
4474
  declare function useDeleteAttachment(): {
4475
- deleteAttachment: (request: DeleteAttachmentRequest) => Promise<DeleteAttachmentEvent | null>;
4475
+ deleteAttachment: (request: DeleteAttachmentRequest) => Promise<any>;
4476
4476
  };
4477
4477
  declare function useGetAttachment(): {
4478
4478
  getAttachment: (request: GetAttachmentRequest) => Promise<Attachment[] | null>;
4479
4479
  };
4480
4480
  declare function useDeleteRecording(): {
4481
- deleteRecording: (request: DeleteRecordingRequest) => Promise<DeleteRecordingEvent | null>;
4481
+ deleteRecording: (request: DeleteRecordingRequest) => Promise<any>;
4482
4482
  };
4483
4483
  declare function useGetRecording(): {
4484
4484
  getRecording: (request: GetRecordingRequest) => Promise<RecordedData[] | null>;
4485
4485
  };
4486
4486
  declare function useAddReaction(): {
4487
- addReaction: (request: AddReactionRequest) => Promise<AddReactionEvent | null>;
4487
+ addReaction: (request: AddReactionRequest) => Promise<any>;
4488
4488
  };
4489
4489
  declare function useDeleteReaction(): {
4490
- deleteReaction: (request: DeleteReactionRequest) => Promise<DeleteReactionEvent | null>;
4490
+ deleteReaction: (request: DeleteReactionRequest) => Promise<any>;
4491
4491
  };
4492
4492
  declare function useToggleReaction(): {
4493
- toggleReaction: (request: ToggleReactionRequest) => Promise<ToggleReactionEvent | null>;
4493
+ toggleReaction: (request: ToggleReactionRequest) => Promise<any>;
4494
4494
  };
4495
4495
  /**
4496
4496
  * @deprecated Use useCommentEventCallback hook instead.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/react",
3
- "version": "4.7.1",
3
+ "version": "4.7.2",
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": [
@@ -35,7 +35,7 @@
35
35
  "scripts": {
36
36
  "test": "echo \"Error: no test specified\" && exit 1",
37
37
  "version:update": "node ../update-npm-package.mjs",
38
- "publish:sdk": "npm publish --access public"
38
+ "publish:sdk": "npm publish --access public --tag v4-7-2"
39
39
  },
40
40
  "author": "",
41
41
  "license": "ISC",