@primestyleai/tryon 5.10.138 → 5.10.141

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.
@@ -17754,7 +17754,8 @@ const STYLES$1 = `
17754
17754
  }
17755
17755
  .ps-msd-size-pill {
17756
17756
  min-width: 48px;
17757
- padding: 10px 16px;
17757
+ max-width: 100%;
17758
+ padding: 10px 14px;
17758
17759
  background: transparent;
17759
17760
  border: 1.5px solid var(--ps-border-color);
17760
17761
  border-radius: 8px;
@@ -17762,6 +17763,14 @@ const STYLES$1 = `
17762
17763
  color: var(--ps-text-primary);
17763
17764
  cursor: pointer;
17764
17765
  transition: all 0.15s;
17766
+ /* Long compound labels like "MISSY 8 / Standard" need to wrap or
17767
+ shrink rather than overflow the row. */
17768
+ white-space: normal;
17769
+ line-height: 1.2;
17770
+ word-break: keep-all;
17771
+ }
17772
+ @media (max-width: 768px) {
17773
+ .ps-msd-size-pill { font-size: 12px; padding: 9px 11px; min-width: 0; }
17765
17774
  }
17766
17775
  .ps-msd-size-pill:hover {
17767
17776
  border-color: var(--ps-accent);
@@ -20293,7 +20302,8 @@ function SectionDetailView({
20293
20302
  const backendAvailableSizes = secAny?.availableSizes || [];
20294
20303
  const backendAvailableLengths = secAny?.availableLengths || [];
20295
20304
  const finalDisplayLength = selectedLength || backendLength;
20296
- const finalAllSizes = backendAvailableSizes.length > 0 ? backendAvailableSizes : chartSizes;
20305
+ const allSizesKeys = allSizes ? Object.keys(allSizes) : [];
20306
+ const finalAllSizes = allSizesKeys.length > 0 ? allSizesKeys : backendAvailableSizes.length > 0 ? backendAvailableSizes : chartSizes;
20297
20307
  const visibleSizes = (() => {
20298
20308
  if (finalAllSizes.length <= 3) return finalAllSizes;
20299
20309
  const idx = finalAllSizes.indexOf(recSize);
@@ -28500,8 +28510,8 @@ function PrimeStyleTryonInner({
28500
28510
  const profileWeight = p2.weight ?? p2.weightKg ?? 0;
28501
28511
  const hasIdentity = profileHeight > 0 && profileWeight > 0;
28502
28512
  if (!hasIdentity) return;
28503
- setConfirmProfile(p2);
28504
- }, [profiles, activeProfileId]);
28513
+ void runRecommendWithProfile(p2);
28514
+ }, [profiles, activeProfileId, runRecommendWithProfile]);
28505
28515
  const proceedFromConfirmProfile = reactExports.useCallback(() => {
28506
28516
  if (!confirmProfile) return;
28507
28517
  const p2 = confirmProfile;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primestyleai/tryon",
3
- "version": "5.10.138",
3
+ "version": "5.10.141",
4
4
  "description": "PrimeStyle Virtual Try-On SDK — React component & Web Component",
5
5
  "type": "module",
6
6
  "main": "dist/primestyle-tryon.js",