@plattar/plattar-ar-adapter 1.155.2 → 1.155.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/build/es2015/plattar-ar-adapter.js +193 -185
- package/build/es2015/plattar-ar-adapter.min.js +1 -1
- package/build/es2019/plattar-ar-adapter.js +13 -5
- package/build/es2019/plattar-ar-adapter.min.js +1 -1
- package/dist/util/configurator-state.js +12 -4
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -2141,12 +2141,14 @@ class ConfiguratorState {
|
|
|
2141
2141
|
* purposes of Configuration
|
|
2142
2142
|
*/
|
|
2143
2143
|
setVariationSKU(productVariationSKU) {
|
|
2144
|
-
const
|
|
2145
|
-
if (!
|
|
2144
|
+
const variationIDs = this._mappedVariationSKUValues.get(productVariationSKU);
|
|
2145
|
+
if (!variationIDs) {
|
|
2146
2146
|
console.warn("ConfiguratorState.setVariationSKU() - Variation SKU of " + productVariationSKU + " is not defined in any variations");
|
|
2147
2147
|
return;
|
|
2148
2148
|
}
|
|
2149
|
-
|
|
2149
|
+
variationIDs.forEach((variationID) => {
|
|
2150
|
+
this.setVariationID(variationID);
|
|
2151
|
+
});
|
|
2150
2152
|
}
|
|
2151
2153
|
/**
|
|
2152
2154
|
* Modifyes the SceneProduct that this Variation belongs to and changes for
|
|
@@ -2416,7 +2418,13 @@ class ConfiguratorState {
|
|
|
2416
2418
|
variations.forEach((variation) => {
|
|
2417
2419
|
configState._mappedVariationIDValues.set(variation.id, sceneProduct.id);
|
|
2418
2420
|
if (variation.attributes.sku) {
|
|
2419
|
-
configState._mappedVariationSKUValues.
|
|
2421
|
+
const existingSKUs = configState._mappedVariationSKUValues.get(variation.attributes.sku);
|
|
2422
|
+
if (existingSKUs) {
|
|
2423
|
+
existingSKUs.push(variation.id);
|
|
2424
|
+
}
|
|
2425
|
+
else {
|
|
2426
|
+
configState._mappedVariationSKUValues.set(variation.attributes.sku, [variation.id]);
|
|
2427
|
+
}
|
|
2420
2428
|
}
|
|
2421
2429
|
});
|
|
2422
2430
|
}
|
|
@@ -2513,7 +2521,7 @@ exports.Util = Util;
|
|
|
2513
2521
|
},{}],16:[function(require,module,exports){
|
|
2514
2522
|
"use strict";
|
|
2515
2523
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2516
|
-
exports.default = "1.155.
|
|
2524
|
+
exports.default = "1.155.3";
|
|
2517
2525
|
|
|
2518
2526
|
},{}],17:[function(require,module,exports){
|
|
2519
2527
|
"use strict";
|