@primestyleai/tryon 5.5.24 → 5.5.25

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.
@@ -5397,14 +5397,13 @@ function SectionDetailView({
5397
5397
  return { area: m.measurement, userNum, chartLabel: cleanNumFn(chartLabel), fit, isLength: false };
5398
5398
  });
5399
5399
  }, [sectionResult, lengthEntry, userMeasurements, displaySize, recSize, chartRangeFor, selectedLength, recLength]);
5400
- const displayLength = selectedLength || recLength;
5401
5400
  const goodCount = fitRows.filter(
5402
5401
  (r) => r.fit === "good" || r.fit === "a-bit-tight" || r.fit === "a-bit-loose"
5403
5402
  ).length;
5404
5403
  const matchPercent = fitRows.length > 0 ? Math.round(goodCount / fitRows.length * 100) : 0;
5405
5404
  const secAny = sectionResult;
5406
- const backendLength = secAny?.length || displayLength;
5407
- const backendSize = secAny?.size || displaySize;
5405
+ const backendSize = secAny?.size || recSize;
5406
+ const backendLength = secAny?.length || recLength;
5408
5407
  const backendAvailableSizes = secAny?.availableSizes || [];
5409
5408
  const backendAvailableLengths = secAny?.availableLengths || [];
5410
5409
  const finalDisplayLength = selectedLength || backendLength;
@@ -5463,9 +5462,9 @@ function SectionDetailView({
5463
5462
  ] }),
5464
5463
  productImage && /* @__PURE__ */ jsx("div", { className: "ps-msd-image", children: /* @__PURE__ */ jsx("img", { src: productImage, alt: productTitle || "", className: "ps-msd-image-img" }) }),
5465
5464
  /* @__PURE__ */ jsxs("div", { className: "ps-msd-card", children: [
5466
- /* @__PURE__ */ jsx("span", { className: "ps-msd-card-eyebrow", children: t("RECOMMENDED SIZE") }),
5465
+ /* @__PURE__ */ jsx("span", { className: "ps-msd-card-eyebrow", children: displaySize === backendSize ? t("RECOMMENDED SIZE") : t("TRYING SIZE") }),
5467
5466
  /* @__PURE__ */ jsxs("div", { className: "ps-msd-card-size-row", children: [
5468
- /* @__PURE__ */ jsx("span", { className: "ps-msd-card-size", children: backendSize }),
5467
+ /* @__PURE__ */ jsx("span", { className: "ps-msd-card-size", children: displaySize }),
5469
5468
  finalDisplayLength && /* @__PURE__ */ jsx("span", { className: "ps-msd-card-size-meta", children: finalDisplayLength })
5470
5469
  ] }),
5471
5470
  /* @__PURE__ */ jsx("div", { className: "ps-msd-card-divider" }),
@@ -5506,7 +5505,7 @@ function SectionDetailView({
5506
5505
  /* @__PURE__ */ jsxs("span", { className: "ps-msd-cell-label", children: [
5507
5506
  t("SIZE"),
5508
5507
  " ",
5509
- backendSize
5508
+ displaySize
5510
5509
  ] }),
5511
5510
  /* @__PURE__ */ jsx("span", { className: "ps-msd-cell-value", children: row.chartLabel })
5512
5511
  ] })
@@ -5554,7 +5553,7 @@ function SectionDetailView({
5554
5553
  t("*Our sizing engine recommends"),
5555
5554
  " ",
5556
5555
  backendSize,
5557
- finalDisplayLength ? ` (${finalDisplayLength})` : "",
5556
+ backendLength ? ` (${backendLength})` : "",
5558
5557
  " ",
5559
5558
  t("based on your measurements and the garment's tailoring chart.")
5560
5559
  ] })
@@ -5564,7 +5563,7 @@ function SectionDetailView({
5564
5563
  /* @__PURE__ */ jsxs("div", { style: { flex: 1 }, children: [
5565
5564
  /* @__PURE__ */ jsx("span", { style: { fontSize: "0.75vw", fontWeight: 700, color: "var(--ps-accent)", textTransform: "uppercase", letterSpacing: "0.12em" }, children: isRecommended ? t("Recommended Size") : t("Not Recommended") }),
5566
5565
  /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "baseline", gap: "0.5vw", marginTop: "0.3vw", marginBottom: "0.4vw" }, children: [
5567
- /* @__PURE__ */ jsx("span", { style: { fontSize: "3.5vw", fontWeight: 300, color: "var(--ps-text-primary)", lineHeight: 1, letterSpacing: "-0.02em" }, children: backendSize }),
5566
+ /* @__PURE__ */ jsx("span", { style: { fontSize: "3.5vw", fontWeight: 300, color: "var(--ps-text-primary)", lineHeight: 1, letterSpacing: "-0.02em" }, children: displaySize }),
5568
5567
  finalDisplayLength && /* @__PURE__ */ jsx("span", { style: { fontSize: "1.4vw", fontWeight: 400, color: "var(--ps-text-secondary)" }, children: finalDisplayLength })
5569
5568
  ] }),
5570
5569
  /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: "0.4vw", marginBottom: "1.2vw" }, children: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primestyleai/tryon",
3
- "version": "5.5.24",
3
+ "version": "5.5.25",
4
4
  "description": "PrimeStyle Virtual Try-On SDK — React component & Web Component",
5
5
  "type": "module",
6
6
  "main": "dist/primestyle-tryon.js",