@veltdev/react 1.0.79 → 1.0.81

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.
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export interface IVeltDocumentViewerTrendProps {
3
+ type?: 'document' | 'location';
4
+ locationId?: string;
5
+ }
6
+ declare const VeltDocumentViewerTrend: React.FC<IVeltDocumentViewerTrendProps>;
7
+ export default VeltDocumentViewerTrend;
@@ -0,0 +1 @@
1
+ export { default } from "./VeltDocumentViewerTrend";
@@ -3,6 +3,7 @@ export interface IVeltVideoPlayerProps {
3
3
  src: string;
4
4
  darkMode?: boolean;
5
5
  sync?: boolean;
6
+ commentTool?: boolean;
6
7
  }
7
8
  declare const VeltVideoPlayer: React.FC<IVeltVideoPlayerProps>;
8
9
  export default VeltVideoPlayer;
@@ -20,3 +20,4 @@ export { default as VeltUserInviteTool } from "./SnippylyUserInviteTool";
20
20
  export { default as VeltUserRequestTool } from "./SnippylyUserRequestTool";
21
21
  export { default as VeltCommentPlayerTimeline } from "./VeltCommentPlayerTimeline";
22
22
  export { default as VeltVideoPlayer } from "./VeltVideoPlayer";
23
+ export { default as VeltDocumentViewerTrend } from "./VeltDocumentViewerTrend";
@@ -1,2 +1,2 @@
1
- export declare const VELT_SDK_VERSION = "1.0.96";
1
+ export declare const VELT_SDK_VERSION = "1.0.98";
2
2
  export declare const VELT_SDK_INIT_EVENT = "onVeltInit";
@@ -0,0 +1,13 @@
1
+ import { ViewsByDate, ViewsByUser, ViewsElement } from "@veltdev/types";
2
+ /**
3
+ * @beta This hook is in beta
4
+ */
5
+ export declare function useViewsUtils(): ViewsElement | undefined;
6
+ /**
7
+ * @beta This hook is in beta
8
+ */
9
+ export declare function useUniqueViewsByUser(clientLocationId?: string): ViewsByUser | null;
10
+ /**
11
+ * @beta This hook is in beta
12
+ */
13
+ export declare function useUniqueViewsByDate(clientLocationId?: string): ViewsByDate | null;
@@ -8,3 +8,4 @@ export { useRecorderUtils, useRecorderAddHandler, } from './RecorderElement';
8
8
  export { useAIRewriterUtils, } from './RewriterElement';
9
9
  export { useLiveSelectionUtils, } from './SelectionElement';
10
10
  export { useTagUtils, useTagAnnotations, } from './TagElement';
11
+ export { useViewsUtils, useUniqueViewsByDate, useUniqueViewsByUser, } from './ViewsElement';
@@ -1,2 +1,2 @@
1
- declare const loadVelt: (callback: Function, version?: string, staging?: boolean) => void;
1
+ declare const loadVelt: (callback: Function, version?: string, staging?: boolean, develop?: boolean) => void;
2
2
  export default loadVelt;
package/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { Config, Velt, User, UserOptions, Location as Location$1, CommentElement, CommentAnnotation, CursorElement, CursorUser, LiveStateSyncElement, UserEditorAccess, PresenceElement, PresenceUser, RecorderElement, RewriterElement, SelectionElement, TagElement, TagAnnotation } from '@veltdev/types';
3
+ import { Config, Velt, User, UserOptions, Location as Location$1, CommentElement, CommentAnnotation, CursorElement, CursorUser, LiveStateSyncElement, UserEditorAccess, PresenceElement, PresenceUser, RecorderElement, RewriterElement, SelectionElement, TagElement, TagAnnotation, ViewsElement, ViewsByUser, ViewsByDate } from '@veltdev/types';
4
4
 
5
5
  interface IVeltProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
6
6
  apiKey: string;
@@ -75,6 +75,8 @@ interface IVeltCommentsProps extends React.DetailedHTMLProps<React.HTMLAttribute
75
75
  deleteOnBackspace?: boolean;
76
76
  hotkey?: boolean;
77
77
  allowedElementIds?: string[];
78
+ allowedElementClassNames?: string[];
79
+ allowedElementQuerySelectors?: string[];
78
80
  onCommentAdd?: Function;
79
81
  onCustomPinInject?: Function;
80
82
  onCommentUpdate?: Function;
@@ -263,6 +265,7 @@ interface IVeltUserInviteToolProps extends React.DetailedHTMLProps<React.HTMLAtt
263
265
  source?: string;
264
266
  title?: string;
265
267
  placeholder?: string;
268
+ inviteUrl?: string;
266
269
  accessControlDropdown?: boolean;
267
270
  documentUserAccessList?: boolean;
268
271
  }
@@ -288,9 +291,16 @@ interface IVeltVideoPlayerProps {
288
291
  src: string;
289
292
  darkMode?: boolean;
290
293
  sync?: boolean;
294
+ commentTool?: boolean;
291
295
  }
292
296
  declare const VeltVideoPlayer: React.FC<IVeltVideoPlayerProps>;
293
297
 
