@telia-ace/widget-conversation-flamingo 1.1.70-rc.3 → 1.1.70-rc.30
Sign up to get free protection for your applications and to get access to all the features.
- package/conversation.d.ts +17 -2
- package/index.js +180 -97
- package/index.mjs +1109 -962
- package/package.json +2 -2
package/conversation.d.ts
CHANGED
@@ -1,21 +1,28 @@
|
|
1
1
|
import { LitElement } from 'lit';
|
2
2
|
import { Ref } from 'lit-html/directives/ref.js';
|
3
3
|
import { ConversationPlatform } from './conversation-platform';
|
4
|
-
import { Observable } from 'rxjs';
|
4
|
+
import { Observable, Subject } from 'rxjs';
|
5
5
|
import { ConversationEntry } from './models/conversation-entry';
|
6
6
|
declare const WidgetElement: (new (...args: any[]) => import("@telia-ace/widget-core-flamingo").WidgetComponentType) & typeof LitElement;
|
7
7
|
export declare class Conversation extends WidgetElement {
|
8
8
|
static styles: import("lit").CSSResultGroup[];
|
9
9
|
message: string;
|
10
|
-
|
10
|
+
disabledInput: boolean;
|
11
|
+
disabledSubmit: boolean;
|
11
12
|
chatOverlayActive: boolean;
|
12
13
|
textAreaLength: number;
|
13
14
|
conversationContentRef: Ref<HTMLDivElement>;
|
15
|
+
conversationFeedRef: Ref<HTMLDivElement>;
|
14
16
|
formRef: Ref<HTMLFormElement>;
|
15
17
|
inputRef: Ref<HTMLTextAreaElement>;
|
18
|
+
scrollRef: Ref<HTMLDivElement>;
|
19
|
+
counterRef: Ref<HTMLDivElement>;
|
16
20
|
chatScrollHeight: number;
|
21
|
+
chatCurrentScrollPosition: number;
|
17
22
|
private toast;
|
18
23
|
private messageMaxLength;
|
24
|
+
private messageMaxLengthLabel;
|
25
|
+
private skipToLatestMessageLabel;
|
19
26
|
platform: ConversationPlatform | null;
|
20
27
|
entries: ConversationEntry[];
|
21
28
|
typing: boolean;
|
@@ -24,20 +31,28 @@ export declare class Conversation extends WidgetElement {
|
|
24
31
|
private conversationState$;
|
25
32
|
private stateMachine;
|
26
33
|
private provider$;
|
34
|
+
userTyping$: Subject<string>;
|
27
35
|
connectedCallback(): Promise<void>;
|
28
36
|
disconnectedCallback(): void;
|
29
37
|
_actionHandler(_e: CustomEvent<{
|
30
38
|
actionKey: string;
|
31
39
|
payload: Record<string, any> | string;
|
32
40
|
}>): void;
|
41
|
+
private isTypingState;
|
42
|
+
private isAtBottom;
|
43
|
+
private scrollToBottom;
|
33
44
|
private onSessionUpdated;
|
34
45
|
disableInput(): void;
|
35
46
|
enableInput(): void;
|
47
|
+
disableSubmit(): void;
|
48
|
+
enableSubmit(): void;
|
49
|
+
clearMessages(): void;
|
36
50
|
setToastMessage(message: string | null): void;
|
37
51
|
_onSendMessage(e: Event): Promise<void>;
|
38
52
|
_addHeaderOptions(): void;
|
39
53
|
_inputHandler(e: any): void;
|
40
54
|
_keyDownHandler(e: KeyboardEvent): void;
|
55
|
+
skipToLatestMessage(): void;
|
41
56
|
handover(providerKey: string, providerOptions: Record<string, any>): Observable<void>;
|
42
57
|
render(): import("lit-html").TemplateResult<1>;
|
43
58
|
}
|