@plattar/plattar-ar-adapter 1.123.4 → 1.123.5
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/build/es2015/plattar-ar-adapter.js +9 -3
- package/build/es2015/plattar-ar-adapter.min.js +1 -1
- package/build/es2019/plattar-ar-adapter.js +7 -3
- package/build/es2019/plattar-ar-adapter.min.js +1 -1
- package/dist/embed/controllers/product-controller.js +3 -1
- package/dist/embed/controllers/viewer-controller.js +3 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
|
@@ -845,7 +845,9 @@ class ProductController extends plattar_controller_1.PlattarController {
|
|
|
845
845
|
const viewer = this._element;
|
|
846
846
|
if (viewer) {
|
|
847
847
|
const variationID = this.getAttribute("variation-id");
|
|
848
|
-
viewer.messenger
|
|
848
|
+
if (variationID && viewer.messenger) {
|
|
849
|
+
viewer.messenger.selectVariation(variationID);
|
|
850
|
+
}
|
|
849
851
|
}
|
|
850
852
|
return;
|
|
851
853
|
}
|
|
@@ -981,7 +983,9 @@ class ViewerController extends plattar_controller_1.PlattarController {
|
|
|
981
983
|
if (viewer) {
|
|
982
984
|
const productID = this.getAttribute("product-id");
|
|
983
985
|
const variationID = this.getAttribute("variation-id");
|
|
984
|
-
|
|
986
|
+
if (productID && variationID && viewer.messenger) {
|
|
987
|
+
viewer.messenger.selectVariation(productID, variationID);
|
|
988
|
+
}
|
|
985
989
|
}
|
|
986
990
|
return;
|
|
987
991
|
}
|
|
@@ -1662,7 +1666,7 @@ exports.Util = Util;
|
|
|
1662
1666
|
},{}],15:[function(require,module,exports){
|
|
1663
1667
|
"use strict";
|
|
1664
1668
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1665
|
-
exports.default = "1.123.
|
|
1669
|
+
exports.default = "1.123.5";
|
|
1666
1670
|
|
|
1667
1671
|
},{}],16:[function(require,module,exports){
|
|
1668
1672
|
"use strict";
|