@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.
@@ -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 {
@@ -0,0 +1,3 @@
1
+ import '../answerTemplate/answerTemplate.scss';
2
+ import { h } from 'preact';
3
+ export declare function StreamingAnswersTemplate(props: any): h.JSX.Element;