@telia-ace/ace-chat-flamingo 1.1.120-rc.3 → 1.1.120-rc.31
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/chat-utilities.d.ts +1 -0
- package/client.d.ts +3 -3
- package/index.d.ts +1 -0
- package/index.js +272 -230
- package/index.mjs +4284 -3529
- package/package.json +3 -3
- package/provider.d.ts +58 -51
- package/types.d.ts +10 -0
- package/ui/contact-data-field.d.ts +2 -0
- package/ui/tunnistus-auth-card.d.ts +14 -0
- package/ui/welcome-form.d.ts +3 -3
- package/ui/tunnistus-link-button.d.ts +0 -10
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telia-ace/ace-chat-flamingo",
|
|
3
|
-
"version": "1.1.120-rc.
|
|
3
|
+
"version": "1.1.120-rc.31",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@telia-ace/widget-core-flamingo": "1.1.120-rc.
|
|
6
|
-
"@telia-ace/widget-conversation-flamingo": "1.1.120-rc.
|
|
5
|
+
"@telia-ace/widget-core-flamingo": "1.1.120-rc.31",
|
|
6
|
+
"@telia-ace/widget-conversation-flamingo": "1.1.120-rc.31",
|
|
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,19 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { EngineConfig } from './engine';
|
|
1
|
+
import { ConversationProvider } from '../../conversation/src/index.ts';
|
|
3
2
|
export declare class ChatProvider extends ConversationProvider {
|
|
4
3
|
private readonly properties;
|
|
5
|
-
private readonly agent;
|
|
6
|
-
private readonly user;
|
|
7
4
|
private readonly pendingMessages;
|
|
8
5
|
private readonly texts;
|
|
6
|
+
private readonly headerComponent;
|
|
9
7
|
private readonly isThirdPartyParticipant;
|
|
8
|
+
private readonly agent;
|
|
9
|
+
private readonly user;
|
|
10
|
+
private readonly params;
|
|
11
|
+
private readonly invitationUid;
|
|
12
|
+
private readonly customerName;
|
|
13
|
+
private readonly idHubUrl;
|
|
14
|
+
private readonly shouldUseAuth;
|
|
15
|
+
private readonly idHubEidType;
|
|
16
|
+
private logoutTimer;
|
|
10
17
|
private readonly disconnected$;
|
|
11
|
-
private idHubClient?;
|
|
12
18
|
private engine?;
|
|
19
|
+
private idHubClient?;
|
|
13
20
|
private agentUsername;
|
|
14
21
|
private videoConfirmDialogEntry;
|
|
15
22
|
private quitConfirmDialogEntry;
|
|
16
23
|
private logoutConfirmDialogEntry;
|
|
24
|
+
private authenticationCardEntry;
|
|
17
25
|
private conversationOption;
|
|
18
26
|
private _conversationOptions;
|
|
19
27
|
private sessionId;
|
|
@@ -24,58 +32,57 @@ export declare class ChatProvider extends ConversationProvider {
|
|
|
24
32
|
private guestId;
|
|
25
33
|
private chatOverlayActive;
|
|
26
34
|
private inVideoCall;
|
|
27
|
-
private
|
|
35
|
+
private authURL?;
|
|
28
36
|
constructor(name: string, component: any);
|
|
29
|
-
static getInstance(key: string, component: any): ChatProvider;
|
|
30
37
|
connect(conversationOptions?: Record<string, any>): void;
|
|
31
|
-
setHeaderOption(): Promise<void>;
|
|
32
38
|
disconnected(): void;
|
|
33
|
-
private readonly _onQueueStatusReceived;
|
|
34
|
-
private readonly _onEstablished;
|
|
35
|
-
private readonly _onPrepareVideo;
|
|
36
|
-
private readonly _onVideoPrepared;
|
|
37
|
-
private readonly _onChatButtonClicked;
|
|
38
|
-
private readonly _onEndVideoButtonClicked;
|
|
39
|
-
private readonly _onPenStatusChange;
|
|
40
|
-
private readonly _onChatEnded;
|
|
41
|
-
private _removeHeaderOptions;
|
|
42
|
-
private _addHeaderOptions;
|
|
43
|
-
private headerComponent;
|
|
44
|
-
private params;
|
|
45
|
-
private invitationUid;
|
|
46
|
-
private customerName;
|
|
47
|
-
private _startChat;
|
|
48
|
-
private _restartNewChat;
|
|
49
|
-
showSurvey(): void;
|
|
50
|
-
startAuthenticationFlow(): Promise<void>;
|
|
51
|
-
handleAuthentication(idref: ConversationEntry | undefined): Promise<void>;
|
|
52
|
-
handleWelcomeForm(engineConfig: EngineConfig): Promise<void>;
|
|
53
|
-
initializeChat(engineConfig: EngineConfig): Promise<void>;
|
|
54
|
-
showTunnistusLinkButton(tunnistusURL: string): ConversationEntry;
|
|
55
|
-
showWelcomeForm(): void;
|
|
56
|
-
showEntranceClosedDialog(): void;
|
|
57
|
-
_setQueueStatus(status: string | null): void;
|
|
58
|
-
showLogoutConfirmDialog(): void;
|
|
59
|
-
showQuitConfirmDialog(): void;
|
|
60
|
-
showConversationEndedForm(): void;
|
|
61
|
-
prepareVideo(): void;
|
|
62
|
-
showVideo(userUrl: string): void;
|
|
63
|
-
showChatOverVideo(guestId: string): void;
|
|
64
|
-
handleEndVideoConference(guestId: string): void;
|
|
65
|
-
printAgent(text: string, alias?: string): ConversationEntry;
|
|
66
|
-
printUser(text: string): ConversationEntry;
|
|
67
|
-
printSystem(text: string): ConversationEntry;
|
|
68
|
-
private _setEndConversationOption;
|
|
69
|
-
private _setStartNewChatOption;
|
|
70
|
-
private removeVideo;
|
|
71
|
-
endConversation(): Promise<void>;
|
|
72
|
-
private sendConversationEmail;
|
|
73
|
-
private _clearPendingMessages;
|
|
74
|
-
private _setSessionId;
|
|
75
39
|
onUserSubmit(action: {
|
|
76
40
|
text: string;
|
|
77
41
|
}): void;
|
|
78
|
-
rehydrate(data: Record<string, any>): Promise<void>;
|
|
79
42
|
save(data: any): void;
|
|
43
|
+
rehydrate(data: Record<string, any>): Promise<void>;
|
|
44
|
+
static getInstance(key: string, component: any): ChatProvider;
|
|
45
|
+
private initializeChat;
|
|
46
|
+
setupAuthenticationListeners(): void;
|
|
47
|
+
private setupIDHubAuth;
|
|
48
|
+
private startAuthenticationFlow;
|
|
49
|
+
private handleWelcomeForm;
|
|
50
|
+
private startChat;
|
|
51
|
+
private restartNewChat;
|
|
52
|
+
private setQueueStatus;
|
|
53
|
+
private endConversation;
|
|
54
|
+
private sendConversationEmail;
|
|
55
|
+
private clearPendingMessages;
|
|
56
|
+
private setSessionId;
|
|
80
57
|
private isEntranceOpen;
|
|
58
|
+
private resetAuthState;
|
|
59
|
+
private readonly onQueueStatusReceived;
|
|
60
|
+
private readonly onEstablished;
|
|
61
|
+
private readonly onPrepareVideo;
|
|
62
|
+
private readonly onVideoPrepared;
|
|
63
|
+
private readonly onChatButtonClicked;
|
|
64
|
+
private readonly onEndVideoButtonClicked;
|
|
65
|
+
private readonly onPenStatusChange;
|
|
66
|
+
private readonly onChatEnded;
|
|
67
|
+
private handleAuthentication;
|
|
68
|
+
private printAgent;
|
|
69
|
+
private printUser;
|
|
70
|
+
private printSystem;
|
|
71
|
+
private showSurvey;
|
|
72
|
+
private showTunnistusAuthCard;
|
|
73
|
+
private showWelcomeForm;
|
|
74
|
+
private showEntranceClosedDialog;
|
|
75
|
+
private showQuitConfirmDialog;
|
|
76
|
+
private showConversationEndedForm;
|
|
77
|
+
private showVideoConfirmDialog;
|
|
78
|
+
private showVideoIFrame;
|
|
79
|
+
private showChatOverVideo;
|
|
80
|
+
private logoutUser;
|
|
81
|
+
private showLogoutConfirmDialog;
|
|
82
|
+
private removeVideo;
|
|
83
|
+
private addHeaderOptions;
|
|
84
|
+
private removeHeaderOptions;
|
|
85
|
+
private setStartNewChatOption;
|
|
86
|
+
private setEndConversationOption;
|
|
87
|
+
private setHeaderOption;
|
|
81
88
|
}
|
package/types.d.ts
CHANGED
|
@@ -114,3 +114,13 @@ export declare const isVideoPreparedAction: (action: EngineAction) => action is
|
|
|
114
114
|
export declare const isChatButtonClickedAction: (action: EngineAction) => action is ChatButtonClickedAction;
|
|
115
115
|
export declare const isEndVideoButtonClickedAction: (action: EngineAction) => action is EndVideoButtonClickedAction;
|
|
116
116
|
export declare const isChatEndedAction: (action: EngineAction) => action is ChatEndedAction;
|
|
117
|
+
export type AuthenticationInfo = {
|
|
118
|
+
authenticated: boolean;
|
|
119
|
+
name?: string;
|
|
120
|
+
[key: string]: any;
|
|
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
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { AuthCardState } from '../types';
|
|
3
|
+
export declare class TunnistusAuthCard extends LitElement {
|
|
4
|
+
static readonly styles: import('lit').CSSResult[];
|
|
5
|
+
private readonly tunnistusURL;
|
|
6
|
+
private readonly state;
|
|
7
|
+
private readonly application;
|
|
8
|
+
constructor(params?: {
|
|
9
|
+
tunnistusURL?: string;
|
|
10
|
+
state?: AuthCardState;
|
|
11
|
+
});
|
|
12
|
+
private _onStartAuth;
|
|
13
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
14
|
+
}
|
package/ui/welcome-form.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { LitElement, nothing } from 'lit';
|
|
2
2
|
import { CustomDataEntry } from '../types';
|
|
3
3
|
export declare class StartChatForm extends LitElement {
|
|
4
|
-
static styles: import('lit').CSSResult[];
|
|
4
|
+
static readonly styles: import('lit').CSSResult[];
|
|
5
5
|
submitted: boolean;
|
|
6
6
|
customData: CustomDataEntry[];
|
|
7
7
|
customerName: string;
|
|
8
8
|
validationErrors: string[];
|
|
9
9
|
showValidationWarning: boolean;
|
|
10
|
-
private application;
|
|
11
|
-
private emailController;
|
|
10
|
+
private readonly application;
|
|
11
|
+
private readonly emailController;
|
|
12
12
|
constructor();
|
|
13
13
|
connectedCallback(): void;
|
|
14
14
|
_onStartChat(event: SubmitEvent): void;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
export declare class TunnistusLinkButton extends LitElement {
|
|
3
|
-
static styles: import('lit').CSSResult[];
|
|
4
|
-
private tunnistusURL;
|
|
5
|
-
constructor(params?: {
|
|
6
|
-
[key: string]: string;
|
|
7
|
-
});
|
|
8
|
-
private _onStartAuth;
|
|
9
|
-
render(): import('lit-html').TemplateResult<1>;
|
|
10
|
-
}
|