@veltdev/sdk-dev 5.0.2-beta.44 → 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
|
|
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
|
|
66
|
+
removeUser: (request: { user: Partial<PresenceUser>, localOnly?: boolean }) => void;
|
|
66
67
|
|
|
67
68
|
constructor();
|
|
68
69
|
/**
|
|
@@ -1,55 +1,23 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
|
-
import { Observable } from "rxjs";
|
|
3
|
-
import { RewriterAskAiRequest, RewriterAskAiResponse, RewriterReplaceTextRequest, RewriterReplaceTextResponse, RewriterAddCommentRequest, RewriterAddCommentResponse, RewriterEventTypesMap } from "../data/rewriter-events.data.model";
|
|
4
2
|
export declare class RewriterElement {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
*/
|
|
16
|
-
on: <T extends keyof RewriterEventTypesMap>(action: T) => Observable<RewriterEventTypesMap[T]>;
|
|
17
|
-
/**
|
|
18
|
-
* Call AI with the currently selected text
|
|
19
|
-
*/
|
|
20
|
-
askAi: (request: RewriterAskAiRequest) => Promise<RewriterAskAiResponse>;
|
|
21
|
-
/**
|
|
22
|
-
* Replace the selected text in the DOM with the given text
|
|
23
|
-
*/
|
|
24
|
-
replaceText: (request: RewriterReplaceTextRequest) => Promise<RewriterReplaceTextResponse>;
|
|
25
|
-
/**
|
|
26
|
-
* Add a comment annotation on the selected text with the given text as comment body
|
|
27
|
-
*/
|
|
28
|
-
addComment: (request: RewriterAddCommentRequest) => Promise<RewriterAddCommentResponse>;
|
|
29
|
-
constructor();
|
|
30
|
-
/**
|
|
31
|
-
* To enable rewriter feature
|
|
32
|
-
*/
|
|
33
|
-
private _enableRewriter;
|
|
34
|
-
/**
|
|
35
|
-
* To disable rewriter feature
|
|
36
|
-
*/
|
|
37
|
-
private _disableRewriter;
|
|
38
|
-
/**
|
|
39
|
-
* Subscribe to rewriter events
|
|
40
|
-
*/
|
|
41
|
-
private _on;
|
|
42
|
-
/**
|
|
43
|
-
* Call AI with the selected text
|
|
44
|
-
*/
|
|
45
|
-
private _askAi;
|
|
46
|
-
/**
|
|
47
|
-
* Replace the selected text in the DOM with the given text
|
|
48
|
-
*/
|
|
49
|
-
private _replaceText;
|
|
50
|
-
/**
|
|
51
|
-
* Add a comment annotation on the selected text with the given text as comment body
|
|
52
|
-
*/
|
|
53
|
-
private _addComment;
|
|
54
|
-
}
|
|
3
|
+
/**
|
|
4
|
+
* To enable rewriter feature
|
|
5
|
+
*/
|
|
6
|
+
enableRewriter: () => void;
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* To disable rewriter feature
|
|
10
|
+
*/
|
|
11
|
+
disableRewriter: () => void;
|
|
12
|
+
constructor();
|
|
55
13
|
|
|
14
|
+
/**
|
|
15
|
+
* To enable rewriter feature
|
|
16
|
+
*/
|
|
17
|
+
private _enableRewriter;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* To disable rewriter feature
|
|
21
|
+
*/
|
|
22
|
+
private _disableRewriter;
|
|
23
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/sdk-dev",
|
|
3
|
-
"version": "5.0.2-beta.
|
|
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": [
|