@aslaluroba/help-center 4.0.9 → 4.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/assets/animatedLogo.gif +0 -0
- package/fesm2022/aslaluroba-help-center.mjs +2370 -1934
- package/fesm2022/aslaluroba-help-center.mjs.map +1 -1
- package/package.json +2 -1
- package/styles/styles.css +296 -380
- package/types/aslaluroba-help-center.d.ts +19 -2
|
@@ -145,7 +145,7 @@ declare class HelpCenterWidgetComponent implements OnInit, OnDestroy {
|
|
|
145
145
|
isRTL: _angular_core.Signal<boolean>;
|
|
146
146
|
isPopupOpen: _angular_core.WritableSignal<boolean>;
|
|
147
147
|
helpScreenData: _angular_core.WritableSignal<HelpScreenData>;
|
|
148
|
-
status: _angular_core.WritableSignal<"
|
|
148
|
+
status: _angular_core.WritableSignal<"failed" | "idle" | "loading" | "succeeded">;
|
|
149
149
|
error: _angular_core.WritableSignal<string>;
|
|
150
150
|
showArrowAnimation: _angular_core.WritableSignal<boolean>;
|
|
151
151
|
showTooltip: _angular_core.WritableSignal<boolean>;
|
|
@@ -171,15 +171,23 @@ declare class HelpCenterWidgetComponent implements OnInit, OnDestroy {
|
|
|
171
171
|
pendingNewChatOption: _angular_core.WritableSignal<Option>;
|
|
172
172
|
hasUserSentMessages: _angular_core.WritableSignal<boolean>;
|
|
173
173
|
closedSessionIdForReview: _angular_core.WritableSignal<string>;
|
|
174
|
+
waitingForSessionEndConfirmation: _angular_core.WritableSignal<boolean>;
|
|
175
|
+
private isClosingChatSession;
|
|
174
176
|
private apiService;
|
|
175
177
|
private translationService;
|
|
176
178
|
private themeService;
|
|
177
179
|
private chatSessionService;
|
|
180
|
+
private actionHandlerService;
|
|
178
181
|
private fileUploadService;
|
|
179
182
|
private destroyRef;
|
|
180
183
|
private themeEffectRef?;
|
|
181
184
|
private languageEffectRef?;
|
|
182
185
|
constructor();
|
|
186
|
+
/**
|
|
187
|
+
* Registers action handlers for AI response actions.
|
|
188
|
+
* This uses the ActionHandlerService for extensible, maintainable action handling.
|
|
189
|
+
*/
|
|
190
|
+
private registerActionHandlers;
|
|
183
191
|
ngOnInit(): void;
|
|
184
192
|
ngOnDestroy(): void;
|
|
185
193
|
handleTogglePopup(): Promise<void>;
|
|
@@ -195,6 +203,11 @@ declare class HelpCenterWidgetComponent implements OnInit, OnDestroy {
|
|
|
195
203
|
attachmentIds: string[];
|
|
196
204
|
pendingFiles?: File[];
|
|
197
205
|
} | string): Promise<void>;
|
|
206
|
+
/**
|
|
207
|
+
* Called when user attaches files but there is no session yet.
|
|
208
|
+
* Creates a session so that chat-input can upload the files; send stays disabled until upload completes.
|
|
209
|
+
*/
|
|
210
|
+
handleRequestSessionForAttachments(): Promise<void>;
|
|
198
211
|
handleReceiveMessage(message: string | {
|
|
199
212
|
content: string;
|
|
200
213
|
attachments?: string[];
|
|
@@ -242,6 +255,8 @@ declare class HelpCenterWidgetComponent implements OnInit, OnDestroy {
|
|
|
242
255
|
}[];
|
|
243
256
|
navigateToUrl(url: string): void;
|
|
244
257
|
private addReviewMessageToChat;
|
|
258
|
+
handleEndSessionReceived(): void;
|
|
259
|
+
private handleEndSessionConfirmed;
|
|
245
260
|
handleReviewSubmitFromChat(reviewData: {
|
|
246
261
|
rating: number;
|
|
247
262
|
comment: string;
|
|
@@ -455,6 +470,7 @@ declare class TranslationService {
|
|
|
455
470
|
*/
|
|
456
471
|
declare class ChatSessionService {
|
|
457
472
|
private apiService;
|
|
473
|
+
private actionHandlerService;
|
|
458
474
|
/**
|
|
459
475
|
* Creates a new chat session with the specified option.
|
|
460
476
|
*
|
|
@@ -480,11 +496,12 @@ declare class ChatSessionService {
|
|
|
480
496
|
* @param option Optional option for token refresh (needed for token renewal)
|
|
481
497
|
* @param helpScreenId Optional help screen ID for token refresh
|
|
482
498
|
* @param currentLang Optional current language for token refresh
|
|
499
|
+
* @param onActionReceived Optional callback function for handling action types
|
|
483
500
|
*/
|
|
484
501
|
establishAblyConnection(sessionId: string, ablyToken: string, onMessageReceived: (message: string | {
|
|
485
502
|
content: string;
|
|
486
503
|
attachments?: string[];
|
|
487
|
-
}, senderType: number, needsAgent: boolean) => void, tenantId: string, option?: Option, helpScreenId?: string, currentLang?: string): Promise<void>;
|
|
504
|
+
}, senderType: number, needsAgent: boolean) => void, tenantId: string, option?: Option, helpScreenId?: string, currentLang?: string, onActionReceived?: (actionType: string, messageData: any) => void | Promise<void>): Promise<void>;
|
|
488
505
|
/**
|
|
489
506
|
* Sends a message in an active chat session.
|
|
490
507
|
*
|