@primestyleai/tryon 5.10.182 → 5.10.184
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 +38 -36
- package/dist/react/index.js.map +1 -1
- package/dist/storefront/primestyle-tryon.js +12 -10
- package/package.json +1 -1
|
@@ -11575,6 +11575,10 @@ const FIT_KEYWORDS = [
|
|
|
11575
11575
|
fitType: "bag",
|
|
11576
11576
|
pattern: /\b(handbag|handbags|bag|bags|tote|totes|shoulder bag|hobo bag|crossbody|clutch|satchel|backpack|backpacks|weekender|duffle|duffel|wallet|wallets|purse|purses|briefcase|belt bag|fanny pack|luggage|suitcase|suitcases|small leather goods|leather goods)\b/i
|
|
11577
11577
|
},
|
|
11578
|
+
{
|
|
11579
|
+
fitType: "apparel",
|
|
11580
|
+
pattern: /\b(shirt|shirts|t-shirt|tee|top|tops|dress|dresses|jacket|jackets|coat|coats|pants|trousers|jeans|skirt|skirts|shorts|suit|suits|tuxedo|tuxedos|blazer|blazers|hoodie|hoodies|sweater|sweaters|cardigan|cardigans|apparel|clothing|garment|garments)\b/i
|
|
11581
|
+
},
|
|
11578
11582
|
{
|
|
11579
11583
|
fitType: "belt",
|
|
11580
11584
|
pattern: /\b(belt|belts|waist belt)\b/i
|
|
@@ -11602,10 +11606,6 @@ const FIT_KEYWORDS = [
|
|
|
11602
11606
|
{
|
|
11603
11607
|
fitType: "accessory",
|
|
11604
11608
|
pattern: /\b(accessory|accessories|jewelry|jewellery|brooch|brooches|scarf|scarves|glove|gloves)\b/i
|
|
11605
|
-
},
|
|
11606
|
-
{
|
|
11607
|
-
fitType: "apparel",
|
|
11608
|
-
pattern: /\b(shirt|shirts|t-shirt|tee|top|tops|dress|dresses|jacket|jackets|coat|coats|pants|trousers|jeans|skirt|skirts|shorts|suit|suits|tuxedo|tuxedos|blazer|blazers|hoodie|hoodies|sweater|sweaters|cardigan|cardigans|apparel|clothing|garment|garments)\b/i
|
|
11609
11609
|
}
|
|
11610
11610
|
];
|
|
11611
11611
|
function normalize(value) {
|
|
@@ -28252,7 +28252,7 @@ function MySizingProfilesView({
|
|
|
28252
28252
|
let latestId = null;
|
|
28253
28253
|
if (typeof window !== "undefined") {
|
|
28254
28254
|
try {
|
|
28255
|
-
const raw = localStorage.getItem("
|
|
28255
|
+
const raw = localStorage.getItem("profiles");
|
|
28256
28256
|
if (raw) {
|
|
28257
28257
|
const list = JSON.parse(raw);
|
|
28258
28258
|
if (list.length > 0) latestId = list[0].id ?? null;
|
|
@@ -30018,7 +30018,7 @@ function BodyProfileView({
|
|
|
30018
30018
|
] }) }),
|
|
30019
30019
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "ps-bpm-bottom", children: [
|
|
30020
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") }),
|
|
30021
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
30021
|
+
!simplePhotoOnly && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
30022
30022
|
MobileBottomTabs,
|
|
30023
30023
|
{
|
|
30024
30024
|
mode: "scan",
|
|
@@ -30085,7 +30085,9 @@ function BodyProfileView({
|
|
|
30085
30085
|
handlePhotoSelect,
|
|
30086
30086
|
handleRemovePhoto,
|
|
30087
30087
|
onAnalyze: handleNext,
|
|
30088
|
-
onSwitchToManual: () =>
|
|
30088
|
+
onSwitchToManual: () => {
|
|
30089
|
+
if (!simplePhotoOnly) setStep("basics");
|
|
30090
|
+
},
|
|
30089
30091
|
error,
|
|
30090
30092
|
photoStepHeight,
|
|
30091
30093
|
onPhotoStepHeightChange: setPhotoStepHeight,
|
|
@@ -30100,7 +30102,7 @@ function BodyProfileView({
|
|
|
30100
30102
|
photoStatus,
|
|
30101
30103
|
photoRejection,
|
|
30102
30104
|
onClearRejection: () => setPhotoRejection(null),
|
|
30103
|
-
hideTabs:
|
|
30105
|
+
hideTabs: simplePhotoOnly,
|
|
30104
30106
|
t: t2
|
|
30105
30107
|
}
|
|
30106
30108
|
),
|
|
@@ -30692,7 +30694,7 @@ function BodyProfileView({
|
|
|
30692
30694
|
)
|
|
30693
30695
|
] })
|
|
30694
30696
|
] }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
30695
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "ps-bp-photo-manual-switch", children: [
|
|
30697
|
+
!simplePhotoOnly && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "ps-bp-photo-manual-switch", children: [
|
|
30696
30698
|
t2("Prefer not to upload a photo?"),
|
|
30697
30699
|
" ",
|
|
30698
30700
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -34856,7 +34858,7 @@ function PrimeStyleTryonInner({
|
|
|
34856
34858
|
tryOnProcessing,
|
|
34857
34859
|
tryOnStartedAt,
|
|
34858
34860
|
tryOnAvailable: usedAiPhotoSizing && sizingResult?.found !== false,
|
|
34859
|
-
showProfileCompletionCta: measurementType
|
|
34861
|
+
showProfileCompletionCta: measurementType === "body" && !!sizingResult && sizingResult.found !== false,
|
|
34860
34862
|
onProfileCompletionCta: handleCompleteProfileFromResult,
|
|
34861
34863
|
bodyLandmarks,
|
|
34862
34864
|
faceLandmarks,
|