@primestyleai/tryon 5.8.21 → 5.8.23

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.
@@ -1,15 +1,37 @@
1
1
  import type { TranslateFn } from "../../i18n";
2
2
  import type { Profile } from "../types";
3
3
  /**
4
- * Multi-step profile creation wizard matching the ATELIER reference design,
5
- * but themed with the user's accent color instead of monochrome black.
4
+ * Multi-step profile creation wizard.
6
5
  *
7
- * Step 01 Identity name + gender + units + height/weight/age
8
- * Step 02 — Silhouette chest / midsection / seat profile cards
9
- * (women only) bra band + cup
6
+ * NEW FLOW (Apr 2026):
10
7
  *
11
- * On save, calls onSave with a partial Profile (parent persists + runs
12
- * estimateFullMeasurements in the background).
8
+ * 1. Method picker user chooses between:
9
+ * a) "Measure manually" — enter height, weight, and answer body
10
+ * shape questions one at a time with fade transitions.
11
+ * b) "Analyze by photo" — pick a profile name, upload a full-body
12
+ * photo, and let the SDK estimate every measurement (waist, hip,
13
+ * sleeve, inseam, chest, etc.) via vision.
14
+ *
15
+ * 2a. MANUAL PATH
16
+ * Step "identity" — name + gender + units + height + weight + age
17
+ * Step "chest" (men) — single ShapeCard row, fade transition
18
+ * Step "stomach" — single ShapeCard row, fade transition
19
+ * Step "seat" — single ShapeCard row, fade transition
20
+ * Step "hips" (women) — single ShapeCard row, fade transition
21
+ * Step "bra" (women) — band + cup pickers
22
+ * → Save → parent persists + runs estimateFullMeasurements
23
+ *
24
+ * 2b. IMAGE PATH
25
+ * Step "name" — profile name + gender (no measurements needed)
26
+ * Step "photo" — full-screen photo upload (same UI as the SDK's
27
+ * "Find size by photo" mode)
28
+ * → Save with photoBase64 → parent's onSaveNewProfile already calls
29
+ * estimateFullMeasurements({bodyImage}) which kicks off the
30
+ * vision pipeline and stores all body measurements on the profile.
31
+ *
32
+ * Body shape questions are rendered inside `ProgressiveStep`, which keys
33
+ * the children on the active step name so changing step triggers a CSS
34
+ * fade-in animation.
13
35
  */
14
36
  interface CreateProfileWizardProps {
15
37
  onSave: (data: Omit<Profile, "id" | "createdAt">) => void;