@aslaluroba/help-center 3.0.11 → 3.0.12
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/README.md +85 -1
- package/fesm2022/aslaluroba-help-center.mjs +386 -42
- package/fesm2022/aslaluroba-help-center.mjs.map +1 -1
- package/index.d.ts +34 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -56,7 +56,7 @@ declare class ApiService {
|
|
|
56
56
|
static ɵprov: i0.ɵɵInjectableDeclaration<ApiService>;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
type TranslationKey = 'ChatIntroMessage' | 'BabylaiTitle' | 'BabylaiDescription' | 'ChatNow' | 'TryBableAI' | 'ContactUs' | 'PickTopicTitle' | 'BabylAI' | 'ChatPlaceholder' | 'PoweredByBabylAI' | 'EndChat' | 'LeavingDialogTitle' | 'LeavingDialogBody' | 'Confirm' | 'Cancel' | 'title';
|
|
59
|
+
type TranslationKey = 'ChatIntroMessage' | 'BabylaiTitle' | 'BabylaiDescription' | 'ChatNow' | 'TryBableAI' | 'ContactUs' | 'PickTopicTitle' | 'BabylAI' | 'ChatPlaceholder' | 'PoweredByBabylAI' | 'EndChat' | 'LeavingDialogTitle' | 'LeavingDialogBody' | 'StartNewChatDialogTitle' | 'StartNewChatDialogBody' | 'ReviewDialogTitle' | 'ReviewDialogDescription' | 'ReviewDialogRatingLabel' | 'ReviewDialogCommentLabel' | 'ReviewDialogCommentPlaceholder' | 'ReviewDialogSubmitButton' | 'ReviewDialogSkipButton' | 'Confirm' | 'Cancel' | 'title';
|
|
60
60
|
declare class TranslationService {
|
|
61
61
|
private translations;
|
|
62
62
|
private _currentLang;
|
|
@@ -72,7 +72,24 @@ declare class TranslationService {
|
|
|
72
72
|
declare class ThemeService {
|
|
73
73
|
private primaryColor;
|
|
74
74
|
private logoUrl;
|
|
75
|
+
private isDarkMode;
|
|
75
76
|
constructor();
|
|
77
|
+
/**
|
|
78
|
+
* Initialize dark mode detection based on browser preferences
|
|
79
|
+
*/
|
|
80
|
+
private initializeDarkModeDetection;
|
|
81
|
+
/**
|
|
82
|
+
* Update dark mode state based on current browser preference
|
|
83
|
+
*/
|
|
84
|
+
private updateDarkModeState;
|
|
85
|
+
/**
|
|
86
|
+
* Get current dark mode state
|
|
87
|
+
*/
|
|
88
|
+
getDarkModeState(): i0.Signal<boolean>;
|
|
89
|
+
/**
|
|
90
|
+
* Check if dark mode is currently active
|
|
91
|
+
*/
|
|
92
|
+
isDarkModeActive(): boolean;
|
|
76
93
|
setPrimaryColor(color: string): void;
|
|
77
94
|
setLogoUrl(url: string): void;
|
|
78
95
|
getPrimaryColor(): string;
|
|
@@ -164,6 +181,10 @@ declare class HelpCenterWidgetComponent implements OnInit, OnDestroy, OnChanges
|
|
|
164
181
|
selectedOption: Option | null;
|
|
165
182
|
selectedNestedOption: Option | null;
|
|
166
183
|
showEndChatConfirmation: boolean;
|
|
184
|
+
showStartNewChatConfirmation: boolean;
|
|
185
|
+
showReviewDialog: boolean;
|
|
186
|
+
isSubmittingReview: boolean;
|
|
187
|
+
pendingNewChatOption: Option | null;
|
|
167
188
|
constructor(apiService: ApiService, translationService: TranslationService, themeService: ThemeService);
|
|
168
189
|
ngOnInit(): void;
|
|
169
190
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -174,12 +195,24 @@ declare class HelpCenterWidgetComponent implements OnInit, OnDestroy, OnChanges
|
|
|
174
195
|
sendMessage(messageText?: string): Promise<void>;
|
|
175
196
|
handleReceiveMessage(message: string, senderType: string, needsAgent: boolean): void;
|
|
176
197
|
private getSenderType;
|
|
198
|
+
private hasActiveChatSession;
|
|
199
|
+
private isWelcomeMessage;
|
|
177
200
|
handleStartNewChat(option: Option): Promise<void>;
|
|
178
201
|
private startNewChatSession;
|
|
179
202
|
handleStartChat(option: any): Promise<void>;
|
|
180
203
|
handleEndChat(): Promise<void>;
|
|
181
204
|
confirmEndChat(): Promise<void>;
|
|
205
|
+
handleReviewSubmit(reviewData: {
|
|
206
|
+
rating: number;
|
|
207
|
+
comment: string;
|
|
208
|
+
}): Promise<void>;
|
|
209
|
+
handleReviewSkip(): Promise<void>;
|
|
210
|
+
private endChatSession;
|
|
182
211
|
cancelEndChat(): void;
|
|
212
|
+
confirmStartNewChat(): Promise<void>;
|
|
213
|
+
cancelStartNewChat(): void;
|
|
214
|
+
private clearCurrentChat;
|
|
215
|
+
private startNewChatWithOption;
|
|
183
216
|
closeChatSession(chatSessionId: string): Promise<any>;
|
|
184
217
|
handleClosePopup(): void;
|
|
185
218
|
handleCloseArrowAnimation(): void;
|