@veltdev/react 3.0.40 → 3.0.42

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.
@@ -61,7 +61,7 @@ export interface IVeltCommentsSidebarProps {
61
61
  darkMode?: boolean;
62
62
  position?: "right" | "left";
63
63
  filterPanelLayout?: 'menu' | 'bottomSheet';
64
- customFilterMode?: boolean;
64
+ customActions?: boolean;
65
65
  }
66
66
  declare const SnippylyCommentsSidebar: React.FC<IVeltCommentsSidebarProps>;
67
67
  export default SnippylyCommentsSidebar;
@@ -1,3 +1,3 @@
1
- export declare const VELT_SDK_VERSION = "3.0.40";
1
+ export declare const VELT_SDK_VERSION = "3.0.42";
2
2
  export declare const VELT_SDK_INIT_EVENT = "onVeltInit";
3
3
  export declare const VELT_TAB_ID = "veltTabId";
@@ -1,4 +1,4 @@
1
- import { CommentAnnotation, CommentElement, Location, CommentSelectionChangeData, CommentSidebarDataConfig } from "@veltdev/types";
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(): CommentSidebarDataConfig | null;
32
- export declare function useCommentSidebarInit(): CommentSidebarDataConfig | null;
33
- export declare function useCommentSidebarData(): CommentSidebarDataConfig | null;
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, CommentSidebarDataConfig, 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';
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
- customFilterMode?: boolean;
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(): CommentSidebarDataConfig | null;
2635
- declare function useCommentSidebarInit(): CommentSidebarDataConfig | null;
2636
- declare function useCommentSidebarData(): CommentSidebarDataConfig | null;
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.40",
3
+ "version": "3.0.42",
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": [