@souldi/try-on 0.5.2 → 0.5.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.
package/CHANGELOG.md CHANGED
@@ -10,6 +10,8 @@
10
10
  - `openSize()` on the button handle still opens the dialog on the customer's size. Before a try-on it now shows the garment and **Try on** there.
11
11
  - **New: between two sizes, the customer picks.** When the customer is between two neighbouring sizes, the dialog shows "Your size: between M and L" with two options, M for a closer fit and L for a looser one, the recommended one preselected, and "Both will fit you." under them. **Add size X to cart** follows the choice; a new recommendation (edited measurements, another colour) resets it. Shown only where there is a cart button; otherwise the dialog names one size and gives the same advice in words. A customer whose second size is not a neighbour still sees one size, now captioned "This one is harder to call." alone (it used to follow "From your measurements.").
12
12
  - **`onAddToCart` gains `recommendedSize` and `recommendationId`** beside `size`, which is the size the customer chose. Additive: a handler that reads `size` alone keeps working. See [`onAddToCart`](README.md#onaddtocart).
13
+ - **Edit my profile.** The customer's profile opens from a row at the foot of the dialog, on every state, instead of a button on the picture. It shows their photo and measurements, and they edit the measurements there, in place: **Edit measurements** turns the list into fields, and **Save changes** updates the size on the button and in the dialog without closing it. Leaving with unsaved changes asks first. The add-your-weight prompt under the size opens it on the missing field. It holds the photo and the account too: "Signed in as … · Sign out" sits under its title, and **Delete account** sits alone at the end, confirmed in place before anything is deleted. **Change photo** on the photo opens the usual photo flow (camera, upload or phone), and the customer comes back to their profile while the new photo is checked: the current photo fades under "Processing…", and a rejected photo says why on the photo still in use. Changing the photo again while one is being checked replaces it. One link switches which photo try-ons use, at once; switching back to the studio photo when it has to be made again shows the same wait until it is ready.
14
+ - **Removed: the "Your Souldi." window.** Every way into it now leads to Edit my profile.
13
15
 
14
16
  ## 0.5.0
15
17
 
package/README.md CHANGED
@@ -77,8 +77,10 @@ from the customer's measurements, not from a render — so the size shown on
77
77
  the try-on button opens it, before and after a try-on. The ruler
78
78
  shown on the button before a size exists is a way into sizing: it signs the
79
79
  customer in and takes them to their size, or to their profile when no size is
80
- ready yet. Neither ever starts a try-on. **Your profile** (retake the photo,
81
- edit measurements, sign out) opens from inside the dialog. The dialog can be
80
+ ready yet. Neither ever starts a try-on. **Edit my profile**, at the foot of
81
+ the dialog, shows the customer's photo and measurements; they edit the
82
+ measurements there, in place, without leaving the dialog, and retake the
83
+ photo or sign out from it too. The dialog can be
82
84
  reopened after closing; the try-on button becomes **View try-on** once a result
83
85
  exists, and the button's size, the dialog's size and the cart button always
84
86
  name the same size — a measurement edit updates all of them at once.