@souldi/try-on 0.4.1 → 0.4.3

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/README.md CHANGED
@@ -205,13 +205,12 @@ Add a try-on button for a specific garment. Call once per product on the page.
205
205
  |--------|------|----------|-------------|
206
206
  | `containerId` | `string` | Yes | ID of the DOM element where the button will render |
207
207
  | `garmentUrl` | `string` | Yes | Public URL of the garment image |
208
- | `internalId` | `string` | No | Your internal/vendor id for this garment; correlated server-side |
209
208
 
210
209
  It returns a handle for that button. Among its methods:
211
210
 
212
211
  | Method | Description |
213
212
  |--------|-------------|
214
- | `setGarment(garmentUrl, internalId?)` | Point the button at another garment — a colour switch. The button's previous result is forgotten; a try-on still running for the previous garment is shown when it lands. |
213
+ | `setGarment(garmentUrl)` | Point the button at another garment — a colour switch. The button's previous result is forgotten; a try-on still running for the previous garment is shown when it lands. |
215
214
  | `openSize()` | Open the dialog on the customer's size, exactly as the size on the button does — for a "check your size" control of your own. Does nothing while the button has no size to show. |
216
215
 
217
216
  > **Removed in 0.2.0:** `targetImageId`. It named an `<img>` on your page for the