@telia-ace/ace-chat-flamingo 1.1.123-rc.4 → 1.1.123-rc.40

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.123-rc.4",
3
+ "version": "1.1.123-rc.40",
4
4
  "dependencies": {
5
- "@telia-ace/widget-core-flamingo": "1.1.123-rc.4",
6
- "@telia-ace/widget-conversation-flamingo": "1.1.123-rc.4",
5
+ "@telia-ace/widget-core-flamingo": "1.1.123-rc.40",
6
+ "@telia-ace/widget-conversation-flamingo": "1.1.123-rc.40",
7
7
  "rxjs": "^7.8.2",
8
8
  "lit": "^3.0.2",
9
9
  "@teliads/icons": "^8.4.0",
package/provider.d.ts CHANGED
@@ -13,14 +13,12 @@ export declare class ChatProvider extends ConversationProvider {
13
13
  private readonly idHubUrl;
14
14
  private readonly shouldUseAuth;
15
15
  private readonly idHubEidType;
16
- private logoutTimer;
17
16
  private readonly disconnected$;
18
17
  private engine?;
19
18
  private idHubClient?;
20
19
  private agentUsername;
21
20
  private videoConfirmDialogEntry;
22
21
  private quitConfirmDialogEntry;
23
- private logoutConfirmDialogEntry;
24
22
  private authenticationCardEntry;
25
23
  private conversationOption;
26
24
  private _conversationOptions;
@@ -32,7 +30,7 @@ export declare class ChatProvider extends ConversationProvider {
32
30
  private guestId;
33
31
  private chatOverlayActive;
34
32
  private inVideoCall;
35
- private authURL?;
33
+ private authResult?;
36
34
  constructor(name: string, component: any);
37
35
  connect(conversationOptions?: Record<string, any>): void;
38
36
  disconnected(): void;
@@ -46,9 +44,12 @@ export declare class ChatProvider extends ConversationProvider {
46
44
  setupAuthenticationListeners(): void;
47
45
  private setupIDHubAuth;
48
46
  private startAuthenticationFlow;
47
+ private getAuthResult;
49
48
  private handleWelcomeForm;
50
49
  private startChat;
51
50
  private restartNewChat;
51
+ private handleChatEngineError;
52
+ private resetChatState;
52
53
  private setQueueStatus;
53
54
  private endConversation;
54
55
  private sendConversationEmail;
@@ -56,6 +57,7 @@ export declare class ChatProvider extends ConversationProvider {
56
57
  private setSessionId;
57
58
  private isEntranceOpen;
58
59
  private resetAuthState;
60
+ private unescapeHtml;
59
61
  private readonly onQueueStatusReceived;
60
62
  private readonly onEstablished;
61
63
  private readonly onPrepareVideo;
@@ -77,8 +79,7 @@ export declare class ChatProvider extends ConversationProvider {
77
79
  private showVideoConfirmDialog;
78
80
  private showVideoIFrame;
79
81
  private showChatOverVideo;
80
- private logoutUser;
81
- private showLogoutConfirmDialog;
82
+ private endAuthenticatedSession;
82
83
  private removeVideo;
83
84
  private addHeaderOptions;
84
85
  private removeHeaderOptions;
package/types.d.ts CHANGED
@@ -116,6 +116,7 @@ export declare const isVideoPreparedAction: (action: EngineAction) => action is
116
116
  export declare const isChatButtonClickedAction: (action: EngineAction) => action is ChatButtonClickedAction;
117
117
  export declare const isEndVideoButtonClickedAction: (action: EngineAction) => action is EndVideoButtonClickedAction;
118
118
  export declare const isChatEndedAction: (action: EngineAction) => action is ChatEndedAction;
119
+ export type EngineErrorType = 'chat-request-error' | 'chat-join-error' | 'chat-engine-error' | 'chat-write-error' | 'chat-email-session-error' | 'chat-unknown-error';
119
120
  export type AuthenticationInfo = {
120
121
  authenticated: boolean;
121
122
  name?: string;
@@ -124,5 +125,14 @@ export type AuthenticationInfo = {
124
125
  export declare enum AuthCardState {
125
126
  Initial = "initial",
126
127
  Error = "error",
127
- Retry = "retry"
128
+ Retry = "retry",
129
+ InitError = "init-error"
128
130
  }
131
+ export type UserName = {
132
+ name?: string;
133
+ [key: string]: any;
134
+ };
135
+ export type AgentName = {
136
+ name?: string;
137
+ [key: string]: any;
138
+ };
@@ -1,9 +1,9 @@
1
1
  import { LitElement } from 'lit';
2
- export declare class LogoutConfirmDialog extends LitElement {
2
+ export declare class AuthSessionEndConfirmDialog extends LitElement {
3
3
  static styles: import('lit').CSSResult[];
4
4
  private application;
5
5
  firstUpdated(): void;
6
- private onQuit;
6
+ private onEnd;
7
7
  private onCancel;
8
8
  private dispatchResult;
9
9
  render(): import('lit-html').TemplateResult<1>;
@@ -9,6 +9,6 @@ export declare class TunnistusAuthCard extends LitElement {
9
9
  tunnistusURL?: string;
10
10
  state?: AuthCardState;
11
11
  });
12
- private _onStartAuth;
12
+ private onStartAuth;
13
13
  render(): import('lit-html').TemplateResult<1>;
14
14
  }