@veltdev/sdk-dev 5.0.2-beta.44 → 5.0.2-beta.45
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.
- package/app/models/element/rewriter-element.model.d.ts +20 -52
- package/package.json +1 -1
- package/velt.js +55 -55
|
@@ -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.45",
|
|
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": [
|