@primestyleai/tryon 4.9.2 → 4.9.3

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.
@@ -5618,11 +5618,12 @@ function BodyProfileView({
5618
5618
  onSnapSubmit({
5619
5619
  photoFile,
5620
5620
  photoBase64,
5621
- height: 170,
5622
- weight: 65,
5621
+ height: 0,
5622
+ weight: 0,
5623
5623
  heightUnit: "cm",
5624
5624
  weightUnit: "kg",
5625
- gender
5625
+ gender,
5626
+ snapMode: true
5626
5627
  });
5627
5628
  }
5628
5629
  }, [step, steps, validateBasics, chestProfile, midsectionProfile, hipProfile, seatProfile, bandSize, cupSize, hUnit, wUnit, height, heightFeet, heightInches, weight, age, photoBase64, photoFile, formRef, setHeightUnit, setWeightUnit, onComplete, onSnapSubmit, isWomen, gender]);
@@ -6478,14 +6479,14 @@ function PrimeStyleTryonInner({
6478
6479
  method: "POST",
6479
6480
  headers: { "Content-Type": "application/json", Authorization: `Bearer ${key}` },
6480
6481
  body: JSON.stringify({
6481
- height: data.height,
6482
- weight: data.weight,
6482
+ ...data.snapMode ? {} : { height: data.height, weight: data.weight },
6483
6483
  heightUnit: data.heightUnit,
6484
6484
  weightUnit: data.weightUnit,
6485
6485
  gender: data.gender,
6486
6486
  requiredFields: requiredFieldKeys,
6487
6487
  bodyImage: data.photoBase64,
6488
- ...data.age && { age: data.age }
6488
+ ...data.age && { age: data.age },
6489
+ ...data.snapMode && { snapMode: true }
6489
6490
  })
6490
6491
  });
6491
6492
  if (estRes.ok) estData = await estRes.json();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primestyleai/tryon",
3
- "version": "4.9.2",
3
+ "version": "4.9.3",
4
4
  "description": "PrimeStyle Virtual Try-On SDK — React component & Web Component",
5
5
  "type": "module",
6
6
  "main": "dist/primestyle-tryon.js",