@londondynamics/pericles-webcomponent 2.1.3 → 2.1.4

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.
@@ -24,7 +24,7 @@
24
24
  * @license
25
25
  * Copyright 2017 Google LLC
26
26
  * SPDX-License-Identifier: BSD-3-Clause
27
- */const Ot={attribute:!0,type:String,converter:H,reflect:!1,hasChanged:W},Rt=(i=Ot,t,e)=>{const{kind:s,metadata:r}=e;let n=globalThis.litPropertyMetadata.get(r);if(n===void 0&&globalThis.litPropertyMetadata.set(r,n=new Map),n.set(e.name,i),s==="accessor"){const{name:o}=e;return{set(p){const a=t.get.call(this);t.set.call(this,p),this.requestUpdate(o,a,i)},init(p){return p!==void 0&&this.P(o,void 0,i),p}}}if(s==="setter"){const{name:o}=e;return function(p){const a=this[o];t.call(this,p),this.requestUpdate(o,a,i)}}throw Error("Unsupported decorator location: "+s)};function l(i){return(t,e)=>typeof e=="object"?Rt(i,t,e):((s,r,n)=>{const o=r.hasOwnProperty(n);return r.constructor.createProperty(n,o?{...s,wrapped:!0}:s),o?Object.getOwnPropertyDescriptor(r,n):void 0})(i,t,e)}const Nt=["allow-partial-match","ar-placement","background-color","camera-orbit-sensitivity","camera-transition-duration","disable-retries","disable-scroll-wheel","enable-dark-mode","highlight-color","interaction-prompt-style","lights","list-bullet-alignment","list-bullet-leading-zeros","list-bullet-style","qr-url-pattern","rotation","ruler-unit","shadow-intensity","shadow-softness","show-ar-button","show-ar-button-label","show-configurator","show-contexts","show-configurator-mobile","show-hotspots","show-interaction-prompt","show-light-switch","show-ruler-button","show-pivot-button","show-presets","start-frame","token","tone-mapping","zoom-type"],kt=i=>i.replace(/([-_]\w)/g,t=>t[1].toUpperCase()),Tt=i=>{const t=kt(i);return t.includes("showAr")?t.replace("showAr","showAR"):t},Ht=i=>{let t=new URLSearchParams;return Nt.forEach(e=>{if(i.hasAttribute(e)){let s=i.getAttribute(e);if(!s)return;s==="yes"&&(s="true"),s==="no"&&(s="false"),t.append(Tt(e),s)}}),t};var It=Object.defineProperty,Lt=Object.getOwnPropertyDescriptor,h=(i,t,e,s)=>{for(var r=s>1?void 0:s?Lt(t,e):t,n=i.length-1,o;n>=0;n--)(o=i[n])&&(r=(s?o(t,e,r):o(r))||r);return s&&r&&It(t,e,r),r};const jt="{host}/by_asset_id/{asset_id}",Dt="{host}{viewer}/by_scene_id/{scene_id}",zt="{host}{viewer}/by_product_id/{customer_id}/{product_id}",Bt="{host}{viewer}/by_product_id/{customer_id}/{sku}",Jt="{host}{viewer}/by_hash/{customer_id}/{hash}";function E(i,t){var e=new RegExp(Object.keys(t).join("|"),"gi");return i.replace(e,function(s){return t[s.toLowerCase()]})}exports.Configurator=class extends U{constructor(){super(...arguments),this.customerId=void 0,this.viewer="realtime",this.host="https://configurator.v2.londondynamics.com",this.defaultSelection={},this.getCurrentSelection=t=>this._pingpongPostMessage({type:"currentValues"},t),this._emit=(t,e)=>{this.dispatchEvent(new CustomEvent(t,{detail:e,bubbles:!0,composed:!0}))},this._pingpongPostMessage=(t,e)=>new Promise((s,r)=>{var a,d;const n={...t,messageId:Date.now()},o=u=>{if(u.origin===this.host&&u.data.messageId===n.messageId&&u.data.type===n.type){try{e?e(JSON.parse(u.data.result)):s(JSON.parse(u.data.result))}catch(c){c instanceof Error?e?e({},c.message):r(c.message):e?e({},"Unknown error"):r("Unknown error")}window.removeEventListener("message",o)}},p=(a=this.shadowRoot)==null?void 0:a.querySelector("iframe");p&&(window.addEventListener("message",o),(d=p.contentWindow)==null||d.postMessage(n,"*"))}),this._handleMessage=t=>{var e;if(t.origin===this.host&&(e=t==null?void 0:t.data)!=null&&e.type)switch(t.data.type){case"ready":this._emit("ready",{options:JSON.parse(t.data.options),presets:JSON.parse(t.data.presets),scene:JSON.parse(t.data.scene)});break;case"load":this._emit("load",JSON.parse(t.data.values));break;case"error":this._emit("error",JSON.parse(t.data.values));break;case"change":this._emit("change",JSON.parse(t.data.values));break;case"cameraChange":this._emit("camerachange",JSON.parse(t.data.values));break;case"log":const{logType:s,logData:r}=t.data;this._emit(s,JSON.parse(r));break}}}getCurrentConfiguration(t){return this._pingpongPostMessage({type:"currentConfig"},t)}getCurrentScene(t){return this._pingpongPostMessage({type:"currentScene"},t)}getCurrentHash(t){return this._pingpongPostMessage({type:"currentHash"},t)}getCurrentSource(t){return this._pingpongPostMessage({type:"currentSource"},t)}getCurrentARSource(t){return this._pingpongPostMessage({type:"currentARSource"},t)}getDataURL(t){return this._pingpongPostMessage({type:"dataURL"},t)}getFrame(t,e,s){return this._pingpongPostMessage({type:"getFrame",index:t,options:e},s)}setFeature(t,e){this._postMessage({type:"setFeature",featureId:t,variantId:e,allowPartialMatch:this.allowPartialMatch})}setSelection(t,e){this._postMessage({type:"setSelection",selection:t,resetBeforeUpdate:e,allowPartialMatch:this.allowPartialMatch})}setContext(t){this._postMessage({type:"setPreset",presetId:t})}resetCamera(){this._postMessage({type:"resetCamera"})}toggleLights(t){this._postMessage({type:"toggleLights",value:t})}toggleGroup(t){this._postMessage({type:"toggleGroup",value:t})}toggleHotspot(t){this._postMessage({type:"toggleGroup",groupId:t})}setRotation(t=[0,0,0],e="deg"){this._postMessage({type:"setRotation",rotation:t,angularUnit:e})}setCamera(t={},e={}){this._postMessage({type:"setCamera",...t,...e})}_postMessage(t){var s,r;const e=(s=this.shadowRoot)==null?void 0:s.querySelector("iframe");e&&((r=e.contentWindow)==null||r.postMessage(t,"*"))}connectedCallback(){super.connectedCallback();const t=this.querySelector('script[type="application/json"]');if(t&&t.textContent)try{this.defaultSelection=JSON.parse(t.textContent)}catch(e){typeof e=="object"&&e instanceof Error?console.warn(`Error parsing selection: ${e.message}. Using default selection instead.`):console.warn("Error parsing selection. Using default selection instead.")}window.addEventListener("message",this._handleMessage)}disconnectedCallback(){window.removeEventListener("message",this._handleMessage),super.disconnectedCallback()}render(){let t=null,e=null;if(this.host?this.sceneId?e=E(Dt,{"{viewer}":this.viewer==="360"?"/360":"","{host}":this.host,"{scene_id}":this.sceneId}):this.assetId?e=E(jt,{"{host}":this.host,"{asset_id}":this.assetId}):this.customerId?this.hash?e=E(Jt,{"{viewer}":"","{host}":this.host,"{customer_id}":this.customerId,"{hash}":this.hash}):this.sku?e=E(Bt,{"{viewer}":this.viewer==="360"?"/360":"","{host}":this.host,"{customer_id}":this.customerId,"{sku}":this.sku}):this.productId?e=E(zt,{"{viewer}":this.viewer==="360"?"/360":"","{host}":this.host,"{customer_id}":this.customerId,"{product_id}":this.productId}):t="Missing property: sku or hash":t="Missing property: customer-id, asset-id, or scene-id":t="Missing property: host",t)return et`<div>${t}</div>`;const s=Ht(this);for(const[r,n]of Object.entries(this.defaultSelection))n&&s.append(r,n);return s.size&&(e+="?"+s),et`<iframe
27
+ */const Ot={attribute:!0,type:String,converter:H,reflect:!1,hasChanged:W},Rt=(i=Ot,t,e)=>{const{kind:s,metadata:r}=e;let n=globalThis.litPropertyMetadata.get(r);if(n===void 0&&globalThis.litPropertyMetadata.set(r,n=new Map),n.set(e.name,i),s==="accessor"){const{name:o}=e;return{set(p){const a=t.get.call(this);t.set.call(this,p),this.requestUpdate(o,a,i)},init(p){return p!==void 0&&this.P(o,void 0,i),p}}}if(s==="setter"){const{name:o}=e;return function(p){const a=this[o];t.call(this,p),this.requestUpdate(o,a,i)}}throw Error("Unsupported decorator location: "+s)};function l(i){return(t,e)=>typeof e=="object"?Rt(i,t,e):((s,r,n)=>{const o=r.hasOwnProperty(n);return r.constructor.createProperty(n,o?{...s,wrapped:!0}:s),o?Object.getOwnPropertyDescriptor(r,n):void 0})(i,t,e)}const Nt=["allow-partial-match","ar-placement","background-color","camera-orbit-sensitivity","camera-transition-duration","debug","disable-retries","disable-scroll-wheel","enable-dark-mode","highlight-color","interaction-prompt-style","lights","list-bullet-alignment","list-bullet-leading-zeros","list-bullet-style","qr-url-pattern","rotation","ruler-unit","shadow-intensity","shadow-softness","show-ar-button","show-ar-button-label","show-configurator","show-contexts","show-configurator-mobile","show-hotspots","show-interaction-prompt","show-light-switch","show-ruler-button","show-pivot-button","show-presets","start-frame","token","tone-mapping","zoom-type"],kt=i=>i.replace(/([-_]\w)/g,t=>t[1].toUpperCase()),Tt=i=>{const t=kt(i);return t.includes("showAr")?t.replace("showAr","showAR"):t},Ht=i=>{let t=new URLSearchParams;return Nt.forEach(e=>{if(i.hasAttribute(e)){let s=i.getAttribute(e);if(!s)return;s==="yes"&&(s="true"),s==="no"&&(s="false"),t.append(Tt(e),s)}}),t};var It=Object.defineProperty,Lt=Object.getOwnPropertyDescriptor,h=(i,t,e,s)=>{for(var r=s>1?void 0:s?Lt(t,e):t,n=i.length-1,o;n>=0;n--)(o=i[n])&&(r=(s?o(t,e,r):o(r))||r);return s&&r&&It(t,e,r),r};const jt="{host}/by_asset_id/{asset_id}",Dt="{host}{viewer}/by_scene_id/{scene_id}",zt="{host}{viewer}/by_product_id/{customer_id}/{product_id}",Bt="{host}{viewer}/by_product_id/{customer_id}/{sku}",Jt="{host}{viewer}/by_hash/{customer_id}/{hash}";function E(i,t){var e=new RegExp(Object.keys(t).join("|"),"gi");return i.replace(e,function(s){return t[s.toLowerCase()]})}exports.Configurator=class extends U{constructor(){super(...arguments),this.debug=void 0,this.customerId=void 0,this.viewer="realtime",this.host="https://configurator.v2.londondynamics.com",this.defaultSelection={},this.getCurrentSelection=t=>this._pingpongPostMessage({type:"currentValues"},t),this._emit=(t,e)=>{this.dispatchEvent(new CustomEvent(t,{detail:e,bubbles:!0,composed:!0}))},this._pingpongPostMessage=(t,e)=>new Promise((s,r)=>{var a,d;const n={...t,messageId:Date.now()},o=u=>{if(u.origin===this.host&&u.data.messageId===n.messageId&&u.data.type===n.type){try{e?e(JSON.parse(u.data.result)):s(JSON.parse(u.data.result))}catch(c){c instanceof Error?e?e({},c.message):r(c.message):e?e({},"Unknown error"):r("Unknown error")}window.removeEventListener("message",o)}},p=(a=this.shadowRoot)==null?void 0:a.querySelector("iframe");p&&(window.addEventListener("message",o),(d=p.contentWindow)==null||d.postMessage(n,"*"))}),this._handleMessage=t=>{var e;if(t.origin===this.host&&(e=t==null?void 0:t.data)!=null&&e.type)switch(t.data.type){case"ready":this._emit("ready",{options:JSON.parse(t.data.options),presets:JSON.parse(t.data.presets),scene:JSON.parse(t.data.scene)});break;case"load":this._emit("load",JSON.parse(t.data.values));break;case"error":this._emit("error",JSON.parse(t.data.values));break;case"change":this._emit("change",JSON.parse(t.data.values));break;case"cameraChange":this._emit("camerachange",JSON.parse(t.data.values));break;case"log":const{logType:s,logData:r}=t.data;this._emit(s,JSON.parse(r));break}}}getCurrentConfiguration(t){return this._pingpongPostMessage({type:"currentConfig"},t)}getCurrentScene(t){return this._pingpongPostMessage({type:"currentScene"},t)}getCurrentHash(t){return this._pingpongPostMessage({type:"currentHash"},t)}getCurrentSource(t){return this._pingpongPostMessage({type:"currentSource"},t)}getCurrentARSource(t){return this._pingpongPostMessage({type:"currentARSource"},t)}getDataURL(t){return this._pingpongPostMessage({type:"dataURL"},t)}getFrame(t,e,s){return this._pingpongPostMessage({type:"getFrame",index:t,options:e},s)}setFeature(t,e){this._postMessage({type:"setFeature",featureId:t,variantId:e,allowPartialMatch:this.allowPartialMatch})}setSelection(t,e){this._postMessage({type:"setSelection",selection:t,resetBeforeUpdate:e,allowPartialMatch:this.allowPartialMatch})}setContext(t){this._postMessage({type:"setPreset",presetId:t})}resetCamera(){this._postMessage({type:"resetCamera"})}toggleLights(t){this._postMessage({type:"toggleLights",value:t})}toggleGroup(t){this._postMessage({type:"toggleGroup",value:t})}toggleHotspot(t){this._postMessage({type:"toggleGroup",groupId:t})}setRotation(t=[0,0,0],e="deg"){this._postMessage({type:"setRotation",rotation:t,angularUnit:e})}setCamera(t={},e={}){this._postMessage({type:"setCamera",...t,...e})}_postMessage(t){var s,r;const e=(s=this.shadowRoot)==null?void 0:s.querySelector("iframe");e&&((r=e.contentWindow)==null||r.postMessage(t,"*"))}connectedCallback(){super.connectedCallback();const t=this.querySelector('script[type="application/json"]');if(t&&t.textContent)try{this.defaultSelection=JSON.parse(t.textContent)}catch(e){typeof e=="object"&&e instanceof Error?console.warn(`Error parsing selection: ${e.message}. Using default selection instead.`):console.warn("Error parsing selection. Using default selection instead.")}window.addEventListener("message",this._handleMessage)}disconnectedCallback(){window.removeEventListener("message",this._handleMessage),super.disconnectedCallback()}render(){let t=null,e=null;if(this.host?this.sceneId?e=E(Dt,{"{viewer}":this.viewer==="360"?"/360":"","{host}":this.host,"{scene_id}":this.sceneId}):this.assetId?e=E(jt,{"{host}":this.host,"{asset_id}":this.assetId}):this.customerId?this.hash?e=E(Jt,{"{viewer}":"","{host}":this.host,"{customer_id}":this.customerId,"{hash}":this.hash}):this.sku?e=E(Bt,{"{viewer}":this.viewer==="360"?"/360":"","{host}":this.host,"{customer_id}":this.customerId,"{sku}":this.sku}):this.productId?e=E(zt,{"{viewer}":this.viewer==="360"?"/360":"","{host}":this.host,"{customer_id}":this.customerId,"{product_id}":this.productId}):t="Missing property: sku or hash":t="Missing property: customer-id, asset-id, or scene-id":t="Missing property: host",t)return et`<div>${t}</div>`;const s=Ht(this);for(const[r,n]of Object.entries(this.defaultSelection))n&&s.append(r,n);return s.size&&(e+="?"+s),et`<iframe
28
28
  src="${e}"
29
29
  width="100%"
30
30
  height="100%"
@@ -44,4 +44,4 @@
44
44
  width: 100%;
45
45
  height: 100%;
46
46
  }
47
- `;h([l({type:String,attribute:"customer-id"})],exports.Configurator.prototype,"customerId",2);h([l({type:String,attribute:"product-id"})],exports.Configurator.prototype,"productId",2);h([l({type:String})],exports.Configurator.prototype,"sku",2);h([l({type:String,attribute:"asset-id"})],exports.Configurator.prototype,"assetId",2);h([l({type:String,attribute:"scene-id"})],exports.Configurator.prototype,"sceneId",2);h([l({type:String})],exports.Configurator.prototype,"hash",2);h([l({type:String})],exports.Configurator.prototype,"viewer",2);h([l({type:String})],exports.Configurator.prototype,"host",2);h([l({type:String})],exports.Configurator.prototype,"token",2);h([l({type:String,attribute:"allow-partial-match"})],exports.Configurator.prototype,"allowPartialMatch",2);h([l({type:String,attribute:"ar-placement"})],exports.Configurator.prototype,"arPlacement",2);h([l({type:String,attribute:"background-color"})],exports.Configurator.prototype,"backgroundColor",2);h([l({type:String,attribute:"disable-retries"})],exports.Configurator.prototype,"disableRetries",2);h([l({type:String,attribute:"disable-scroll-wheel"})],exports.Configurator.prototype,"disableScrollWheel",2);h([l({type:String,attribute:"enable-darkmode"})],exports.Configurator.prototype,"enableDarkMode",2);h([l({type:String,attribute:"interaction-prompt-style"})],exports.Configurator.prototype,"interactionPromptStyle",2);h([l({type:String,attribute:"lights"})],exports.Configurator.prototype,"lights",2);h([l({type:String,attribute:"qr-url-pattern"})],exports.Configurator.prototype,"qrUrlPattern",2);h([l({type:String,attribute:"rotation"})],exports.Configurator.prototype,"rotation",2);h([l({type:String,attribute:"ruler-unit"})],exports.Configurator.prototype,"rulerUnit",2);h([l({type:String,attribute:"shadow-intensity"})],exports.Configurator.prototype,"shadowIntensity",2);h([l({type:String,attribute:"shadow-softness"})],exports.Configurator.prototype,"shadowSoftness",2);h([l({type:String,attribute:"show-ar-button"})],exports.Configurator.prototype,"showARButton",2);h([l({type:String,attribute:"show-ar-button-label"})],exports.Configurator.prototype,"showARButtonLabel",2);h([l({type:String,attribute:"show-configurator"})],exports.Configurator.prototype,"showConfigurator",2);h([l({type:String,attribute:"show-contexts"})],exports.Configurator.prototype,"showContexts",2);h([l({type:String,attribute:"show-hotspots"})],exports.Configurator.prototype,"showHotspots",2);h([l({type:String,attribute:"show-interaction-prompt"})],exports.Configurator.prototype,"showInteractionPrompt",2);h([l({type:String,attribute:"show-light-switch"})],exports.Configurator.prototype,"showLightSwitch",2);h([l({type:String,attribute:"show-ruler-button"})],exports.Configurator.prototype,"showRulerButton",2);h([l({type:String,attribute:"show-pivot-button"})],exports.Configurator.prototype,"showPivotButton",2);h([l({type:String,attribute:"show-presets"})],exports.Configurator.prototype,"showPresets",2);h([l({type:String,attribute:"start-frame"})],exports.Configurator.prototype,"startFrame",2);h([l({type:String,attribute:"tone-mapping"})],exports.Configurator.prototype,"toneMapping",2);h([l({type:String,attribute:"zoom-type"})],exports.Configurator.prototype,"zoomType",2);exports.Configurator=h([xt("ld-configurator")],exports.Configurator);
47
+ `;h([l({type:String,attribute:"debug"})],exports.Configurator.prototype,"debug",2);h([l({type:String,attribute:"customer-id"})],exports.Configurator.prototype,"customerId",2);h([l({type:String,attribute:"product-id"})],exports.Configurator.prototype,"productId",2);h([l({type:String})],exports.Configurator.prototype,"sku",2);h([l({type:String,attribute:"asset-id"})],exports.Configurator.prototype,"assetId",2);h([l({type:String,attribute:"scene-id"})],exports.Configurator.prototype,"sceneId",2);h([l({type:String})],exports.Configurator.prototype,"hash",2);h([l({type:String})],exports.Configurator.prototype,"viewer",2);h([l({type:String})],exports.Configurator.prototype,"host",2);h([l({type:String})],exports.Configurator.prototype,"token",2);h([l({type:String,attribute:"allow-partial-match"})],exports.Configurator.prototype,"allowPartialMatch",2);h([l({type:String,attribute:"ar-placement"})],exports.Configurator.prototype,"arPlacement",2);h([l({type:String,attribute:"background-color"})],exports.Configurator.prototype,"backgroundColor",2);h([l({type:String,attribute:"disable-retries"})],exports.Configurator.prototype,"disableRetries",2);h([l({type:String,attribute:"disable-scroll-wheel"})],exports.Configurator.prototype,"disableScrollWheel",2);h([l({type:String,attribute:"enable-darkmode"})],exports.Configurator.prototype,"enableDarkMode",2);h([l({type:String,attribute:"interaction-prompt-style"})],exports.Configurator.prototype,"interactionPromptStyle",2);h([l({type:String,attribute:"lights"})],exports.Configurator.prototype,"lights",2);h([l({type:String,attribute:"qr-url-pattern"})],exports.Configurator.prototype,"qrUrlPattern",2);h([l({type:String,attribute:"rotation"})],exports.Configurator.prototype,"rotation",2);h([l({type:String,attribute:"ruler-unit"})],exports.Configurator.prototype,"rulerUnit",2);h([l({type:String,attribute:"shadow-intensity"})],exports.Configurator.prototype,"shadowIntensity",2);h([l({type:String,attribute:"shadow-softness"})],exports.Configurator.prototype,"shadowSoftness",2);h([l({type:String,attribute:"show-ar-button"})],exports.Configurator.prototype,"showARButton",2);h([l({type:String,attribute:"show-ar-button-label"})],exports.Configurator.prototype,"showARButtonLabel",2);h([l({type:String,attribute:"show-configurator"})],exports.Configurator.prototype,"showConfigurator",2);h([l({type:String,attribute:"show-contexts"})],exports.Configurator.prototype,"showContexts",2);h([l({type:String,attribute:"show-hotspots"})],exports.Configurator.prototype,"showHotspots",2);h([l({type:String,attribute:"show-interaction-prompt"})],exports.Configurator.prototype,"showInteractionPrompt",2);h([l({type:String,attribute:"show-light-switch"})],exports.Configurator.prototype,"showLightSwitch",2);h([l({type:String,attribute:"show-ruler-button"})],exports.Configurator.prototype,"showRulerButton",2);h([l({type:String,attribute:"show-pivot-button"})],exports.Configurator.prototype,"showPivotButton",2);h([l({type:String,attribute:"show-presets"})],exports.Configurator.prototype,"showPresets",2);h([l({type:String,attribute:"start-frame"})],exports.Configurator.prototype,"startFrame",2);h([l({type:String,attribute:"tone-mapping"})],exports.Configurator.prototype,"toneMapping",2);h([l({type:String,attribute:"zoom-type"})],exports.Configurator.prototype,"zoomType",2);exports.Configurator=h([xt("ld-configurator")],exports.Configurator);
@@ -15,6 +15,7 @@ import { Selection } from '@london-dynamics/types/puzzler';
15
15
  * @fires arOpen - fired when user activates AR mode
16
16
  */
17
17
  export declare class Configurator extends LitElement {
18
+ debug: 'off' | 'info' | 'warn' | 'error' | undefined;
18
19
  customerId: string | undefined;
19
20
  productId?: string;
20
21
  sku?: string;
@@ -15,6 +15,7 @@ import { Selection } from '@london-dynamics/types/puzzler';
15
15
  * @fires arOpen - fired when user activates AR mode
16
16
  */
17
17
  export declare class Configurator extends LitElement {
18
+ debug: 'off' | 'info' | 'warn' | 'error' | undefined;
18
19
  customerId: string | undefined;
19
20
  productId?: string;
20
21
  sku?: string;
@@ -628,6 +628,7 @@ const kt = [
628
628
  "background-color",
629
629
  "camera-orbit-sensitivity",
630
630
  "camera-transition-duration",
631
+ "debug",
631
632
  "disable-retries",
632
633
  "disable-scroll-wheel",
633
634
  "enable-dark-mode",
@@ -685,7 +686,7 @@ function C(s, t) {
685
686
  }
686
687
  let h = class extends x {
687
688
  constructor() {
688
- super(...arguments), this.customerId = void 0, this.viewer = "realtime", this.host = "https://configurator.v2.londondynamics.com", this.defaultSelection = {}, this.getCurrentSelection = (s) => this._pingpongPostMessage(
689
+ super(...arguments), this.debug = void 0, this.customerId = void 0, this.viewer = "realtime", this.host = "https://configurator.v2.londondynamics.com", this.defaultSelection = {}, this.getCurrentSelection = (s) => this._pingpongPostMessage(
689
690
  {
690
691
  type: "currentValues"
691
692
  },
@@ -1047,6 +1048,9 @@ h.styles = dt`
1047
1048
  height: 100%;
1048
1049
  }
1049
1050
  `;
1051
+ l([
1052
+ p({ type: String, attribute: "debug" })
1053
+ ], h.prototype, "debug", 2);
1050
1054
  l([
1051
1055
  p({ type: String, attribute: "customer-id" })
1052
1056
  ], h.prototype, "customerId", 2);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@londondynamics/pericles-webcomponent",
3
3
  "license": "MIT",
4
- "version": "2.1.3",
4
+ "version": "2.1.4",
5
5
  "type": "module",
6
6
  "keywords": [
7
7
  "configurator",