@veltdev/react 3.0.52 → 3.0.53
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.
- package/cjs/index.js +5 -5
- package/cjs/index.js.map +1 -1
- package/cjs/types/components/SnippylyCommentTool/SnippylyCommentTool.d.ts +1 -0
- package/cjs/types/constants.d.ts +1 -1
- package/cjs/types/context/SnippylyContext.d.ts +2 -2
- package/cjs/types/hooks/CommentElement.d.ts +3 -3
- package/esm/index.js +5 -5
- package/esm/index.js.map +1 -1
- package/esm/types/components/SnippylyCommentTool/SnippylyCommentTool.d.ts +1 -0
- package/esm/types/constants.d.ts +1 -1
- package/esm/types/context/SnippylyContext.d.ts +2 -2
- package/esm/types/hooks/CommentElement.d.ts +3 -3
- package/index.d.ts +5 -4
- package/package.json +1 -1
package/esm/types/constants.d.ts
CHANGED
|
@@ -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():
|
|
21
|
-
export declare function useCommentUpdateHandler():
|
|
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():
|
|
3678
|
-
declare function useCommentUpdateHandler():
|
|
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.
|
|
3
|
+
"version": "3.0.53",
|
|
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": [
|