@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.
@@ -612,7 +612,9 @@ Object.defineProperty(exports, "Util", { enumerable: true, get: function () { re
612
612
  const plattar_embed_1 = __importDefault(require("./embed/plattar-embed"));
613
613
  const version_1 = __importDefault(require("./version"));
614
614
  if (customElements) {
615
- customElements.define("plattar-embed", plattar_embed_1.default);
615
+ if (customElements.get("plattar-embed") === undefined) {
616
+ customElements.define("plattar-embed", plattar_embed_1.default);
617
+ }
616
618
  }
617
619
  console.log("using @plattar/plattar-ar-adapter v" + version_1.default);
618
620
 
@@ -706,7 +708,7 @@ exports.Util = Util;
706
708
  },{}],9:[function(require,module,exports){
707
709
  "use strict";
708
710
  Object.defineProperty(exports, "__esModule", { value: true });
709
- exports.default = "1.120.2";
711
+ exports.default = "1.121.1";
710
712
 
711
713
  },{}],10:[function(require,module,exports){
712
714
  "use strict";
@@ -4902,6 +4904,16 @@ class FaceARElement extends BaseElement {
4902
4904
  get elementType() {
4903
4905
  return "facear";
4904
4906
  }
4907
+
4908
+ get optionalAttributes() {
4909
+ return [{
4910
+ key: "variation-id",
4911
+ map: "variationId"
4912
+ }, {
4913
+ key: "product-id",
4914
+ map: "productId"
4915
+ }];
4916
+ }
4905
4917
  }
4906
4918
 
4907
4919
  module.exports = FaceARElement;
@@ -5028,14 +5040,37 @@ const StudioElement = require("./elements/studio-element.js");
5028
5040
  const ModelElement = require("./elements/model-element.js");
5029
5041
  const Version = require("./version");
5030
5042
 
5031
- customElements.define("plattar-webxr", WebXRElement);
5032
- customElements.define("plattar-viewer", ViewerElement);
5033
- customElements.define("plattar-product", ProductElement);
5034
- customElements.define("plattar-editor", EditorElement);
5035
- customElements.define("plattar-facear", FaceARElement);
5036
- customElements.define("plattar-8wall", EWallElement);
5037
- customElements.define("plattar-studio", StudioElement);
5038
- customElements.define("plattar-model", ModelElement);
5043
+ if (customElements.get("plattar-webxr") === undefined) {
5044
+ customElements.define("plattar-webxr", WebXRElement);
5045
+ }
5046
+
5047
+ if (customElements.get("plattar-viewer") === undefined) {
5048
+ customElements.define("plattar-viewer", ViewerElement);
5049
+ }
5050
+
5051
+ if (customElements.get("plattar-product") === undefined) {
5052
+ customElements.define("plattar-product", ProductElement);
5053
+ }
5054
+
5055
+ if (customElements.get("plattar-editor") === undefined) {
5056
+ customElements.define("plattar-editor", EditorElement);
5057
+ }
5058
+
5059
+ if (customElements.get("plattar-facear") === undefined) {
5060
+ customElements.define("plattar-facear", FaceARElement);
5061
+ }
5062
+
5063
+ if (customElements.get("plattar-8wall") === undefined) {
5064
+ customElements.define("plattar-8wall", EWallElement);
5065
+ }
5066
+
5067
+ if (customElements.get("plattar-studio") === undefined) {
5068
+ customElements.define("plattar-studio", StudioElement);
5069
+ }
5070
+
5071
+ if (customElements.get("plattar-model") === undefined) {
5072
+ customElements.define("plattar-model", ModelElement);
5073
+ }
5039
5074
 
5040
5075
  console.log("using @plattar/plattar-web v" + Version);
5041
5076
 
@@ -5117,7 +5152,7 @@ class Util {
5117
5152
 
5118
5153
  module.exports = Util;
5119
5154
  },{}],116:[function(require,module,exports){
5120
- module.exports = "1.117.1";
5155
+ module.exports = "1.121.2";
5121
5156
 
5122
5157
  },{}],117:[function(require,module,exports){
5123
5158
  (function (global){(function (){