@primestyleai/tryon 5.6.10 → 5.6.12

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.
@@ -22,8 +22,11 @@ interface BasicsStepMobileProps {
22
22
  onNext: () => void;
23
23
  /** Whether the Next button should be enabled */
24
24
  canProceed: boolean;
25
+ /** Optional override label for the Next button (e.g. "Find My Best Fit"
26
+ * when an active profile is selected and we're skipping the wizard) */
27
+ fastPathLabel?: string;
25
28
  error: string;
26
29
  t: TranslateFn;
27
30
  }
28
- export declare function BasicsStepMobile({ hUnit, wUnit, isImperialMode, height, setHeight, heightFeet, setHeightFeet, heightInches, setHeightInches, weight, setWeight, age, setAge, switchToMetric, switchToImperial, onUploadPhoto, onSwitchToScan, onNext, canProceed, error, t, }: BasicsStepMobileProps): import("react/jsx-runtime").JSX.Element;
31
+ export declare function BasicsStepMobile({ hUnit, wUnit, isImperialMode, height, setHeight, heightFeet, setHeightFeet, heightInches, setHeightInches, weight, setWeight, age, setAge, switchToMetric, switchToImperial, onUploadPhoto, onSwitchToScan, onNext, canProceed, fastPathLabel, error, t, }: BasicsStepMobileProps): import("react/jsx-runtime").JSX.Element;
29
32
  export {};
@@ -36,8 +36,14 @@ interface BodyProfileViewProps {
36
36
  gender: string;
37
37
  age?: number;
38
38
  }) => void;
39
+ /** True if the user has an active profile with stored measurements —
40
+ * changes the basics step Next button to "Find My Best Fit" */
41
+ hasActiveProfileWithMeasurements?: boolean;
42
+ /** Fast-path callback: skip the rest of the wizard and run /sizing/recommend
43
+ * with the active profile's stored measurements directly. */
44
+ onUseActiveProfile?: () => void;
39
45
  onBack: () => void;
40
46
  t: TranslateFn;
41
47
  }
42
- export declare function BodyProfileView({ productImage, productTitle, isWomen, formRef, sizingCountry, heightUnit, setHeightUnit, weightUnit, setWeightUnit, sizingUnit, setSizingUnit, onComplete, onSnapSubmit, onBack, t, }: BodyProfileViewProps): import("react/jsx-runtime").JSX.Element;
48
+ export declare function BodyProfileView({ productImage, productTitle, isWomen, formRef, sizingCountry, heightUnit, setHeightUnit, weightUnit, setWeightUnit, sizingUnit, setSizingUnit, onComplete, onSnapSubmit, hasActiveProfileWithMeasurements, onUseActiveProfile, onBack, t, }: BodyProfileViewProps): import("react/jsx-runtime").JSX.Element;
43
49
  export {};
@@ -18,9 +18,11 @@ interface MySizingProfilesViewProps {
18
18
  should add it to the profiles list and run estimateFullMeasurements in
19
19
  the background to populate measurements. */
20
20
  onSaveNewProfile: (data: Omit<Profile, "id" | "createdAt">) => void;
21
+ /** Persist a partial measurement update onto an existing profile */
22
+ onSaveProfileMeasurements: (id: string, measurements: import("../types").ProfileMeasurements) => void;
21
23
  onDeleteProfile: (id: string) => void;
22
24
  onClose: () => void;
23
25
  t: TranslateFn;
24
26
  }
25
- export declare function MySizingProfilesView({ profiles, activeProfileId, onSelectProfile, onEditProfile, onSaveNewProfile, onDeleteProfile, onClose, t, }: MySizingProfilesViewProps): import("react/jsx-runtime").JSX.Element;
27
+ export declare function MySizingProfilesView({ profiles, activeProfileId, onSelectProfile, onEditProfile, onSaveNewProfile, onSaveProfileMeasurements, onDeleteProfile, onClose, t, }: MySizingProfilesViewProps): import("react/jsx-runtime").JSX.Element;
26
28
  export {};
@@ -1,5 +1,5 @@
1
1
  import type { TranslateFn } from "../../i18n";
2
- import type { Profile } from "../types";
2
+ import type { Profile, ProfileMeasurements } from "../types";
3
3
  /**
4
4
  * Profile detail view — shown when the user taps a profile card in the
5
5
  * grid. Displays the profile name, basic stats, and the full LLM-computed
@@ -11,12 +11,13 @@ interface ProfileMeasurementsViewProps {
11
11
  profile: Profile;
12
12
  isActive: boolean;
13
13
  onSelect: () => void;
14
- onEdit: () => void;
14
+ /** Persist updated measurements back to the profile */
15
+ onSaveMeasurements: (measurements: ProfileMeasurements) => void;
15
16
  onDelete: () => void;
16
17
  onBack: () => void;
17
18
  /** Save the profile and return to the grid (only enabled once measurements arrive) */
18
19
  onSave: () => void;
19
20
  t: TranslateFn;
20
21
  }
21
- export declare function ProfileMeasurementsView({ profile, isActive, onSelect, onEdit, onDelete, onBack, onSave, t, }: ProfileMeasurementsViewProps): import("react/jsx-runtime").JSX.Element;
22
+ export declare function ProfileMeasurementsView({ profile, isActive, onSelect, onSaveMeasurements, onDelete, onBack, onSave, t, }: ProfileMeasurementsViewProps): import("react/jsx-runtime").JSX.Element;
22
23
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primestyleai/tryon",
3
- "version": "5.6.10",
3
+ "version": "5.6.12",
4
4
  "description": "PrimeStyle Virtual Try-On SDK — React component & Web Component",
5
5
  "type": "module",
6
6
  "main": "dist/primestyle-tryon.js",