@primestyleai/tryon 5.8.58 → 5.9.1
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.
- package/dist/api-client.d.ts +1 -1
- package/dist/{index-J6U0-q_3.js → index-CuIieeOy.js} +2 -1
- package/dist/primestyle-tryon.js +2 -2
- package/dist/react/index.js +392 -61
- package/dist/react/styles.d.ts +1 -1
- package/dist/react/views/MobileScanningView.d.ts +4 -1
- package/dist/react/views/PhotoStepMobile.d.ts +3 -1
- package/dist/react/views/ProcessingView.d.ts +3 -1
- package/dist/storefront/primestyle-tryon.js +393 -61
- package/package.json +1 -4
|
@@ -9,8 +9,11 @@ interface MobileScanningViewProps {
|
|
|
9
9
|
productImage?: string;
|
|
10
10
|
bodyLandmarks: BodyLandmarks | null | undefined;
|
|
11
11
|
sizingDone: boolean;
|
|
12
|
+
/** True while VTO is running — swaps to try-on stage copy and shows the
|
|
13
|
+
* wall-clock progress ring. */
|
|
14
|
+
tryOnProcessing?: boolean;
|
|
12
15
|
onSwitchToManual: () => void;
|
|
13
16
|
t: TranslateFn;
|
|
14
17
|
}
|
|
15
|
-
export declare function MobileScanningView({ previewUrl, productImage, bodyLandmarks, sizingDone, onSwitchToManual, t, }: MobileScanningViewProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare function MobileScanningView({ previewUrl, productImage, bodyLandmarks, sizingDone, tryOnProcessing, onSwitchToManual, t, }: MobileScanningViewProps): import("react/jsx-runtime").JSX.Element;
|
|
16
19
|
export {};
|
|
@@ -9,7 +9,9 @@ interface PhotoStepMobileProps {
|
|
|
9
9
|
photoVariant?: "full-body" | "close-up";
|
|
10
10
|
photoStepHeight?: string;
|
|
11
11
|
onPhotoStepHeightChange?: (v: string) => void;
|
|
12
|
+
ageConfirmed: boolean | null;
|
|
13
|
+
onAgeConfirmedChange: (v: boolean | null) => void;
|
|
12
14
|
t: TranslateFn;
|
|
13
15
|
}
|
|
14
|
-
export declare function PhotoStepMobile({ photoPreview, handlePhotoSelect, handleRemovePhoto, onAnalyze, onSwitchToManual, error, photoVariant, photoStepHeight, onPhotoStepHeightChange, t, }: PhotoStepMobileProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare function PhotoStepMobile({ photoPreview, handlePhotoSelect, handleRemovePhoto, onAnalyze, onSwitchToManual, error, photoVariant, photoStepHeight, onPhotoStepHeightChange, ageConfirmed, onAgeConfirmedChange, t, }: PhotoStepMobileProps): import("react/jsx-runtime").JSX.Element;
|
|
15
17
|
export {};
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import type { PrimeStyleClassNames } from "../../types";
|
|
2
2
|
import type { TranslateFn } from "../../i18n";
|
|
3
|
-
export declare function ProcessingView({ previewUrl, progressRef, progressBarRef, progressTextRef, progressStatusRef, cn, t, }: {
|
|
3
|
+
export declare function ProcessingView({ previewUrl, progressRef, progressBarRef, progressTextRef, progressStatusRef, progressEtaRef, progressRingRef, cn, t, }: {
|
|
4
4
|
previewUrl: string | null;
|
|
5
5
|
progressRef: React.MutableRefObject<number>;
|
|
6
6
|
progressBarRef: React.MutableRefObject<HTMLDivElement | null>;
|
|
7
7
|
progressTextRef: React.MutableRefObject<HTMLSpanElement | null>;
|
|
8
8
|
progressStatusRef: React.MutableRefObject<HTMLDivElement | null>;
|
|
9
|
+
progressEtaRef: React.MutableRefObject<HTMLSpanElement | null>;
|
|
10
|
+
progressRingRef: React.MutableRefObject<SVGCircleElement | null>;
|
|
9
11
|
cn: PrimeStyleClassNames;
|
|
10
12
|
t: TranslateFn;
|
|
11
13
|
}): import("react/jsx-runtime").JSX.Element;
|