@abtasty/interstitiel
Advanced tools
Comparing version 2.0.7 to 2.0.8-0
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.widgetForm=t()}(this,function(){"use strict";var e={hasText:{field:"layout",value:function(e){return["mediaAndText","textOnly"].indexOf(e)>=0}}},t=[{field:"ctaEnabled"},e.hasText],a="rgba(196, 150, 65, 1)",o="rgba(255, 255, 255, 1)";return[{category:"layout",label:"Select a layout",value:"mediaAndText",type:"radioImage",propName:"layout",options:[{label:{en:"Media and Text",fr:"Média et texte"},value:"mediaAndText",src:"https://gitlab.com/abtasty/public/storage/raw/master/widget-advertising-modal/texte-image@2x.png"},{label:{en:"Fullscreen media",fr:"Média plein-écran"},value:"fullscreenMedia",src:"https://gitlab.com/abtasty/public/storage/raw/master/widget-advertising-modal/image-grand@2x.png"},{label:{en:"Text",fr:"Texte"},value:"textOnly",src:"https://gitlab.com/abtasty/public/storage/raw/master/widget-advertising-modal/texte@2x.png"},{label:{en:"Centered Media",fr:"Média centré"},value:"centeredMedia",src:"https://gitlab.com/abtasty/public/storage/raw/master/widget-advertising-modal/image-petite@2x.png"}]},{propName:"mediaType",category:"content",label:{en:"Select media type",fr:"Type de média"},type:"radio",value:"image",options:[{label:{en:"Image",fr:"Image"},value:"image"},{label:{en:"Video",fr:"Vidéo"},value:"video"}],conditions:[{field:"layout",value:function(e){return["mediaAndText","fullscreenMedia","centeredMedia"].indexOf(e)>=0}}]},{category:"content",type:"mediaupload",propName:"image",label:{en:"Image",fr:"Image"},value:"https://gitlab.com/abtasty/public/storage/raw/master/placeholder.png",conditions:[{field:"mediaType",value:"image"},{field:"layout",value:function(e){return"textOnly"!==e}}]},{propName:"video",type:"text",category:"content",label:{en:"Link of the video (Youtube/Vimeo)",fr:"Lien vers la vidéo (Youtube ou Vimeo)"},value:"https://www.youtube.com/watch?v=XyGGixAg3bE",placeholder:"https://www.youtube.com/watch?v=XyGGixAg3bE",conditions:[{field:"mediaType",value:"video"},{field:"layout",value:function(e){return"textOnly"!==e}}]},{category:"content",type:"separator",propName:"textSeparator",conditions:[e.hasText]},{type:"text",category:"content",label:{en:"Title",fr:"Titre"},propName:"title",value:{en:"Next year is coming soon !",fr:"La nouvelle année arrive !"},conditions:[e.hasText]},{type:"text",category:"content",label:{en:"Subcopy",fr:"Paragraphe"},propName:"text",value:{en:"Enjoy our new outlet factory",fr:"découvrez nos nouveaux produits"},conditions:[e.hasText]},{category:"content",type:"separator",propName:"ctaSeparator"},{propName:"ctaEnabled",category:"content",type:"switch",value:!0,label:{en:"Display a CTA button",fr:"Affichage d'un bouton d'action"},conditions:[e.hasText]},{propName:"ctaLabel",type:"text",category:"content",label:{en:"CTA Label",fr:"Label du bouton"},value:{en:"Let's go",fr:"Voir l'offre"},conditions:t},{propName:"redirectionUrl",category:"content",type:"text",label:{en:"Redirection URL",fr:"Url de redirection"},placeholder:"https://www.google.fr",value:"https://www.google.fr",conditions:[function(e){var t=e.layout,a=e.mediaType,o=e.ctaEnabled;return!(("fullscreenMedia"===t||"mediaAndText"===t||"centeredMedia"===t)&&"video"===a)&&!0===o}]},{propName:"mediaBorderColor",category:"style",type:"colorpicker",label:{en:"Media border color",fr:"Couleur de bordure du média"},value:"rgba(0, 0, 0, 1)",conditions:[{field:"layout",value:function(e){return["mediaAndText","centeredMedia"].indexOf(e)>=0}}]},{propName:"mediaBorderRadius",category:"style",type:"slider",value:0,unit:"px",min:0,max:20,label:{en:"Media border radius (pixels)",fr:"Arrondi de la bordure du média (pixels)"},conditions:[{field:"layout",value:function(e){return["mediaAndText","centeredMedia"].indexOf(e)>=0}}]},{propName:"mediaBorderThickness",category:"style",type:"slider",value:0,unit:"px",min:0,max:10,label:{en:"Media border width (pixels)",fr:"Largeur de la bordure du média (pixels)"},conditions:[{field:"layout",value:function(e){return["mediaAndText","centeredMedia"].indexOf(e)>=0}}]},{category:"style",type:"separator",propName:"titleStylesSeparator",conditions:[e.hasText,{field:"layout",value:function(e){return"textOnly"!==e}}]},{propName:"titleTextColor",category:"style",type:"colorpicker",label:{en:"Title color",fr:"Couleur du titre"},value:a,conditions:[e.hasText]},{propName:"textTextColor",category:"style",type:"colorpicker",label:{en:"Text color",fr:"Couleur du texte"},value:o,conditions:[e.hasText]},{category:"style",type:"separator",propName:"ctaStylesSeparator",conditions:t},{propName:"ctaBackgroundColor",category:"style",type:"colorpicker",label:{en:"CTA background color",fr:"Couleur de fond du bouton"},value:a,conditions:t},{propName:"ctaTextColor",category:"style",type:"colorpicker",label:{en:"CTA text color",fr:"Couleur du texte du bouton"},value:o,conditions:t},{propName:"ctaBorderRadius",category:"style",type:"slider",value:5,unit:"px",min:0,max:20,label:{en:"CTA border radius (pixels)",fr:"Arrondi de la bordure du bouton (pixels)"},conditions:t},{category:"style",type:"separator"},{propName:"backgroundCloseButtonColor",category:"style",type:"colorpicker",label:{en:"Background close button color",fr:"Couleur de fond du bouton de fermeture"},value:"rgba(255, 255, 255, 1)"},{propName:"closeButtonColor",category:"style",type:"colorpicker",label:{en:"Close button color",fr:"Couleur du bouton de fermeture"},value:"rgba(0, 0, 0, 1)"},{propName:"recurrence",type:"select",category:"conditions",label:{en:"Recurrence",fr:"Récurrence"},value:"-1",options:[{label:{en:"Every time",fr:"Chaque page"},value:"-1"},{label:{en:"Every session",fr:"Chaque session"},value:"0"},{label:{en:"Everyday",fr:"Chaque jour"},value:"1"},{label:{en:"Every week",fr:"Chaque semaine"},value:"7"},{label:{en:"Every month",fr:"Chaque mois"},value:"30"},{label:{en:"Once per user (no recurrence)",fr:"Une fois par visiteur (pas de récurrence)"},value:"365"}]},{category:"conditions",type:"separator",propName:"triggerEvent-separator"},{propName:"triggerEvent",type:"select",category:"conditions",label:{en:"Triggers on",fr:"Se déclenche au"},value:"pageLoad",options:[{label:{en:"Page load",fr:"Chargement de la page"},value:"pageLoad"},{label:{en:"Exit intent",fr:"Avant fermeture de l'onglet"},value:"exitIntent"}]},{propName:"timer",type:"number",category:"conditions",label:{en:"Hide after N seconds (0 to disable this option)",fr:"Cacher après N secondes (0 permet de désactiver l'option)"},value:0},{category:"conditions",type:"separator",propName:"timer-separator"},{propName:"actionTrackingEvent",category:"conditions",type:"switch",value:!1,label:{en:"Send an Action tracking event when shown",fr:"Déclencher un Action Tracking à l'affichage"}},{propName:"actionTrackingName",type:"text",category:"conditions",label:{en:"Action tracking name",fr:"Nom de l'évènement"},placeholder:{en:"clicked on the ad",fr:"clic sur la publicité"},value:{en:"Advertising Modal",fr:"Publicité interstitielle"},conditions:[{field:"actionTrackingEvent"}]},{propName:"autoPlay",category:"conditions",type:"switch",value:!1,label:{en:"Auto play video",fr:"Lecture automatique de la vidéo"},conditions:[{field:"mediaType",value:"video"}]}]}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.widgetForm=t()}(this,function(){"use strict";var e="https://gitlab.com/abtasty/public/storage/raw/master/widget-advertising-modal/",t={hasText:{field:"layout",value:function(e){return["mediaAndText","textOnly"].indexOf(e)>=0}}},a=[{field:"ctaEnabled"},t.hasText],o="rgba(196, 150, 65, 1)",r="rgba(255, 255, 255, 1)",l=[{propName:"mediaType",category:"content",label:{en:"Select media type",fr:"Type de média"},type:"radio",value:"image",options:[{label:{en:"Image",fr:"Image"},value:"image"},{label:{en:"Video",fr:"Vidéo"},value:"video"}],conditions:[{field:"layout",value:function(e){return["mediaAndText","fullscreenMedia","centeredMedia"].indexOf(e)>=0}}]},{category:"content",type:"mediaupload",propName:"image",label:{en:"Image",fr:"Image"},value:"https://gitlab.com/abtasty/public/storage/raw/master/placeholder.png",conditions:[{field:"mediaType",value:"image"},{field:"layout",value:function(e){return"textOnly"!==e}}]},{propName:"video",type:"text",category:"content",label:{en:"Link of the video (Youtube/Vimeo)",fr:"Lien vers la vidéo (Youtube ou Vimeo)"},value:"https://www.youtube.com/watch?v=XyGGixAg3bE",placeholder:"https://www.youtube.com/watch?v=XyGGixAg3bE",conditions:[{field:"mediaType",value:"video"},{field:"layout",value:function(e){return"textOnly"!==e}}]},{category:"content",type:"separator",propName:"textSeparator",conditions:[t.hasText]},{type:"text",category:"content",label:{en:"Title",fr:"Titre"},propName:"title",value:{en:"Next year is coming soon !",fr:"La nouvelle année arrive !"},conditions:[t.hasText]},{type:"text",category:"content",label:{en:"Subcopy",fr:"Paragraphe"},propName:"text",value:{en:"Enjoy our new outlet factory",fr:"découvrez nos nouveaux produits"},conditions:[t.hasText]},{category:"content",type:"separator",propName:"ctaSeparator"},{propName:"ctaEnabled",category:"content",type:"switch",value:!0,label:{en:"Display a CTA button",fr:"Affichage d'un bouton d'action"},conditions:[t.hasText]},{propName:"ctaLabel",type:"text",category:"content",label:{en:"CTA Label",fr:"Label du bouton"},value:{en:"Let's go",fr:"Voir l'offre"},conditions:a},{propName:"redirectionUrl",category:"content",type:"text",label:{en:"Redirection URL",fr:"Url de redirection"},placeholder:"https://www.google.fr",value:"https://www.google.fr",conditions:[function(e){var t=e.layout,a=e.mediaType,o=e.ctaEnabled;return!(("fullscreenMedia"===t||"mediaAndText"===t||"centeredMedia"===t)&&"video"===a)&&!0===o}]}],n=[{propName:"mediaGroup",category:"style",type:"group",label:{en:"Media",fr:"Média"},collapsible:!0,conditions:[{field:"layout",value:function(e){return["mediaAndText","centeredMedia"].indexOf(e)>=0}}],children:[{propName:"mediaBorderColor",category:"style",type:"colorpicker",label:{en:"Media border color",fr:"Couleur de bordure du média"},value:"rgba(0, 0, 0, 1)"},{propName:"mediaBorderRadius",category:"style",type:"slider",value:0,unit:"px",min:0,max:20,label:{en:"Media border radius (pixels)",fr:"Arrondi de la bordure du média (pixels)"}},{propName:"mediaBorderThickness",category:"style",type:"slider",value:0,unit:"px",min:0,max:10,label:{en:"Media border width (pixels)",fr:"Largeur de la bordure du média (pixels)"}}]},{propName:"copyGroup",category:"style",type:"group",label:{en:"Copy",fr:"Contenu"},collapsible:!0,conditions:[t.hasText],children:[{propName:"titleTextColor",category:"style",type:"colorpicker",label:{en:"Title color",fr:"Couleur du titre"},value:o},{propName:"textTextColor",category:"style",type:"colorpicker",label:{en:"Text color",fr:"Couleur du texte"},value:r}]},{propName:"ctaGroup",category:"style",type:"group",label:{en:"CTA",fr:"CTA"},collapsible:!0,conditions:a,children:[{propName:"ctaBackgroundColor",category:"style",type:"colorpicker",label:{en:"CTA background color",fr:"Couleur de fond du bouton"},value:o},{propName:"ctaTextColor",category:"style",type:"colorpicker",label:{en:"CTA text color",fr:"Couleur du texte du bouton"},value:r},{propName:"ctaBorderRadius",category:"style",type:"slider",value:5,unit:"px",min:0,max:20,label:{en:"CTA border radius (pixels)",fr:"Arrondi de la bordure du bouton (pixels)"}}]},{propName:"closeButtonGroup",category:"style",type:"group",label:{en:"Close button",fr:"Bouton de fermeture"},collapsible:!0,children:[{propName:"backgroundCloseButtonColor",category:"style",type:"colorpicker",label:{en:"Background close button color",fr:"Couleur de fond du bouton de fermeture"},value:"rgba(255, 255, 255, 1)"},{propName:"closeButtonColor",category:"style",type:"colorpicker",label:{en:"Close button color",fr:"Couleur du bouton de fermeture"},value:"rgba(0, 0, 0, 1)"}]}];function i(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}return[].concat(i([{category:"layout",label:"Select a layout",value:"mediaAndText",type:"radioImage",propName:"layout",options:[{label:{en:"Media and Text",fr:"Média et texte"},value:"mediaAndText",src:e+"texte-image@2x.png"},{label:{en:"Fullscreen media",fr:"Média plein-écran"},value:"fullscreenMedia",src:e+"image-grand@2x.png"},{label:{en:"Text",fr:"Texte"},value:"textOnly",src:e+"texte@2x.png"},{label:{en:"Centered Media",fr:"Média centré"},value:"centeredMedia",src:e+"image-petite@2x.png"}]}]),i(l),i(n),i([{propName:"recurrence",type:"select",category:"conditions",label:{en:"Recurrence",fr:"Récurrence"},value:"-1",options:[{label:{en:"Every time",fr:"Chaque page"},value:"-1"},{label:{en:"Every session",fr:"Chaque session"},value:"0"},{label:{en:"Everyday",fr:"Chaque jour"},value:"1"},{label:{en:"Every week",fr:"Chaque semaine"},value:"7"},{label:{en:"Every month",fr:"Chaque mois"},value:"30"},{label:{en:"Once per user (no recurrence)",fr:"Une fois par visiteur (pas de récurrence)"},value:"365"}]},{category:"conditions",type:"separator",propName:"triggerEvent-separator"},{propName:"triggerEvent",type:"select",category:"conditions",label:{en:"Triggers on",fr:"Se déclenche au"},value:"pageLoad",options:[{label:{en:"Page load",fr:"Chargement de la page"},value:"pageLoad"},{label:{en:"Exit intent",fr:"Avant fermeture de l'onglet"},value:"exitIntent"}]},{propName:"timer",type:"number",category:"conditions",label:{en:"Hide after N seconds (0 to disable this option)",fr:"Cacher après N secondes (0 permet de désactiver l'option)"},value:0},{category:"conditions",type:"separator",propName:"timer-separator"},{propName:"actionTrackingEvent",category:"conditions",type:"switch",value:!1,label:{en:"Send an Action tracking event when shown",fr:"Déclencher un Action Tracking à l'affichage"}},{propName:"actionTrackingName",type:"text",category:"conditions",label:{en:"Action tracking name",fr:"Nom de l'évènement"},placeholder:{en:"clicked on the ad",fr:"clic sur la publicité"},value:{en:"Advertising Modal",fr:"Publicité interstitielle"},conditions:[{field:"actionTrackingEvent"}]},{propName:"autoPlay",category:"conditions",type:"switch",value:!1,label:{en:"Auto play video",fr:"Lecture automatique de la vidéo"},conditions:[{field:"mediaType",value:"video"}]}]))}); |
{ | ||
"name": "@abtasty/interstitiel", | ||
"description": "A simple widget", | ||
"version": "2.0.7", | ||
"version": "2.0.8-0", | ||
"main": "dist/main.js", | ||
@@ -6,0 +6,0 @@ "form": "dist/form.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24131
3