@veltdev/sdk 5.0.2-beta.17 → 5.0.2-beta.19
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.
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { TargetTextRange } from './target-text-range.data.model';
|
|
2
2
|
import { RewriterEventTypes } from '../../utils/enums';
|
|
3
|
+
export type OpenAiModel = 'gpt-5.4' | 'gpt-5.4-pro' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5' | 'gpt-4.1' | 'gpt-4o' | 'gpt-4o-mini' | 'gpt-4-turbo' | 'o3-pro' | 'o3' | 'o3-mini' | 'o4-mini';
|
|
4
|
+
export type AnthropicModel = 'claude-opus-4-6' | 'claude-sonnet-4-6' | 'claude-haiku-4-5' | 'claude-sonnet-4-5' | 'claude-opus-4-5' | 'claude-opus-4-1' | 'claude-sonnet-4-0' | 'claude-opus-4-0';
|
|
5
|
+
export type GeminiModel = 'gemini-3.1-pro-preview' | 'gemini-3-flash-preview' | 'gemini-3.1-flash-lite-preview' | 'gemini-2.5-flash' | 'gemini-2.5-flash-lite' | 'gemini-2.5-pro';
|
|
6
|
+
export type AiModel = OpenAiModel | AnthropicModel | GeminiModel | (string & NonNullable<unknown>);
|
|
3
7
|
export interface TextSelectedEvent {
|
|
4
8
|
selectionId: string;
|
|
5
9
|
text: string;
|
|
6
10
|
targetTextRange: TargetTextRange;
|
|
7
11
|
}
|
|
8
12
|
export interface RewriterAskAiRequest {
|
|
9
|
-
model:
|
|
13
|
+
model: AiModel;
|
|
10
14
|
prompt: string;
|
|
11
15
|
selectedText: string;
|
|
12
16
|
}
|
|
@@ -9,6 +9,16 @@ export declare class RewriterElement {
|
|
|
9
9
|
* To disable rewriter feature
|
|
10
10
|
*/
|
|
11
11
|
disableRewriter: () => void;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* To enable the default rewriter UI on text selection
|
|
15
|
+
*/
|
|
16
|
+
enableDefaultUI: () => void;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* To disable the default rewriter UI on text selection
|
|
20
|
+
*/
|
|
21
|
+
disableDefaultUI: () => void;
|
|
12
22
|
constructor();
|
|
13
23
|
|
|
14
24
|
/**
|
|
@@ -20,4 +30,14 @@ export declare class RewriterElement {
|
|
|
20
30
|
* To disable rewriter feature
|
|
21
31
|
*/
|
|
22
32
|
private _disableRewriter;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* To enable the default rewriter UI on text selection
|
|
36
|
+
*/
|
|
37
|
+
private _enableDefaultUI;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* To disable the default rewriter UI on text selection
|
|
41
|
+
*/
|
|
42
|
+
private _disableDefaultUI;
|
|
23
43
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/sdk",
|
|
3
|
-
"version": "5.0.2-beta.
|
|
3
|
+
"version": "5.0.2-beta.19",
|
|
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": [
|