@veltdev/react 2.0.27 → 2.0.29

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.
Files changed (22) hide show
  1. package/cjs/index.js +18 -5
  2. package/cjs/index.js.map +1 -1
  3. package/cjs/types/components/SnippylyComments/SnippylyComments.d.ts +1 -0
  4. package/cjs/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCard.d.ts +2 -0
  5. package/cjs/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCardUnread/VeltCommentDialogThreadCardUnread.d.ts +6 -0
  6. package/cjs/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCardUnread/index.d.ts +1 -0
  7. package/cjs/types/constants.d.ts +1 -1
  8. package/cjs/types/hooks/Client.d.ts +2 -1
  9. package/cjs/types/hooks/CommentElement.d.ts +1 -1
  10. package/cjs/types/hooks/index.d.ts +1 -1
  11. package/esm/index.js +18 -6
  12. package/esm/index.js.map +1 -1
  13. package/esm/types/components/SnippylyComments/SnippylyComments.d.ts +1 -0
  14. package/esm/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCard.d.ts +2 -0
  15. package/esm/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCardUnread/VeltCommentDialogThreadCardUnread.d.ts +6 -0
  16. package/esm/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCardUnread/index.d.ts +1 -0
  17. package/esm/types/constants.d.ts +1 -1
  18. package/esm/types/hooks/Client.d.ts +2 -1
  19. package/esm/types/hooks/CommentElement.d.ts +1 -1
  20. package/esm/types/hooks/index.d.ts +1 -1
  21. package/index.d.ts +10 -3
  22. package/package.json +1 -1
@@ -41,6 +41,7 @@ export interface IVeltCommentsProps extends React.DetailedHTMLProps<React.HTMLAt
41
41
  ghostCommentsIndicator?: boolean;
42
42
  commentsOnDom?: boolean;
43
43
  resolvedCommentsOnDom?: boolean;
44
+ bubbleOnHover?: boolean;
44
45
  commentTool?: boolean;
45
46
  sidebarButtonOnCommentDialog?: boolean;
46
47
  deviceIndicatorOnCommentPins?: boolean;
@@ -9,6 +9,7 @@ import { IVeltCommentDialogThreadCardReactionToolProps } from "./VeltCommentDial
9
9
  import { IVeltCommentDialogThreadCardReactionsProps } from "./VeltCommentDialogThreadCardReactions/VeltCommentDialogThreadCardReactions";
10
10
  import { IVeltCommentDialogThreadCardRecordingsProps } from "./VeltCommentDialogThreadCardRecordings/VeltCommentDialogThreadCardRecordings";
11
11
  import { IVeltCommentDialogThreadCardTimeProps } from "./VeltCommentDialogThreadCardTime/VeltCommentDialogThreadCardTime";
12
+ import { IVeltCommentDialogThreadCardUnreadProps } from "./VeltCommentDialogThreadCardUnread/VeltCommentDialogThreadCardUnread";
12
13
  export interface IVeltCommentDialogThreadCardProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
13
14
  variant?: string;
14
15
  }
@@ -23,6 +24,7 @@ export interface IVeltCommentDialogThreadCard extends React.FC<IVeltCommentDialo
23
24
  ReactionTool: React.FC<IVeltCommentDialogThreadCardReactionToolProps>;
24
25
  Recordings: React.FC<IVeltCommentDialogThreadCardRecordingsProps>;
25
26
  Time: React.FC<IVeltCommentDialogThreadCardTimeProps>;
27
+ Unread: React.FC<IVeltCommentDialogThreadCardUnreadProps>;
26
28
  }
27
29
  declare const VeltCommentDialogThreadCard: IVeltCommentDialogThreadCard;
28
30
  export default VeltCommentDialogThreadCard;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export interface IVeltCommentDialogThreadCardUnreadProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
3
+ variant?: string;
4
+ }
5
+ declare const VeltCommentDialogThreadCardUnread: React.FC<IVeltCommentDialogThreadCardUnreadProps>;
6
+ export default VeltCommentDialogThreadCardUnread;
@@ -0,0 +1 @@
1
+ export { default } from "./VeltCommentDialogThreadCardUnread";
@@ -1,3 +1,3 @@
1
- export declare const VELT_SDK_VERSION = "2.0.27";
1
+ export declare const VELT_SDK_VERSION = "2.0.29";
2
2
  export declare const VELT_SDK_INIT_EVENT = "onVeltInit";
3
3
  export declare const VELT_TAB_ID = "veltTabId";
@@ -1,6 +1,7 @@
1
- import { Location, User, Options } from "@veltdev/types";
1
+ import { Location, User, Options, DocumentMetadata } from "@veltdev/types";
2
2
  export declare function useClient(): any;
3
3
  export declare function useIdentify(user: User, userOptions?: Options): void;
