@telia-ace/widget-conversation-flamingo 1.1.123-rc.9 → 1.1.123
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/chat-session.d.ts +3 -3
- package/conversation-feed.d.ts +3 -3
- package/conversation.d.ts +7 -3
- package/entry.d.ts +5 -5
- package/group.d.ts +3 -3
- package/index.js +121 -106
- package/index.mjs +1413 -1370
- package/message-types/lightbox.d.ts +3 -3
- package/message-types/message-type-html.d.ts +3 -3
- package/message-types/message-type-markdown.d.ts +3 -3
- package/models/agent.d.ts +2 -1
- package/models/conversation-provider.d.ts +4 -4
- package/models/system.d.ts +2 -1
- package/models/user.d.ts +2 -1
- package/package.json +2 -2
- package/types.d.ts +1 -1
- package/typing.d.ts +3 -3
- package/widget-manifest.json +22 -1
package/chat-session.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BehaviorSubject, Subject } from 'rxjs';
|
|
1
|
+
import { BehaviorSubject, Subject, Observable } from 'rxjs';
|
|
2
2
|
import { ConversationProvider } from './models/conversation-provider';
|
|
3
3
|
import { ConversationEntry } from './models/conversation-entry';
|
|
4
4
|
import { default as Conversation } from './conversation';
|
|
@@ -19,10 +19,10 @@ export declare class ChatSession {
|
|
|
19
19
|
private kill$;
|
|
20
20
|
private isTyping$;
|
|
21
21
|
data$: BehaviorSubject<Record<string, any>>;
|
|
22
|
-
complete$:
|
|
22
|
+
complete$: Observable<void>;
|
|
23
23
|
constructor(id: string, providerKey: string, providerOptions: Record<string, any>, data: Record<string, any>, component: Conversation);
|
|
24
24
|
start(): void;
|
|
25
|
-
entries():
|
|
25
|
+
entries(): Observable<ConversationEntry[]>;
|
|
26
26
|
rehydrate(): void;
|
|
27
27
|
toStore(): SerializedChatSession;
|
|
28
28
|
private write;
|
package/conversation-feed.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { LitElement, PropertyValueMap } from 'lit';
|
|
1
|
+
import { LitElement, PropertyValueMap, CSSResultGroup, TemplateResult } from 'lit';
|
|
2
2
|
import { ConversationEntry } from './models/conversation-entry';
|
|
3
3
|
export declare class ConversationFeed extends LitElement {
|
|
4
|
-
static styles:
|
|
4
|
+
static styles: CSSResultGroup;
|
|
5
5
|
entries: ConversationEntry[];
|
|
6
6
|
loading: boolean;
|
|
7
7
|
updated(_changedProperties: PropertyValueMap<any>): void;
|
|
8
|
-
render():
|
|
8
|
+
render(): TemplateResult;
|
|
9
9
|
}
|
package/conversation.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
1
|
+
import { LitElement, CSSResultGroup, TemplateResult } from 'lit';
|
|
2
2
|
import { AuthState } from '../../core/src/index.ts';
|
|
3
3
|
import { ConversationPlatform } from './conversation-platform';
|
|
4
4
|
import { Observable, Subject } from 'rxjs';
|
|
@@ -6,7 +6,7 @@ import { StateMachine } from './state-machine';
|
|
|
6
6
|
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
|
-
static styles:
|
|
9
|
+
static styles: CSSResultGroup;
|
|
10
10
|
platform: ConversationPlatform | null;
|
|
11
11
|
entries: ConversationEntry[];
|
|
12
12
|
typing: boolean;
|
|
@@ -19,6 +19,7 @@ export declare class Conversation extends WidgetElement {
|
|
|
19
19
|
private showAuthBanner;
|
|
20
20
|
private authenticated;
|
|
21
21
|
private isMuted;
|
|
22
|
+
private isKeyboardNavigation;
|
|
22
23
|
private conversationContentRef;
|
|
23
24
|
private conversationFeedRef;
|
|
24
25
|
private formRef;
|
|
@@ -48,6 +49,9 @@ export declare class Conversation extends WidgetElement {
|
|
|
48
49
|
private addHeaderOptions;
|
|
49
50
|
private inputHandler;
|
|
50
51
|
private keyDownHandler;
|
|
52
|
+
private mouseDownHandler;
|
|
53
|
+
private focusHandler;
|
|
54
|
+
private blurHandler;
|
|
51
55
|
private getAuthBannerMessage;
|
|
52
56
|
disableInput(): void;
|
|
53
57
|
enableInput(): void;
|
|
@@ -60,6 +64,6 @@ export declare class Conversation extends WidgetElement {
|
|
|
60
64
|
skipToLatestMessage(): void;
|
|
61
65
|
setAuthenticationBannerStatus(status: AuthState.Authenticated | AuthState.NonAuthenticated | null): void;
|
|
62
66
|
handover(providerKey: string, providerOptions: Record<string, any>): Observable<void>;
|
|
63
|
-
render():
|
|
67
|
+
render(): TemplateResult;
|
|
64
68
|
}
|
|
65
69
|
export default Conversation;
|
package/entry.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { LitElement, nothing } from 'lit';
|
|
1
|
+
import { LitElement, nothing, CSSResultGroup, TemplateResult } from 'lit';
|
|
2
2
|
import { ConversationEntry } from './models/conversation-entry';
|
|
3
3
|
import { ConversationEntryAction } from './types';
|
|
4
4
|
export declare class ConversationMessage extends LitElement {
|
|
5
|
-
static styles:
|
|
5
|
+
static styles: CSSResultGroup;
|
|
6
6
|
entry: ConversationEntry;
|
|
7
7
|
private readonly application;
|
|
8
8
|
connectedCallback(): void;
|
|
9
9
|
_getTimestamp(raw: number): string;
|
|
10
|
-
_renderTimestamp(name: string, timestamp: number | null): typeof nothing
|
|
11
|
-
_renderDeliveryStatus(status: 'delivered' | 'pending' | 'failed'):
|
|
10
|
+
_renderTimestamp(name: string, timestamp: number | null): TemplateResult | typeof nothing;
|
|
11
|
+
_renderDeliveryStatus(status: 'delivered' | 'pending' | 'failed'): TemplateResult;
|
|
12
12
|
_dispatchEntryAction(event: CustomEvent<ConversationEntryAction>): void;
|
|
13
|
-
render(): typeof nothing
|
|
13
|
+
render(): TemplateResult | typeof nothing;
|
|
14
14
|
}
|
package/group.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
1
|
+
import { LitElement, CSSResultGroup, TemplateResult } from 'lit';
|
|
2
2
|
import { ConversationMessageGroup } from './types';
|
|
3
3
|
export declare class Group extends LitElement {
|
|
4
|
-
static styles:
|
|
4
|
+
static styles: CSSResultGroup;
|
|
5
5
|
group: ConversationMessageGroup;
|
|
6
|
-
render():
|
|
6
|
+
render(): TemplateResult;
|
|
7
7
|
}
|