@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.
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primestyleai/tryon",
3
- "version": "5.5.1",
3
+ "version": "5.5.2",
4
4
  "description": "PrimeStyle Virtual Try-On SDK — React component & Web Component",
5
5
  "type": "module",
6
6
  "main": "dist/primestyle-tryon.js",