@plattar/plattar-ar-adapter 1.130.1 → 1.130.2

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.
@@ -1884,9 +1884,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
1884
1884
 
1885
1885
  var product_ar_1 = require("../../ar/product-ar");
1886
1886
 
1887
- var scene_product_ar_1 = require("../../ar/scene-product-ar");
1887
+ var scene_ar_1 = require("../../ar/scene-ar");
1888
1888
 
1889
- var configurator_state_1 = require("../../util/configurator-state");
1889
+ var scene_product_ar_1 = require("../../ar/scene-product-ar");
1890
1890
 
1891
1891
  var util_1 = require("../../util/util");
1892
1892
 
@@ -2087,20 +2087,13 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
2087
2087
  return _product.init().then(accept)["catch"](reject);
2088
2088
  }
2089
2089
 
2090
- var sceneID = _this22.getAttribute("scene-id"); // use the first default product-variation id if available
2090
+ var sceneID = _this22.getAttribute("scene-id"); // fallback to using default SceneAR implementation
2091
2091
 
2092
2092
 
2093
2093
  if (sceneID) {
2094
- return configurator_state_1.ConfiguratorState.decodeScene(sceneID).then(function (state) {
2095
- var first = state.first();
2096
-
2097
- if (first) {
2098
- var sceneProductAR = new scene_product_ar_1.SceneProductAR(first.scene_product_id, first.product_variation_id);
2099
- return sceneProductAR.init().then(accept)["catch"](reject);
2100
- }
2101
-
2102
- return reject(new Error("ViewerController.initAR() - your scene does not contain any valid products"));
2103
- })["catch"](reject);
2094
+ var sceneAR = new scene_ar_1.SceneAR(sceneID);
2095
+ sceneAR.init().then(accept)["catch"](reject);
2096
+ return;
2104
2097
  }
2105
2098
 
2106
2099
  return reject(new Error("ViewerController.initAR() - minimum required attributes not set, use scene-id as a minimum"));
@@ -2131,8 +2124,8 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
2131
2124
  exports.ViewerController = ViewerController;
2132
2125
  }, {
2133
2126
  "../../ar/product-ar": 3,
2127
+ "../../ar/scene-ar": 5,
2134
2128
  "../../ar/scene-product-ar": 6,
2135
- "../../util/configurator-state": 14,
2136
2129
  "../../util/util": 15,
2137
2130
  "./plattar-controller": 8,
2138
2131
  "@plattar/plattar-api": 42
@@ -3251,7 +3244,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
3251
3244
  Object.defineProperty(exports, "__esModule", {
3252
3245
  value: true
3253
3246
  });
3254
- exports["default"] = "1.130.1";
3247
+ exports["default"] = "1.130.2";
3255
3248
  }, {}],
3256
3249
  17: [function (require, module, exports) {
3257
3250
  "use strict";