298
+ interface IVeltDocumentViewerTrendProps {
299
+ type?: 'document' | 'location';
300
+ locationId?: string;
301
+ }
302
+ declare const VeltDocumentViewerTrend: React.FC<IVeltDocumentViewerTrendProps>;
303
+
294
304
  declare function useVeltClient(): {
295
305
  client: Velt;
296
306
  };
@@ -424,6 +434,19 @@ declare function useTagUtils(): TagElement | undefined;
424
434
  */
425
435
  declare function useTagAnnotations(documentId?: string, location?: Location$1): TagAnnotation[] | null;
426
436
 
437
+ /**
438
+ * @beta This hook is in beta
439
+ */
440
+ declare function useViewsUtils(): ViewsElement | undefined;
441
+ /**
442
+ * @beta This hook is in beta
443
+ */
444
+ declare function useUniqueViewsByUser(clientLocationId?: string): ViewsByUser | null;
445
+ /**
446
+ * @beta This hook is in beta
447
+ */
448
+ declare function useUniqueViewsByDate(clientLocationId?: string): ViewsByDate | null;
449
+
427
450
  declare type LiveStateMiddlewareConfig = {
428
451
  allowedActionTypes?: Set<string>;
429
452
  disabledActionTypes?: Set<string>;
@@ -432,4 +455,4 @@ declare type LiveStateMiddlewareConfig = {
432
455
  };
433
456
  declare const createLiveStateMiddleware: (config?: LiveStateMiddlewareConfig) => (store: any) => (next: any) => (action: any) => any;
434
457
 
435
- export { SnippylyArrowTool as VeltArrowTool, SnippylyArrows as VeltArrows, SnippylyCommentBubble as VeltCommentBubble, VeltCommentPlayerTimeline, SnippylyCommentTool as VeltCommentTool, SnippylyComments as VeltComments, SnippylyCommentsSidebar as VeltCommentsSidebar, SnippylyCursor as VeltCursor, SnippylyHuddle as VeltHuddle, SnippylyHuddleTool as VeltHuddleTool, SnippylyPresence as VeltPresence, SnippylyProvider as VeltProvider, SnippylyRecorderControlPanel as VeltRecorderControlPanel, SnippylyRecorderNotes as VeltRecorderNotes, SnippylyRecorderPlayer as VeltRecorderPlayer, SnippylyRecorderTool as VeltRecorderTool, SnippylySidebarButton as VeltSidebarButton, SnippylyTagTool as VeltTagTool, SnippylyTags as VeltTags, SnippylyUserInviteTool as VeltUserInviteTool, SnippylyUserRequestTool as VeltUserRequestTool, VeltVideoPlayer, createLiveStateMiddleware, useAIRewriterUtils, useAddLocation, useClient, useCommentAddHandler, useCommentAnnotations, useCommentDialogSidebarClickHandler, useCommentModeState, useCommentUpdateHandler, useCommentUtils, useCursorUsers, useCursorUtils, useEditor, useEditorAccessRequestHandler, useHuddleUtils, useIdentify, useLiveSelectionUtils, useLiveState, useLiveStateData, useLiveStateSyncUtils, usePresenceUsers, usePresenceUtils, useRecorderAddHandler, useRecorderUtils, useSetDocumentId, useSetLiveStateData, useSetLocation, useTagAnnotations, useTagUtils, useUserEditorState, useVeltClient };
458
+ export { SnippylyArrowTool as VeltArrowTool, SnippylyArrows as VeltArrows, SnippylyCommentBubble as VeltCommentBubble, VeltCommentPlayerTimeline, SnippylyCommentTool as VeltCommentTool, SnippylyComments as VeltComments, SnippylyCommentsSidebar as VeltCommentsSidebar, SnippylyCursor as VeltCursor, VeltDocumentViewerTrend, SnippylyHuddle as VeltHuddle, SnippylyHuddleTool as VeltHuddleTool, SnippylyPresence as VeltPresence, SnippylyProvider as VeltProvider, SnippylyRecorderControlPanel as VeltRecorderControlPanel, SnippylyRecorderNotes as VeltRecorderNotes, SnippylyRecorderPlayer as VeltRecorderPlayer, SnippylyRecorderTool as VeltRecorderTool, SnippylySidebarButton as VeltSidebarButton, SnippylyTagTool as VeltTagTool, SnippylyTags as VeltTags, SnippylyUserInviteTool as VeltUserInviteTool, SnippylyUserRequestTool as VeltUserRequestTool, VeltVideoPlayer, createLiveStateMiddleware, useAIRewriterUtils, useAddLocation, useClient, useCommentAddHandler, useCommentAnnotations, useCommentDialogSidebarClickHandler, useCommentModeState, useCommentUpdateHandler, useCommentUtils, useCursorUsers, useCursorUtils, useEditor, useEditorAccessRequestHandler, useHuddleUtils, useIdentify, useLiveSelectionUtils, useLiveState, useLiveStateData, useLiveStateSyncUtils, usePresenceUsers, usePresenceUtils, useRecorderAddHandler, useRecorderUtils, useSetDocumentId, useSetLiveStateData, useSetLocation, useTagAnnotations, useTagUtils, useUniqueViewsByDate, useUniqueViewsByUser, useUserEditorState, useVeltClient, useViewsUtils };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/react",
3
- "version": "1.0.79",
3
+ "version": "1.0.81",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",