@plattar/plattar-ar-adapter 1.167.1 → 1.167.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.
@@ -3104,7 +3104,6 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
3104
3104
  _this25._observerState = ObserverState.Unlocked;
3105
3105
  _this25._controller = null;
3106
3106
  _this25._currentSceneID = null;
3107
- _this25._currentServer = null;
3108
3107
  _this25._observer = null;
3109
3108
  return _this25;
3110
3109
  }
@@ -3128,6 +3127,9 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
3128
3127
  key: "create",
3129
3128
  value: function create() {
3130
3129
  var _this26 = this;
3130
+ // server cannot be changed once its set - defaults to production
3131
+ var server = this.hasAttribute("server") ? this.getAttribute("server") : "production";
3132
+ plattar_api_1.Server.create(plattar_api_1.Server.match(server || "production"));
3131
3133
  if (!this._observer) {
3132
3134
  this._observer = new MutationObserver(function (mutations) {
3133
3135
  if (_this26._observerState === ObserverState.Unlocked) {
@@ -3191,9 +3193,6 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
3191
3193
  }, {
3192
3194
  key: "_CreateLegacyEmbed",
3193
3195
  value: function _CreateLegacyEmbed() {
3194
- // server cannot be changed once its set - defaults to production
3195
- var server = this.hasAttribute("server") ? this.getAttribute("server") : "production";
3196
- plattar_api_1.Server.create(plattar_api_1.Server.match(server || "production"));
3197
3196
  this._controller = new product_controller_1.ProductController(this);
3198
3197
  var init = this.hasAttribute("init") ? this.getAttribute("init") : null;
3199
3198
  switch (init) {
@@ -3212,17 +3211,6 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
3212
3211
  }, {
3213
3212
  key: "_CreateEmbed",
3214
3213
  value: function _CreateEmbed(attributeName) {
3215
- // check if controller needs to be destroyed due to server change
3216
- var serverAttribute = this.hasAttribute("server") ? this.getAttribute("server") : "production";
3217
- if (this._currentServer !== serverAttribute) {
3218
- this._currentSceneID = serverAttribute || "production";
3219
- // reset the controller if any
3220
- if (this._controller) {
3221
- this._controller.removeRenderer();
3222
- this._controller = null;
3223
- }
3224
- }
3225
- plattar_api_1.Server.create(plattar_api_1.Server.match(this._currentServer || "production"));
3226
3214
  var embedType = this.hasAttribute("embed-type") ? this.getAttribute("embed-type") : "configurator";
3227
3215
  var currentEmbed = this._currentType;
3228
3216
  if (embedType) {
@@ -4200,7 +4188,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
4200
4188
  Object.defineProperty(exports, "__esModule", {
4201
4189
  value: true
4202
4190
  });
4203
- exports["default"] = "1.167.1";
4191
+ exports["default"] = "1.167.2";
4204
4192
  }, {}],
4205
4193
  17: [function (require, module, exports) {
4206
4194
  "use strict";
@@ -9123,19 +9111,11 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
9123
9111
  var shortenURL = this.hasAttribute("shorten") ? this.getAttribute("shorten") : "false";
9124
9112
  if (shortenURL && shortenURL.toLowerCase() === "true") {
9125
9113
  this._ShortenURL(url).then(function (newURL) {
9126
- // make sure by time promise is resolved that the original url hasn't been updated
9127
- var updatedURL = _this56.hasAttribute("url") ? _this56.getAttribute("url") : undefined;
9128
- if (updatedURL === url) {
9129
- _this56._GenerateQRCode(newURL, width, height);
9130
- }
9114
+ _this56._GenerateQRCode(newURL, width, height);
9131
9115
  })["catch"](function (_err) {
9132
9116
  console.warn(_err);
9133
9117
  // ignore error and just generate normal QR Code
9134
- // make sure by time promise is resolved that the original url hasn't been updated
9135
- var updatedURL = _this56.hasAttribute("url") ? _this56.getAttribute("url") : undefined;
9136
- if (updatedURL === url) {
9137
- _this56._GenerateQRCode(url, width, height);
9138
- }
9118
+ _this56._GenerateQRCode(url, width, height);
9139
9119
  });
9140
9120
  } else {
9141
9121
  this._GenerateQRCode(url, width, height);
@@ -9281,7 +9261,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
9281
9261
  "./version": 111
9282
9262
  }],
9283
9263
  111: [function (require, module, exports) {
9284
- module.exports = "1.165.1";
9264
+ module.exports = "1.160.1";
9285
9265
  }, {}],
9286
9266
  112: [function (require, module, exports) {
9287
9267
  "use strict";
@@ -10586,10 +10566,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
10586
10566
  module.exports = Util;
10587
10567
  }, {}],
10588
10568
  131: [function (require, module, exports) {
10589
- arguments[4][111][0].apply(exports, arguments);
10590
- }, {
10591
- "dup": 111
10592
- }],
10569
+ module.exports = "1.165.1";
10570
+ }, {}],
10593
10571
  132: [function (require, module, exports) {
10594
10572
  (function (global) {
10595
10573
  (function () {