@primestyleai/tryon 5.0.3 → 5.0.4
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 +39 -12
- package/package.json +1 -1
package/dist/react/index.js
CHANGED
|
@@ -4485,7 +4485,12 @@ function SectionDetailView({
|
|
|
4485
4485
|
s
|
|
4486
4486
|
);
|
|
4487
4487
|
}) })
|
|
4488
|
-
] })
|
|
4488
|
+
] }),
|
|
4489
|
+
/* @__PURE__ */ jsx("div", { style: { marginTop: "0.5vw" }, children: /* @__PURE__ */ jsxs("button", { className: "ps-bp-back-btn", onClick: onBack, type: "button", children: [
|
|
4490
|
+
/* @__PURE__ */ jsx("span", { className: "ps-bp-back-arrow", children: "←" }),
|
|
4491
|
+
" ",
|
|
4492
|
+
t("Back to sections")
|
|
4493
|
+
] }) })
|
|
4489
4494
|
] });
|
|
4490
4495
|
}
|
|
4491
4496
|
function SizeResultView({
|
|
@@ -4760,14 +4765,27 @@ function SizeResultView({
|
|
|
4760
4765
|
" ",
|
|
4761
4766
|
t("Back")
|
|
4762
4767
|
] }),
|
|
4763
|
-
/* @__PURE__ */ jsxs(
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4768
|
+
/* @__PURE__ */ jsxs(
|
|
4769
|
+
"button",
|
|
4770
|
+
{
|
|
4771
|
+
className: "ps-tryon-v2-cta",
|
|
4772
|
+
style: { marginTop: 0 },
|
|
4773
|
+
disabled: tryOnProcessing,
|
|
4774
|
+
onClick: () => {
|
|
4775
|
+
if (previewUrl) {
|
|
4776
|
+
handleTryOnSubmit();
|
|
4777
|
+
} else {
|
|
4778
|
+
setGuideFile(null);
|
|
4779
|
+
setShowPhotoGuide(true);
|
|
4780
|
+
}
|
|
4781
|
+
},
|
|
4782
|
+
children: [
|
|
4783
|
+
/* @__PURE__ */ jsx(CameraIcon, { size: 14 }),
|
|
4784
|
+
" ",
|
|
4785
|
+
tryOnProcessing ? t("Processing...") : t("Try It On")
|
|
4786
|
+
]
|
|
4787
|
+
}
|
|
4788
|
+
)
|
|
4771
4789
|
] })
|
|
4772
4790
|
] }, "panel-results")
|
|
4773
4791
|
] })
|
|
@@ -4885,14 +4903,23 @@ function SizeResultView({
|
|
|
4885
4903
|
" ",
|
|
4886
4904
|
t("Back")
|
|
4887
4905
|
] }),
|
|
4888
|
-
!resultImageUrl && /* @__PURE__ */ jsxs("button", { className: "ps-bp-next-btn", onClick: () => {
|
|
4889
|
-
|
|
4890
|
-
|
|
4906
|
+
!resultImageUrl && !tryOnProcessing && /* @__PURE__ */ jsxs("button", { className: "ps-bp-next-btn", onClick: () => {
|
|
4907
|
+
if (previewUrl) {
|
|
4908
|
+
handleTryOnSubmit();
|
|
4909
|
+
} else {
|
|
4910
|
+
setGuideFile(null);
|
|
4911
|
+
setShowPhotoGuide(true);
|
|
4912
|
+
}
|
|
4891
4913
|
}, children: [
|
|
4892
4914
|
/* @__PURE__ */ jsx(CameraIcon, { size: 14 }),
|
|
4893
4915
|
" ",
|
|
4894
4916
|
t("Try It On")
|
|
4895
4917
|
] }),
|
|
4918
|
+
tryOnProcessing && !resultImageUrl && /* @__PURE__ */ jsxs("button", { className: "ps-bp-next-btn", disabled: true, children: [
|
|
4919
|
+
/* @__PURE__ */ jsx("div", { className: "ps-tryon-size-loading-spinner", style: { width: "0.9vw", height: "0.9vw", borderWidth: "1.5px", display: "inline-block" } }),
|
|
4920
|
+
" ",
|
|
4921
|
+
t("Processing...")
|
|
4922
|
+
] }),
|
|
4896
4923
|
resultImageUrl && /* @__PURE__ */ jsx(
|
|
4897
4924
|
"button",
|
|
4898
4925
|
{
|