hart-estate-widget 4.6.0 → 4.6.2

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/README.md CHANGED
@@ -204,6 +204,7 @@ Here you can see a list of accessible options and examples of usage. There are a
204
204
  // "panorama" - Panorama 360 tab
205
205
  // "rotation" - Isometric plan rotation tab
206
206
  // "plan" - Original plan tab
207
+ // "rotationPlan" - 2d tab with middle cuts, plan and topView
207
208
  "tabs": ["plan", "rotation", "panorama"],
208
209
 
209
210
  // Controls in bottom bar, can be:
@@ -226,6 +227,8 @@ Here you can see a list of accessible options and examples of usage. There are a
226
227
  "isInstructionsVisible": true,
227
228
  // Enable/disable modal of instruction in ruler
228
229
  "isRulerInstructionVisible": true,
230
+ // Show the ruler's instructions only once per session
231
+ "isRulerInstructionShownOnce": false,
229
232
  // Enable/disable auto rotation in 3D tour
230
233
  "isAutoRotate": false,
231
234
  // Enable/disable device gyroscope for AR
@@ -282,6 +285,9 @@ Here you can see a list of accessible options and examples of usage. There are a
282
285
  // Show VR button (on VR device connected)
283
286
  "isVRVisible": true,
284
287
 
288
+ // Apply a fixed scale that is specified in the scales parameter
289
+ "isFixedScale": false,
290
+
285
291
  // "original" - use original_plan_img
286
292
  // "miniplan" - use miniplan_img
287
293
  "2DTabBehavior": "miniplan",
package/build/api.js CHANGED
@@ -1 +1 @@
1
- var r={d:(e,t)=>{for(var a in t)r.o(t,a)&&!r.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},o:(r,e)=>Object.prototype.hasOwnProperty.call(r,e)},e={};r.d(e,{j:()=>t});class t{baseUrl;constructor(r){this.baseUrl=r}get headers(){return{Accept:"application/json;widget-version=4.6.0"}}loadCrmWidgetData=async r=>{if(!r)return this.makeError(404,"No crmPlanId!");try{const e=await this.fetch(`/api/crm/plans/${r}/v4/widget`);return e.ok?{...await e.json(),is_crm:!0,crm_plan_id:r}:this.makeErrorFromResponse(e,"Failed to get CRM Plan widget data!")}catch(r){return this.makeError(520,r.message)}};loadWidgetData=async r=>{if(!r)return this.makeError(404,"No planId!");try{const e=await this.fetch(`/api/plans/${r}/v4/widget`);return e.ok?{...await e.json(),is_crm:!1,plan_id:r}:this.makeErrorFromResponse(e,"Failed to get Plan widget data!")}catch(r){return this.makeError(520,r.message)}};loadJson=async r=>{try{return(await fetch(r)).json()}catch(r){return this.makeError(500,r.message)}};makeError(r,e="Unknown error"){return{error:{status:r,message:e}}}async makeErrorFromResponse(r,e){if("application/json"===r.headers.get("Content-Type")){const e=await r.json();if("message"in e&&"string"==typeof e.message)return this.makeError(r.status,e.message)}return this.makeError(r.status,e)}fetch(r,e={headers:this.headers}){return fetch(`${this.baseUrl}${r}`,e)}}const a=e.j;export{a as Api};
1
+ var r={d:(e,t)=>{for(var a in t)r.o(t,a)&&!r.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},o:(r,e)=>Object.prototype.hasOwnProperty.call(r,e)},e={};r.d(e,{j:()=>t});class t{baseUrl;constructor(r){this.baseUrl=r}get headers(){return{Accept:"application/json;widget-version=4.6.2"}}loadCrmWidgetData=async r=>{if(!r)return this.makeError(404,"No crmPlanId!");try{const e=await this.fetch(`/api/crm/plans/${r}/v4/widget`);return e.ok?{...await e.json(),is_crm:!0,crm_plan_id:r}:this.makeErrorFromResponse(e,"Failed to get CRM Plan widget data!")}catch(r){return this.makeError(520,r.message)}};loadWidgetData=async r=>{if(!r)return this.makeError(404,"No planId!");try{const e=await this.fetch(`/api/plans/${r}/v4/widget`);return e.ok?{...await e.json(),is_crm:!1,plan_id:r}:this.makeErrorFromResponse(e,"Failed to get Plan widget data!")}catch(r){return this.makeError(520,r.message)}};loadJson=async r=>{try{return(await fetch(r)).json()}catch(r){return this.makeError(500,r.message)}};makeError(r,e="Unknown error"){return{error:{status:r,message:e}}}async makeErrorFromResponse(r,e){if("application/json"===r.headers.get("Content-Type")){const e=await r.json();if("message"in e&&"string"==typeof e.message)return this.makeError(r.status,e.message)}return this.makeError(r.status,e)}fetch(r,e={headers:this.headers}){return fetch(`${this.baseUrl}${r}`,e)}}const a=e.j;export{a as Api};