@senior-gestao-relacionamento/angular-components 2.3.0-master-b74ccbc8 → 2.3.0-master-d385dd44
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/esm2022/lib/components/chatbot/chatbot.component.mjs +61 -3
- package/esm2022/lib/i18n/en-US.json +6 -1
- package/esm2022/lib/i18n/es-ES.json +6 -1
- package/esm2022/lib/i18n/pt-BR.json +6 -1
- package/fesm2022/senior-gestao-relacionamento-angular-components.mjs +78 -5
- package/fesm2022/senior-gestao-relacionamento-angular-components.mjs.map +1 -1
- package/lib/components/chatbot/chatbot.component.d.ts +9 -0
- package/package.json +1 -1
|
@@ -22,7 +22,10 @@ export declare class ChatbotComponent implements OnInit, OnDestroy {
|
|
|
22
22
|
chatMessages: ChatbotMessage[];
|
|
23
23
|
chatId: string | null;
|
|
24
24
|
unreadCount: number;
|
|
25
|
+
typingPhraseKey: string;
|
|
25
26
|
private wsSubscription;
|
|
27
|
+
private typingPhraseTimer;
|
|
28
|
+
private typingPhraseIndex;
|
|
26
29
|
private readonly wsConfig;
|
|
27
30
|
private readonly webSocketService;
|
|
28
31
|
private readonly ngZone;
|
|
@@ -35,6 +38,12 @@ export declare class ChatbotComponent implements OnInit, OnDestroy {
|
|
|
35
38
|
onChatKeydown(event: KeyboardEvent): void;
|
|
36
39
|
private subscribeToWebSocket;
|
|
37
40
|
private scrollChatToBottom;
|
|
41
|
+
/**
|
|
42
|
+
* Starts cycling through the typing phrases. Always begins from the first
|
|
43
|
+
* key so the user sees the same friendly opening every time.
|
|
44
|
+
*/
|
|
45
|
+
private startTypingPhraseRotation;
|
|
46
|
+
private stopTypingPhraseRotation;
|
|
38
47
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChatbotComponent, never>;
|
|
39
48
|
static ɵcmp: i0.ɵɵComponentDeclaration<ChatbotComponent, "s-chatbot", never, {}, {}, never, never, true, never>;
|
|
40
49
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@senior-gestao-relacionamento/angular-components",
|
|
3
|
-
"version": "2.3.0-master-
|
|
3
|
+
"version": "2.3.0-master-d385dd44",
|
|
4
4
|
"description": "Biblioteca de componentes reutilizáveis para aplicações Angular do CRM Senior Sistemas",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|