@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.
- package/cjs/index.js +425 -5
- package/cjs/index.js.map +1 -1
- package/cjs/types/components/SnippylyCommentsSidebar/SnippylyCommentsSidebar.d.ts +1 -0
- 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 +400 -6
- package/esm/index.js.map +1 -1
- package/esm/types/components/SnippylyCommentsSidebar/SnippylyCommentsSidebar.d.ts +1 -0
- 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 +118 -2
- package/package.json +1 -1
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
import { Location } from "@veltdev/types";
|
|
2
|
-
|
|
3
|
-
|
|
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,
|
|
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;
|
|
@@ -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
|
-
|
|
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 };
|