@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.
@@ -10214,18 +10214,19 @@ const STYLES$1 = `
10214
10214
  }
10215
10215
  .ps-tryon-modal-wide {
10216
10216
  /* Use the SMALLER of 55vw or 92dvh×(16/10) for width so the modal
10217
- never gets wider than the height can support. This keeps the
10218
- aspect ratio roughly 16:10 regardless of screen shape. */
10217
+ never gets wider than the height can support. Height bumped from
10218
+ 70dvh 82dvh to fit the longer accessory photo step (guidelines +
10219
+ legal notice + nav) without pushing content under the Analyze CTA. */
10219
10220
  width: min(55vw, calc(92dvh * 1.6));
10220
10221
  max-width: min(55vw, calc(92dvh * 1.6));
10221
- height: min(70dvh, calc(55vw / 1.6));
10222
- max-height: min(92dvh, calc(55vw / 1.6));
10222
+ height: min(82dvh, calc(55vw / 1.35));
10223
+ max-height: min(92dvh, calc(55vw / 1.35));
10223
10224
  display: flex; flex-direction: column; overflow: hidden;
10224
10225
  transition: height 0.45s cubic-bezier(0.32, 0.72, 0, 1), max-height 0.45s cubic-bezier(0.32, 0.72, 0, 1);
10225
10226
  }
10226
10227
  .ps-tryon-modal-tall.ps-tryon-modal-wide {
10227
- height: min(88dvh, calc(55vw / 1.3));
10228
- max-height: min(92dvh, calc(55vw / 1.3));
10228
+ height: min(92dvh, calc(55vw / 1.2));
10229
+ max-height: min(95dvh, calc(55vw / 1.2));
10229
10230
  }
10230
10231
  .ps-tryon-modal:has(.ps-tryon-drawer-open) { overflow: hidden; }
10231
10232
  @keyframes ps-slide-up { from { transform: translateY(12px) scale(0.97); opacity: 0; filter: blur(4px); } to { transform: none; opacity: 1; filter: none; } }
@@ -23084,7 +23085,7 @@ function PrimeStyleTryonInner({
23084
23085
  category: measurementType,
23085
23086
  ...Object.keys(faceMm).length > 0 && { faceMeasurementsMm: faceMm, irisConfidence: 1 }
23086
23087
  };
23087
- const minVisible = new Promise((r2) => setTimeout(r2, 3200));
23088
+ const minVisible = new Promise((r2) => setTimeout(r2, 4500));
23088
23089
  try {
23089
23090
  const resp = await fetch(`${baseUrl}/api/v1/sizing/face-recommend`, {
23090
23091
  method: "POST",
@@ -23301,7 +23302,7 @@ function PrimeStyleTryonInner({
23301
23302
  const measurementType = detectMeasurementType(productTitle);
23302
23303
  if (measurementType === "face" || measurementType === "head") {
23303
23304
  setFaceLandmarks(null);
23304
- const minVisible = new Promise((r2) => setTimeout(r2, 3200));
23305
+ const minVisible = new Promise((r2) => setTimeout(r2, 4500));
23305
23306
  try {
23306
23307
  const faceResult = await detectFaceMeasurements(objUrl);
23307
23308
  if (faceResult) setFaceLandmarks(faceResult.landmarks);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primestyleai/tryon",
3
- "version": "5.8.49",
3
+ "version": "5.8.51",
4
4
  "description": "PrimeStyle Virtual Try-On SDK — React component & Web Component",
5
5
  "type": "module",
6
6
  "main": "dist/primestyle-tryon.js",