@veltdev/react 1.0.136 → 1.0.138

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.
@@ -40,6 +40,7 @@ export { default as VeltTextCommentToolbarWireframe } from "./VeltTextCommentToo
40
40
  export { default as VeltUserSelectorDropdownWireframe } from "./VeltUserSelectorDropdownWireframe";
41
41
  export { default as VeltAutocompleteOptionWireframe } from "./VeltAutocompleteOptionWireframe";
42
42
  export { default as VeltAutocompleteChipTooltipWireframe } from "./VeltAutocompleteChipTooltipWireframe";
43
+ export { default as VeltCommentBubbleWireframe } from "./VeltCommentBubble";
43
44
  export { default as VeltCommentBubbleAvatar } from "./VeltCommentBubble/VeltCommentBubbleAvatar";
44
45
  export { default as VeltCommentBubbleCommentsCount } from "./VeltCommentBubble/VeltCommentBubbleCommentsCount";
45
46
  export { default as VeltCommentDialogStatusDropdownContent } from "./VeltCommentDialogStatusDropdownContentWireframe/VeltCommentDialogStatusDropdownContentWireframe";
@@ -1,2 +1,2 @@
1
- export declare const VELT_SDK_VERSION = "1.0.153";
1
+ export declare const VELT_SDK_VERSION = "1.0.156";
2
2
  export declare const VELT_SDK_INIT_EVENT = "onVeltInit";
@@ -1,6 +1,6 @@
1
1
  import { EditorAccessTimer, LiveStateSyncElement, User, UserEditorAccess } from "@veltdev/types";
2
2
  export declare function useLiveStateSyncUtils(): LiveStateSyncElement | undefined;
3
- export declare function useLiveStateData(liveStateDataId?: string): any;
3
+ export declare function useLiveStateData(liveStateDataId?: string, listenToNewChangesOnly?: boolean): any;
4
4
  export declare function useSetLiveStateData(liveStateDataId: string, liveStateData: any): any;
5
5
  export declare function useUserEditorState(): UserEditorAccess | null;
6
6
  export declare function useEditor(): User | null;
@@ -12,4 +12,5 @@ export declare function useEditorAccessRequestHandler(): {
12
12
  export declare function useLiveState<T>(liveStateDataId: string, initialValue?: any, options?: {
13
13
  syncDuration?: number;
14
14
  resetLiveState?: boolean;
15
+ listenToNewChangesOnly?: boolean;
15
16
  }): [T, (value: T) => void];
package/index.d.ts CHANGED
@@ -1253,6 +1253,15 @@ interface IVeltCommentBubbleCommentsCountProps extends React.DetailedHTMLProps<R
1253
1253
  }
1254
1254
  declare const VeltCommentBubbleCommentsCount: React.FC<IVeltCommentBubbleCommentsCountProps>;
1255
1255
 
1256
+ interface IVeltCommentBubbleWireframeProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
1257
+ variant?: string;
1258
+ }
1259
+ interface IVeltCommentBubbleWireframe extends React.FC<IVeltCommentBubbleWireframeProps> {
1260
+ Avatar: React.FC<IVeltCommentBubbleAvatarProps>;
1261
+ CommentsCount: React.FC<IVeltCommentBubbleCommentsCountProps>;
1262
+ }
1263
+ declare const VeltCommentBubbleWireframe: IVeltCommentBubbleWireframe;
1264
+
1256
1265
  interface IVeltReactionToolWireframeProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
1257
1266
  variant?: string;
1258
1267
  }
@@ -1369,7 +1378,7 @@ declare function useCursorUsers(): CursorUser[] | null;
1369
1378
  declare function useHuddleUtils(): any | undefined;
1370
1379
 
1371
1380
  declare function useLiveStateSyncUtils(): LiveStateSyncElement | undefined;
1372
- declare function useLiveStateData(liveStateDataId?: string): any;
1381
+ declare function useLiveStateData(liveStateDataId?: string, listenToNewChangesOnly?: boolean): any;
1373
1382
  declare function useSetLiveStateData(liveStateDataId: string, liveStateData: any): any;
1374
1383
  declare function useUserEditorState(): UserEditorAccess | null;
1375
1384
  declare function useEditor(): User | null;
@@ -1381,6 +1390,7 @@ declare function useEditorAccessRequestHandler(): {
1381
1390
  declare function useLiveState<T>(liveStateDataId: string, initialValue?: any, options?: {
1382
1391
  syncDuration?: number;
1383
1392
  resetLiveState?: boolean;
1393
+ listenToNewChangesOnly?: boolean;
1384
1394
  }): [T, (value: T) => void];
1385
1395
 
1386
1396
  declare function usePresenceUtils(): PresenceElement | undefined;
@@ -1417,4 +1427,4 @@ declare const createLiveStateMiddleware: (config?: LiveStateMiddlewareConfig) =>
1417
1427
  updateLiveStateDataId: (newId?: string) => void;
1418
1428
  };
1419
1429
 
1420
- export { SnippylyArrowTool as VeltArrowTool, SnippylyArrows as VeltArrows, VeltAutocomplete, VeltAutocompleteChipTooltipWireframe, VeltAutocompleteOptionWireframe, VeltChartComment, SnippylyCommentBubble as VeltCommentBubble, VeltCommentBubbleAvatar, VeltCommentBubbleCommentsCount, VeltCommentDialogPriorityDropdownContent, VeltCommentDialogPriorityDropdownTrigger, VeltCommentDialogStatusDropdownContent, VeltCommentDialogStatusDropdownTrigger, 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, VeltCommentDialogOptionsDropdownContent as VeltOptionsDropdownContent, VeltCommentDialogOptionsDropdownTrigger as VeltOptionsDropdownTrigger, SnippylyPresence as VeltPresence, SnippylyProvider as VeltProvider, VeltReactionPinTooltipWireframe, VeltReactionPinWireframe, 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, 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, useVeltInitState, useViewsUtils };
1430
+ export { SnippylyArrowTool as VeltArrowTool, SnippylyArrows as VeltArrows, VeltAutocomplete, VeltAutocompleteChipTooltipWireframe, VeltAutocompleteOptionWireframe, VeltChartComment, SnippylyCommentBubble as VeltCommentBubble, VeltCommentBubbleAvatar, VeltCommentBubbleCommentsCount, VeltCommentBubbleWireframe, VeltCommentDialogPriorityDropdownContent, VeltCommentDialogPriorityDropdownTrigger, VeltCommentDialogStatusDropdownContent, VeltCommentDialogStatusDropdownTrigger, 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, VeltCommentDialogOptionsDropdownContent as VeltOptionsDropdownContent, VeltCommentDialogOptionsDropdownTrigger as VeltOptionsDropdownTrigger, SnippylyPresence as VeltPresence, SnippylyProvider as VeltProvider, VeltReactionPinTooltipWireframe, VeltReactionPinWireframe, 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, 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, useVeltInitState, useViewsUtils };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/react",
3
- "version": "1.0.136",
3
+ "version": "1.0.138",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",