hart-estate-widget 4.4.16 → 4.4.18
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 +6 -0
- package/build/api.js +1 -1
- package/build/createWidget.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
@@ -266,6 +266,8 @@ Here you can see a list of accessible options and examples of usage. There are a
|
|
266
266
|
"isOverrideLinks": false,
|
267
267
|
// Enable room indexer button in rotation tab
|
268
268
|
"isRoomIndexerVisible": false,
|
269
|
+
// Show top view on rotation tab
|
270
|
+
"isShowTopViewOnRotationTab": true,
|
269
271
|
// 'original' - use original_plan_img
|
270
272
|
// 'miniplan' - use miniplan_img
|
271
273
|
"2DTabBehavior": "miniplan",
|
@@ -333,6 +335,10 @@ Here you can see a list of accessible options and examples of usage. There are a
|
|
333
335
|
// Panorama fade time in seconds
|
334
336
|
"panoramaFadeTime": 0.5,
|
335
337
|
|
338
|
+
// Overrides for interactive opacity
|
339
|
+
"interactiveHoverOpacity": 0.65;
|
340
|
+
"interactiveActiveOpacity": 0.8;
|
341
|
+
|
336
342
|
// Widget external integrations
|
337
343
|
"integrations": {
|
338
344
|
// https://docs.sentry.io/platforms/javascript/configuration/options/
|
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.4.
|
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.4.18"}}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?e.json():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?e.json():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};
|