@plattar/plattar-ar-adapter 1.121.1 → 1.122.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.
@@ -108,6 +108,12 @@ class PlattarEmbed extends HTMLElement {
108
108
  viewer.setAttribute("height", this._height);
109
109
  viewer.setAttribute("server", this._server);
110
110
  viewer.setAttribute("scene-id", this._sceneID);
111
+ if (this._productID) {
112
+ viewer.setAttribute("product-id", this._productID);
113
+ }
114
+ if (this._variationID) {
115
+ viewer.setAttribute("variation-id", this._variationID);
116
+ }
111
117
  viewer.onload = () => {
112
118
  return accept(viewer);
113
119
  };
@@ -165,7 +171,13 @@ class PlattarEmbed extends HTMLElement {
165
171
  if (opt.qrType) {
166
172
  viewer.setAttribute("qr-type", opt.qrType);
167
173
  }
168
- const dst = plattar_api_1.Server.location().base + "renderer/viewer.html?scene_id=" + this._sceneID;
174
+ let dst = plattar_api_1.Server.location().base + "renderer/viewer.html?scene_id=" + this._sceneID;
175
+ if (this._productID) {
176
+ dst += "&productId=" + this._productID;
177
+ }
178
+ if (this._variationID) {
179
+ dst += "&variationId=" + this._variationID;
180
+ }
169
181
  viewer.setAttribute("url", dst);
170
182
  viewer.onload = () => {
171
183
  return accept(viewer);
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "1.121.1";
1
+ declare const _default: "1.122.1";
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.121.1";
3
+ exports.default = "1.122.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plattar/plattar-ar-adapter",
3
- "version": "1.121.1",
3
+ "version": "1.122.1",
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,14 +40,14 @@
40
40
  "@plattar/plattar-analytics": "^1.117.2",
41
41
  "@plattar/plattar-api": "^1.120.1",
42
42
  "@plattar/plattar-qrcode": "1.120.3",
43
- "@plattar/plattar-web": "^1.117.1"
43
+ "@plattar/plattar-web": "^1.122.2"
44
44
  },
45
45
  "devDependencies": {
46
- "@babel/cli": "^7.16.0",
47
- "@babel/core": "^7.16.0",
48
- "@babel/preset-env": "^7.16.4",
46
+ "@babel/cli": "^7.16.8",
47
+ "@babel/core": "^7.16.10",
48
+ "@babel/preset-env": "^7.16.10",
49
49
  "browserify": "^17.0.0",
50
- "typescript": "^4.5.2",
50
+ "typescript": "^4.5.4",
51
51
  "uglify-es": "^3.3.9"
52
52
  },
53
53
  "publishConfig": {