@deepdesk/deepdesk-sdk 10.0.0 → 10.1.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 +4 -4
- package/dist/index.d.mts +168 -142
- package/dist/index.d.ts +168 -142
- package/dist/index.esm.js +4 -4
- package/dist/index.iife.js +130 -0
- package/package.json +6 -6
- package/styles/index.js +1 -1
- package/styles.css +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -283,9 +283,9 @@ interface StoreConfig {
|
|
|
283
283
|
}
|
|
284
284
|
declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configureStore.ToolkitStore<redux.EmptyObject & {
|
|
285
285
|
activeSuggestion: State$e;
|
|
286
|
-
answer: State$
|
|
286
|
+
answer: State$c;
|
|
287
287
|
auth: State$d;
|
|
288
|
-
autoflows: State$
|
|
288
|
+
autoflows: State$6;
|
|
289
289
|
conversation: State$b;
|
|
290
290
|
contentTypes: State$a;
|
|
291
291
|
customMessages: State$9;
|
|
@@ -327,6 +327,7 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
|
|
|
327
327
|
insertLink: boolean;
|
|
328
328
|
inlineSuggestions: boolean;
|
|
329
329
|
adminUrl?: string | undefined;
|
|
330
|
+
productName: string;
|
|
330
331
|
};
|
|
331
332
|
profile: State$4;
|
|
332
333
|
search: State$3;
|
|
@@ -342,9 +343,9 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
|
|
|
342
343
|
textSuggestions: TextSuggestionState;
|
|
343
344
|
}, redux.AnyAction, _reduxjs_toolkit.ThunkMiddleware<redux.CombinedState<{
|
|
344
345
|
activeSuggestion: State$e;
|
|
345
|
-
answer: State$
|
|
346
|
+
answer: State$c;
|
|
346
347
|
auth: State$d;
|
|
347
|
-
autoflows: State$
|
|
348
|
+
autoflows: State$6;
|
|
348
349
|
conversation: State$b;
|
|
349
350
|
contentTypes: State$a;
|
|
350
351
|
customMessages: State$9;
|
|
@@ -386,6 +387,7 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
|
|
|
386
387
|
insertLink: boolean;
|
|
387
388
|
inlineSuggestions: boolean;
|
|
388
389
|
adminUrl?: string | undefined;
|
|
390
|
+
productName: string;
|
|
389
391
|
};
|
|
390
392
|
profile: State$4;
|
|
391
393
|
search: State$3;
|
|
@@ -413,47 +415,6 @@ interface State$d {
|
|
|
413
415
|
showLoginOverlay: boolean;
|
|
414
416
|
}
|
|
415
417
|
|
|
416
|
-
type Autoflow = CamelCaseKeys<Server$1.Autoflow> & {
|
|
417
|
-
isBusy?: boolean;
|
|
418
|
-
};
|
|
419
|
-
interface State$c {
|
|
420
|
-
list: Autoflow[];
|
|
421
|
-
fetchState: FetchState;
|
|
422
|
-
isInitialRequest: null | boolean;
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
interface State$b {
|
|
426
|
-
current: Conversation | null;
|
|
427
|
-
isSupported: boolean | null;
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
type ContentType = CamelCaseKeys<Server.ContentType>;
|
|
431
|
-
type State$a = {
|
|
432
|
-
data: ContentType[] | null;
|
|
433
|
-
fetchState: FetchState;
|
|
434
|
-
};
|
|
435
|
-
|
|
436
|
-
type CustomMessage = CamelCaseKeys<Server$1.CustomMessage>;
|
|
437
|
-
interface State$9 {
|
|
438
|
-
list: CustomMessage[];
|
|
439
|
-
fetchState: FetchState;
|
|
440
|
-
isInitialRequest: null | boolean;
|
|
441
|
-
sentSuggestions: string[];
|
|
442
|
-
errorSuggestions: string[];
|
|
443
|
-
answeredSuggestions: string[];
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
type State$8 = {
|
|
447
|
-
jwt: string | null;
|
|
448
|
-
accountUrl: string | null;
|
|
449
|
-
interval: NodeJS.Timer | null;
|
|
450
|
-
};
|
|
451
|
-
|
|
452
|
-
type State$7 = {
|
|
453
|
-
data: Entity[] | null;
|
|
454
|
-
fetchState: FetchState;
|
|
455
|
-
};
|
|
456
|
-
|
|
457
418
|
interface ListItemSource {
|
|
458
419
|
url?: string;
|
|
459
420
|
name: string;
|
|
@@ -461,15 +422,18 @@ interface ListItemSource {
|
|
|
461
422
|
|
|
462
423
|
interface KnowledgeAnswer {
|
|
463
424
|
answer: string;
|
|
464
|
-
timestamp: string;
|
|
465
425
|
sources: ListItemSource[];
|
|
466
426
|
}
|
|
467
427
|
interface KnowledgeRequest {
|
|
428
|
+
promptInstruction: string;
|
|
429
|
+
question: string;
|
|
430
|
+
}
|
|
431
|
+
interface KnowledgeResponse {
|
|
468
432
|
question: string;
|
|
469
433
|
answer: KnowledgeAnswer;
|
|
470
434
|
}
|
|
471
|
-
type State$
|
|
472
|
-
data:
|
|
435
|
+
type State$c = {
|
|
436
|
+
data: KnowledgeResponse[];
|
|
473
437
|
fetchState: FetchState;
|
|
474
438
|
};
|
|
475
439
|
|
|
@@ -784,6 +748,7 @@ declare namespace Server {
|
|
|
784
748
|
entities_command: boolean;
|
|
785
749
|
summarizer: boolean;
|
|
786
750
|
knowledge_search: boolean;
|
|
751
|
+
knowledge_search_prompt_instruction: string;
|
|
787
752
|
ui_config: {
|
|
788
753
|
widget: {
|
|
789
754
|
types: Array<{
|
|
@@ -799,7 +764,6 @@ declare namespace Server {
|
|
|
799
764
|
type ChatHistory = {
|
|
800
765
|
question: string;
|
|
801
766
|
answer: string;
|
|
802
|
-
timestamp: string;
|
|
803
767
|
};
|
|
804
768
|
}
|
|
805
769
|
type ConversationMessage = CamelCaseKeys<Omit<Server.ConversationMessage, 'tags'>> & {
|
|
@@ -898,7 +862,6 @@ declare class DeepdeskAPI {
|
|
|
898
862
|
options: DeepdeskAPIOptions;
|
|
899
863
|
private latestReceivedDeepdeskVersions;
|
|
900
864
|
client: HTTPClient;
|
|
901
|
-
account: string;
|
|
902
865
|
shouldFetchCsrfToken: boolean;
|
|
903
866
|
static exchangeTokenPromise: Promise<void> | null;
|
|
904
867
|
private preflight;
|
|
@@ -918,13 +881,13 @@ declare class DeepdeskAPI {
|
|
|
918
881
|
* Post converstation messages
|
|
919
882
|
*/
|
|
920
883
|
postMessages(conversationId: string, messages: CamelCaseKeys<Server.ConversationMessage>[]): Promise<({
|
|
921
|
-
text: string;
|
|
922
884
|
id: string;
|
|
923
885
|
time: string;
|
|
924
886
|
source: "agent" | "visitor" | "bot" | "system";
|
|
925
887
|
authorId: string;
|
|
926
888
|
authorName?: string | undefined;
|
|
927
889
|
authorEmail?: string | undefined;
|
|
890
|
+
text: string;
|
|
928
891
|
} & {
|
|
929
892
|
tags: Record<string, string> | null;
|
|
930
893
|
})[]>;
|
|
@@ -981,7 +944,7 @@ declare class DeepdeskAPI {
|
|
|
981
944
|
* Search
|
|
982
945
|
*/
|
|
983
946
|
search(params: SearchOptions): Promise<CamelCaseKeys<Server.SearchResultsData>>;
|
|
984
|
-
knowledgeSearch(
|
|
947
|
+
knowledgeSearch(request: KnowledgeRequest, chatHistory: KnowledgeResponse[], profile: string): Promise<CamelCaseKeys<KnowledgeAnswer>>;
|
|
985
948
|
requestLoginByEmail(email: string): Promise<{
|
|
986
949
|
code: string;
|
|
987
950
|
message: string;
|
|
@@ -993,7 +956,48 @@ declare class DeepdeskAPI {
|
|
|
993
956
|
private handleDeepdeskVersionHeaders;
|
|
994
957
|
}
|
|
995
958
|
|
|
996
|
-
|
|
959
|
+
interface State$b {
|
|
960
|
+
current: Conversation | null;
|
|
961
|
+
isSupported: boolean | null;
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
type ContentType = CamelCaseKeys<Server.ContentType>;
|
|
965
|
+
type State$a = {
|
|
966
|
+
data: ContentType[] | null;
|
|
967
|
+
fetchState: FetchState;
|
|
968
|
+
};
|
|
969
|
+
|
|
970
|
+
type CustomMessage = CamelCaseKeys<Server$1.CustomMessage>;
|
|
971
|
+
interface State$9 {
|
|
972
|
+
list: CustomMessage[];
|
|
973
|
+
fetchState: FetchState;
|
|
974
|
+
isInitialRequest: null | boolean;
|
|
975
|
+
sentSuggestions: string[];
|
|
976
|
+
errorSuggestions: string[];
|
|
977
|
+
answeredSuggestions: string[];
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
type State$8 = {
|
|
981
|
+
jwt: string | null;
|
|
982
|
+
accountUrl: string | null;
|
|
983
|
+
interval: NodeJS.Timer | null;
|
|
984
|
+
};
|
|
985
|
+
|
|
986
|
+
type State$7 = {
|
|
987
|
+
data: Entity[] | null;
|
|
988
|
+
fetchState: FetchState;
|
|
989
|
+
};
|
|
990
|
+
|
|
991
|
+
type Autoflow = CamelCaseKeys<Server$1.Autoflow> & {
|
|
992
|
+
isBusy?: boolean;
|
|
993
|
+
};
|
|
994
|
+
interface State$6 {
|
|
995
|
+
list: Autoflow[];
|
|
996
|
+
fetchState: FetchState;
|
|
997
|
+
isInitialRequest: null | boolean;
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
declare const styles$m: {
|
|
997
1001
|
readonly "isDisabled": string;
|
|
998
1002
|
readonly "buttonStart": string;
|
|
999
1003
|
readonly "root": string;
|
|
@@ -1004,9 +1008,9 @@ declare const styles$l: {
|
|
|
1004
1008
|
readonly "isAborted": string;
|
|
1005
1009
|
};
|
|
1006
1010
|
|
|
1007
|
-
type AutoflowStyles = typeof styles$
|
|
1011
|
+
type AutoflowStyles = typeof styles$m;
|
|
1008
1012
|
|
|
1009
|
-
declare const styles$
|
|
1013
|
+
declare const styles$l: {
|
|
1010
1014
|
readonly "root": string;
|
|
1011
1015
|
readonly "imageWrapper": string;
|
|
1012
1016
|
readonly "image": string;
|
|
@@ -1035,9 +1039,19 @@ interface CardComposition {
|
|
|
1035
1039
|
Content: FC<ContentProps>;
|
|
1036
1040
|
Title: FC<TitleProps>;
|
|
1037
1041
|
}
|
|
1038
|
-
type CardStyles = typeof styles$
|
|
1042
|
+
type CardStyles = typeof styles$l;
|
|
1039
1043
|
declare const Card: FC & CardComposition;
|
|
1040
1044
|
|
|
1045
|
+
declare const styles$k: {
|
|
1046
|
+
readonly "root": string;
|
|
1047
|
+
};
|
|
1048
|
+
|
|
1049
|
+
interface Props$7 {
|
|
1050
|
+
children: React.ReactNode;
|
|
1051
|
+
}
|
|
1052
|
+
type ChipStyles = typeof styles$k;
|
|
1053
|
+
declare const Chip: React.FC<Props$7>;
|
|
1054
|
+
|
|
1041
1055
|
declare const styles$j: {
|
|
1042
1056
|
readonly "root": string;
|
|
1043
1057
|
readonly "list": string;
|
|
@@ -1090,13 +1104,38 @@ type DialogStyles = typeof styles$i;
|
|
|
1090
1104
|
|
|
1091
1105
|
declare const styles$h: {
|
|
1092
1106
|
readonly "root": string;
|
|
1107
|
+
readonly "content": string;
|
|
1093
1108
|
readonly "title": string;
|
|
1094
|
-
readonly "
|
|
1109
|
+
readonly "actions": string;
|
|
1110
|
+
readonly "pagination": string;
|
|
1111
|
+
readonly "primaryButton": string;
|
|
1112
|
+
readonly "primaryButtons": string;
|
|
1095
1113
|
};
|
|
1096
1114
|
|
|
1097
|
-
type
|
|
1115
|
+
type EditSuggestionFormStyles = typeof styles$h;
|
|
1098
1116
|
|
|
1099
1117
|
declare const styles$g: {
|
|
1118
|
+
readonly "root": string;
|
|
1119
|
+
readonly "agentText": string;
|
|
1120
|
+
readonly "textInput": string;
|
|
1121
|
+
readonly "textInputWrapper": string;
|
|
1122
|
+
readonly "alert": string;
|
|
1123
|
+
readonly "alertText": string;
|
|
1124
|
+
readonly "warning": string;
|
|
1125
|
+
readonly "success": string;
|
|
1126
|
+
};
|
|
1127
|
+
|
|
1128
|
+
type EditSuggestionTextInputStyles = typeof styles$g;
|
|
1129
|
+
|
|
1130
|
+
declare const styles$f: {
|
|
1131
|
+
readonly "root": string;
|
|
1132
|
+
readonly "title": string;
|
|
1133
|
+
readonly "empty": string;
|
|
1134
|
+
};
|
|
1135
|
+
|
|
1136
|
+
type EntitiesListStyles = typeof styles$f;
|
|
1137
|
+
|
|
1138
|
+
declare const styles$e: {
|
|
1100
1139
|
readonly "root": string;
|
|
1101
1140
|
readonly "isArrowUp": string;
|
|
1102
1141
|
readonly "isArrowDown": string;
|
|
@@ -1112,37 +1151,37 @@ declare enum KeyboardHintKey {
|
|
|
1112
1151
|
ESC = "esc",
|
|
1113
1152
|
ENTER = "enter"
|
|
1114
1153
|
}
|
|
1115
|
-
type Props$
|
|
1154
|
+
type Props$6 = HTMLAttributes<HTMLSpanElement> & {
|
|
1116
1155
|
className?: string;
|
|
1117
1156
|
keyCode: KeyboardHintKey;
|
|
1118
1157
|
};
|
|
1119
|
-
type KeyboardHintStyles = typeof styles$
|
|
1120
|
-
declare const KeyboardHint: React.FC<Props$
|
|
1158
|
+
type KeyboardHintStyles = typeof styles$e;
|
|
1159
|
+
declare const KeyboardHint: React.FC<Props$6>;
|
|
1121
1160
|
|
|
1122
|
-
declare const styles$
|
|
1161
|
+
declare const styles$d: {
|
|
1123
1162
|
readonly "root": string;
|
|
1124
1163
|
};
|
|
1125
1164
|
|
|
1126
|
-
type Props$
|
|
1127
|
-
type LabelStyles = typeof styles$
|
|
1128
|
-
declare const Label: React.FC<Props$
|
|
1165
|
+
type Props$5 = HTMLAttributes<HTMLSpanElement>;
|
|
1166
|
+
type LabelStyles = typeof styles$d;
|
|
1167
|
+
declare const Label: React.FC<Props$5>;
|
|
1129
1168
|
|
|
1130
|
-
declare const styles$
|
|
1169
|
+
declare const styles$c: {
|
|
1131
1170
|
readonly "root": string;
|
|
1132
1171
|
readonly "content": string;
|
|
1133
1172
|
};
|
|
1134
1173
|
|
|
1135
|
-
type LinkSearchStyles = typeof styles$
|
|
1174
|
+
type LinkSearchStyles = typeof styles$c;
|
|
1136
1175
|
|
|
1137
|
-
declare const styles$
|
|
1176
|
+
declare const styles$b: {
|
|
1138
1177
|
readonly "root": string;
|
|
1139
1178
|
readonly "anchor": string;
|
|
1140
1179
|
readonly "anchorButton": string;
|
|
1141
1180
|
};
|
|
1142
1181
|
|
|
1143
|
-
type LoginStyles = typeof styles$
|
|
1182
|
+
type LoginStyles = typeof styles$b;
|
|
1144
1183
|
|
|
1145
|
-
declare const styles$
|
|
1184
|
+
declare const styles$a: {
|
|
1146
1185
|
readonly "root": string;
|
|
1147
1186
|
readonly "anchorButton": string;
|
|
1148
1187
|
readonly "errorMessage": string;
|
|
@@ -1155,27 +1194,16 @@ declare const styles$c: {
|
|
|
1155
1194
|
readonly "primaryButton": string;
|
|
1156
1195
|
};
|
|
1157
1196
|
|
|
1158
|
-
type LoginTokenDialogStyles = typeof styles$
|
|
1197
|
+
type LoginTokenDialogStyles = typeof styles$a;
|
|
1159
1198
|
|
|
1160
|
-
declare const styles$
|
|
1199
|
+
declare const styles$9: {
|
|
1161
1200
|
readonly "root": string;
|
|
1162
1201
|
readonly "text": string;
|
|
1163
1202
|
};
|
|
1164
1203
|
|
|
1165
|
-
type SearchTriggerStyles = typeof styles$
|
|
1166
|
-
|
|
1167
|
-
declare const styles$a: {
|
|
1168
|
-
readonly "root": string;
|
|
1169
|
-
};
|
|
1204
|
+
type SearchTriggerStyles = typeof styles$9;
|
|
1170
1205
|
|
|
1171
|
-
|
|
1172
|
-
className?: string;
|
|
1173
|
-
children?: React.ReactNode;
|
|
1174
|
-
};
|
|
1175
|
-
type SectionListStyles = typeof styles$a;
|
|
1176
|
-
declare const SectionList: React.ForwardRefExoticComponent<Props$5 & React.RefAttributes<HTMLDivElement>>;
|
|
1177
|
-
|
|
1178
|
-
declare const styles$9: {
|
|
1206
|
+
declare const styles$8: {
|
|
1179
1207
|
readonly "root": string;
|
|
1180
1208
|
readonly "subTitleContainer": string;
|
|
1181
1209
|
readonly "subtitle": string;
|
|
@@ -1185,35 +1213,19 @@ declare const styles$9: {
|
|
|
1185
1213
|
type Props$4 = HTMLAttributes<HTMLElement> & {
|
|
1186
1214
|
title?: string;
|
|
1187
1215
|
};
|
|
1188
|
-
type SectionStyles = typeof styles$
|
|
1216
|
+
type SectionStyles = typeof styles$8;
|
|
1189
1217
|
declare const Section: React.FC<Props$4>;
|
|
1190
1218
|
|
|
1191
|
-
declare const styles$8: {
|
|
1192
|
-
readonly "root": string;
|
|
1193
|
-
readonly "isWithDivider": string;
|
|
1194
|
-
};
|
|
1195
|
-
|
|
1196
|
-
type SuggestionListStyles = typeof styles$8;
|
|
1197
|
-
interface Props$3 {
|
|
1198
|
-
withDivider?: boolean;
|
|
1199
|
-
}
|
|
1200
|
-
declare const SuggestionList: React.FC<Props$3>;
|
|
1201
|
-
|
|
1202
1219
|
declare const styles$7: {
|
|
1203
1220
|
readonly "root": string;
|
|
1204
|
-
readonly "isInline": string;
|
|
1205
|
-
readonly "toggleButton": string;
|
|
1206
|
-
readonly "toggleButtonWrapper": string;
|
|
1207
|
-
readonly "toggleButtonWrapperHidden": string;
|
|
1208
|
-
readonly "isCollapsed": string;
|
|
1209
|
-
readonly "collapsible": string;
|
|
1210
|
-
readonly "hints": string;
|
|
1211
|
-
readonly "hintsHidden": string;
|
|
1212
|
-
readonly "triggers": string;
|
|
1213
|
-
readonly "triggersRight": string;
|
|
1214
1221
|
};
|
|
1215
1222
|
|
|
1216
|
-
type
|
|
1223
|
+
type Props$3 = {
|
|
1224
|
+
className?: string;
|
|
1225
|
+
children?: React.ReactNode;
|
|
1226
|
+
};
|
|
1227
|
+
type SectionListStyles = typeof styles$7;
|
|
1228
|
+
declare const SectionList: React.ForwardRefExoticComponent<Props$3 & React.RefAttributes<HTMLDivElement>>;
|
|
1217
1229
|
|
|
1218
1230
|
declare const styles$6: {
|
|
1219
1231
|
readonly "root": string;
|
|
@@ -1264,6 +1276,33 @@ type SuggestionStyles = typeof styles$6;
|
|
|
1264
1276
|
declare const Suggestion: ForwardRefExoticComponent<Props$2 & RefAttributes<any>> & SuggestionComposition;
|
|
1265
1277
|
|
|
1266
1278
|
declare const styles$5: {
|
|
1279
|
+
readonly "root": string;
|
|
1280
|
+
readonly "isWithDivider": string;
|
|
1281
|
+
};
|
|
1282
|
+
|
|
1283
|
+
type SuggestionListStyles = typeof styles$5;
|
|
1284
|
+
interface Props$1 {
|
|
1285
|
+
withDivider?: boolean;
|
|
1286
|
+
}
|
|
1287
|
+
declare const SuggestionList: React.FC<Props$1>;
|
|
1288
|
+
|
|
1289
|
+
declare const styles$4: {
|
|
1290
|
+
readonly "root": string;
|
|
1291
|
+
readonly "isInline": string;
|
|
1292
|
+
readonly "toggleButton": string;
|
|
1293
|
+
readonly "toggleButtonWrapper": string;
|
|
1294
|
+
readonly "toggleButtonWrapperHidden": string;
|
|
1295
|
+
readonly "isCollapsed": string;
|
|
1296
|
+
readonly "collapsible": string;
|
|
1297
|
+
readonly "hints": string;
|
|
1298
|
+
readonly "hintsHidden": string;
|
|
1299
|
+
readonly "triggers": string;
|
|
1300
|
+
readonly "triggersRight": string;
|
|
1301
|
+
};
|
|
1302
|
+
|
|
1303
|
+
type SuggestionsOverlayStyles = typeof styles$4;
|
|
1304
|
+
|
|
1305
|
+
declare const styles$3: {
|
|
1267
1306
|
readonly "root": string;
|
|
1268
1307
|
readonly "agentText": string;
|
|
1269
1308
|
readonly "tabText": string;
|
|
@@ -1287,40 +1326,28 @@ declare const styles$5: {
|
|
|
1287
1326
|
readonly "suggestionsOverlayInputStyles": string;
|
|
1288
1327
|
};
|
|
1289
1328
|
|
|
1290
|
-
type TabCompletionStyles = typeof styles$
|
|
1329
|
+
type TabCompletionStyles = typeof styles$3;
|
|
1291
1330
|
|
|
1292
|
-
declare const styles$
|
|
1293
|
-
readonly "root": string;
|
|
1294
|
-
readonly "content": string;
|
|
1295
|
-
readonly "title": string;
|
|
1296
|
-
readonly "actions": string;
|
|
1297
|
-
readonly "pagination": string;
|
|
1298
|
-
readonly "primaryButton": string;
|
|
1299
|
-
readonly "primaryButtons": string;
|
|
1300
|
-
};
|
|
1301
|
-
|
|
1302
|
-
type EditSuggestionFormStyles = typeof styles$4;
|
|
1303
|
-
|
|
1304
|
-
declare const styles$3: {
|
|
1331
|
+
declare const styles$2: {
|
|
1305
1332
|
readonly "badge": string;
|
|
1306
1333
|
readonly "formattedText": string;
|
|
1307
1334
|
};
|
|
1308
1335
|
|
|
1309
|
-
type TextSuggestionStyles = typeof styles$
|
|
1336
|
+
type TextSuggestionStyles = typeof styles$2;
|
|
1310
1337
|
|
|
1311
|
-
declare const styles$
|
|
1338
|
+
declare const styles$1: {
|
|
1312
1339
|
readonly "root": string;
|
|
1313
1340
|
readonly "isCollapsed": string;
|
|
1314
1341
|
};
|
|
1315
1342
|
|
|
1316
|
-
type Props
|
|
1343
|
+
type Props = HTMLAttributes<HTMLButtonElement> & {
|
|
1317
1344
|
isCollapsed: boolean;
|
|
1318
1345
|
title: string;
|
|
1319
1346
|
};
|
|
1320
|
-
type ToggleButtonStyles = typeof styles$
|
|
1321
|
-
declare const ToggleButton: React.FC<Props
|
|
1347
|
+
type ToggleButtonStyles = typeof styles$1;
|
|
1348
|
+
declare const ToggleButton: React.FC<Props>;
|
|
1322
1349
|
|
|
1323
|
-
declare const styles
|
|
1350
|
+
declare const styles: {
|
|
1324
1351
|
readonly "root": string;
|
|
1325
1352
|
readonly "loginText": string;
|
|
1326
1353
|
readonly "stateText": string;
|
|
@@ -1329,17 +1356,7 @@ declare const styles$1: {
|
|
|
1329
1356
|
readonly "link": string;
|
|
1330
1357
|
};
|
|
1331
1358
|
|
|
1332
|
-
type WidgetStyles = typeof styles
|
|
1333
|
-
|
|
1334
|
-
declare const styles: {
|
|
1335
|
-
readonly "root": string;
|
|
1336
|
-
};
|
|
1337
|
-
|
|
1338
|
-
interface Props {
|
|
1339
|
-
children: React.ReactNode;
|
|
1340
|
-
}
|
|
1341
|
-
type ChipStyles = typeof styles;
|
|
1342
|
-
declare const Chip: React.FC<Props>;
|
|
1359
|
+
type WidgetStyles = typeof styles;
|
|
1343
1360
|
|
|
1344
1361
|
type WidgetCustomStyles = {
|
|
1345
1362
|
Autoflow?: Partial<AutoflowStyles>;
|
|
@@ -1371,6 +1388,8 @@ type InputOverlayCustomStyles = {
|
|
|
1371
1388
|
ToggleButton?: Partial<ToggleButtonStyles>;
|
|
1372
1389
|
KeyboardHint?: Partial<KeyboardHintStyles>;
|
|
1373
1390
|
TabCompletion?: Partial<TabCompletionStyles>;
|
|
1391
|
+
EditSuggestionTextInput?: Partial<EditSuggestionTextInputStyles>;
|
|
1392
|
+
EditSuggestionForm?: Partial<EditSuggestionFormStyles>;
|
|
1374
1393
|
};
|
|
1375
1394
|
declare enum Locale {
|
|
1376
1395
|
NL_NL = "nl-NL",
|
|
@@ -1540,6 +1559,7 @@ declare enum SearchResultDefaultType {
|
|
|
1540
1559
|
type SearchResult = SearchSuggestion;
|
|
1541
1560
|
interface State$3 {
|
|
1542
1561
|
list: Array<SearchResult>;
|
|
1562
|
+
page: string;
|
|
1543
1563
|
fetchState: FetchState;
|
|
1544
1564
|
isOpen: boolean;
|
|
1545
1565
|
}
|
|
@@ -1592,6 +1612,7 @@ type State = {
|
|
|
1592
1612
|
insertLink: boolean;
|
|
1593
1613
|
inlineSuggestions: boolean;
|
|
1594
1614
|
adminUrl?: string;
|
|
1615
|
+
productName: string;
|
|
1595
1616
|
};
|
|
1596
1617
|
declare const set: _reduxjs_toolkit.ActionCreatorWithPayload<Partial<State>, "settings/set">;
|
|
1597
1618
|
|
|
@@ -1608,6 +1629,7 @@ interface SDKOptions {
|
|
|
1608
1629
|
locale?: Locale;
|
|
1609
1630
|
token?: string;
|
|
1610
1631
|
fetch?: typeof window.fetch;
|
|
1632
|
+
productName?: string;
|
|
1611
1633
|
}
|
|
1612
1634
|
interface SDKEventMap {
|
|
1613
1635
|
'select-suggestion': {
|
|
@@ -1615,6 +1637,7 @@ interface SDKEventMap {
|
|
|
1615
1637
|
type: string;
|
|
1616
1638
|
replace: SelectionRange;
|
|
1617
1639
|
suggestion: TextSuggestion;
|
|
1640
|
+
eventMetrics: SuggestionEventMetrics;
|
|
1618
1641
|
};
|
|
1619
1642
|
'reset': {
|
|
1620
1643
|
text: string;
|
|
@@ -1679,12 +1702,12 @@ declare class DeepdeskSDK {
|
|
|
1679
1702
|
instanceId: number;
|
|
1680
1703
|
private shouldRender;
|
|
1681
1704
|
store: Store;
|
|
1682
|
-
constructor({ deepdeskUrl, brokerUrl, version, locale, token, fetch, }: SDKOptions);
|
|
1705
|
+
constructor({ deepdeskUrl, brokerUrl, version, locale, token, fetch, productName, }: SDKOptions);
|
|
1683
1706
|
get state(): redux.EmptyObject & {
|
|
1684
1707
|
activeSuggestion: State$e;
|
|
1685
|
-
answer: State$
|
|
1708
|
+
answer: State$c;
|
|
1686
1709
|
auth: State$d;
|
|
1687
|
-
autoflows: State$
|
|
1710
|
+
autoflows: State$6;
|
|
1688
1711
|
conversation: State$b;
|
|
1689
1712
|
contentTypes: State$a;
|
|
1690
1713
|
customMessages: State$9;
|
|
@@ -1726,6 +1749,7 @@ declare class DeepdeskSDK {
|
|
|
1726
1749
|
insertLink: boolean;
|
|
1727
1750
|
inlineSuggestions: boolean;
|
|
1728
1751
|
adminUrl?: string | undefined;
|
|
1752
|
+
productName: string;
|
|
1729
1753
|
};
|
|
1730
1754
|
profile: State$4;
|
|
1731
1755
|
search: State$3;
|
|
@@ -1767,6 +1791,7 @@ declare class DeepdeskSDK {
|
|
|
1767
1791
|
insertLink: boolean;
|
|
1768
1792
|
inlineSuggestions: boolean;
|
|
1769
1793
|
adminUrl?: string | undefined;
|
|
1794
|
+
productName: string;
|
|
1770
1795
|
};
|
|
1771
1796
|
get selectedTextSuggestion(): TextSuggestion;
|
|
1772
1797
|
hasConversation(): boolean;
|
|
@@ -1989,6 +2014,7 @@ type PlatformConfig = {
|
|
|
1989
2014
|
config: {
|
|
1990
2015
|
account: {
|
|
1991
2016
|
name: string;
|
|
2017
|
+
url: string;
|
|
1992
2018
|
};
|
|
1993
2019
|
platform: {
|
|
1994
2020
|
name: string;
|