@plattar/plattar-ar-adapter 1.158.2 → 1.158.3

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.
@@ -75,6 +75,7 @@ class ConfiguratorController extends plattar_controller_1.PlattarController {
75
75
  this.parent.lockObserver();
76
76
  this.parent.destroy();
77
77
  this.setAttribute("product-id", product.scene_product_id);
78
+ this.removeAttribute("scene-id");
78
79
  this.parent.unlockObserver();
79
80
  const controller = this.parent.create();
80
81
  if (controller) {
@@ -105,6 +106,7 @@ class ConfiguratorController extends plattar_controller_1.PlattarController {
105
106
  this.parent.lockObserver();
106
107
  this.parent.destroy();
107
108
  this.setAttribute("product-id", product.scene_product_id);
109
+ this.removeAttribute("scene-id");
108
110
  this.parent.unlockObserver();
109
111
  const controller = this.parent.create();
110
112
  if (controller) {
@@ -176,6 +178,7 @@ class ConfiguratorController extends plattar_controller_1.PlattarController {
176
178
  this.parent.lockObserver();
177
179
  this.parent.destroy();
178
180
  this.setAttribute("product-id", product.scene_product_id);
181
+ this.removeAttribute("scene-id");
179
182
  this.parent.unlockObserver();
180
183
  const controller = this.parent.create();
181
184
  if (controller) {
@@ -232,6 +235,7 @@ class ConfiguratorController extends plattar_controller_1.PlattarController {
232
235
  this.parent.lockObserver();
233
236
  this.parent.destroy();
234
237
  this.setAttribute("product-id", product.scene_product_id);
238
+ this.removeAttribute("scene-id");
235
239
  this.parent.unlockObserver();
236
240
  const controller = this.parent.create();
237
241
  if (controller) {
@@ -97,6 +97,12 @@ export declare abstract class PlattarController {
97
97
  * @param value - The value of the attribute
98
98
  */
99
99
  setAttribute(attribute: string, value: string): void;
100
+ /**
101
+ * Removes a particular attribute from HTML DOM
102
+ *
103
+ * @param attribute - The name of the attribute
104
+ */
105
+ removeAttribute(attribute: string): void;
100
106
  /**
101
107
  * Appends the provided element into the shadow-root of the parent element
102
108
  * @param element - The element to append
@@ -222,6 +222,16 @@ class PlattarController {
222
222
  this.parent.setAttribute(attribute, value);
223
223
  }
224
224
  }
225
+ /**
226
+ * Removes a particular attribute from HTML DOM
227
+ *
228
+ * @param attribute - The name of the attribute
229
+ */
230
+ removeAttribute(attribute) {
231
+ if (this.parent) {
232
+ this.parent.removeAttribute(attribute);
233
+ }
234
+ }
225
235
  /**
226
236
  * Appends the provided element into the shadow-root of the parent element
227
237
  * @param element - The element to append
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "1.158.2";
1
+ declare const _default: "1.158.3";
2
2
  export default _default;
package/dist/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = "1.158.2";
3
+ exports.default = "1.158.3";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plattar/plattar-ar-adapter",
3
- "version": "1.158.2",
3
+ "version": "1.158.3",
4
4
  "description": "Plattar AR Adapter for interfacing with Google & Apple WebAR",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",