@primestyleai/tryon 5.10.187 → 5.10.188

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.
@@ -5,6 +5,8 @@ export declare const LS_PREFIX = "primestyle_";
5
5
  export declare const PS_STORAGE_CHANGE_EVENT = "ps:storage-change";
6
6
  export declare function lsGet<T>(key: string, fallback: T): T;
7
7
  export declare function lsSet(key: string, value: unknown): void;
8
+ export declare function lsRemove(key: string): void;
9
+ export declare function clearProfileLocalStorage(): void;
8
10
  export declare function getProfiles(): Profile[];
9
11
  export declare function saveProfiles(profiles: Profile[]): void;
10
12
  export declare function getActiveProfileId(): string | null;
@@ -53,6 +53,9 @@ interface BodyProfileViewProps {
53
53
  cup: string;
54
54
  region: string;
55
55
  };
56
+ chestProfile?: ChestProfile;
57
+ midsectionProfile?: MidsectionProfile;
58
+ hipProfile?: HipProfile;
56
59
  extraMeasurements?: Record<string, string | number>;
57
60
  }) => void;
58
61
  /** True if the user has an active profile with stored measurements —
@@ -38,6 +38,8 @@ interface CreateProfileWizardProps {
38
38
  onCancel: () => void;
39
39
  initialMode?: "manual" | "image";
40
40
  initialDraft?: ProfileCompletionDraft | null;
41
+ /** Direct profile-save path launched from a size result. Keeps the shell back button and skips wizard chrome. */
42
+ directAnalysisFlow?: boolean;
41
43
  /** Backend URL + API key — required for the pre-upload age check call. */
42
44
  apiUrl?: string;
43
45
  apiKey?: string;
@@ -61,5 +63,5 @@ interface CreateProfileWizardProps {
61
63
  } | null>;
62
64
  t: TranslateFn;
63
65
  }
64
- export declare function CreateProfileWizard({ onSave, onCancel, initialMode, initialDraft, apiUrl, apiKey, onPhotoPreview, onEstimate, t }: CreateProfileWizardProps): import("react/jsx-runtime").JSX.Element;
66
+ export declare function CreateProfileWizard({ onSave, onCancel, initialMode, initialDraft, directAnalysisFlow, apiUrl, apiKey, onPhotoPreview, onEstimate, t }: CreateProfileWizardProps): import("react/jsx-runtime").JSX.Element;
65
67
  export {};
@@ -10,9 +10,10 @@ import type { TranslateFn } from "../../i18n";
10
10
  * at its normal width/height — only the right-column content swaps to
11
11
  * the no-chart message + CTAs.
12
12
  */
13
- export declare function NoChartView({ productImage, productTitle, onTryOn, onClose, t, }: {
13
+ export declare function NoChartView({ productImage, productTitle, reason, onTryOn, onClose, t, }: {
14
14
  productImage?: string;
15
15
  productTitle?: string;
16
+ reason?: "no-chart" | "no-match";
16
17
  onTryOn: () => void;
17
18
  onClose: () => void;
18
19
  t: TranslateFn;