@gengage/assistant-fe 0.7.0 → 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.
- package/dist/chat/components/ChatDrawer.d.ts +7 -0
- package/dist/chat/components/actionClassifier.d.ts +3 -0
- package/dist/chat/runtime.d.ts +6 -4
- package/dist/chat/types.d.ts +1 -0
- package/dist/chat-runtime.js +1 -1
- package/dist/chat.iife.js +28 -28
- package/dist/chat.js +1 -1
- package/dist/{common-CeuGSwJL.js → common-Cj__jCbX.js} +1 -1
- package/dist/common.js +4 -4
- package/dist/{fastIntent-BI7l1oDv.js → fastIntent-C21cLrmq.js} +1 -1
- package/dist/index.js +9 -9
- package/dist/native.iife.js +21 -21
- package/dist/qna-runtime.js +1 -1
- package/dist/qna.iife.js +1 -1
- package/dist/qna.js +1 -1
- package/dist/{request-response-cache-BLQy7llq.js → request-response-cache-C5-hD9gP.js} +1 -1
- package/dist/{runtime-BC8-a6Ql.js → runtime-B88-kKyR.js} +2 -2
- package/dist/{runtime-DiONTdBz.js → runtime-BPopt4o6.js} +2 -2
- package/dist/{runtime-BSIrZhF2.js → runtime-CI2s7Smp.js} +1778 -1787
- package/dist/{simbut-BDbb3nMH.js → simbut-DxMcL26M.js} +1 -1
- package/dist/simbut.iife.js +1 -1
- package/dist/simbut.js +1 -1
- package/dist/{simrel-CdxDIKu3.js → simrel-Cfutw5KG.js} +1 -1
- package/dist/simrel-runtime.js +1 -1
- package/dist/simrel.iife.js +1 -1
- package/dist/simrel.js +2 -2
- package/dist/{widget-base-Cvxdrqqt.js → widget-base-eopkp_p9.js} +1 -1
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -358,6 +364,7 @@ export declare class ChatDrawer {
|
|
|
358
364
|
/** Programmatic scroll to bottom (e.g. host bridge) — bypasses “user scrolled up” until next frame. */
|
|
359
365
|
scrollToBottomPresentation(behavior?: ScrollBehavior): void;
|
|
360
366
|
private _scrollMessagesTo;
|
|
367
|
+
private _scrollMessageElementIntoView;
|
|
361
368
|
/** Collapse transcript to a single thread (null = show full history). */
|
|
362
369
|
setPresentationFocus(threadId: string | null): void;
|
|
363
370
|
setFormerMessagesButtonVisible(visible: boolean): 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
|
*/
|
package/dist/chat/runtime.d.ts
CHANGED
|
@@ -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
|
package/dist/chat/types.d.ts
CHANGED
|
@@ -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;
|
package/dist/chat-runtime.js
CHANGED
|
@@ -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-
|
|
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,
|