@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.
- package/cjs/index.js +423 -3
- package/cjs/index.js.map +1 -1
- package/cjs/types/components/SnippylyUserInviteTool/SnippylyUserInviteTool.d.ts +1 -0
- package/cjs/types/constants.d.ts +1 -1
- package/cjs/types/hooks/Client.d.ts +19 -7
- package/cjs/types/hooks/CommentElement.d.ts +24 -7
- package/cjs/types/hooks/CursorElement.d.ts +8 -2
- package/cjs/types/hooks/HuddleElement.d.ts +4 -0
- package/cjs/types/hooks/LiveStateSyncElement.d.ts +16 -3
- package/cjs/types/hooks/PresenceElement.d.ts +8 -2
- package/cjs/types/hooks/RecorderElement.d.ts +8 -2
- package/cjs/types/hooks/RewriterElement.d.ts +4 -1
- package/cjs/types/hooks/SelectionElement.d.ts +4 -1
- package/cjs/types/hooks/TagElement.d.ts +8 -2
- package/cjs/types/hooks/index.d.ts +10 -9
- package/cjs/types/index.d.ts +1 -0
- package/esm/index.js +398 -4
- package/esm/index.js.map +1 -1
- package/esm/types/components/SnippylyUserInviteTool/SnippylyUserInviteTool.d.ts +1 -0
- package/esm/types/constants.d.ts +1 -1
- package/esm/types/hooks/Client.d.ts +19 -7
- package/esm/types/hooks/CommentElement.d.ts +24 -7
- package/esm/types/hooks/CursorElement.d.ts +8 -2
- package/esm/types/hooks/HuddleElement.d.ts +4 -0
- package/esm/types/hooks/LiveStateSyncElement.d.ts +16 -3
- package/esm/types/hooks/PresenceElement.d.ts +8 -2
- package/esm/types/hooks/RecorderElement.d.ts +8 -2
- package/esm/types/hooks/RewriterElement.d.ts +4 -1
- package/esm/types/hooks/SelectionElement.d.ts +4 -1
- package/esm/types/hooks/TagElement.d.ts +8 -2
- package/esm/types/hooks/index.d.ts +10 -9
- package/esm/types/index.d.ts +1 -0
- package/index.d.ts +117 -2
- package/package.json +1 -1
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
export { useAddLocation,
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
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';
|
package/esm/types/index.d.ts
CHANGED
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
|
-
|
|
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 };
|