@telia-ace/widget-conversation-flamingo 1.1.122 → 1.1.123-rc.1
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/conversation.d.ts +27 -27
- package/index.js +301 -242
- package/index.mjs +1889 -1802
- package/package.json +2 -2
package/conversation.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { LitElement } from 'lit';
|
2
|
-
import {
|
2
|
+
import { AuthState } from '../../core/src/index.ts';
|
3
3
|
import { ConversationPlatform } from './conversation-platform';
|
4
4
|
import { Observable, Subject } from 'rxjs';
|
5
5
|
import { StateMachine } from './state-machine';
|
@@ -7,28 +7,29 @@ import { ConversationEntry } from './models/conversation-entry';
|
|
7
7
|
declare const WidgetElement: (new (...args: any[]) => import('../../core/src/index.ts').WidgetComponentType) & typeof LitElement;
|
8
8
|
export declare class Conversation extends WidgetElement {
|
9
9
|
static styles: import('lit').CSSResultGroup[];
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
10
|
+
platform: ConversationPlatform | null;
|
11
|
+
entries: ConversationEntry[];
|
12
|
+
typing: boolean;
|
13
|
+
private message;
|
14
|
+
private disabledInput;
|
15
|
+
private disabledSkipToLatest;
|
16
|
+
private disabledSubmit;
|
17
|
+
private chatOverlayActive;
|
18
|
+
private textAreaLength;
|
19
|
+
private showAuthBanner;
|
20
|
+
private authenticated;
|
16
21
|
private isMuted;
|
17
|
-
conversationContentRef
|
18
|
-
conversationFeedRef
|
19
|
-
formRef
|
20
|
-
inputRef
|
21
|
-
scrollRef
|
22
|
-
counterRef
|
23
|
-
|
24
|
-
chatCurrentScrollPosition: number;
|
22
|
+
private conversationContentRef;
|
23
|
+
private conversationFeedRef;
|
24
|
+
private formRef;
|
25
|
+
private inputRef;
|
26
|
+
private scrollRef;
|
27
|
+
private counterRef;
|
28
|
+
private chatCurrentScrollPosition;
|
25
29
|
private toast;
|
26
30
|
private messageMaxLength;
|
27
31
|
private messageMaxLengthLabel;
|
28
32
|
private skipToLatestMessageLabel;
|
29
|
-
platform: ConversationPlatform | null;
|
30
|
-
entries: ConversationEntry[];
|
31
|
-
typing: boolean;
|
32
33
|
private userSubmitSubscription?;
|
33
34
|
private stateSubscription?;
|
34
35
|
private conversationState$;
|
@@ -36,15 +37,18 @@ export declare class Conversation extends WidgetElement {
|
|
36
37
|
private provider$;
|
37
38
|
userTyping$: Subject<string>;
|
38
39
|
connectedCallback(): Promise<void>;
|
40
|
+
firstUpdated(): void;
|
39
41
|
disconnectedCallback(): void;
|
40
|
-
|
41
|
-
actionKey: string;
|
42
|
-
payload: Record<string, any> | string;
|
43
|
-
}>): void;
|
42
|
+
private actionHandler;
|
44
43
|
private isTypingState;
|
45
44
|
private isAtBottom;
|
46
45
|
private scrollToBottom;
|
47
46
|
private onSessionUpdated;
|
47
|
+
private onSendMessage;
|
48
|
+
private addHeaderOptions;
|
49
|
+
private inputHandler;
|
50
|
+
private keyDownHandler;
|
51
|
+
private getAuthBannerMessage;
|
48
52
|
disableInput(): void;
|
49
53
|
enableInput(): void;
|
50
54
|
enableSkipToLatestMessage(): void;
|
@@ -53,13 +57,9 @@ export declare class Conversation extends WidgetElement {
|
|
53
57
|
enableSubmit(): void;
|
54
58
|
clearMessages(): void;
|
55
59
|
setToastMessage(message: string | null): void;
|
56
|
-
_onSendMessage(e: Event): Promise<void>;
|
57
|
-
_addHeaderOptions(): void;
|
58
|
-
_inputHandler(e: any): void;
|
59
|
-
_keyDownHandler(e: KeyboardEvent): void;
|
60
60
|
skipToLatestMessage(): void;
|
61
|
+
setAuthenticationBannerStatus(status: AuthState.Authenticated | AuthState.NonAuthenticated | null): void;
|
61
62
|
handover(providerKey: string, providerOptions: Record<string, any>): Observable<void>;
|
62
|
-
firstUpdated(): void;
|
63
63
|
render(): import('lit-html').TemplateResult<1>;
|
64
64
|
}
|
65
65
|
export default Conversation;
|