@primestyleai/tryon 5.9.1 → 5.10.1
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/react/components/ConfirmMeasurementsModal.d.ts +22 -0
- package/dist/react/index.js +248 -59
- package/dist/react/recommendForProduct.d.ts +4 -0
- package/dist/react/styles.d.ts +1 -1
- package/dist/react/utils/units.d.ts +6 -0
- package/dist/storefront/primestyle-tryon.js +248 -59
- package/dist/types.d.ts +7 -0
- package/package.json +1 -1
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 {
|