@veltdev/react 3.0.52 → 3.0.54

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.
@@ -6,6 +6,7 @@ export interface IVeltCommentToolProps extends React.DetailedHTMLProps<React.HTM
6
6
  targetCommentElementId?: string;
7
7
  targetElementId?: string;
8
8
  onCommentModeChange?: Function;
9
+ sourceId?: string;
9
10
  darkMode?: boolean;
10
11
  variant?: string;
11
12
  shadowDom?: boolean;
@@ -1,3 +1,3 @@
1
- export declare const VELT_SDK_VERSION = "3.0.52";
1
+ export declare const VELT_SDK_VERSION = "3.0.54";
2
2
  export declare const VELT_SDK_INIT_EVENT = "onVeltInit";
3
3
  export declare const VELT_TAB_ID = "veltTabId";
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import { Velt } from '@veltdev/types';
3
3
  export declare const VeltContext: import("react").Context<{
4
- client: Velt;
4
+ client: Velt | null;
5
5
  }>;
6
6
  export declare function useVeltClient(): {
7
- client: Velt;
7
+ client: Velt | null;
8
8
  };
@@ -1,4 +1,4 @@
1
- import { CommentAnnotation, CommentElement, Location, CommentSelectionChangeData, CommentSidebarCustomActionEventData } from "@veltdev/types";
1
+ import { CommentAnnotation, CommentElement, Location, CommentSelectionChangeData, CommentSidebarCustomActionEventData, CommentAddEventData, CommentUpdateEventData } from "@veltdev/types";
2
2
  export declare function useCommentUtils(): CommentElement | undefined;
3
3
  export declare function useCommentAnnotations(documentId?: string, location?: Location): CommentAnnotation[] | null | undefined;
4
4
  export declare function useUnreadCommentCountByAnnotationId(annotationId: string): {
@@ -17,8 +17,8 @@ export declare function useUnreadCommentAnnotationCountByLocationId(locationId:
17
17
  count: number;
18
18
  } | null;
19
19
  export declare function useCommentModeState(): boolean | undefined;
20
- export declare function useCommentAddHandler(): any;
21
- export declare function useCommentUpdateHandler(): any;
20
+ export declare function useCommentAddHandler(): CommentAddEventData | undefined;
21
+ export declare function useCommentUpdateHandler(): CommentUpdateEventData | undefined;
22
22
  export declare function useCommentDialogSidebarClickHandler(): any;
23
23
  export declare function useCommentSelectionChangeHandler(): CommentSelectionChangeData | undefined;
24
24
  export declare function useCommentCopyLinkHandler(): {
package/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { Config, Velt, ReactionMap, AutocompleteItem, User, Options, DocumentMetadata, Location as Location$1, CommentElement, CommentAnnotation, CommentSelectionChangeData, CommentSidebarCustomActionEventData, CursorElement, CursorUser, LiveStateSyncElement, UserEditorAccess, EditorAccessTimer, ServerConnectionState, PresenceElement, PresenceUser, RecorderElement, RecordedData, RewriterElement, SelectionElement, LiveSelectionData, TagElement, TagAnnotation, ViewsElement, ViewsByUser, ViewsByDate, NotificationElement, Notification, AutocompleteElement, AutocompleteChipData, ContactElement, SelectedUserContact } from '@veltdev/types';
3
+ import { Config, Velt, ReactionMap, AutocompleteItem, User, Options, DocumentMetadata, Location as Location$1, CommentElement, CommentAnnotation, CommentAddEventData, CommentUpdateEventData, CommentSelectionChangeData, CommentSidebarCustomActionEventData, CursorElement, CursorUser, LiveStateSyncElement, UserEditorAccess, EditorAccessTimer, ServerConnectionState, PresenceElement, PresenceUser, RecorderElement, RecordedData, RewriterElement, SelectionElement, LiveSelectionData, TagElement, TagAnnotation, ViewsElement, ViewsByUser, ViewsByDate, NotificationElement, Notification, AutocompleteElement, AutocompleteChipData, ContactElement, SelectedUserContact } from '@veltdev/types';
4
4
 
5
5
  interface IVeltProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
6
6
  apiKey: string;
@@ -248,6 +248,7 @@ interface IVeltCommentToolProps extends React.DetailedHTMLProps<React.HTMLAttrib
248
248
  targetCommentElementId?: string;
249
249
  targetElementId?: string;
250
250
  onCommentModeChange?: Function;
251
+ sourceId?: string;
251
252
  darkMode?: boolean;
252
253
  variant?: string;
253
254
  shadowDom?: boolean;
@@ -3645,7 +3646,7 @@ interface IVeltTranscriptionWireframe extends React.FC<IVeltTranscriptionWirefra
3645
3646
  declare const VeltTranscriptionWireframe: IVeltTranscriptionWireframe;
3646
3647
 
3647
3648
  declare function useVeltClient(): {
3648
- client: Velt;
3649
+ client: Velt | null;
3649
3650
  };
3650
3651
 
3651
3652
  declare function useClient(): any;
@@ -3674,8 +3675,8 @@ declare function useUnreadCommentAnnotationCountByLocationId(locationId: string)
3674
3675
  count: number;
3675
3676
  } | null;
3676
3677
  declare function useCommentModeState(): boolean | undefined;
3677
- declare function useCommentAddHandler(): any;
3678
- declare function useCommentUpdateHandler(): any;
3678
+ declare function useCommentAddHandler(): CommentAddEventData | undefined;
3679
+ declare function useCommentUpdateHandler(): CommentUpdateEventData | undefined;
3679
3680
  declare function useCommentDialogSidebarClickHandler(): any;
3680
3681
  declare function useCommentSelectionChangeHandler(): CommentSelectionChangeData | undefined;
3681
3682
  declare function useCommentCopyLinkHandler(): {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/react",
3
- "version": "3.0.52",
3
+ "version": "3.0.54",
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": [