@veltdev/react 1.0.120 → 1.0.121

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 +2 -123
  2. package/cjs/index.js.map +1 -1
  3. package/cjs/types/hooks/AutocompleteElement.d.ts +0 -6
  4. package/cjs/types/hooks/Client.d.ts +1 -20
  5. package/cjs/types/hooks/CommentElement.d.ts +0 -18
  6. package/cjs/types/hooks/CursorElement.d.ts +0 -6
  7. package/cjs/types/hooks/HuddleElement.d.ts +0 -3
  8. package/cjs/types/hooks/LiveStateSyncElement.d.ts +0 -24
  9. package/cjs/types/hooks/NotificationElement.d.ts +0 -6
  10. package/cjs/types/hooks/PresenceElement.d.ts +0 -6
  11. package/cjs/types/hooks/RecorderElement.d.ts +0 -6
  12. package/cjs/types/hooks/RewriterElement.d.ts +0 -3
  13. package/cjs/types/hooks/SelectionElement.d.ts +0 -3
  14. package/cjs/types/hooks/TagElement.d.ts +0 -6
  15. package/cjs/types/hooks/ViewsElement.d.ts +0 -9
  16. package/cjs/types/hooks/index.d.ts +1 -1
  17. package/esm/index.js +3 -123
  18. package/esm/index.js.map +1 -1
  19. package/esm/types/hooks/AutocompleteElement.d.ts +0 -6
  20. package/esm/types/hooks/Client.d.ts +1 -20
  21. package/esm/types/hooks/CommentElement.d.ts +0 -18
  22. package/esm/types/hooks/CursorElement.d.ts +0 -6
  23. package/esm/types/hooks/HuddleElement.d.ts +0 -3
  24. package/esm/types/hooks/LiveStateSyncElement.d.ts +0 -24
  25. package/esm/types/hooks/NotificationElement.d.ts +0 -6
  26. package/esm/types/hooks/PresenceElement.d.ts +0 -6
  27. package/esm/types/hooks/RecorderElement.d.ts +0 -6
  28. package/esm/types/hooks/RewriterElement.d.ts +0 -3
  29. package/esm/types/hooks/SelectionElement.d.ts +0 -3
  30. package/esm/types/hooks/TagElement.d.ts +0 -6
  31. package/esm/types/hooks/ViewsElement.d.ts +0 -9
  32. package/esm/types/hooks/index.d.ts +1 -1
  33. package/index.d.ts +3 -118
  34. package/package.json +1 -1
@@ -1,9 +1,3 @@
1
1
  import { AutocompleteElement } from "@veltdev/types";
2
- /**
3
- * @beta This hook is in beta
4
- */
5
2
  export declare function useAutocompleteUtils(): AutocompleteElement | undefined;
6
- /**
7
- * @beta This hook is in beta
8
- */
9
3
  export declare function useAutocompleteChipClick(): any;
@@ -1,25 +1,6 @@
1
1
  import { Location, User, Options } from "@veltdev/types";
2
- /**
3
- * @beta This hook is in beta
4
- */
5
2
  export declare function useClient(): any;
6
- /**
7
- * @beta This hook is in beta
8
- */
9
3
  export declare function useIdentify(user: User, userOptions?: Options): void;
10
- /**
11
- * @beta This hook is in beta
12
- */
13
4
  export declare function useSetDocumentId(documentId: string): void;
14
- /**
15
- * @beta This hook is in beta
16
- */
17
5
  export declare function useUnsetDocumentId(): void;
18
- /**
19
- * @beta This hook is in beta
20
- */
21
- export declare function useSetLocation(location: Location): void;
22
- /**
23
- * @beta This hook is in beta
24
- */
25
- export declare function useAddLocation(location: Location): void;
6
+ export declare function useSetLocation(location: Location, appendLocation?: boolean): void;
@@ -1,25 +1,7 @@
1
1
  import { CommentAnnotation, CommentElement, Location } from "@veltdev/types";
2
- /**
3
- * @beta This hook is in beta
4
- */
5
2
  export declare function useCommentUtils(): CommentElement | undefined;
6
- /**
7
- * @beta This hook is in beta
8
- */
9
3
  export declare function useCommentAnnotations(documentId?: string, location?: Location): CommentAnnotation[] | null;
10
- /**
11
- * @beta This hook is in beta
12
- */
13
4
  export declare function useCommentModeState(): boolean | undefined;
