@roomle/embedding-lib 5.6.0-debug.1 → 5.7.0-alpha.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.
- package/docs/md/web/embedding/CHANGELOG.md +3 -34
- package/drag-in-BKrnFtmJ.mjs +7 -0
- package/drag-in-DC-05b4s.mjs +265 -0
- package/index.d.ts +40 -104
- package/package.json +2 -2
- package/roomle-embedding-lib.es.js +268 -342
- package/roomle-embedding-lib.es.min.js +8 -8
- package/roomle-embedding-lib.umd.js +12 -12
- package/roomle-embedding-lib.umd.min.js +13 -13
- package/drag-in-BZZo-kSu.mjs +0 -513
- package/drag-in-Buavf-ZW.mjs +0 -7
|
@@ -1,42 +1,11 @@
|
|
|
1
|
-
## [5.
|
|
1
|
+
## [5.7.0-alpha.1](https://github.com/roomle-dev/roomle-ui/compare/embedding-lib-v5.6.0...embedding-lib-v5.7.0-alpha.1) (2024-11-06)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Features
|
|
5
5
|
|
|
6
|
-
*
|
|
7
|
-
* make custom views better extensible ([56d1e04](https://github.com/roomle-dev/roomle-ui/commit/56d1e046271745ba61728e02a8d6bbda2dd9400b))
|
|
8
|
-
* make it more versatile for HOMAG cases ([705c6da](https://github.com/roomle-dev/roomle-ui/commit/705c6dab2b1982f351cbd1f60dabb6d91ea76197))
|
|
9
|
-
* make it possible that a custom view can connect to us ([7a50358](https://github.com/roomle-dev/roomle-ui/commit/7a50358500e084bcf32635f72f70b4c4dbe354b5))
|
|
10
|
-
* make things more stable ([432c571](https://github.com/roomle-dev/roomle-ui/commit/432c5713b1504e865d3152f888940b72d3767516))
|
|
11
|
-
* new methods for exposed api ([264d34f](https://github.com/roomle-dev/roomle-ui/commit/264d34fae8e98b259bf4ef0e921622544ecd4bce))
|
|
12
|
-
* oxlint ([796acb1](https://github.com/roomle-dev/roomle-ui/commit/796acb1f2c2aa7f64f6af11640e7fd0ccc33ba88))
|
|
13
|
-
* some more stuff ([82d0403](https://github.com/roomle-dev/roomle-ui/commit/82d04039902ad8873ab9b35ee6b5bba211076184))
|
|
14
|
-
* **SDK:** upgrade to version 2.87.0 ([#1305](https://github.com/roomle-dev/roomle-ui/issues/1305)) ([7d72d28](https://github.com/roomle-dev/roomle-ui/commit/7d72d28546980c55b7fa98abe9b8dc4b9a79456d))
|
|
15
|
-
* **SDK:** upgrade to version 2.88.0-alpha.1 ([#1308](https://github.com/roomle-dev/roomle-ui/issues/1308)) ([a9dbfa9](https://github.com/roomle-dev/roomle-ui/commit/a9dbfa9e15f39c83374e714c564ebb8c0c8edfc2))
|
|
16
|
-
* **SDK:** upgrade to version 2.88.0-alpha.2 ([#1312](https://github.com/roomle-dev/roomle-ui/issues/1312)) ([b1c8905](https://github.com/roomle-dev/roomle-ui/commit/b1c8905b358ad62b2e7c675d9de546e9281490d1))
|
|
17
|
-
* working eslint flat config ([03176a6](https://github.com/roomle-dev/roomle-ui/commit/03176a6dbb57f8b3ce7c95328efa9906f68151b2))
|
|
6
|
+
* **SDK:** upgrade to version 2.88.1-alpha.1 ([15bd1f5](https://github.com/roomle-dev/roomle-ui/commit/15bd1f5c6ae90a27c6d2b78684ce64cc15798aca))
|
|
18
7
|
|
|
19
8
|
|
|
20
9
|
### Bug Fixes
|
|
21
10
|
|
|
22
|
-
*
|
|
23
|
-
* AR url for arc and brave browsers ([d166054](https://github.com/roomle-dev/roomle-ui/commit/d1660547ca7deb169ae224ed6ea8d11fe2479cf6))
|
|
24
|
-
* correctly select notification widths on mobile when interactions are expanded ([f59742d](https://github.com/roomle-dev/roomle-ui/commit/f59742d8bb15572e35862f68f38ce491577c7f95))
|
|
25
|
-
* do not collapse custom view on main embedding ([829c32e](https://github.com/roomle-dev/roomle-ui/commit/829c32e6ee757c6ea3c29932a4ccce49f4998ef6))
|
|
26
|
-
* do not remove initial width ([1270073](https://github.com/roomle-dev/roomle-ui/commit/12700737a43d95ea53912e5fde3bc153da66c170))
|
|
27
|
-
* feedback changes, vscode settings, add oxlint promises rule ([b3bb64e](https://github.com/roomle-dev/roomle-ui/commit/b3bb64e1125e994b07fc90f735eaaa53a3a6fb23))
|
|
28
|
-
* make drag-in for custom-view more stable against different timings ([3ebd477](https://github.com/roomle-dev/roomle-ui/commit/3ebd47785d3ed030cd8aa316d442223c03644bc1))
|
|
29
|
-
* make typescript happy ([7613796](https://github.com/roomle-dev/roomle-ui/commit/7613796f23b9ed7b815cc280db589e863110123e))
|
|
30
|
-
* make typescript work ([6d14255](https://github.com/roomle-dev/roomle-ui/commit/6d14255f1f9b57fde9a6efc4bb57fa39244b65b3))
|
|
31
|
-
* move style change into desktop ([773aaaf](https://github.com/roomle-dev/roomle-ui/commit/773aaaf6737dc9aad9161853b59a0b936e6ec8e9))
|
|
32
|
-
* overflowing interaction container when second level drawer is open ([786489c](https://github.com/roomle-dev/roomle-ui/commit/786489c38debe8a380c3a8b40631deed7a583c2d))
|
|
33
|
-
* remaining issues ([9d6db1a](https://github.com/roomle-dev/roomle-ui/commit/9d6db1aef414950f9485dc0c6fd15ea27f783f1c))
|
|
34
|
-
* remove merge conflicts ([4a2ceae](https://github.com/roomle-dev/roomle-ui/commit/4a2ceae999db8245bc0e1f8ea4b4f506ea877b3e))
|
|
35
|
-
* some stuff ([632deb9](https://github.com/roomle-dev/roomle-ui/commit/632deb920125dec7a8af4012ab51b84840811286))
|
|
36
|
-
* try to use another version of hasARQuicklook helper ([92e8f12](https://github.com/roomle-dev/roomle-ui/commit/92e8f12557c869b743e831d7f346be779adcfc0b))
|
|
37
|
-
* ts ([cbc5407](https://github.com/roomle-dev/roomle-ui/commit/cbc5407d30ed9677a4733f09e463ca7500024bcb))
|
|
38
|
-
* ts errors ([0034978](https://github.com/roomle-dev/roomle-ui/commit/00349784c2153127c0ff4f019cddf9fb81d9d0c8))
|
|
39
|
-
* ts errors ([faaf013](https://github.com/roomle-dev/roomle-ui/commit/faaf0138799af91f21af55a7994e3a4f22de1883))
|
|
40
|
-
* Unexpected aliasing of 'this' to local variable. in exposed-api.ts ([c5c142b](https://github.com/roomle-dev/roomle-ui/commit/c5c142b28d4b07c31ae255ceb471bbfc117e2925))
|
|
41
|
-
* use correct imports so that we do not import all of Vue ([46dc577](https://github.com/roomle-dev/roomle-ui/commit/46dc577592dd88947c07cbf600f2d4988584f5d2))
|
|
42
|
-
* use ResizeObserver and switch back to GPU CSS ([65c3a53](https://github.com/roomle-dev/roomle-ui/commit/65c3a539ed7834d45b6a11eee3695768b5ce2cd1))
|
|
11
|
+
* fix URL parameter parsing to handle array-like keys and remove '[]' suffix ([f7783a3](https://github.com/roomle-dev/roomle-ui/commit/f7783a3faa7e3989a7d08434f48d26fe40079447))
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
var O=Object.defineProperty,P=(i,t,e)=>t in i?O(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,c=(i,t,e)=>P(i,typeof t!="symbol"?t+"":t,e);class N{constructor(t=16){c(this,"_computedStyleCache",new Map),c(this,"_maxLifetime",16),c(this,"_cacheCleanInterval",null),this._maxLifetime=t}get(t){const e=this._computedStyleCache.get(t),n=Date.now();if(e&&n-e.updated<this._maxLifetime)return e.style;const o=getComputedStyle(t);return this._computedStyleCache.set(t,{style:o,updated:n}),this._cacheCleanInterval||(this._cacheCleanInterval=setInterval(()=>this._cleanUpCache,Math.max(this._maxLifetime*1e3,5e3))),o}_cleanUpCache(){const t=Date.now();for(const[e,{updated:n}]of this._computedStyleCache.entries())t-n>=this._maxLifetime&&this._computedStyleCache.delete(e);this._computedStyleCache.size===0&&this._cacheCleanInterval&&(clearInterval(this._cacheCleanInterval),this._cacheCleanInterval=null)}}const E=i=>window.TouchEvent&&i instanceof window.TouchEvent;let D;const f=i=>(D||(D=new N),D.get(i)),C=(i,t,e)=>{const n=parseFloat(i),o=window.devicePixelRatio||1;if(t==="px")return n;if(t==="%"){const a=e===document.documentElement?window.innerWidth:e.offsetWidth;return n/100*a}if(t==="rem"){const a=parseFloat(f(document.documentElement).fontSize);return n*a}if(t==="em"){const a=parseFloat(f(e).fontSize);return n*a}if(t==="vh"||t==="vw"||t==="vmin"||t==="vmax"){const a={vh:window.innerHeight,vw:window.innerWidth,vmin:Math.min(window.innerWidth,window.innerHeight),vmax:Math.max(window.innerWidth,window.innerHeight)};return n/100*a[t]}const s={cm:37.7952755906,mm:3.77952755906,in:96};return t in s?n*s[t]*o:(console.warn("Unable to determine coordinates for drag-in. Therefore drag-in is not possible. Check the CSS that positions the iframe of Roomle"),0)},I=(i,t,e={x:0,y:0})=>{const n=i.getBoundingClientRect(),o=f(i).transform;let s=0,a=0;if(o!=="none"){const _=/translate\(\s*([-+]?\d*\.?\d+|\d+)(px|%)?,?\s*([-+]?\d*\.?\d+|\d+)?(px|%)?\s*\)/,d=o.match(_);d&&(s=C(d[1],d[2],i),a=C(d[3],d[4],i))}const{clientX:r,clientY:l}=v(t,e),h=r-n.left-s+i.scrollLeft,u=l-n.top-a+i.scrollTop;return{x:h,y:u}},v=(i,t)=>{const{clientX:e,clientY:n}=E(i)?k(i):i,o=e||t.x,s=n||t.y;return{clientX:o,clientY:s}},k=i=>{if(i.touches.length){let{clientX:e,clientY:n}=i.touches[0];if(i.touches.length>1){const o=i.touches[1],s=o.clientX,a=o.clientY;e=(e+s)/2,n=(n+a)/2}return{clientX:e,clientY:n}}const t=i.changedTouches[0];return{clientX:t.clientX,clientY:t.clientY}},$=500,L=10;class z{constructor(t,{onTouchDragStart:e},n={}){c(this,"_touchDragTimeOut"),c(this,"_onTouchDragStart"),c(this,"_payload",null),c(this,"_delay",$),c(this,"_firstTouch",null),c(this,"_lastTouch",null),c(this,"_epsilon",L),this._payload=t,this._onTouchDragStart=e,this._delay=n.delay||$,this._epsilon=n.epsilon||L}onTouchStart(t){var e;!t||!((e=t?.touches)!=null&&e.length)||this._touchDragTimeOut||(this._firstTouch=t.touches[t.touches.length-1],this._touchDragTimeOut=setTimeout(()=>{this._clearTimeout(),this._lastTouch||(this._lastTouch=t.touches[0]),this._checkXDistance(t)()},this._delay))}onTouchEnd(){this._resetTouches()}onTouchMove(t){var e;!t||!((e=t?.touches)!=null&&e.length)||(this._lastTouch=t.touches[0])}_clearTimeout(){this._touchDragTimeOut&&(clearTimeout(this._touchDragTimeOut),this._touchDragTimeOut=null)}_resetTouches(){this._clearTimeout(),this._lastTouch=null,this._firstTouch=null,this._payload=null}_checkXDistance(t){return()=>{if(!this._firstTouch||!this._lastTouch)return;let e=!1;e=Math.abs(this._firstTouch.clientX-this._lastTouch.clientX)<this._epsilon,e&&(this._onTouchDragStart(this._payload,t),this._resetTouches())}}}const X="rml-drag-in-styles",F="rml-drag-in-drag-element",g="rml-drag-in-overlay",m="rml-drag-in-drag-ghost",x="rml-drag-in-fade-in",Y="rml-drag-in-fade-out",T={DISPLAY_NONE:"rml-display-none"},M=.5,w="250ms",S="forwards",b=i=>i?!0:(console.warn("No instance set, cancel drag-in"),!1);class A{constructor(t){c(this,"_iframe"),c(this,"_currentDrag",{}),c(this,"_currentTouch",null),c(this,"_firefoxDragPosition",{x:0,y:0}),c(this,"_instance",null),c(this,"options",{}),c(this,"_firefoxFallback",e=>{if(!this._currentDrag.event)return;const n=e||window.event;this._firefoxDragPosition.x=n.pageX||0,this._firefoxDragPosition.y=n.pageY||0}),this._iframe=t,this._injectStyles(),this._initializeDragGhost(),this._firefoxFallback=this._firefoxFallback.bind(this),document.addEventListener("dragover",this._firefoxFallback)}_injectStyles(){if(!document.getElementById(X)){const t=document.createElement("style");t.type="text/css",t.id=X,t.innerHTML=`
|
|
2
|
+
.${T.DISPLAY_NONE}{display:none}
|
|
3
|
+
.${g}{position:absolute;top:0;left:0;width:100%;height:100%;z-index:999;}
|
|
4
|
+
.${m}{position:absolute;top:0;left:0;width:1px;height:1px;z-index:999;pointer-events:none;background-color:transparent;}
|
|
5
|
+
@keyframes ${x} {from{opacity: 0;}to {opacity: ${M};}}
|
|
6
|
+
@keyframes ${Y} {from{opacity: ${M};}to {opacity: 0;}}
|
|
7
|
+
`,document.head.appendChild(t)}}_initializeDragGhost(){const t=this._iframe.parentNode;let e=t.querySelector("."+m);e||(e=document.createElement("div"),e.classList.add(m),e.innerText=" ",t.appendChild(e))}setInstance(t){this._instance=t}dragStart(t,e,n="rml_id"){const o=this._iframe.parentNode;if(f(o).position!=="relative"){console.warn("Parent of iframe should have position relative, otherwise drag-in can not detect the x/y coordinates correctly");return}this._iframe.style.pointerEvents="none";let s=o.querySelector("."+g);s||(s=document.createElement("div"),s.classList.add(g),o.appendChild(s)),s.classList.remove(T.DISPLAY_NONE),e.target.getAttribute("draggable")||console.warn(`Draggable not detected correctly! Did you add draggable="true" to the element? In Sarafi only 'draggable' is too less`);const a=o.querySelector("."+m);this._currentDrag.event=e;const r=e.target.cloneNode();r.style.position="fixed",r.style.pointerEvents="none",r.style.opacity="0",r.style.animation=`${x} ${w} ${S}`,r.id=F,r.style.zIndex="9999",document.body.appendChild(r),this._currentDrag.element=r;const l=e.target.getBoundingClientRect();this._currentDrag.offset||(this._currentDrag.offset={x:0,y:0});const{clientX:h,clientY:u}=v(e,this._firefoxDragPosition);this._currentDrag.offset.x=h-l.left,this._currentDrag.offset.y=u-l.top,r.style.top=u+"px",r.style.left=h+"px",e instanceof DragEvent&&e.dataTransfer&&e.dataTransfer.setDragImage&&e.dataTransfer.setDragImage(a,0,0);const{x:_,y:d}=I(o,this._currentDrag.event||e,this._firefoxDragPosition),p=Math.max(1,_),y=Math.max(1,d);b(this._instance)&&this._instance.dragInObject(t,p,y,n)}dragUpdate(t){var e,n;const o=this._iframe.parentNode,{x:s,y:a}=I(o,t,this._firefoxDragPosition);if(s===0&&a===0)return;const r=Math.max(1,s),l=Math.max(1,a);if(this._currentDrag.element){const{clientX:h,clientY:u}=v(t,this._firefoxDragPosition),_=((e=this._currentDrag.offset)==null?void 0:e.x)||0,d=((n=this._currentDrag.offset)==null?void 0:n.y)||0;this._currentDrag.element.style.left=`${h-_}px`,this._currentDrag.element.style.top=`${u-d}px`;const p=(this.options.dragInOverlapX||0)+1,y=(this.options.dragInOverlapY||0)+1;r>p&&l>y?this._currentDrag.element.style.animation=`${Y} ${w} ${S}`:this._currentDrag.element.style.animation=`${x} ${w} ${S}`}if(!(r===1&&l===1)&&b(this._instance)){let h=r,u=l;if(E(t)){const _=this.options.fingerSize||0;h=Math.max(2,r+_),u=Math.max(2,l-_)}this._instance.updateDrag(h,u)}}dragEnd(){this._iframe.style.pointerEvents="all";const t=this._iframe.parentNode;b(this._instance)&&this._instance.dragInObjectEnd(),this._currentDrag.element&&document.body.removeChild(this._currentDrag.element),this._currentDrag={},this._firefoxDragPosition={x:0,y:0};const e=t.querySelector("."+g);e&&e.classList.add(T.DISPLAY_NONE)}touchStart(t,e,n="rml_id"){var o,s;e.preventDefault();const a=(l,h)=>{this.dragStart(t,h,n)},r={};typeof((o=this.options)==null?void 0:o.touchDragDelay)=="number"&&(r.delay=this.options.touchDragDelay),(s=this.options)!=null&&s.touchDragEpsilon&&(r.epsilon=this.options.touchDragEpsilon),this._currentTouch=new z(void 0,{onTouchDragStart:a},r),this._currentTouch.onTouchStart(e)}touchMove(t){this._currentTouch&&this._currentTouch.onTouchMove(t),this._currentDrag.event&&this.dragUpdate(t)}touchEnd(){this._currentTouch&&this._currentTouch.onTouchEnd(),this._currentTouch=null,this.dragEnd()}dispose(){document.removeEventListener("dragover",this._firefoxFallback)}}export{A as DragIn};
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
var v = Object.defineProperty;
|
|
2
|
+
var P = (n, t, e) => t in n ? v(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
|
|
3
|
+
var c = (n, t, e) => P(n, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
+
class $ {
|
|
5
|
+
constructor(t = 16) {
|
|
6
|
+
c(this, "_computedStyleCache", /* @__PURE__ */ new Map());
|
|
7
|
+
c(this, "_maxLifetime", 16);
|
|
8
|
+
c(this, "_cacheCleanInterval", null);
|
|
9
|
+
this._maxLifetime = t;
|
|
10
|
+
}
|
|
11
|
+
get(t) {
|
|
12
|
+
const e = this._computedStyleCache.get(t), i = Date.now();
|
|
13
|
+
if (e && i - e.updated < this._maxLifetime)
|
|
14
|
+
return e.style;
|
|
15
|
+
const s = getComputedStyle(t);
|
|
16
|
+
return this._computedStyleCache.set(t, { style: s, updated: i }), this._cacheCleanInterval || (this._cacheCleanInterval = setInterval(
|
|
17
|
+
() => this._cleanUpCache,
|
|
18
|
+
Math.max(this._maxLifetime * 1e3, 5e3)
|
|
19
|
+
)), s;
|
|
20
|
+
}
|
|
21
|
+
_cleanUpCache() {
|
|
22
|
+
const t = Date.now();
|
|
23
|
+
for (const [e, { updated: i }] of this._computedStyleCache.entries())
|
|
24
|
+
t - i >= this._maxLifetime && this._computedStyleCache.delete(e);
|
|
25
|
+
this._computedStyleCache.size === 0 && this._cacheCleanInterval && (clearInterval(this._cacheCleanInterval), this._cacheCleanInterval = null);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
const M = (n) => window.TouchEvent && n instanceof window.TouchEvent;
|
|
29
|
+
let D;
|
|
30
|
+
const p = (n) => (D || (D = new $()), D.get(n)), C = (n, t, e) => {
|
|
31
|
+
const i = parseFloat(n), s = window.devicePixelRatio || 1;
|
|
32
|
+
if (t === "px")
|
|
33
|
+
return i;
|
|
34
|
+
if (t === "%") {
|
|
35
|
+
const o = e === document.documentElement ? window.innerWidth : e.offsetWidth;
|
|
36
|
+
return i / 100 * o;
|
|
37
|
+
}
|
|
38
|
+
if (t === "rem") {
|
|
39
|
+
const o = parseFloat(
|
|
40
|
+
p(document.documentElement).fontSize
|
|
41
|
+
);
|
|
42
|
+
return i * o;
|
|
43
|
+
}
|
|
44
|
+
if (t === "em") {
|
|
45
|
+
const o = parseFloat(
|
|
46
|
+
p(e).fontSize
|
|
47
|
+
);
|
|
48
|
+
return i * o;
|
|
49
|
+
}
|
|
50
|
+
if (t === "vh" || t === "vw" || t === "vmin" || t === "vmax") {
|
|
51
|
+
const o = {
|
|
52
|
+
vh: window.innerHeight,
|
|
53
|
+
vw: window.innerWidth,
|
|
54
|
+
vmin: Math.min(window.innerWidth, window.innerHeight),
|
|
55
|
+
vmax: Math.max(window.innerWidth, window.innerHeight)
|
|
56
|
+
};
|
|
57
|
+
return i / 100 * o[t];
|
|
58
|
+
}
|
|
59
|
+
const r = {
|
|
60
|
+
cm: 37.7952755906,
|
|
61
|
+
mm: 3.77952755906,
|
|
62
|
+
in: 96
|
|
63
|
+
};
|
|
64
|
+
return t in r ? i * r[t] * s : (console.warn("Unable to determine coordinates for drag-in. Therefore drag-in is not possible. Check the CSS that positions the iframe of Roomle"), 0);
|
|
65
|
+
}, A = (n, t, e = { x: 0, y: 0 }) => {
|
|
66
|
+
const i = n.getBoundingClientRect(), r = p(n).transform;
|
|
67
|
+
let o = 0, l = 0;
|
|
68
|
+
if (r !== "none") {
|
|
69
|
+
const f = /translate\(\s*([-+]?\d*\.?\d+|\d+)(px|%)?,?\s*([-+]?\d*\.?\d+|\d+)?(px|%)?\s*\)/, d = r.match(f);
|
|
70
|
+
d && (o = C(d[1], d[2], n), l = C(d[3], d[4], n));
|
|
71
|
+
}
|
|
72
|
+
const { clientX: _, clientY: a } = w(t, e), h = _ - i.left - o + n.scrollLeft, u = a - i.top - l + n.scrollTop;
|
|
73
|
+
return { x: h, y: u };
|
|
74
|
+
}, w = (n, t) => {
|
|
75
|
+
const { clientX: e, clientY: i } = M(n) ? G(n) : n, s = e || t.x, r = i || t.y;
|
|
76
|
+
return { clientX: s, clientY: r };
|
|
77
|
+
}, G = (n) => {
|
|
78
|
+
if (n.touches.length) {
|
|
79
|
+
let { clientX: e, clientY: i } = n.touches[0];
|
|
80
|
+
if (n.touches.length > 1) {
|
|
81
|
+
const s = n.touches[1], r = s.clientX, o = s.clientY;
|
|
82
|
+
e = (e + r) / 2, i = (i + o) / 2;
|
|
83
|
+
}
|
|
84
|
+
return { clientX: e, clientY: i };
|
|
85
|
+
}
|
|
86
|
+
const t = n.changedTouches[0];
|
|
87
|
+
return { clientX: t.clientX, clientY: t.clientY };
|
|
88
|
+
}, N = 500, L = 10;
|
|
89
|
+
class z {
|
|
90
|
+
constructor(t, { onTouchDragStart: e }, i = {}) {
|
|
91
|
+
c(this, "_touchDragTimeOut");
|
|
92
|
+
c(this, "_onTouchDragStart");
|
|
93
|
+
c(this, "_payload", null);
|
|
94
|
+
c(this, "_delay", N);
|
|
95
|
+
c(this, "_firstTouch", null);
|
|
96
|
+
c(this, "_lastTouch", null);
|
|
97
|
+
c(this, "_epsilon", L);
|
|
98
|
+
this._payload = t, this._onTouchDragStart = e, this._delay = i.delay || N, this._epsilon = i.epsilon || L;
|
|
99
|
+
}
|
|
100
|
+
onTouchStart(t) {
|
|
101
|
+
var e;
|
|
102
|
+
!t || !((e = t == null ? void 0 : t.touches) != null && e.length) || this._touchDragTimeOut || (this._firstTouch = t.touches[t.touches.length - 1], this._touchDragTimeOut = setTimeout(() => {
|
|
103
|
+
this._clearTimeout(), this._lastTouch || (this._lastTouch = t.touches[0]), this._checkXDistance(t)();
|
|
104
|
+
}, this._delay));
|
|
105
|
+
}
|
|
106
|
+
onTouchEnd() {
|
|
107
|
+
this._resetTouches();
|
|
108
|
+
}
|
|
109
|
+
onTouchMove(t) {
|
|
110
|
+
var e;
|
|
111
|
+
!t || !((e = t == null ? void 0 : t.touches) != null && e.length) || (this._lastTouch = t.touches[0]);
|
|
112
|
+
}
|
|
113
|
+
_clearTimeout() {
|
|
114
|
+
this._touchDragTimeOut && (clearTimeout(this._touchDragTimeOut), this._touchDragTimeOut = null);
|
|
115
|
+
}
|
|
116
|
+
_resetTouches() {
|
|
117
|
+
this._clearTimeout(), this._lastTouch = null, this._firstTouch = null, this._payload = null;
|
|
118
|
+
}
|
|
119
|
+
_checkXDistance(t) {
|
|
120
|
+
return () => {
|
|
121
|
+
if (!this._firstTouch || !this._lastTouch)
|
|
122
|
+
return;
|
|
123
|
+
let e = !1;
|
|
124
|
+
e = Math.abs(
|
|
125
|
+
this._firstTouch.clientX - this._lastTouch.clientX
|
|
126
|
+
) < this._epsilon, e && (this._onTouchDragStart(this._payload, t), this._resetTouches());
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
const O = "rml-drag-in-styles", F = "rml-drag-in-drag-element", g = "rml-drag-in-overlay", m = "rml-drag-in-drag-ghost", T = "rml-drag-in-fade-in", b = "rml-drag-in-fade-out", x = {
|
|
131
|
+
DISPLAY_NONE: "rml-display-none"
|
|
132
|
+
}, Y = 0.5, S = "250ms", I = "forwards", E = (n) => n ? !0 : (console.warn("No instance set, cancel drag-in"), !1);
|
|
133
|
+
class U {
|
|
134
|
+
constructor(t) {
|
|
135
|
+
c(this, "_iframe");
|
|
136
|
+
c(this, "_currentDrag", {});
|
|
137
|
+
c(this, "_currentTouch", null);
|
|
138
|
+
c(this, "_firefoxDragPosition", { x: 0, y: 0 });
|
|
139
|
+
c(this, "_instance", null);
|
|
140
|
+
c(this, "options", {});
|
|
141
|
+
c(this, "_firefoxFallback", (t) => {
|
|
142
|
+
if (!this._currentDrag.event)
|
|
143
|
+
return;
|
|
144
|
+
const e = t || window.event;
|
|
145
|
+
this._firefoxDragPosition.x = e.pageX || 0, this._firefoxDragPosition.y = e.pageY || 0;
|
|
146
|
+
});
|
|
147
|
+
this._iframe = t, this._injectStyles(), this._initializeDragGhost(), this._firefoxFallback = this._firefoxFallback.bind(this), document.addEventListener("dragover", this._firefoxFallback);
|
|
148
|
+
}
|
|
149
|
+
_injectStyles() {
|
|
150
|
+
if (!!!document.getElementById(O)) {
|
|
151
|
+
const e = document.createElement("style");
|
|
152
|
+
e.type = "text/css", e.id = O, e.innerHTML = `
|
|
153
|
+
.${x.DISPLAY_NONE}{display:none}
|
|
154
|
+
.${g}{position:absolute;top:0;left:0;width:100%;height:100%;z-index:999;}
|
|
155
|
+
.${m}{position:absolute;top:0;left:0;width:1px;height:1px;z-index:999;pointer-events:none;background-color:transparent;}
|
|
156
|
+
@keyframes ${T} {from{opacity: 0;}to {opacity: ${Y};}}
|
|
157
|
+
@keyframes ${b} {from{opacity: ${Y};}to {opacity: 0;}}
|
|
158
|
+
`, document.head.appendChild(e);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
_initializeDragGhost() {
|
|
162
|
+
const t = this._iframe.parentNode;
|
|
163
|
+
let e = t.querySelector(
|
|
164
|
+
"." + m
|
|
165
|
+
);
|
|
166
|
+
e || (e = document.createElement("div"), e.classList.add(m), e.innerText = " ", t.appendChild(e));
|
|
167
|
+
}
|
|
168
|
+
setInstance(t) {
|
|
169
|
+
this._instance = t;
|
|
170
|
+
}
|
|
171
|
+
dragStart(t, e, i = "rml_id") {
|
|
172
|
+
const s = this._iframe.parentNode;
|
|
173
|
+
if (p(s).position !== "relative") {
|
|
174
|
+
console.warn(
|
|
175
|
+
"Parent of iframe should have position relative, otherwise drag-in can not detect the x/y coordinates correctly"
|
|
176
|
+
);
|
|
177
|
+
return;
|
|
178
|
+
}
|
|
179
|
+
this._iframe.style.pointerEvents = "none";
|
|
180
|
+
let o = s.querySelector(
|
|
181
|
+
"." + g
|
|
182
|
+
);
|
|
183
|
+
o || (o = document.createElement("div"), o.classList.add(g), s.appendChild(o)), o.classList.remove(x.DISPLAY_NONE), e.target.getAttribute("draggable") || console.warn(
|
|
184
|
+
`Draggable not detected correctly! Did you add draggable="true" to the element? In Sarafi only 'draggable' is too less`
|
|
185
|
+
);
|
|
186
|
+
const _ = s.querySelector(
|
|
187
|
+
"." + m
|
|
188
|
+
);
|
|
189
|
+
this._currentDrag.event = e;
|
|
190
|
+
const a = e.target.cloneNode();
|
|
191
|
+
a.style.position = "fixed", a.style.pointerEvents = "none", a.style.opacity = "0", a.style.animation = `${T} ${S} ${I}`, a.id = F, a.style.zIndex = "9999", document.body.appendChild(a), this._currentDrag.element = a;
|
|
192
|
+
const h = e.target.getBoundingClientRect();
|
|
193
|
+
this._currentDrag.offset || (this._currentDrag.offset = { x: 0, y: 0 });
|
|
194
|
+
const { clientX: u, clientY: f } = w(
|
|
195
|
+
e,
|
|
196
|
+
this._firefoxDragPosition
|
|
197
|
+
);
|
|
198
|
+
this._currentDrag.offset.x = u - h.left, this._currentDrag.offset.y = f - h.top, a.style.top = f + "px", a.style.left = u + "px", e instanceof DragEvent && e.dataTransfer && e.dataTransfer.setDragImage && e.dataTransfer.setDragImage(_, 0, 0);
|
|
199
|
+
const { x: d, y } = A(
|
|
200
|
+
s,
|
|
201
|
+
this._currentDrag.event || e,
|
|
202
|
+
this._firefoxDragPosition
|
|
203
|
+
), R = Math.max(1, d), X = Math.max(1, y);
|
|
204
|
+
E(this._instance) && this._instance.dragInObject(t, R, X, i);
|
|
205
|
+
}
|
|
206
|
+
dragUpdate(t) {
|
|
207
|
+
var l, _;
|
|
208
|
+
const e = this._iframe.parentNode, { x: i, y: s } = A(e, t, this._firefoxDragPosition);
|
|
209
|
+
if (i === 0 && s === 0)
|
|
210
|
+
return;
|
|
211
|
+
const r = Math.max(1, i), o = Math.max(1, s);
|
|
212
|
+
if (this._currentDrag.element) {
|
|
213
|
+
const { clientX: a, clientY: h } = w(
|
|
214
|
+
t,
|
|
215
|
+
this._firefoxDragPosition
|
|
216
|
+
), u = ((l = this._currentDrag.offset) == null ? void 0 : l.x) || 0, f = ((_ = this._currentDrag.offset) == null ? void 0 : _.y) || 0;
|
|
217
|
+
this._currentDrag.element.style.left = `${a - u}px`, this._currentDrag.element.style.top = `${h - f}px`;
|
|
218
|
+
const d = (this.options.dragInOverlapX || 0) + 1, y = (this.options.dragInOverlapY || 0) + 1;
|
|
219
|
+
r > d && o > y ? this._currentDrag.element.style.animation = `${b} ${S} ${I}` : this._currentDrag.element.style.animation = `${T} ${S} ${I}`;
|
|
220
|
+
}
|
|
221
|
+
if (!(r === 1 && o === 1) && E(this._instance)) {
|
|
222
|
+
let a = r, h = o;
|
|
223
|
+
if (M(t)) {
|
|
224
|
+
const u = this.options.fingerSize || 0;
|
|
225
|
+
a = Math.max(2, r + u), h = Math.max(2, o - u);
|
|
226
|
+
}
|
|
227
|
+
this._instance.updateDrag(a, h);
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
dragEnd() {
|
|
231
|
+
this._iframe.style.pointerEvents = "all";
|
|
232
|
+
const t = this._iframe.parentNode;
|
|
233
|
+
E(this._instance) && this._instance.dragInObjectEnd(), this._currentDrag.element && document.body.removeChild(this._currentDrag.element), this._currentDrag = {}, this._firefoxDragPosition = { x: 0, y: 0 };
|
|
234
|
+
const e = t.querySelector(
|
|
235
|
+
"." + g
|
|
236
|
+
);
|
|
237
|
+
e && e.classList.add(x.DISPLAY_NONE);
|
|
238
|
+
}
|
|
239
|
+
touchStart(t, e, i = "rml_id") {
|
|
240
|
+
var o, l;
|
|
241
|
+
e.preventDefault();
|
|
242
|
+
const s = (_, a) => {
|
|
243
|
+
this.dragStart(t, a, i);
|
|
244
|
+
}, r = {};
|
|
245
|
+
typeof ((o = this.options) == null ? void 0 : o.touchDragDelay) == "number" && (r.delay = this.options.touchDragDelay), (l = this.options) != null && l.touchDragEpsilon && (r.epsilon = this.options.touchDragEpsilon), this._currentTouch = new z(
|
|
246
|
+
void 0,
|
|
247
|
+
{
|
|
248
|
+
onTouchDragStart: s
|
|
249
|
+
},
|
|
250
|
+
r
|
|
251
|
+
), this._currentTouch.onTouchStart(e);
|
|
252
|
+
}
|
|
253
|
+
touchMove(t) {
|
|
254
|
+
this._currentTouch && this._currentTouch.onTouchMove(t), this._currentDrag.event && this.dragUpdate(t);
|
|
255
|
+
}
|
|
256
|
+
touchEnd() {
|
|
257
|
+
this._currentTouch && this._currentTouch.onTouchEnd(), this._currentTouch = null, this.dragEnd();
|
|
258
|
+
}
|
|
259
|
+
dispose() {
|
|
260
|
+
document.removeEventListener("dragover", this._firefoxFallback);
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
export {
|
|
264
|
+
U as DragIn
|
|
265
|
+
};
|
package/index.d.ts
CHANGED
|
@@ -1,130 +1,54 @@
|
|
|
1
|
-
import { default as default_2 } from '@roomle/web-sdk/lib/definitions/
|
|
2
|
-
import { default as default_3 } from '@roomle/web-sdk/lib/definitions/
|
|
3
|
-
import { default as default_4 } from '@roomle/web-sdk/lib/definitions/configurator-core/src/
|
|
1
|
+
import { default as default_2 } from '@roomle/web-sdk/lib/definitions/planner-core/src/roomle-planner';
|
|
2
|
+
import { default as default_3 } from '@roomle/web-sdk/lib/definitions/configurator-core/src/services/configurator-ui-callback';
|
|
3
|
+
import { default as default_4 } from '@roomle/web-sdk/lib/definitions/configurator-core/src/roomle-configurator';
|
|
4
4
|
import { default as default_5 } from '@roomle/web-sdk/lib/definitions/glb-viewer-core/src/roomle-glb-viewer';
|
|
5
|
-
import { EmbeddingCommand } from '../../common/src/utils/message-handler';
|
|
6
5
|
import { ExposedAnalyticsCallbacks } from '../../../src/configurator/embedding/exposed-analytics-callbacks';
|
|
7
6
|
import { ExposedApi } from '../../../../src/configurator/embedding/exposed-api';
|
|
8
7
|
import { ExposedApi as ExposedApi_2 } from '../../../src/configurator/embedding/exposed-api';
|
|
9
8
|
import { GlobalCallback } from '@roomle/web-sdk/lib/definitions/common-core/src/services/global-callback';
|
|
10
|
-
import { MessageHandler } from '../../common/src/utils/message-handler';
|
|
11
|
-
import { Nullable } from '../../../src/common/utils/types';
|
|
12
|
-
import { Nullable as Nullable_2 } from '../../../../src/common/utils/types';
|
|
13
|
-
import { OnBeforeUpdateDragGhost } from '../../../../common/src/utils/drag';
|
|
14
|
-
import { OnBeforeUpdateDragGhost as OnBeforeUpdateDragGhost_2 } from '../../../common/src/utils/drag';
|
|
15
|
-
import { PossibleCustomViews } from '../../../src/configurator/embedding/types';
|
|
16
|
-
import { PossibleCustomViewsAndMain } from '../../../src/configurator/embedding/types';
|
|
17
|
-
import { PossibleCustomViewsAndMain as PossibleCustomViewsAndMain_2 } from '../../../../src/configurator/embedding/types';
|
|
18
9
|
import { RapiId } from '@roomle/web-sdk/lib/definitions/typings/rapi-types';
|
|
19
10
|
import { UiInitData } from '../../../src/configurator/embedding/types';
|
|
20
11
|
|
|
21
|
-
declare
|
|
22
|
-
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
declare class Connector<SdkType, SdkCallbacks> implements RoomleEmbeddingApiKeys {
|
|
26
|
-
protected _messageHandler: Nullable<MessageHandler>;
|
|
27
|
-
isSetupDone: boolean;
|
|
28
|
-
viewName: PossibleCustomViewsAndMain;
|
|
29
|
-
plugins: AvailablePlugins;
|
|
30
|
-
pluginsLoaded: Array<Promise<void>>;
|
|
31
|
-
ui: ExposedApi_2;
|
|
32
|
-
extended: SdkType;
|
|
33
|
-
configurator: default_2;
|
|
34
|
-
analytics: {
|
|
35
|
-
callbacks: ExposedAnalyticsCallbacks;
|
|
36
|
-
};
|
|
37
|
-
global: {
|
|
38
|
-
callbacks: GlobalCallback;
|
|
39
|
-
};
|
|
40
|
-
setMessageHandler(messageHandler: MessageHandler): void;
|
|
41
|
-
handleSetup(methodsAndCallbacks: {
|
|
42
|
-
methods: string[];
|
|
43
|
-
callbacks: string[];
|
|
44
|
-
}): void;
|
|
45
|
-
executeMessage({ message, args }: EmbeddingCommand): Promise<{
|
|
46
|
-
result: any;
|
|
47
|
-
}>;
|
|
48
|
-
setupPlugins(plugins: PluginDefinitions, iframe: HTMLIFrameElement | HTMLBodyElement, mode?: EmbeddingPluginMode): void;
|
|
12
|
+
declare interface AvailablePlugins {
|
|
13
|
+
dragIn?: DragIn;
|
|
49
14
|
}
|
|
50
15
|
|
|
51
|
-
declare class DragIn
|
|
52
|
-
|
|
53
|
-
private
|
|
54
|
-
private
|
|
16
|
+
declare class DragIn {
|
|
17
|
+
private _iframe;
|
|
18
|
+
private _currentDrag;
|
|
19
|
+
private _currentTouch;
|
|
20
|
+
private _firefoxDragPosition;
|
|
21
|
+
private _instance;
|
|
22
|
+
options: {
|
|
23
|
+
dragInOverlapX?: number;
|
|
24
|
+
dragInOverlapY?: number;
|
|
25
|
+
fingerSize?: number;
|
|
26
|
+
touchDragDelay?: number;
|
|
27
|
+
touchDragEpsilon?: number;
|
|
28
|
+
};
|
|
55
29
|
private _injectStyles;
|
|
56
30
|
private _initializeDragGhost;
|
|
57
|
-
constructor(
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
31
|
+
constructor(iframe: HTMLIFrameElement);
|
|
32
|
+
setInstance(instance: ExposedApi): void;
|
|
33
|
+
private _firefoxFallback;
|
|
34
|
+
dragStart(id: RapiId, event: DragEvent | TouchEvent, type?: string): void;
|
|
35
|
+
dragUpdate(event: DragEvent | TouchEvent): void;
|
|
61
36
|
dragEnd(): void;
|
|
62
37
|
touchStart(id: RapiId, event: TouchEvent, type?: string): void;
|
|
63
38
|
touchMove(event: TouchEvent): void;
|
|
64
39
|
touchEnd(): void;
|
|
65
40
|
dispose(): void;
|
|
66
|
-
beforeUpdateGhost(handler: OnBeforeUpdateDragGhost_2): void;
|
|
67
|
-
registerCustomDrag({ customDragStart, customDragEnd, customDragUpdate, beforeUpdateGhost, }: {
|
|
68
|
-
customDragStart: (event: MouseEvent | TouchEvent) => void;
|
|
69
|
-
customDragEnd: (event: MouseEvent | TouchEvent) => void;
|
|
70
|
-
customDragUpdate: (event: MouseEvent | TouchEvent) => void;
|
|
71
|
-
beforeUpdateGhost?: OnBeforeUpdateDragGhost_2;
|
|
72
|
-
}): void;
|
|
73
|
-
unregisterCustomDrag(): void;
|
|
74
|
-
releaseInput(event: DragEvent | TouchEvent | MouseEvent): void;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
declare interface DragInOptions {
|
|
78
|
-
dragInOverlapX?: number;
|
|
79
|
-
dragInOverlapY?: number;
|
|
80
|
-
fingerSize?: number;
|
|
81
|
-
touchDragDelay?: number;
|
|
82
|
-
touchDragEpsilon?: number;
|
|
83
|
-
customDragDelay?: number;
|
|
84
|
-
customDragEpsilon?: number;
|
|
85
41
|
}
|
|
86
42
|
|
|
87
|
-
declare interface DragInStrategy {
|
|
88
|
-
isDragging: boolean;
|
|
89
|
-
dragStart(id: RapiId, event: DragEvent | TouchEvent | MouseEvent, type: string): void;
|
|
90
|
-
dragUpdate(event: DragEvent | TouchEvent | MouseEvent): void;
|
|
91
|
-
dragEnd(): void;
|
|
92
|
-
touchStart(id: RapiId, event: TouchEvent, type: string): void;
|
|
93
|
-
touchMove(event: TouchEvent): void;
|
|
94
|
-
touchEnd(): void;
|
|
95
|
-
beforeUpdateGhost(handler: OnBeforeUpdateDragGhost): any;
|
|
96
|
-
releaseInput(event: DragEvent | TouchEvent | MouseEvent): void;
|
|
97
|
-
dispose(): void;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
declare class EmbeddingPlugin {
|
|
101
|
-
protected _mainDomElement: HTMLIFrameElement | HTMLBodyElement;
|
|
102
|
-
protected _instance: Nullable_2<ExposedApi>;
|
|
103
|
-
protected _mode: EmbeddingPluginMode;
|
|
104
|
-
protected _viewName: PossibleCustomViewsAndMain_2;
|
|
105
|
-
constructor(instance: ExposedApi, iframe: HTMLIFrameElement | HTMLBodyElement, mode: EmbeddingPluginMode, viewName: PossibleCustomViewsAndMain_2);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
declare type EmbeddingPluginMode = 'website' | 'custom-view';
|
|
109
|
-
|
|
110
|
-
declare type PluginConstructors = {
|
|
111
|
-
[K in keyof PluginMap]: PluginMap[K];
|
|
112
|
-
};
|
|
113
|
-
|
|
114
43
|
declare type PluginDefinitions = Array<keyof AvailablePlugins | {
|
|
115
44
|
name: keyof AvailablePlugins;
|
|
116
|
-
loader: () => Promise<
|
|
45
|
+
loader: () => Promise<any>;
|
|
117
46
|
}>;
|
|
118
47
|
|
|
119
|
-
declare
|
|
120
|
-
dragIn: typeof DragIn;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
declare type RoomleConfiguratorApi = RoomleEmbeddingApi<default_2, default_4>;
|
|
48
|
+
declare type RoomleConfiguratorApi = RoomleEmbeddingApi<default_4, default_3>;
|
|
124
49
|
|
|
125
|
-
declare class RoomleEmbeddingApi<SdkType, SdkCallbacks>
|
|
50
|
+
declare class RoomleEmbeddingApi<SdkType, SdkCallbacks> implements RoomleEmbeddingApiKeys {
|
|
126
51
|
static createPlanner(configuratorId: string, container: HTMLElement, initData: UiInitData, plugins?: PluginDefinitions): Promise<RoomlePlannerApi>;
|
|
127
|
-
static connect(customView: PossibleCustomViews, plugins?: PluginDefinitions): Promise<Connector<default_2, default_4>>;
|
|
128
52
|
/**
|
|
129
53
|
* Method to create a new instance of a Roomle Configurator
|
|
130
54
|
* @param configuratorId the id which identifies your configurator, you will get this ID from your Roomle Contact Person
|
|
@@ -148,11 +72,23 @@ declare class RoomleEmbeddingApi<SdkType, SdkCallbacks> extends Connector<SdkTyp
|
|
|
148
72
|
*/
|
|
149
73
|
static createViewer(configuratorId: string, container: HTMLElement, initData: UiInitData, plugins?: PluginDefinitions): Promise<RoomleViewerApi>;
|
|
150
74
|
private static _create;
|
|
75
|
+
ui: ExposedApi_2;
|
|
76
|
+
extended: SdkType;
|
|
77
|
+
configurator: default_4;
|
|
78
|
+
analytics: {
|
|
79
|
+
callbacks: ExposedAnalyticsCallbacks;
|
|
80
|
+
};
|
|
81
|
+
global: {
|
|
82
|
+
callbacks: GlobalCallback;
|
|
83
|
+
};
|
|
84
|
+
plugins: AvailablePlugins;
|
|
151
85
|
private _waitForIframe;
|
|
152
86
|
private _container;
|
|
87
|
+
private _messageHandler;
|
|
153
88
|
private _configuratorSettings;
|
|
154
89
|
private _initData;
|
|
155
90
|
private _iframe;
|
|
91
|
+
pluginsLoaded: Array<Promise<void>>;
|
|
156
92
|
private constructor();
|
|
157
93
|
teardown(): void;
|
|
158
94
|
private _createIframe;
|
|
@@ -171,8 +107,8 @@ declare interface RoomleEmbeddingApiKeys {
|
|
|
171
107
|
global: any;
|
|
172
108
|
}
|
|
173
109
|
|
|
174
|
-
declare type RoomlePlannerApi = RoomleEmbeddingApi<
|
|
110
|
+
declare type RoomlePlannerApi = RoomleEmbeddingApi<default_2, default_3>;
|
|
175
111
|
|
|
176
|
-
declare type RoomleViewerApi = RoomleEmbeddingApi<default_5,
|
|
112
|
+
declare type RoomleViewerApi = RoomleEmbeddingApi<default_5, default_3>;
|
|
177
113
|
|
|
178
114
|
export { }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@roomle/embedding-lib",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.7.0-alpha.1",
|
|
4
4
|
"description": "This is a small library which can be used to communicate with the Roomle Configurator",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./roomle-embedding-lib.umd.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"npm": "8.3.1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@roomle/web-sdk": "2.88.
|
|
32
|
+
"@roomle/web-sdk": "2.88.1-alpha.1"
|
|
33
33
|
},
|
|
34
34
|
"repository": {
|
|
35
35
|
"type": "git",
|