@primestyleai/tryon 5.10.193 → 5.10.194
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/{index-D9sdGV4C.js → index-BiotPzcm.js} +81 -73
- package/dist/index-BiotPzcm.js.map +1 -0
- package/dist/primestyle-tryon.js +2 -2
- package/dist/react/index.js +4903 -4753
- package/dist/react/index.js.map +1 -1
- package/dist/react/recommendForProduct.d.ts +4 -4
- package/dist/react/styles.d.ts +1 -1
- package/dist/react/usePrimeStyleSize.d.ts +2 -2
- package/dist/react/views/SizeResultView.d.ts +2 -1
- package/dist/storefront/primestyle-tryon.js +254 -102
- package/package.json +1 -1
- package/dist/index-D9sdGV4C.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type RecommendForProductInput, type RecommendForProductResult } from "./recommendForProduct";
|
|
2
2
|
export interface UsePrimeStyleSizeState {
|
|
3
|
-
/** The
|
|
3
|
+
/** The suggested size (e.g. "M", "42") — null while loading or if no profile */
|
|
4
4
|
recommendedSize: string | null;
|
|
5
5
|
/** Per-section sizes for multi-section products */
|
|
6
6
|
sections: Record<string, string> | null;
|
|
@@ -17,7 +17,7 @@ export interface UsePrimeStyleSizeState {
|
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
19
|
* React hook wrapper around recommendForProduct(). Calls the headless API
|
|
20
|
-
* on mount, returns the
|
|
20
|
+
* on mount, returns the suggested size + loading state. Re-runs whenever
|
|
21
21
|
* productId changes.
|
|
22
22
|
*/
|
|
23
23
|
export declare function usePrimeStyleSize(input: RecommendForProductInput): UsePrimeStyleSizeState;
|
|
@@ -2,7 +2,7 @@ import type { TranslateFn } from "../../i18n";
|
|
|
2
2
|
import type { ViewState, SizeGuide, SizingResult } from "../types";
|
|
3
3
|
import type { BodyLandmarks } from "../../pose-detect";
|
|
4
4
|
import { type ProductPhotoCarouselItem } from "./ProductPhotoCarouselCard";
|
|
5
|
-
export declare function SizeResultView({ sizingLoading, sizingResult, sizeGuide, resultImageUrl, productImage, productImages, productCarouselItems, productTitle, productUrl, productMaterial, productDescription, sizingUnit, setView, handleDownload, onContinueShopping, isHistoryResult, onBackToProductPage, onAddToBag, addToBagLabel, continueShoppingLabel, backToProductPageLabel, onTryOnFeedbackSubmit, selectedFile, previewUrl, handleFileSelect, handleRemovePreview, handleTryOnSubmit, tryOnProcessing, tryOnStartedAt, bodyLandmarks, faceLandmarks, measurementType, estimationDone, activeSection, setActiveSection, onResetTryOn, onClose, userHeightCm, pendingCustomSizes: pendingCustomSizesProp, onPendingCustomSizeChange, tryOnAvailable, showProfileCompletionCta, onProfileCompletionCta, portalContainer, t, }: {
|
|
5
|
+
export declare function SizeResultView({ sizingLoading, sizingResult, sizeGuide, resultImageUrl, productImage, productImages, productCarouselItems, productTitle, productUrl, productMaterial, productDescription, sizingUnit, setView, handleDownload, onContinueShopping, isHistoryResult, onBackToProductPage, onAddToBag, addToBagLabel, continueShoppingLabel, backToProductPageLabel, onTryOnFeedbackSubmit, selectedFile, previewUrl, handleFileSelect, handleRemovePreview, handleTryOnSubmit, tryOnProcessing, tryOnStartedAt, bodyLandmarks, faceLandmarks, measurementType, isAccessoryProduct, estimationDone, activeSection, setActiveSection, onResetTryOn, onClose, userHeightCm, pendingCustomSizes: pendingCustomSizesProp, onPendingCustomSizeChange, tryOnAvailable, showProfileCompletionCta, onProfileCompletionCta, portalContainer, t, }: {
|
|
6
6
|
estimationDone?: boolean;
|
|
7
7
|
sizingLoading: boolean;
|
|
8
8
|
sizingResult: SizingResult | null;
|
|
@@ -48,6 +48,7 @@ export declare function SizeResultView({ sizingLoading, sizingResult, sizeGuide,
|
|
|
48
48
|
bodyLandmarks?: BodyLandmarks | null;
|
|
49
49
|
faceLandmarks?: import("../../face-detect").FaceLandmarks | null;
|
|
50
50
|
measurementType?: "body" | "face" | "head" | "foot" | "wrist";
|
|
51
|
+
isAccessoryProduct?: boolean;
|
|
51
52
|
activeSection: string | null;
|
|
52
53
|
setActiveSection: (s: string | null) => void;
|
|
53
54
|
/** Clear try-on result + uploaded photo so the user can retry from the photo guide. */
|