@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.
package/dist/react/index.js
CHANGED
|
@@ -16780,13 +16780,13 @@ function vi({
|
|
|
16780
16780
|
return fetch(`${c}/api/catalog/pick-best-garment-image`, {
|
|
16781
16781
|
method: "POST",
|
|
16782
16782
|
headers: { "Content-Type": "application/json" },
|
|
16783
|
-
body: JSON.stringify({ images: g }),
|
|
16783
|
+
body: JSON.stringify({ images: g, productTitle: r }),
|
|
16784
16784
|
signal: C.signal
|
|
16785
16785
|
}).then((z) => z.ok ? z.json() : null).then((z) => {
|
|
16786
16786
|
z?.bestUrl && (fo.current = z.bestUrl, console.log(`[ps-sdk] pre-picked garment reference: ${z.bestUrl}`));
|
|
16787
16787
|
}).catch(() => {
|
|
16788
16788
|
}), () => C.abort();
|
|
16789
|
-
}, [g, t, s]);
|
|
16789
|
+
}, [g, t, s, r]);
|
|
16790
16790
|
const _o = 22, Uo = hA(0), ho = hA(null), vo = hA(null), Eo = hA(null), Io = hA(null), uo = hA(null), Ag = hA(null), eg = hA(""), no = hA(null);
|
|
16791
16791
|
MA(() => {
|
|
16792
16792
|
if (oA === "processing") {
|