@gengage/assistant-fe 0.4.1 → 0.4.3
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-C9l4oBJA.js → chat-sb3DK_dL.js} +34 -30
- package/dist/chat.iife.js +3 -3
- package/dist/chat.js +1 -1
- package/dist/common/overlay.d.ts +4 -0
- package/dist/{common-CiTC1BDg.js → common-DDQyFEcK.js} +1 -1
- package/dist/common.js +3 -3
- package/dist/index.js +3 -3
- package/dist/{native-webview-FnIiDil0.js → native-webview-CwQr4fXv.js} +35 -35
- package/dist/native.iife.js +3 -3
- package/dist/native.js +1 -1
- package/package.json +9 -5
package/dist/chat/types.d.ts
CHANGED
|
@@ -117,6 +117,10 @@ export interface ChatWidgetConfig extends BaseWidgetConfig {
|
|
|
117
117
|
* inline percent badge in the product details price row. List/sale price and campaign badges are unchanged.
|
|
118
118
|
*/
|
|
119
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;
|
|
120
124
|
/** Enable browser-native voice input. Default: false. */
|
|
121
125
|
voiceEnabled?: boolean;
|
|
122
126
|
onOpen?: () => void;
|
|
@@ -346,6 +350,8 @@ export interface ChatUISpecRenderContext {
|
|
|
346
350
|
pricing?: import('../common/price-formatter.js').PriceFormatConfig | undefined;
|
|
347
351
|
productPriceUi?: ProductPriceUiConfig | undefined;
|
|
348
352
|
hideProductDiscountBadge?: boolean | undefined;
|
|
353
|
+
hideUserReviews?: boolean | undefined;
|
|
354
|
+
hideStockStatus?: boolean | undefined;
|
|
349
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'>;
|
|
350
356
|
productSort?: ProductSortState | undefined;
|
|
351
357
|
onSortChange?: ((sort: ProductSortState) => void) | undefined;
|