@veltdev/react 1.0.49 → 1.0.51

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 (40) hide show
  1. package/cjs/index.js +427 -7
  2. package/cjs/index.js.map +1 -1
  3. package/cjs/types/comments/index.d.ts +1 -0
  4. package/cjs/types/components/SnippylyComments/SnippylyComments.d.ts +1 -0
  5. package/cjs/types/components/SnippylyCommentsSidebar/SnippylyCommentsSidebar.d.ts +1 -0
  6. package/cjs/types/components/SnippylyUserInviteTool/SnippylyUserInviteTool.d.ts +1 -0
  7. package/cjs/types/constants.d.ts +1 -1
  8. package/cjs/types/hooks/Client.d.ts +21 -0
  9. package/cjs/types/hooks/CommentElement.d.ts +25 -0
  10. package/cjs/types/hooks/CursorElement.d.ts +8 -0
  11. package/cjs/types/hooks/HuddleElement.d.ts +4 -0
  12. package/cjs/types/hooks/LiveStateSyncElement.d.ts +16 -0
  13. package/cjs/types/hooks/PresenceElement.d.ts +8 -0
  14. package/cjs/types/hooks/RecorderElement.d.ts +8 -0
  15. package/cjs/types/hooks/RewriterElement.d.ts +4 -0
  16. package/cjs/types/hooks/SelectionElement.d.ts +4 -0
  17. package/cjs/types/hooks/TagElement.d.ts +9 -0
  18. package/cjs/types/hooks/index.d.ts +10 -0
  19. package/cjs/types/index.d.ts +1 -0
  20. package/esm/index.js +402 -8
  21. package/esm/index.js.map +1 -1
  22. package/esm/types/comments/index.d.ts +1 -0
  23. package/esm/types/components/SnippylyComments/SnippylyComments.d.ts +1 -0
  24. package/esm/types/components/SnippylyCommentsSidebar/SnippylyCommentsSidebar.d.ts +1 -0
  25. package/esm/types/components/SnippylyUserInviteTool/SnippylyUserInviteTool.d.ts +1 -0
  26. package/esm/types/constants.d.ts +1 -1
  27. package/esm/types/hooks/Client.d.ts +21 -0
  28. package/esm/types/hooks/CommentElement.d.ts +25 -0
  29. package/esm/types/hooks/CursorElement.d.ts +8 -0
  30. package/esm/types/hooks/HuddleElement.d.ts +4 -0
  31. package/esm/types/hooks/LiveStateSyncElement.d.ts +16 -0
  32. package/esm/types/hooks/PresenceElement.d.ts +8 -0
  33. package/esm/types/hooks/RecorderElement.d.ts +8 -0
  34. package/esm/types/hooks/RewriterElement.d.ts +4 -0
  35. package/esm/types/hooks/SelectionElement.d.ts +4 -0
  36. package/esm/types/hooks/TagElement.d.ts +9 -0
  37. package/esm/types/hooks/index.d.ts +10 -0
  38. package/esm/types/index.d.ts +1 -0
  39. package/index.d.ts +119 -2
  40. package/package.json +1 -1
@@ -1,3 +1,4 @@
1
1
  export * from './components';
2
2
  export * from './loadSnippyly';
3
3
  export * from './context';
4
+ export * from './hooks';
package/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { Config, Velt } from '@veltdev/types';
3
+ import { Config, Velt, User, UserOptions, Location } from '@veltdev/types';
4
4
 
5
5
  interface IVeltProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
6
6
  apiKey: string;
@@ -114,6 +114,7 @@ interface IVeltCommentsProps extends React.DetailedHTMLProps<React.HTMLAttribute
114
114
  commentsOnDom?: boolean;
115
115
  commentTool?: boolean;
116
116
  sidebarButtonOnCommentDialog?: boolean;
117
+ scrollToComponent?: boolean;
117
118
  allowedElementIds?: string[];
118
119
  /**
119
120
  * @deprecated Use `onCommentAdd` instead
@@ -193,6 +194,7 @@ interface IVeltCommentsSidebarProps {
193
194
  */
194
195
  enableUrlNavigation?: boolean;
195
196
  urlNavigation?: boolean;
197
+ pageMode?: boolean;
196
198
  /**
197
199
  * @deprecated Use `onSidebarOpen` instead
198
200
  */
@@ -313,6 +315,7 @@ interface IVeltUserInviteToolProps {
313
315
  title?: string;
314
316
  placeholder?: string;
315
317
  accessControlDropdown?: boolean;
318
+ documentUserAccessList?: boolean;
316
319
  }