14
- /**
15
- * @beta This hook is in beta
16
- */
17
5
  export declare function useCommentAddHandler(): any;
18
- /**
19
- * @beta This hook is in beta
20
- */
21
6
  export declare function useCommentUpdateHandler(): any;
22
- /**
23
- * @beta This hook is in beta
24
- */
25
7
  export declare function useCommentDialogSidebarClickHandler(): any;
@@ -1,9 +1,3 @@
1
1
  import { CursorElement, CursorUser } from "@veltdev/types";
2
- /**
3
- * @beta This hook is in beta
4
- */
5
2
  export declare function useCursorUtils(): CursorElement | undefined;
6
- /**
7
- * @beta This hook is in beta
8
- */
9
3
  export declare function useCursorUsers(): CursorUser[] | null;
@@ -1,4 +1 @@
1
- /**
2
- * @beta This hook is in beta
3
- */
4
1
  export declare function useHuddleUtils(): any | undefined;
@@ -1,38 +1,14 @@
1
1
  import { EditorAccessTimer, LiveStateSyncElement, User, UserEditorAccess } from "@veltdev/types";
2
- /**
3
- * @beta This hook is in beta
4
- */
5
2
  export declare function useLiveStateSyncUtils(): LiveStateSyncElement | undefined;
6
- /**
7
- * @beta This hook is in beta
8
- */
9
3
  export declare function useLiveStateData(liveStateDataId?: string): any;
10
- /**
11
- * @beta This hook is in beta
12
- */
13
4
  export declare function useSetLiveStateData(liveStateDataId: string, liveStateData: any): any;
14
- /**
15
- * @beta This hook is in beta
16
- */
17
5
  export declare function useUserEditorState(): UserEditorAccess | null;
18
- /**
19
- * @beta This hook is in beta
20
- */
21
6
  export declare function useEditor(): User | null;
22
- /**
23
- * @beta This hook is in beta
24
- */
25
7
  export declare function useEditorAccessTimer(): EditorAccessTimer;
26
- /**
27
- * @beta This hook is in beta
28
- */
29
8
  export declare function useEditorAccessRequestHandler(): {
30
9
  requestStatus: string;
31
10
  requestedBy: User;
32
11
  } | null;
