@primestyleai/tryon 5.8.49 → 5.8.51

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.
@@ -790,18 +790,19 @@ const STYLES = `
790
790
  }
791
791
  .ps-tryon-modal-wide {
792
792
  /* Use the SMALLER of 55vw or 92dvh×(16/10) for width so the modal
793
- never gets wider than the height can support. This keeps the
794
- aspect ratio roughly 16:10 regardless of screen shape. */
793
+ never gets wider than the height can support. Height bumped from
794
+ 70dvh 82dvh to fit the longer accessory photo step (guidelines +
795
+ legal notice + nav) without pushing content under the Analyze CTA. */
795
796
  width: min(55vw, calc(92dvh * 1.6));
796
797
  max-width: min(55vw, calc(92dvh * 1.6));
797
- height: min(70dvh, calc(55vw / 1.6));
798
- max-height: min(92dvh, calc(55vw / 1.6));
798
+ height: min(82dvh, calc(55vw / 1.35));
799
+ max-height: min(92dvh, calc(55vw / 1.35));
799
800
  display: flex; flex-direction: column; overflow: hidden;
800
801
  transition: height 0.45s cubic-bezier(0.32, 0.72, 0, 1), max-height 0.45s cubic-bezier(0.32, 0.72, 0, 1);
801
802
  }
802
803
  .ps-tryon-modal-tall.ps-tryon-modal-wide {
803
- height: min(88dvh, calc(55vw / 1.3));
804
- max-height: min(92dvh, calc(55vw / 1.3));
804
+ height: min(92dvh, calc(55vw / 1.2));
805
+ max-height: min(95dvh, calc(55vw / 1.2));
805
806
  }
806
807
  .ps-tryon-modal:has(.ps-tryon-drawer-open) { overflow: hidden; }
807
808
  @keyframes ps-slide-up { from { transform: translateY(12px) scale(0.97); opacity: 0; filter: blur(4px); } to { transform: none; opacity: 1; filter: none; } }
@@ -13660,7 +13661,7 @@ function PrimeStyleTryonInner({
13660
13661
  category: measurementType,
13661
13662
  ...Object.keys(faceMm).length > 0 && { faceMeasurementsMm: faceMm, irisConfidence: 1 }
13662
13663
  };
13663
- const minVisible = new Promise((r) => setTimeout(r, 3200));
13664
+ const minVisible = new Promise((r) => setTimeout(r, 4500));
13664
13665
  try {
13665
13666
  const resp = await fetch(`${baseUrl}/api/v1/sizing/face-recommend`, {
13666
13667
  method: "POST",
@@ -13877,7 +13878,7 @@ function PrimeStyleTryonInner({
13877
13878
  const measurementType = detectMeasurementType(productTitle);
13878
13879
  if (measurementType === "face" || measurementType === "head") {
13879
13880
  setFaceLandmarks(null);
13880
- const minVisible = new Promise((r) => setTimeout(r, 3200));
13881
+ const minVisible = new Promise((r) => setTimeout(r, 4500));
13881
13882
  try {
13882
13883
  const faceResult = await detectFaceMeasurements(objUrl);
13883
13884
  if (faceResult) setFaceLandmarks(faceResult.landmarks);