@veltdev/react 4.2.0-beta.5 → 4.2.0
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 +3 -3
- package/cjs/index.js.map +1 -1
- package/cjs/types/components/SnippylyComments/SnippylyComments.d.ts +2 -2
- package/cjs/types/constants.d.ts +1 -1
- package/cjs/types/hooks/CommentElement.d.ts +2 -2
- package/esm/index.js +3 -3
- package/esm/index.js.map +1 -1
- package/esm/types/components/SnippylyComments/SnippylyComments.d.ts +2 -2
- package/esm/types/constants.d.ts +1 -1
- package/esm/types/hooks/CommentElement.d.ts +2 -2
- package/index.d.ts +4 -4
- package/package.json +1 -1
|
@@ -70,12 +70,12 @@ export interface IVeltCommentsProps extends React.DetailedHTMLProps<React.HTMLAt
|
|
|
70
70
|
commentPinHighlighter?: boolean;
|
|
71
71
|
customReactions?: ReactionMap;
|
|
72
72
|
/**
|
|
73
|
-
* @
|
|
73
|
+
* @legacy Use `useAddCommentAnnotation` event hook instead.
|
|
74
74
|
*/
|
|
75
75
|
onCommentAdd?: Function;
|
|
76
76
|
onCustomPinInject?: Function;
|
|
77
77
|
/**
|
|
78
|
-
* @
|
|
78
|
+
* @legacy Use respective update events hooks instead.
|
|
79
79
|
*/
|
|
80
80
|
onCommentUpdate?: Function;
|
|
81
81
|
onCommentAccept?: Function;
|
package/cjs/types/constants.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const VELT_SDK_VERSION = "4.2.0
|
|
2
|
+
export declare const VELT_SDK_VERSION = "4.2.0";
|
|
3
3
|
export declare const VELT_SDK_INIT_EVENT = "onVeltInit";
|
|
4
4
|
export declare const VELT_TAB_ID = "veltTabId";
|
|
5
5
|
export interface IVeltWireframeCommonProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
@@ -8,11 +8,11 @@ export declare function useUnreadCommentCountByLocationId(locationId: string): U
|
|
|
8
8
|
export declare function useUnreadCommentAnnotationCountByLocationId(locationId: string): UnreadCommentsCount;
|
|
9
9
|
export declare function useCommentModeState(): boolean | undefined;
|
|
10
10
|
/**
|
|
11
|
-
* @
|
|
11
|
+
* @legacy Use `useCommentEventCallback('addCommentAnnotation')` event hook instead.
|
|
12
12
|
*/
|
|
13
13
|
export declare function useCommentAddHandler(): CommentAddEventData | undefined;
|
|
14
14
|
/**
|
|
15
|
-
* @
|
|
15
|
+
* @legacy Use `useCommentEventCallback` event hook instead.
|
|
16
16
|
*/
|
|
17
17
|
export declare function useCommentUpdateHandler(): CommentUpdateEventData | undefined;
|
|
18
18
|
export declare function useCommentDialogSidebarClickHandler(): any;
|
package/esm/index.js
CHANGED
|
@@ -132,7 +132,7 @@ var loadVelt = function (callback, version, staging, develop, proxyDomain) {
|
|
|
132
132
|
}
|
|
133
133
|
};
|
|
134
134
|
|
|
135
|
-
var VELT_SDK_VERSION = '4.2.0
|
|
135
|
+
var VELT_SDK_VERSION = '4.2.0';
|
|
136
136
|
var VELT_SDK_INIT_EVENT = 'onVeltInit';
|
|
137
137
|
var VELT_TAB_ID = 'veltTabId';
|
|
138
138
|
|
|
@@ -5241,7 +5241,7 @@ function useCommentModeState() {
|
|
|
5241
5241
|
return data;
|
|
5242
5242
|
}
|
|
5243
5243
|
/**
|
|
5244
|
-
* @
|
|
5244
|
+
* @legacy Use `useCommentEventCallback('addCommentAnnotation')` event hook instead.
|
|
5245
5245
|
*/
|
|
5246
5246
|
function useCommentAddHandler() {
|
|
5247
5247
|
var commentElement = useCommentUtils();
|
|
@@ -5259,7 +5259,7 @@ function useCommentAddHandler() {
|
|
|
5259
5259
|
return data;
|
|
5260
5260
|
}
|
|
5261
5261
|
/**
|
|
5262
|
-
* @
|
|
5262
|
+
* @legacy Use `useCommentEventCallback` event hook instead.
|
|
5263
5263
|
*/
|
|
5264
5264
|
function useCommentUpdateHandler() {
|
|
5265
5265
|
var commentElement = useCommentUtils();
|