@veltdev/react 1.0.50 → 1.0.52

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