@veltdev/sdk-dev 5.0.2-beta.45 → 5.0.2-beta.46

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
  }
@@ -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/sdk-dev",
3
- "version": "5.0.2-beta.45",
3
+ "version": "5.0.2-beta.46",
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": [