@telia-ace/widget-conversation-flamingo 1.1.18-rc.3 → 1.1.18-rc.5
Sign up to get free protection for your applications and to get access to all the features.
- package/{conversation-3926f29b.mjs → conversation-82eb83b8.mjs} +2 -2
- package/{conversation-9bbc787d.js → conversation-9745531a.js} +2 -2
- package/conversation-platform.d.ts +1 -1
- package/{index-d5d01cbe.js → index-823bc9d0.js} +1 -1
- package/index-b34f590f.js +3 -0
- package/{index-306e28c8.mjs → index-cc2f0d24.mjs} +2 -2
- package/index-e9da2f7d.mjs +1241 -0
- package/index.d.ts +1 -0
- package/index.js +1 -1
- package/index.mjs +6 -5
- package/models/conversation-provider.d.ts +4 -1
- package/models/conversation-session-state.d.ts +7 -1
- package/package.json +2 -2
- package/index-41339d4e.mjs +0 -1218
- package/index-70996338.js +0 -3
package/index.d.ts
CHANGED
@@ -4,3 +4,4 @@ export { ConversationProvider } from './models/conversation-provider';
|
|
4
4
|
export { User } from './models/user';
|
5
5
|
export { Agent } from './models/agent';
|
6
6
|
export { ConversationEntry } from './models/conversation-entry';
|
7
|
+
export { ConversationSessionState } from './models/conversation-session-state';
|
package/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-b34f590f.js");exports.Agent=o.Agent;exports.ConversationComponent=o.ConversationComponent;exports.ConversationEntry=o.ConversationEntry;exports.ConversationPlatform=o.ConversationPlatform;exports.ConversationProvider=o.ConversationProvider;exports.ConversationSessionState=o.ConversationSessionState;exports.User=o.User;
|
package/index.mjs
CHANGED
@@ -1,9 +1,10 @@
|
|
1
|
-
import { A as n, a as
|
1
|
+
import { A as n, a as s, d as e, b as r, c as t, e as i, U as v } from "./index-e9da2f7d.mjs";
|
2
2
|
export {
|
3
3
|
n as Agent,
|
4
|
-
|
5
|
-
|
6
|
-
|
4
|
+
s as ConversationComponent,
|
5
|
+
e as ConversationEntry,
|
6
|
+
r as ConversationPlatform,
|
7
7
|
t as ConversationProvider,
|
8
|
-
i as
|
8
|
+
i as ConversationSessionState,
|
9
|
+
v as User
|
9
10
|
};
|
@@ -2,14 +2,16 @@ import { ConversationMessageType } from '../types';
|
|
2
2
|
import { ConversationEntry } from './conversation-entry';
|
3
3
|
import { Agent } from './agent';
|
4
4
|
import { User } from './user';
|
5
|
+
import { ConversationSessionState } from './conversation-session-state';
|
5
6
|
type UserSubmitEvent = {
|
6
7
|
text: string;
|
7
8
|
};
|
8
9
|
export declare class ConversationProvider {
|
9
10
|
name: string;
|
11
|
+
session: ConversationSessionState;
|
10
12
|
private print$;
|
11
13
|
private typingState$;
|
12
|
-
constructor(name: string);
|
14
|
+
constructor(name: string, session: ConversationSessionState);
|
13
15
|
onUserSubmit(action: UserSubmitEvent): void;
|
14
16
|
print(type: ConversationMessageType, text: string): ConversationEntry;
|
15
17
|
printEntry(entry: ConversationEntry): ConversationEntry;
|
@@ -18,5 +20,6 @@ export declare class ConversationProvider {
|
|
18
20
|
setTypingState(isTyping: boolean): void;
|
19
21
|
isTyping(): import("rxjs").Observable<boolean>;
|
20
22
|
actions(): import("rxjs").Observable<ConversationEntry>;
|
23
|
+
complete(): void;
|
21
24
|
}
|
22
25
|
export {};
|
@@ -2,13 +2,19 @@ import { BehaviorSubject, Observable } from 'rxjs';
|
|
2
2
|
import { ConversationEntry } from './conversation-entry';
|
3
3
|
import { ConversationProvider } from './conversation-provider';
|
4
4
|
import Conversation from '../conversation';
|
5
|
+
import { ConversationPlatform } from '../conversation-platform';
|
5
6
|
export declare class ConversationSessionState {
|
6
7
|
id: string;
|
8
|
+
private platform;
|
7
9
|
entries$: BehaviorSubject<ConversationEntry[]>;
|
10
|
+
private kill$;
|
8
11
|
private provider?;
|
9
|
-
|
12
|
+
private queue;
|
13
|
+
constructor(id: string, component: Conversation, platform: ConversationPlatform);
|
10
14
|
private write;
|
11
15
|
entries(): Observable<ConversationEntry[]>;
|
12
16
|
setProvider(provider: ConversationProvider): void;
|
17
|
+
handover(providerKey: string): void;
|
18
|
+
completeProvider(): void;
|
13
19
|
isTyping(): Observable<boolean>;
|
14
20
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@telia-ace/widget-conversation-flamingo",
|
3
|
-
"version": "1.1.18-rc.
|
3
|
+
"version": "1.1.18-rc.5",
|
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.18-rc.
|
12
|
+
"@telia-ace/widget-core-flamingo": "1.1.18-rc.5",
|
13
13
|
"uuid": "^9.0.1",
|
14
14
|
"lit-html": "^3.0.2",
|
15
15
|
"rxjs": "^7.8.1"
|