@primestyleai/tryon 5.6.10 → 5.6.11

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.
@@ -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.11",
4
4
  "description": "PrimeStyle Virtual Try-On SDK — React component & Web Component",
5
5
  "type": "module",
6
6
  "main": "dist/primestyle-tryon.js",