@pixeasy/customizer-stage 0.0.44 → 0.0.45
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 +5 -0
- package/package.json +1 -1
- package/pixeasy-customizer.min.js +248 -247
package/README.md
CHANGED
|
@@ -375,6 +375,11 @@ const personalizer = createPixeasyPersonalizedBuilder();
|
|
|
375
375
|
personalizer.on(PERSONALIZED_CUSTOMIZER_EVENTS.READY, ({ version }) => {
|
|
376
376
|
console.log('Published template version', version);
|
|
377
377
|
});
|
|
378
|
+
personalizer.on(PERSONALIZED_CUSTOMIZER_EVENTS.CHANGED, (state) => {
|
|
379
|
+
// Fires for product, variant, and personalization changes.
|
|
380
|
+
// Use state.productId to update the product shown by your storefront.
|
|
381
|
+
console.log('Selected product', state.productId);
|
|
382
|
+
});
|
|
378
383
|
personalizer.on(PERSONALIZED_CUSTOMIZER_EVENTS.APPLIED, (saved) => {
|
|
379
384
|
// Store these credentials with the customer's account or order.
|
|
380
385
|
// Save saved.designId and saved.editToken on your backend.
|