@primestyleai/tryon 5.9.0 → 5.10.0

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/types.d.ts CHANGED
@@ -198,6 +198,8 @@ export interface MatchDetail {
198
198
  export interface SectionRecommendation {
199
199
  recommendedSize: string;
200
200
  matchDetails: MatchDetail[];
201
+ /** True when the user's measurements fit inside this section's chart. */
202
+ found?: boolean;
201
203
  }
202
204
  /** Full sizing recommendation result */
203
205
  export interface SizingResult {
@@ -213,6 +215,11 @@ export interface SizingResult {
213
215
  sections?: Record<string, SectionRecommendation>;
214
216
  /** Unit the matchDetails values (and chart columns used for matching) are in. */
215
217
  unit?: "cm" | "in";
218
+ /** True when the backend found a size whose measurements actually fit the
219
+ * user. False when the user's body is outside every row in the chart —
220
+ * the SDK renders a "no size" message and disables Try-On. Optional for
221
+ * backwards compatibility with older backends (treat `undefined` as true). */
222
+ found?: boolean;
216
223
  }
217
224
  /** Fit info for a body area — tells Gemini how the garment should render at this region */
218
225
  export interface FitAreaInfo {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primestyleai/tryon",
3
- "version": "5.9.0",
3
+ "version": "5.10.0",
4
4
  "description": "PrimeStyle Virtual Try-On SDK — React component & Web Component",
5
5
  "type": "module",
6
6
  "main": "dist/primestyle-tryon.js",