@primestyleai/tryon 5.10.2 → 5.10.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.
@@ -7627,7 +7627,7 @@ function MscTryOnProgress({ t }) {
7627
7627
  if (ringRef.current) ringRef.current.style.strokeDashoffset = String(MSC_RING_CIRC * (1 - pct / 100));
7628
7628
  if (etaRef.current) {
7629
7629
  const remaining = Math.max(0, MSC_TRYON_TARGET_SECONDS - Math.floor(elapsed));
7630
- etaRef.current.textContent = elapsed >= MSC_TRYON_TARGET_SECONDS ? t("Finalizing...") : `~${remaining}s`;
7630
+ etaRef.current.textContent = elapsed >= MSC_TRYON_TARGET_SECONDS ? "•••" : `~${remaining}s`;
7631
7631
  }
7632
7632
  }, 200);
7633
7633
  return () => clearInterval(id);
@@ -7950,7 +7950,7 @@ function TryOnProgress({ t, isActive }) {
7950
7950
  }
7951
7951
  if (etaRef.current) {
7952
7952
  const remaining = Math.max(0, TRYON_TARGET_SECONDS - Math.floor(elapsed));
7953
- etaRef.current.textContent = elapsed >= TRYON_TARGET_SECONDS ? t("Finalizing...") : `~${remaining}s`;
7953
+ etaRef.current.textContent = elapsed >= TRYON_TARGET_SECONDS ? "•••" : `~${remaining}s`;
7954
7954
  }
7955
7955
  }, 200);
7956
7956
  return () => clearInterval(id);
@@ -8674,11 +8674,23 @@ function SectionDetailView({
8674
8674
  }
8675
8675
  )
8676
8676
  ] }),
8677
- sectionFound === false && /* @__PURE__ */ jsxs("div", { className: "ps-msd-card", style: { textAlign: "center" }, children: [
8677
+ sectionFound === false && /* @__PURE__ */ jsx("div", { style: {
8678
+ flex: 1,
8679
+ display: "flex",
8680
+ alignItems: "center",
8681
+ justifyContent: "center",
8682
+ minHeight: 240,
8683
+ padding: "24px 16px"
8684
+ }, children: /* @__PURE__ */ jsxs("div", { className: "ps-msd-card", style: {
8685
+ textAlign: "center",
8686
+ width: "100%",
8687
+ maxWidth: 420,
8688
+ padding: "28px 24px"
8689
+ }, children: [
8678
8690
  /* @__PURE__ */ jsx("span", { className: "ps-msd-card-eyebrow", children: t("NO MATCHING SIZE") }),
8679
- /* @__PURE__ */ jsx("p", { style: { fontSize: "15px", fontWeight: 600, color: "var(--ps-text-primary)", margin: "10px 0 4px" }, children: t("We couldn't find a size that fits for this product.") }),
8680
- /* @__PURE__ */ jsx("p", { className: "ps-msd-card-note", children: t("Your measurements are outside this product's size range — the chart doesn't include a close match. You can still try it on visually below.") })
8681
- ] }),
8691
+ /* @__PURE__ */ jsx("p", { style: { fontSize: "15px", fontWeight: 600, color: "var(--ps-text-primary)", margin: "10px 0 6px", lineHeight: 1.4 }, children: t("We couldn't find a size that fits for this product.") }),
8692
+ /* @__PURE__ */ jsx("p", { className: "ps-msd-card-note", style: { margin: 0, lineHeight: 1.5 }, children: t("Your measurements are outside this product's size range. You can still try it on visually below.") })
8693
+ ] }) }),
8682
8694
  sectionFound !== false && /* @__PURE__ */ jsxs("div", { className: "ps-msd-card", children: [
8683
8695
  /* @__PURE__ */ jsx("span", { className: "ps-msd-card-eyebrow", children: displaySize === backendSize ? t("RECOMMENDED SIZE") : t("TRYING SIZE") }),
8684
8696
  /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: "10px", marginTop: "6px", marginBottom: "4px" }, children: [
@@ -8817,18 +8829,18 @@ function SectionDetailView({
8817
8829
  ] }) });
