@telia-ace/ace-chat-flamingo 1.1.120-rc.9 → 1.1.121-rc.0

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/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@telia-ace/ace-chat-flamingo",
3
- "version": "1.1.120-rc.9",
3
+ "version": "1.1.121-rc.0",
4
4
  "dependencies": {
5
- "@telia-ace/widget-core-flamingo": "1.1.120-rc.9",
6
- "@telia-ace/widget-conversation-flamingo": "1.1.120-rc.9",
5
+ "@telia-ace/widget-core-flamingo": "1.1.120",
6
+ "@telia-ace/widget-conversation-flamingo": "1.1.120",
7
7
  "rxjs": "^7.8.2",
8
8
  "lit": "^3.0.2",
9
9
  "@teliads/icons": "^8.4.0",
package/provider.d.ts CHANGED
@@ -1,8 +1,7 @@
1
- import { ConversationEntry, ConversationProvider } from '../../conversation/src/index.ts';
1
+ import { ConversationProvider } from '../../conversation/src/index.ts';
2
2
  export declare class ChatProvider extends ConversationProvider {
3
3
  private readonly properties;
4
4
  private readonly pendingMessages;
5
- private readonly idHubClient?;
6
5
  private readonly texts;
7
6
  private readonly headerComponent;
8
7
  private readonly isThirdPartyParticipant;
@@ -11,12 +10,18 @@ export declare class ChatProvider extends ConversationProvider {
11
10
  private readonly params;
12
11
  private readonly invitationUid;
13
12
  private readonly customerName;
13
+ private readonly idHubUrl;
14
+ private readonly shouldUseAuth;
15
+ private readonly idHubEidType;
16
+ private logoutTimer;
14
17
  private readonly disconnected$;
15
18
  private engine?;
19
+ private idHubClient?;
16
20
  private agentUsername;
17
21
  private videoConfirmDialogEntry;
18
22
  private quitConfirmDialogEntry;
19
23
  private logoutConfirmDialogEntry;
24
+ private authenticationCardEntry;
20
25
  private conversationOption;
21
26
  private _conversationOptions;
22
27
  private sessionId;
@@ -27,6 +32,7 @@ export declare class ChatProvider extends ConversationProvider {
27
32
  private guestId;
28
33
  private chatOverlayActive;
29
34
  private inVideoCall;
35
+ private authURL?;
30
36
  constructor(name: string, component: any);
31
37
  connect(conversationOptions?: Record<string, any>): void;
32
38
  disconnected(): void;
@@ -36,9 +42,9 @@ export declare class ChatProvider extends ConversationProvider {
36
42
  save(data: any): void;
37
43
  rehydrate(data: Record<string, any>): Promise<void>;
38
44
  static getInstance(key: string, component: any): ChatProvider;
39
- showLogoutConfirmDialog(): void;
40
- handleAuthentication(idref: ConversationEntry | undefined): Promise<void>;
41
45
  private initializeChat;
46
+ setupAuthenticationListeners(): void;
47
+ private setupIDHubAuth;
42
48
  private startAuthenticationFlow;
43
49
  private handleWelcomeForm;
44
50
  private startChat;
@@ -49,6 +55,7 @@ export declare class ChatProvider extends ConversationProvider {
49
55
  private clearPendingMessages;
50
56
  private setSessionId;
51
57
  private isEntranceOpen;
58
+ private resetAuthState;
52
59
  private readonly onQueueStatusReceived;
53
60
  private readonly onEstablished;
54
61
  private readonly onPrepareVideo;
@@ -57,6 +64,7 @@ export declare class ChatProvider extends ConversationProvider {
57
64
  private readonly onEndVideoButtonClicked;
58
65
  private readonly onPenStatusChange;
59
66
  private readonly onChatEnded;
67
+ private handleAuthentication;
60
68
  private printAgent;
61
69
  private printUser;
62
70
  private printSystem;
@@ -69,6 +77,8 @@ export declare class ChatProvider extends ConversationProvider {
69
77
  private showVideoConfirmDialog;
70
78
  private showVideoIFrame;
71
79
  private showChatOverVideo;
80
+ private logoutUser;
81
+ private showLogoutConfirmDialog;
72
82
  private removeVideo;
73
83
  private addHeaderOptions;
74
84
  private removeHeaderOptions;
package/types.d.ts CHANGED
@@ -119,3 +119,8 @@ export type AuthenticationInfo = {
119
119
  name?: string;
120
120
  [key: string]: any;
121
121
  };
122
+ export declare enum AuthCardState {
123
+ Initial = "initial",
124
+ Error = "error",
125
+ Retry = "retry"
126
+ }
@@ -2,8 +2,10 @@ import { LitElement } from 'lit';
2
2
  export declare class ContactDataField extends LitElement {
3
3
  static readonly styles: import('lit').CSSResult[];
4
4
  private readonly entry;
5
+ private readonly application;
5
6
  connectedCallback(): void;
6
7
  _valueChanged(value: any): void;
7
8
  autocompleteName(name: string): "off" | "email" | "given-name";
9
+ private renderRequiredIndicator;
8
10
  render(): import('lit-html').TemplateResult<1>;
9
11
  }
@@ -1,9 +1,13 @@
1
1
  import { LitElement } from 'lit';
2
+ import { AuthCardState } from '../types';
2
3
  export declare class TunnistusAuthCard extends LitElement {
3
4
  static readonly styles: import('lit').CSSResult[];
4
5
  private readonly tunnistusURL;
6
+ private readonly state;
7
+ private readonly application;
5
8
  constructor(params?: {
6
- [key: string]: string;
9
+ tunnistusURL?: string;
10
+ state?: AuthCardState;
7
11
  });
8
12
  private _onStartAuth;
9
13
  render(): import('lit-html').TemplateResult<1>;