@primestyleai/tryon 5.8.48 → 5.8.50

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.
@@ -12905,6 +12905,21 @@ function AccessorySizeView({
12905
12905
  /* @__PURE__ */ jsx("span", { style: { color: "#3267c3", fontSize: "0.65vw", fontWeight: 600 }, children: t("Quick Tip") })
12906
12906
  ] }),
12907
12907
  /* @__PURE__ */ jsx("div", { style: { fontSize: "0.58vw", color: "var(--ps-text-primary)", lineHeight: 1.6 }, children: isCloseUp ? t("A clear, well-lit face photo gives the most accurate fit for eyewear and headwear.") : t("The simpler your photo is, the more accurate your virtual try-on results will be.") })
12908
+ ] }),
12909
+ /* @__PURE__ */ jsxs("div", { style: {
12910
+ background: "rgba(33, 84, 239, 0.04)",
12911
+ border: "1px solid rgba(33, 84, 239, 0.16)",
12912
+ borderRadius: "0.5vw",
12913
+ padding: "0.6vw 0.8vw",
12914
+ display: "flex",
12915
+ flexDirection: "column",
12916
+ gap: "0.3vw"
12917
+ }, children: [
12918
+ /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: "0.35vw" }, children: [
12919
+ /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", width: "0.75vw", height: "0.75vw", fill: "none", stroke: "#2154ef", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ jsx("path", { d: "M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z" }) }),
12920
+ /* @__PURE__ */ jsx("span", { style: { color: "#2154ef", fontSize: "0.62vw", fontWeight: 700, letterSpacing: "0.12em", textTransform: "uppercase" }, children: t("Legal Notice") })
12921
+ ] }),
12922
+ /* @__PURE__ */ jsx("div", { style: { fontSize: "0.58vw", color: "var(--ps-text-secondary)", lineHeight: 1.55 }, children: t("Your image will be used to generate a virtual try-on preview showing how selected items may look and fit. Images are processed securely and are not stored after generation.") })
12908
12923
  ] })
12909
12924
  ] })
12910
12925
  ] }),
@@ -13645,7 +13660,7 @@ function PrimeStyleTryonInner({
13645
13660
  category: measurementType,
13646
13661
  ...Object.keys(faceMm).length > 0 && { faceMeasurementsMm: faceMm, irisConfidence: 1 }
13647
13662
  };
13648
- const minVisible = new Promise((r) => setTimeout(r, 3200));
13663
+ const minVisible = new Promise((r) => setTimeout(r, 4500));
13649
13664
  try {
13650
13665
  const resp = await fetch(`${baseUrl}/api/v1/sizing/face-recommend`, {
13651
13666
  method: "POST",
@@ -13862,7 +13877,7 @@ function PrimeStyleTryonInner({
13862
13877
  const measurementType = detectMeasurementType(productTitle);
13863
13878
  if (measurementType === "face" || measurementType === "head") {
13864
13879
  setFaceLandmarks(null);
13865
- const minVisible = new Promise((r) => setTimeout(r, 3200));
13880
+ const minVisible = new Promise((r) => setTimeout(r, 4500));
13866
13881
  try {
13867
13882
  const faceResult = await detectFaceMeasurements(objUrl);
13868
13883
  if (faceResult) setFaceLandmarks(faceResult.landmarks);
@@ -22329,6 +22329,21 @@ function AccessorySizeView({
22329
22329
  /* @__PURE__ */ jsxRuntimeExports.jsx("span", { style: { color: "#3267c3", fontSize: "0.65vw", fontWeight: 600 }, children: t2("Quick Tip") })
22330
22330
  ] }),
22331
22331
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { fontSize: "0.58vw", color: "var(--ps-text-primary)", lineHeight: 1.6 }, children: isCloseUp ? t2("A clear, well-lit face photo gives the most accurate fit for eyewear and headwear.") : t2("The simpler your photo is, the more accurate your virtual try-on results will be.") })
22332
+ ] }),
22333
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: {
22334
+ background: "rgba(33, 84, 239, 0.04)",
22335
+ border: "1px solid rgba(33, 84, 239, 0.16)",
22336
+ borderRadius: "0.5vw",
22337
+ padding: "0.6vw 0.8vw",
22338
+ display: "flex",
22339
+ flexDirection: "column",
22340
+ gap: "0.3vw"
22341
+ }, children: [
22342
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: { display: "flex", alignItems: "center", gap: "0.35vw" }, children: [
22343
+ /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { viewBox: "0 0 24 24", width: "0.75vw", height: "0.75vw", fill: "none", stroke: "#2154ef", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z" }) }),
22344
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { style: { color: "#2154ef", fontSize: "0.62vw", fontWeight: 700, letterSpacing: "0.12em", textTransform: "uppercase" }, children: t2("Legal Notice") })
22345
+ ] }),
22346
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { fontSize: "0.58vw", color: "var(--ps-text-secondary)", lineHeight: 1.55 }, children: t2("Your image will be used to generate a virtual try-on preview showing how selected items may look and fit. Images are processed securely and are not stored after generation.") })
22332
22347
  ] })
22333
22348
  ] })
22334
22349
  ] }),
@@ -23069,7 +23084,7 @@ function PrimeStyleTryonInner({
23069
23084
  category: measurementType,
23070
23085
  ...Object.keys(faceMm).length > 0 && { faceMeasurementsMm: faceMm, irisConfidence: 1 }
23071
23086
  };
23072
- const minVisible = new Promise((r2) => setTimeout(r2, 3200));
23087
+ const minVisible = new Promise((r2) => setTimeout(r2, 4500));
23073
23088
  try {
23074
23089
  const resp = await fetch(`${baseUrl}/api/v1/sizing/face-recommend`, {
23075
23090
  method: "POST",
@@ -23286,7 +23301,7 @@ function PrimeStyleTryonInner({
23286
23301
  const measurementType = detectMeasurementType(productTitle);
23287
23302
  if (measurementType === "face" || measurementType === "head") {
23288
23303
  setFaceLandmarks(null);
23289
- const minVisible = new Promise((r2) => setTimeout(r2, 3200));
23304
+ const minVisible = new Promise((r2) => setTimeout(r2, 4500));
23290
23305
  try {
23291
23306
  const faceResult = await detectFaceMeasurements(objUrl);
23292
23307
  if (faceResult) setFaceLandmarks(faceResult.landmarks);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primestyleai/tryon",
3
- "version": "5.8.48",
3
+ "version": "5.8.50",
4
4
  "description": "PrimeStyle Virtual Try-On SDK — React component & Web Component",
5
5
  "type": "module",
6
6
  "main": "dist/primestyle-tryon.js",