@primestyleai/tryon 5.8.8 → 5.8.10
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,7 +7291,8 @@ function SizeResultView({
|
|
|
7291
7291
|
onClose,
|
|
7292
7292
|
t
|
|
7293
7293
|
}) {
|
|
7294
|
-
const
|
|
7294
|
+
const resultUnit = sizingResult?.unit || sizingUnit;
|
|
7295
|
+
const unitLbl = resultUnit === "cm" ? t("cm") : t("in");
|
|
7295
7296
|
const [editVals, setEditVals] = useState({});
|
|
7296
7297
|
const pRange = pRangeFn;
|
|
7297
7298
|
const cellVal = useCallback((row, colIdx, header) => {
|
|
@@ -16715,7 +16715,8 @@ function SizeResultView({
|
|
|
16715
16715
|
onClose,
|
|
16716
16716
|
t: t2
|
|
16717
16717
|
}) {
|
|
16718
|
-
const
|
|
16718
|
+
const resultUnit = sizingResult?.unit || sizingUnit;
|
|
16719
|
+
const unitLbl = resultUnit === "cm" ? t2("cm") : t2("in");
|
|
16719
16720
|
const [editVals, setEditVals] = reactExports.useState({});
|
|
16720
16721
|
const pRange = pRangeFn;
|
|
16721
16722
|
const cellVal = reactExports.useCallback((row, colIdx, header) => {
|
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 {
|