@deepdesk/deepdesk-sdk 10.12.1-beta.0 → 10.12.1-beta.10
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 +112 -140
- package/dist/index.d.ts +112 -140
- package/dist/index.esm.js +7 -7
- package/dist/index.iife.js +14 -14
- package/input.css +1 -1
- package/package.json +1 -1
- package/styles/index.js +1 -1
- package/styles.css +1 -1
- package/widget.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;
|
|
@@ -12,6 +12,7 @@ declare const styles$n: {
|
|
|
12
12
|
readonly "title": string;
|
|
13
13
|
readonly "contentIsCropped": string;
|
|
14
14
|
readonly "lineClamp": string;
|
|
15
|
+
readonly "closeIcon": string;
|
|
15
16
|
};
|
|
16
17
|
|
|
17
18
|
type ImageProps = {
|
|
@@ -28,15 +29,19 @@ interface TitleProps extends React.HTMLProps<HTMLHeadingElement> {
|
|
|
28
29
|
className?: string;
|
|
29
30
|
as?: string;
|
|
30
31
|
}
|
|
32
|
+
interface CloseIconProps extends React.HTMLProps<HTMLDivElement> {
|
|
33
|
+
className?: string;
|
|
34
|
+
}
|
|
31
35
|
interface CardComposition {
|
|
32
36
|
Image: FC<ImageProps>;
|
|
33
37
|
Content: FC<ContentProps>;
|
|
34
38
|
Title: FC<TitleProps>;
|
|
39
|
+
CloseIcon: FC<CloseIconProps>;
|
|
35
40
|
}
|
|
36
|
-
type CardStyles = typeof styles$
|
|
41
|
+
type CardStyles = typeof styles$l;
|
|
37
42
|
declare const Card: FC & CardComposition;
|
|
38
43
|
|
|
39
|
-
declare const styles$
|
|
44
|
+
declare const styles$k: {
|
|
40
45
|
readonly "root": string;
|
|
41
46
|
};
|
|
42
47
|
|
|
@@ -51,18 +56,18 @@ type Props$6 = HTMLAttributes<HTMLSpanElement> & {
|
|
|
51
56
|
className?: string;
|
|
52
57
|
keyCode: KeyboardHintKey;
|
|
53
58
|
};
|
|
54
|
-
type KeyboardHintStyles = typeof styles$
|
|
59
|
+
type KeyboardHintStyles = typeof styles$k;
|
|
55
60
|
declare const KeyboardHint: React.FC<Props$6>;
|
|
56
61
|
|
|
57
|
-
declare const styles$
|
|
62
|
+
declare const styles$j: {
|
|
58
63
|
readonly "root": string;
|
|
59
64
|
};
|
|
60
65
|
|
|
61
66
|
type Props$5 = HTMLAttributes<HTMLSpanElement>;
|
|
62
|
-
type LabelStyles = typeof styles$
|
|
67
|
+
type LabelStyles = typeof styles$j;
|
|
63
68
|
declare const Label: React.FC<Props$5>;
|
|
64
69
|
|
|
65
|
-
declare const styles$
|
|
70
|
+
declare const styles$i: {
|
|
66
71
|
readonly "root": string;
|
|
67
72
|
readonly "subTitleContainer": string;
|
|
68
73
|
readonly "subtitle": string;
|
|
@@ -73,10 +78,10 @@ type Props$4 = HTMLAttributes<HTMLElement> & {
|
|
|
73
78
|
type: string;
|
|
74
79
|
title?: string;
|
|
75
80
|
};
|
|
76
|
-
type SectionStyles = typeof styles$
|
|
81
|
+
type SectionStyles = typeof styles$i;
|
|
77
82
|
declare const Section: React.FC<Props$4>;
|
|
78
83
|
|
|
79
|
-
declare const styles$
|
|
84
|
+
declare const styles$h: {
|
|
80
85
|
readonly "root": string;
|
|
81
86
|
};
|
|
82
87
|
|
|
@@ -84,10 +89,10 @@ type Props$3 = {
|
|
|
84
89
|
className?: string;
|
|
85
90
|
children?: React.ReactNode;
|
|
86
91
|
};
|
|
87
|
-
type SectionListStyles = typeof styles$
|
|
92
|
+
type SectionListStyles = typeof styles$h;
|
|
88
93
|
declare const SectionList: React.ForwardRefExoticComponent<Props$3 & React.RefAttributes<HTMLDivElement>>;
|
|
89
94
|
|
|
90
|
-
declare const styles$
|
|
95
|
+
declare const styles$g: {
|
|
91
96
|
readonly "root": string;
|
|
92
97
|
readonly "fadein": string;
|
|
93
98
|
readonly "isClickable": string;
|
|
@@ -132,21 +137,21 @@ interface SuggestionComposition {
|
|
|
132
137
|
DropdownItem: FC<DropdownItemProps>;
|
|
133
138
|
Labels: FC<LabelProps>;
|
|
134
139
|
}
|
|
135
|
-
type SuggestionStyles = typeof styles$
|
|
140
|
+
type SuggestionStyles = typeof styles$g;
|
|
136
141
|
declare const Suggestion: ForwardRefExoticComponent<Props$2 & RefAttributes<any>> & SuggestionComposition;
|
|
137
142
|
|
|
138
|
-
declare const styles$
|
|
143
|
+
declare const styles$f: {
|
|
139
144
|
readonly "root": string;
|
|
140
145
|
readonly "isWithDivider": string;
|
|
141
146
|
};
|
|
142
147
|
|
|
143
|
-
type SuggestionListStyles = typeof styles$
|
|
148
|
+
type SuggestionListStyles = typeof styles$f;
|
|
144
149
|
interface Props$1 {
|
|
145
150
|
withDivider?: boolean;
|
|
146
151
|
}
|
|
147
152
|
declare const SuggestionList: React.FC<Props$1>;
|
|
148
153
|
|
|
149
|
-
declare const styles$
|
|
154
|
+
declare const styles$e: {
|
|
150
155
|
readonly "root": string;
|
|
151
156
|
readonly "isCollapsed": string;
|
|
152
157
|
};
|
|
@@ -155,7 +160,7 @@ type Props = HTMLAttributes<HTMLButtonElement> & {
|
|
|
155
160
|
isCollapsed: boolean;
|
|
156
161
|
title: string;
|
|
157
162
|
};
|
|
158
|
-
type ToggleButtonStyles = typeof styles$
|
|
163
|
+
type ToggleButtonStyles = typeof styles$e;
|
|
159
164
|
declare const ToggleButton: React.FC<Props>;
|
|
160
165
|
|
|
161
166
|
declare enum Sources {
|
|
@@ -279,11 +284,6 @@ type State$g = {
|
|
|
279
284
|
stopTime: Date | null;
|
|
280
285
|
};
|
|
281
286
|
|
|
282
|
-
interface State$f {
|
|
283
|
-
contentType: string | null;
|
|
284
|
-
suggestion: TextSuggestion | null;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
287
|
/**
|
|
288
288
|
* CamelCase type manipulation
|
|
289
289
|
* ```
|
|
@@ -451,16 +451,15 @@ interface StoreConfig {
|
|
|
451
451
|
preloadedState?: any;
|
|
452
452
|
}
|
|
453
453
|
declare const reducers: redux.Reducer<redux.CombinedState<{
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
knowledgeAssistant: State$7;
|
|
454
|
+
answer: State$7;
|
|
455
|
+
auth: State$f;
|
|
456
|
+
autoflows: State$e;
|
|
457
|
+
conversation: State$d;
|
|
458
|
+
contentTypes: State$c;
|
|
459
|
+
customMessages: State$b;
|
|
460
|
+
passwordlessToken: State$a;
|
|
461
|
+
entities: State$9;
|
|
462
|
+
knowledgeAssistant: State$8;
|
|
464
463
|
handlingTime: State$g;
|
|
465
464
|
info: {
|
|
466
465
|
agentInfo?: AgentInfo | undefined;
|
|
@@ -468,8 +467,7 @@ declare const reducers: redux.Reducer<redux.CombinedState<{
|
|
|
468
467
|
visitorInfo?: VisitorInfo | undefined;
|
|
469
468
|
fetchState: FetchState;
|
|
470
469
|
};
|
|
471
|
-
input: State$
|
|
472
|
-
overlayInput: State$5;
|
|
470
|
+
input: State$6;
|
|
473
471
|
settings: {
|
|
474
472
|
locale: Locale;
|
|
475
473
|
deanonymize: boolean;
|
|
@@ -500,10 +498,10 @@ declare const reducers: redux.Reducer<redux.CombinedState<{
|
|
|
500
498
|
productName: string;
|
|
501
499
|
suggestionFeedbackEmailAddresses?: string[] | undefined;
|
|
502
500
|
};
|
|
503
|
-
profile: State$
|
|
504
|
-
search: State$
|
|
505
|
-
summary: State$
|
|
506
|
-
styleSuggestions: State$
|
|
501
|
+
profile: State$5;
|
|
502
|
+
search: State$4;
|
|
503
|
+
summary: State$3;
|
|
504
|
+
styleSuggestions: State$2;
|
|
507
505
|
ui: {
|
|
508
506
|
showTabHint: boolean;
|
|
509
507
|
inputHasFocus: boolean;
|
|
@@ -511,19 +509,19 @@ declare const reducers: redux.Reducer<redux.CombinedState<{
|
|
|
511
509
|
openOverlayWhenTyping: boolean;
|
|
512
510
|
overlayCollapsedUserOverwrite: boolean;
|
|
513
511
|
};
|
|
512
|
+
rules: State$1;
|
|
514
513
|
textSuggestions: TextSuggestionState;
|
|
515
514
|
}>, redux.AnyAction>;
|
|
516
515
|
declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configureStore.ToolkitStore<redux.EmptyObject & {
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
knowledgeAssistant: State$7;
|
|
516
|
+
answer: State$7;
|
|
517
|
+
auth: State$f;
|
|
518
|
+
autoflows: State$e;
|
|
519
|
+
conversation: State$d;
|
|
520
|
+
contentTypes: State$c;
|
|
521
|
+
customMessages: State$b;
|
|
522
|
+
passwordlessToken: State$a;
|
|
523
|
+
entities: State$9;
|
|
524
|
+
knowledgeAssistant: State$8;
|
|
527
525
|
handlingTime: State$g;
|
|
528
526
|
info: {
|
|
529
527
|
agentInfo?: AgentInfo | undefined;
|
|
@@ -531,8 +529,7 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
|
|
|
531
529
|
visitorInfo?: VisitorInfo | undefined;
|
|
532
530
|
fetchState: FetchState;
|
|
533
531
|
};
|
|
534
|
-
input: State$
|
|
535
|
-
overlayInput: State$5;
|
|
532
|
+
input: State$6;
|
|
536
533
|
settings: {
|
|
537
534
|
locale: Locale;
|
|
538
535
|
deanonymize: boolean;
|
|
@@ -563,10 +560,10 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
|
|
|
563
560
|
productName: string;
|
|
564
561
|
suggestionFeedbackEmailAddresses?: string[] | undefined;
|
|
565
562
|
};
|
|
566
|
-
profile: State$
|
|
567
|
-
search: State$
|
|
568
|
-
summary: State$
|
|
569
|
-
styleSuggestions: State$
|
|
563
|
+
profile: State$5;
|
|
564
|
+
search: State$4;
|
|
565
|
+
summary: State$3;
|
|
566
|
+
styleSuggestions: State$2;
|
|
570
567
|
ui: {
|
|
571
568
|
showTabHint: boolean;
|
|
572
569
|
inputHasFocus: boolean;
|
|
@@ -574,18 +571,18 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
|
|
|
574
571
|
openOverlayWhenTyping: boolean;
|
|
575
572
|
overlayCollapsedUserOverwrite: boolean;
|
|
576
573
|
};
|
|
574
|
+
rules: State$1;
|
|
577
575
|
textSuggestions: TextSuggestionState;
|
|
578
576
|
}, redux.AnyAction, _reduxjs_toolkit.ThunkMiddleware<redux.CombinedState<{
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
knowledgeAssistant: State$7;
|
|
577
|
+
answer: State$7;
|
|
578
|
+
auth: State$f;
|
|
579
|
+
autoflows: State$e;
|
|
580
|
+
conversation: State$d;
|
|
581
|
+
contentTypes: State$c;
|
|
582
|
+
customMessages: State$b;
|
|
583
|
+
passwordlessToken: State$a;
|
|
584
|
+
entities: State$9;
|
|
585
|
+
knowledgeAssistant: State$8;
|
|
589
586
|
handlingTime: State$g;
|
|
590
587
|
info: {
|
|
591
588
|
agentInfo?: AgentInfo | undefined;
|
|
@@ -593,8 +590,7 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
|
|
|
593
590
|
visitorInfo?: VisitorInfo | undefined;
|
|
594
591
|
fetchState: FetchState;
|
|
595
592
|
};
|
|
596
|
-
input: State$
|
|
597
|
-
overlayInput: State$5;
|
|
593
|
+
input: State$6;
|
|
598
594
|
settings: {
|
|
599
595
|
locale: Locale;
|
|
600
596
|
deanonymize: boolean;
|
|
@@ -625,10 +621,10 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
|
|
|
625
621
|
productName: string;
|
|
626
622
|
suggestionFeedbackEmailAddresses?: string[] | undefined;
|
|
627
623
|
};
|
|
628
|
-
profile: State$
|
|
629
|
-
search: State$
|
|
630
|
-
summary: State$
|
|
631
|
-
styleSuggestions: State$
|
|
624
|
+
profile: State$5;
|
|
625
|
+
search: State$4;
|
|
626
|
+
summary: State$3;
|
|
627
|
+
styleSuggestions: State$2;
|
|
632
628
|
ui: {
|
|
633
629
|
showTabHint: boolean;
|
|
634
630
|
inputHasFocus: boolean;
|
|
@@ -636,6 +632,7 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
|
|
|
636
632
|
openOverlayWhenTyping: boolean;
|
|
637
633
|
overlayCollapsedUserOverwrite: boolean;
|
|
638
634
|
};
|
|
635
|
+
rules: State$1;
|
|
639
636
|
textSuggestions: TextSuggestionState;
|
|
640
637
|
}>, redux.AnyAction, {
|
|
641
638
|
dynamicThunkObject: Record<string, unknown> | undefined;
|
|
@@ -645,7 +642,7 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
|
|
|
645
642
|
type RootState = ReturnType<typeof reducers>;
|
|
646
643
|
type Store = ReturnType<typeof createStore>;
|
|
647
644
|
|
|
648
|
-
interface State$
|
|
645
|
+
interface State$f {
|
|
649
646
|
isLoggedIn: boolean | null;
|
|
650
647
|
loginFetchState: FetchState;
|
|
651
648
|
verifyFetchState: FetchState;
|
|
@@ -655,25 +652,25 @@ interface State$e {
|
|
|
655
652
|
type Autoflow = CamelCaseKeys<Server$1.Autoflow> & {
|
|
656
653
|
isBusy?: boolean;
|
|
657
654
|
};
|
|
658
|
-
interface State$
|
|
655
|
+
interface State$e {
|
|
659
656
|
list: Autoflow[];
|
|
660
657
|
fetchState: FetchState;
|
|
661
658
|
isInitialRequest: null | boolean;
|
|
662
659
|
}
|
|
663
660
|
|
|
664
|
-
interface State$
|
|
661
|
+
interface State$d {
|
|
665
662
|
current: Conversation | null;
|
|
666
663
|
isSupported: boolean | null;
|
|
667
664
|
}
|
|
668
665
|
|
|
669
666
|
type ContentType = CamelCaseKeys<Server.ContentType>;
|
|
670
|
-
type State$
|
|
667
|
+
type State$c = {
|
|
671
668
|
data: ContentType[] | null;
|
|
672
669
|
fetchState: FetchState;
|
|
673
670
|
};
|
|
674
671
|
|
|
675
672
|
type CustomMessage = CamelCaseKeys<Server$1.CustomMessage>;
|
|
676
|
-
interface State$
|
|
673
|
+
interface State$b {
|
|
677
674
|
list: CustomMessage[];
|
|
678
675
|
fetchState: FetchState;
|
|
679
676
|
isInitialRequest: null | boolean;
|
|
@@ -682,18 +679,18 @@ interface State$a {
|
|
|
682
679
|
answeredSuggestions: string[];
|
|
683
680
|
}
|
|
684
681
|
|
|
685
|
-
type State$
|
|
682
|
+
type State$a = {
|
|
686
683
|
token: string | null;
|
|
687
684
|
accountUrl: string | null;
|
|
688
685
|
interval: NodeJS.Timer | null;
|
|
689
686
|
};
|
|
690
687
|
|
|
691
|
-
type State$
|
|
688
|
+
type State$9 = {
|
|
692
689
|
data: Entity[] | null;
|
|
693
690
|
fetchState: FetchState;
|
|
694
691
|
};
|
|
695
692
|
|
|
696
|
-
type State$
|
|
693
|
+
type State$8 = {
|
|
697
694
|
data: KnowledgeAssistant | null;
|
|
698
695
|
fetchState: FetchState;
|
|
699
696
|
};
|
|
@@ -715,7 +712,7 @@ interface KnowledgeResponse {
|
|
|
715
712
|
question: string;
|
|
716
713
|
answer: KnowledgeAnswer;
|
|
717
714
|
}
|
|
718
|
-
type State$
|
|
715
|
+
type State$7 = {
|
|
719
716
|
data: KnowledgeResponse[];
|
|
720
717
|
fetchState: FetchState;
|
|
721
718
|
};
|
|
@@ -1192,8 +1189,8 @@ declare class DeepdeskAPI {
|
|
|
1192
1189
|
* Post converstation messages
|
|
1193
1190
|
*/
|
|
1194
1191
|
postMessages(conversationId: string, messages: CamelCaseKeys<Server.ConversationMessage>[]): Promise<({
|
|
1195
|
-
id: string;
|
|
1196
1192
|
text: string;
|
|
1193
|
+
id: string;
|
|
1197
1194
|
source: "agent" | "visitor" | "bot" | "system";
|
|
1198
1195
|
time: string;
|
|
1199
1196
|
authorId: string;
|
|
@@ -1420,7 +1417,7 @@ type MetricState = {
|
|
|
1420
1417
|
textSuggestions: SuggestionMetrics[];
|
|
1421
1418
|
cuts: any[];
|
|
1422
1419
|
};
|
|
1423
|
-
type State$
|
|
1420
|
+
type State$6 = {
|
|
1424
1421
|
text: string;
|
|
1425
1422
|
html: string | null;
|
|
1426
1423
|
selection: SelectionRange;
|
|
@@ -1436,7 +1433,7 @@ type State$5 = {
|
|
|
1436
1433
|
selectedSuggestionIndex: number;
|
|
1437
1434
|
};
|
|
1438
1435
|
|
|
1439
|
-
type State$
|
|
1436
|
+
type State$5 = {
|
|
1440
1437
|
data: Profile | null;
|
|
1441
1438
|
fetchState: FetchState;
|
|
1442
1439
|
};
|
|
@@ -1450,7 +1447,7 @@ declare enum SearchResultDefaultType {
|
|
|
1450
1447
|
}
|
|
1451
1448
|
type SearchResultType = string | SearchResultDefaultType;
|
|
1452
1449
|
type SearchResult = SearchSuggestion;
|
|
1453
|
-
interface State$
|
|
1450
|
+
interface State$4 {
|
|
1454
1451
|
list: Array<SearchResult>;
|
|
1455
1452
|
page: string;
|
|
1456
1453
|
fetchState: FetchState;
|
|
@@ -1458,18 +1455,26 @@ interface State$3 {
|
|
|
1458
1455
|
aggregates: Record<string, number>;
|
|
1459
1456
|
}
|
|
1460
1457
|
|
|
1461
|
-
type State$
|
|
1458
|
+
type State$3 = {
|
|
1462
1459
|
data: string | null;
|
|
1463
1460
|
fetchState: FetchState;
|
|
1464
1461
|
};
|
|
1465
1462
|
|
|
1466
1463
|
type StyleSuggestion = CamelCaseKeys<Server.StyleSuggestion>;
|
|
1467
|
-
interface State$
|
|
1464
|
+
interface State$2 {
|
|
1468
1465
|
list: StyleSuggestion;
|
|
1469
1466
|
fetchState: FetchState;
|
|
1470
1467
|
isInitialRequest: null | boolean;
|
|
1471
1468
|
}
|
|
1472
1469
|
|
|
1470
|
+
type Cue = CamelCaseKeys<Server.Cue> & {
|
|
1471
|
+
timestamp?: number;
|
|
1472
|
+
};
|
|
1473
|
+
type State$1 = {
|
|
1474
|
+
cues: Cue[];
|
|
1475
|
+
fetchState: FetchState;
|
|
1476
|
+
};
|
|
1477
|
+
|
|
1473
1478
|
type SuggestionState = {
|
|
1474
1479
|
suggestions: TextSuggestion[];
|
|
1475
1480
|
fetchState: FetchState;
|
|
@@ -1479,7 +1484,7 @@ interface TextSuggestionState {
|
|
|
1479
1484
|
[type: string]: SuggestionState;
|
|
1480
1485
|
}
|
|
1481
1486
|
|
|
1482
|
-
declare const styles$
|
|
1487
|
+
declare const styles$d: {
|
|
1483
1488
|
readonly "isDisabled": string;
|
|
1484
1489
|
readonly "buttonStart": string;
|
|
1485
1490
|
readonly "root": string;
|
|
@@ -1490,9 +1495,9 @@ declare const styles$f: {
|
|
|
1490
1495
|
readonly "isAborted": string;
|
|
1491
1496
|
};
|
|
1492
1497
|
|
|
1493
|
-
type AutoflowStyles = typeof styles$
|
|
1498
|
+
type AutoflowStyles = typeof styles$d;
|
|
1494
1499
|
|
|
1495
|
-
declare const styles$
|
|
1500
|
+
declare const styles$c: {
|
|
1496
1501
|
readonly "root": string;
|
|
1497
1502
|
readonly "list": string;
|
|
1498
1503
|
readonly "listWrapper": string;
|
|
@@ -1538,39 +1543,14 @@ declare const styles$e: {
|
|
|
1538
1543
|
readonly "actionShortcutFixKerning": string;
|
|
1539
1544
|
};
|
|
1540
1545
|
|
|
1541
|
-
type CommandPaletteStyles = typeof styles$
|
|
1542
|
-
|
|
1543
|
-
declare const styles$d: {
|
|
1544
|
-
readonly "root": string;
|
|
1545
|
-
readonly "content": string;
|
|
1546
|
-
};
|
|
1547
|
-
|
|
1548
|
-
type DialogStyles = typeof styles$d;
|
|
1549
|
-
|
|
1550
|
-
declare const styles$c: {
|
|
1551
|
-
readonly "root": string;
|
|
1552
|
-
readonly "content": string;
|
|
1553
|
-
readonly "title": string;
|
|
1554
|
-
readonly "actions": string;
|
|
1555
|
-
readonly "pagination": string;
|
|
1556
|
-
readonly "primaryButton": string;
|
|
1557
|
-
readonly "primaryButtons": string;
|
|
1558
|
-
};
|
|
1559
|
-
|
|
1560
|
-
type EditSuggestionFormStyles = typeof styles$c;
|
|
1546
|
+
type CommandPaletteStyles = typeof styles$c;
|
|
1561
1547
|
|
|
1562
1548
|
declare const styles$b: {
|
|
1563
1549
|
readonly "root": string;
|
|
1564
|
-
readonly "
|
|
1565
|
-
readonly "textInput": string;
|
|
1566
|
-
readonly "textInputWrapper": string;
|
|
1567
|
-
readonly "alert": string;
|
|
1568
|
-
readonly "alertText": string;
|
|
1569
|
-
readonly "warning": string;
|
|
1570
|
-
readonly "success": string;
|
|
1550
|
+
readonly "content": string;
|
|
1571
1551
|
};
|
|
1572
1552
|
|
|
1573
|
-
type
|
|
1553
|
+
type DialogStyles = typeof styles$b;
|
|
1574
1554
|
|
|
1575
1555
|
declare const styles$a: {
|
|
1576
1556
|
readonly "root": string;
|
|
@@ -1711,7 +1691,6 @@ type WidgetCustomStyles = {
|
|
|
1711
1691
|
SectionList?: Partial<SectionListStyles>;
|
|
1712
1692
|
Suggestion?: Partial<SuggestionStyles>;
|
|
1713
1693
|
SuggestionList?: Partial<SuggestionListStyles>;
|
|
1714
|
-
EditSuggestionForm?: Partial<EditSuggestionFormStyles>;
|
|
1715
1694
|
Widget?: Partial<WidgetStyles>;
|
|
1716
1695
|
};
|
|
1717
1696
|
type InputOverlayCustomStyles = {
|
|
@@ -1729,8 +1708,6 @@ type InputOverlayCustomStyles = {
|
|
|
1729
1708
|
ToggleButton?: Partial<ToggleButtonStyles>;
|
|
1730
1709
|
KeyboardHint?: Partial<KeyboardHintStyles>;
|
|
1731
1710
|
TabCompletion?: Partial<TabCompletionStyles>;
|
|
1732
|
-
EditSuggestionTextInput?: Partial<EditSuggestionTextInputStyles>;
|
|
1733
|
-
EditSuggestionForm?: Partial<EditSuggestionFormStyles>;
|
|
1734
1711
|
FloatingMenu?: Partial<FloatingMenuStyles>;
|
|
1735
1712
|
};
|
|
1736
1713
|
|
|
@@ -1806,6 +1783,7 @@ interface SDKEventMap {
|
|
|
1806
1783
|
text: string;
|
|
1807
1784
|
selectionAfter: SelectionRange;
|
|
1808
1785
|
};
|
|
1786
|
+
'cues': Cue[];
|
|
1809
1787
|
'replace': {
|
|
1810
1788
|
text: string;
|
|
1811
1789
|
replace: SelectionRange;
|
|
@@ -1873,16 +1851,15 @@ declare class DeepdeskSDK {
|
|
|
1873
1851
|
store: Store;
|
|
1874
1852
|
constructor({ deepdeskUrl, brokerUrl, version, locale, token, fetch, productName, createCustomChannel, }: SDKOptions);
|
|
1875
1853
|
get state(): redux.EmptyObject & {
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
knowledgeAssistant: State$7;
|
|
1854
|
+
answer: State$7;
|
|
1855
|
+
auth: State$f;
|
|
1856
|
+
autoflows: State$e;
|
|
1857
|
+
conversation: State$d;
|
|
1858
|
+
contentTypes: State$c;
|
|
1859
|
+
customMessages: State$b;
|
|
1860
|
+
passwordlessToken: State$a;
|
|
1861
|
+
entities: State$9;
|
|
1862
|
+
knowledgeAssistant: State$8;
|
|
1886
1863
|
handlingTime: State$g;
|
|
1887
1864
|
info: {
|
|
1888
1865
|
agentInfo?: AgentInfo | undefined;
|
|
@@ -1890,8 +1867,7 @@ declare class DeepdeskSDK {
|
|
|
1890
1867
|
visitorInfo?: VisitorInfo | undefined;
|
|
1891
1868
|
fetchState: FetchState;
|
|
1892
1869
|
};
|
|
1893
|
-
input: State$
|
|
1894
|
-
overlayInput: State$5;
|
|
1870
|
+
input: State$6;
|
|
1895
1871
|
settings: {
|
|
1896
1872
|
locale: Locale;
|
|
1897
1873
|
deanonymize: boolean;
|
|
@@ -1922,10 +1898,10 @@ declare class DeepdeskSDK {
|
|
|
1922
1898
|
productName: string;
|
|
1923
1899
|
suggestionFeedbackEmailAddresses?: string[] | undefined;
|
|
1924
1900
|
};
|
|
1925
|
-
profile: State$
|
|
1926
|
-
search: State$
|
|
1927
|
-
summary: State$
|
|
1928
|
-
styleSuggestions: State$
|
|
1901
|
+
profile: State$5;
|
|
1902
|
+
search: State$4;
|
|
1903
|
+
summary: State$3;
|
|
1904
|
+
styleSuggestions: State$2;
|
|
1929
1905
|
ui: {
|
|
1930
1906
|
showTabHint: boolean;
|
|
1931
1907
|
inputHasFocus: boolean;
|
|
@@ -1933,6 +1909,7 @@ declare class DeepdeskSDK {
|
|
|
1933
1909
|
openOverlayWhenTyping: boolean;
|
|
1934
1910
|
overlayCollapsedUserOverwrite: boolean;
|
|
1935
1911
|
};
|
|
1912
|
+
rules: State$1;
|
|
1936
1913
|
textSuggestions: TextSuggestionState;
|
|
1937
1914
|
};
|
|
1938
1915
|
get settings(): {
|
|
@@ -2055,18 +2032,13 @@ declare class DeepdeskSDK {
|
|
|
2055
2032
|
private notifyPaste;
|
|
2056
2033
|
private notifyCut;
|
|
2057
2034
|
notifyExternalSuggestion(suggestion: StageSuggestion): void;
|
|
2058
|
-
|
|
2059
|
-
contentType: string;
|
|
2060
|
-
suggestions: TextSuggestion[];
|
|
2061
|
-
index: number | null;
|
|
2062
|
-
}): void;
|
|
2035
|
+
evaluateRule(label: string, params?: Record<string, any>): Promise<any>;
|
|
2063
2036
|
private handleInputChanged;
|
|
2064
2037
|
private handleKeyDown;
|
|
2065
2038
|
private handleAfterSendMessage;
|
|
2066
2039
|
handlingTimeStart(): void;
|
|
2067
2040
|
handlingTimeStop(): void;
|
|
2068
2041
|
private logSendMessage;
|
|
2069
|
-
private logSendEditMessage;
|
|
2070
2042
|
private logHandlingTime;
|
|
2071
2043
|
/**
|
|
2072
2044
|
* Method to call when the agent has sent a message to the visitor
|