@deepdesk/deepdesk-sdk 19.2.1-beta.0 → 19.2.1-beta.1
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/dist/index.cjs.js +5 -5
- package/dist/index.d.mts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.esm.js +7 -7
- package/dist/index.iife.js +47 -47
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1209,6 +1209,7 @@ interface InputEventMap {
|
|
|
1209
1209
|
change: (event: {
|
|
1210
1210
|
plainText: string;
|
|
1211
1211
|
rawHTML: string | null;
|
|
1212
|
+
suggestionTextStart: number;
|
|
1212
1213
|
}) => void;
|
|
1213
1214
|
/**
|
|
1214
1215
|
* Emits selection changes.
|
|
@@ -1244,6 +1245,7 @@ declare abstract class InputMediator<HTMLElementType extends HTMLElement> {
|
|
|
1244
1245
|
protected eventListeners: Partial<InputEventListeners<keyof InputEventMap>>;
|
|
1245
1246
|
protected disposeHandlers: (() => void)[];
|
|
1246
1247
|
protected cachedText: string;
|
|
1248
|
+
protected cachedSuggestionTextStart: number;
|
|
1247
1249
|
protected cachedCaretPosition: CaretPosition | null;
|
|
1248
1250
|
protected cachedSelection: SelectionRange;
|
|
1249
1251
|
protected cachedHTML: string | null;
|
|
@@ -1266,6 +1268,7 @@ declare abstract class InputMediator<HTMLElementType extends HTMLElement> {
|
|
|
1266
1268
|
abstract getHTML(): string | null;
|
|
1267
1269
|
abstract getSelection(): SelectionRange;
|
|
1268
1270
|
abstract getCaretPosition(): CaretPosition | null;
|
|
1271
|
+
getSuggestionTextStart(): number;
|
|
1269
1272
|
focus(): void;
|
|
1270
1273
|
emit<K extends keyof InputEventMap>(type: K, ...args: Parameters<InputHandler<K>>): void;
|
|
1271
1274
|
on<K extends keyof InputEventMap>(type: K, handler: InputHandler<K>): void;
|
|
@@ -1304,6 +1307,7 @@ type MetricState = {
|
|
|
1304
1307
|
type State$7 = {
|
|
1305
1308
|
text: string;
|
|
1306
1309
|
html: string | null;
|
|
1310
|
+
suggestionTextStart: number;
|
|
1307
1311
|
selection: SelectionRange;
|
|
1308
1312
|
beforeInputChange: {
|
|
1309
1313
|
text: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1209,6 +1209,7 @@ interface InputEventMap {
|
|
|
1209
1209
|
change: (event: {
|
|
1210
1210
|
plainText: string;
|
|
1211
1211
|
rawHTML: string | null;
|
|
1212
|
+
suggestionTextStart: number;
|
|
1212
1213
|
}) => void;
|
|
1213
1214
|
/**
|
|
1214
1215
|
* Emits selection changes.
|
|
@@ -1244,6 +1245,7 @@ declare abstract class InputMediator<HTMLElementType extends HTMLElement> {
|
|
|
1244
1245
|
protected eventListeners: Partial<InputEventListeners<keyof InputEventMap>>;
|
|
1245
1246
|
protected disposeHandlers: (() => void)[];
|
|
1246
1247
|
protected cachedText: string;
|
|
1248
|
+
protected cachedSuggestionTextStart: number;
|
|
1247
1249
|
protected cachedCaretPosition: CaretPosition | null;
|
|
1248
1250
|
protected cachedSelection: SelectionRange;
|
|
1249
1251
|
protected cachedHTML: string | null;
|
|
@@ -1266,6 +1268,7 @@ declare abstract class InputMediator<HTMLElementType extends HTMLElement> {
|
|
|
1266
1268
|
abstract getHTML(): string | null;
|
|
1267
1269
|
abstract getSelection(): SelectionRange;
|
|
1268
1270
|
abstract getCaretPosition(): CaretPosition | null;
|
|
1271
|
+
getSuggestionTextStart(): number;
|
|
1269
1272
|
focus(): void;
|
|
1270
1273
|
emit<K extends keyof InputEventMap>(type: K, ...args: Parameters<InputHandler<K>>): void;
|
|
1271
1274
|
on<K extends keyof InputEventMap>(type: K, handler: InputHandler<K>): void;
|
|
@@ -1304,6 +1307,7 @@ type MetricState = {
|
|
|
1304
1307
|
type State$7 = {
|
|
1305
1308
|
text: string;
|
|
1306
1309
|
html: string | null;
|
|
1310
|
+
suggestionTextStart: number;
|
|
1307
1311
|
selection: SelectionRange;
|
|
1308
1312
|
beforeInputChange: {
|
|
1309
1313
|
text: string;
|