@veltdev/react 3.0.40 → 3.0.41
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 +3 -3
- package/cjs/index.js.map +1 -1
- package/cjs/types/components/SnippylyCommentsSidebar/SnippylyCommentsSidebar.d.ts +1 -1
- package/cjs/types/constants.d.ts +1 -1
- package/cjs/types/hooks/CommentElement.d.ts +4 -4
- package/esm/index.js +3 -3
- package/esm/index.js.map +1 -1
- package/esm/types/components/SnippylyCommentsSidebar/SnippylyCommentsSidebar.d.ts +1 -1
- package/esm/types/constants.d.ts +1 -1
- package/esm/types/hooks/CommentElement.d.ts +4 -4
- package/index.d.ts +5 -5
- package/package.json +1 -1
|
@@ -61,7 +61,7 @@ export interface IVeltCommentsSidebarProps {
|
|
|
61
61
|
darkMode?: boolean;
|
|
62
62
|
position?: "right" | "left";
|
|
63
63
|
filterPanelLayout?: 'menu' | 'bottomSheet';
|
|
64
|
-
|
|
64
|
+
customActions?: boolean;
|
|
65
65
|
}
|
|
66
66
|
declare const SnippylyCommentsSidebar: React.FC<IVeltCommentsSidebarProps>;
|
|
67
67
|
export default SnippylyCommentsSidebar;
|
package/esm/types/constants.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommentAnnotation, CommentElement, Location, CommentSelectionChangeData,
|
|
1
|
+
import { CommentAnnotation, CommentElement, Location, CommentSelectionChangeData, CommentSidebarCustomActionEventData } 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): {
|
|
@@ -28,6 +28,6 @@ export declare function useCommentAnnotationById(config: {
|
|
|
28
28
|
annotationId: string;
|
|
29
29
|
documentId?: string;
|
|
30
30
|
}): CommentAnnotation | null | undefined;
|
|
31
|
-
export declare function useCommentSidebarActionButtonClick():
|
|
32
|
-
export declare function useCommentSidebarInit():
|
|
33
|
-
export declare function useCommentSidebarData():
|
|
31
|
+
export declare function useCommentSidebarActionButtonClick(): CommentSidebarCustomActionEventData | null;
|
|
32
|
+
export declare function useCommentSidebarInit(): CommentSidebarCustomActionEventData | null;
|
|
33
|
+
export declare function useCommentSidebarData(): CommentSidebarCustomActionEventData | null;
|
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,
|
|
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, RewriterElement, SelectionElement, 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;
|
|
@@ -232,7 +232,7 @@ interface IVeltCommentsSidebarProps {
|
|
|
232
232
|
darkMode?: boolean;
|
|
233
233
|
position?: "right" | "left";
|
|
234
234
|
filterPanelLayout?: 'menu' | 'bottomSheet';
|
|
235
|
-
|
|
235
|
+
customActions?: boolean;
|
|
236
236
|
}
|
|
237
237
|
declare const SnippylyCommentsSidebar: React.FC<IVeltCommentsSidebarProps>;
|
|
238
238
|
|
|
@@ -2631,9 +2631,9 @@ declare function useCommentAnnotationById(config: {
|
|
|
2631
2631
|
annotationId: string;
|
|
2632
2632
|
documentId?: string;
|
|
2633
2633
|
}): CommentAnnotation | null | undefined;
|
|
2634
|
-
declare function useCommentSidebarActionButtonClick():
|
|
2635
|
-
declare function useCommentSidebarInit():
|
|
2636
|
-
declare function useCommentSidebarData():
|
|
2634
|
+
declare function useCommentSidebarActionButtonClick(): CommentSidebarCustomActionEventData | null;
|
|
2635
|
+
declare function useCommentSidebarInit(): CommentSidebarCustomActionEventData | null;
|
|
2636
|
+
declare function useCommentSidebarData(): CommentSidebarCustomActionEventData | null;
|
|
2637
2637
|
|
|
2638
2638
|
declare function useCursorUtils(): CursorElement | undefined;
|
|
2639
2639
|
declare function useCursorUsers(): CursorUser[] | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/react",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.41",
|
|
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": [
|