4
+ export declare function useSetDocument(documentId: string, documentMetadata?: DocumentMetadata): void;
4
5
  export declare function useSetDocumentId(documentId: string): void;
5
6
  export declare function useUnsetDocumentId(): void;
6
7
  export declare function useSetLocation(location: Location, appendLocation?: boolean): void;
@@ -1,6 +1,6 @@
1
1
  import { CommentAnnotation, CommentElement, Location, CommentSelectionChangeData } from "@veltdev/types";
2
2
  export declare function useCommentUtils(): CommentElement | undefined;
3
- export declare function useCommentAnnotations(documentId?: string, location?: Location): CommentAnnotation[] | null;
3
+ export declare function useCommentAnnotations(documentId?: string, location?: Location): CommentAnnotation[] | null | undefined;
4
4
  export declare function useUnreadCommentCountByAnnotationId(annotationId: string): {
5
5
  count: number;
6
6
  } | null;
@@ -1,4 +1,4 @@
1
- export { useSetLocation, useSetDocumentId, useUnsetDocumentId, useIdentify, useClient, useVeltInitState, } from './Client';
1
+ export { useSetLocation, useSetDocument, useSetDocumentId, useUnsetDocumentId, useIdentify, useClient, useVeltInitState, } from './Client';
2
2
  export { useCommentUtils, useCommentAnnotations, useCommentAddHandler, useCommentModeState, useCommentUpdateHandler, useCommentDialogSidebarClickHandler, useCommentSelectionChangeHandler, useUnreadCommentCountByAnnotationId, useUnreadCommentAnnotationCountOnCurrentDocument, useUnreadCommentCountOnCurrentDocument, useUnreadCommentAnnotationCountByLocationId, useUnreadCommentCountByLocationId, } from './CommentElement';
3
3
  export { useCursorUtils, useCursorUsers, } from './CursorElement';
4
4
  export { useHuddleUtils, } from './HuddleElement';
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, Location as Location$1, CommentElement, CommentAnnotation, CommentSelectionChangeData, CursorElement, CursorUser, LiveStateSyncElement, UserEditorAccess, EditorAccessTimer, ServerConnectionState, PresenceElement, PresenceUser, RecorderElement, RewriterElement, SelectionElement, TagElement, TagAnnotation, ViewsElement, ViewsByUser, ViewsByDate, NotificationElement, Notification, AutocompleteElement, AutocompleteChipData, ContactElement, UserContactSelectedPayload } from '@veltdev/types';
3
+ import { Config, Velt, ReactionMap, AutocompleteItem, User, Options, DocumentMetadata, Location as Location$1, CommentElement, CommentAnnotation, CommentSelectionChangeData, CursorElement, CursorUser, LiveStateSyncElement, UserEditorAccess, EditorAccessTimer, ServerConnectionState, PresenceElement, PresenceUser, RecorderElement, RewriterElement, SelectionElement, TagElement, TagAnnotation, ViewsElement, ViewsByUser, ViewsByDate, NotificationElement, Notification, AutocompleteElement, AutocompleteChipData, ContactElement, UserContactSelectedPayload } from '@veltdev/types';
4
4
 
5
5
  interface IVeltProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
6
6
  apiKey: string;
@@ -77,6 +77,7 @@ interface IVeltCommentsProps extends React.DetailedHTMLProps<React.HTMLAttribute
77
77
  ghostCommentsIndicator?: boolean;
78
78
  commentsOnDom?: boolean;
79
79
  resolvedCommentsOnDom?: boolean;
80
+ bubbleOnHover?: boolean;
80
81
  commentTool?: boolean;
81
82
  sidebarButtonOnCommentDialog?: boolean;
82
83
  deviceIndicatorOnCommentPins?: boolean;
@@ -1004,6 +1005,10 @@ interface IVeltCommentDialogThreadCardTimeProps extends React.DetailedHTMLProps<
1004
1005
  variant?: string;
1005
1006
  }
1006
1007
 
1008
+ interface IVeltCommentDialogThreadCardUnreadProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
1009
+ variant?: string;
1010
+ }
1011
+
1007
1012
  interface IVeltCommentDialogThreadCardProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
1008
1013
  variant?: string;
1009
1014
  }
@@ -1018,6 +1023,7 @@ interface IVeltCommentDialogThreadCard extends React.FC<IVeltCommentDialogThread
1018
1023
  ReactionTool: React.FC<IVeltCommentDialogThreadCardReactionToolProps>;
1019
1024
  Recordings: React.FC<IVeltCommentDialogThreadCardRecordingsProps>;
1020
1025
  Time: React.FC<IVeltCommentDialogThreadCardTimeProps>;
1026
+ Unread: React.FC<IVeltCommentDialogThreadCardUnreadProps>;
1021
1027
  }
1022
1028
 
