@primestyleai/tryon 5.9.0 → 5.10.0
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/react/components/ConfirmMeasurementsModal.d.ts +22 -0
- package/dist/react/index.js +350 -55
- package/dist/react/recommendForProduct.d.ts +4 -0
- package/dist/react/styles.d.ts +1 -1
- package/dist/react/utils/units.d.ts +6 -0
- package/dist/react/views/MobileScanningView.d.ts +4 -1
- package/dist/storefront/primestyle-tryon.js +350 -55
- package/dist/types.d.ts +7 -0
- package/package.json +1 -1
|
@@ -4,3 +4,9 @@ export declare function kgToLbs(kg: number): number;
|
|
|
4
4
|
export declare function lbsToKg(lbs: number): number;
|
|
5
5
|
export declare function ftInToCm(ft: number, inch: number): number;
|
|
6
6
|
export declare function isImperial(locale: string): boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Human-readable label for a unit token. Used to append a system label to
|
|
9
|
+
* primary CTAs ("Find My Best Fit (Metric)") so the user knows whether their
|
|
10
|
+
* values will be interpreted as cm/kg or in/lbs before they submit.
|
|
11
|
+
*/
|
|
12
|
+
export declare function getUnitLabel(unit: string | undefined | null): string;
|
|
@@ -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 {};
|