@primestyleai/tryon 5.10.181 → 5.10.182
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 +1258 -1256
- package/dist/react/index.js.map +1 -1
- package/dist/storefront/primestyle-tryon.js +14 -7
- package/package.json +1 -1
|
@@ -28190,9 +28190,18 @@ function MySizingProfilesView({
|
|
|
28190
28190
|
t: t2,
|
|
28191
28191
|
onRegisterBackInterceptor
|
|
28192
28192
|
}) {
|
|
28193
|
-
const [creating, setCreating] = reactExports.useState(
|
|
28193
|
+
const [creating, setCreating] = reactExports.useState(() => !!initialCreateDraft);
|
|
28194
28194
|
const [viewingId, setViewingId] = reactExports.useState(null);
|
|
28195
|
+
const handledDraftKeyRef = reactExports.useRef(initialCreateDraft?.createdAt ?? null);
|
|
28195
28196
|
const viewingProfile = viewingId ? profiles.find((p2) => p2.id === viewingId) || null : null;
|
|
28197
|
+
reactExports.useEffect(() => {
|
|
28198
|
+
if (!initialCreateDraft) return;
|
|
28199
|
+
const draftKey = initialCreateDraft.createdAt ?? "draft";
|
|
28200
|
+
if (handledDraftKeyRef.current === draftKey && creating) return;
|
|
28201
|
+
handledDraftKeyRef.current = draftKey;
|
|
28202
|
+
setViewingId(null);
|
|
28203
|
+
setCreating(true);
|
|
28204
|
+
}, [creating, initialCreateDraft]);
|
|
28196
28205
|
reactExports.useEffect(() => {
|
|
28197
28206
|
if (viewingId && !profiles.find((p2) => p2.id === viewingId)) {
|
|
28198
28207
|
setViewingId(null);
|
|
@@ -30009,7 +30018,7 @@ function BodyProfileView({
|
|
|
30009
30018
|
] }) }),
|
|
30010
30019
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "ps-bpm-bottom", children: [
|
|
30011
30020
|
/* @__PURE__ */ jsxRuntimeExports.jsx("button", { type: "button", className: "ps-bpm-next-btn", onClick: handleNext, children: isShoeReferenceMode ? t2(!shoeBrandId ? "Choose brand" : !shoeSizeValue ? "Choose size" : "Analyze My Size") : t2("Analyze My Size") }),
|
|
30012
|
-
|
|
30021
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
30013
30022
|
MobileBottomTabs,
|
|
30014
30023
|
{
|
|
30015
30024
|
mode: "scan",
|
|
@@ -30076,9 +30085,7 @@ function BodyProfileView({
|
|
|
30076
30085
|
handlePhotoSelect,
|
|
30077
30086
|
handleRemovePhoto,
|
|
30078
30087
|
onAnalyze: handleNext,
|
|
30079
|
-
onSwitchToManual: () =>
|
|
30080
|
-
if (!simplePhotoOnly) setStep("basics");
|
|
30081
|
-
},
|
|
30088
|
+
onSwitchToManual: () => setStep("basics"),
|
|
30082
30089
|
error,
|
|
30083
30090
|
photoStepHeight,
|
|
30084
30091
|
onPhotoStepHeightChange: setPhotoStepHeight,
|
|
@@ -30093,7 +30100,7 @@ function BodyProfileView({
|
|
|
30093
30100
|
photoStatus,
|
|
30094
30101
|
photoRejection,
|
|
30095
30102
|
onClearRejection: () => setPhotoRejection(null),
|
|
30096
|
-
hideTabs:
|
|
30103
|
+
hideTabs: false,
|
|
30097
30104
|
t: t2
|
|
30098
30105
|
}
|
|
30099
30106
|
),
|
|
@@ -30685,7 +30692,7 @@ function BodyProfileView({
|
|
|
30685
30692
|
)
|
|
30686
30693
|
] })
|
|
30687
30694
|
] }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
30688
|
-
|
|
30695
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "ps-bp-photo-manual-switch", children: [
|
|
30689
30696
|
t2("Prefer not to upload a photo?"),
|
|
30690
30697
|
" ",
|
|
30691
30698
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|