@plattar/plattar-ar-adapter 1.188.4 → 1.188.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.
@@ -1603,24 +1603,24 @@ class LauncherController extends plattar_controller_1.PlattarController {
1603
1603
  }
1604
1604
  async onAttributesUpdated(attributeName) {
1605
1605
  const state = this._state;
1606
+ if (attributeName === "variation-id") {
1607
+ const configState = await this.getConfiguratorState();
1608
+ const variationIDs = this.getAttribute("variation-id");
1609
+ const variationIDsList = variationIDs ? variationIDs.split(",") : [];
1610
+ variationIDsList.forEach((variationID) => {
1611
+ configState.state.setVariationID(variationID);
1612
+ });
1613
+ }
1614
+ if (attributeName === "variation-sku") {
1615
+ const configState = await this.getConfiguratorState();
1616
+ const variationSKUs = this.getAttribute("variation-sku");
1617
+ const variationSKUList = variationSKUs ? variationSKUs.split(",") : [];
1618
+ variationSKUList.forEach((variationSKU) => {
1619
+ configState.state.setVariationSKU(variationSKU);
1620
+ });
1621
+ }
1606
1622
  // re-render the QR Code when attributes have changed
1607
1623
  if (state === plattar_controller_1.ControllerState.QRCode) {
1608
- if (attributeName === "variation-id") {
1609
- const configState = await this.getConfiguratorState();
1610
- const variationIDs = this.getAttribute("variation-id");
1611
- const variationIDsList = variationIDs ? variationIDs.split(",") : [];
1612
- variationIDsList.forEach((variationID) => {
1613
- configState.state.setVariationID(variationID);
1614
- });
1615
- }
1616
- if (attributeName === "variation-sku") {
1617
- const configState = await this.getConfiguratorState();
1618
- const variationSKUs = this.getAttribute("variation-sku");
1619
- const variationSKUList = variationSKUs ? variationSKUs.split(",") : [];
1620
- variationSKUList.forEach((variationSKU) => {
1621
- configState.state.setVariationSKU(variationSKU);
1622
- });
1623
- }
1624
1624
  this.startQRCode(this._prevQROpt);
1625
1625
  return;
1626
1626
  }
@@ -3727,7 +3727,7 @@ exports.Util = Util;
3727
3727
  },{}],20:[function(require,module,exports){
3728
3728
  "use strict";
3729
3729
  Object.defineProperty(exports, "__esModule", { value: true });
3730
- exports.default = "1.188.4";
3730
+ exports.default = "1.188.5";
3731
3731
 
3732
3732
  },{}],21:[function(require,module,exports){
3733
3733
  "use strict";