Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@abtasty/scroll-tracking

Package Overview
Dependencies
Maintainers
21
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@abtasty/scroll-tracking - npm Package Compare versions

Comparing version 3.1.5 to 3.1.6-0

2

dist/form.js

@@ -1,1 +0,1 @@

!function(e,l){"object"==typeof exports&&"undefined"!=typeof module?module.exports=l():"function"==typeof define&&define.amd?define(l):e.widgetForm=l()}(this,function(){"use strict";return[{category:"conditions",type:"paragraph",text:{fr:"Note : il s'agit d'un widget de tracking qui est appliqué sur la version originale ainsi que les variations de la page. Une fois le widget en place, vous pourrez suivre l'évolution du tracking dans le menu \"Tracking\".",en:'Note: this plugin is a tracking plugin, it is applied on all variations and original page. Once added, you can find it in the "Tracking" menu.'}},{propName:"engagementGoal",type:"replicable",category:"conditions",children:[{type:"text",propName:"name",label:{en:"Goal name",fr:"Nom de l'objectif",es:"Nombre del objetivo",de:"Ziel-Name"},defaultValue:{en:"Scroll 50%",fr:"Scroll 50%",es:"50% scroll",de:"Scroll 50%"},value:{en:"Scroll 50%",fr:"Scroll 50%",es:"50% scroll",de:"Scroll 50%"}},{type:"slider",propName:"percentage",label:{en:"Scroll percentage",fr:"Niveau de scroll",es:"Porcentaje de scroll",de:"Scroll-Prozentsatz"},unit:"%",min:0,max:100,defaultValue:50,value:50}]}]});
!function(e,l){"object"==typeof exports&&"undefined"!=typeof module?module.exports=l():"function"==typeof define&&define.amd?define(l):(e="undefined"!=typeof globalThis?globalThis:e||self).widgetForm=l()}(this,(function(){"use strict";return[{category:"conditions",type:"paragraph",text:{fr:"Note : il s'agit d'un widget de tracking qui est appliqué sur la version originale ainsi que les variations de la page. Une fois le widget en place, vous pourrez suivre l'évolution du tracking dans le menu \"Tracking\".",en:'Note: this plugin is a tracking plugin, it is applied on all variations and original page. Once added, you can find it in the "Tracking" menu.'}},{propName:"engagementGoal",type:"replicable",category:"conditions",children:[{type:"text",propName:"name",label:{en:"Goal name",fr:"Nom de l'objectif",es:"Nombre del objetivo",de:"Ziel-Name"},defaultValue:{en:"Scroll 50%",fr:"Scroll 50%",es:"50% scroll",de:"Scroll 50%"},value:{en:"Scroll 50%",fr:"Scroll 50%",es:"50% scroll",de:"Scroll 50%"}},{type:"slider",propName:"percentage",label:{en:"Scroll percentage",fr:"Niveau de scroll",es:"Porcentaje de scroll",de:"Scroll-Prozentsatz"},unit:"%",min:0,max:100,defaultValue:50,value:50}]}]}));

@@ -1,1 +0,1 @@

