@deepdesk/deepdesk-sdk 10.12.1-beta.7 → 10.12.1-beta.9
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/dialogs.css +1 -1
- package/dist/index.cjs.js +7 -7
- package/dist/index.d.mts +28 -75
- package/dist/index.d.ts +28 -75
- package/dist/index.esm.js +7 -7
- package/dist/index.iife.js +14 -14
- package/package.json +1 -1
- package/styles/index.js +1 -1
- package/styles.css +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -4,7 +4,7 @@ import * as _reduxjs_toolkit_dist_configureStore from '@reduxjs/toolkit/dist/con
|
|
|
4
4
|
import * as _reduxjs_toolkit from '@reduxjs/toolkit';
|
|
5
5
|
import { Middleware } from '@reduxjs/toolkit';
|
|
6
6
|
|
|
7
|
-
declare const styles$
|
|
7
|
+
declare const styles$l: {
|
|
8
8
|
readonly "root": string;
|
|
9
9
|
readonly "imageWrapper": string;
|
|
10
10
|
readonly "image": string;
|
|
@@ -38,10 +38,10 @@ interface CardComposition {
|
|
|
38
38
|
Title: FC<TitleProps>;
|
|
39
39
|
CloseIcon: FC<CloseIconProps>;
|
|
40
40
|
}
|
|
41
|
-
type CardStyles = typeof styles$
|
|
41
|
+
type CardStyles = typeof styles$l;
|
|
42
42
|
declare const Card: FC & CardComposition;
|
|
43
43
|
|
|
44
|
-
declare const styles$
|
|
44
|
+
declare const styles$k: {
|
|
45
45
|
readonly "root": string;
|
|
46
46
|
};
|
|
47
47
|
|
|
@@ -56,18 +56,18 @@ type Props$6 = HTMLAttributes<HTMLSpanElement> & {
|
|
|
56
56
|
className?: string;
|
|
57
57
|
keyCode: KeyboardHintKey;
|
|
58
58
|
};
|
|
59
|
-
type KeyboardHintStyles = typeof styles$
|
|
59
|
+
type KeyboardHintStyles = typeof styles$k;
|
|
60
60
|
declare const KeyboardHint: React.FC<Props$6>;
|
|
61
61
|
|
|
62
|
-
declare const styles$
|
|
62
|
+
declare const styles$j: {
|
|
63
63
|
readonly "root": string;
|
|
64
64
|
};
|
|
65
65
|
|
|
66
66
|
type Props$5 = HTMLAttributes<HTMLSpanElement>;
|
|
67
|
-
type LabelStyles = typeof styles$
|
|
67
|
+
type LabelStyles = typeof styles$j;
|
|
68
68
|
declare const Label: React.FC<Props$5>;
|
|
69
69
|
|
|
70
|
-
declare const styles$
|
|
70
|
+
declare const styles$i: {
|
|
71
71
|
readonly "root": string;
|
|
72
72
|
readonly "subTitleContainer": string;
|
|
73
73
|
readonly "subtitle": string;
|
|
@@ -78,10 +78,10 @@ type Props$4 = HTMLAttributes<HTMLElement> & {
|
|
|
78
78
|
type: string;
|
|
79
79
|
title?: string;
|
|
80
80
|
};
|
|
81
|
-
type SectionStyles = typeof styles$
|
|
81
|
+
type SectionStyles = typeof styles$i;
|
|
82
82
|
declare const Section: React.FC<Props$4>;
|
|
83
83
|
|
|
84
|
-
declare const styles$
|
|
84
|
+
declare const styles$h: {
|
|
85
85
|
readonly "root": string;
|
|
86
86
|
};
|
|
87
87
|
|
|
@@ -89,10 +89,10 @@ type Props$3 = {
|
|
|
89
89
|
className?: string;
|
|
90
90
|
children?: React.ReactNode;
|
|
91
91
|
};
|
|
92
|
-
type SectionListStyles = typeof styles$
|
|
92
|
+
type SectionListStyles = typeof styles$h;
|
|
93
93
|
declare const SectionList: React.ForwardRefExoticComponent<Props$3 & React.RefAttributes<HTMLDivElement>>;
|
|
94
94
|
|
|
95
|
-
declare const styles$
|
|
95
|
+
declare const styles$g: {
|
|
96
96
|
readonly "root": string;
|
|
97
97
|
readonly "fadein": string;
|
|
98
98
|
readonly "isClickable": string;
|
|
@@ -137,21 +137,21 @@ interface SuggestionComposition {
|
|
|
137
137
|
DropdownItem: FC<DropdownItemProps>;
|
|
138
138
|
Labels: FC<LabelProps>;
|
|
139
139
|
}
|
|
140
|
-
type SuggestionStyles = typeof styles$
|
|
140
|
+
type SuggestionStyles = typeof styles$g;
|
|
141
141
|
declare const Suggestion: ForwardRefExoticComponent<Props$2 & RefAttributes<any>> & SuggestionComposition;
|
|
142
142
|
|
|
143
|
-
declare const styles$
|
|
143
|
+
declare const styles$f: {
|
|
144
144
|
readonly "root": string;
|
|
145
145
|
readonly "isWithDivider": string;
|
|
146
146
|
};
|
|
147
147
|
|
|
148
|
-
type SuggestionListStyles = typeof styles$
|
|
148
|
+
type SuggestionListStyles = typeof styles$f;
|
|
149
149
|
interface Props$1 {
|
|
150
150
|
withDivider?: boolean;
|
|
151
151
|
}
|
|
152
152
|
declare const SuggestionList: React.FC<Props$1>;
|
|
153
153
|
|
|
154
|
-
declare const styles$
|
|
154
|
+
declare const styles$e: {
|
|
155
155
|
readonly "root": string;
|
|
156
156
|
readonly "isCollapsed": string;
|
|
157
157
|
};
|
|
@@ -160,7 +160,7 @@ type Props = HTMLAttributes<HTMLButtonElement> & {
|
|
|
160
160
|
isCollapsed: boolean;
|
|
161
161
|
title: string;
|
|
162
162
|
};
|
|
163
|
-
type ToggleButtonStyles = typeof styles$
|
|
163
|
+
type ToggleButtonStyles = typeof styles$e;
|
|
164
164
|
declare const ToggleButton: React.FC<Props>;
|
|
165
165
|
|
|
166
166
|
declare enum Sources {
|
|
@@ -279,16 +279,11 @@ declare abstract class InputMediator<HTMLElementType extends HTMLElement> {
|
|
|
279
279
|
dispose(): void;
|
|
280
280
|
}
|
|
281
281
|
|
|
282
|
-
type State$
|
|
282
|
+
type State$g = {
|
|
283
283
|
startTime: Date | null;
|
|
284
284
|
stopTime: Date | null;
|
|
285
285
|
};
|
|
286
286
|
|
|
287
|
-
interface State$g {
|
|
288
|
-
contentType: string | null;
|
|
289
|
-
suggestion: TextSuggestion | null;
|
|
290
|
-
}
|
|
291
|
-
|
|
292
287
|
/**
|
|
293
288
|
* CamelCase type manipulation
|
|
294
289
|
* ```
|
|
@@ -456,7 +451,6 @@ interface StoreConfig {
|
|
|
456
451
|
preloadedState?: any;
|
|
457
452
|
}
|
|
458
453
|
declare const reducers: redux.Reducer<redux.CombinedState<{
|
|
459
|
-
activeSuggestion: State$g;
|
|
460
454
|
answer: State$7;
|
|
461
455
|
auth: State$f;
|
|
462
456
|
autoflows: State$e;
|
|
@@ -466,7 +460,7 @@ declare const reducers: redux.Reducer<redux.CombinedState<{
|
|
|
466
460
|
passwordlessToken: State$a;
|
|
467
461
|
entities: State$9;
|
|
468
462
|
knowledgeAssistant: State$8;
|
|
469
|
-
handlingTime: State$
|
|
463
|
+
handlingTime: State$g;
|
|
470
464
|
info: {
|
|
471
465
|
agentInfo?: AgentInfo | undefined;
|
|
472
466
|
agentSettings: unknown;
|
|
@@ -474,7 +468,6 @@ declare const reducers: redux.Reducer<redux.CombinedState<{
|
|
|
474
468
|
fetchState: FetchState;
|
|
475
469
|
};
|
|
476
470
|
input: State$6;
|
|
477
|
-
overlayInput: State$6;
|
|
478
471
|
settings: {
|
|
479
472
|
locale: Locale;
|
|
480
473
|
deanonymize: boolean;
|
|
@@ -520,7 +513,6 @@ declare const reducers: redux.Reducer<redux.CombinedState<{
|
|
|
520
513
|
textSuggestions: TextSuggestionState;
|
|
521
514
|
}>, redux.AnyAction>;
|
|
522
515
|
declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configureStore.ToolkitStore<redux.EmptyObject & {
|
|
523
|
-
activeSuggestion: State$g;
|
|
524
516
|
answer: State$7;
|
|
525
517
|
auth: State$f;
|
|
526
518
|
autoflows: State$e;
|
|
@@ -530,7 +522,7 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
|
|
|
530
522
|
passwordlessToken: State$a;
|
|
531
523
|
entities: State$9;
|
|
532
524
|
knowledgeAssistant: State$8;
|
|
533
|
-
handlingTime: State$
|
|
525
|
+
handlingTime: State$g;
|
|
534
526
|
info: {
|
|
535
527
|
agentInfo?: AgentInfo | undefined;
|
|
536
528
|
agentSettings: unknown;
|
|
@@ -538,7 +530,6 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
|
|
|
538
530
|
fetchState: FetchState;
|
|
539
531
|
};
|
|
540
532
|
input: State$6;
|
|
541
|
-
overlayInput: State$6;
|
|
542
533
|
settings: {
|
|
543
534
|
locale: Locale;
|
|
544
535
|
deanonymize: boolean;
|
|
@@ -583,7 +574,6 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
|
|
|
583
574
|
rules: State$1;
|
|
584
575
|
textSuggestions: TextSuggestionState;
|
|
585
576
|
}, redux.AnyAction, _reduxjs_toolkit.ThunkMiddleware<redux.CombinedState<{
|
|
586
|
-
activeSuggestion: State$g;
|
|
587
577
|
answer: State$7;
|
|
588
578
|
auth: State$f;
|
|
589
579
|
autoflows: State$e;
|
|
@@ -593,7 +583,7 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
|
|
|
593
583
|
passwordlessToken: State$a;
|
|
594
584
|
entities: State$9;
|
|
595
585
|
knowledgeAssistant: State$8;
|
|
596
|
-
handlingTime: State$
|
|
586
|
+
handlingTime: State$g;
|
|
597
587
|
info: {
|
|
598
588
|
agentInfo?: AgentInfo | undefined;
|
|
599
589
|
agentSettings: unknown;
|
|
@@ -601,7 +591,6 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
|
|
|
601
591
|
fetchState: FetchState;
|
|
602
592
|
};
|
|
603
593
|
input: State$6;
|
|
604
|
-
overlayInput: State$6;
|
|
605
594
|
settings: {
|
|
606
595
|
locale: Locale;
|
|
607
596
|
deanonymize: boolean;
|
|
@@ -1200,8 +1189,8 @@ declare class DeepdeskAPI {
|
|
|
1200
1189
|
* Post converstation messages
|
|
1201
1190
|
*/
|
|
1202
1191
|
postMessages(conversationId: string, messages: CamelCaseKeys<Server.ConversationMessage>[]): Promise<({
|
|
1203
|
-
id: string;
|
|
1204
1192
|
text: string;
|
|
1193
|
+
id: string;
|
|
1205
1194
|
source: "agent" | "visitor" | "bot" | "system";
|
|
1206
1195
|
time: string;
|
|
1207
1196
|
authorId: string;
|
|
@@ -1495,7 +1484,7 @@ interface TextSuggestionState {
|
|
|
1495
1484
|
[type: string]: SuggestionState;
|
|
1496
1485
|
}
|
|
1497
1486
|
|
|
1498
|
-
declare const styles$
|
|
1487
|
+
declare const styles$d: {
|
|
1499
1488
|
readonly "isDisabled": string;
|
|
1500
1489
|
readonly "buttonStart": string;
|
|
1501
1490
|
readonly "root": string;
|
|
@@ -1506,9 +1495,9 @@ declare const styles$f: {
|
|
|
1506
1495
|
readonly "isAborted": string;
|
|
1507
1496
|
};
|
|
1508
1497
|
|
|
1509
|
-
type AutoflowStyles = typeof styles$
|
|
1498
|
+
type AutoflowStyles = typeof styles$d;
|
|
1510
1499
|
|
|
1511
|
-
declare const styles$
|
|
1500
|
+
declare const styles$c: {
|
|
1512
1501
|
readonly "root": string;
|
|
1513
1502
|
readonly "list": string;
|
|
1514
1503
|
readonly "listWrapper": string;
|
|
@@ -1554,39 +1543,14 @@ declare const styles$e: {
|
|
|
1554
1543
|
readonly "actionShortcutFixKerning": string;
|
|
1555
1544
|
};
|
|
1556
1545
|
|
|
1557
|
-
type CommandPaletteStyles = typeof styles$
|
|
1558
|
-
|
|
1559
|
-
declare const styles$d: {
|
|
1560
|
-
readonly "root": string;
|
|
1561
|
-
readonly "content": string;
|
|
1562
|
-
};
|
|
1563
|
-
|
|
1564
|
-
type DialogStyles = typeof styles$d;
|
|
1565
|
-
|
|
1566
|
-
declare const styles$c: {
|
|
1567
|
-
readonly "root": string;
|
|
1568
|
-
readonly "content": string;
|
|
1569
|
-
readonly "title": string;
|
|
1570
|
-
readonly "actions": string;
|
|
1571
|
-
readonly "pagination": string;
|
|
1572
|
-
readonly "primaryButton": string;
|
|
1573
|
-
readonly "primaryButtons": string;
|
|
1574
|
-
};
|
|
1575
|
-
|
|
1576
|
-
type EditSuggestionFormStyles = typeof styles$c;
|
|
1546
|
+
type CommandPaletteStyles = typeof styles$c;
|
|
1577
1547
|
|
|
1578
1548
|
declare const styles$b: {
|
|
1579
1549
|
readonly "root": string;
|
|
1580
|
-
readonly "
|
|
1581
|
-
readonly "textInput": string;
|
|
1582
|
-
readonly "textInputWrapper": string;
|
|
1583
|
-
readonly "alert": string;
|
|
1584
|
-
readonly "alertText": string;
|
|
1585
|
-
readonly "warning": string;
|
|
1586
|
-
readonly "success": string;
|
|
1550
|
+
readonly "content": string;
|
|
1587
1551
|
};
|
|
1588
1552
|
|
|
1589
|
-
type
|
|
1553
|
+
type DialogStyles = typeof styles$b;
|
|
1590
1554
|
|
|
1591
1555
|
declare const styles$a: {
|
|
1592
1556
|
readonly "root": string;
|
|
@@ -1727,7 +1691,6 @@ type WidgetCustomStyles = {
|
|
|
1727
1691
|
SectionList?: Partial<SectionListStyles>;
|
|
1728
1692
|
Suggestion?: Partial<SuggestionStyles>;
|
|
1729
1693
|
SuggestionList?: Partial<SuggestionListStyles>;
|
|
1730
|
-
EditSuggestionForm?: Partial<EditSuggestionFormStyles>;
|
|
1731
1694
|
Widget?: Partial<WidgetStyles>;
|
|
1732
1695
|
};
|
|
1733
1696
|
type InputOverlayCustomStyles = {
|
|
@@ -1745,8 +1708,6 @@ type InputOverlayCustomStyles = {
|
|
|
1745
1708
|
ToggleButton?: Partial<ToggleButtonStyles>;
|
|
1746
1709
|
KeyboardHint?: Partial<KeyboardHintStyles>;
|
|
1747
1710
|
TabCompletion?: Partial<TabCompletionStyles>;
|
|
1748
|
-
EditSuggestionTextInput?: Partial<EditSuggestionTextInputStyles>;
|
|
1749
|
-
EditSuggestionForm?: Partial<EditSuggestionFormStyles>;
|
|
1750
1711
|
FloatingMenu?: Partial<FloatingMenuStyles>;
|
|
1751
1712
|
};
|
|
1752
1713
|
|
|
@@ -1890,7 +1851,6 @@ declare class DeepdeskSDK {
|
|
|
1890
1851
|
store: Store;
|
|
1891
1852
|
constructor({ deepdeskUrl, brokerUrl, version, locale, token, fetch, productName, createCustomChannel, }: SDKOptions);
|
|
1892
1853
|
get state(): redux.EmptyObject & {
|
|
1893
|
-
activeSuggestion: State$g;
|
|
1894
1854
|
answer: State$7;
|
|
1895
1855
|
auth: State$f;
|
|
1896
1856
|
autoflows: State$e;
|
|
@@ -1900,7 +1860,7 @@ declare class DeepdeskSDK {
|
|
|
1900
1860
|
passwordlessToken: State$a;
|
|
1901
1861
|
entities: State$9;
|
|
1902
1862
|
knowledgeAssistant: State$8;
|
|
1903
|
-
handlingTime: State$
|
|
1863
|
+
handlingTime: State$g;
|
|
1904
1864
|
info: {
|
|
1905
1865
|
agentInfo?: AgentInfo | undefined;
|
|
1906
1866
|
agentSettings: unknown;
|
|
@@ -1908,7 +1868,6 @@ declare class DeepdeskSDK {
|
|
|
1908
1868
|
fetchState: FetchState;
|
|
1909
1869
|
};
|
|
1910
1870
|
input: State$6;
|
|
1911
|
-
overlayInput: State$6;
|
|
1912
1871
|
settings: {
|
|
1913
1872
|
locale: Locale;
|
|
1914
1873
|
deanonymize: boolean;
|
|
@@ -2073,11 +2032,6 @@ declare class DeepdeskSDK {
|
|
|
2073
2032
|
private notifyPaste;
|
|
2074
2033
|
private notifyCut;
|
|
2075
2034
|
notifyExternalSuggestion(suggestion: StageSuggestion): void;
|
|
2076
|
-
notifyEditSuggestion(data: {
|
|
2077
|
-
contentType: string;
|
|
2078
|
-
suggestions: TextSuggestion[];
|
|
2079
|
-
index: number | null;
|
|
2080
|
-
}): void;
|
|
2081
2035
|
evaluateRule(label: string, params?: Record<string, any>): Promise<any>;
|
|
2082
2036
|
private handleInputChanged;
|
|
2083
2037
|
private handleKeyDown;
|
|
@@ -2085,7 +2039,6 @@ declare class DeepdeskSDK {
|
|
|
2085
2039
|
handlingTimeStart(): void;
|
|
2086
2040
|
handlingTimeStop(): void;
|
|
2087
2041
|
private logSendMessage;
|
|
2088
|
-
private logSendEditMessage;
|
|
2089
2042
|
private logHandlingTime;
|
|
2090
2043
|
/**
|
|
2091
2044
|
* Method to call when the agent has sent a message to the visitor
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as _reduxjs_toolkit_dist_configureStore from '@reduxjs/toolkit/dist/con
|
|
|
4
4
|
import * as _reduxjs_toolkit from '@reduxjs/toolkit';
|
|
5
5
|
import { Middleware } from '@reduxjs/toolkit';
|
|
6
6
|
|
|
7
|
-
declare const styles$
|
|
7
|
+
declare const styles$l: {
|
|
8
8
|
readonly "root": string;
|
|
9
9
|
readonly "imageWrapper": string;
|
|
10
10
|
readonly "image": string;
|
|
@@ -38,10 +38,10 @@ interface CardComposition {
|
|
|
38
38
|
Title: FC<TitleProps>;
|
|
39
39
|
CloseIcon: FC<CloseIconProps>;
|
|
40
40
|
}
|
|
41
|
-
type CardStyles = typeof styles$
|
|
41
|
+
type CardStyles = typeof styles$l;
|
|
42
42
|
declare const Card: FC & CardComposition;
|
|
43
43
|
|
|
44
|
-
declare const styles$
|
|
44
|
+
declare const styles$k: {
|
|
45
45
|
readonly "root": string;
|
|
46
46
|
};
|
|
47
47
|
|
|
@@ -56,18 +56,18 @@ type Props$6 = HTMLAttributes<HTMLSpanElement> & {
|
|
|
56
56
|
className?: string;
|
|
57
57
|
keyCode: KeyboardHintKey;
|
|
58
58
|
};
|
|
59
|
-
type KeyboardHintStyles = typeof styles$
|
|
59
|
+
type KeyboardHintStyles = typeof styles$k;
|
|
60
60
|
declare const KeyboardHint: React.FC<Props$6>;
|
|
61
61
|
|
|
62
|
-
declare const styles$
|
|
62
|
+
declare const styles$j: {
|
|
63
63
|
readonly "root": string;
|
|
64
64
|
};
|
|
65
65
|
|
|
66
66
|
type Props$5 = HTMLAttributes<HTMLSpanElement>;
|
|
67
|
-
type LabelStyles = typeof styles$
|
|
67
|
+
type LabelStyles = typeof styles$j;
|
|
68
68
|
declare const Label: React.FC<Props$5>;
|
|
69
69
|
|
|
70
|
-
declare const styles$
|
|
70
|
+
declare const styles$i: {
|
|
71
71
|
readonly "root": string;
|
|
72
72
|
readonly "subTitleContainer": string;
|
|
73
73
|
readonly "subtitle": string;
|
|
@@ -78,10 +78,10 @@ type Props$4 = HTMLAttributes<HTMLElement> & {
|
|
|
78
78
|
type: string;
|
|
79
79
|
title?: string;
|
|
80
80
|
};
|
|
81
|
-
type SectionStyles = typeof styles$
|
|
81
|
+
type SectionStyles = typeof styles$i;
|
|
82
82
|
declare const Section: React.FC<Props$4>;
|
|
83
83
|
|
|
84
|
-
declare const styles$
|
|
84
|
+
declare const styles$h: {
|
|
85
85
|
readonly "root": string;
|
|
86
86
|
};
|
|
87
87
|
|
|
@@ -89,10 +89,10 @@ type Props$3 = {
|
|
|
89
89
|
className?: string;
|
|
90
90
|
children?: React.ReactNode;
|
|
91
91
|
};
|
|
92
|
-
type SectionListStyles = typeof styles$
|
|
92
|
+
type SectionListStyles = typeof styles$h;
|
|
93
93
|
declare const SectionList: React.ForwardRefExoticComponent<Props$3 & React.RefAttributes<HTMLDivElement>>;
|
|
94
94
|
|
|
95
|
-
declare const styles$
|
|
95
|
+
declare const styles$g: {
|
|
96
96
|
readonly "root": string;
|
|
97
97
|
readonly "fadein": string;
|
|
98
98
|
readonly "isClickable": string;
|
|
@@ -137,21 +137,21 @@ interface SuggestionComposition {
|
|
|
137
137
|
DropdownItem: FC<DropdownItemProps>;
|
|
138
138
|
Labels: FC<LabelProps>;
|
|
139
139
|
}
|
|
140
|
-
type SuggestionStyles = typeof styles$
|
|
140
|
+
type SuggestionStyles = typeof styles$g;
|
|
141
141
|
declare const Suggestion: ForwardRefExoticComponent<Props$2 & RefAttributes<any>> & SuggestionComposition;
|
|
142
142
|
|
|
143
|
-
declare const styles$
|
|
143
|
+
declare const styles$f: {
|
|
144
144
|
readonly "root": string;
|
|
145
145
|
readonly "isWithDivider": string;
|
|
146
146
|
};
|
|
147
147
|
|
|
148
|
-
type SuggestionListStyles = typeof styles$
|
|
148
|
+
type SuggestionListStyles = typeof styles$f;
|
|
149
149
|
interface Props$1 {
|
|
150
150
|
withDivider?: boolean;
|
|
151
151
|
}
|
|
152
152
|
declare const SuggestionList: React.FC<Props$1>;
|
|
153
153
|
|
|
154
|
-
declare const styles$
|
|
154
|
+
declare const styles$e: {
|
|
155
155
|
readonly "root": string;
|
|
156
156
|
readonly "isCollapsed": string;
|
|
157
157
|
};
|
|
@@ -160,7 +160,7 @@ type Props = HTMLAttributes<HTMLButtonElement> & {
|
|
|
160
160
|
isCollapsed: boolean;
|
|
161
161
|
title: string;
|
|
162
162
|
};
|
|
163
|
-
type ToggleButtonStyles = typeof styles$
|
|
163
|
+
type ToggleButtonStyles = typeof styles$e;
|
|
164
164
|
declare const ToggleButton: React.FC<Props>;
|
|
165
165
|
|
|
166
166
|
declare enum Sources {
|
|
@@ -279,16 +279,11 @@ declare abstract class InputMediator<HTMLElementType extends HTMLElement> {
|
|
|
279
279
|
dispose(): void;
|
|
280
280
|
}
|
|
281
281
|
|
|
282
|
-
type State$
|
|
282
|
+
type State$g = {
|
|
283
283
|
startTime: Date | null;
|
|
284
284
|
stopTime: Date | null;
|
|
285
285
|
};
|
|
286
286
|
|
|
287
|
-
interface State$g {
|
|
288
|
-
contentType: string | null;
|
|
289
|
-
suggestion: TextSuggestion | null;
|
|
290
|
-
}
|
|
291
|
-
|
|
292
287
|
/**
|
|
293
288
|
* CamelCase type manipulation
|
|
294
289
|
* ```
|
|
@@ -456,7 +451,6 @@ interface StoreConfig {
|
|
|
456
451
|
preloadedState?: any;
|
|
457
452
|
}
|
|
458
453
|
declare const reducers: redux.Reducer<redux.CombinedState<{
|
|
459
|
-
activeSuggestion: State$g;
|
|
460
454
|
answer: State$7;
|
|
461
455
|
auth: State$f;
|
|
462
456
|
autoflows: State$e;
|
|
@@ -466,7 +460,7 @@ declare const reducers: redux.Reducer<redux.CombinedState<{
|
|
|
466
460
|
passwordlessToken: State$a;
|
|
467
461
|
entities: State$9;
|
|
468
462
|
knowledgeAssistant: State$8;
|
|
469
|
-
handlingTime: State$
|
|
463
|
+
handlingTime: State$g;
|
|
470
464
|
info: {
|
|
471
465
|
agentInfo?: AgentInfo | undefined;
|
|
472
466
|
agentSettings: unknown;
|
|
@@ -474,7 +468,6 @@ declare const reducers: redux.Reducer<redux.CombinedState<{
|
|
|
474
468
|
fetchState: FetchState;
|
|
475
469
|
};
|
|
476
470
|
input: State$6;
|
|
477
|
-
overlayInput: State$6;
|
|
478
471
|
settings: {
|
|
479
472
|
locale: Locale;
|
|
480
473
|
deanonymize: boolean;
|
|
@@ -520,7 +513,6 @@ declare const reducers: redux.Reducer<redux.CombinedState<{
|
|
|
520
513
|
textSuggestions: TextSuggestionState;
|
|
521
514
|
}>, redux.AnyAction>;
|
|
522
515
|
declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configureStore.ToolkitStore<redux.EmptyObject & {
|
|
523
|
-
activeSuggestion: State$g;
|
|
524
516
|
answer: State$7;
|
|
525
517
|
auth: State$f;
|
|
526
518
|
autoflows: State$e;
|
|
@@ -530,7 +522,7 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
|
|
|
530
522
|
passwordlessToken: State$a;
|
|
531
523
|
entities: State$9;
|
|
532
524
|
knowledgeAssistant: State$8;
|
|
533
|
-
handlingTime: State$
|
|
525
|
+
handlingTime: State$g;
|
|
534
526
|
info: {
|
|
535
527
|
agentInfo?: AgentInfo | undefined;
|
|
536
528
|
agentSettings: unknown;
|
|
@@ -538,7 +530,6 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
|
|
|
538
530
|
fetchState: FetchState;
|
|
539
531
|
};
|
|
540
532
|
input: State$6;
|
|
541
|
-
overlayInput: State$6;
|
|
542
533
|
settings: {
|
|
543
534
|
locale: Locale;
|
|
544
535
|
deanonymize: boolean;
|
|
@@ -583,7 +574,6 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
|
|
|
583
574
|
rules: State$1;
|
|
584
575
|
textSuggestions: TextSuggestionState;
|
|
585
576
|
}, redux.AnyAction, _reduxjs_toolkit.ThunkMiddleware<redux.CombinedState<{
|
|
586
|
-
activeSuggestion: State$g;
|
|
587
577
|
answer: State$7;
|
|
588
578
|
auth: State$f;
|
|
589
579
|
autoflows: State$e;
|
|
@@ -593,7 +583,7 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
|
|
|
593
583
|
passwordlessToken: State$a;
|
|
594
584
|
entities: State$9;
|
|
595
585
|
knowledgeAssistant: State$8;
|
|
596
|
-
handlingTime: State$
|
|
586
|
+
handlingTime: State$g;
|
|
597
587
|
info: {
|
|
598
588
|
agentInfo?: AgentInfo | undefined;
|
|
599
589
|
agentSettings: unknown;
|
|
@@ -601,7 +591,6 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
|
|
|
601
591
|
fetchState: FetchState;
|
|
602
592
|
};
|
|
603
593
|
input: State$6;
|
|
604
|
-
overlayInput: State$6;
|
|
605
594
|
settings: {
|
|
606
595
|
locale: Locale;
|
|
607
596
|
deanonymize: boolean;
|
|
@@ -1200,8 +1189,8 @@ declare class DeepdeskAPI {
|
|
|
1200
1189
|
* Post converstation messages
|
|
1201
1190
|
*/
|
|
1202
1191
|
postMessages(conversationId: string, messages: CamelCaseKeys<Server.ConversationMessage>[]): Promise<({
|
|
1203
|
-
id: string;
|
|
1204
1192
|
text: string;
|
|
1193
|
+
id: string;
|
|
1205
1194
|
source: "agent" | "visitor" | "bot" | "system";
|
|
1206
1195
|
time: string;
|
|
1207
1196
|
authorId: string;
|
|
@@ -1495,7 +1484,7 @@ interface TextSuggestionState {
|
|
|
1495
1484
|
[type: string]: SuggestionState;
|
|
1496
1485
|
}
|
|
1497
1486
|
|
|
1498
|
-
declare const styles$
|
|
1487
|
+
declare const styles$d: {
|
|
1499
1488
|
readonly "isDisabled": string;
|
|
1500
1489
|
readonly "buttonStart": string;
|
|
1501
1490
|
readonly "root": string;
|
|
@@ -1506,9 +1495,9 @@ declare const styles$f: {
|
|
|
1506
1495
|
readonly "isAborted": string;
|
|
1507
1496
|
};
|
|
1508
1497
|
|
|
1509
|
-
type AutoflowStyles = typeof styles$
|
|
1498
|
+
type AutoflowStyles = typeof styles$d;
|
|
1510
1499
|
|
|
1511
|
-
declare const styles$
|
|
1500
|
+
declare const styles$c: {
|
|
1512
1501
|
readonly "root": string;
|
|
1513
1502
|
readonly "list": string;
|
|
1514
1503
|
readonly "listWrapper": string;
|
|
@@ -1554,39 +1543,14 @@ declare const styles$e: {
|
|
|
1554
1543
|
readonly "actionShortcutFixKerning": string;
|
|
1555
1544
|
};
|
|
1556
1545
|
|
|
1557
|
-
type CommandPaletteStyles = typeof styles$
|
|
1558
|
-
|
|
1559
|
-
declare const styles$d: {
|
|
1560
|
-
readonly "root": string;
|
|
1561
|
-
readonly "content": string;
|
|
1562
|
-
};
|
|
1563
|
-
|
|
1564
|
-
type DialogStyles = typeof styles$d;
|
|
1565
|
-
|
|
1566
|
-
declare const styles$c: {
|
|
1567
|
-
readonly "root": string;
|
|
1568
|
-
readonly "content": string;
|
|
1569
|
-
readonly "title": string;
|
|
1570
|
-
readonly "actions": string;
|
|
1571
|
-
readonly "pagination": string;
|
|
1572
|
-
readonly "primaryButton": string;
|
|
1573
|
-
readonly "primaryButtons": string;
|
|
1574
|
-
};
|
|
1575
|
-
|
|
1576
|
-
type EditSuggestionFormStyles = typeof styles$c;
|
|
1546
|
+
type CommandPaletteStyles = typeof styles$c;
|
|
1577
1547
|
|
|
1578
1548
|
declare const styles$b: {
|
|
1579
1549
|
readonly "root": string;
|
|
1580
|
-
readonly "
|
|
1581
|
-
readonly "textInput": string;
|
|
1582
|
-
readonly "textInputWrapper": string;
|
|
1583
|
-
readonly "alert": string;
|
|
1584
|
-
readonly "alertText": string;
|
|
1585
|
-
readonly "warning": string;
|
|
1586
|
-
readonly "success": string;
|
|
1550
|
+
readonly "content": string;
|
|
1587
1551
|
};
|
|
1588
1552
|
|
|
1589
|
-
type
|
|
1553
|
+
type DialogStyles = typeof styles$b;
|
|
1590
1554
|
|
|
1591
1555
|
declare const styles$a: {
|
|
1592
1556
|
readonly "root": string;
|
|
@@ -1727,7 +1691,6 @@ type WidgetCustomStyles = {
|
|
|
1727
1691
|
SectionList?: Partial<SectionListStyles>;
|
|
1728
1692
|
Suggestion?: Partial<SuggestionStyles>;
|
|
1729
1693
|
SuggestionList?: Partial<SuggestionListStyles>;
|
|
1730
|
-
EditSuggestionForm?: Partial<EditSuggestionFormStyles>;
|
|
1731
1694
|
Widget?: Partial<WidgetStyles>;
|
|
1732
1695
|
};
|
|
1733
1696
|
type InputOverlayCustomStyles = {
|
|
@@ -1745,8 +1708,6 @@ type InputOverlayCustomStyles = {
|
|
|
1745
1708
|
ToggleButton?: Partial<ToggleButtonStyles>;
|
|
1746
1709
|
KeyboardHint?: Partial<KeyboardHintStyles>;
|
|
1747
1710
|
TabCompletion?: Partial<TabCompletionStyles>;
|
|
1748
|
-
EditSuggestionTextInput?: Partial<EditSuggestionTextInputStyles>;
|
|
1749
|
-
EditSuggestionForm?: Partial<EditSuggestionFormStyles>;
|
|
1750
1711
|
FloatingMenu?: Partial<FloatingMenuStyles>;
|
|
1751
1712
|
};
|
|
1752
1713
|
|
|
@@ -1890,7 +1851,6 @@ declare class DeepdeskSDK {
|
|
|
1890
1851
|
store: Store;
|
|
1891
1852
|
constructor({ deepdeskUrl, brokerUrl, version, locale, token, fetch, productName, createCustomChannel, }: SDKOptions);
|
|
1892
1853
|
get state(): redux.EmptyObject & {
|
|
1893
|
-
activeSuggestion: State$g;
|
|
1894
1854
|
answer: State$7;
|
|
1895
1855
|
auth: State$f;
|
|
1896
1856
|
autoflows: State$e;
|
|
@@ -1900,7 +1860,7 @@ declare class DeepdeskSDK {
|
|
|
1900
1860
|
passwordlessToken: State$a;
|
|
1901
1861
|
entities: State$9;
|
|
1902
1862
|
knowledgeAssistant: State$8;
|
|
1903
|
-
handlingTime: State$
|
|
1863
|
+
handlingTime: State$g;
|
|
1904
1864
|
info: {
|
|
1905
1865
|
agentInfo?: AgentInfo | undefined;
|
|
1906
1866
|
agentSettings: unknown;
|
|
@@ -1908,7 +1868,6 @@ declare class DeepdeskSDK {
|
|
|
1908
1868
|
fetchState: FetchState;
|
|
1909
1869
|
};
|
|
1910
1870
|
input: State$6;
|
|
1911
|
-
overlayInput: State$6;
|
|
1912
1871
|
settings: {
|
|
1913
1872
|
locale: Locale;
|
|
1914
1873
|
deanonymize: boolean;
|
|
@@ -2073,11 +2032,6 @@ declare class DeepdeskSDK {
|
|
|
2073
2032
|
private notifyPaste;
|
|
2074
2033
|
private notifyCut;
|
|
2075
2034
|
notifyExternalSuggestion(suggestion: StageSuggestion): void;
|
|
2076
|
-
notifyEditSuggestion(data: {
|
|
2077
|
-
contentType: string;
|
|
2078
|
-
suggestions: TextSuggestion[];
|
|
2079
|
-
index: number | null;
|
|
2080
|
-
}): void;
|
|
2081
2035
|
evaluateRule(label: string, params?: Record<string, any>): Promise<any>;
|
|
2082
2036
|
private handleInputChanged;
|
|
2083
2037
|
private handleKeyDown;
|
|
@@ -2085,7 +2039,6 @@ declare class DeepdeskSDK {
|
|
|
2085
2039
|
handlingTimeStart(): void;
|
|
2086
2040
|
handlingTimeStop(): void;
|
|
2087
2041
|
private logSendMessage;
|
|
2088
|
-
private logSendEditMessage;
|
|
2089
2042
|
private logHandlingTime;
|
|
2090
2043
|
/**
|
|
2091
2044
|
* Method to call when the agent has sent a message to the visitor
|