@gengage/assistant-fe 0.4.0 → 0.4.1

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.
@@ -112,6 +112,11 @@ 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;
115
120
  /** Enable browser-native voice input. Default: false. */
116
121
  voiceEnabled?: boolean;
117
122
  onOpen?: () => void;
@@ -340,6 +345,7 @@ export interface ChatUISpecRenderContext {
340
345
  onProductSelect?: (product: Record<string, unknown>) => void;
341
346
  pricing?: import('../common/price-formatter.js').PriceFormatConfig | undefined;
342
347
  productPriceUi?: ProductPriceUiConfig | undefined;
348
+ hideProductDiscountBadge?: boolean | undefined;
343
349
  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
350
  productSort?: ProductSortState | undefined;
345
351
  onSortChange?: ((sort: ProductSortState) => void) | undefined;