@telia-ace/widget-conversation-flamingo 1.1.34-rc.0 → 1.1.34-rc.1
Sign up to get free protection for your applications and to get access to all the features.
- package/controllers/toast-controller.d.ts +10 -0
- package/{conversation-d74b7570.mjs → conversation-16392b4c.mjs} +948 -831
- package/conversation-3d26c066.js +768 -0
- package/conversation.d.ts +5 -0
- package/entry.d.ts +4 -1
- package/{index-0b4bc287.mjs → index-127a80a4.mjs} +2 -2
- package/index-fe488435.js +1 -0
- package/index.d.ts +1 -0
- package/index.js +3 -1
- package/index.mjs +1303 -8
- package/models/conversation-entry.d.ts +4 -1
- package/models/conversation-provider.d.ts +5 -0
- package/models/conversation-session-state.d.ts +1 -0
- package/models/system.d.ts +8 -0
- package/package.json +2 -2
- package/types.d.ts +4 -0
- package/conversation-2b47ebf9.js +0 -706
- package/index-1f92dd69.js +0 -3
- package/index-351f4e11.mjs +0 -1245
- package/index-ae71f17a.js +0 -1
@@ -1,11 +1,14 @@
|
|
1
1
|
import { Subject } from 'rxjs';
|
2
|
-
import { ConversationMessage, ConversationMessageGroup, ConversationMessageSender, ConversationMessageType } from '../types';
|
2
|
+
import { ConversationEntryAction, ConversationMessage, ConversationMessageGroup, ConversationMessageSender, ConversationMessageType } from '../types';
|
3
3
|
export declare class ConversationEntry {
|
4
4
|
type: ConversationMessageType;
|
5
5
|
sender: ConversationMessageSender;
|
6
6
|
messages: ConversationMessageGroup[];
|
7
7
|
timestamp: number;
|
8
8
|
didUpdate: Subject<ConversationEntry>;
|
9
|
+
actions$: Subject<ConversationEntryAction>;
|
10
|
+
remove$: Subject<void>;
|
9
11
|
constructor(type: ConversationMessageType, sender: ConversationMessageSender, messages: ConversationMessageGroup[]);
|
10
12
|
update(content: ConversationMessage[]): void;
|
13
|
+
remove(): void;
|
11
14
|
}
|
@@ -3,6 +3,7 @@ import { ConversationEntry } from './conversation-entry';
|
|
3
3
|
import { Agent } from './agent';
|
4
4
|
import { User } from './user';
|
5
5
|
import { ConversationSessionState } from './conversation-session-state';
|
6
|
+
import { System } from './system';
|
6
7
|
type UserSubmitEvent = {
|
7
8
|
text: string;
|
8
9
|
};
|
@@ -11,13 +12,17 @@ export declare class ConversationProvider {
|
|
11
12
|
session: ConversationSessionState;
|
12
13
|
private print$;
|
13
14
|
private typingState$;
|
15
|
+
protected system: System;
|
14
16
|
constructor(name: string, session: ConversationSessionState);
|
17
|
+
connect(): void;
|
15
18
|
onUserSubmit(action: UserSubmitEvent): void;
|
16
19
|
print(type: ConversationMessageType, text: string): ConversationEntry;
|
17
20
|
printEntry(entry: ConversationEntry): ConversationEntry;
|
18
21
|
createAgent(name: string): Agent;
|
19
22
|
createUser(name: string): User;
|
23
|
+
createSystem(): System;
|
20
24
|
setTypingState(isTyping: boolean): void;
|
25
|
+
setToastMessage(message: string | null): void;
|
21
26
|
isTyping(): import("rxjs").Observable<boolean>;
|
22
27
|
actions(): import("rxjs").Observable<ConversationEntry>;
|
23
28
|
complete(): void;
|
@@ -16,6 +16,7 @@ export declare class ConversationSessionState {
|
|
16
16
|
entries(): Observable<ConversationEntry[]>;
|
17
17
|
setProvider(provider: ConversationProvider): void;
|
18
18
|
handover(providerKey: string): void;
|
19
|
+
addEntryRemoveHandler(entry: ConversationEntry): void;
|
19
20
|
completeProvider(): void;
|
20
21
|
isTyping(): Observable<boolean>;
|
21
22
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@telia-ace/widget-conversation-flamingo",
|
3
|
-
"version": "1.1.34-rc.
|
3
|
+
"version": "1.1.34-rc.1",
|
4
4
|
"publishConfig": {
|
5
5
|
"registry": "https://registry.npmjs.org"
|
6
6
|
},
|
@@ -9,7 +9,7 @@
|
|
9
9
|
"@lit-labs/motion": "^1.0.4",
|
10
10
|
"@teliads/icons": "^8.4.0",
|
11
11
|
"@teliads/components": "^22.1.1",
|
12
|
-
"@telia-ace/widget-core-flamingo": "1.1.34-rc.
|
12
|
+
"@telia-ace/widget-core-flamingo": "1.1.34-rc.1",
|
13
13
|
"uuid": "^9.0.1",
|
14
14
|
"lit-html": "^3.0.2",
|
15
15
|
"rxjs": "^7.8.1"
|