@veltdev/react 2.0.26 → 2.0.28
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 +16 -3
- package/cjs/index.js.map +1 -1
- package/cjs/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCard.d.ts +2 -0
- package/cjs/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCardUnread/VeltCommentDialogThreadCardUnread.d.ts +6 -0
- package/cjs/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCardUnread/index.d.ts +1 -0
- package/cjs/types/constants.d.ts +1 -1
- package/cjs/types/hooks/Client.d.ts +2 -1
- package/cjs/types/hooks/CommentElement.d.ts +1 -1
- package/cjs/types/hooks/index.d.ts +1 -1
- package/esm/index.js +16 -4
- package/esm/index.js.map +1 -1
- package/esm/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCard.d.ts +2 -0
- package/esm/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCardUnread/VeltCommentDialogThreadCardUnread.d.ts +6 -0
- package/esm/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCardUnread/index.d.ts +1 -0
- package/esm/types/constants.d.ts +1 -1
- package/esm/types/hooks/Client.d.ts +2 -1
- package/esm/types/hooks/CommentElement.d.ts +1 -1
- package/esm/types/hooks/index.d.ts +1 -1
- package/index.d.ts +9 -3
- package/package.json +1 -1
|
@@ -9,6 +9,7 @@ import { IVeltCommentDialogThreadCardReactionToolProps } from "./VeltCommentDial
|
|
|
9
9
|
import { IVeltCommentDialogThreadCardReactionsProps } from "./VeltCommentDialogThreadCardReactions/VeltCommentDialogThreadCardReactions";
|
|
10
10
|
import { IVeltCommentDialogThreadCardRecordingsProps } from "./VeltCommentDialogThreadCardRecordings/VeltCommentDialogThreadCardRecordings";
|
|
11
11
|
import { IVeltCommentDialogThreadCardTimeProps } from "./VeltCommentDialogThreadCardTime/VeltCommentDialogThreadCardTime";
|
|
12
|
+
import { IVeltCommentDialogThreadCardUnreadProps } from "./VeltCommentDialogThreadCardUnread/VeltCommentDialogThreadCardUnread";
|
|
12
13
|
export interface IVeltCommentDialogThreadCardProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
13
14
|
variant?: string;
|
|
14
15
|
}
|
|
@@ -23,6 +24,7 @@ export interface IVeltCommentDialogThreadCard extends React.FC<IVeltCommentDialo
|
|
|
23
24
|
ReactionTool: React.FC<IVeltCommentDialogThreadCardReactionToolProps>;
|
|
24
25
|
Recordings: React.FC<IVeltCommentDialogThreadCardRecordingsProps>;
|
|
25
26
|
Time: React.FC<IVeltCommentDialogThreadCardTimeProps>;
|
|
27
|
+
Unread: React.FC<IVeltCommentDialogThreadCardUnreadProps>;
|
|
26
28
|
}
|
|
27
29
|
declare const VeltCommentDialogThreadCard: IVeltCommentDialogThreadCard;
|
|
28
30
|
export default VeltCommentDialogThreadCard;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface IVeltCommentDialogThreadCardUnreadProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
3
|
+
variant?: string;
|
|
4
|
+
}
|
|
5
|
+
declare const VeltCommentDialogThreadCardUnread: React.FC<IVeltCommentDialogThreadCardUnreadProps>;
|
|
6
|
+
export default VeltCommentDialogThreadCardUnread;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./VeltCommentDialogThreadCardUnread";
|
package/cjs/types/constants.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { Location, User, Options } from "@veltdev/types";
|
|
1
|
+
import { Location, User, Options, DocumentMetadata } from "@veltdev/types";
|
|
2
2
|
export declare function useClient(): any;
|
|
3
3
|
export declare function useIdentify(user: User, userOptions?: Options): void;
|
|
4
|
+
export declare function useSetDocument(documentId: string, documentMetadata?: DocumentMetadata): void;
|
|
4
5
|
export declare function useSetDocumentId(documentId: string): void;
|
|
5
6
|
export declare function useUnsetDocumentId(): void;
|
|
6
7
|
export declare function useSetLocation(location: Location, appendLocation?: boolean): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CommentAnnotation, CommentElement, Location, CommentSelectionChangeData } from "@veltdev/types";
|
|
2
2
|
export declare function useCommentUtils(): CommentElement | undefined;
|
|
3
|
-
export declare function useCommentAnnotations(documentId?: string, location?: Location): CommentAnnotation[] | null;
|
|
3
|
+
export declare function useCommentAnnotations(documentId?: string, location?: Location): CommentAnnotation[] | null | undefined;
|
|
4
4
|
export declare function useUnreadCommentCountByAnnotationId(annotationId: string): {
|
|
5
5
|
count: number;
|
|
6
6
|
} | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { useSetLocation, useSetDocumentId, useUnsetDocumentId, useIdentify, useClient, useVeltInitState, } from './Client';
|
|
1
|
+
export { useSetLocation, useSetDocument, useSetDocumentId, useUnsetDocumentId, useIdentify, useClient, useVeltInitState, } from './Client';
|
|
2
2
|
export { useCommentUtils, useCommentAnnotations, useCommentAddHandler, useCommentModeState, useCommentUpdateHandler, useCommentDialogSidebarClickHandler, useCommentSelectionChangeHandler, useUnreadCommentCountByAnnotationId, useUnreadCommentAnnotationCountOnCurrentDocument, useUnreadCommentCountOnCurrentDocument, useUnreadCommentAnnotationCountByLocationId, useUnreadCommentCountByLocationId, } from './CommentElement';
|
|
3
3
|
export { useCursorUtils, useCursorUsers, } from './CursorElement';
|
|
4
4
|
export { useHuddleUtils, } from './HuddleElement';
|
package/esm/index.js
CHANGED
|
@@ -113,7 +113,7 @@ var loadVelt = function (callback, version, staging, develop, proxyDomain) {
|
|
|
113
113
|
script.src = "".concat(proxyDomain, "/lib/sdk@").concat(version, "/velt.js");
|
|
114
114
|
}
|
|
115
115
|
else {
|
|
116
|
-
script.src = "https://cdn.
|
|
116
|
+
script.src = "https://cdn.velt.dev/lib/sdk@".concat(version, "/velt.js");
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
script.id = 'veltScript';
|
|
@@ -132,7 +132,7 @@ var loadVelt = function (callback, version, staging, develop, proxyDomain) {
|
|
|
132
132
|
}
|
|
133
133
|
};
|
|
134
134
|
|
|
135
|
-
var VELT_SDK_VERSION = '2.0.
|
|
135
|
+
var VELT_SDK_VERSION = '2.0.28';
|
|
136
136
|
var VELT_SDK_INIT_EVENT = 'onVeltInit';
|
|
137
137
|
var VELT_TAB_ID = 'veltTabId';
|
|
138
138
|
|
|
@@ -1896,6 +1896,11 @@ var VeltCommentDialogThreadCardTime = function (props) {
|
|
|
1896
1896
|
return (React.createElement("velt-comment-dialog-thread-card-time-wireframe", __assign({}, remainingProp), children));
|
|
1897
1897
|
};
|
|
1898
1898
|
|
|
1899
|
+
var VeltCommentDialogThreadCardUnread = function (props) {
|
|
1900
|
+
var children = props.children, remainingProp = __rest(props, ["children"]);
|
|
1901
|
+
return (React.createElement("velt-comment-dialog-thread-card-unread-wireframe", __assign({}, remainingProp), children));
|
|
1902
|
+
};
|
|
1903
|
+
|
|
1899
1904
|
// Main Thread Card component
|
|
1900
1905
|
var VeltCommentDialogThreadCard = function (props) {
|
|
1901
1906
|
var children = props.children, remainingProp = __rest(props, ["children"]);
|
|
@@ -1912,6 +1917,7 @@ VeltCommentDialogThreadCard.Reactions = VeltCommentDialogThreadCardReactions;
|
|
|
1912
1917
|
VeltCommentDialogThreadCard.ReactionTool = VeltCommentDialogThreadCardReactionTool;
|
|
1913
1918
|
VeltCommentDialogThreadCard.Recordings = VeltCommentDialogThreadCardRecordings;
|
|
1914
1919
|
VeltCommentDialogThreadCard.Time = VeltCommentDialogThreadCardTime;
|
|
1920
|
+
VeltCommentDialogThreadCard.Unread = VeltCommentDialogThreadCardUnread;
|
|
1915
1921
|
|
|
1916
1922
|
var VeltCommentDialogThreads = function (props) {
|
|
1917
1923
|
var children = props.children, remainingProp = __rest(props, ["children"]);
|
|
@@ -2924,6 +2930,12 @@ function useIdentify(user, userOptions) {
|
|
|
2924
2930
|
client && client.identify(user, userOptions);
|
|
2925
2931
|
}, [client]);
|
|
2926
2932
|
}
|
|
2933
|
+
function useSetDocument(documentId, documentMetadata) {
|
|
2934
|
+
var client = useVeltClient().client;
|
|
2935
|
+
React.useEffect(function () {
|
|
2936
|
+
client && client.setDocument(documentId, documentMetadata);
|
|
2937
|
+
}, [client]);
|
|
2938
|
+
}
|
|
2927
2939
|
function useSetDocumentId(documentId) {
|
|
2928
2940
|
var client = useVeltClient().client;
|
|
2929
2941
|
React.useEffect(function () {
|
|
@@ -2971,7 +2983,7 @@ function useCommentUtils() {
|
|
|
2971
2983
|
}
|
|
2972
2984
|
function useCommentAnnotations(documentId, location) {
|
|
2973
2985
|
var commentElement = useCommentUtils();
|
|
2974
|
-
var _a = React.useState(
|
|
2986
|
+
var _a = React.useState(undefined), data = _a[0], setData = _a[1];
|
|
2975
2987
|
useEffect(function () {
|
|
2976
2988
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.getAllCommentAnnotations))
|
|
2977
2989
|
return;
|
|
@@ -3672,5 +3684,5 @@ var logLiveState = function (action, liveStateDataId) {
|
|
|
3672
3684
|
}
|
|
3673
3685
|
};
|
|
3674
3686
|
|
|
3675
|
-
export { SnippylyArrowTool as VeltArrowTool, SnippylyArrows as VeltArrows, VeltAutocomplete, VeltAutocompleteChipTooltipWireframe, VeltAutocompleteOptionWireframe, VeltCanvasComment, VeltChartComment, SnippylyCommentBubble as VeltCommentBubble, VeltCommentBubbleWireframe, VeltCommentDialogOptionsDropdownContentWireframe, VeltCommentDialogOptionsDropdownTriggerWireframe, VeltCommentDialogPriorityDropdownContentWireframe, VeltCommentDialogPriorityDropdownTriggerWireframe, VeltCommentDialogStatusDropdownContentWireframe, VeltCommentDialogStatusDropdownTriggerWireframe, VeltCommentDialogWireframe, VeltCommentPin, VeltCommentPinWireframe, VeltCommentPlayerTimeline, VeltCommentThread, SnippylyCommentTool as VeltCommentTool, VeltCommentToolWireframe, SnippylyComments as VeltComments, VeltCommentsMinimap, SnippylyCommentsSidebar as VeltCommentsSidebar, VeltCommentsSidebarStatusDropdownWireframe, VeltCommentsSidebarWireframe, SnippylyCursor as VeltCursor, VeltData, VeltHighChartComments, SnippylyHuddle as VeltHuddle, SnippylyHuddleTool as VeltHuddleTool, VeltInlineCommentsSection, VeltInlineCommentsSectionWireframe, VeltNivoChartComments, VeltNotificationsHistoryPanel, VeltNotificationsPanel, VeltNotificationsPanelWireframe, VeltNotificationsTool, VeltNotificationsToolWireframe, SnippylyPresence as VeltPresence, SnippylyProvider as VeltProvider, VeltReactionPinTooltipWireframe, VeltReactionPinWireframe, VeltReactionTool, VeltReactionToolWireframe, VeltReactionsPanelWireframe, 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, useCommentSelectionChangeHandler, useCommentUpdateHandler, useCommentUtils, useContactSelected, useContactUtils, useCursorUsers, useCursorUtils, useEditor, useEditorAccessRequestHandler, useEditorAccessTimer, useHuddleUtils, useIdentify, useLiveSelectionUtils, useLiveState, useLiveStateData, useLiveStateSyncUtils, useNotificationUtils, useNotificationsData, usePresenceUsers, usePresenceUtils, useRecorderAddHandler, useRecorderUtils, useServerConnectionStateChangeHandler, useSetDocumentId, useSetLiveStateData, useSetLocation, useTagAnnotations, useTagUtils, useUniqueViewsByDate, useUniqueViewsByUser, useUnreadCommentAnnotationCountByLocationId, useUnreadCommentAnnotationCountOnCurrentDocument, useUnreadCommentCountByAnnotationId, useUnreadCommentCountByLocationId, useUnreadCommentCountOnCurrentDocument, useUnsetDocumentId, useUserEditorState, useVeltClient, useVeltInitState, useViewsUtils };
|
|
3687
|
+
export { SnippylyArrowTool as VeltArrowTool, SnippylyArrows as VeltArrows, VeltAutocomplete, VeltAutocompleteChipTooltipWireframe, VeltAutocompleteOptionWireframe, VeltCanvasComment, VeltChartComment, SnippylyCommentBubble as VeltCommentBubble, VeltCommentBubbleWireframe, VeltCommentDialogOptionsDropdownContentWireframe, VeltCommentDialogOptionsDropdownTriggerWireframe, VeltCommentDialogPriorityDropdownContentWireframe, VeltCommentDialogPriorityDropdownTriggerWireframe, VeltCommentDialogStatusDropdownContentWireframe, VeltCommentDialogStatusDropdownTriggerWireframe, VeltCommentDialogWireframe, VeltCommentPin, VeltCommentPinWireframe, VeltCommentPlayerTimeline, VeltCommentThread, SnippylyCommentTool as VeltCommentTool, VeltCommentToolWireframe, SnippylyComments as VeltComments, VeltCommentsMinimap, SnippylyCommentsSidebar as VeltCommentsSidebar, VeltCommentsSidebarStatusDropdownWireframe, VeltCommentsSidebarWireframe, SnippylyCursor as VeltCursor, VeltData, VeltHighChartComments, SnippylyHuddle as VeltHuddle, SnippylyHuddleTool as VeltHuddleTool, VeltInlineCommentsSection, VeltInlineCommentsSectionWireframe, VeltNivoChartComments, VeltNotificationsHistoryPanel, VeltNotificationsPanel, VeltNotificationsPanelWireframe, VeltNotificationsTool, VeltNotificationsToolWireframe, SnippylyPresence as VeltPresence, SnippylyProvider as VeltProvider, VeltReactionPinTooltipWireframe, VeltReactionPinWireframe, VeltReactionTool, VeltReactionToolWireframe, VeltReactionsPanelWireframe, 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, useCommentSelectionChangeHandler, useCommentUpdateHandler, useCommentUtils, useContactSelected, useContactUtils, useCursorUsers, useCursorUtils, useEditor, useEditorAccessRequestHandler, useEditorAccessTimer, useHuddleUtils, useIdentify, useLiveSelectionUtils, useLiveState, useLiveStateData, useLiveStateSyncUtils, useNotificationUtils, useNotificationsData, usePresenceUsers, usePresenceUtils, useRecorderAddHandler, useRecorderUtils, useServerConnectionStateChangeHandler, useSetDocument, useSetDocumentId, useSetLiveStateData, useSetLocation, useTagAnnotations, useTagUtils, useUniqueViewsByDate, useUniqueViewsByUser, useUnreadCommentAnnotationCountByLocationId, useUnreadCommentAnnotationCountOnCurrentDocument, useUnreadCommentCountByAnnotationId, useUnreadCommentCountByLocationId, useUnreadCommentCountOnCurrentDocument, useUnsetDocumentId, useUserEditorState, useVeltClient, useVeltInitState, useViewsUtils };
|
|
3676
3688
|
//# sourceMappingURL=index.js.map
|