@gengage/assistant-fe 0.7.1 → 0.7.2

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.
@@ -104,6 +104,11 @@ export declare class ChatDrawer {
104
104
  private _onRollback;
105
105
  private _onLinkClick;
106
106
  private _pillsEl;
107
+ private _pillsViewportEl;
108
+ private _pillsScrollEl;
109
+ private _pillsArrowLeftEl;
110
+ private _pillsArrowRightEl;
111
+ private _pillsAffordanceRafPending;
107
112
  private _kvkkSlot;
108
113
  private _panelTopBar;
109
114
  private _userScrolledUp;
@@ -200,6 +205,7 @@ export declare class ChatDrawer {
200
205
  image?: string;
201
206
  description?: string;
202
207
  }>): void;
208
+ private _updatePillsScrollAffordance;
203
209
  focusInput(): void;
204
210
  showKvkkBanner(html: string): void;
205
211
  hideKvkkBanner(): void;
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * Classifies suggested actions into input-area chips vs message-flow pills.
3
3
  *
4
+ * TODO(CSH): To be moved to CSH as FE MUST NOT CONTAIN default business logic;
5
+ * all activities should be streamed by backend/CSH agent.
6
+ *
4
7
  * Input-area chips: compact shortcuts above the input field (search, info, review, similar).
5
8
  * Message-flow pills: larger interactive cards in the suggestion row.
6
9
  */
@@ -77,6 +77,8 @@ export declare class GengageChat extends BaseWidget<ChatWidgetConfig> {
77
77
  private _viewedProductSkus;
78
78
  /** Latest AI analysis UISpec (AITopPicks/AIGroupingCards) per thread for panel restore. */
79
79
  private _panelAiSpecByThread;
80
+ /** Suggestion pills captured per thread so rollback can restore them. */
81
+ private _threadPillsByThreadId;
80
82
  private _choicePrompterEl;
81
83
  private _openState;
82
84
  private _mobileBreakpoint;
@@ -362,13 +364,12 @@ export declare class GengageChat extends BaseWidget<ChatWidgetConfig> {
362
364
  private _clonePanelSourceForHistory;
363
365
  private _renderPanelFromSource;
364
366
  private _handleRollback;
367
+ private _rememberThreadPills;
368
+ private _applyStoredThreadPills;
369
+ private _pruneThreadPillsAfter;
365
370
  private _ensureMobileFullSheetForPanel;
366
371
  private _ensureMobilePanelOverlayVisible;
367
372
  private _ensurePdpPrimeSuggestedUiIfNeeded;
368
- private _resolvePdpPrimeSku;
369
- private _buildPdpPrimeFindSimilarPayload;
370
- private _productString;
371
- private _productNumber;
372
373
  /** Rewind the conversation to the given thread. */
373
374
  private _rollbackToThread;
374
375
  private _persistHistory;
@@ -391,6 +392,7 @@ export declare class GengageChat extends BaseWidget<ChatWidgetConfig> {
391
392
  private _hasUnavailableProductContext;
392
393
  private _ensureAssistantMessageRendered;
393
394
  private _saveSessionAndOpenURL;
395
+ private _navigateFromAction;
394
396
  /**
395
397
  * Assistant-driven page navigation (R1): persist the thread, stamp the restore
396
398
  * handoff marker, then navigate. On the SPA re-mount the widget restores the thread
@@ -372,6 +372,7 @@ export interface ChatI18n {
372
372
  togglePanelAriaLabel: string;
373
373
  chatMessagesAriaLabel: string;
374
374
  suggestionsAriaLabel: string;
375
+ previousSuggestionsAriaLabel: string;
375
376
  moreSuggestionsAriaLabel: string;
376
377
  rollbackAriaLabel: string;
377
378
  backAriaLabel: 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-B9m0kyTB.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-CI2s7Smp.js";
2
2
  export {
3
3
  d as CHAT_SCROLL_ELEMENT_ID,
4
4
  s as ChatPresentationState,