@veltdev/react 1.0.50 → 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 (34) hide show
  1. package/cjs/index.js +423 -3
  2. package/cjs/index.js.map +1 -1
  3. package/cjs/types/components/SnippylyUserInviteTool/SnippylyUserInviteTool.d.ts +1 -0
  4. package/cjs/types/constants.d.ts +1 -1
  5. package/cjs/types/hooks/Client.d.ts +19 -7
  6. package/cjs/types/hooks/CommentElement.d.ts +24 -7
  7. package/cjs/types/hooks/CursorElement.d.ts +8 -2
  8. package/cjs/types/hooks/HuddleElement.d.ts +4 -0
  9. package/cjs/types/hooks/LiveStateSyncElement.d.ts +16 -3
  10. package/cjs/types/hooks/PresenceElement.d.ts +8 -2
  11. package/cjs/types/hooks/RecorderElement.d.ts +8 -2
  12. package/cjs/types/hooks/RewriterElement.d.ts +4 -1
  13. package/cjs/types/hooks/SelectionElement.d.ts +4 -1
  14. package/cjs/types/hooks/TagElement.d.ts +8 -2
  15. package/cjs/types/hooks/index.d.ts +10 -9
  16. package/cjs/types/index.d.ts +1 -0
  17. package/esm/index.js +398 -4
  18. package/esm/index.js.map +1 -1
  19. package/esm/types/components/SnippylyUserInviteTool/SnippylyUserInviteTool.d.ts +1 -0
  20. package/esm/types/constants.d.ts +1 -1
  21. package/esm/types/hooks/Client.d.ts +19 -7
  22. package/esm/types/hooks/CommentElement.d.ts +24 -7
  23. package/esm/types/hooks/CursorElement.d.ts +8 -2
  24. package/esm/types/hooks/HuddleElement.d.ts +4 -0
  25. package/esm/types/hooks/LiveStateSyncElement.d.ts +16 -3
  26. package/esm/types/hooks/PresenceElement.d.ts +8 -2
  27. package/esm/types/hooks/RecorderElement.d.ts +8 -2
  28. package/esm/types/hooks/RewriterElement.d.ts +4 -1
  29. package/esm/types/hooks/SelectionElement.d.ts +4 -1
  30. package/esm/types/hooks/TagElement.d.ts +8 -2
  31. package/esm/types/hooks/index.d.ts +10 -9
  32. package/esm/types/index.d.ts +1 -0
  33. package/index.d.ts +117 -2
  34. package/package.json +1 -1
@@ -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;
@@ -315,6 +315,7 @@ interface IVeltUserInviteToolProps {
315
315
  title?: string;
316
316
  placeholder?: string;
317
317
  accessControlDropdown?: boolean;
318
+ documentUserAccessList?: boolean;
318
319
  }
319
320
  declare const SnippylyUserInviteTool: React.FC<IVeltUserInviteToolProps>;
320
321
 
@@ -345,4 +346,118 @@ declare function useVeltClient(): {
345
346
  client: Velt;
346
347
  };
347
348
 
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 };
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.50",
3
+ "version": "1.0.51",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",