@primestyleai/tryon 5.10.17 → 5.10.18

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.
@@ -19307,7 +19307,13 @@ function SizeResultView({
19307
19307
  unitLbl,
19308
19308
  chartUnit: resultUnit,
19309
19309
  lengthEntry: null,
19310
- onBack: resultImageUrl ? onClose || (() => setView("body-profile")) : () => setView("body-profile"),
19310
+ onBack: () => {
19311
+ if (resultImageUrl) {
19312
+ onResetTryOn?.();
19313
+ } else {
19314
+ setView("body-profile");
19315
+ }
19316
+ },
19311
19317
  backLabel: t2("Back"),
19312
19318
  internationalSizes: sizingResult?.internationalSizes,
19313
19319
  onTryOn: resultImageUrl || vtoExcluded ? void 0 : handleSingleTryOn,
@@ -19355,7 +19361,13 @@ function SizeResultView({
19355
19361
  unitLbl,
19356
19362
  chartUnit: resultUnit,
19357
19363
  lengthEntry: null,
19358
- onBack: resultImageUrl ? onClose || (() => setView("body-profile")) : () => setView("body-profile"),
19364
+ onBack: () => {
19365
+ if (resultImageUrl) {
19366
+ onResetTryOn?.();
19367
+ } else {
19368
+ setView("body-profile");
19369
+ }
19370
+ },
19359
19371
  backLabel: t2("Back"),
19360
19372
  internationalSizes: sizingResult?.internationalSizes,
19361
19373
  onTryOn: resultImageUrl || vtoExcluded ? void 0 : handleSingleTryOn,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primestyleai/tryon",
3
- "version": "5.10.17",
3
+ "version": "5.10.18",
4
4
  "description": "PrimeStyle Virtual Try-On SDK — React component & Web Component",
5
5
  "type": "module",
6
6
  "main": "dist/primestyle-tryon.js",