@koredev/kore-web-sdk 11.20.0-rc.808169c → 11.20.0-rc.ddaf29d
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/esm/kore-web-sdk-chat.min.js +1 -1
- package/dist/esm/plugins/agent-desktop.js +1 -1
- package/dist/esm/plugins/answers-template.js +1 -1
- package/dist/esm/plugins/v2-plugin.js +1 -1
- package/dist/plugins/answers/answersPlugin.d.ts +16 -0
- package/dist/plugins/answers/templates/answerTemplate/answerTemplate.d.ts +1 -0
- package/dist/plugins/answers/templates/streamingAnswerTemplate/streamingAnswerTemplate.d.ts +3 -0
- package/dist/umd/kore-web-sdk-umd-chat.min.js +1 -1
- package/dist/umd/plugins/agent-desktop-umd.js +1 -1
- package/dist/umd/plugins/answers-template.js +1 -1
- package/dist/umd/plugins/v2-plugin.js +1 -1
- package/dist/utils/cm-helpers.d.ts +2 -0
- package/package.json +1 -1
|
@@ -7,6 +7,10 @@ declare class AnswersTemplatesPlugin {
|
|
|
7
7
|
name: string;
|
|
8
8
|
config: {};
|
|
9
9
|
hostInstance: any;
|
|
10
|
+
streamingMessages: Map<string, {
|
|
11
|
+
text: string;
|
|
12
|
+
msgData: any;
|
|
13
|
+
}>;
|
|
10
14
|
constructor(config: any);
|
|
11
15
|
onHostCreate(): void;
|
|
12
16
|
getFeedbackSettings(): void;
|
|
@@ -16,5 +20,17 @@ declare class AnswersTemplatesPlugin {
|
|
|
16
20
|
* To install the solutions templates
|
|
17
21
|
*/
|
|
18
22
|
installPickerTemplates(): void;
|
|
23
|
+
/**
|
|
24
|
+
* Handles streaming messages for answer template
|
|
25
|
+
*/
|
|
26
|
+
handleStreamingMessage(msgData: any): void;
|
|
27
|
+
/**
|
|
28
|
+
* Updates the streaming message in the DOM with accumulated text
|
|
29
|
+
*/
|
|
30
|
+
updateStreamingMessage(messageId: string, fullText: string): void;
|
|
31
|
+
/**
|
|
32
|
+
* Finalizes streaming and replaces with full answer template
|
|
33
|
+
*/
|
|
34
|
+
stopStreamingMessage(messageId: string): void;
|
|
19
35
|
}
|
|
20
36
|
export default AnswersTemplatesPlugin;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import BaseChatTemplate from '../../../../templatemanager/templates/baseChatTemplate';
|
|
2
2
|
import './answerTemplate.scss';
|
|
3
3
|
import { h } from 'preact';
|
|
4
|
+
export declare function StreamingAnswers(props: any): h.JSX.Element;
|
|
4
5
|
export declare function Answers(props: any): h.JSX.Element;
|
|
5
6
|
export declare function answerTemplateCheck(props: any): h.JSX.Element | undefined;
|
|
6
7
|
declare class TemplateAnswers extends BaseChatTemplate {
|