@primestyleai/tryon 5.3.1 → 5.3.2

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.
@@ -5655,6 +5655,8 @@ function BodyProfileView({
5655
5655
  setHeightUnit,
5656
5656
  weightUnit,
5657
5657
  setWeightUnit,
5658
+ sizingUnit,
5659
+ setSizingUnit,
5658
5660
  onComplete,
5659
5661
  onSnapSubmit,
5660
5662
  onBack,
@@ -5981,10 +5983,16 @@ function BodyProfileView({
5981
5983
  /* @__PURE__ */ jsx("button", { className: `ps-bp-system-btn${!isImperialMode ? " ps-bp-system-active" : ""}`, onClick: () => {
5982
5984
  setHUnit("cm");
5983
5985
  setWUnit("kg");
5986
+ setHeightUnit("cm");
5987
+ setWeightUnit("kg");
5988
+ setSizingUnit?.("cm");
5984
5989
  }, type: "button", children: t("Metric") }),
5985
5990
  /* @__PURE__ */ jsx("button", { className: `ps-bp-system-btn${isImperialMode ? " ps-bp-system-active" : ""}`, onClick: () => {
5986
5991
  setHUnit("ft");
5987
5992
  setWUnit("lbs");
5993
+ setHeightUnit("ft");
5994
+ setWeightUnit("lbs");
5995
+ setSizingUnit?.("in");
5988
5996
  }, type: "button", children: t("Imperial") })
5989
5997
  ] }),
5990
5998
  /* @__PURE__ */ jsxs("div", { className: "ps-bp-inline-fields", children: [
@@ -7194,6 +7202,8 @@ function PrimeStyleTryonInner({
7194
7202
  setHeightUnit,
7195
7203
  weightUnit,
7196
7204
  setWeightUnit,
7205
+ sizingUnit,
7206
+ setSizingUnit,
7197
7207
  onComplete: (data) => {
7198
7208
  formRef.current.gender = data.gender;
7199
7209
  if (data.bandSize) formRef.current.bandSize = data.bandSize;
@@ -10,6 +10,8 @@ interface BodyProfileViewProps {
10
10
  setHeightUnit: (u: string) => void;
11
11
  weightUnit: string;
12
12
  setWeightUnit: (u: string) => void;
13
+ sizingUnit?: string;
14
+ setSizingUnit?: (u: string) => void;
13
15
  onComplete: (data: {
14
16
  height: number;
15
17
  weight: number;
@@ -37,5 +39,5 @@ interface BodyProfileViewProps {
37
39
  onBack: () => void;
38
40
  t: TranslateFn;
39
41
  }
40
- export declare function BodyProfileView({ productImage, productTitle, isWomen, formRef, sizingCountry, heightUnit, setHeightUnit, weightUnit, setWeightUnit, onComplete, onSnapSubmit, onBack, t, }: BodyProfileViewProps): import("react/jsx-runtime").JSX.Element;
42
+ export declare function BodyProfileView({ productImage, productTitle, isWomen, formRef, sizingCountry, heightUnit, setHeightUnit, weightUnit, setWeightUnit, sizingUnit, setSizingUnit, onComplete, onSnapSubmit, onBack, t, }: BodyProfileViewProps): import("react/jsx-runtime").JSX.Element;
41
43
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primestyleai/tryon",
3
- "version": "5.3.1",
3
+ "version": "5.3.2",
4
4
  "description": "PrimeStyle Virtual Try-On SDK — React component & Web Component",
5
5
  "type": "module",
6
6
  "main": "dist/primestyle-tryon.js",