@deepdesk/deepdesk-sdk 10.12.1-beta.0 → 10.12.1-beta.2
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 +7 -7
- package/dist/index.d.mts +103 -85
- package/dist/index.d.ts +103 -85
- 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
|
@@ -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 "expandOnHover": string;
|
|
15
16
|
};
|
|
16
17
|
|
|
17
18
|
type ImageProps = {
|
|
@@ -28,13 +29,16 @@ interface TitleProps extends React.HTMLProps<HTMLHeadingElement> {
|
|
|
28
29
|
className?: string;
|
|
29
30
|
as?: string;
|
|
30
31
|
}
|
|
32
|
+
interface Props$7 {
|
|
33
|
+
expandOnHover?: boolean;
|
|
34
|
+
}
|
|
31
35
|
interface CardComposition {
|
|
32
36
|
Image: FC<ImageProps>;
|
|
33
37
|
Content: FC<ContentProps>;
|
|
34
38
|
Title: FC<TitleProps>;
|
|
35
39
|
}
|
|
36
40
|
type CardStyles = typeof styles$n;
|
|
37
|
-
declare const Card: FC & CardComposition;
|
|
41
|
+
declare const Card: FC<Props$7> & CardComposition;
|
|
38
42
|
|
|
39
43
|
declare const styles$m: {
|
|
40
44
|
readonly "root": string;
|
|
@@ -274,12 +278,12 @@ declare abstract class InputMediator<HTMLElementType extends HTMLElement> {
|
|
|
274
278
|
dispose(): void;
|
|
275
279
|
}
|
|
276
280
|
|
|
277
|
-
type State$
|
|
281
|
+
type State$h = {
|
|
278
282
|
startTime: Date | null;
|
|
279
283
|
stopTime: Date | null;
|
|
280
284
|
};
|
|
281
285
|
|
|
282
|
-
interface State$
|
|
286
|
+
interface State$g {
|
|
283
287
|
contentType: string | null;
|
|
284
288
|
suggestion: TextSuggestion | null;
|
|
285
289
|
}
|
|
@@ -451,25 +455,25 @@ interface StoreConfig {
|
|
|
451
455
|
preloadedState?: any;
|
|
452
456
|
}
|
|
453
457
|
declare const reducers: redux.Reducer<redux.CombinedState<{
|
|
454
|
-
activeSuggestion: State$
|
|
455
|
-
answer: State$
|
|
456
|
-
auth: State$
|
|
457
|
-
autoflows: State$
|
|
458
|
-
conversation: State$
|
|
459
|
-
contentTypes: State$
|
|
460
|
-
customMessages: State$
|
|
461
|
-
passwordlessToken: State$
|
|
462
|
-
entities: State$
|
|
463
|
-
knowledgeAssistant: State$
|
|
464
|
-
handlingTime: State$
|
|
458
|
+
activeSuggestion: State$g;
|
|
459
|
+
answer: State$7;
|
|
460
|
+
auth: State$f;
|
|
461
|
+
autoflows: State$e;
|
|
462
|
+
conversation: State$d;
|
|
463
|
+
contentTypes: State$c;
|
|
464
|
+
customMessages: State$b;
|
|
465
|
+
passwordlessToken: State$a;
|
|
466
|
+
entities: State$9;
|
|
467
|
+
knowledgeAssistant: State$8;
|
|
468
|
+
handlingTime: State$h;
|
|
465
469
|
info: {
|
|
466
470
|
agentInfo?: AgentInfo | undefined;
|
|
467
471
|
agentSettings: unknown;
|
|
468
472
|
visitorInfo?: VisitorInfo | undefined;
|
|
469
473
|
fetchState: FetchState;
|
|
470
474
|
};
|
|
471
|
-
input: State$
|
|
472
|
-
overlayInput: State$
|
|
475
|
+
input: State$6;
|
|
476
|
+
overlayInput: State$6;
|
|
473
477
|
settings: {
|
|
474
478
|
locale: Locale;
|
|
475
479
|
deanonymize: boolean;
|
|
@@ -500,10 +504,10 @@ declare const reducers: redux.Reducer<redux.CombinedState<{
|
|
|
500
504
|
productName: string;
|
|
501
505
|
suggestionFeedbackEmailAddresses?: string[] | undefined;
|
|
502
506
|
};
|
|
503
|
-
profile: State$
|
|
504
|
-
search: State$
|
|
505
|
-
summary: State$
|
|
506
|
-
styleSuggestions: State$
|
|
507
|
+
profile: State$5;
|
|
508
|
+
search: State$4;
|
|
509
|
+
summary: State$3;
|
|
510
|
+
styleSuggestions: State$2;
|
|
507
511
|
ui: {
|
|
508
512
|
showTabHint: boolean;
|
|
509
513
|
inputHasFocus: boolean;
|
|
@@ -511,28 +515,29 @@ declare const reducers: redux.Reducer<redux.CombinedState<{
|
|
|
511
515
|
openOverlayWhenTyping: boolean;
|
|
512
516
|
overlayCollapsedUserOverwrite: boolean;
|
|
513
517
|
};
|
|
518
|
+
rules: State$1;
|
|
514
519
|
textSuggestions: TextSuggestionState;
|
|
515
520
|
}>, redux.AnyAction>;
|
|
516
521
|
declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configureStore.ToolkitStore<redux.EmptyObject & {
|
|
517
|
-
activeSuggestion: State$
|
|
518
|
-
answer: State$
|
|
519
|
-
auth: State$
|
|
520
|
-
autoflows: State$
|
|
521
|
-
conversation: State$
|
|
522
|
-
contentTypes: State$
|
|
523
|
-
customMessages: State$
|
|
524
|
-
passwordlessToken: State$
|
|
525
|
-
entities: State$
|
|
526
|
-
knowledgeAssistant: State$
|
|
527
|
-
handlingTime: State$
|
|
522
|
+
activeSuggestion: State$g;
|
|
523
|
+
answer: State$7;
|
|
524
|
+
auth: State$f;
|
|
525
|
+
autoflows: State$e;
|
|
526
|
+
conversation: State$d;
|
|
527
|
+
contentTypes: State$c;
|
|
528
|
+
customMessages: State$b;
|
|
529
|
+
passwordlessToken: State$a;
|
|
530
|
+
entities: State$9;
|
|
531
|
+
knowledgeAssistant: State$8;
|
|
532
|
+
handlingTime: State$h;
|
|
528
533
|
info: {
|
|
529
534
|
agentInfo?: AgentInfo | undefined;
|
|
530
535
|
agentSettings: unknown;
|
|
531
536
|
visitorInfo?: VisitorInfo | undefined;
|
|
532
537
|
fetchState: FetchState;
|
|
533
538
|
};
|
|
534
|
-
input: State$
|
|
535
|
-
overlayInput: State$
|
|
539
|
+
input: State$6;
|
|
540
|
+
overlayInput: State$6;
|
|
536
541
|
settings: {
|
|
537
542
|
locale: Locale;
|
|
538
543
|
deanonymize: boolean;
|
|
@@ -563,10 +568,10 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
|
|
|
563
568
|
productName: string;
|
|
564
569
|
suggestionFeedbackEmailAddresses?: string[] | undefined;
|
|
565
570
|
};
|
|
566
|
-
profile: State$
|
|
567
|
-
search: State$
|
|
568
|
-
summary: State$
|
|
569
|
-
styleSuggestions: State$
|
|
571
|
+
profile: State$5;
|
|
572
|
+
search: State$4;
|
|
573
|
+
summary: State$3;
|
|
574
|
+
styleSuggestions: State$2;
|
|
570
575
|
ui: {
|
|
571
576
|
showTabHint: boolean;
|
|
572
577
|
inputHasFocus: boolean;
|
|
@@ -574,27 +579,28 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
|
|
|
574
579
|
openOverlayWhenTyping: boolean;
|
|
575
580
|
overlayCollapsedUserOverwrite: boolean;
|
|
576
581
|
};
|
|
582
|
+
rules: State$1;
|
|
577
583
|
textSuggestions: TextSuggestionState;
|
|
578
584
|
}, redux.AnyAction, _reduxjs_toolkit.ThunkMiddleware<redux.CombinedState<{
|
|
579
|
-
activeSuggestion: State$
|
|
580
|
-
answer: State$
|
|
581
|
-
auth: State$
|
|
582
|
-
autoflows: State$
|
|
583
|
-
conversation: State$
|
|
584
|
-
contentTypes: State$
|
|
585
|
-
customMessages: State$
|
|
586
|
-
passwordlessToken: State$
|
|
587
|
-
entities: State$
|
|
588
|
-
knowledgeAssistant: State$
|
|
589
|
-
handlingTime: State$
|
|
585
|
+
activeSuggestion: State$g;
|
|
586
|
+
answer: State$7;
|
|
587
|
+
auth: State$f;
|
|
588
|
+
autoflows: State$e;
|
|
589
|
+
conversation: State$d;
|
|
590
|
+
contentTypes: State$c;
|
|
591
|
+
customMessages: State$b;
|
|
592
|
+
passwordlessToken: State$a;
|
|
593
|
+
entities: State$9;
|
|
594
|
+
knowledgeAssistant: State$8;
|
|
595
|
+
handlingTime: State$h;
|
|
590
596
|
info: {
|
|
591
597
|
agentInfo?: AgentInfo | undefined;
|
|
592
598
|
agentSettings: unknown;
|
|
593
599
|
visitorInfo?: VisitorInfo | undefined;
|
|
594
600
|
fetchState: FetchState;
|
|
595
601
|
};
|
|
596
|
-
input: State$
|
|
597
|
-
overlayInput: State$
|
|
602
|
+
input: State$6;
|
|
603
|
+
overlayInput: State$6;
|
|
598
604
|
settings: {
|
|
599
605
|
locale: Locale;
|
|
600
606
|
deanonymize: boolean;
|
|
@@ -625,10 +631,10 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
|
|
|
625
631
|
productName: string;
|
|
626
632
|
suggestionFeedbackEmailAddresses?: string[] | undefined;
|
|
627
633
|
};
|
|
628
|
-
profile: State$
|
|
629
|
-
search: State$
|
|
630
|
-
summary: State$
|
|
631
|
-
styleSuggestions: State$
|
|
634
|
+
profile: State$5;
|
|
635
|
+
search: State$4;
|
|
636
|
+
summary: State$3;
|
|
637
|
+
styleSuggestions: State$2;
|
|
632
638
|
ui: {
|
|
633
639
|
showTabHint: boolean;
|
|
634
640
|
inputHasFocus: boolean;
|
|
@@ -636,6 +642,7 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
|
|
|
636
642
|
openOverlayWhenTyping: boolean;
|
|
637
643
|
overlayCollapsedUserOverwrite: boolean;
|
|
638
644
|
};
|
|
645
|
+
rules: State$1;
|
|
639
646
|
textSuggestions: TextSuggestionState;
|
|
640
647
|
}>, redux.AnyAction, {
|
|
641
648
|
dynamicThunkObject: Record<string, unknown> | undefined;
|
|
@@ -645,7 +652,7 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
|
|
|
645
652
|
type RootState = ReturnType<typeof reducers>;
|
|
646
653
|
type Store = ReturnType<typeof createStore>;
|
|
647
654
|
|
|
648
|
-
interface State$
|
|
655
|
+
interface State$f {
|
|
649
656
|
isLoggedIn: boolean | null;
|
|
650
657
|
loginFetchState: FetchState;
|
|
651
658
|
verifyFetchState: FetchState;
|
|
@@ -655,25 +662,25 @@ interface State$e {
|
|
|
655
662
|
type Autoflow = CamelCaseKeys<Server$1.Autoflow> & {
|
|
656
663
|
isBusy?: boolean;
|
|
657
664
|
};
|
|
658
|
-
interface State$
|
|
665
|
+
interface State$e {
|
|
659
666
|
list: Autoflow[];
|
|
660
667
|
fetchState: FetchState;
|
|
661
668
|
isInitialRequest: null | boolean;
|
|
662
669
|
}
|
|
663
670
|
|
|
664
|
-
interface State$
|
|
671
|
+
interface State$d {
|
|
665
672
|
current: Conversation | null;
|
|
666
673
|
isSupported: boolean | null;
|
|
667
674
|
}
|
|
668
675
|
|
|
669
676
|
type ContentType = CamelCaseKeys<Server.ContentType>;
|
|
670
|
-
type State$
|
|
677
|
+
type State$c = {
|
|
671
678
|
data: ContentType[] | null;
|
|
672
679
|
fetchState: FetchState;
|
|
673
680
|
};
|
|
674
681
|
|
|
675
682
|
type CustomMessage = CamelCaseKeys<Server$1.CustomMessage>;
|
|
676
|
-
interface State$
|
|
683
|
+
interface State$b {
|
|
677
684
|
list: CustomMessage[];
|
|
678
685
|
fetchState: FetchState;
|
|
679
686
|
isInitialRequest: null | boolean;
|
|
@@ -682,18 +689,18 @@ interface State$a {
|
|
|
682
689
|
answeredSuggestions: string[];
|
|
683
690
|
}
|
|
684
691
|
|
|
685
|
-
type State$
|
|
692
|
+
type State$a = {
|
|
686
693
|
token: string | null;
|
|
687
694
|
accountUrl: string | null;
|
|
688
695
|
interval: NodeJS.Timer | null;
|
|
689
696
|
};
|
|
690
697
|
|
|
691
|
-
type State$
|
|
698
|
+
type State$9 = {
|
|
692
699
|
data: Entity[] | null;
|
|
693
700
|
fetchState: FetchState;
|
|
694
701
|
};
|
|
695
702
|
|
|
696
|
-
type State$
|
|
703
|
+
type State$8 = {
|
|
697
704
|
data: KnowledgeAssistant | null;
|
|
698
705
|
fetchState: FetchState;
|
|
699
706
|
};
|
|
@@ -715,7 +722,7 @@ interface KnowledgeResponse {
|
|
|
715
722
|
question: string;
|
|
716
723
|
answer: KnowledgeAnswer;
|
|
717
724
|
}
|
|
718
|
-
type State$
|
|
725
|
+
type State$7 = {
|
|
719
726
|
data: KnowledgeResponse[];
|
|
720
727
|
fetchState: FetchState;
|
|
721
728
|
};
|
|
@@ -1420,7 +1427,7 @@ type MetricState = {
|
|
|
1420
1427
|
textSuggestions: SuggestionMetrics[];
|
|
1421
1428
|
cuts: any[];
|
|
1422
1429
|
};
|
|
1423
|
-
type State$
|
|
1430
|
+
type State$6 = {
|
|
1424
1431
|
text: string;
|
|
1425
1432
|
html: string | null;
|
|
1426
1433
|
selection: SelectionRange;
|
|
@@ -1436,7 +1443,7 @@ type State$5 = {
|
|
|
1436
1443
|
selectedSuggestionIndex: number;
|
|
1437
1444
|
};
|
|
1438
1445
|
|
|
1439
|
-
type State$
|
|
1446
|
+
type State$5 = {
|
|
1440
1447
|
data: Profile | null;
|
|
1441
1448
|
fetchState: FetchState;
|
|
1442
1449
|
};
|
|
@@ -1450,7 +1457,7 @@ declare enum SearchResultDefaultType {
|
|
|
1450
1457
|
}
|
|
1451
1458
|
type SearchResultType = string | SearchResultDefaultType;
|
|
1452
1459
|
type SearchResult = SearchSuggestion;
|
|
1453
|
-
interface State$
|
|
1460
|
+
interface State$4 {
|
|
1454
1461
|
list: Array<SearchResult>;
|
|
1455
1462
|
page: string;
|
|
1456
1463
|
fetchState: FetchState;
|
|
@@ -1458,18 +1465,26 @@ interface State$3 {
|
|
|
1458
1465
|
aggregates: Record<string, number>;
|
|
1459
1466
|
}
|
|
1460
1467
|
|
|
1461
|
-
type State$
|
|
1468
|
+
type State$3 = {
|
|
1462
1469
|
data: string | null;
|
|
1463
1470
|
fetchState: FetchState;
|
|
1464
1471
|
};
|
|
1465
1472
|
|
|
1466
1473
|
type StyleSuggestion = CamelCaseKeys<Server.StyleSuggestion>;
|
|
1467
|
-
interface State$
|
|
1474
|
+
interface State$2 {
|
|
1468
1475
|
list: StyleSuggestion;
|
|
1469
1476
|
fetchState: FetchState;
|
|
1470
1477
|
isInitialRequest: null | boolean;
|
|
1471
1478
|
}
|
|
1472
1479
|
|
|
1480
|
+
type Cue = CamelCaseKeys<Server.Cue> & {
|
|
1481
|
+
timestamp?: number;
|
|
1482
|
+
};
|
|
1483
|
+
type State$1 = {
|
|
1484
|
+
cues: Cue[];
|
|
1485
|
+
fetchState: FetchState;
|
|
1486
|
+
};
|
|
1487
|
+
|
|
1473
1488
|
type SuggestionState = {
|
|
1474
1489
|
suggestions: TextSuggestion[];
|
|
1475
1490
|
fetchState: FetchState;
|
|
@@ -1806,6 +1821,7 @@ interface SDKEventMap {
|
|
|
1806
1821
|
text: string;
|
|
1807
1822
|
selectionAfter: SelectionRange;
|
|
1808
1823
|
};
|
|
1824
|
+
'cues': Cue[];
|
|
1809
1825
|
'replace': {
|
|
1810
1826
|
text: string;
|
|
1811
1827
|
replace: SelectionRange;
|
|
@@ -1873,25 +1889,25 @@ declare class DeepdeskSDK {
|
|
|
1873
1889
|
store: Store;
|
|
1874
1890
|
constructor({ deepdeskUrl, brokerUrl, version, locale, token, fetch, productName, createCustomChannel, }: SDKOptions);
|
|
1875
1891
|
get state(): redux.EmptyObject & {
|
|
1876
|
-
activeSuggestion: State$
|
|
1877
|
-
answer: State$
|
|
1878
|
-
auth: State$
|
|
1879
|
-
autoflows: State$
|
|
1880
|
-
conversation: State$
|
|
1881
|
-
contentTypes: State$
|
|
1882
|
-
customMessages: State$
|
|
1883
|
-
passwordlessToken: State$
|
|
1884
|
-
entities: State$
|
|
1885
|
-
knowledgeAssistant: State$
|
|
1886
|
-
handlingTime: State$
|
|
1892
|
+
activeSuggestion: State$g;
|
|
1893
|
+
answer: State$7;
|
|
1894
|
+
auth: State$f;
|
|
1895
|
+
autoflows: State$e;
|
|
1896
|
+
conversation: State$d;
|
|
1897
|
+
contentTypes: State$c;
|
|
1898
|
+
customMessages: State$b;
|
|
1899
|
+
passwordlessToken: State$a;
|
|
1900
|
+
entities: State$9;
|
|
1901
|
+
knowledgeAssistant: State$8;
|
|
1902
|
+
handlingTime: State$h;
|
|
1887
1903
|
info: {
|
|
1888
1904
|
agentInfo?: AgentInfo | undefined;
|
|
1889
1905
|
agentSettings: unknown;
|
|
1890
1906
|
visitorInfo?: VisitorInfo | undefined;
|
|
1891
1907
|
fetchState: FetchState;
|
|
1892
1908
|
};
|
|
1893
|
-
input: State$
|
|
1894
|
-
overlayInput: State$
|
|
1909
|
+
input: State$6;
|
|
1910
|
+
overlayInput: State$6;
|
|
1895
1911
|
settings: {
|
|
1896
1912
|
locale: Locale;
|
|
1897
1913
|
deanonymize: boolean;
|
|
@@ -1922,10 +1938,10 @@ declare class DeepdeskSDK {
|
|
|
1922
1938
|
productName: string;
|
|
1923
1939
|
suggestionFeedbackEmailAddresses?: string[] | undefined;
|
|
1924
1940
|
};
|
|
1925
|
-
profile: State$
|
|
1926
|
-
search: State$
|
|
1927
|
-
summary: State$
|
|
1928
|
-
styleSuggestions: State$
|
|
1941
|
+
profile: State$5;
|
|
1942
|
+
search: State$4;
|
|
1943
|
+
summary: State$3;
|
|
1944
|
+
styleSuggestions: State$2;
|
|
1929
1945
|
ui: {
|
|
1930
1946
|
showTabHint: boolean;
|
|
1931
1947
|
inputHasFocus: boolean;
|
|
@@ -1933,6 +1949,7 @@ declare class DeepdeskSDK {
|
|
|
1933
1949
|
openOverlayWhenTyping: boolean;
|
|
1934
1950
|
overlayCollapsedUserOverwrite: boolean;
|
|
1935
1951
|
};
|
|
1952
|
+
rules: State$1;
|
|
1936
1953
|
textSuggestions: TextSuggestionState;
|
|
1937
1954
|
};
|
|
1938
1955
|
get settings(): {
|
|
@@ -2060,6 +2077,7 @@ declare class DeepdeskSDK {
|
|
|
2060
2077
|
suggestions: TextSuggestion[];
|
|
2061
2078
|
index: number | null;
|
|
2062
2079
|
}): void;
|
|
2080
|
+
evaluateRule(label: string, params?: Record<string, any>): Promise<any>;
|
|
2063
2081
|
private handleInputChanged;
|
|
2064
2082
|
private handleKeyDown;
|
|
2065
2083
|
private handleAfterSendMessage;
|