@deepdesk/deepdesk-sdk 10.1.5 → 10.1.6
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 +64 -1
- package/dist/index.d.ts +64 -1
- package/dist/index.esm.js +4 -4
- package/dist/index.iife.js +9 -9
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -453,6 +453,67 @@ interface StoreConfig {
|
|
|
453
453
|
middleware?: Middleware[];
|
|
454
454
|
preloadedState?: any;
|
|
455
455
|
}
|
|
456
|
+
declare const reducers: redux.Reducer<redux.CombinedState<{
|
|
457
|
+
activeSuggestion: State$e;
|
|
458
|
+
answer: State$c;
|
|
459
|
+
auth: State$d;
|
|
460
|
+
autoflows: State$6;
|
|
461
|
+
conversation: State$b;
|
|
462
|
+
contentTypes: State$a;
|
|
463
|
+
customMessages: State$9;
|
|
464
|
+
exchangeToken: State$8;
|
|
465
|
+
entities: State$7;
|
|
466
|
+
handlingTime: State$f;
|
|
467
|
+
info: {
|
|
468
|
+
agentInfo?: AgentInfo | undefined;
|
|
469
|
+
agentSettings: unknown;
|
|
470
|
+
visitorInfo?: VisitorInfo | undefined;
|
|
471
|
+
fetchState: FetchState;
|
|
472
|
+
};
|
|
473
|
+
input: State$5;
|
|
474
|
+
overlayInput: State$5;
|
|
475
|
+
settings: {
|
|
476
|
+
locale: Locale;
|
|
477
|
+
deanonymize: boolean;
|
|
478
|
+
fallbackImage: string | false;
|
|
479
|
+
isEmbedded: boolean;
|
|
480
|
+
showAutoflows: number | boolean;
|
|
481
|
+
showCustomMessages: number | boolean;
|
|
482
|
+
showImages: boolean;
|
|
483
|
+
showPersonalCollectionLink: boolean;
|
|
484
|
+
showSearch: boolean;
|
|
485
|
+
showImageSearch: boolean;
|
|
486
|
+
showStyleSuggestions: number | boolean;
|
|
487
|
+
showMidSentenceSuggestions: boolean;
|
|
488
|
+
showSuggestionsBeforePattern: string | false;
|
|
489
|
+
showSuggestionsAfterPattern: string | false;
|
|
490
|
+
showTabCompletion: boolean;
|
|
491
|
+
showTextSuggestions: boolean;
|
|
492
|
+
showEntitiesCommand: boolean;
|
|
493
|
+
showSummaryCommand: boolean;
|
|
494
|
+
showKnowledgeSearch: boolean;
|
|
495
|
+
textSuggestionsCount: number;
|
|
496
|
+
recommendTextSuggestions: boolean;
|
|
497
|
+
searchTriggerKey: string;
|
|
498
|
+
visible: boolean;
|
|
499
|
+
insertLink: boolean;
|
|
500
|
+
inlineSuggestions: boolean;
|
|
501
|
+
adminUrl?: string | undefined;
|
|
502
|
+
productName: string;
|
|
503
|
+
};
|
|
504
|
+
profile: State$4;
|
|
505
|
+
search: State$3;
|
|
506
|
+
summary: State$2;
|
|
507
|
+
styleSuggestions: State$1;
|
|
508
|
+
ui: {
|
|
509
|
+
showTabHint: boolean;
|
|
510
|
+
inputHasFocus: boolean;
|
|
511
|
+
overlayCollapsed: boolean;
|
|
512
|
+
openOverlayWhenTyping: boolean;
|
|
513
|
+
overlayCollapsedUserOverwrite: boolean;
|
|
514
|
+
};
|
|
515
|
+
textSuggestions: TextSuggestionState;
|
|
516
|
+
}>, redux.AnyAction>;
|
|
456
517
|
declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configureStore.ToolkitStore<redux.EmptyObject & {
|
|
457
518
|
activeSuggestion: State$e;
|
|
458
519
|
answer: State$c;
|
|
@@ -578,6 +639,7 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
|
|
|
578
639
|
deepdeskAPI: DeepdeskAPI;
|
|
579
640
|
deepdeskBrokerAPI: DeepdeskBrokerAPI | undefined;
|
|
580
641
|
}>[]>;
|
|
642
|
+
type RootState = ReturnType<typeof reducers>;
|
|
581
643
|
type Store = ReturnType<typeof createStore>;
|
|
582
644
|
|
|
583
645
|
interface State$d {
|
|
@@ -1601,6 +1663,7 @@ interface TextSuggestionState {
|
|
|
1601
1663
|
interface MessagePayload {
|
|
1602
1664
|
name: string;
|
|
1603
1665
|
type: string;
|
|
1666
|
+
channel: string;
|
|
1604
1667
|
payload: unknown;
|
|
1605
1668
|
}
|
|
1606
1669
|
interface Channel {
|
|
@@ -2096,4 +2159,4 @@ declare function waitForElementVisibilityChange(element: HTMLElement, callback:
|
|
|
2096
2159
|
type CSSModule = Record<string, string>;
|
|
2097
2160
|
declare function useStyles<TStyles extends CSSModule>(componentName: string, defaultStyles: TStyles): TStyles;
|
|
2098
2161
|
|
|
2099
|
-
export { AgentInfo, Card, Chip, ContentEditableInput, Conversation, ConversationMessage, DeepdeskAPI, DeepdeskSDK, InputMediator, InputOverlayCustomStyles, InputType, KeyboardHint, Label, Locale, Logger, MountOptions, PinnedMessage, PlatformConfig, Section, SectionList, SelectionRange, Sources, Suggestion, SuggestionEventMetrics, SuggestionList, SuggestionMetrics, TextAreaInput, TextSuggestion, ToggleButton, UrlSuggestion, VisitorInfo, WidgetCustomStyles, WidgetOptions, attachFile, authenticateWithKey, createOverlayContainer, createRangeFromOffsets, escapeHTML, fetchPlatformConfig, formatTextMarkup, getRangeOffsets, getRangeText, isSupportedInputElement, updateContentEditable, updateTextArea, useStyles, waitForElementVisibilityChange };
|
|
2162
|
+
export { AgentInfo, Card, Chip, ContentEditableInput, Conversation, ConversationMessage, DeepdeskAPI, DeepdeskSDK, HTTPClient, InputMediator, InputOverlayCustomStyles, InputType, KeyboardHint, Label, Locale, Logger, MountOptions, PinnedMessage, PlatformConfig, RootState, Section, SectionList, SelectionRange, Sources, Suggestion, SuggestionEventMetrics, SuggestionList, SuggestionMetrics, TextAreaInput, TextSuggestion, ToggleButton, UrlSuggestion, VisitorInfo, WidgetCustomStyles, WidgetOptions, attachFile, authenticateWithKey, createOverlayContainer, createRangeFromOffsets, escapeHTML, fetchPlatformConfig, formatTextMarkup, getRangeOffsets, getRangeText, isSupportedInputElement, updateContentEditable, updateTextArea, useStyles, waitForElementVisibilityChange };
|
package/dist/index.d.ts
CHANGED
|
@@ -453,6 +453,67 @@ interface StoreConfig {
|
|
|
453
453
|
middleware?: Middleware[];
|
|
454
454
|
preloadedState?: any;
|
|
455
455
|
}
|
|
456
|
+
declare const reducers: redux.Reducer<redux.CombinedState<{
|
|
457
|
+
activeSuggestion: State$e;
|
|
458
|
+
answer: State$c;
|
|
459
|
+
auth: State$d;
|
|
460
|
+
autoflows: State$6;
|
|
461
|
+
conversation: State$b;
|
|
462
|
+
contentTypes: State$a;
|
|
463
|
+
customMessages: State$9;
|
|
464
|
+
exchangeToken: State$8;
|
|
465
|
+
entities: State$7;
|
|
466
|
+
handlingTime: State$f;
|
|
467
|
+
info: {
|
|
468
|
+
agentInfo?: AgentInfo | undefined;
|
|
469
|
+
agentSettings: unknown;
|
|
470
|
+
visitorInfo?: VisitorInfo | undefined;
|
|
471
|
+
fetchState: FetchState;
|
|
472
|
+
};
|
|
473
|
+
input: State$5;
|
|
474
|
+
overlayInput: State$5;
|
|
475
|
+
settings: {
|
|
476
|
+
locale: Locale;
|
|
477
|
+
deanonymize: boolean;
|
|
478
|
+
fallbackImage: string | false;
|
|
479
|
+
isEmbedded: boolean;
|
|
480
|
+
showAutoflows: number | boolean;
|
|
481
|
+
showCustomMessages: number | boolean;
|
|
482
|
+
showImages: boolean;
|
|
483
|
+
showPersonalCollectionLink: boolean;
|
|
484
|
+
showSearch: boolean;
|
|
485
|
+
showImageSearch: boolean;
|
|
486
|
+
showStyleSuggestions: number | boolean;
|
|
487
|
+
showMidSentenceSuggestions: boolean;
|
|
488
|
+
showSuggestionsBeforePattern: string | false;
|
|
489
|
+
showSuggestionsAfterPattern: string | false;
|
|
490
|
+
showTabCompletion: boolean;
|
|
491
|
+
showTextSuggestions: boolean;
|
|
492
|
+
showEntitiesCommand: boolean;
|
|
493
|
+
showSummaryCommand: boolean;
|
|
494
|
+
showKnowledgeSearch: boolean;
|
|
495
|
+
textSuggestionsCount: number;
|
|
496
|
+
recommendTextSuggestions: boolean;
|
|
497
|
+
searchTriggerKey: string;
|
|
498
|
+
visible: boolean;
|
|
499
|
+
insertLink: boolean;
|
|
500
|
+
inlineSuggestions: boolean;
|
|
501
|
+
adminUrl?: string | undefined;
|
|
502
|
+
productName: string;
|
|
503
|
+
};
|
|
504
|
+
profile: State$4;
|
|
505
|
+
search: State$3;
|
|
506
|
+
summary: State$2;
|
|
507
|
+
styleSuggestions: State$1;
|
|
508
|
+
ui: {
|
|
509
|
+
showTabHint: boolean;
|
|
510
|
+
inputHasFocus: boolean;
|
|
511
|
+
overlayCollapsed: boolean;
|
|
512
|
+
openOverlayWhenTyping: boolean;
|
|
513
|
+
overlayCollapsedUserOverwrite: boolean;
|
|
514
|
+
};
|
|
515
|
+
textSuggestions: TextSuggestionState;
|
|
516
|
+
}>, redux.AnyAction>;
|
|
456
517
|
declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configureStore.ToolkitStore<redux.EmptyObject & {
|
|
457
518
|
activeSuggestion: State$e;
|
|
458
519
|
answer: State$c;
|
|
@@ -578,6 +639,7 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
|
|
|
578
639
|
deepdeskAPI: DeepdeskAPI;
|
|
579
640
|
deepdeskBrokerAPI: DeepdeskBrokerAPI | undefined;
|
|
580
641
|
}>[]>;
|
|
642
|
+
type RootState = ReturnType<typeof reducers>;
|
|
581
643
|
type Store = ReturnType<typeof createStore>;
|
|
582
644
|
|
|
583
645
|
interface State$d {
|
|
@@ -1601,6 +1663,7 @@ interface TextSuggestionState {
|
|
|
1601
1663
|
interface MessagePayload {
|
|
1602
1664
|
name: string;
|
|
1603
1665
|
type: string;
|
|
1666
|
+
channel: string;
|
|
1604
1667
|
payload: unknown;
|
|
1605
1668
|
}
|
|
1606
1669
|
interface Channel {
|
|
@@ -2096,4 +2159,4 @@ declare function waitForElementVisibilityChange(element: HTMLElement, callback:
|
|
|
2096
2159
|
type CSSModule = Record<string, string>;
|
|
2097
2160
|
declare function useStyles<TStyles extends CSSModule>(componentName: string, defaultStyles: TStyles): TStyles;
|
|
2098
2161
|
|
|
2099
|
-
export { AgentInfo, Card, Chip, ContentEditableInput, Conversation, ConversationMessage, DeepdeskAPI, DeepdeskSDK, InputMediator, InputOverlayCustomStyles, InputType, KeyboardHint, Label, Locale, Logger, MountOptions, PinnedMessage, PlatformConfig, Section, SectionList, SelectionRange, Sources, Suggestion, SuggestionEventMetrics, SuggestionList, SuggestionMetrics, TextAreaInput, TextSuggestion, ToggleButton, UrlSuggestion, VisitorInfo, WidgetCustomStyles, WidgetOptions, attachFile, authenticateWithKey, createOverlayContainer, createRangeFromOffsets, escapeHTML, fetchPlatformConfig, formatTextMarkup, getRangeOffsets, getRangeText, isSupportedInputElement, updateContentEditable, updateTextArea, useStyles, waitForElementVisibilityChange };
|
|
2162
|
+
export { AgentInfo, Card, Chip, ContentEditableInput, Conversation, ConversationMessage, DeepdeskAPI, DeepdeskSDK, HTTPClient, InputMediator, InputOverlayCustomStyles, InputType, KeyboardHint, Label, Locale, Logger, MountOptions, PinnedMessage, PlatformConfig, RootState, Section, SectionList, SelectionRange, Sources, Suggestion, SuggestionEventMetrics, SuggestionList, SuggestionMetrics, TextAreaInput, TextSuggestion, ToggleButton, UrlSuggestion, VisitorInfo, WidgetCustomStyles, WidgetOptions, attachFile, authenticateWithKey, createOverlayContainer, createRangeFromOffsets, escapeHTML, fetchPlatformConfig, formatTextMarkup, getRangeOffsets, getRangeText, isSupportedInputElement, updateContentEditable, updateTextArea, useStyles, waitForElementVisibilityChange };
|