1023
1029
  interface IVeltCommentDialogThreadsProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
@@ -2006,13 +2012,14 @@ declare function useVeltClient(): {
2006
2012
 
2007
2013
  declare function useClient(): any;
2008
2014
  declare function useIdentify(user: User, userOptions?: Options): void;
2015
+ declare function useSetDocument(documentId: string, documentMetadata?: DocumentMetadata): void;
2009
2016
  declare function useSetDocumentId(documentId: string): void;
2010
2017
  declare function useUnsetDocumentId(): void;
2011
2018
  declare function useSetLocation(location: Location$1, appendLocation?: boolean): void;
2012
2019
  declare function useVeltInitState(): boolean | undefined;
2013
2020
 
2014
2021
  declare function useCommentUtils(): CommentElement | undefined;
2015
- declare function useCommentAnnotations(documentId?: string, location?: Location$1): CommentAnnotation[] | null;
2022
+ declare function useCommentAnnotations(documentId?: string, location?: Location$1): CommentAnnotation[] | null | undefined;
2016
2023
  declare function useUnreadCommentCountByAnnotationId(annotationId: string): {
2017
2024
  count: number;
2018
2025
  } | null;
@@ -2096,4 +2103,4 @@ declare const createLiveStateMiddleware: (config?: LiveStateMiddlewareConfig) =>
2096
2103
  updateLiveStateDataId: (newId?: string) => void;
2097
2104
  };
2098
2105
 
