@gengage/assistant-fe 0.3.28 → 0.3.30
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/index.d.ts +2 -0
- package/dist/chat/types.d.ts +5 -1
- package/dist/{chat-DaFZJmwK.js → chat-UW5ehg3c.js} +1906 -1879
- package/dist/chat.iife.js +24 -24
- package/dist/chat.js +1 -1
- package/dist/common/css-escape.d.ts +1 -0
- package/dist/common/native-webview.d.ts +1 -1
- package/dist/common/overlay.d.ts +11 -0
- package/dist/{common-CYirxrL9.js → common-BoIbki4T.js} +2 -2
- package/dist/common.js +4 -4
- package/dist/index.js +6 -6
- package/dist/{native-webview-CO5A74dl.js → native-webview-BJnxcEnn.js} +29 -21
- package/dist/native.iife.js +18 -18
- package/dist/native.js +1 -1
- package/dist/{qna-D33BNaWd.js → qna-R1-EoKwH.js} +1 -1
- package/dist/qna.iife.js +21 -21
- package/dist/qna.js +1 -1
- package/dist/{schemas-DJ1qbfi8.js → schemas-BG_cvFvP.js} +6 -16
- package/dist/{simrel-DstZ5m2H.js → simrel-BREHamN-.js} +1 -1
- package/dist/simrel.iife.js +12 -12
- package/dist/simrel.js +1 -1
- package/package.json +5 -3
package/dist/chat/index.d.ts
CHANGED
|
@@ -262,6 +262,8 @@ export declare class GengageChat extends BaseWidget<ChatWidgetConfig> {
|
|
|
262
262
|
* on product cards, and the floating comparison button.
|
|
263
263
|
*/
|
|
264
264
|
private _refreshComparisonUI;
|
|
265
|
+
private _clearChoicePrompter;
|
|
266
|
+
private _mountChoicePrompter;
|
|
265
267
|
private _parseAddToCartActionPayload;
|
|
266
268
|
private _coerceAddToCartString;
|
|
267
269
|
private _runChatAddToCartFlow;
|
package/dist/chat/types.d.ts
CHANGED
|
@@ -194,6 +194,10 @@ export interface ChatI18n {
|
|
|
194
194
|
watchStylesPreparedTitle: string;
|
|
195
195
|
/** Label for products that were not included in a backend recommendation group. */
|
|
196
196
|
consultingOtherCompatibleProductsLabel: string;
|
|
197
|
+
/** Fallback label for an unnamed consulting recommendation group. */
|
|
198
|
+
consultingFallbackGroupLabel: string;
|
|
199
|
+
/** Fallback label for a consulting style card. Supports {index} placeholder. */
|
|
200
|
+
consultingFallbackStyleLabel: string;
|
|
197
201
|
consultingStyleLoadingDescription: string;
|
|
198
202
|
consultingStyleUnavailableDescription: string;
|
|
199
203
|
consultingStyleLoadingBadge: string;
|
|
@@ -335,7 +339,7 @@ export interface ChatUISpecRenderContext {
|
|
|
335
339
|
onProductSelect?: (product: Record<string, unknown>) => void;
|
|
336
340
|
pricing?: import('../common/price-formatter.js').PriceFormatConfig | undefined;
|
|
337
341
|
productPriceUi?: ProductPriceUiConfig | undefined;
|
|
338
|
-
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' | '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'>;
|
|
342
|
+
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'>;
|
|
339
343
|
productSort?: ProductSortState | undefined;
|
|
340
344
|
onSortChange?: ((sort: ProductSortState) => void) | undefined;
|
|
341
345
|
comparisonSelectMode?: boolean | undefined;
|