8818
8830
  }
8819
8831
  return /* @__PURE__ */ jsxs("div", { className: "ps-tryon-sec-detail", style: { padding: "1.5vw", display: "flex", flexDirection: "column", height: "100%", background: "#F8F9FA" }, children: [
8820
- /* @__PURE__ */ jsx("div", { style: { flex: 1, minHeight: 0, overflowY: "auto", scrollbarWidth: "thin", scrollbarColor: "rgba(0,0,0,0.04) transparent" }, children: sectionFound === false ? /* @__PURE__ */ jsxs("div", { style: {
8832
+ /* @__PURE__ */ jsx("div", { style: { flex: 1, minHeight: 0, overflowY: "auto", scrollbarWidth: "thin", scrollbarColor: "rgba(0,0,0,0.04) transparent", display: sectionFound === false ? "flex" : "block", alignItems: sectionFound === false ? "center" : void 0, justifyContent: sectionFound === false ? "center" : void 0 }, children: sectionFound === false ? /* @__PURE__ */ jsxs("div", { style: {
8821
8833
  background: "white",
8822
8834
  borderRadius: "0.7vw",
8823
8835
  border: "1px solid rgba(0,0,0,0.06)",
8824
- padding: "1.4vw 1.6vw",
8836
+ padding: "2vw 2.2vw",
8825
8837
  textAlign: "center",
8826
- marginTop: "0.4vw",
8827
- marginBottom: "1vw"
8838
+ width: "100%",
8839
+ maxWidth: "28vw"
8828
8840
  }, children: [
8829
8841
  /* @__PURE__ */ jsx("span", { style: { fontSize: "0.7vw", fontWeight: 700, color: "var(--ps-accent)", textTransform: "uppercase", letterSpacing: "0.12em" }, children: t("No matching size") }),
8830
- /* @__PURE__ */ jsx("p", { style: { fontSize: "1vw", fontWeight: 600, color: "var(--ps-text-primary)", margin: "0.6vw 0 0.4vw" }, children: t("We couldn't find a size that fits for this product.") }),
8831
- /* @__PURE__ */ jsx("p", { style: { fontSize: "0.7vw", color: "var(--ps-text-secondary)", lineHeight: 1.55, margin: 0, maxWidth: "26vw", marginLeft: "auto", marginRight: "auto" }, children: t("Your measurements are outside this product's size range. You can still try it on visually below.") })
8842
+ /* @__PURE__ */ jsx("p", { style: { fontSize: "1vw", fontWeight: 600, color: "var(--ps-text-primary)", margin: "0.8vw 0 0.5vw", lineHeight: 1.4 }, children: t("We couldn't find a size that fits for this product.") }),
8843
+ /* @__PURE__ */ jsx("p", { style: { fontSize: "0.72vw", color: "var(--ps-text-secondary)", lineHeight: 1.55, margin: 0 }, children: t("Your measurements are outside this product's size range. You can still try it on visually below.") })
8832
8844
  ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
8833
8845
  /* @__PURE__ */ jsx("span", { style: { fontSize: "0.75vw", fontWeight: 700, color: "var(--ps-accent)", textTransform: "uppercase", letterSpacing: "0.12em" }, children: isRecommended ? t("Recommended Size") : altSizeLabel ?? t("Your Selection") }),
8834
8846
  /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: "0.5vw", marginTop: "0.35vw", marginBottom: "0.4vw" }, children: [
@@ -13793,7 +13805,7 @@ function PrimeStyleTryonInner({
13793
13805
  }
13794
13806
  if (progressEtaRef.current) {
13795
13807
  const remaining = Math.max(0, TARGET_SECONDS - Math.floor(elapsed));
13796
- progressEtaRef.current.textContent = elapsed >= TARGET_SECONDS ? t("Finalizing...") : `~${remaining}s`;
13808
+ progressEtaRef.current.textContent = elapsed >= TARGET_SECONDS ? "•••" : `~${remaining}s`;
13797
13809
  }
13798
13810
  if (progressStatusRef.current) {
13799
13811
  const status = [...statuses].reverse().find((s) => val >= s.at);
@@ -17052,7 +17052,7 @@ function MscTryOnProgress({ t: t2 }) {
17052
17052
  if (ringRef.current) ringRef.current.style.strokeDashoffset = String(MSC_RING_CIRC * (1 - pct / 100));
17053
17053
  if (etaRef.current) {
17054
17054
  const remaining = Math.max(0, MSC_TRYON_TARGET_SECONDS - Math.floor(elapsed));
17055
- etaRef.current.textContent = elapsed >= MSC_TRYON_TARGET_SECONDS ? t2("Finalizing...") : `~${remaining}s`;
17055
+ etaRef.current.textContent = elapsed >= MSC_TRYON_TARGET_SECONDS ? "•••" : `~${remaining}s`;
17056
17056
  }
17057
17057
  }, 200);
17058
17058
  return () => clearInterval(id2);
@@ -17375,7 +17375,7 @@ function TryOnProgress({ t: t2, isActive }) {
17375
17375
  }
17376
17376
  if (etaRef.current) {
17377
17377
  const remaining = Math.max(0, TRYON_TARGET_SECONDS - Math.floor(elapsed));
17378
- etaRef.current.textContent = elapsed >= TRYON_TARGET_SECONDS ? t2("Finalizing...") : `~${remaining}s`;
17378
+ etaRef.current.textContent = elapsed >= TRYON_TARGET_SECONDS ? "•••" : `~${remaining}s`;
17379
17379
  }
17380
17380
  }, 200);
17381
17381
  return () => clearInterval(id2);
@@ -18099,11 +18099,23 @@ function SectionDetailView({
18099
18099
  }
18100
18100
  )
18101
18101
  ] }),
18102
- sectionFound === false && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "ps-msd-card", style: { textAlign: "center" }, children: [
18102
+ sectionFound === false && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: {
18103
+ flex: 1,
18104
+ display: "flex",
18105
+ alignItems: "center",
18106
+ justifyContent: "center",
18107
+ minHeight: 240,
18108
+ padding: "24px 16px"
18109
+ }, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "ps-msd-card", style: {
18110
+ textAlign: "center",
18111
+ width: "100%",
18112
+ maxWidth: 420,
18113
+ padding: "28px 24px"
18114
+ }, children: [
18103
18115
  /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "ps-msd-card-eyebrow", children: t2("NO MATCHING SIZE") }),
18104
- /* @__PURE__ */ jsxRuntimeExports.jsx("p", { style: { fontSize: "15px", fontWeight: 600, color: "var(--ps-text-primary)", margin: "10px 0 4px" }, children: t2("We couldn't find a size that fits for this product.") }),
18105
- /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "ps-msd-card-note", children: t2("Your measurements are outside this product's size range — the chart doesn't include a close match. You can still try it on visually below.") })
18106
- ] }),
18116
+ /* @__PURE__ */ jsxRuntimeExports.jsx("p", { style: { fontSize: "15px", fontWeight: 600, color: "var(--ps-text-primary)", margin: "10px 0 6px", lineHeight: 1.4 }, children: t2("We couldn't find a size that fits for this product.") }),
18117
+ /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "ps-msd-card-note", style: { margin: 0, lineHeight: 1.5 }, children: t2("Your measurements are outside this product's size range. You can still try it on visually below.") })
18118
+ ] }) }),
18107
18119
  sectionFound !== false && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "ps-msd-card", children: [
18108
18120
  /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "ps-msd-card-eyebrow", children: displaySize === backendSize ? t2("RECOMMENDED SIZE") : t2("TRYING SIZE") }),
