@primestyleai/tryon 5.8.9 → 5.8.11
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/index.js
CHANGED
|
@@ -7291,8 +7291,8 @@ function SizeResultView({
|
|
|
7291
7291
|
onClose,
|
|
7292
7292
|
t
|
|
7293
7293
|
}) {
|
|
7294
|
-
const
|
|
7295
|
-
const unitLbl =
|
|
7294
|
+
const resultUnit = sizingResult?.unit || sizingUnit;
|
|
7295
|
+
const unitLbl = resultUnit === "cm" ? t("cm") : t("in");
|
|
7296
7296
|
const [editVals, setEditVals] = useState({});
|
|
7297
7297
|
const pRange = pRangeFn;
|
|
7298
7298
|
const cellVal = useCallback((row, colIdx, header) => {
|
|
@@ -9479,7 +9479,7 @@ function ImageOptionCard({
|
|
|
9479
9479
|
);
|
|
9480
9480
|
}
|
|
9481
9481
|
const MALE_STEPS = ["basics", "chest", "midsection", "seat"];
|
|
9482
|
-
const FEMALE_STEPS = ["basics", "midsection", "seat", "hips"];
|
|
9482
|
+
const FEMALE_STEPS = ["basics", "bra", "midsection", "seat", "hips"];
|
|
9483
9483
|
const BAND_SIZES = {
|
|
9484
9484
|
US: ["28", "30", "32", "34", "36", "38", "40", "42", "44", "46", "48", "50", "52", "54", "56"],
|
|
9485
9485
|
UK: ["28", "30", "32", "34", "36", "38", "40", "42", "44", "46", "48", "50", "52", "54", "56"],
|
|
@@ -16715,8 +16715,8 @@ function SizeResultView({
|
|
|
16715
16715
|
onClose,
|
|
16716
16716
|
t: t2
|
|
16717
16717
|
}) {
|
|
16718
|
-
const
|
|
16719
|
-
const unitLbl =
|
|
16718
|
+
const resultUnit = sizingResult?.unit || sizingUnit;
|
|
16719
|
+
const unitLbl = resultUnit === "cm" ? t2("cm") : t2("in");
|
|
16720
16720
|
const [editVals, setEditVals] = reactExports.useState({});
|
|
16721
16721
|
const pRange = pRangeFn;
|
|
16722
16722
|
const cellVal = reactExports.useCallback((row, colIdx, header) => {
|
|
@@ -18903,7 +18903,7 @@ function ImageOptionCard({
|
|
|
18903
18903
|
);
|
|
18904
18904
|
}
|
|
18905
18905
|
const MALE_STEPS = ["basics", "chest", "midsection", "seat"];
|
|
18906
|
-
const FEMALE_STEPS = ["basics", "midsection", "seat", "hips"];
|
|
18906
|
+
const FEMALE_STEPS = ["basics", "bra", "midsection", "seat", "hips"];
|
|
18907
18907
|
const BAND_SIZES = {
|
|
18908
18908
|
US: ["28", "30", "32", "34", "36", "38", "40", "42", "44", "46", "48", "50", "52", "54", "56"],
|
|
18909
18909
|
UK: ["28", "30", "32", "34", "36", "38", "40", "42", "44", "46", "48", "50", "52", "54", "56"],
|
package/dist/types.d.ts
CHANGED
|
@@ -207,6 +207,8 @@ export interface SizingResult {
|
|
|
207
207
|
matchDetails?: MatchDetail[];
|
|
208
208
|
method?: "deterministic" | "ai";
|
|
209
209
|
sections?: Record<string, SectionRecommendation>;
|
|
210
|
+
/** Unit the matchDetails values (and chart columns used for matching) are in. */
|
|
211
|
+
unit?: "cm" | "in";
|
|
210
212
|
}
|
|
211
213
|
/** Fit info for a body area — tells Gemini how the garment should render at this region */
|
|
212
214
|
export interface FitAreaInfo {
|