@primestyleai/tryon 5.5.1 → 5.5.2
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 +2 -0
- package/package.json +1 -1
package/dist/react/index.js
CHANGED
|
@@ -6203,6 +6203,7 @@ function PrimeStyleTryonInner({
|
|
|
6203
6203
|
const data = await res.json();
|
|
6204
6204
|
console.log("[PS-SDK] Sizing recommend RESULT:", JSON.stringify(data));
|
|
6205
6205
|
setSizingResult(data);
|
|
6206
|
+
onComplete?.(data);
|
|
6206
6207
|
} else {
|
|
6207
6208
|
const errBody = await res.text().catch(() => "");
|
|
6208
6209
|
console.error("[PS-SDK] Sizing recommend failed:", res.status, errBody);
|
|
@@ -6318,6 +6319,7 @@ function PrimeStyleTryonInner({
|
|
|
6318
6319
|
if (recRes.ok) {
|
|
6319
6320
|
const recData = await recRes.json();
|
|
6320
6321
|
setSizingResult(recData);
|
|
6322
|
+
onComplete?.(recData);
|
|
6321
6323
|
}
|
|
6322
6324
|
} catch {
|
|
6323
6325
|
}
|