@gengage/assistant-fe 0.3.24 → 0.3.26

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.
@@ -361,12 +361,11 @@ export declare const HandoffNoticeSchema: z.ZodObject<{
361
361
  }, z.core.$strip>;
362
362
  export declare const PhotoAnalysisCardSchema: z.ZodObject<{
363
363
  summary: z.ZodString;
364
- clues: z.ZodArray<z.ZodString>;
365
364
  strengths: z.ZodOptional<z.ZodArray<z.ZodString>>;
366
365
  focus_points: z.ZodOptional<z.ZodArray<z.ZodString>>;
367
366
  celeb_style: z.ZodOptional<z.ZodString>;
368
367
  celeb_style_reason: z.ZodOptional<z.ZodString>;
369
- details: z.ZodOptional<z.ZodArray<z.ZodString>>;
368
+ details: z.ZodArray<z.ZodString>;
370
369
  next_question: z.ZodOptional<z.ZodString>;
371
370
  style_images: z.ZodOptional<z.ZodArray<z.ZodString>>;
372
371
  }, z.core.$strip>;
@@ -762,12 +761,11 @@ export declare const chatCatalog: {
762
761
  readonly PhotoAnalysisCard: {
763
762
  readonly schema: z.ZodObject<{
764
763
  summary: z.ZodString;
765
- clues: z.ZodArray<z.ZodString>;
766
764
  strengths: z.ZodOptional<z.ZodArray<z.ZodString>>;
767
765
  focus_points: z.ZodOptional<z.ZodArray<z.ZodString>>;
768
766
  celeb_style: z.ZodOptional<z.ZodString>;
769
767
  celeb_style_reason: z.ZodOptional<z.ZodString>;
770
- details: z.ZodOptional<z.ZodArray<z.ZodString>>;
768
+ details: z.ZodArray<z.ZodString>;
771
769
  next_question: z.ZodOptional<z.ZodString>;
772
770
  style_images: z.ZodOptional<z.ZodArray<z.ZodString>>;
773
771
  }, z.core.$strip>;
@@ -302,12 +302,11 @@ export declare class ChatDrawer {
302
302
  /** Update a bot message's text content in the DOM (e.g. for fallback messages). */
303
303
  updateBotMessage(messageId: string, html: string, renderHint?: string, photoAnalysis?: {
304
304
  summary: string;
305
- clues: string[];
306
305
  strengths?: string[];
307
306
  focusPoints?: string[];
308
307
  celebStyle?: string;
309
308
  celebStyleReason?: string;
310
- details?: string[];
309
+ details: string[];
311
310
  nextQuestion?: string;
312
311
  }): void;
313
312
  /** Mark a message as the first bot message in its thread (for special styling). */
@@ -2,12 +2,11 @@ import { UIElement } from '../../common/types.js';
2
2
  import { ChatUISpecRenderContext } from '../types.js';
3
3
  export interface PhotoAnalysisData {
4
4
  summary: string;
5
- clues: string[];
6
5
  strengths?: string[];
7
6
  focusPoints?: string[];
8
7
  celebStyle?: string;
9
8
  celebStyleReason?: string;
10
- details?: string[];
9
+ details: string[];
11
10
  nextQuestion?: string;
12
11
  }
13
12
  /** Extract structured photo-analysis data from a UISpec element's props. */
@@ -192,6 +192,8 @@ export interface ChatI18n {
192
192
  beautyStylesPreparedTitle: string;
193
193
  /** Title shown above watch-expert style cards. Supports {count} placeholder. */
194
194
  watchStylesPreparedTitle: string;
195
+ /** Label for products that were not included in a backend recommendation group. */
196
+ consultingOtherCompatibleProductsLabel: string;
195
197
  choicePrompterHeading: string;
196
198
  choicePrompterSuggestion: string;
197
199
  choicePrompterCta: string;
@@ -331,7 +333,7 @@ export interface ChatUISpecRenderContext {
331
333
  onProductSelect?: (product: Record<string, unknown>) => void;
332
334
  pricing?: import('../common/price-formatter.js').PriceFormatConfig | undefined;
333
335
  productPriceUi?: ProductPriceUiConfig | undefined;
334
- 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' | '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' | 'photoAnalysisSeeMoreLabel' | 'beautyPhotoStepTitle' | 'beautyPhotoStepDescription' | 'beautyPhotoStepUpload' | 'beautyPhotoStepProcessing' | 'beautyPhotoStepSkip'>;
336
+ 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' | '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' | 'photoAnalysisSeeMoreLabel' | 'beautyPhotoStepTitle' | 'beautyPhotoStepDescription' | 'beautyPhotoStepUpload' | 'beautyPhotoStepProcessing' | 'beautyPhotoStepSkip'>;
335
337
  productSort?: ProductSortState | undefined;
336
338
  onSortChange?: ((sort: ProductSortState) => void) | undefined;
337
339
  comparisonSelectMode?: boolean | undefined;
@@ -374,12 +376,11 @@ export interface ChatMessage {
374
376
  /** Structured photo analysis data from PhotoAnalysisCard UISpec (preferred over sentence-splitting). */
375
377
  photoAnalysis?: {
376
378
  summary: string;
377
- clues: string[];
378
379
  strengths?: string[];
379
380
  focusPoints?: string[];
380
381
  celebStyle?: string;
381
382
  celebStyleReason?: string;
382
- details?: string[];
383
+ details: string[];
383
384
  nextQuestion?: string;
384
385
  };
385
386
  timestamp: number;