@plattar/plattar-ar-adapter 1.120.2 → 1.121.1

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.
@@ -36,9 +36,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
36
36
 
37
37
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
38
38
 
39
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
39
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
40
40
 
41
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
41
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
42
42
 
43
43
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
44
44
 
@@ -52,7 +52,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
52
52
 
53
53
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
54
54
 
55
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
55
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
56
56
 
57
57
  (function (f) {
58
58
  if ((typeof exports === "undefined" ? "undefined" : _typeof(exports)) === "object" && typeof module !== "undefined") {
@@ -166,9 +166,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
166
166
  });
167
167
  exports.LauncherAR = void 0;
168
168
 
169
- var LauncherAR = function LauncherAR() {
169
+ var LauncherAR = /*#__PURE__*/_createClass(function LauncherAR() {
170
170
  _classCallCheck(this, LauncherAR);
171
- };
171
+ });
172
172
 
173
173
  exports.LauncherAR = LauncherAR;
174
174
  }, {}],
@@ -1102,7 +1102,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1102
1102
  var version_1 = __importDefault(require("./version"));
1103
1103
 
1104
1104
  if (customElements) {
1105
- customElements.define("plattar-embed", plattar_embed_1["default"]);
1105
+ if (customElements.get("plattar-embed") === undefined) {
1106
+ customElements.define("plattar-embed", plattar_embed_1["default"]);
1107
+ }
1106
1108
  }
1107
1109
 
1108
1110
  console.log("using @plattar/plattar-ar-adapter v" + version_1["default"]);
@@ -1247,7 +1249,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1247
1249
  Object.defineProperty(exports, "__esModule", {
1248
1250
  value: true
1249
1251
  });
1250
- exports["default"] = "1.120.2";
1252
+ exports["default"] = "1.121.1";
1251
1253
  }, {}],
1252
1254
  10: [function (require, module, exports) {
1253
1255
  "use strict";
@@ -1256,12 +1258,12 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1256
1258
  value: true
1257
1259
  });
1258
1260
 
1259
- var ARViewer = function ARViewer() {
1261
+ var ARViewer = /*#__PURE__*/_createClass(function ARViewer() {
1260
1262
  _classCallCheck(this, ARViewer);
1261
1263
 
1262
1264
  this.modelUrl = null;
1263
1265
  this.modelUrl = null;
1264
- };
1266
+ });
1265
1267
 
1266
1268
  exports["default"] = ARViewer;
1267
1269
  }, {}],
