@primestyleai/tryon 5.10.178 → 5.10.180

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.
@@ -228,6 +228,8 @@ export interface PrimeStyleTryonProps {
228
228
  * the fabric correctly without guessing from the image alone. */
229
229
  productMaterial?: string;
230
230
  buttonText?: string;
231
+ /** When true, a completed try-on for this product turns the storefront button into a saved fit result. */
232
+ limitOneColorTryOnPerProduct?: boolean;
231
233
  apiUrl?: string;
232
234
  showPoweredBy?: boolean;
233
235
  /** Show the default camera icon in the button. Defaults to true. Set to false to hide it. */
@@ -11,6 +11,7 @@ interface MySizingProfilesViewProps {
11
11
  onDeleteProfile?: (id: string) => void;
12
12
  /** Called when user clicks delete — parent owns the confirmation modal */
13
13
  onRequestDelete: (id: string) => void;
14
+ onLogout: () => void;
14
15
  onClose: () => void;
15
16
  /** Forwarded to CreateProfileWizard for the pre-upload age check. */
16
17
  apiUrl?: string;
@@ -47,5 +48,5 @@ export declare function DeleteConfirmModal({ onConfirm, onCancel, t, }: {
47
48
  onCancel: () => void;
48
49
  t: TranslateFn;
49
50
  }): import("react/jsx-runtime").JSX.Element;
50
- export declare function MySizingProfilesView({ profiles, activeProfileId, onSelectProfile, onEditProfile, onSaveNewProfile, onSaveProfileMeasurements, onSaveBraSize, onRequestDelete, onClose, apiUrl, apiKey, onPhotoPreview, initialCreateDraft, onProfileDraftConsumed, onEstimateFromPhoto, estimatingProfileIds, t, onRegisterBackInterceptor, }: MySizingProfilesViewProps): import("react/jsx-runtime").JSX.Element;
51
+ export declare function MySizingProfilesView({ profiles, activeProfileId, onSelectProfile, onEditProfile, onSaveNewProfile, onSaveProfileMeasurements, onSaveBraSize, onRequestDelete, onLogout, onClose, apiUrl, apiKey, onPhotoPreview, initialCreateDraft, onProfileDraftConsumed, onEstimateFromPhoto, estimatingProfileIds, t, onRegisterBackInterceptor, }: MySizingProfilesViewProps): import("react/jsx-runtime").JSX.Element;
51
52
  export {};
@@ -24,9 +24,9 @@ export declare function buildFitInfo(matchDetails: Array<{
24
24
  }>, poseLines?: MeasurementLines | null, unit?: "in" | "cm" | "mm"): FitAreaInfo[];
25
25
  /**
26
26
  * Build silhouette-prompt context forwarded to the backend try-on Gemini
27
- * call. Returns the three text-form inputs that the doc example fed to
28
- * Gemini (user raw measurements, recommended size, chart summary) so the
29
- * try-on prompt can reason about absolute values and the chart's grading.
27
+ * call. Returns only the selected fit context Gemini needs: user raw
28
+ * measurements, recommended size, and the chosen size's measurement row.
29
+ * The full product size guide is intentionally not forwarded to try-on.
30
30
  *
31
31
  * All fields optional — returns `undefined` when there's nothing useful
32
32
  * to add (e.g. accessory flow, no sizingResult).
@@ -70,7 +70,6 @@ selectedSizeOverride?: string,
70
70
  userHeight?: string, userWeight?: string): {
71
71
  recommendedSize?: string;
72
72
  recommendedSizeMeasurements?: string;
73
- sizeChartSummary?: string;
74
73
  userMeasurementsText?: string;
75
74
  userHeight?: string;
76
75
  userWeight?: string;