@primestyleai/tryon 5.10.133 → 5.10.134
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 +1835 -1830
- package/dist/react/index.js.map +1 -1
- package/dist/storefront/primestyle-tryon.js +17 -1
- package/package.json +1 -1
|
@@ -25481,6 +25481,16 @@ function BodyProfileView({
|
|
|
25481
25481
|
setPhotoFromProfile(false);
|
|
25482
25482
|
if (fileInputRef.current) fileInputRef.current.value = "";
|
|
25483
25483
|
}, [photoPreview, photoFromProfile]);
|
|
25484
|
+
const handleClearFromProfile = reactExports.useCallback(() => {
|
|
25485
|
+
handleRemovePhoto();
|
|
25486
|
+
setHeight("");
|
|
25487
|
+
setHeightFeet("");
|
|
25488
|
+
setHeightInches("");
|
|
25489
|
+
setWeight("");
|
|
25490
|
+
setAge("");
|
|
25491
|
+
setBandSize(null);
|
|
25492
|
+
setCupSize(null);
|
|
25493
|
+
}, [handleRemovePhoto]);
|
|
25484
25494
|
reactExports.useEffect(() => {
|
|
25485
25495
|
const profilePhoto = activeProfile?.photoBase64;
|
|
25486
25496
|
const profileId = activeProfile?.id ?? null;
|
|
@@ -25492,6 +25502,12 @@ function BodyProfileView({
|
|
|
25492
25502
|
setPhotoFromProfile(true);
|
|
25493
25503
|
setAgeConfirmed(true);
|
|
25494
25504
|
}, [activeProfile]);
|
|
25505
|
+
reactExports.useEffect(() => {
|
|
25506
|
+
const profileAgeNow = activeProfile?.age;
|
|
25507
|
+
if (profileAgeNow != null && profileAgeNow > 0 && !age) {
|
|
25508
|
+
setAge(String(Math.round(profileAgeNow)));
|
|
25509
|
+
}
|
|
25510
|
+
}, [activeProfile, age]);
|
|
25495
25511
|
const validateBasics = reactExports.useCallback(() => {
|
|
25496
25512
|
if (hUnit === "in") {
|
|
25497
25513
|
const ft = parseFloat(heightFeet);
|
|
@@ -26295,7 +26311,7 @@ function BodyProfileView({
|
|
|
26295
26311
|
photoFromProfile && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { display: "flex", justifyContent: "center", marginBottom: "0.7vw" }, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "ps-bp-loaded-pill", role: "status", children: [
|
|
26296
26312
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "ps-bp-loaded-pill-dot", "aria-hidden": "true", children: "✓" }),
|
|
26297
26313
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "ps-bp-loaded-pill-text", children: t2("Loaded from profile") }),
|
|
26298
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("button", { type: "button", className: "ps-bp-loaded-pill-clear", onClick:
|
|
26314
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("button", { type: "button", className: "ps-bp-loaded-pill-clear", onClick: handleClearFromProfile, children: t2("Clear") })
|
|
26299
26315
|
] }) }),
|
|
26300
26316
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "ps-bp-inline-fields", children: [
|
|
26301
26317
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "ps-bp-inline-row", children: [
|