@plattar/plattar-ar-adapter 1.158.1 → 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.
- package/build/es2015/plattar-ar-adapter.js +60 -44
- package/build/es2015/plattar-ar-adapter.min.js +1 -1
- package/build/es2019/plattar-ar-adapter.js +15 -1
- package/build/es2019/plattar-ar-adapter.min.js +1 -1
- package/dist/embed/controllers/configurator-controller.js +4 -0
- package/dist/embed/controllers/plattar-controller.d.ts +6 -0
- package/dist/embed/controllers/plattar-controller.js +10 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +6 -6
|
@@ -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.
|
|
1
|
+
declare const _default: "1.158.3";
|
|
2
2
|
export default _default;
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plattar/plattar-ar-adapter",
|
|
3
|
-
"version": "1.158.
|
|
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",
|
|
@@ -40,15 +40,15 @@
|
|
|
40
40
|
"@plattar/plattar-analytics": "^1.152.2",
|
|
41
41
|
"@plattar/plattar-api": "^1.154.1",
|
|
42
42
|
"@plattar/plattar-qrcode": "1.150.2",
|
|
43
|
-
"@plattar/plattar-services": "^1.
|
|
43
|
+
"@plattar/plattar-services": "^1.157.1",
|
|
44
44
|
"@plattar/plattar-web": "^1.154.3"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@babel/cli": "^7.22.
|
|
48
|
-
"@babel/core": "^7.22.
|
|
49
|
-
"@babel/preset-env": "^7.22.
|
|
47
|
+
"@babel/cli": "^7.22.15",
|
|
48
|
+
"@babel/core": "^7.22.15",
|
|
49
|
+
"@babel/preset-env": "^7.22.15",
|
|
50
50
|
"browserify": "^17.0.0",
|
|
51
|
-
"typescript": "^5.
|
|
51
|
+
"typescript": "^5.2.2",
|
|
52
52
|
"uglify-js": "^3.17.4"
|
|
53
53
|
},
|
|
54
54
|
"publishConfig": {
|