@telia-ace/widget-conversation-flamingo 1.1.12-rc.3 → 1.1.12-rc.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -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-a518bd92.mjs").then((t) => t.c));
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.environment.container.register(
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 || [];