@veltdev/react 1.0.129 → 1.0.131

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.
@@ -58,6 +58,7 @@ export interface IVeltCommentsProps extends React.DetailedHTMLProps<React.HTMLAt
58
58
  allowedElementIds?: string[];
59
59
  allowedElementClassNames?: string[];
60
60
  allowedElementQuerySelectors?: string[];
61
+ commentPinHighlighter?: boolean;
61
62
  customReactions?: ReactionMap;
62
63
  onCommentAdd?: Function;
63
64
  onCustomPinInject?: Function;
@@ -65,6 +66,7 @@ export interface IVeltCommentsProps extends React.DetailedHTMLProps<React.HTMLAt
65
66
  onCommentAccept?: Function;
66
67
  onCommentReject?: Function;
67
68
  onSidebarButtonOnCommentDialogClick?: Function;
69
+ onCommentSelectionChange?: Function;
68
70
  customStatus?: {
69
71
  id: string;
70
72
  color: string;
@@ -1,2 +1,2 @@
1
- export declare const VELT_SDK_VERSION = "1.0.146";
1
+ export declare const VELT_SDK_VERSION = "1.0.148";
2
2
  export declare const VELT_SDK_INIT_EVENT = "onVeltInit";
@@ -1,7 +1,8 @@
1
- import { CommentAnnotation, CommentElement, Location } from "@veltdev/types";
1
+ import { CommentAnnotation, CommentElement, Location, CommentSelectionChangeData } from "@veltdev/types";
2
2
  export declare function useCommentUtils(): CommentElement | undefined;
3
3
  export declare function useCommentAnnotations(documentId?: string, location?: Location): CommentAnnotation[] | null;
4
4
  export declare function useCommentModeState(): boolean | undefined;
5
5
  export declare function useCommentAddHandler(): any;
6
6
  export declare function useCommentUpdateHandler(): any;
7
7
  export declare function useCommentDialogSidebarClickHandler(): any;
8
+ export declare function useCommentSelectionChangeHandler(): CommentSelectionChangeData | undefined;
@@ -1,5 +1,5 @@
1
1
  export { useSetLocation, useSetDocumentId, useUnsetDocumentId, useIdentify, useClient, } from './Client';
2
- export { useCommentUtils, useCommentAnnotations, useCommentAddHandler, useCommentModeState, useCommentUpdateHandler, useCommentDialogSidebarClickHandler, } from './CommentElement';
2
+ export { useCommentUtils, useCommentAnnotations, useCommentAddHandler, useCommentModeState, useCommentUpdateHandler, useCommentDialogSidebarClickHandler, useCommentSelectionChangeHandler, } from './CommentElement';
3
3
  export { useCursorUtils, useCursorUsers, } from './CursorElement';
4
4
  export { useHuddleUtils, } from './HuddleElement';
5
5
  export { useLiveStateSyncUtils, useLiveStateData, useSetLiveStateData, useUserEditorState, useEditor, useEditorAccessTimer, useEditorAccessRequestHandler, useLiveState, } from './LiveStateSyncElement';
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, CursorElement, CursorUser, LiveStateSyncElement, UserEditorAccess, EditorAccessTimer, PresenceElement, PresenceUser, RecorderElement, RewriterElement, SelectionElement, TagElement, TagAnnotation, ViewsElement, ViewsByUser, ViewsByDate, NotificationElement, Notification, AutocompleteElement, AutocompleteChipData } from '@veltdev/types';
3
+ import { Config, Velt, ReactionMap, AutocompleteItem, User, Options, Location as Location$1, CommentElement, CommentAnnotation, CommentSelectionChangeData, CursorElement, CursorUser, LiveStateSyncElement, UserEditorAccess, EditorAccessTimer, PresenceElement, PresenceUser, RecorderElement, RewriterElement, SelectionElement, TagElement, TagAnnotation, ViewsElement, ViewsByUser, ViewsByDate, NotificationElement, Notification, AutocompleteElement, AutocompleteChipData } from '@veltdev/types';
4
4
 
5
5
  interface IVeltProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
6
6
  apiKey: string;
@@ -92,6 +92,7 @@ interface IVeltCommentsProps extends React.DetailedHTMLProps<React.HTMLAttribute
92
92
  allowedElementIds?: string[];
93
93
  allowedElementClassNames?: string[];
94
94
  allowedElementQuerySelectors?: string[];
95
+ commentPinHighlighter?: boolean;
95
96
  customReactions?: ReactionMap;
96
97
  onCommentAdd?: Function;
97
98
  onCustomPinInject?: Function;
@@ -99,6 +100,7 @@ interface IVeltCommentsProps extends React.DetailedHTMLProps<React.HTMLAttribute
99
100
  onCommentAccept?: Function;
100
101
  onCommentReject?: Function;
101
102
  onSidebarButtonOnCommentDialogClick?: Function;
103
+ onCommentSelectionChange?: Function;
102
104
  customStatus?: {
103
105
  id: string;
104
106
  color: string;
@@ -1189,6 +1191,7 @@ declare function useCommentModeState(): boolean | undefined;
1189
1191
  declare function useCommentAddHandler(): any;
1190
1192
  declare function useCommentUpdateHandler(): any;
1191
1193
  declare function useCommentDialogSidebarClickHandler(): any;
1194
+ declare function useCommentSelectionChangeHandler(): CommentSelectionChangeData | undefined;
1192
1195
 
1193
1196
  declare function useCursorUtils(): CursorElement | undefined;
1194
1197
  declare function useCursorUsers(): CursorUser[] | null;
@@ -1244,4 +1247,4 @@ declare const createLiveStateMiddleware: (config?: LiveStateMiddlewareConfig) =>
1244
1247
  updateLiveStateDataId: (newId?: string) => void;
1245
1248
  };
