@primestyleai/tryon 5.10.12 → 5.10.14

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.
@@ -18068,6 +18068,15 @@ function SectionDetailView({
18068
18068
  const inlineHasLengths = (sectionResult?.availableLengths?.length || 0) > 0;
18069
18069
  const effectiveRecLength = recLength || inlineLengthRec;
18070
18070
  const hasLengthSource = !!(lengthEntry || inlineHasLengths);
18071
+ if (hasLengthSource && !lengthDetails.length) {
18072
+ const userHcm = userMeasurements["height"] || 0;
18073
+ details.push({
18074
+ measurement: "Height",
18075
+ userValue: userHcm ? String(userHcm) : "",
18076
+ chartRange: effectiveRecLength || "",
18077
+ fit: "good"
18078
+ });
18079
+ }
18071
18080
  if (!details.length) return [];
18072
18081
  const isFromLength = new Set(lengthDetails.length > 0 ? lengthDetails.map((m2) => m2.measurement) : hasLengthSource ? ["Height"] : []);
18073
18082
  return details.map((m2) => {
@@ -18317,7 +18326,8 @@ function SectionDetailView({
18317
18326
  /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "ps-msd-blueprint-title", children: t2("MEASUREMENT BLUEPRINT") }),
18318
18327
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "ps-msd-blueprint-underline" }),
18319
18328
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "ps-msd-rows", children: fitRows.map((row, i) => {
18320
- const fitClass = row.fit === "good" ? "ps-good" : row.fit.includes("tight") ? "ps-tight" : "ps-loose";
18329
+ const isNegative = row.isLength ? row.fit.includes("short") || row.fit.includes("tight") : row.fit.includes("tight");
18330
+ const fitClass = row.fit === "good" ? "ps-good" : isNegative ? "ps-tight" : "ps-loose";
18321
18331
  const desc = measurementDesc(row.area);
18322
18332
  const idxLbl = String(i + 1).padStart(2, "0");
18323
18333
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "ps-msd-row", children: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primestyleai/tryon",
3
- "version": "5.10.12",
3
+ "version": "5.10.14",
4
4
  "description": "PrimeStyle Virtual Try-On SDK — React component & Web Component",
5
5
  "type": "module",
6
6
  "main": "dist/primestyle-tryon.js",