@veltdev/react 1.0.80 → 1.0.82

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 @@
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.97";
1
+ export declare const VELT_SDK_VERSION = "1.0.99";
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;
@@ -265,6 +265,7 @@ interface IVeltUserInviteToolProps extends React.DetailedHTMLProps<React.HTMLAtt
265
265
  source?: string;
266
266
  title?: string;
267
267
  placeholder?: string;
268
+ inviteUrl?: string;
268
269
  accessControlDropdown?: boolean;
269
270
  documentUserAccessList?: boolean;
270
271
  }
@@ -290,9 +291,16 @@ interface IVeltVideoPlayerProps {
290
291
  src: string;
291
292
  darkMode?: boolean;
292
293
  sync?: boolean;
294
+ commentTool?: boolean;
293
295
  }
294
296
  declare const VeltVideoPlayer: React.FC<IVeltVideoPlayerProps>;
295
297
 
298
+ interface IVeltDocumentViewerTrendProps {
299
+ type?: 'document' | 'location';
300
+ locationId?: string;
301
+ }
302
+ declare const VeltDocumentViewerTrend: React.FC<IVeltDocumentViewerTrendProps>;
303
+
296
304
  declare function useVeltClient(): {
297
305
  client: Velt;
298
306
  };
@@ -426,6 +434,19 @@ declare function useTagUtils(): TagElement | undefined;
426
434
  */
427
435
  declare function useTagAnnotations(documentId?: string, location?: Location$1): TagAnnotation[] | null;
428
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
+
429
450
  declare type LiveStateMiddlewareConfig = {
430
451
  allowedActionTypes?: Set<string>;
431
452
  disabledActionTypes?: Set<string>;
@@ -434,4 +455,4 @@ declare type LiveStateMiddlewareConfig = {
434
455
  };
435
456
  declare const createLiveStateMiddleware: (config?: LiveStateMiddlewareConfig) => (store: any) => (next: any) => (action: any) => any;
436
457
 
437
- 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.80",
3
+ "version": "1.0.82",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",