@abtasty/scroll-tracking
Advanced tools
Comparing version 3.1.5 to 3.1.6-0
@@ -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" | ||
} | ||
} |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
6728
21
6
18
4
2
+ Addedbabel-eslint@^10.0.3
+ Addedrollup-plugin-terser@^6.1.0
+ Added@abtasty/widget-utils@1.16.13-0(transitive)
+ Added@ampproject/remapping@2.3.0(transitive)
+ Added@babel/code-frame@7.26.2(transitive)
+ Added@babel/compat-data@7.26.5(transitive)
+ Added@babel/core@7.26.0(transitive)
+ Added@babel/generator@7.26.5(transitive)
+ Added@babel/helper-compilation-targets@7.26.5(transitive)
+ Added@babel/helper-module-imports@7.25.9(transitive)
+ Added@babel/helper-module-transforms@7.26.0(transitive)
+ Added@babel/helper-plugin-utils@7.26.5(transitive)
+ Added@babel/helper-string-parser@7.25.9(transitive)
+ Added@babel/helper-validator-identifier@7.25.9(transitive)
+ Added@babel/helper-validator-option@7.25.9(transitive)
+ Added@babel/helpers@7.26.0(transitive)
+ Added@babel/parser@7.26.5(transitive)
+ Added@babel/plugin-proposal-object-rest-spread@7.20.7(transitive)
+ Added@babel/plugin-syntax-object-rest-spread@7.8.3(transitive)
+ Added@babel/plugin-transform-parameters@7.25.9(transitive)
+ Added@babel/template@7.25.9(transitive)
+ Added@babel/traverse@7.26.5(transitive)
+ Added@babel/types@7.26.5(transitive)
+ Added@eslint-community/eslint-utils@4.4.1(transitive)
+ Added@eslint-community/regexpp@4.12.1(transitive)
+ Added@eslint/config-array@0.19.1(transitive)
+ Added@eslint/core@0.10.0(transitive)
+ Added@eslint/eslintrc@3.2.0(transitive)
+ Added@eslint/js@9.18.0(transitive)
+ Added@eslint/object-schema@2.1.5(transitive)
+ Added@eslint/plugin-kit@0.2.5(transitive)
+ Added@humanfs/core@0.19.1(transitive)
+ Added@humanfs/node@0.16.6(transitive)
+ Added@humanwhocodes/module-importer@1.0.1(transitive)
+ Added@humanwhocodes/retry@0.3.10.4.1(transitive)
+ Added@jridgewell/gen-mapping@0.3.8(transitive)
+ Added@jridgewell/resolve-uri@3.1.2(transitive)
+ Added@jridgewell/set-array@1.2.1(transitive)
+ Added@jridgewell/sourcemap-codec@1.5.0(transitive)
+ Added@jridgewell/trace-mapping@0.3.25(transitive)
+ Added@rollup/plugin-commonjs@11.1.012.0.0(transitive)
+ Added@rollup/plugin-node-resolve@7.1.38.4.0(transitive)
+ Added@rollup/pluginutils@3.1.0(transitive)
+ Added@types/estree@0.0.391.0.6(transitive)
+ Added@types/json-schema@7.0.15(transitive)
+ Added@types/node@22.10.7(transitive)
+ Added@types/resolve@0.0.81.17.1(transitive)
+ Addedacorn@8.14.0(transitive)
+ Addedacorn-jsx@5.3.2(transitive)
+ Addedajv@6.12.6(transitive)
+ Addedansi-styles@4.3.0(transitive)
+ Addedargparse@2.0.1(transitive)
+ Addedbabel-eslint@10.1.0(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedbrowserslist@4.24.4(transitive)
+ Addedbuffer-from@1.1.2(transitive)
+ Addedbuiltin-modules@3.3.0(transitive)
+ Addedcallsites@3.1.0(transitive)
+ Addedcaniuse-lite@1.0.30001695(transitive)
+ Addedchalk@4.1.2(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedcommander@2.20.3(transitive)
+ Addedcommondir@1.0.1(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedconvert-source-map@2.0.0(transitive)
+ Addedcross-spawn@7.0.6(transitive)
+ Addeddebug@4.4.0(transitive)
+ Addeddeep-freeze@0.0.1(transitive)
+ Addeddeep-is@0.1.4(transitive)
+ Addeddeepmerge@4.3.1(transitive)
+ Addedelectron-to-chromium@1.5.84(transitive)
+ Addedescalade@3.2.0(transitive)
+ Addedescape-string-regexp@4.0.0(transitive)
+ Addedeslint@9.18.0(transitive)
+ Addedeslint-scope@8.2.0(transitive)
+ Addedeslint-visitor-keys@1.3.03.4.34.2.0(transitive)
+ Addedespree@10.3.0(transitive)
+ Addedesquery@1.6.0(transitive)
+ Addedesrecurse@4.3.0(transitive)
+ Addedestraverse@5.3.0(transitive)
+ Addedestree-walker@0.6.11.0.1(transitive)
+ Addedesutils@2.0.3(transitive)
+ Addedfast-deep-equal@3.1.3(transitive)
+ Addedfast-json-stable-stringify@2.1.0(transitive)
+ Addedfast-levenshtein@2.0.6(transitive)
+ Addedfile-entry-cache@8.0.0(transitive)
+ Addedfind-up@5.0.0(transitive)
+ Addedflat-cache@4.0.1(transitive)
+ Addedflatted@3.3.2(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedfsevents@2.3.3(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedgensync@1.0.0-beta.2(transitive)
+ Addedglob@7.2.3(transitive)
+ Addedglob-parent@6.0.2(transitive)
+ Addedglobals@11.12.014.0.0(transitive)
+ Addedhas-flag@3.0.04.0.0(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedignore@5.3.2(transitive)
+ Addedimport-fresh@3.3.0(transitive)
+ Addedimurmurhash@0.1.4(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedis-core-module@2.16.1(transitive)
+ Addedis-extglob@2.1.1(transitive)
+ Addedis-glob@4.0.3(transitive)
+ Addedis-module@1.0.0(transitive)
+ Addedis-reference@1.2.1(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedjest-worker@24.9.026.6.2(transitive)
+ Addedjs-tokens@4.0.0(transitive)
+ Addedjs-yaml@4.1.0(transitive)
+ Addedjsesc@3.1.0(transitive)
+ Addedjson-buffer@3.0.1(transitive)
+ Addedjson-schema-traverse@0.4.1(transitive)
+ Addedjson-stable-stringify-without-jsonify@1.0.1(transitive)
+ Addedjson5@2.2.3(transitive)
+ Addedkeyv@4.5.4(transitive)
+ Addedlevn@0.4.1(transitive)
+ Addedlocate-path@6.0.0(transitive)
+ Addedlodash.merge@4.6.2(transitive)
+ Addedlru-cache@5.1.1(transitive)
+ Addedmagic-string@0.25.9(transitive)
+ Addedmerge-stream@2.0.0(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedms@2.1.3(transitive)
+ Addednatural-compare@1.4.0(transitive)
+ Addednode-releases@2.0.19(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedoptionator@0.9.4(transitive)
+ Addedp-limit@3.1.0(transitive)
+ Addedp-locate@5.0.0(transitive)
+ Addedparent-module@1.0.1(transitive)
+ Addedpath-exists@4.0.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedpath-key@3.1.1(transitive)
+ Addedpath-parse@1.0.7(transitive)
+ Addedpicocolors@1.1.1(transitive)
+ Addedpicomatch@2.3.1(transitive)
+ Addedprelude-ls@1.2.1(transitive)
+ Addedpunycode@2.3.1(transitive)
+ Addedrandombytes@2.1.0(transitive)
+ Addedresolve@1.22.10(transitive)
+ Addedresolve-from@4.0.0(transitive)
+ Addedrollup@2.79.2(transitive)
+ Addedrollup-plugin-terser@5.3.16.1.0(transitive)
+ Addedrollup-pluginutils@2.8.2(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedsemver@6.3.1(transitive)
+ Addedserialize-javascript@3.1.04.0.0(transitive)
+ Addedshebang-command@2.0.0(transitive)
+ Addedshebang-regex@3.0.0(transitive)
+ Addedsource-map@0.6.1(transitive)
+ Addedsource-map-support@0.5.21(transitive)
+ Addedsourcemap-codec@1.4.8(transitive)
+ Addedstrip-json-comments@3.1.1(transitive)
+ Addedsupports-color@6.1.07.2.0(transitive)
+ Addedsupports-preserve-symlinks-flag@1.0.0(transitive)
+ Addedterser@4.8.1(transitive)
+ Addedtype-check@0.4.0(transitive)
+ Addedundici-types@6.20.0(transitive)
+ Addedupdate-browserslist-db@1.1.2(transitive)
+ Addeduri-js@4.4.1(transitive)
+ Addedwhich@2.0.2(transitive)
+ Addedword-wrap@1.2.5(transitive)
+ Addedwrappy@1.0.2(transitive)
+ Addedyallist@3.1.1(transitive)
+ Addedyocto-queue@0.1.0(transitive)
- Removed@abtasty/widget-utils@1.18.38(transitive)