@veltdev/react 6.0.0-beta.2 → 6.0.0-beta.4

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.
@@ -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;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare const VELT_SDK_VERSION = "6.0.0-beta.2";
2
+ export declare const VELT_SDK_VERSION = "6.0.0-beta.4";
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/react",
3
- "version": "6.0.0-beta.2",
3
+ "version": "6.0.0-beta.4",
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": [