This project highlights the usage of the designhubz makeup web SDK.
import * as Designhubz from 'designhubz-widget';
Designhubz.createMakeupWidget(someDivElement)
.then( widget => widget.loadProduct(SKU) );Eventually, Eyewear & Makeup try-on widgets will be available through the same designhubz-widget web SDK.
During initial releases however designhubz-widget for 'makeup/' uses a separate deployment path:
"dependencies": {
"designhubz-widget": "https://widget.designhubz.com/makeup/designhubz-widget-1.0.1.tgz"
}- Assign
variation = productin widget object. - Fix Cors bug.
- Kickstart recommendations: Mock.
- Stability improved.
- Add feature
widget.takeDoubleSnapshotAsync: it captures 2Snapshotobjects with & without makeup applied.
- Introduces makeup widget functionality
- Introduces
widget.loadProduct(id)which replacesfetchProduct+loadVariation
- Clone project and open command prompt in root project folder
- Install libraries by running the following command:
npm install- Run the project:
npm run start- This project uses our web SDK package:
designhubz-widget - index.html : shows an
HTMLDivElementwhere the widget (iFrame) will be contained. - src/index.ts : In this example, we are fetching a specific product, creating and interacting with a widget.
Live demo: https://dg0iszzfyf3bz.cloudfront.net/widget/makeup/1.0.2/index.html