From 6ee4224a5e0d58c9ce023d444d995ccfc926f3c8 Mon Sep 17 00:00:00 2001 From: ShenXiaowei Date: Thu, 23 Nov 2023 14:47:35 +0800 Subject: [PATCH] feat: 2.0.6 --- build/index.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build/index.js b/build/index.js index bd2c4c4..c49637e 100644 --- a/build/index.js +++ b/build/index.js @@ -1 +1 @@ -import e from"array-from";var t=function(){return t=Object.assign||function(e){for(var t,n=1,i=arguments.length;i>n;n++)for(var r in t=arguments[n])({}).hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},t.apply(this,arguments)};function n(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;o>r;r++)!i&&r in t||(i||(i=[].slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||[].slice.call(t))}var i=function(e){try{return e()}catch(e){return}},r=function(e){return"number"===g(e)},o=function(e){return"object"===g(e)&&!function(e){return s(["undefined","null"],g(e))}(e)},a=function(e){return Array.isArray(e)&&"array"===g(e)},u=function(e,t){var n=-1;if(a(e))for(var i=0;i=0},c=e,l=function(e){return o(e)?Object.keys(e):[]},d=function(e){return a(e)?0===e.length:o(e)?0===l(e).length:!e},f=function(e){if(a(e)){for(var t=0,n=[],i=0,r=e;it;if(n>t)return!0;for(var i=0;i0?t:void 0):""},F=/[^/]*.(bmp|jpg|jpeg|png|gif|svg|psd|webp|apng)/gi,M=function(e,t){switch(t){case"a":return function(e){if(T(e,"href")){var t=S(e,"href");if(t&&0!==t.indexOf("javascript"))return t.slice(0,320)}return""}(e);case"img":return function(e){var t=e.src;if(t&&-1===t.indexOf("data:image")){var n=t.match(F),i=d(n)?"":n[0];if(i.indexOf("%")>-1){var r=function(e,t){var n=-1;if(a(e))for(var i=0;i0&&t.every((function(e){return function(e){if("svg"===e.tagName)return!0;var t=H(e);if(d(t))return!0;var n=W(e);return!(!d(t)&&!n)}(e)}))}(e)&&!z(e)?R(V(e)):z(e)?R($(e)):""},Y=function(e,t){for(var n=e.parentElement;n&&!A(n);){if(t(n))return n;n=n.parentElement}},V=function(e){var t=H(e);return f(t.map((function(e){var t=B(e);if(W(e)&&t)return t}))).join(" ")},$=function(e){var t;return H(e).some((function(e){var n,i=Z(e,null===(n=e.tagName)||void 0===n?void 0:n.toLowerCase());return!!i&&(t=i,!0)})),t},K=function(e,t){return s(["checkbox","radio"],e.type)?"".concat(t).concat((n=e.checked,"boolean"===g(n)?"("+e.checked+")":"")):t;var n},q=function e(t,r,o,a,l){void 0===a&&(a=!0),void 0===l&&(l=[]);var f=this;this.originNode=t,this.deviceInfo=r,this.actionType=o,this.trackable=a,this.parentNodes=l,this._getIndex=function(){if(T(f.originNode,C)){var e=S(f.originNode,C);return/^\d{1,10}$/.test(e)&&e-0>0&&2147483647>e-0?+e:void(0>f.actionType.indexOf("circle")&&(l="".concat(e,",index标记应为 大于 0 且小于 2147483647 的整数!"),"warn",console.log("%c [GrowingIO]:".concat(l),"color: #F59E0B;")))}if(s(["dd","dt"],f.tagName)){var t=X(f.originNode),i=t?H(t):[];if("dl"===t.tagName.toLowerCase()&&i.length>0){if("dd"===f.tagName){var r=u(i,(function(e){return e.isSameNode(f.originNode)}));if(r>-1)return(o=i.slice(0,r).filter((function(e){return"dt"===e.tagName.toLowerCase()}))).length-1+1}if("dt"===f.tagName){var o=i.filter((function(e){return"dt"===e.tagName.toLowerCase()}));return u(o,(function(e){return e.isSameNode(f.originNode)}))+1}}}if(f.isPureList){var a=u(f._pureList,(function(e){return e.isSameNode(f.originNode)}));return a>-1?(f.peerNodes=n([],f._pureList,!0),f.peerNodes.splice(a,1),a+1):void 0}if(f.isPseudoList){var c=u(f._pseudoList,(function(e){return e.isSameNode(f.originNode)}));return c>-1?(f.peerNodes=n([],f._pseudoList,!0),f.peerNodes.splice(c,1),c+1):void 0}var l},this._getSiblingNode=function(e,t){var n,r=X(e);if(!r)return[];for(var o=null!==(n=i((function(){return c(r.children)})))&&void 0!==n?n:[],a=[],u=0;ue.length||!s(w,f.tagName)||(f._pureList=e,0))},this._getIsInPseudoList=function(){if(s(["th","td"],f.tagName))return!1;var e=f._getSiblingNode(f.originNode,(function(e,t){var n=e.tagName===t.tagName&&e.className===t.className,i=H(e),r=H(t),o=i.every((function(e,t){var n,i;return(null==e?void 0:e.tagName)===(null===(n=r[t])||void 0===n?void 0:n.tagName)&&(null==e?void 0:e.className)===(null===(i=r[t])||void 0===i?void 0:i.className)})),a=i.length===r.length&&o;return n&&a}));return e.length>=3&&(f._pseudoList=e,!0)},this._getClassList=function(e){var t;if(T(e,"name")&&S(e,"name"))return[S(e,"name")];var n=(null!==(t=S(e,"class"))&&void 0!==t?t:"").trim().split(" ");return d(n)?[]:n.filter((function(e){return e&&!E.test(e)&&y.test(e)})).sort()},this._getCurrentXpath=function(){return"/".concat(f.tagName).concat(f.id?"#"+f.id:"").concat(d(f.classList)?"":"."+f.classList.join("."))},this._getIsContainer=function(){return T(f.originNode,k)||s(L,f.tagName)||"input"===f.tagName&&s(v,f.originNode.type)},this._getContent=function(){f.content=Z(f.originNode,f.tagName)},this._getIsOutFlow=function(){var e=window.getComputedStyle(f.originNode).position;return s(["fixed","sticky"],e)},this._getRect=function(){var e=f.originNode.getBoundingClientRect(),t=e.top,n=e.bottom,i=e.left,r=e.right-i,o=n-t,a=f.deviceInfo,u=a.winHeight,s=a.winWidth;return t+o>u&&(o=u-t),i+r>s&&(r=s-i),{top:t,left:i,width:r,height:o}},this._getViewStatus=function(e){var t=window.getComputedStyle(f.originNode),i=t.opacity,r=t.visibility,o=t.display,a=t.width,u=t.height,c=f.rect,l=c.top,d=c.left,g=c.width,h=c.height,v=f.deviceInfo,p=v.winWidth,N=v.winHeight;if(0===Number(i)||"hidden"===r||"none"===o||"0px"===a||0===f.originNode.clientWidth||"0px"===u||0===f.originNode.clientHeight)return"HIDDEN";var m=n([],e,!0).find((function(e){return e.trackable&&s(["DISPLAYED","OBSCURED"],e.viewStatus)}));if(m)return m.viewStatus;var w=function(e,t){return document.elementFromPoint(e,t)===f.originNode};return N>l&&p>d&&g>0&&h>0?w(d+g/2,l+h/2)||w(d+1,l+1)||w(d+g-1,l+1)||w(d+1,l+h-1)||w(d+g-1,l+h-1)?"DISPLAYED":0>l+h||0>d+g?"OUTSIDE":"OBSCURED":"OUTSIDE"},this._getTriggerEvent=function(){return"input"===f.tagName&&s(m,f.originNode.type)||s(["select","textarea"],f.tagName)?"VIEW_CHANGE":"VIEW_CLICK"},this._getXParents=function(t,n){var i=t.parentElement,r=[];return n.length>0?r.push.apply(r,n):i&&!A(i)&&(r.push(new e(i,void 0,f.actionType,D(i,f.actionType))),i=i.parentElement),r},this.tagName=t.tagName.toLocaleLowerCase(),this.classList=this._getClassList(t),this.id=t.id,this.currentXpath=this._getCurrentXpath(),this.isIgnored=T(this.originNode,_),this.isContainer=this._getIsContainer(),this.isPureList=this._getIsPureList(),this.isPseudoList=this._getIsInPseudoList(),this.index=this._getIndex(),this.hyperlink=M(t,this.tagName),this.content=Z(this.originNode,this.tagName),this.triggerEvent=this._getTriggerEvent(),this.isOutFlow=this._getIsOutFlow(),r&&(this.rect=this._getRect(),this.viewStatus=this._getViewStatus(l)),this.xParents=this._getXParents(t,l)},J=function e(t,n,i,o,a){var u=this;this.origin=t,this.action=n,this.lengthThreshold=i,this.deviceInfo=o,this.parentNode=a,this.trackNodes=function(){var e;if(!u.trackable)return[];var t=[u.xNode];if(s(["click","circleClick","change"],u.actionType))for(var n=u._getParent();n;){if(!(null==n?void 0:n.xNode)||(null===(e=n.xNode)||void 0===e?void 0:e.isIgnored))return[];n.trackable&&t.push(n.xNode),n=n._getParent()}var i,o=[];return t.reverse().forEach((function(e,n){if(T(e.originNode,k)&&(o=[],i=void 0),r(e.index)&&!r(i)&&(i=e.index),r(i)&&(e.index=i),n===t.length-1)o.push(u.getGioNodeInfo(e));else{var a=e.isPureList||e.isPseudoList;(e.isContainer||a)&&o.push(u.getGioNodeInfo(e))}})),o},this.getGioNodeInfo=function(e){var t=u.computeXpath(e),n=t.skeleton,i=t.fullXpath,r=t.xcontent,o=e.hyperlink,a=e.index,s=e.peerNodes,c=e.content,l=e.triggerEvent,d=e.originNode;return{skeleton:n,xpath:n,fullXpath:i,xcontent:r,hyperlink:o,index:a,peerNodes:null!=s?s:[],content:R(c),triggerEvent:l,originNode:d}},this.computeXpath=function(e){var t,n="/"+e.tagName,i=e.currentXpath,r="/"+((e.id?"#"+e.id:"")+(d(e.classList)?"":"."+e.classList.join("."))||"-");return null===(t=e.xParents)||void 0===t||t.forEach((function(e,t){if(i=e.currentXpath+i,t-1||(null===(a=null==e?void 0:e.id)||void 0===a?void 0:a.indexOf("__giokit"))>-1)return!1;var c=new J(e,"circleClick",g.xpathThreshold,g.deviceInfo,n),l=c.xNode;if(l.zLevel=g._getZLevel(e,t),c.trackable&&(s(["DISPLAYED","OBSCURED"],l.viewStatus)||i)){if(t.index&&(l.index=t.index),Q.find((function(e){return e.originNode.isSameNode(l.originNode)})))return!1;if("DISPLAYED"===l.viewStatus){var f=g._getGioHybridNodeInfo(c,t);Q.push(f)}else"OBSCURED"===l.viewStatus&&(l.isContainer||i)&&(f=g._getGioHybridNodeInfo(c,t),Q.push(f));if(G(e)||l.isContainer&&W(e))return!1}d(H(e))||g._getTrackElements(e,null!==(u=c.xNode)&&void 0!==u?u:t,c,i)}))},this._getZLevel=function(e,t){var n=window.getComputedStyle(e),i=n.position,r=n.zIndex;if("auto"!==r){var o=Number(r||0);return(Number.isNaN(o)?0:o)+t.zLevel}switch(i){case"relative":return t.zLevel+2;case"sticky":return t.zLevel+3;case"absolute":return t.zLevel+4;case"fixed":return t.zLevel+5;default:return t.zLevel+1}},this._getGioHybridNodeInfo=function(e,n){var i=e.xNode,r=i.rect,o=i.zLevel,a=e.getGioNodeInfo(i),u=a.hyperlink,s={};return l(r).forEach((function(e){return s[e]=r[e]*g.deviceInfo.scale})),s.top+=g.deviceInfo.webviewTop,s.left+=g.deviceInfo.webviewLeft,t(t(t({},s),a),{zLevel:o+g.deviceInfo.webviewZLevel,href:u,parentXPath:n.trackable?e.computeXpath(n).xpath:void 0})},this.xpathThreshold=n,this.deviceInfo=(r=(i=e).webviewLeft,o=i.webviewTop,a=i.webviewWidth,u=i.webviewHeight,c=i.webviewZLevel,f=a/window.innerWidth,{winWidth:window.innerWidth,winHeight:window.innerHeight,scale:f,webviewTop:o,webviewLeft:r,webviewWidth:a,webviewHeight:u,webviewZLevel:c})};export{ee as GioHybridNode,J as GioWebNode}; +import e from"array-from";var t=function(){return t=Object.assign||function(e){for(var t,n=1,i=arguments.length;i>n;n++)for(var r in t=arguments[n])({}).hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},t.apply(this,arguments)};function n(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;o>r;r++)!i&&r in t||(i||(i=[].slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||[].slice.call(t))}var i=function(e){try{return e()}catch(e){return}},r=function(e){return"number"===g(e)},o=function(e){return"object"===g(e)&&!function(e){return s(["undefined","null"],g(e))}(e)},a=function(e){return Array.isArray(e)&&"array"===g(e)},u=function(e,t){var n=-1;if(a(e))for(var i=0;i=0},c=e,l=function(e){return o(e)?Object.keys(e):[]},d=function(e){return a(e)?0===e.length:o(e)?0===l(e).length:!e},f=function(e){if(a(e)){for(var t=0,n=[],i=0,r=e;it;if(n>t)return!0;for(var i=0;i0?t:void 0):""},F=/[^/]*.(bmp|jpg|jpeg|png|gif|svg|psd|webp|apng)/gi,M=function(e,t){switch(t){case"a":return function(e){if(T(e,"href")){var t=S(e,"href");if(t&&0!==t.indexOf("javascript"))return t.slice(0,320)}return""}(e);case"img":return function(e){var t=e.src;if(t&&-1===t.indexOf("data:image")){var n=t.match(F),i=d(n)?"":n[0];if(i.indexOf("%")>-1){var r=function(e,t){var n=-1;if(a(e))for(var i=0;i0&&t.every((function(e){return function(e){if("svg"===e.tagName)return!0;var t=H(e);if(d(t))return!0;var n=W(e);return!(!d(t)&&!n)}(e)}))}(e)&&!z(e)?R(V(e)):z(e)?R($(e)):""},Y=function(e,t){for(var n=e.parentElement;n&&!A(n);){if(t(n))return n;n=n.parentElement}},V=function(e){var t=H(e);return f(t.map((function(e){var t=B(e);if(W(e)&&t)return t}))).join(" ")},$=function(e){var t;return H(e).some((function(e){var n,i=Z(e,null===(n=e.tagName)||void 0===n?void 0:n.toLowerCase());return!!i&&(t=i,!0)})),t},K=function(e,t){return s(["checkbox","radio"],e.type)?"".concat(t).concat((n=e.checked,"boolean"===g(n)?"("+e.checked+")":"")):t;var n},q=function e(t,r,o,a,l){void 0===a&&(a=!0),void 0===l&&(l=[]);var f=this;this.originNode=t,this.deviceInfo=r,this.actionType=o,this.trackable=a,this.parentNodes=l,this._getIndex=function(){if(T(f.originNode,C)){var e=S(f.originNode,C);return/^\d{1,10}$/.test(e)&&e-0>0&&2147483647>e-0?+e:void(0>f.actionType.indexOf("circle")&&(l="".concat(e,",index标记应为 大于 0 且小于 2147483647 的整数!"),"warn",console.log("%c [GrowingIO]:".concat(l),"color: #F59E0B;")))}if(s(["dd","dt"],f.tagName)){var t=X(f.originNode),i=t?H(t):[];if("dl"===t.tagName.toLowerCase()&&i.length>0){if("dd"===f.tagName){var r=u(i,(function(e){return e.isSameNode(f.originNode)}));if(r>-1)return(o=i.slice(0,r).filter((function(e){return"dt"===e.tagName.toLowerCase()}))).length-1+1}if("dt"===f.tagName){var o=i.filter((function(e){return"dt"===e.tagName.toLowerCase()}));return u(o,(function(e){return e.isSameNode(f.originNode)}))+1}}}if(f.isPureList){var a=u(f._pureList,(function(e){return e.isSameNode(f.originNode)}));return a>-1?(f.peerNodes=n([],f._pureList,!0),f.peerNodes.splice(a,1),a+1):void 0}if(f.isPseudoList){var c=u(f._pseudoList,(function(e){return e.isSameNode(f.originNode)}));return c>-1?(f.peerNodes=n([],f._pseudoList,!0),f.peerNodes.splice(c,1),c+1):void 0}var l},this._getSiblingNode=function(e,t){var n,r=X(e);if(!r)return[];for(var o=null!==(n=i((function(){return c(r.children)})))&&void 0!==n?n:[],a=[],u=0;ue.length||!s(w,f.tagName)||(f._pureList=e,0))},this._getIsInPseudoList=function(){if(s(["th","td"],f.tagName))return!1;var e=f._getSiblingNode(f.originNode,(function(e,t){var n=e.tagName===t.tagName&&e.className===t.className,i=H(e),r=H(t),o=i.every((function(e,t){var n,i;return(null==e?void 0:e.tagName)===(null===(n=r[t])||void 0===n?void 0:n.tagName)&&(null==e?void 0:e.className)===(null===(i=r[t])||void 0===i?void 0:i.className)})),a=i.length===r.length&&o;return n&&a}));return e.length>=3&&(f._pseudoList=e,!0)},this._getClassList=function(e){var t;if(T(e,"name")&&S(e,"name"))return[S(e,"name")];var n=(null!==(t=S(e,"class"))&&void 0!==t?t:"").trim().split(" ");return d(n)?[]:n.filter((function(e){return e&&!E.test(e)&&y.test(e)})).sort()},this._getCurrentXpath=function(){return"/".concat(f.tagName).concat(f.id?"#"+f.id:"").concat(d(f.classList)?"":"."+f.classList.join("."))},this._getIsContainer=function(){return T(f.originNode,k)||s(L,f.tagName)||"input"===f.tagName&&s(v,f.originNode.type)},this._getContent=function(){f.content=Z(f.originNode,f.tagName)},this._getIsOutFlow=function(){var e=window.getComputedStyle(f.originNode).position;return s(["fixed","sticky"],e)},this._getRect=function(){var e=f.originNode.getBoundingClientRect(),t=e.top,n=e.bottom,i=e.left,r=e.right-i,o=n-t,a=f.deviceInfo,u=a.winHeight,s=a.winWidth;return t+o>u&&(o=u-t),i+r>s&&(r=s-i),{top:t,left:i,width:r,height:o}},this._getViewStatus=function(e){var t=window.getComputedStyle(f.originNode),i=t.opacity,r=t.visibility,o=t.display,a=t.width,u=t.height,c=f.rect,l=c.top,d=c.left,g=c.width,h=c.height,v=f.deviceInfo,p=v.winWidth,N=v.winHeight;if(0===Number(i)||"hidden"===r||"none"===o||"0px"===a||0===f.originNode.clientWidth||"0px"===u||0===f.originNode.clientHeight)return"HIDDEN";var m=n([],e,!0).find((function(e){return e.trackable&&s(["DISPLAYED","OBSCURED"],e.viewStatus)}));if(m)return m.viewStatus;var w=function(e,t){return document.elementFromPoint(e,t)===f.originNode};return N>l&&p>d&&g>0&&h>0?w(d+g/2,l+h/2)||w(d+1,l+1)||w(d+g-1,l+1)||w(d+1,l+h-1)||w(d+g-1,l+h-1)?"DISPLAYED":0>l+h||0>d+g?"OUTSIDE":"OBSCURED":"OUTSIDE"},this._getTriggerEvent=function(){return"input"===f.tagName&&s(m,f.originNode.type)||s(["select","textarea"],f.tagName)?"VIEW_CHANGE":"VIEW_CLICK"},this._getXParents=function(t,n){var i=t.parentElement,r=[];if(n.length>0)r.push.apply(r,n);else if(i&&!A(i)){var o=new e(i,void 0,f.actionType,D(i,f.actionType));r.push(o),o.xParents&&r.push.apply(r,o.xParents)}return r},this.tagName=t.tagName.toLocaleLowerCase(),this.classList=this._getClassList(t),this.id=t.id,this.currentXpath=this._getCurrentXpath(),this.isIgnored=T(this.originNode,_),this.isContainer=this._getIsContainer(),this.isPureList=this._getIsPureList(),this.isPseudoList=this._getIsInPseudoList(),this.index=this._getIndex(),this.hyperlink=M(t,this.tagName),this.content=Z(this.originNode,this.tagName),this.triggerEvent=this._getTriggerEvent(),this.isOutFlow=this._getIsOutFlow(),r&&(this.rect=this._getRect(),this.viewStatus=this._getViewStatus(l)),this.xParents=this._getXParents(t,l)},J=function e(t,n,i,o,a){var u=this;this.origin=t,this.action=n,this.lengthThreshold=i,this.deviceInfo=o,this.parentNode=a,this.trackNodes=function(){var e;if(!u.trackable)return[];var t=[u.xNode];if(s(["click","circleClick","change"],u.actionType))for(var n=u._getParent();n;){if(!(null==n?void 0:n.xNode)||(null===(e=n.xNode)||void 0===e?void 0:e.isIgnored))return[];n.trackable&&t.push(n.xNode),n=n._getParent()}var i,o=[];return t.reverse().forEach((function(e,n){if(T(e.originNode,k)&&(o=[],i=void 0),r(e.index)&&!r(i)&&(i=e.index),r(i)&&(e.index=i),n===t.length-1)o.push(u.getGioNodeInfo(e));else{var a=e.isPureList||e.isPseudoList;(e.isContainer||a)&&o.push(u.getGioNodeInfo(e))}})),o},this.getGioNodeInfo=function(e){var t=u.computeXpath(e),n=t.skeleton,i=t.fullXpath,r=t.xcontent,o=e.hyperlink,a=e.index,s=e.peerNodes,c=e.content,l=e.triggerEvent,d=e.originNode;return{skeleton:n,xpath:n,fullXpath:i,xcontent:r,hyperlink:o,index:a,peerNodes:null!=s?s:[],content:R(c),triggerEvent:l,originNode:d}},this.computeXpath=function(e){var t,n="/"+e.tagName,i=e.currentXpath,r="/"+((e.id?"#"+e.id:"")+(d(e.classList)?"":"."+e.classList.join("."))||"-");return null===(t=e.xParents)||void 0===t||t.forEach((function(e,t){if(i=e.currentXpath+i,t-1||(null===(a=null==e?void 0:e.id)||void 0===a?void 0:a.indexOf("__giokit"))>-1)return!1;var c=new J(e,"circleClick",g.xpathThreshold,g.deviceInfo,n),l=c.xNode;if(l.zLevel=g._getZLevel(e,t),c.trackable&&(s(["DISPLAYED","OBSCURED"],l.viewStatus)||i)){if(t.index&&(l.index=t.index),Q.find((function(e){return e.originNode.isSameNode(l.originNode)})))return!1;if("DISPLAYED"===l.viewStatus){var f=g._getGioHybridNodeInfo(c,t);Q.push(f)}else"OBSCURED"===l.viewStatus&&(l.isContainer||i)&&(f=g._getGioHybridNodeInfo(c,t),Q.push(f));if(G(e)||l.isContainer&&W(e))return!1}d(H(e))||g._getTrackElements(e,null!==(u=c.xNode)&&void 0!==u?u:t,c,i)}))},this._getZLevel=function(e,t){var n=window.getComputedStyle(e),i=n.position,r=n.zIndex;if("auto"!==r){var o=Number(r||0);return(Number.isNaN(o)?0:o)+t.zLevel}switch(i){case"relative":return t.zLevel+2;case"sticky":return t.zLevel+3;case"absolute":return t.zLevel+4;case"fixed":return t.zLevel+5;default:return t.zLevel+1}},this._getGioHybridNodeInfo=function(e,n){var i=e.xNode,r=i.rect,o=i.zLevel,a=e.getGioNodeInfo(i),u=a.hyperlink,s={};return l(r).forEach((function(e){return s[e]=r[e]*g.deviceInfo.scale})),s.top+=g.deviceInfo.webviewTop,s.left+=g.deviceInfo.webviewLeft,t(t(t({},s),a),{zLevel:o+g.deviceInfo.webviewZLevel,href:u,parentXPath:n.trackable?e.computeXpath(n).xpath:void 0})},this.xpathThreshold=n,this.deviceInfo=(r=(i=e).webviewLeft,o=i.webviewTop,a=i.webviewWidth,u=i.webviewHeight,c=i.webviewZLevel,f=a/window.innerWidth,{winWidth:window.innerWidth,winHeight:window.innerHeight,scale:f,webviewTop:o,webviewLeft:r,webviewWidth:a,webviewHeight:u,webviewZLevel:c})};export{ee as GioHybridNode,J as GioWebNode}; diff --git a/package.json b/package.json index 1d9bacc..2ffdc11 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gio-web-nodes-parser", - "version": "2.0.5", + "version": "2.0.6", "description": "Library of parsing nodes used by GrowingIO web SDK", "main": "./build/index.js", "module": "./build/index.js",