@telia-ace/widget-conversation-flamingo 1.1.12-rc.3 → 1.1.12-rc.4
Sign up to get free protection for your applications and to get access to all the features.
- package/{conversation-8e924136.js → conversation-a8bfac8a.js} +29 -29
- package/{conversation-a518bd92.mjs → conversation-cea6b886.mjs} +244 -246
- package/conversation-platform.d.ts +1 -0
- package/{index-231900d1.mjs → index-104d237e.mjs} +4 -7
- package/{index-b34ddf78.js → index-161bd0e8.js} +1 -1
- package/{index-592f145b.js → index-e010cbfc.js} +2 -2
- package/{index-b5ca9962.mjs → index-e96c1436.mjs} +2 -2
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +2 -2
@@ -5,6 +5,7 @@ export type ProviderFactory = () => ConversationProvider;
|
|
5
5
|
export declare class ConversationPlatform {
|
6
6
|
sessions: Map<string, ConversationSessionState>;
|
7
7
|
registeredProviders: Map<string, ProviderFactory>;
|
8
|
+
activeSessionId: string | null;
|
8
9
|
registerProvider(name: string, provider: ProviderFactory): void;
|
9
10
|
createSession(component: Conversation): ConversationSessionState;
|
10
11
|
private getProviderByConfiguration;
|
@@ -1,12 +1,9 @@
|
|
1
1
|
const gt = async (e) => {
|
2
|
-
e.registerComponent("conversation", import("./conversation-
|
2
|
+
e.registerComponent("conversation", import("./conversation-cea6b886.mjs").then((t) => t.c));
|
3
3
|
const r = await Promise.resolve().then(() => yt).then(
|
4
4
|
(t) => t.ConversationPlatform
|
5
5
|
);
|
6
|
-
e.container.
|
7
|
-
"conversation",
|
8
|
-
new r()
|
9
|
-
);
|
6
|
+
e.container.register("conversation", new r());
|
10
7
|
};
|
11
8
|
let m;
|
12
9
|
const q = new Uint8Array(16);
|
@@ -647,7 +644,7 @@ class vt {
|
|
647
644
|
}
|
648
645
|
class bt {
|
649
646
|
constructor() {
|
650
|
-
this.sessions = /* @__PURE__ */ new Map(), this.registeredProviders = /* @__PURE__ */ new Map();
|
647
|
+
this.sessions = /* @__PURE__ */ new Map(), this.registeredProviders = /* @__PURE__ */ new Map(), this.activeSessionId = null;
|
651
648
|
}
|
652
649
|
registerProvider(r, t) {
|
653
650
|
this.registeredProviders.set(r, t);
|
@@ -658,7 +655,7 @@ class bt {
|
|
658
655
|
const i = n();
|
659
656
|
t.setProvider(i);
|
660
657
|
}
|
661
|
-
return this.sessions.set(t.id, t), t;
|
658
|
+
return this.sessions.set(t.id, t), this.activeSessionId = t.id, t;
|
662
659
|
}
|
663
660
|
getProviderByConfiguration(r) {
|
664
661
|
const [t] = r.properties.providers || [];
|