@@ -1595,7 +1597,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1595
1597
  16: [function (require, module, exports) {
1596
1598
  var WrappedValue = require("./wrapped-value");
1597
1599
 
1598
- var PermanentMemory = function PermanentMemory(messengerInstance) {
1600
+ var PermanentMemory = /*#__PURE__*/_createClass(function PermanentMemory(messengerInstance) {
1599
1601
  _classCallCheck(this, PermanentMemory);
1600
1602
 
1601
1603
  return new Proxy(this, {
@@ -1686,7 +1688,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1686
1688
  return true;
1687
1689
  }
1688
1690
  });
1689
- };
1691
+ });
1690
1692
 
1691
1693
  module.exports = PermanentMemory;
1692
1694
  }, {
@@ -1695,7 +1697,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1695
1697
  17: [function (require, module, exports) {
1696
1698
  var WrappedValue = require("./wrapped-value");
1697
1699
 
1698
- var TemporaryMemory = function TemporaryMemory(messengerInstance) {
1700
+ var TemporaryMemory = /*#__PURE__*/_createClass(function TemporaryMemory(messengerInstance) {
1699
1701
  _classCallCheck(this, TemporaryMemory);
1700
1702
 
1701
1703
  return new Proxy(this, {
@@ -1765,7 +1767,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1765
1767
  return true;
1766
1768
  }
1767
1769
  });
1768
- };
1770
+ });
1769
1771
 
1770
1772
  module.exports = TemporaryMemory;
1771
1773
  }, {
@@ -1959,7 +1961,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1959
1961
  20: [function (require, module, exports) {
1960
1962
  var WrappedFunction = require("./wrapped-local-function");
1961
1963
 
1962
- var CurrentFunctionList = function CurrentFunctionList() {
1964
+ var CurrentFunctionList = /*#__PURE__*/_createClass(function CurrentFunctionList() {
1963
1965
  _classCallCheck(this, CurrentFunctionList);
1964
1966
 
1965
1967
  return new Proxy(this, {
@@ -2015,7 +2017,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
2015
2017
  return true;
2016
2018
  }
2017
2019
  });
2018
- };
2020
+ });
2019
2021
 
2020
2022
  module.exports = CurrentFunctionList;
2021
2023
  }, {
@@ -4772,7 +4774,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
4772
4774
  return _this33;
4773
4775
  }
4774
4776
 
4775
- return PlattarBase;
4777
+ return _createClass(PlattarBase);
4776
4778
  }(PlattarObject);
4777
4779
 
4778
4780
  module.exports = PlattarBase;
@@ -6452,9 +6454,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
6452
6454
 
6453
6455
  var AssetLibrary = require("../types/misc/asset-library");
6454
6456
 
6455
- var PlattarUtil = function PlattarUtil() {
6457
+ var PlattarUtil = /*#__PURE__*/_createClass(function PlattarUtil() {
6456
6458
  _classCallCheck(this, PlattarUtil);
6457
- };
6459
+ });
6458
6460
  /**
6459
6461
  * Checks if the provided Object is a Plattar Object
6460
6462
  *
@@ -7005,7 +7007,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
7005
7007
  return _super67.call(this);
7006
7008
  }
7007
7009
 
7008
- return QRCodeElement;
7010
+ return _createClass(QRCodeElement);
7009
7011
  }(BaseElement);
7010
7012
 
7011
7013
  module.exports = QRCodeElement;
@@ -7549,6 +7551,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
7549
7551
  get: function get() {
7550
7552
  return "facear";
7551
7553
  }
7554
+ }, {
7555
+ key: "optionalAttributes",
7556
+ get: function get() {
7557
+ return [{
7558
+ key: "variation-id",
7559
+ map: "variationId"
7560
+ }, {
7561
+ key: "product-id",
7562
+ map: "productId"
7563
+ }];
7564
+ }
7552
7565
  }]);
7553
7566
 
7554
7567
  return FaceARElement;
@@ -7768,14 +7781,38 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
7768
7781
 
7769
7782
  var Version = require("./version");
7770
7783
 
7771
- customElements.define("plattar-webxr", WebXRElement);
7772
- customElements.define("plattar-viewer", ViewerElement);
7773
- customElements.define("plattar-product", ProductElement);
7774
- customElements.define("plattar-editor", EditorElement);
7775
- customElements.define("plattar-facear", FaceARElement);
7776
- customElements.define("plattar-8wall", EWallElement);
7777
- customElements.define("plattar-studio", StudioElement);
7778
- customElements.define("plattar-model", ModelElement);
7784
+ if (customElements.get("plattar-webxr") === undefined) {
7785
+ customElements.define("plattar-webxr", WebXRElement);
7786
+ }
7787
+
7788
+ if (customElements.get("plattar-viewer") === undefined) {
7789
+ customElements.define("plattar-viewer", ViewerElement);
7790
+ }
7791
+
7792
+ if (customElements.get("plattar-product") === undefined) {
7793
+ customElements.define("plattar-product", ProductElement);
7794
+ }
7795
+
7796
+ if (customElements.get("plattar-editor") === undefined) {
7797
+ customElements.define("plattar-editor", EditorElement);
7798
+ }
7799
+
7800
+ if (customElements.get("plattar-facear") === undefined) {
7801
+ customElements.define("plattar-facear", FaceARElement);
7802
+ }
7803
+
7804
+ if (customElements.get("plattar-8wall") === undefined) {
7805
+ customElements.define("plattar-8wall", EWallElement);
7806
+ }
7807
+
7808
+ if (customElements.get("plattar-studio") === undefined) {
7809
+ customElements.define("plattar-studio", StudioElement);
7810
+ }
7811
+
7812
+ if (customElements.get("plattar-model") === undefined) {
7813
+ customElements.define("plattar-model", ModelElement);
7814
+ }
7815
+
7779
7816
  console.log("using @plattar/plattar-web v" + Version);
7780
7817
  module.exports = {
7781
7818
  version: Version
@@ -7889,7 +7926,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
7889
7926
  module.exports = Util;
7890
7927
  }, {}],
7891
7928
  116: [function (require, module, exports) {
7892
- module.exports = "1.117.1";
7929
+ module.exports = "1.121.2";
7893
7930
  }, {}],
7894
7931
  117: [function (require, module, exports) {
7895
7932
  (function (global) {