@deepdesk/deepdesk-sdk 19.2.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 +8 -8
- package/dist/index.d.mts +12 -1
- package/dist/index.d.ts +12 -1
- package/dist/index.esm.js +8 -8
- package/dist/index.iife.js +48 -48
- package/package.json +1 -1
- package/styles/index.js +1 -1
- package/styles.css +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -205,7 +205,8 @@ declare enum Sources {
|
|
|
205
205
|
PERSONAL_COLLECTION_SEARCH = "personal-collection-search",
|
|
206
206
|
SEARCH_OVERLAY = "search-overlay",
|
|
207
207
|
SEARCH_PREVIEW = "search-preview",
|
|
208
|
-
SEARCH_URL = "search-url"
|
|
208
|
+
SEARCH_URL = "search-url",
|
|
209
|
+
STYLE = "style"
|
|
209
210
|
}
|
|
210
211
|
declare enum InputType {
|
|
211
212
|
ENTER = "enter",
|
|
@@ -1208,6 +1209,7 @@ interface InputEventMap {
|
|
|
1208
1209
|
change: (event: {
|
|
1209
1210
|
plainText: string;
|
|
1210
1211
|
rawHTML: string | null;
|
|
1212
|
+
suggestionTextStart: number;
|
|
1211
1213
|
}) => void;
|
|
1212
1214
|
/**
|
|
1213
1215
|
* Emits selection changes.
|
|
@@ -1243,6 +1245,7 @@ declare abstract class InputMediator<HTMLElementType extends HTMLElement> {
|
|
|
1243
1245
|
protected eventListeners: Partial<InputEventListeners<keyof InputEventMap>>;
|
|
1244
1246
|
protected disposeHandlers: (() => void)[];
|
|
1245
1247
|
protected cachedText: string;
|
|
1248
|
+
protected cachedSuggestionTextStart: number;
|
|
1246
1249
|
protected cachedCaretPosition: CaretPosition | null;
|
|
1247
1250
|
protected cachedSelection: SelectionRange;
|
|
1248
1251
|
protected cachedHTML: string | null;
|
|
@@ -1265,6 +1268,7 @@ declare abstract class InputMediator<HTMLElementType extends HTMLElement> {
|
|
|
1265
1268
|
abstract getHTML(): string | null;
|
|
1266
1269
|
abstract getSelection(): SelectionRange;
|
|
1267
1270
|
abstract getCaretPosition(): CaretPosition | null;
|
|
1271
|
+
getSuggestionTextStart(): number;
|
|
1268
1272
|
focus(): void;
|
|
1269
1273
|
emit<K extends keyof InputEventMap>(type: K, ...args: Parameters<InputHandler<K>>): void;
|
|
1270
1274
|
on<K extends keyof InputEventMap>(type: K, handler: InputHandler<K>): void;
|
|
@@ -1303,6 +1307,7 @@ type MetricState = {
|
|
|
1303
1307
|
type State$7 = {
|
|
1304
1308
|
text: string;
|
|
1305
1309
|
html: string | null;
|
|
1310
|
+
suggestionTextStart: number;
|
|
1306
1311
|
selection: SelectionRange;
|
|
1307
1312
|
beforeInputChange: {
|
|
1308
1313
|
text: string;
|
|
@@ -1383,6 +1388,7 @@ declare const reducers: redux.Reducer<{
|
|
|
1383
1388
|
showSearch: boolean;
|
|
1384
1389
|
showImageSearch: boolean;
|
|
1385
1390
|
showStyleSuggestions: boolean | number;
|
|
1391
|
+
showStyleSuggestionList: boolean;
|
|
1386
1392
|
showMidSentenceSuggestions: boolean;
|
|
1387
1393
|
showSuggestionsBeforePattern: string | false;
|
|
1388
1394
|
showSuggestionsAfterPattern: string | false;
|
|
@@ -1447,6 +1453,7 @@ declare const reducers: redux.Reducer<{
|
|
|
1447
1453
|
showSearch: boolean;
|
|
1448
1454
|
showImageSearch: boolean;
|
|
1449
1455
|
showStyleSuggestions: boolean | number;
|
|
1456
|
+
showStyleSuggestionList: boolean;
|
|
1450
1457
|
showMidSentenceSuggestions: boolean;
|
|
1451
1458
|
showSuggestionsBeforePattern: string | false;
|
|
1452
1459
|
showSuggestionsAfterPattern: string | false;
|
|
@@ -1512,6 +1519,7 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit.EnhancedStor
|
|
|
1512
1519
|
showSearch: boolean;
|
|
1513
1520
|
showImageSearch: boolean;
|
|
1514
1521
|
showStyleSuggestions: boolean | number;
|
|
1522
|
+
showStyleSuggestionList: boolean;
|
|
1515
1523
|
showMidSentenceSuggestions: boolean;
|
|
1516
1524
|
showSuggestionsBeforePattern: string | false;
|
|
1517
1525
|
showSuggestionsAfterPattern: string | false;
|
|
@@ -1930,6 +1938,7 @@ type State = {
|
|
|
1930
1938
|
showSearch: boolean;
|
|
1931
1939
|
showImageSearch: boolean;
|
|
1932
1940
|
showStyleSuggestions: boolean | number;
|
|
1941
|
+
showStyleSuggestionList: boolean;
|
|
1933
1942
|
showMidSentenceSuggestions: boolean;
|
|
1934
1943
|
showSuggestionsBeforePattern: string | false;
|
|
1935
1944
|
showSuggestionsAfterPattern: string | false;
|
|
@@ -2129,6 +2138,7 @@ declare class DeepdeskSDK {
|
|
|
2129
2138
|
showSearch: boolean;
|
|
2130
2139
|
showImageSearch: boolean;
|
|
2131
2140
|
showStyleSuggestions: boolean | number;
|
|
2141
|
+
showStyleSuggestionList: boolean;
|
|
2132
2142
|
showMidSentenceSuggestions: boolean;
|
|
2133
2143
|
showSuggestionsBeforePattern: string | false;
|
|
2134
2144
|
showSuggestionsAfterPattern: string | false;
|
|
@@ -2176,6 +2186,7 @@ declare class DeepdeskSDK {
|
|
|
2176
2186
|
showSearch: boolean;
|
|
2177
2187
|
showImageSearch: boolean;
|
|
2178
2188
|
showStyleSuggestions: boolean | number;
|
|
2189
|
+
showStyleSuggestionList: boolean;
|
|
2179
2190
|
showMidSentenceSuggestions: boolean;
|
|
2180
2191
|
showSuggestionsBeforePattern: string | false;
|
|
2181
2192
|
showSuggestionsAfterPattern: string | false;
|
package/dist/index.d.ts
CHANGED
|
@@ -205,7 +205,8 @@ declare enum Sources {
|
|
|
205
205
|
PERSONAL_COLLECTION_SEARCH = "personal-collection-search",
|
|
206
206
|
SEARCH_OVERLAY = "search-overlay",
|
|
207
207
|
SEARCH_PREVIEW = "search-preview",
|
|
208
|
-
SEARCH_URL = "search-url"
|
|
208
|
+
SEARCH_URL = "search-url",
|
|
209
|
+
STYLE = "style"
|
|
209
210
|
}
|
|
210
211
|
declare enum InputType {
|
|
211
212
|
ENTER = "enter",
|
|
@@ -1208,6 +1209,7 @@ interface InputEventMap {
|
|
|
1208
1209
|
change: (event: {
|
|
1209
1210
|
plainText: string;
|
|
1210
1211
|
rawHTML: string | null;
|
|
1212
|
+
suggestionTextStart: number;
|
|
1211
1213
|
}) => void;
|
|
1212
1214
|
/**
|
|
1213
1215
|
* Emits selection changes.
|
|
@@ -1243,6 +1245,7 @@ declare abstract class InputMediator<HTMLElementType extends HTMLElement> {
|
|
|
1243
1245
|
protected eventListeners: Partial<InputEventListeners<keyof InputEventMap>>;
|
|
1244
1246
|
protected disposeHandlers: (() => void)[];
|
|
1245
1247
|
protected cachedText: string;
|
|
1248
|
+
protected cachedSuggestionTextStart: number;
|
|
1246
1249
|
protected cachedCaretPosition: CaretPosition | null;
|
|
1247
1250
|
protected cachedSelection: SelectionRange;
|
|
1248
1251
|
protected cachedHTML: string | null;
|
|
@@ -1265,6 +1268,7 @@ declare abstract class InputMediator<HTMLElementType extends HTMLElement> {
|
|
|
1265
1268
|
abstract getHTML(): string | null;
|
|
1266
1269
|
abstract getSelection(): SelectionRange;
|
|
1267
1270
|
abstract getCaretPosition(): CaretPosition | null;
|
|
1271
|
+
getSuggestionTextStart(): number;
|
|
1268
1272
|
focus(): void;
|
|
1269
1273
|
emit<K extends keyof InputEventMap>(type: K, ...args: Parameters<InputHandler<K>>): void;
|
|
1270
1274
|
on<K extends keyof InputEventMap>(type: K, handler: InputHandler<K>): void;
|
|
@@ -1303,6 +1307,7 @@ type MetricState = {
|
|
|
1303
1307
|
type State$7 = {
|
|
1304
1308
|
text: string;
|
|
1305
1309
|
html: string | null;
|
|
1310
|
+
suggestionTextStart: number;
|
|
1306
1311
|
selection: SelectionRange;
|
|
1307
1312
|
beforeInputChange: {
|
|
1308
1313
|
text: string;
|
|
@@ -1383,6 +1388,7 @@ declare const reducers: redux.Reducer<{
|
|
|
1383
1388
|
showSearch: boolean;
|
|
1384
1389
|
showImageSearch: boolean;
|
|
1385
1390
|
showStyleSuggestions: boolean | number;
|
|
1391
|
+
showStyleSuggestionList: boolean;
|
|
1386
1392
|
showMidSentenceSuggestions: boolean;
|
|
1387
1393
|
showSuggestionsBeforePattern: string | false;
|
|
1388
1394
|
showSuggestionsAfterPattern: string | false;
|
|
@@ -1447,6 +1453,7 @@ declare const reducers: redux.Reducer<{
|
|
|
1447
1453
|
showSearch: boolean;
|
|
1448
1454
|
showImageSearch: boolean;
|
|
1449
1455
|
showStyleSuggestions: boolean | number;
|
|
1456
|
+
showStyleSuggestionList: boolean;
|
|
1450
1457
|
showMidSentenceSuggestions: boolean;
|
|
1451
1458
|
showSuggestionsBeforePattern: string | false;
|
|
1452
1459
|
showSuggestionsAfterPattern: string | false;
|
|
@@ -1512,6 +1519,7 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit.EnhancedStor
|
|
|
1512
1519
|
showSearch: boolean;
|
|
1513
1520
|
showImageSearch: boolean;
|
|
1514
1521
|
showStyleSuggestions: boolean | number;
|
|
1522
|
+
showStyleSuggestionList: boolean;
|
|
1515
1523
|
showMidSentenceSuggestions: boolean;
|
|
1516
1524
|
showSuggestionsBeforePattern: string | false;
|
|
1517
1525
|
showSuggestionsAfterPattern: string | false;
|
|
@@ -1930,6 +1938,7 @@ type State = {
|
|
|
1930
1938
|
showSearch: boolean;
|
|
1931
1939
|
showImageSearch: boolean;
|
|
1932
1940
|
showStyleSuggestions: boolean | number;
|
|
1941
|
+
showStyleSuggestionList: boolean;
|
|
1933
1942
|
showMidSentenceSuggestions: boolean;
|
|
1934
1943
|
showSuggestionsBeforePattern: string | false;
|
|
1935
1944
|
showSuggestionsAfterPattern: string | false;
|
|
@@ -2129,6 +2138,7 @@ declare class DeepdeskSDK {
|
|
|
2129
2138
|
showSearch: boolean;
|
|
2130
2139
|
showImageSearch: boolean;
|
|
2131
2140
|
showStyleSuggestions: boolean | number;
|
|
2141
|
+
showStyleSuggestionList: boolean;
|
|
2132
2142
|
showMidSentenceSuggestions: boolean;
|
|
2133
2143
|
showSuggestionsBeforePattern: string | false;
|
|
2134
2144
|
showSuggestionsAfterPattern: string | false;
|
|
@@ -2176,6 +2186,7 @@ declare class DeepdeskSDK {
|
|
|
2176
2186
|
showSearch: boolean;
|
|
2177
2187
|
showImageSearch: boolean;
|
|
2178
2188
|
showStyleSuggestions: boolean | number;
|
|
2189
|
+
showStyleSuggestionList: boolean;
|
|
2179
2190
|
showMidSentenceSuggestions: boolean;
|
|
2180
2191
|
showSuggestionsBeforePattern: string | false;
|
|
2181
2192
|
showSuggestionsAfterPattern: string | false;
|