18109
18121
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: { display: "flex", alignItems: "center", gap: "10px", marginTop: "6px", marginBottom: "4px" }, children: [
@@ -18242,18 +18254,18 @@ function SectionDetailView({
18242
18254
  ] }) });
18243
18255
  }
18244
18256
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "ps-tryon-sec-detail", style: { padding: "1.5vw", display: "flex", flexDirection: "column", height: "100%", background: "#F8F9FA" }, children: [
18245
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { flex: 1, minHeight: 0, overflowY: "auto", scrollbarWidth: "thin", scrollbarColor: "rgba(0,0,0,0.04) transparent" }, children: sectionFound === false ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: {
18257
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { flex: 1, minHeight: 0, overflowY: "auto", scrollbarWidth: "thin", scrollbarColor: "rgba(0,0,0,0.04) transparent", display: sectionFound === false ? "flex" : "block", alignItems: sectionFound === false ? "center" : void 0, justifyContent: sectionFound === false ? "center" : void 0 }, children: sectionFound === false ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: {
18246
18258
  background: "white",
18247
18259
  borderRadius: "0.7vw",
18248
18260
  border: "1px solid rgba(0,0,0,0.06)",
18249
- padding: "1.4vw 1.6vw",
18261
+ padding: "2vw 2.2vw",
18250
18262
  textAlign: "center",
18251
- marginTop: "0.4vw",
18252
- marginBottom: "1vw"
18263
+ width: "100%",
18264
+ maxWidth: "28vw"
18253
18265
  }, children: [
18254
18266
  /* @__PURE__ */ jsxRuntimeExports.jsx("span", { style: { fontSize: "0.7vw", fontWeight: 700, color: "var(--ps-accent)", textTransform: "uppercase", letterSpacing: "0.12em" }, children: t2("No matching size") }),
18255
- /* @__PURE__ */ jsxRuntimeExports.jsx("p", { style: { fontSize: "1vw", fontWeight: 600, color: "var(--ps-text-primary)", margin: "0.6vw 0 0.4vw" }, children: t2("We couldn't find a size that fits for this product.") }),
18256
- /* @__PURE__ */ jsxRuntimeExports.jsx("p", { style: { fontSize: "0.7vw", color: "var(--ps-text-secondary)", lineHeight: 1.55, margin: 0, maxWidth: "26vw", marginLeft: "auto", marginRight: "auto" }, children: t2("Your measurements are outside this product's size range. You can still try it on visually below.") })
18267
+ /* @__PURE__ */ jsxRuntimeExports.jsx("p", { style: { fontSize: "1vw", fontWeight: 600, color: "var(--ps-text-primary)", margin: "0.8vw 0 0.5vw", lineHeight: 1.4 }, children: t2("We couldn't find a size that fits for this product.") }),
18268
+ /* @__PURE__ */ jsxRuntimeExports.jsx("p", { style: { fontSize: "0.72vw", color: "var(--ps-text-secondary)", lineHeight: 1.55, margin: 0 }, children: t2("Your measurements are outside this product's size range. You can still try it on visually below.") })
18257
18269
  ] }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
18258
18270
  /* @__PURE__ */ jsxRuntimeExports.jsx("span", { style: { fontSize: "0.75vw", fontWeight: 700, color: "var(--ps-accent)", textTransform: "uppercase", letterSpacing: "0.12em" }, children: isRecommended ? t2("Recommended Size") : altSizeLabel ?? t2("Your Selection") }),
18259
18271
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: { display: "flex", alignItems: "center", gap: "0.5vw", marginTop: "0.35vw", marginBottom: "0.4vw" }, children: [
@@ -23218,7 +23230,7 @@ function PrimeStyleTryonInner({
23218
23230
  }
23219
23231
  if (progressEtaRef.current) {
23220
23232
  const remaining = Math.max(0, TARGET_SECONDS - Math.floor(elapsed));
23221
- progressEtaRef.current.textContent = elapsed >= TARGET_SECONDS ? t2("Finalizing...") : `~${remaining}s`;
23233
+ progressEtaRef.current.textContent = elapsed >= TARGET_SECONDS ? "•••" : `~${remaining}s`;
23222
23234
  }
23223
23235
  if (progressStatusRef.current) {
23224
23236
  const status = [...statuses].reverse().find((s) => val >= s.at);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primestyleai/tryon",
3
- "version": "5.10.2",
3
+ "version": "5.10.4",
4
4
  "description": "PrimeStyle Virtual Try-On SDK — React component & Web Component",
5
5
  "type": "module",
6
6
  "main": "dist/primestyle-tryon.js",