@gengage/assistant-fe 0.6.45 → 0.6.47

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.
@@ -156,7 +156,19 @@ export declare class ChatDrawer {
156
156
  /** Remove one transcript bubble (e.g. superseded empty assistant placeholder). */
157
157
  removeMessageBubble(messageId: string): void;
158
158
  showTypingIndicator(searchText?: string, mode?: TypingIndicatorMode | 'auto'): void;
159
- /** Accumulate a new thinking step (shown as a checklist in the typing indicator). */
159
+ /**
160
+ * Re-establish the typing indicator after the first rendered answer tore it
161
+ * down, so staged progress from later agent rounds (e.g. top-picks ranking,
162
+ * a second planner round, enrichment) stays visible while the stream is
163
+ * still open. Unlike `showTypingIndicator`, this PRESERVES the accumulated
164
+ * `_thinkingSteps` (it does not call `removeTypingIndicator`) and is
165
+ * idempotent — if the indicator is already live it is a no-op, so a burst of
166
+ * post-answer loading events does not destroy/recreate the DOM and flicker.
167
+ * The indicator is torn down again on stream completion (onDone/onError →
168
+ * `removeTypingIndicator`).
169
+ */
170
+ resumeTypingIndicator(): void;
171
+ /** Track the latest thinking step shown by loading indicators. */
160
172
  addThinkingStep(text: string): void;
161
173
  setThinkingSteps(steps: string[]): void;
162
174
  removeTypingIndicator(): void;
@@ -313,6 +325,10 @@ export declare class ChatDrawer {
313
325
  restorePanelState(accountId: string): boolean;
314
326
  private _createLoadingSequence;
315
327
  private _applyLoadingSteps;
328
+ private _normalizeLoadingSteps;
329
+ private _uniqueLoadingSteps;
330
+ private _buildCurrentLoadingRotation;
331
+ private _pickStaticLoadingSteps;
316
332
  private _clearLoadingBindingInterval;
317
333
  private _destroyLoadingBinding;
318
334
  private _updateSendEnabled;
@@ -250,6 +250,12 @@ export interface ChatWidgetConfig extends BaseWidgetConfig {
250
250
  export interface ChatI18n {
251
251
  headerTitle: string;
252
252
  inputPlaceholder: string;
253
+ /**
254
+ * Accessible name for the message input `<textarea>` (screen readers).
255
+ * Optional — falls back to `inputPlaceholder` when omitted, so existing
256
+ * consumers and locales need no change. Built-in locales set it.
257
+ */
258
+ inputAriaLabel?: string;
253
259
  sendButton: string;
254
260
  closeButton: string;
255
261
  openButton: string;
@@ -1,4 +1,4 @@
1
- import { c as e, d as t, f as r, i as s, l as n, n as i, r as l, s as C, t as c, u as d } from "./runtime-5Iu4s-BA.js";
1
+ import { c as e, d as t, f as r, i as s, l as n, n as i, r as l, s as C, t as c, u as d } from "./runtime-Cg43LM-H.js";
2
2
  export {
3
3
  d as CHAT_SCROLL_ELEMENT_ID,
4
4
  s as ChatPresentationState,