@veltdev/types-dev 5.0.2-beta.45 → 5.0.2-beta.47

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.
@@ -83,4 +83,9 @@ export declare class PresenceUser {
83
83
  initial?: string;
84
84
  isTabAway?: boolean;
85
85
  isUserIdle?: boolean;
86
+ /**
87
+ * Whether this custom user is local-only (not persisted to DB).
88
+ * Only applicable to users added via addUser API.
89
+ */
90
+ localOnly?: boolean;
86
91
  }
@@ -1390,6 +1390,16 @@ export declare class CommentElement {
1390
1390
  */
1391
1391
  public getComposerData: (request: GetComposerDataRequest) => ComposerTextChangeEvent | null;
1392
1392
 
1393
+ /**
1394
+ * To enable pin drag
1395
+ */
1396
+ public enablePinDrag: () => void;
1397
+
1398
+ /**
1399
+ * To disable pin drag
1400
+ */
1401
+ public disablePinDrag: () => void;
1402
+
1393
1403
  constructor();
1394
1404
  /**
1395
1405
  * Subscribe to comments on the current document.
@@ -2751,4 +2761,14 @@ export declare class CommentElement {
2751
2761
  * @param type 'dropdown' | 'checkbox'
2752
2762
  */
2753
2763
  private _setAssignToType;
2764
+
2765
+ /**
2766
+ * To enable pin drag
2767
+ */
2768
+ private _enablePinDrag;
2769
+
2770
+ /**
2771
+ * To disable pin drag
2772
+ */
2773
+ private _disablePinDrag;
2754
2774
  }
@@ -56,13 +56,14 @@ export declare class PresenceElement {
56
56
  * The user will appear in presence alongside real users.
57
57
  * @param request Object containing user data with at least userId required.
58
58
  */
59
- addUser: (request: { user: Partial<PresenceUser> }) => void;
59
+ addUser: (request: { user: Partial<PresenceUser>, localOnly?: boolean }) => void;
60
60
 
61
61
  /**
62
62
  * Remove a previously added custom user from the presence list.
63
- * @param request Object containing user data with at least userId required.
63
+ * @param request Object containing user data with at least userId required, and optional localOnly flag.
64
+ * @param request.localOnly If true, user is only removed locally (not removed from DB). Default: false.
64
65
  */
65
- removeUser: (request: { user: Partial<PresenceUser> }) => void;
66
+ removeUser: (request: { user: Partial<PresenceUser>, localOnly?: boolean }) => void;
66
67
 
67
68
  constructor();
68
69
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/types-dev",
3
- "version": "5.0.2-beta.45",
3
+ "version": "5.0.2-beta.47",
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": [