@primestyleai/tryon 5.4.0 → 5.4.1
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 +7 -0
- package/package.json +1 -1
package/dist/react/index.js
CHANGED
|
@@ -6122,6 +6122,9 @@ function PrimeStyleTryonInner({
|
|
|
6122
6122
|
};
|
|
6123
6123
|
if (formRef.current.age) qe.age = parseInt(formRef.current.age, 10);
|
|
6124
6124
|
if (formRef.current.bodyType) qe.bodyType = formRef.current.bodyType;
|
|
6125
|
+
if (formRef.current.chestProfile) qe.chestProfile = formRef.current.chestProfile;
|
|
6126
|
+
if (formRef.current.midsectionProfile) qe.midsectionProfile = formRef.current.midsectionProfile;
|
|
6127
|
+
if (formRef.current.hipProfile) qe.hipProfile = formRef.current.hipProfile;
|
|
6125
6128
|
payload.quickEstimate = qe;
|
|
6126
6129
|
}
|
|
6127
6130
|
try {
|
|
@@ -6173,6 +6176,7 @@ function PrimeStyleTryonInner({
|
|
|
6173
6176
|
const requiredFieldKeys = Array.from(allFieldKeys);
|
|
6174
6177
|
console.log("[PS-SDK] Quick estimate — dynamicFields:", dynamicFields.map((f) => `${f.key}(${f.unit},req=${f.required})`));
|
|
6175
6178
|
console.log("[PS-SDK] Quick estimate — requiredFieldKeys:", requiredFieldKeys);
|
|
6179
|
+
console.log("[PS-SDK] Quick estimate — profiles:", { chestProfile, midsectionProfile, hipProfile });
|
|
6176
6180
|
if (requiredFieldKeys.length === 0) {
|
|
6177
6181
|
console.warn("[PS-SDK] No body measurement fields found — skipping estimation review");
|
|
6178
6182
|
setSizingMethod("quick");
|
|
@@ -6188,6 +6192,9 @@ function PrimeStyleTryonInner({
|
|
|
6188
6192
|
formRef.current.gender = gender;
|
|
6189
6193
|
if (age) formRef.current.age = String(age);
|
|
6190
6194
|
if (bodyType) formRef.current.bodyType = bodyType;
|
|
6195
|
+
if (chestProfile) formRef.current.chestProfile = chestProfile;
|
|
6196
|
+
if (midsectionProfile) formRef.current.midsectionProfile = midsectionProfile;
|
|
6197
|
+
if (hipProfile) formRef.current.hipProfile = hipProfile;
|
|
6191
6198
|
setSizingMethod("quick");
|
|
6192
6199
|
setSizingLoading(true);
|
|
6193
6200
|
setView("size-result");
|