@primestyleai/tryon 5.10.115 → 5.10.116
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.
|
@@ -27816,7 +27816,7 @@ function PrimeStyleTryonInner({
|
|
|
27816
27816
|
fetch(`${baseUrl}/api/catalog/pick-best-garment-image`, {
|
|
27817
27817
|
method: "POST",
|
|
27818
27818
|
headers: { "Content-Type": "application/json" },
|
|
27819
|
-
body: JSON.stringify({ images: productImages }),
|
|
27819
|
+
body: JSON.stringify({ images: productImages, productTitle }),
|
|
27820
27820
|
signal: ctrl.signal
|
|
27821
27821
|
}).then((r2) => r2.ok ? r2.json() : null).then((j) => {
|
|
27822
27822
|
if (j?.bestUrl) {
|
|
@@ -27826,7 +27826,7 @@ function PrimeStyleTryonInner({
|
|
|
27826
27826
|
}).catch(() => {
|
|
27827
27827
|
});
|
|
27828
27828
|
return () => ctrl.abort();
|
|
27829
|
-
}, [productImages, garmentReferenceImage, apiUrl]);
|
|
27829
|
+
}, [productImages, garmentReferenceImage, apiUrl, productTitle]);
|
|
27830
27830
|
const TARGET_SECONDS2 = 22;
|
|
27831
27831
|
const progressRef = reactExports.useRef(0);
|
|
27832
27832
|
const progressBarRef = reactExports.useRef(null);
|