!function(){"use strict";var e=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];e.unshift("[AB Tasty Widget] "+PACKAGE+":"),console.log.apply(console,e)},n=["fr","en","de","es"],t=DATA.engagementGoal,o=(navigator.language||navigator.userLanguage).substr(0,2),c=function(e){return n.indexOf(e)>-1}(o)?o:"en";window.checkScrollGoals=function(){var n=100*(document.body.scrollTop||document.documentElement.scrollTop)/(Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)-window.innerHeight);t=t.filter(function(t){var o=t.percentage;if(n>=o){var l=t.name[c]||t.name;return TEST_ID>0?(ABTastyEvent(l,null,TEST_ID),e('Engagement goal "'+l+'" sent to test '+TEST_ID+".")):e("Needs ID of the test."),!1}return!0})},function(e,n){window.addEventListener(e,n)}("scroll",window.checkScrollGoals)}();
!function(){"use strict";const e=()=>{if(Object.prototype.hasOwnProperty.call(window,"ABTastyEditor")||(()=>{const e=!!document.getElementById("ABTastyPreviewBar"),o=location.href.includes("ab_project=preview");return e||o})())return!1;const e=ABTasty.getTestsOnPage()[TEST_ID];return!!e&&Object.keys(e.targetings.qaParameters).length>0},o="conditions",n=()=>{const e=(()=>{const{type:e}=DATA;return`${PACKAGE.replace("@abtasty/","")}${e?"_"+e:""}`})();return`${e.charAt(0).toUpperCase()}${e.slice(1)}`.split("-").join(" ")},t=o=>{if(e()){const e=n();window.console.log(`%c${e} - QA Mode for campaign ${TEST_ID}\n${o}`,"background-color: rgba(0, 127, 145, 1); color: rgba(247, 247, 247, 1)")}},i={category:o,type:"slider",min:1},r=[{...i,propName:"day",label:"widget_common_conditions_recurrence_ifOptionVariable_labelDays",value:5,max:395},{...i,propName:"week",label:"widget_common_conditions_recurrence_ifOptionVariable_labelWeeks",value:2,max:56},{...i,propName:"month",label:"widget_common_conditions_recurrence_ifOptionVariable_labelMonths",value:1,max:13}],a={category:o,type:"select",options:[{label:"widget_common_conditions_recurrence_option_everyTime",value:"everytime"},{label:"widget_common_conditions_recurrence_option_everySession",value:"session"},{label:"widget_common_conditions_recurrence_option_everyXDays",value:"day"},{label:"widget_common_conditions_recurrence_option_everyXWeeks",value:"week"},{label:"widget_common_conditions_recurrence_option_everyXMonths",value:"month"},{label:"widget_common_conditions_recurrence_option_once",value:"once"}],value:"everytime"},c={...a,label:"widget_common_conditions_recurrence_label_widgetDisplayed",propName:"displayRecurrence"},l=(r.map(e=>({...e,propName:`${c.propName}_${e.propName}`,conditions:[{field:c.propName,value:e.propName}]})),{...a,label:"widget_common_conditions_recurrence_label_widgetDisplayedAfterClosure",propName:"closingRecurrence"}),m=(r.map(e=>({...e,propName:`${l.propName}_${e.propName}`,conditions:[{field:l.propName,value:e.propName}]})),{...a,label:"widget_common_conditions_recurrence_label_widgetDisplayedAfterSubmission",propName:"validationRecurrence"});r.map(e=>({...e,propName:`${m.propName}_${e.propName}`,conditions:[{field:m.propName,value:e.propName}]}));l.condition=({closeButton:e,layout:o,overlayClickable:n})=>!("popin"===o&&!1===e&&!1===n||void 0!==o&&"popin"!==o&&!1===e);const _={pageLoad:{label:"widget_common_conditions_triggering_option_pageload",value:"pageLoad"},direct:{label:"widget_common_conditions_triggering_option_asap",value:"direct"},exitIntent:{label:"widget_common_conditions_triggering_option_exitIntent",value:"exitIntent"},reengage:{label:"widget_common_conditions_triggering_option_afterXSecondsOfInactivity",value:"reengage"},click:{label:"widget_common_conditions_triggering_option_click",value:"click"},elementVisible:{label:"widget_common_conditions_triggering_option_elementVisible",value:"elementVisible"},customScript:{label:"widget_common_conditions_triggering_option_customTrigger",value:"script"}};Object.keys(_).map(e=>_[e]);var s=["fr","en","de","es"],p=DATA.engagementGoal;p.sort((function(e,o){return e.percentage-o.percentage}));var d=(navigator.language||navigator.userLanguage).substr(0,2),g=function(e){return s.indexOf(e)>-1}(d)?d:"en";window.addEventListener("scroll",(function e(){var o=100*(document.body.scrollTop||document.documentElement.scrollTop)/(Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)-window.innerHeight);(p=p.filter((function(e){var n=e.percentage,i=e.name;if(o>=n){var r=i[g]||i;return TEST_ID>0?(ABTastyEvent(r,null,TEST_ID),t('Engagement goal "'.concat(r,'" sent.'))):t("Needs ID of the campaign."),!1}return!0}))).length||window.removeEventListener("scroll",e,{passive:!0})}),{passive:!0})}();
{
"name": "@abtasty/scroll-tracking",
"description": "AB Tasty Widget",
"version": "3.1.5",
"icon": "icon.png",
"version": "3.1.6-0",
"form": "dist/form.js",
"main": "dist/main.js",
"files": [
"icon.png",
"dist"

@@ -24,21 +22,29 @@ ],

"devDependencies": {
"babel-core": "^6.26.0",
"babel-preset-es2015-rollup": "^3.0.0",
"chai": "^4.1.2",
"concurrently": "^3.5.0",
"eslint": "^4.7.2",
"eslint-config-google": "^0.9.1",
"jsdom": "^11.2.0",
"@babel/core": "^7.10.2",
"@babel/plugin-transform-classes": "^7.10.1",
"@babel/plugin-transform-runtime": "^7.10.1",
"@babel/preset-env": "^7.10.2",
"@babel/runtime": "^7.10.2",
"@rollup/plugin-babel": "^5.0.3",
"chai": "^4.2.0",
"concurrently": "^5.2.0",
"eslint": "^7.2.0",
"eslint-config-airbnb-base": "^14.1.0",
"eslint-config-prettier": "^6.11.0",
"eslint-import-resolver-node": "^0.3.2",
"eslint-plugin-import": "^2.21.2",
"jsdom": "^11.12.0",
"jsdom-global": "^3.0.2",
"mocha": "^3.5.3",
"rollup": "^0.49.3",
"rollup-plugin-babel": "^3.0.2",
"rollup-plugin-eslint": "^4.0.0",
"rollup-plugin-node-resolve": "^3.0.0",
"rollup-plugin-uglify": "^2.0.1",
"rollup-watch": "^4.3.1"
"rollup": "^2.15.0",
"rollup-plugin-eslint": "^7.0.0"
},
"dependencies": {
"@abtasty/widget-utils": "^1.12.2"
"@abtasty/widget-utils": "1.16.13-0",
"@babel/plugin-proposal-object-rest-spread": "^7.10.1",
"@rollup/plugin-commonjs": "^12.0.0",
"@rollup/plugin-node-resolve": "^8.0.1",
"babel-eslint": "^10.0.3",
"rollup-plugin-terser": "^6.1.0"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc