@primestyleai/tryon 5.10.192 → 5.10.194
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.
- package/dist/{index-D9sdGV4C.js → index-BiotPzcm.js} +81 -73
- package/dist/index-BiotPzcm.js.map +1 -0
- package/dist/primestyle-tryon.js +2 -2
- package/dist/react/index.js +5476 -5272
- package/dist/react/index.js.map +1 -1
- package/dist/react/recommendForProduct.d.ts +4 -4
- package/dist/react/styles.d.ts +1 -1
- package/dist/react/usePrimeStyleSize.d.ts +2 -2
- package/dist/react/views/SizeResultView.d.ts +2 -1
- package/dist/storefront/primestyle-tryon.js +356 -145
- package/package.json +1 -1
- package/dist/index-D9sdGV4C.js.map +0 -1
|
@@ -22,11 +22,11 @@ export interface RecommendForProductInput {
|
|
|
22
22
|
skipCache?: boolean;
|
|
23
23
|
}
|
|
24
24
|
export interface RecommendForProductResult {
|
|
25
|
-
/** The
|
|
25
|
+
/** The suggested size (e.g. "M", "42") */
|
|
26
26
|
recommendedSize: string;
|
|
27
27
|
/** "high" | "medium" | "low" */
|
|
28
28
|
confidence?: string;
|
|
29
|
-
/** For multi-section products: section name →
|
|
29
|
+
/** For multi-section products: section name → suggested size */
|
|
30
30
|
sections?: Record<string, string>;
|
|
31
31
|
/** The profile this recommendation was computed against */
|
|
32
32
|
profileId: string;
|
|
@@ -36,12 +36,12 @@ export interface RecommendForProductResult {
|
|
|
36
36
|
raw?: SizingResult;
|
|
37
37
|
/** True when the backend found a real fit. False when the user's body is
|
|
38
38
|
* outside every row in the size chart — hosts should suppress their
|
|
39
|
-
* "
|
|
39
|
+
* "Suggested: X" badge and surface a "size unavailable" message. */
|
|
40
40
|
found?: boolean;
|
|
41
41
|
}
|
|
42
42
|
/**
|
|
43
43
|
* Headless auto-sizing — given a product and an active profile, returns the
|
|
44
|
-
*
|
|
44
|
+
* suggested size WITHOUT opening the SDK modal. Caches results per
|
|
45
45
|
* (profile, product) so repeat visits are instant.
|
|
46
46
|
*
|
|
47
47
|
* Returns null if there is no active profile yet — the host page should
|