@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.
- package/dist/chat/types.d.ts +6 -0
- package/dist/{chat-ChY1FmRk.js → chat-C9l4oBJA.js} +114 -113
- 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 +2 -0
- package/dist/{common-B4si3_SB.js → common-CiTC1BDg.js} +112 -101
- package/dist/common.js +3 -3
- package/dist/index.js +3 -3
- package/dist/{native-webview-DnuKAW7i.js → native-webview-FnIiDil0.js} +46 -47
- 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,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;
|