1246
1249
 
1247
- export { SnippylyArrowTool as VeltArrowTool, SnippylyArrows as VeltArrows, VeltAutocomplete, VeltAutocompleteChipTooltipWireframe, VeltAutocompleteOptionWireframe, VeltChartComment, SnippylyCommentBubble as VeltCommentBubble, VeltCommentBubbleAvatar, VeltCommentBubbleCommentsCount, VeltCommentDialogWireframe, VeltCommentPinWireframe, VeltCommentPlayerTimeline, VeltCommentThread, SnippylyCommentTool as VeltCommentTool, VeltCommentToolWireframe, SnippylyComments as VeltComments, SnippylyCommentsSidebar as VeltCommentsSidebar, VeltCommentsSidebarWireframe, SnippylyCursor as VeltCursor, VeltHighChartComments, SnippylyHuddle as VeltHuddle, SnippylyHuddleTool as VeltHuddleTool, VeltNivoChartComments, VeltNotificationsHistoryPanel, VeltNotificationsPanel, VeltNotificationsTool, VeltOptionsDropdownContent, VeltOptionsDropdownTrigger, SnippylyPresence as VeltPresence, VeltPriorityDropdownContent, VeltPriorityDropdownTrigger, SnippylyProvider as VeltProvider, VeltReactionPinTooltipWireframe, VeltReactionPinWireframe, VeltReactionToolWireframe, VeltReactionsPanelWireframe, SnippylyRecorderControlPanel as VeltRecorderControlPanel, SnippylyRecorderNotes as VeltRecorderNotes, SnippylyRecorderPlayer as VeltRecorderPlayer, SnippylyRecorderTool as VeltRecorderTool, SnippylySidebarButton as VeltSidebarButton, VeltSidebarButtonWireframe, VeltStatusDropdownContent, VeltStatusDropdownTrigger, 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, useCommentUpdateHandler, useCommentUtils, useCursorUsers, useCursorUtils, useEditor, useEditorAccessRequestHandler, useEditorAccessTimer, useHuddleUtils, useIdentify, useLiveSelectionUtils, useLiveState, useLiveStateData, useLiveStateSyncUtils, useNotificationUtils, useNotificationsData, usePresenceUsers, usePresenceUtils, useRecorderAddHandler, useRecorderUtils, useSetDocumentId, useSetLiveStateData, useSetLocation, useTagAnnotations, useTagUtils, useUniqueViewsByDate, useUniqueViewsByUser, useUnsetDocumentId, useUserEditorState, useVeltClient, useViewsUtils };
1250
+ export { SnippylyArrowTool as VeltArrowTool, SnippylyArrows as VeltArrows, VeltAutocomplete, VeltAutocompleteChipTooltipWireframe, VeltAutocompleteOptionWireframe, VeltChartComment, SnippylyCommentBubble as VeltCommentBubble, VeltCommentBubbleAvatar, VeltCommentBubbleCommentsCount, VeltCommentDialogWireframe, VeltCommentPinWireframe, VeltCommentPlayerTimeline, VeltCommentThread, SnippylyCommentTool as VeltCommentTool, VeltCommentToolWireframe, SnippylyComments as VeltComments, SnippylyCommentsSidebar as VeltCommentsSidebar, VeltCommentsSidebarWireframe, SnippylyCursor as VeltCursor, VeltHighChartComments, SnippylyHuddle as VeltHuddle, SnippylyHuddleTool as VeltHuddleTool, VeltNivoChartComments, VeltNotificationsHistoryPanel, VeltNotificationsPanel, VeltNotificationsTool, VeltOptionsDropdownContent, VeltOptionsDropdownTrigger, SnippylyPresence as VeltPresence, VeltPriorityDropdownContent, VeltPriorityDropdownTrigger, SnippylyProvider as VeltProvider, VeltReactionPinTooltipWireframe, VeltReactionPinWireframe, VeltReactionToolWireframe, VeltReactionsPanelWireframe, SnippylyRecorderControlPanel as VeltRecorderControlPanel, SnippylyRecorderNotes as VeltRecorderNotes, SnippylyRecorderPlayer as VeltRecorderPlayer, SnippylyRecorderTool as VeltRecorderTool, SnippylySidebarButton as VeltSidebarButton, VeltSidebarButtonWireframe, VeltStatusDropdownContent, VeltStatusDropdownTrigger, 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, useCursorUsers, useCursorUtils, useEditor, useEditorAccessRequestHandler, useEditorAccessTimer, useHuddleUtils, useIdentify, useLiveSelectionUtils, useLiveState, useLiveStateData, useLiveStateSyncUtils, useNotificationUtils, useNotificationsData, usePresenceUsers, usePresenceUtils, useRecorderAddHandler, useRecorderUtils, useSetDocumentId, useSetLiveStateData, useSetLocation, useTagAnnotations, useTagUtils, useUniqueViewsByDate, useUniqueViewsByUser, useUnsetDocumentId, useUserEditorState, useVeltClient, useViewsUtils };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/react",
3
- "version": "1.0.129",
3
+ "version": "1.0.131",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",