@veltdev/react 6.0.0-beta.1 → 6.0.0-beta.3
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 +10 -44
- package/cjs/index.js.map +1 -1
- package/cjs/types/components/SnippylyComments/SnippylyComments.d.ts +8 -0
- package/cjs/types/components/VeltCommentsSidebarV2/VeltCommentsSidebarV2.d.ts +0 -17
- package/cjs/types/constants.d.ts +1 -1
- package/esm/index.js +10 -44
- package/esm/index.js.map +1 -1
- package/esm/types/components/SnippylyComments/SnippylyComments.d.ts +8 -0
- package/esm/types/components/VeltCommentsSidebarV2/VeltCommentsSidebarV2.d.ts +0 -17
- package/esm/types/constants.d.ts +1 -1
- package/index.d.ts +8 -17
- package/package.json +1 -1
|
@@ -168,6 +168,14 @@ export interface IVeltCommentsProps extends React.DetailedHTMLProps<React.HTMLAt
|
|
|
168
168
|
* When true, enables them. Mirrors `anonymousEmail` on `velt-comments`.
|
|
169
169
|
*/
|
|
170
170
|
anonymousEmail?: boolean;
|
|
171
|
+
/**
|
|
172
|
+
* Controls the search scope used to re-locate a text comment's highlight.
|
|
173
|
+
* When false (default), if the stored text is not found inside the comment's anchor
|
|
174
|
+
* element the search falls back to a body-level (in-scope) search before ghosting.
|
|
175
|
+
* When true, the search is restricted to the anchor element only (no body fallback).
|
|
176
|
+
* Mirrors `restrictTextSearchToAnchor` on `velt-comments`.
|
|
177
|
+
*/
|
|
178
|
+
restrictTextSearchToAnchor?: boolean;
|
|
171
179
|
}
|
|
172
180
|
declare const SnippylyComments: React.FC<IVeltCommentsProps>;
|
|
173
181
|
export default SnippylyComments;
|
|
@@ -23,13 +23,8 @@ export interface IVeltCommentSidebarV2Props extends React.DetailedHTMLProps<Reac
|
|
|
23
23
|
excludeLocationIds?: string[];
|
|
24
24
|
sortBy?: any;
|
|
25
25
|
sortOrder?: any;
|
|
26
|
-
sortData?: 'asc' | 'desc' | 'none';
|
|
27
26
|
customActions?: boolean;
|
|
28
27
|
openAnnotationInFocusMode?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* @deprecated Use `urlNavigation` instead
|
|
31
|
-
*/
|
|
32
|
-
enableUrlNavigation?: boolean;
|
|
33
28
|
urlNavigation?: boolean;
|
|
34
29
|
queryParamsComments?: boolean;
|
|
35
30
|
fullScreen?: boolean;
|
|
@@ -56,18 +51,6 @@ export interface IVeltCommentSidebarV2Props extends React.DetailedHTMLProps<Reac
|
|
|
56
51
|
measuredSize?: number;
|
|
57
52
|
minBufferPx?: number;
|
|
58
53
|
maxBufferPx?: number;
|
|
59
|
-
onSidebarOpen?: Function;
|
|
60
|
-
/**
|
|
61
|
-
* @deprecated Use `onSidebarOpen` instead
|
|
62
|
-
*/
|
|
63
|
-
openSidebar?: Function;
|
|
64
|
-
onSidebarClose?: Function;
|
|
65
|
-
onCommentClick?: Function;
|
|
66
|
-
/**
|
|
67
|
-
* @deprecated Use `onCommentClick` instead
|
|
68
|
-
*/
|
|
69
|
-
onSidebarCommentClick?: Function;
|
|
70
|
-
onCommentNavigationButtonClick?: Function;
|
|
71
54
|
onFullscreenClick?: Function;
|
|
72
55
|
}
|
|
73
56
|
declare const VeltCommentsSidebarV2: React.FC<IVeltCommentSidebarV2Props>;
|
package/esm/types/constants.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const VELT_SDK_VERSION = "6.0.0-beta.
|
|
2
|
+
export declare const VELT_SDK_VERSION = "6.0.0-beta.3";
|
|
3
3
|
export declare const VELT_SDK_INIT_EVENT = "onVeltInit";
|
|
4
4
|
export declare const VELT_TAB_ID = "veltTabId";
|
|
5
5
|
export declare const INTEGRITY_MAP: Record<string, string>;
|
package/index.d.ts
CHANGED
|
@@ -224,6 +224,14 @@ interface IVeltCommentsProps extends React$1.DetailedHTMLProps<React$1.HTMLAttri
|
|
|
224
224
|
* When true, enables them. Mirrors `anonymousEmail` on `velt-comments`.
|
|
225
225
|
*/
|
|
226
226
|
anonymousEmail?: boolean;
|
|
227
|
+
/**
|
|
228
|
+
* Controls the search scope used to re-locate a text comment's highlight.
|
|
229
|
+
* When false (default), if the stored text is not found inside the comment's anchor
|
|
230
|
+
* element the search falls back to a body-level (in-scope) search before ghosting.
|
|
231
|
+
* When true, the search is restricted to the anchor element only (no body fallback).
|
|
232
|
+
* Mirrors `restrictTextSearchToAnchor` on `velt-comments`.
|
|
233
|
+
*/
|
|
234
|
+
restrictTextSearchToAnchor?: boolean;
|
|
227
235
|
}
|
|
228
236
|
declare const SnippylyComments: React$1.FC<IVeltCommentsProps>;
|
|
229
237
|
|
|
@@ -1650,13 +1658,8 @@ interface IVeltCommentSidebarV2Props extends React$1.DetailedHTMLProps<React$1.H
|
|
|
1650
1658
|
excludeLocationIds?: string[];
|
|
1651
1659
|
sortBy?: any;
|
|
1652
1660
|
sortOrder?: any;
|
|
1653
|
-
sortData?: 'asc' | 'desc' | 'none';
|
|
1654
1661
|
customActions?: boolean;
|
|
1655
1662
|
openAnnotationInFocusMode?: boolean;
|
|
1656
|
-
/**
|
|
1657
|
-
* @deprecated Use `urlNavigation` instead
|
|
1658
|
-
*/
|
|
1659
|
-
enableUrlNavigation?: boolean;
|
|
1660
1663
|
urlNavigation?: boolean;
|
|
1661
1664
|
queryParamsComments?: boolean;
|
|
1662
1665
|
fullScreen?: boolean;
|
|
@@ -1683,18 +1686,6 @@ interface IVeltCommentSidebarV2Props extends React$1.DetailedHTMLProps<React$1.H
|
|
|
1683
1686
|
measuredSize?: number;
|
|
1684
1687
|
minBufferPx?: number;
|
|
1685
1688
|
maxBufferPx?: number;
|
|
1686
|
-
onSidebarOpen?: Function;
|
|
1687
|
-
/**
|
|
1688
|
-
* @deprecated Use `onSidebarOpen` instead
|
|
1689
|
-
*/
|
|
1690
|
-
openSidebar?: Function;
|
|
1691
|
-
onSidebarClose?: Function;
|
|
1692
|
-
onCommentClick?: Function;
|
|
1693
|
-
/**
|
|
1694
|
-
* @deprecated Use `onCommentClick` instead
|
|
1695
|
-
*/
|
|
1696
|
-
onSidebarCommentClick?: Function;
|
|
1697
|
-
onCommentNavigationButtonClick?: Function;
|
|
1698
1689
|
onFullscreenClick?: Function;
|
|
1699
1690
|
}
|
|
1700
1691
|
declare const VeltCommentsSidebarV2: React$1.FC<IVeltCommentSidebarV2Props>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/react",
|
|
3
|
-
"version": "6.0.0-beta.
|
|
3
|
+
"version": "6.0.0-beta.3",
|
|
4
4
|
"description": "Velt is an SDK to add collaborative features to your product within minutes. Example: Comments like Figma, Frame.io, Google docs or sheets, Recording like Loom, Huddles like Slack and much more.",
|
|
5
5
|
"homepage": "https://velt.dev",
|
|
6
6
|
"keywords": [
|