317
320
  declare const SnippylyUserInviteTool: React.FC<IVeltUserInviteToolProps>;
318
321
 
@@ -343,4 +346,118 @@ declare function useVeltClient(): {
343
346
  client: Velt;
344
347
  };
345
348
 
346
- 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, useVeltClient };
349
+ /**
350
+ * @beta This hook is in beta
351
+ */
352
+ declare function useClient(): any;
353
+ /**
354
+ * @beta This hook is in beta
355
+ */
356
+ declare function useIdentify(user: User, userOptions?: UserOptions): void;
357
+ /**
358
+ * @beta This hook is in beta
359
+ */
360
+ declare function useSetDocumentId(documentId: string): void;
361
+ /**
362
+ * @beta This hook is in beta
363
+ */
364
+ declare function useSetLocation(location: Location): void;
365
+ /**
366
+ * @beta This hook is in beta
367
+ */
368
+ declare function useAddLocation(location: Location): void;
369
+
370
+ /**
371
+ * @beta This hook is in beta
372
+ */
373
+ declare function useCommentUtils(): any;
374
+ /**
375
+ * @beta This hook is in beta
376
+ */
377
+ declare function useCommentAnnotations(documentId?: string, location?: Location): any;
378
+ /**
379
+ * @beta This hook is in beta
380
+ */
381
+ declare function useCommentModeState(): any;
382
+ /**
383
+ * @beta This hook is in beta
384
+ */
385
+ declare function useCommentAddHandler(): any;
386
+ /**
387
+ * @beta This hook is in beta
388
+ */
389
+ declare function useCommentUpdateHandler(): any;
390
+ /**
391
+ * @beta This hook is in beta
392
+ */
393
+ declare function useCommentDialogSidebarClickHandler(): any;
394
+
395
+ /**
396
+ * @beta This hook is in beta
397
+ */
398
+ declare function useCursorUtils(): any | undefined;
399
+ /**
400
+ * @beta This hook is in beta
401
+ */
402
+ declare function useCursorUsers(): any;
403
+
404
+ /**
405
+ * @beta This hook is in beta
406
+ */
407
+ declare function useHuddleUtils(): any | undefined;
408
+
409
+ /**
410
+ * @beta This hook is in beta
411
+ */
412
+ declare function useLiveStateSyncUtils(): any | undefined;
413
+ /**
414
+ * @beta This hook is in beta
415
+ */
416
+ declare function useLiveStateData(liveStateDataId?: string): any;
417
+ /**
418
+ * @beta This hook is in beta
419
+ */
420
+ declare function useSetLiveStateData(liveStateDataId: string, liveStateData: any): any;
421
+ /**
422
+ * @beta This hook is in beta
423
+ */
424
+ declare function useUserEditorState(): any;
425
+
426
+ /**
427
+ * @beta This hook is in beta
428
+ */
429
+ declare function usePresenceUtils(): any | undefined;
430
+ /**
431
+ * @beta This hook is in beta
432
+ */
433
+ declare function usePresenceUsers(): any;
434
+
435
+ /**
436
+ * @beta This hook is in beta
437
+ */
438
+ declare function useRecorderUtils(): any | undefined;
439
+ /**
440
+ * @beta This hook is in beta
441
+ */
442
+ declare function useRecorderAddHandler(): any;
443
+
444
+ /**
445
+ * @beta This hook is in beta
446
+ */
447
+ declare function useAIRewriterUtils(): any | undefined;
448
+
449
+ /**
450
+ * @beta This hook is in beta
451
+ */
452
+ declare function useLiveSelectionUtils(): any | undefined;
453
+
454
+ /**
455
+ * @beta This hook is in beta
456
+ */
457
+ declare function useTagUtils(): any | undefined;
458
+ /**
459
+ * @beta This hook is in beta
460
+ */
461
+ declare function useTagAnnotations(documentId?: string, location?: Location): any;
462
+
463
+ 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, useAIRewriterUtils, useAddLocation, useClient, useCommentAddHandler, useCommentAnnotations, useCommentDialogSidebarClickHandler, useCommentModeState, useCommentUpdateHandler, useCommentUtils, useCursorUsers, useCursorUtils, useHuddleUtils, useIdentify, useLiveSelectionUtils, useLiveStateData, useLiveStateSyncUtils, usePresenceUsers, usePresenceUtils, useRecorderAddHandler, useRecorderUtils, useSetDocumentId, useSetLiveStateData, useSetLocation, useTagAnnotations, useTagUtils, useUserEditorState, useVeltClient };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/react",
3
- "version": "1.0.49",
3
+ "version": "1.0.51",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",