@primestyleai/tryon 5.10.48 → 5.10.49
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/index.js +333 -330
- package/dist/react/index.js.map +1 -1
- package/dist/storefront/primestyle-tryon.js +8 -2
- package/package.json +1 -1
|
@@ -25628,6 +25628,7 @@ function PrimeStyleTryonInner({
|
|
|
25628
25628
|
});
|
|
25629
25629
|
return;
|
|
25630
25630
|
}
|
|
25631
|
+
console.log("[ps-sdk:retry] starting", { fitInfoCount: fitInfo.length, selectedSizeOverride, fitInfo });
|
|
25631
25632
|
setRetryLoading(true);
|
|
25632
25633
|
const vtoCategory = measurementTypeToVtoCategory(detectMeasurementType(productTitle));
|
|
25633
25634
|
const isApparel = vtoCategory === "apparel";
|
|
@@ -25735,12 +25736,17 @@ function PrimeStyleTryonInner({
|
|
|
25735
25736
|
}
|
|
25736
25737
|
}, [selectedFile, productImage, productTitle]);
|
|
25737
25738
|
const handleRegenerateTryOn = reactExports.useCallback((override) => {
|
|
25739
|
+
console.log("[ps-sdk:regen] fired", { override, hasFile: !!selectedFile, hasRefFile: !!selectedFileRef.current });
|
|
25738
25740
|
setPendingCustomSize(override);
|
|
25739
25741
|
const md2 = override.matchDetails || [];
|
|
25740
|
-
if (!md2.length)
|
|
25742
|
+
if (!md2.length) {
|
|
25743
|
+
console.warn("[ps-sdk:regen] no matchDetails in override — cannot rebuild fitInfo");
|
|
25744
|
+
return;
|
|
25745
|
+
}
|
|
25741
25746
|
const fitInfo = buildFitInfo(md2, modelPoseRef.current);
|
|
25747
|
+
console.log("[ps-sdk:regen] fitInfo built", { fitInfo, label: override.displayLabel });
|
|
25742
25748
|
handleRetryWithFit(fitInfo, override.displayLabel);
|
|
25743
|
-
}, [handleRetryWithFit]);
|
|
25749
|
+
}, [handleRetryWithFit, selectedFile]);
|
|
25744
25750
|
const handleDownload = reactExports.useCallback(() => {
|
|
25745
25751
|
if (!resultImageUrl) return;
|
|
25746
25752
|
if (resultImageUrl.startsWith("data:")) {
|