@veltdev/types-dev 6.0.17-beta.1 → 6.0.18

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.
@@ -66,6 +66,13 @@ export interface PartialCommentAnnotationResult {
66
66
  } | null;
67
67
  originalData: CommentAnnotation | null;
68
68
  eventType?: ResolverActions | CommentResolverSaveEvent;
69
+ /**
70
+ * INTERNAL (SDK write path only, never sent to a resolver). True when `originalData` still
71
+ * carries `context.textEditorConfig.text` on purpose: the row is a legacy one whose resolver
72
+ * copy does not hold the anchor yet and this save is not a core event that hands it over.
73
+ * `CommonDbUtilsService` forwards it to the Velt-DB filter as `keepContextText`.
74
+ */
75
+ veltCopyKeepsContextText?: boolean;
69
76
  }
70
77
  export interface PartialTargetTextRange {
71
78
  text: string;
@@ -78,6 +85,22 @@ export interface PartialCommentAnnotation {
78
85
  };
79
86
  from?: PartialUser;
80
87
  assignedTo?: PartialUser;
88
+ /**
89
+ * The TipTap anchor text (`context.textEditorConfig.text`) — the highlighted sentence a
90
+ * text comment created through `@veltdev/tiptap-velt-comments` is attached to. Moved here
91
+ * from the annotation's `context` blob (which is otherwise customer-owned and stays in
92
+ * Velt) and merged back on read; the same PII class as `targetTextRange.text`. Present
93
+ * only when the annotation carries it (PM-2026-09-29-self-hosting-pii-egress-side-channels).
94
+ * When `context` itself is listed in `fieldsToRemove`, the WHOLE context object travels
95
+ * here instead.
96
+ */
97
+ context?: {
98
+ textEditorConfig?: {
99
+ text?: string;
100
+ [key: string]: any;
101
+ };
102
+ [key: string]: any;
103
+ };
81
104
  targetTextRange?: PartialTargetTextRange;
82
105
  resolvedByUserId?: string | null;
83
106
  [key: string]: any;
@@ -1394,8 +1394,8 @@ export declare class CommentElement {
1394
1394
  /**
1395
1395
  * To enable id-scoped anchoring for comment pins. When a pin's saved xpath is rooted at an
1396
1396
  * element id, that id is authoritative: the pin is placed only inside that element (on its
1397
- * saved child path, else on the nearest element under the id that still exists), and is not
1398
- * shown where the id is absent. New pins also skip framework-generated ids (React `useId`,
1397
+ * saved path, else on the id element itself with the saved position percentages), and is not
1398
+ * shown where the id is absent, duplicated or hidden. New pins also skip framework-generated ids (React `useId`,
1399
1399
  * Radix) when choosing the id to root at. Applies to existing pins. Defaults to disabled.
1400
1400
  */
1401
1401
  public enableIdScopedAnchoring: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/types-dev",
3
- "version": "6.0.17-beta.1",
3
+ "version": "6.0.18",
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": [