33
- /**
34
- * @beta This hook is in beta
35
- */
36
12
  export declare function useLiveState<T>(liveStateDataId: string, initialValue?: any, options?: {
37
13
  syncDuration?: number;
38
14
  resetLiveState?: boolean;
@@ -1,9 +1,3 @@
1
1
  import { Notification, NotificationElement } from "@veltdev/types";
2
- /**
3
- * @beta This hook is in beta
4
- */
5
2
  export declare function useNotificationUtils(): NotificationElement | undefined;
6
- /**
7
- * @beta This hook is in beta
8
- */
9
3
  export declare function useNotificationsData(): Notification[] | null;
@@ -1,9 +1,3 @@
1
1
  import { PresenceElement, PresenceUser } from "@veltdev/types";
2
- /**
3
- * @beta This hook is in beta
4
- */
5
2
  export declare function usePresenceUtils(): PresenceElement | undefined;
6
- /**
7
- * @beta This hook is in beta
8
- */
9
3
  export declare function usePresenceUsers(): PresenceUser[] | null;
@@ -1,9 +1,3 @@
1
1
  import { RecorderElement } from "@veltdev/types";
2
- /**
3
- * @beta This hook is in beta
4
- */
5
2
  export declare function useRecorderUtils(): RecorderElement | undefined;
6
- /**
7
- * @beta This hook is in beta
8
- */
9
3
  export declare function useRecorderAddHandler(): any;
@@ -1,5 +1,2 @@
1
1
  import { RewriterElement } from "@veltdev/types";
2
- /**
3
- * @beta This hook is in beta
4
- */
5
2
  export declare function useAIRewriterUtils(): RewriterElement | undefined;
@@ -1,5 +1,2 @@
1
1
  import { SelectionElement } from "@veltdev/types";
2
- /**
3
- * @beta This hook is in beta
4
- */
5
2
  export declare function useLiveSelectionUtils(): SelectionElement | undefined;
@@ -1,9 +1,3 @@
1
1
  import { Location, TagAnnotation, TagElement } from "@veltdev/types";
2
- /**
3
- * @beta This hook is in beta
4
- */
5
2
  export declare function useTagUtils(): TagElement | undefined;
6
- /**
7
- * @beta This hook is in beta
8
- */
9
3
  export declare function useTagAnnotations(documentId?: string, location?: Location): TagAnnotation[] | null;
@@ -1,13 +1,4 @@
1
1
  import { ViewsByDate, ViewsByUser, ViewsElement } from "@veltdev/types";
2
- /**
3
- * @beta This hook is in beta
4
- */
5
2
  export declare function useViewsUtils(): ViewsElement | undefined;
6
- /**
7
- * @beta This hook is in beta
8
- */
9
3
  export declare function useUniqueViewsByUser(clientLocationId?: string): ViewsByUser | null;
10
- /**
11
- * @beta This hook is in beta
12
- */
13
4
  export declare function useUniqueViewsByDate(clientLocationId?: string): ViewsByDate | null;
@@ -1,4 +1,4 @@
1
- export { useAddLocation, useSetLocation, useSetDocumentId, useUnsetDocumentId, useIdentify, useClient, } from './Client';
1
+ export { useSetLocation, useSetDocumentId, useUnsetDocumentId, useIdentify, useClient, } from './Client';
2
2
  export { useCommentUtils, useCommentAnnotations, useCommentAddHandler, useCommentModeState, useCommentUpdateHandler, useCommentDialogSidebarClickHandler, } from './CommentElement';
3
3
  export { useCursorUtils, useCursorUsers, } from './CursorElement';
4
4
  export { useHuddleUtils, } from './HuddleElement';
package/index.d.ts CHANGED
@@ -786,175 +786,60 @@ declare function useVeltClient(): {
786
786
  client: Velt;
787
787
  };
788
788
 
789
- /**
790
- * @beta This hook is in beta
791
- */
792
789
  declare function useClient(): any;
793
- /**
794
- * @beta This hook is in beta
795
- */
796
790
  declare function useIdentify(user: User, userOptions?: Options): void;
797
- /**
798
- * @beta This hook is in beta
799
- */
800
791
  declare function useSetDocumentId(documentId: string): void;
801
- /**
802
- * @beta This hook is in beta
803
- */
804
792
  declare function useUnsetDocumentId(): void;
805
- /**
806
- * @beta This hook is in beta
807
- */
808
- declare function useSetLocation(location: Location$1): void;
809
- /**
810
- * @beta This hook is in beta
811
- */
812
- declare function useAddLocation(location: Location$1): void;
813
-
814
- /**
815
- * @beta This hook is in beta
816
- */
793
+ declare function useSetLocation(location: Location$1, appendLocation?: boolean): void;
794
+
817
795
  declare function useCommentUtils(): CommentElement | undefined;
818
- /**
819
- * @beta This hook is in beta
820
- */
821
796
  declare function useCommentAnnotations(documentId?: string, location?: Location$1): CommentAnnotation[] | null;
822
- /**
823
- * @beta This hook is in beta
824
- */
825
797
  declare function useCommentModeState(): boolean | undefined;
826
- /**
827
- * @beta This hook is in beta
828
- */
829
798
  declare function useCommentAddHandler(): any;
830
- /**
831
- * @beta This hook is in beta
832
- */
833
799
  declare function useCommentUpdateHandler(): any;
834
- /**
835
- * @beta This hook is in beta
836
- */
837
800
  declare function useCommentDialogSidebarClickHandler(): any;
838
801
 
839
- /**
840
- * @beta This hook is in beta
841
- */
842
802
  declare function useCursorUtils(): CursorElement | undefined;
843
- /**
844
- * @beta This hook is in beta
845
- */
846
803
  declare function useCursorUsers(): CursorUser[] | null;
847
804
 
848
- /**
849
- * @beta This hook is in beta
850
- */
851
805
  declare function useHuddleUtils(): any | undefined;
852
806
 
853
- /**
854
- * @beta This hook is in beta
855
- */
856
807
  declare function useLiveStateSyncUtils(): LiveStateSyncElement | undefined;
857
- /**
858
- * @beta This hook is in beta
859
- */
860
808
  declare function useLiveStateData(liveStateDataId?: string): any;
861
- /**
862
- * @beta This hook is in beta
863
- */
864
809
  declare function useSetLiveStateData(liveStateDataId: string, liveStateData: any): any;
865
- /**
866
- * @beta This hook is in beta
867
- */
868
810
  declare function useUserEditorState(): UserEditorAccess | null;
869
- /**
870
- * @beta This hook is in beta
871
- */
872
811
  declare function useEditor(): User | null;
873
- /**
874
- * @beta This hook is in beta
875
- */
876
812
  declare function useEditorAccessTimer(): EditorAccessTimer;
877
- /**
878
- * @beta This hook is in beta
879
- */
880
813
  declare function useEditorAccessRequestHandler(): {
881
814
  requestStatus: string;
882
815
  requestedBy: User;
883
816
  } | null;
884
- /**
885
- * @beta This hook is in beta
886
- */
887
817
  declare function useLiveState<T>(liveStateDataId: string, initialValue?: any, options?: {
888
818
  syncDuration?: number;
889
819
  resetLiveState?: boolean;
890
820
  }): [T, (value: T) => void];
891
821
 
892
- /**
893
- * @beta This hook is in beta
894
- */
895
822
  declare function usePresenceUtils(): PresenceElement | undefined;
896
- /**
897
- * @beta This hook is in beta
898
- */
899
823
  declare function usePresenceUsers(): PresenceUser[] | null;
900
824
 
901
- /**
902
- * @beta This hook is in beta
903
- */
904
825
  declare function useRecorderUtils(): RecorderElement | undefined;
905
- /**
906
- * @beta This hook is in beta
907
- */
908
826
  declare function useRecorderAddHandler(): any;
909
827
 
910
- /**
911
- * @beta This hook is in beta
912
- */
913
828
  declare function useAIRewriterUtils(): RewriterElement | undefined;
914
829
 
915
- /**
916
- * @beta This hook is in beta
917
- */
918
830
  declare function useLiveSelectionUtils(): SelectionElement | undefined;
919
831
 
920
- /**
921
- * @beta This hook is in beta
922
- */
923
832
  declare function useTagUtils(): TagElement | undefined;
924
- /**
925
- * @beta This hook is in beta
926
- */
927
833
  declare function useTagAnnotations(documentId?: string, location?: Location$1): TagAnnotation[] | null;
928
834
 
929
- /**
930
- * @beta This hook is in beta
931
- */
932
835
  declare function useViewsUtils(): ViewsElement | undefined;
933
- /**
934
- * @beta This hook is in beta
935
- */
936
836
  declare function useUniqueViewsByUser(clientLocationId?: string): ViewsByUser | null;
937
- /**
938
- * @beta This hook is in beta
939
- */
940
837
  declare function useUniqueViewsByDate(clientLocationId?: string): ViewsByDate | null;
941
838
 
942
- /**
943
- * @beta This hook is in beta
944
- */
945
839
  declare function useNotificationUtils(): NotificationElement | undefined;
946
- /**
947
- * @beta This hook is in beta
948
- */
949
840
  declare function useNotificationsData(): Notification[] | null;
950
841
 
951
- /**
952
- * @beta This hook is in beta
953
- */
954
842
  declare function useAutocompleteUtils(): AutocompleteElement | undefined;
955
- /**
956
- * @beta This hook is in beta
957
- */
958
843
  declare function useAutocompleteChipClick(): any;
959
844
 
960
845
  declare type LiveStateMiddlewareConfig = {
@@ -968,4 +853,4 @@ declare const createLiveStateMiddleware: (config?: LiveStateMiddlewareConfig) =>
968
853
  updateLiveStateDataId: (newId?: string) => void;
969
854
  };
970
855
 
971
- export { SnippylyArrowTool as VeltArrowTool, SnippylyArrows as VeltArrows, VeltAutocomplete, VeltAutocompleteOptionWireframe, VeltChartComment, SnippylyCommentBubble as VeltCommentBubble, VeltCommentBubbleAvatar, VeltCommentBubbleCommentsCount, VeltCommentDialogWireframe, VeltCommentPinWireframe, VeltCommentPlayerTimeline, VeltCommentThread, SnippylyCommentTool as VeltCommentTool, VeltCommentToolWireframe, SnippylyComments as VeltComments, SnippylyCommentsSidebar as VeltCommentsSidebar, VeltCommentsSidebarWireframe, SnippylyCursor as VeltCursor, VeltHighChartComments, SnippylyHuddle as VeltHuddle, SnippylyHuddleTool as VeltHuddleTool, VeltNivoChartComments, VeltNotificationsHistoryPanel, VeltNotificationsPanel, VeltNotificationsTool, SnippylyPresence as VeltPresence, SnippylyProvider as VeltProvider, SnippylyRecorderControlPanel as VeltRecorderControlPanel, SnippylyRecorderNotes as VeltRecorderNotes, SnippylyRecorderPlayer as VeltRecorderPlayer, SnippylyRecorderTool as VeltRecorderTool, SnippylySidebarButton as VeltSidebarButton, VeltSidebarButtonWireframe, SnippylyTagTool as VeltTagTool, SnippylyTags as VeltTags, VeltTextCommentToolWireframe, VeltTextCommentToolbar as VeltTextCommentToolbarWireframe, SnippylyUserInviteTool as VeltUserInviteTool, SnippylyUserRequestTool as VeltUserRequestTool, VeltUserSelectorDropdown as VeltUserSelectorDropdownWireframe, VeltVideoPlayer, VeltViewAnalytics, VeltWireframe, createLiveStateMiddleware, useAIRewriterUtils, useAddLocation, useAutocompleteChipClick, useAutocompleteUtils, useClient, useCommentAddHandler, useCommentAnnotations, useCommentDialogSidebarClickHandler, useCommentModeState, useCommentUpdateHandler, useCommentUtils, useCursorUsers, useCursorUtils, useEditor, useEditorAccessRequestHandler, useEditorAccessTimer, useHuddleUtils, useIdentify, useLiveSelectionUtils, useLiveState, useLiveStateData, useLiveStateSyncUtils, useNotificationUtils, useNotificationsData, usePresenceUsers, usePresenceUtils, useRecorderAddHandler, useRecorderUtils, useSetDocumentId, useSetLiveStateData, useSetLocation, useTagAnnotations, useTagUtils, useUniqueViewsByDate, useUniqueViewsByUser, useUnsetDocumentId, useUserEditorState, useVeltClient, useViewsUtils };
856
+ export { SnippylyArrowTool as VeltArrowTool, SnippylyArrows as VeltArrows, VeltAutocomplete, VeltAutocompleteOptionWireframe, VeltChartComment, SnippylyCommentBubble as VeltCommentBubble, VeltCommentBubbleAvatar, VeltCommentBubbleCommentsCount, VeltCommentDialogWireframe, VeltCommentPinWireframe, VeltCommentPlayerTimeline, VeltCommentThread, SnippylyCommentTool as VeltCommentTool, VeltCommentToolWireframe, SnippylyComments as VeltComments, SnippylyCommentsSidebar as VeltCommentsSidebar, VeltCommentsSidebarWireframe, SnippylyCursor as VeltCursor, VeltHighChartComments, SnippylyHuddle as VeltHuddle, SnippylyHuddleTool as VeltHuddleTool, VeltNivoChartComments, VeltNotificationsHistoryPanel, VeltNotificationsPanel, VeltNotificationsTool, SnippylyPresence as VeltPresence, SnippylyProvider as VeltProvider, SnippylyRecorderControlPanel as VeltRecorderControlPanel, SnippylyRecorderNotes as VeltRecorderNotes, SnippylyRecorderPlayer as VeltRecorderPlayer, SnippylyRecorderTool as VeltRecorderTool, SnippylySidebarButton as VeltSidebarButton, VeltSidebarButtonWireframe, SnippylyTagTool as VeltTagTool, SnippylyTags as VeltTags, VeltTextCommentToolWireframe, VeltTextCommentToolbar as VeltTextCommentToolbarWireframe, SnippylyUserInviteTool as VeltUserInviteTool, SnippylyUserRequestTool as VeltUserRequestTool, VeltUserSelectorDropdown as VeltUserSelectorDropdownWireframe, VeltVideoPlayer, VeltViewAnalytics, VeltWireframe, createLiveStateMiddleware, useAIRewriterUtils, useAutocompleteChipClick, useAutocompleteUtils, useClient, useCommentAddHandler, useCommentAnnotations, useCommentDialogSidebarClickHandler, useCommentModeState, useCommentUpdateHandler, useCommentUtils, useCursorUsers, useCursorUtils, useEditor, useEditorAccessRequestHandler, useEditorAccessTimer, useHuddleUtils, useIdentify, useLiveSelectionUtils, useLiveState, useLiveStateData, useLiveStateSyncUtils, useNotificationUtils, useNotificationsData, usePresenceUsers, usePresenceUtils, useRecorderAddHandler, useRecorderUtils, useSetDocumentId, useSetLiveStateData, useSetLocation, useTagAnnotations, useTagUtils, useUniqueViewsByDate, useUniqueViewsByUser, useUnsetDocumentId, useUserEditorState, useVeltClient, useViewsUtils };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/react",
3
- "version": "1.0.120",
3
+ "version": "1.0.121",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",