@plattar/plattar-ar-adapter 1.123.8 → 1.128.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.
@@ -1599,12 +1599,18 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
1599
1599
 
1600
1600
  var variationID = _this18.getAttribute("variation-id");
1601
1601
 
1602
+ var showAR = _this18.getAttribute("show-ar");
1603
+
1602
1604
  var dst = plattar_api_1.Server.location().base + "renderer/product.html?product_id=" + productID;
1603
1605
 
1604
1606
  if (variationID) {
1605
1607
  dst += "&variation_id=" + variationID;
1606
1608
  }
1607
1609
 
1610
+ if (showAR) {
1611
+ dst += "&show_ar=" + showAR;
1612
+ }
1613
+
1608
1614
  viewer.setAttribute("url", opt.url || dst);
1609
1615
 
1610
1616
  viewer.onload = function () {
@@ -1646,10 +1652,16 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
1646
1652
 
1647
1653
  var variationID = _this19.getAttribute("variation-id");
1648
1654
 
1655
+ var showAR = _this19.getAttribute("show-ar");
1656
+
1649
1657
  if (variationID) {
1650
1658
  viewer.setAttribute("variation-id", variationID);
1651
1659
  }
1652
1660
 
1661
+ if (showAR) {
1662
+ viewer.setAttribute("show-ar", showAR);
1663
+ }
1664
+
1653
1665
  viewer.onload = function () {
1654
1666
  return accept(viewer);
1655
1667
  };
@@ -1820,6 +1832,8 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
1820
1832
 
1821
1833
  var variationID = _this22.getAttribute("variation-id");
1822
1834
 
1835
+ var showAR = _this22.getAttribute("show-ar");
1836
+
1823
1837
  if (productID) {
1824
1838
  dst += "&productId=" + productID;
1825
1839
  }
@@ -1828,6 +1842,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
1828
1842
  dst += "&variationId=" + variationID;
1829
1843
  }
1830
1844
 
1845
+ if (showAR) {
1846
+ dst += "&show_ar=" + showAR;
1847
+ }
1848
+
1831
1849
  viewer.setAttribute("url", opt.url || dst);
1832
1850
 
1833
1851
  viewer.onload = function () {
@@ -1871,6 +1889,8 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
1871
1889
 
1872
1890
  var variationID = _this23.getAttribute("variation-id");
1873
1891
 
1892
+ var showAR = _this23.getAttribute("show-ar");
1893
+
1874
1894
  if (productID) {
1875
1895
  viewer.setAttribute("product-id", productID);
1876
1896
  }
@@ -1879,6 +1899,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
1879
1899
  viewer.setAttribute("variation-id", variationID);
1880
1900
  }
1881
1901
 
1902
+ if (showAR) {
1903
+ viewer.setAttribute("show-ar", showAR);
1904
+ }
1905
+
1882
1906
  viewer.onload = function () {
1883
1907
  return accept(viewer);
1884
1908
  };
@@ -2523,12 +2547,18 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
2523
2547
 
2524
2548
  var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
2525
2549
  if (k2 === undefined) k2 = k;
2526
- Object.defineProperty(o, k2, {
2527
- enumerable: true,
2528
- get: function get() {
2529
- return m[k];
2530
- }
2531
- });
2550
+ var desc = Object.getOwnPropertyDescriptor(m, k);
2551
+
2552
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
2553
+ desc = {
2554
+ enumerable: true,
2555
+ get: function get() {
2556
+ return m[k];
2557
+ }
2558
+ };
2559
+ }
2560
+
2561
+ Object.defineProperty(o, k2, desc);
2532
2562
  } : function (o, m, k, k2) {
2533
2563
  if (k2 === undefined) k2 = k;
2534
2564
  o[k2] = m[k];
@@ -3078,7 +3108,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
3078
3108
  Object.defineProperty(exports, "__esModule", {
3079
3109
  value: true
3080
3110
  });
3081
- exports["default"] = "1.123.8";
3111
+ exports["default"] = "1.128.1";
3082
3112
  }, {}],
3083
3113
  17: [function (require, module, exports) {
3084
3114
  "use strict";
@@ -4898,12 +4928,18 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
4898
4928
 
4899
4929
  var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
4900
4930
  if (k2 === undefined) k2 = k;
4901
- Object.defineProperty(o, k2, {
4902
- enumerable: true,
4903
- get: function get() {
4904
- return m[k];
4905
- }
4906
- });
4931
+ var desc = Object.getOwnPropertyDescriptor(m, k);
4932
+
4933
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
4934
+ desc = {
4935
+ enumerable: true,
4936
+ get: function get() {
4937
+ return m[k];
4938
+ }
4939
+ };
4940
+ }
4941
+
4942
+ Object.defineProperty(o, k2, desc);
4907
4943
  } : function (o, m, k, k2) {
4908
4944
  if (k2 === undefined) k2 = k;
4909
4945
  o[k2] = m[k];
@@ -5089,7 +5125,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
5089
5125
  Object.defineProperty(exports, "__esModule", {
5090
5126
  value: true
5091
5127
  });
5092
- exports["default"] = "1.117.2";
5128
+ exports["default"] = "1.124.1";
5093
5129
  }, {}],
5094
5130
  42: [function (require, module, exports) {
5095
5131
  "use strict";
@@ -9947,7 +9983,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
9947
9983
  }
9948
9984
  };
9949
9985
 
9950
- window.addEventListener('load', onLoad, false);
9986
+ window.addEventListener("load", onLoad, false);
9951
9987
  }
9952
9988
  }, {
9953
9989
  key: "permissions",
@@ -10097,6 +10133,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
10097
10133
  return [{
10098
10134
  key: "variation-id",
10099
10135
  map: "variation_id"
10136
+ }, {
10137
+ key: "show-ar",
10138
+ map: "show_ar"
10100
10139
  }];
10101
10140
  }
10102
10141
  }]);
@@ -10174,6 +10213,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
10174
10213
  }, {
10175
10214
  key: "product-id",
10176
10215
  map: "productId"
10216
+ }, {
10217
+ key: "show-ar",
10218
+ map: "show_ar"
10177
10219
  }];
10178
10220
  }
10179
10221
  }]);
@@ -10392,7 +10434,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
10392
10434
  module.exports = Util;
10393
10435
  }, {}],
10394
10436
  129: [function (require, module, exports) {
10395
- module.exports = "1.123.1";
10437
+ module.exports = "1.128.1";
10396
10438
  }, {}],
10397
10439
  130: [function (require, module, exports) {
10398
10440
  (function (global) {