2099
- export { SnippylyArrowTool as VeltArrowTool, SnippylyArrows as VeltArrows, VeltAutocomplete, VeltAutocompleteChipTooltipWireframe, VeltAutocompleteOptionWireframe, VeltCanvasComment, VeltChartComment, SnippylyCommentBubble as VeltCommentBubble, VeltCommentBubbleWireframe, VeltCommentDialogOptionsDropdownContentWireframe, VeltCommentDialogOptionsDropdownTriggerWireframe, VeltCommentDialogPriorityDropdownContentWireframe, VeltCommentDialogPriorityDropdownTriggerWireframe, VeltCommentDialogStatusDropdownContentWireframe, VeltCommentDialogStatusDropdownTriggerWireframe, VeltCommentDialogWireframe, VeltCommentPin, VeltCommentPinWireframe, VeltCommentPlayerTimeline, VeltCommentThread, SnippylyCommentTool as VeltCommentTool, VeltCommentToolWireframe, SnippylyComments as VeltComments, VeltCommentsMinimap, SnippylyCommentsSidebar as VeltCommentsSidebar, VeltCommentsSidebarStatusDropdownWireframe, VeltCommentsSidebarWireframe, SnippylyCursor as VeltCursor, VeltData, VeltHighChartComments, SnippylyHuddle as VeltHuddle, SnippylyHuddleTool as VeltHuddleTool, VeltInlineCommentsSection, VeltInlineCommentsSectionWireframe, VeltNivoChartComments, VeltNotificationsHistoryPanel, VeltNotificationsPanel, VeltNotificationsPanelWireframe, VeltNotificationsTool, VeltNotificationsToolWireframe, SnippylyPresence as VeltPresence, SnippylyProvider as VeltProvider, VeltReactionPinTooltipWireframe, VeltReactionPinWireframe, VeltReactionTool, VeltReactionToolWireframe, VeltReactionsPanelWireframe, SnippylyRecorderControlPanel as VeltRecorderControlPanel, SnippylyRecorderNotes as VeltRecorderNotes, SnippylyRecorderPlayer as VeltRecorderPlayer, SnippylyRecorderTool as VeltRecorderTool, SnippylySidebarButton as VeltSidebarButton, VeltSidebarButtonWireframe, SnippylyTagTool as VeltTagTool, SnippylyTags as VeltTags, VeltTextCommentToolWireframe, VeltTextCommentToolbar as VeltTextCommentToolbarWireframe, SnippylyUserInviteTool as VeltUserInviteTool, SnippylyUserRequestTool as VeltUserRequestTool, VeltUserSelectorDropdown as VeltUserSelectorDropdownWireframe, VeltVideoPlayer, VeltViewAnalytics, VeltWireframe, createLiveStateMiddleware, useAIRewriterUtils, useAutocompleteChipClick, useAutocompleteUtils, useClient, useCommentAddHandler, useCommentAnnotations, useCommentDialogSidebarClickHandler, useCommentModeState, useCommentSelectionChangeHandler, useCommentUpdateHandler, useCommentUtils, useContactSelected, useContactUtils, useCursorUsers, useCursorUtils, useEditor, useEditorAccessRequestHandler, useEditorAccessTimer, useHuddleUtils, useIdentify, useLiveSelectionUtils, useLiveState, useLiveStateData, useLiveStateSyncUtils, useNotificationUtils, useNotificationsData, usePresenceUsers, usePresenceUtils, useRecorderAddHandler, useRecorderUtils, useServerConnectionStateChangeHandler, useSetDocumentId, useSetLiveStateData, useSetLocation, useTagAnnotations, useTagUtils, useUniqueViewsByDate, useUniqueViewsByUser, useUnreadCommentAnnotationCountByLocationId, useUnreadCommentAnnotationCountOnCurrentDocument, useUnreadCommentCountByAnnotationId, useUnreadCommentCountByLocationId, useUnreadCommentCountOnCurrentDocument, useUnsetDocumentId, useUserEditorState, useVeltClient, useVeltInitState, useViewsUtils };
2106
+ export { SnippylyArrowTool as VeltArrowTool, SnippylyArrows as VeltArrows, VeltAutocomplete, VeltAutocompleteChipTooltipWireframe, VeltAutocompleteOptionWireframe, VeltCanvasComment, VeltChartComment, SnippylyCommentBubble as VeltCommentBubble, VeltCommentBubbleWireframe, VeltCommentDialogOptionsDropdownContentWireframe, VeltCommentDialogOptionsDropdownTriggerWireframe, VeltCommentDialogPriorityDropdownContentWireframe, VeltCommentDialogPriorityDropdownTriggerWireframe, VeltCommentDialogStatusDropdownContentWireframe, VeltCommentDialogStatusDropdownTriggerWireframe, VeltCommentDialogWireframe, VeltCommentPin, VeltCommentPinWireframe, VeltCommentPlayerTimeline, VeltCommentThread, SnippylyCommentTool as VeltCommentTool, VeltCommentToolWireframe, SnippylyComments as VeltComments, VeltCommentsMinimap, SnippylyCommentsSidebar as VeltCommentsSidebar, VeltCommentsSidebarStatusDropdownWireframe, VeltCommentsSidebarWireframe, SnippylyCursor as VeltCursor, VeltData, VeltHighChartComments, SnippylyHuddle as VeltHuddle, SnippylyHuddleTool as VeltHuddleTool, VeltInlineCommentsSection, VeltInlineCommentsSectionWireframe, VeltNivoChartComments, VeltNotificationsHistoryPanel, VeltNotificationsPanel, VeltNotificationsPanelWireframe, VeltNotificationsTool, VeltNotificationsToolWireframe, SnippylyPresence as VeltPresence, SnippylyProvider as VeltProvider, VeltReactionPinTooltipWireframe, VeltReactionPinWireframe, VeltReactionTool, VeltReactionToolWireframe, VeltReactionsPanelWireframe, SnippylyRecorderControlPanel as VeltRecorderControlPanel, SnippylyRecorderNotes as VeltRecorderNotes, SnippylyRecorderPlayer as VeltRecorderPlayer, SnippylyRecorderTool as VeltRecorderTool, SnippylySidebarButton as VeltSidebarButton, VeltSidebarButtonWireframe, SnippylyTagTool as VeltTagTool, SnippylyTags as VeltTags, VeltTextCommentToolWireframe, VeltTextCommentToolbar as VeltTextCommentToolbarWireframe, SnippylyUserInviteTool as VeltUserInviteTool, SnippylyUserRequestTool as VeltUserRequestTool, VeltUserSelectorDropdown as VeltUserSelectorDropdownWireframe, VeltVideoPlayer, VeltViewAnalytics, VeltWireframe, createLiveStateMiddleware, useAIRewriterUtils, useAutocompleteChipClick, useAutocompleteUtils, useClient, useCommentAddHandler, useCommentAnnotations, useCommentDialogSidebarClickHandler, useCommentModeState, useCommentSelectionChangeHandler, useCommentUpdateHandler, useCommentUtils, useContactSelected, useContactUtils, useCursorUsers, useCursorUtils, useEditor, useEditorAccessRequestHandler, useEditorAccessTimer, useHuddleUtils, useIdentify, useLiveSelectionUtils, useLiveState, useLiveStateData, useLiveStateSyncUtils, useNotificationUtils, useNotificationsData, usePresenceUsers, usePresenceUtils, useRecorderAddHandler, useRecorderUtils, useServerConnectionStateChangeHandler, useSetDocument, useSetDocumentId, useSetLiveStateData, useSetLocation, useTagAnnotations, useTagUtils, useUniqueViewsByDate, useUniqueViewsByUser, useUnreadCommentAnnotationCountByLocationId, useUnreadCommentAnnotationCountOnCurrentDocument, useUnreadCommentCountByAnnotationId, useUnreadCommentCountByLocationId, useUnreadCommentCountOnCurrentDocument, useUnsetDocumentId, useUserEditorState, useVeltClient, useVeltInitState, useViewsUtils };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/react",
3
- "version": "2.0.27",
3
+ "version": "2.0.29",
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": [