@gengage/assistant-fe 0.4.0 → 0.4.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/types.d.ts +12 -0
- package/dist/{chat-ChY1FmRk.js → chat-Ci4ZA37X.js} +134 -131
- package/dist/chat.iife.js +2 -2
- package/dist/chat.js +1 -1
- package/dist/common/client.d.ts +6 -1
- package/dist/common/config-schema.d.ts +1 -1
- package/dist/common/overlay.d.ts +6 -0
- package/dist/{common-B4si3_SB.js → common-DUMmqYxM.js} +112 -101
- package/dist/common.js +3 -3
- package/dist/index.js +3 -3
- package/dist/{native-webview-DnuKAW7i.js → native-webview-v2HYw_9X.js} +74 -75
- package/dist/native.iife.js +2 -2
- package/dist/native.js +1 -1
- package/package.json +1 -1
package/dist/chat/types.d.ts
CHANGED
|
@@ -112,6 +112,15 @@ export interface ChatWidgetConfig extends BaseWidgetConfig {
|
|
|
112
112
|
productDetailsExtended?: boolean;
|
|
113
113
|
/** Product price presentation (cards, summary, details, AI Top Picks). */
|
|
114
114
|
productPriceUi?: ProductPriceUiConfig;
|
|
115
|
+
/**
|
|
116
|
+
* When true, hides the circular percent discount badge on product card images and the
|
|
117
|
+
* inline percent badge in the product details price row. List/sale price and campaign badges are unchanged.
|
|
118
|
+
*/
|
|
119
|
+
hideProductDiscountBadge?: boolean;
|
|
120
|
+
/** When true, hides the ReviewHighlights component in chat responses. */
|
|
121
|
+
hideUserReviews?: boolean;
|
|
122
|
+
/** When true, hides in-stock / out-of-stock labels on product cards. */
|
|
123
|
+
hideStockStatus?: boolean;
|
|
115
124
|
/** Enable browser-native voice input. Default: false. */
|
|
116
125
|
voiceEnabled?: boolean;
|
|
117
126
|
onOpen?: () => void;
|
|
@@ -340,6 +349,9 @@ export interface ChatUISpecRenderContext {
|
|
|
340
349
|
onProductSelect?: (product: Record<string, unknown>) => void;
|
|
341
350
|
pricing?: import('../common/price-formatter.js').PriceFormatConfig | undefined;
|
|
342
351
|
productPriceUi?: ProductPriceUiConfig | undefined;
|
|
352
|
+
hideProductDiscountBadge?: boolean | undefined;
|
|
353
|
+
hideUserReviews?: boolean | undefined;
|
|
354
|
+
hideStockStatus?: boolean | undefined;
|
|
343
355
|
i18n?: Pick<ChatI18n, 'productCtaLabel' | 'viewOnSiteLabel' | 'aiTopPicksTitle' | 'roleWinner' | 'roleBestValue' | 'roleBestAlternative' | 'viewDetails' | 'groundingReviewCta' | 'groundingReviewSubtitle' | 'variantsLabel' | 'sortRelated' | 'sortPriceAsc' | 'sortPriceDesc' | 'sortToolbarAriaLabel' | 'compareSelected' | 'compareMinHint' | 'comparisonSelectLabel' | 'comparisonSelectedLabel' | 'comparisonSelectCardHint' | 'panelTitleProductDetails' | 'panelTitleSimilarProducts' | 'panelTitleComparisonResults' | 'panelTitleCategories' | 'panelTitleSearchResults' | 'inStockLabel' | 'outOfStockLabel' | 'findSimilarLabel' | 'galleryPrevAriaLabel' | 'galleryNextAriaLabel' | 'beautyStylesPreparedTitle' | 'watchStylesPreparedTitle' | 'consultingOtherCompatibleProductsLabel' | 'consultingFallbackGroupLabel' | 'consultingFallbackStyleLabel' | 'consultingStyleLoadingDescription' | 'consultingStyleUnavailableDescription' | 'consultingStyleLoadingBadge' | 'consultingStyleUnavailableBadge' | 'viewMoreLabel' | 'similarProductsLabel' | 'addToCartButton' | 'shareButton' | 'productInfoTab' | 'specificationsTab' | 'recommendedChoiceLabel' | 'highlightsLabel' | 'keyDifferencesLabel' | 'specialCasesLabel' | 'emptyReviewsMessage' | 'closeAriaLabel' | 'dismissAriaLabel' | 'startChatLabel' | 'handoffHeading' | 'customerReviewsTitle' | 'addToFavoritesLabel' | 'reviewFilterPositive' | 'reviewFilterNegative' | 'decreaseLabel' | 'increaseLabel' | 'reviewCustomersMentionSingular' | 'reviewCustomersMentionPlural' | 'reviewSubjectsHeading' | 'aiBrowseCategoriesTitle' | 'photoAnalysisBadge' | 'photoAnalysisStrengthsLabel' | 'photoAnalysisFocusLabel' | 'photoAnalysisCelebStyleLabel' | 'beautyPhotoStepTitle' | 'beautyPhotoStepDescription' | 'beautyPhotoStepUpload' | 'beautyPhotoStepProcessing' | 'beautyPhotoStepSkip'>;
|
|
344
356
|
productSort?: ProductSortState | undefined;
|
|
345
357
|
onSortChange?: ((sort: ProductSortState) => void) | undefined;
|