@abtasty/scroll-tracking
Advanced tools
Comparing version 3.4.0-3 to 3.4.0-5
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).widgetForm=t()}(this,function(){"use strict";const e="conditions",t="inlinenotification";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}var o,l=ABTASTY_S.CLIENT_MANAGER,n=l.getDocument,a=l.getCssSelector,i=(o=n().querySelectorAll("body *"),function(e){if(Array.isArray(e))return r(e)}(o)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?r(e,t):void 0}}(o)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).reduce(function(e,t){var r=getComputedStyle(t).overflowY,o=t.scrollHeight,l=t.parentElement,n=o>e.scrollHeight,a=["auto","scroll"].includes(r),i=o>l.scrollHeight;return n&&a&&i?t:e},document.body),c={category:e,type:t,label:"widget_trackingWidget_note",hrefUrl:""};return[{category:e,type:"switch",propName:"customTarget",label:"widget_scrollTracking_label_useCustomTarget",value:i===n().body},{category:e,type:t,label:"widget_scrollTracking_descriptionTarget",hrefUrl:"",condition:function(e){return e.customTarget}},{category:e,type:"selectelement",propName:"scrollTarget",label:"widget_scrollTracking_label_target",value:a(i),condition:function(e){return e.customTarget}},{category:e,type:"short-separator"},c,{category:e,propName:"engagementGoal",type:"replicable",children:[{type:"text",propName:"name",label:"widget_scrollTracking_label_trackerName",defaultValue:"widget_scrollTracking_label_trackerName_default",value:"widget_scrollTracking_label_trackerName_default"},{type:"slider",propName:"percentage",label:"widget_scrollTracking_label_scrollPercentage",unit:"%",min:0,max:100,defaultValue:50,value:50}]}]}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).widgetForm=t()}(this,function(){"use strict";const e="conditions",t="inlinenotification";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}var o,l=ABTASTY_S.CLIENT_MANAGER,n=l.getDocument,a=l.getCssSelector,i=(o=n().querySelectorAll("body *"),function(e){if(Array.isArray(e))return r(e)}(o)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?r(e,t):void 0}}(o)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).reduce(function(e,t){var r=getComputedStyle(t).overflowY,o=t.scrollHeight,l=t.parentElement,n=o>e.scrollHeight,a=["auto","scroll"].includes(r),i=o>l.scrollHeight;return n&&a&&i?t:e},document.body),c={category:e,type:t,label:"widget_trackingWidget_note",hrefUrl:""};return[{category:e,type:"switch",propName:"customTarget",label:"widget_scrollTracking_label_useCustomTarget",value:i!==n().body},{category:e,type:t,label:"widget_scrollTracking_descriptionTarget",hrefUrl:"",condition:function(e){return e.customTarget}},{category:e,type:"selectelement",propName:"scrollTarget",label:"widget_scrollTracking_label_target",value:a(i),condition:function(e){return e.customTarget}},{category:e,type:"short-separator"},c,{category:e,propName:"engagementGoal",type:"replicable",children:[{type:"text",propName:"name",label:"widget_scrollTracking_label_trackerName",defaultValue:"Scroll 50%",value:"Scroll 50%"},{type:"slider",propName:"percentage",label:"widget_scrollTracking_label_scrollPercentage",unit:"%",min:0,max:100,defaultValue:50,value:50}]}]}); |
{ | ||
"name": "@abtasty/scroll-tracking", | ||
"description": "AB Tasty Widget", | ||
"version": "3.4.0-3", | ||
"version": "3.4.0-5", | ||
"form": "dist/form.js", | ||
@@ -6,0 +6,0 @@ "main": "dist/main.js", |
7294