@primestyleai/tryon 5.10.114 → 5.10.115

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.
@@ -28874,10 +28874,9 @@ function PrimeStyleTryonInner({
28874
28874
  sizeGuide,
28875
28875
  override?.displayLabel,
28876
28876
  (() => {
28877
- const p2 = profiles.find((x2) => x2.id === activeProfileId);
28878
- const h = p2?.height ?? p2?.heightCm;
28879
- const u2 = p2?.heightUnit || "cm";
28877
+ const h = parseFloat(formRef.current.height || "0");
28880
28878
  if (!h || h <= 0) return void 0;
28879
+ const u2 = formRef.current.heightUnit || heightUnit || "cm";
28881
28880
  if (u2 === "ft") {
28882
28881
  const ft = Math.floor(h);
28883
28882
  const inches = Math.round((h - ft) * 12);
@@ -28886,10 +28885,9 @@ function PrimeStyleTryonInner({
28886
28885
  return u2 === "in" ? `${h}"` : `${h} cm`;
28887
28886
  })(),
28888
28887
  (() => {
28889
- const p2 = profiles.find((x2) => x2.id === activeProfileId);
28890
- const w2 = p2?.weight ?? p2?.weightKg;
28891
- const u2 = p2?.weightUnit || "kg";
28888
+ const w2 = parseFloat(formRef.current.weight || "0");
28892
28889
  if (!w2 || w2 <= 0) return void 0;
28890
+ const u2 = formRef.current.weightUnit || weightUnit || "kg";
28893
28891
  return `${w2} ${u2}`;
28894
28892
  })()
28895
28893
  ),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primestyleai/tryon",
3
- "version": "5.10.114",
3
+ "version": "5.10.115",
4
4
  "description": "PrimeStyle Virtual Try-On SDK — React component & Web Component",
5
5
  "type": "module",
6
6
  "main": "dist/primestyle-tryon.js",