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

@abtasty/google-form-modal

Package Overview
Dependencies
Maintainers
19
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@abtasty/google-form-modal - npm Package Compare versions

Comparing version 1.3.1 to 1.4.0

2

dist/form.js

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

!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o():"function"==typeof define&&define.amd?define(o):(e=e||self).widgetForm=o()}(this,(function(){"use strict";var e=function(e,o,i){return o in e?Object.defineProperty(e,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[o]=i,e};const o="style",i="conditions",t="number",n="slider",r="group",l={category:i,type:n,min:1},a=[{...l,propName:"day",label:"widget_common_conditions_recurrence_ifOptionVariable_labelDays",value:5,max:395},{...l,propName:"week",label:"widget_common_conditions_recurrence_ifOptionVariable_labelWeeks",value:2,max:56},{...l,propName:"month",label:"widget_common_conditions_recurrence_ifOptionVariable_labelMonths",value:1,max:13}],c={category:i,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"},p={...c,label:"widget_common_conditions_recurrence_label_widgetDisplayed",propName:"displayRecurrence"},g=a.map(e=>({...e,propName:`${p.propName}_${e.propName}`,conditions:[{field:p.propName,value:e.propName}]})),d={...c,label:"widget_common_conditions_recurrence_label_widgetDisplayedAfterClosure",propName:"closingRecurrence"},m=a.map(e=>({...e,propName:`${d.propName}_${e.propName}`,conditions:[{field:d.propName,value:e.propName}]})),s={...c,label:"widget_common_conditions_recurrence_label_widgetDisplayedAfterSubmission",propName:"validationRecurrence"},u=a.map(e=>({...e,propName:`${s.propName}_${e.propName}`,conditions:[{field:s.propName,value:e.propName}]}));d.condition=({closeButton:e,layout:o,overlayClickable:i})=>!("popin"===o&&!1===e&&!1===i||void 0!==o&&"popin"!==o&&!1===e);const _={category:i,type:r,label:"widget_common_conditions_recurrence_blockTitle",collapsible:!0,children:[p,...g,d,...m,s,...u]},v={category:i,type:n,propName:"triggerEventDelay",label:"widget_common_conditions_triggering_delay_label",min:0,max:60,value:0},b={...v,propName:"triggerEventReengageDelay",value:10,max:180},y={category:i,type:"selectelement",propName:"triggerEventClick",value:"body"},f={...y,propName:"triggerEventElementVisible"},w={category:i,type:"textarea",label:"widget_common_conditions_triggering_option_customTrigger",propName:"triggerEventCustomScript",value:"/* In this example snippet, the widget will be triggered as soon as any scroll is detected.\nCreate your own by resolving resolve() with true (which does trigger) or false (which doesn't trigger) */\n\nfunction launchIfScroll() {\n\treturn new Promise(resolve => {\n\t\tdocument.addEventListener('scroll', () => resolve(true), {once: true});\n\t});\n}\n\nconst result = await launchIfScroll();\nreturn resolve(result);",rows:15},h={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"}},N={category:i,type:"switch",propName:"isOncePerPageTrigger",value:!0,label:"widget_common_conditions_triggering_label_triggerOnlyOnce"},O={category:i,type:"select",label:"widget_common_conditions_triggering_label",options:Object.keys(h).map(e=>h[e]),propName:"triggerEvent",value:"pageLoad"};y.conditions=[{field:"triggerEvent",value:"click"}],b.conditions=[{field:"triggerEvent",value:"reengage"}],f.conditions=[{field:"triggerEvent",value:"elementVisible"}],w.conditions=[{field:"triggerEvent",value:"script"}],v.conditions=[{field:"triggerEvent",value:e=>"reengage"!==e}],N.conditions=[{field:"triggerEvent",value:e=>"click"===e||"script"===e}];const k={category:i,type:r,label:"widget_common_conditions_triggering_blockTitle",collapsible:!0,children:[O,...[y,f,w,N,b,v]]};function x(e,o){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);o&&(t=t.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),i.push.apply(i,t)}return i}function E(o){for(var i=1;i<arguments.length;i++){var t=null!=arguments[i]?arguments[i]:{};i%2?x(Object(t),!0).forEach((function(i){e(o,i,t[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):x(Object(t)).forEach((function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(t,e))}))}return o}var j={type:"select",category:o,options:[{label:"px",value:"px"},{label:"%",value:"%"},{label:"em",value:"em"},{label:"vw (% of viewport width)",value:"vw"},{label:"vh (% of viewport height)",value:"vh"},{label:"vmin (% of viewport minimum size)",value:"vmin"},{label:"vmax (% of viewport maximum size)",value:"vmax"}]};return _.children=_.children.filter((function(e){return!e.propName.includes("validationRecurrence")})),[{propName:"iframeUrl",type:"url",category:"content",label:{en:"Google Form url (public link)",fr:"Url du formulaire Google (lien public)",es:"URL pública del formulario de Google",de:"Google Formular URL (Öffentlicher Link)"},value:"widget_googleForm_content_defaultUrl"},{propName:"width",type:t,category:o,label:{en:"Width",fr:"Longueur",es:"Ancho",de:"Breite"},value:50},E({label:{en:"Width unit",fr:"Unité de longueur",es:"Unidad de ancho",de:"Breiteneinheit"},propName:"widthUnit",value:"vw"},j),{propName:"height",type:t,category:o,label:{en:"Height",fr:"Hauteur",es:"Altura",de:"Höhe"},value:50},E({label:{en:"Height unit",fr:"Unité de hauteur",es:"Unidad de altura",de:"Höheneinheit"},propName:"heightUnit",value:"vh"},j),_,k]}));
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).widgetForm=t()}(this,(function(){"use strict";var e=function(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e};const t="style",i="content",o="conditions",n="number",r="slider",l="group",a={category:o,type:r,min:1},c=[{...a,propName:"day",label:"widget_common_conditions_recurrence_ifOptionVariable_labelDays",value:5,max:395},{...a,propName:"week",label:"widget_common_conditions_recurrence_ifOptionVariable_labelWeeks",value:2,max:56},{...a,propName:"month",label:"widget_common_conditions_recurrence_ifOptionVariable_labelMonths",value:1,max:13}],g={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"},p={...g,label:"widget_common_conditions_recurrence_label_widgetDisplayed",propName:"displayRecurrence"},m=c.map(e=>({...e,propName:`${p.propName}_${e.propName}`,conditions:[{field:p.propName,value:e.propName}]})),d={...g,label:"widget_common_conditions_recurrence_label_widgetDisplayedAfterClosure",propName:"closingRecurrence"},_=c.map(e=>({...e,propName:`${d.propName}_${e.propName}`,conditions:[{field:d.propName,value:e.propName}]})),s={...g,label:"widget_common_conditions_recurrence_label_widgetDisplayedAfterSubmission",propName:"validationRecurrence"},u=c.map(e=>({...e,propName:`${s.propName}_${e.propName}`,conditions:[{field:s.propName,value:e.propName}]}));d.condition=({closeButton:e,layout:t,overlayClickable:i})=>!("popin"===t&&!1===e&&!1===i||void 0!==t&&"popin"!==t&&!1===e);const v={category:o,type:l,label:"widget_common_conditions_recurrence_blockTitle",collapsible:!0,children:[p,...m,d,..._,s,...u]},b={category:o,type:r,propName:"triggerEventDelay",label:"widget_common_conditions_triggering_delay_label",min:0,max:60,value:0},y={...b,propName:"triggerEventReengageDelay",value:10,max:180},f={category:o,type:"selectelement",propName:"triggerEventClick",value:"body"},w={...f,propName:"triggerEventElementVisible"},h={category:o,type:"textarea",label:"widget_common_conditions_triggering_option_customTrigger",propName:"triggerEventCustomScript",value:"/* In this example snippet, the widget will be triggered as soon as any scroll is detected.\nCreate your own by resolving resolve() with true (which does trigger) or false (which doesn't trigger) */\n\nfunction launchIfScroll() {\n\treturn new Promise(resolve => {\n\t\tdocument.addEventListener('scroll', () => resolve(true), {once: true});\n\t});\n}\n\nconst result = await launchIfScroll();\nreturn resolve(result);",rows:15},N={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"}},O={category:o,type:"switch",propName:"isOncePerPageTrigger",value:!0,label:"widget_common_conditions_triggering_label_triggerOnlyOnce"},x={category:o,type:"select",label:"widget_common_conditions_triggering_label",options:Object.keys(N).map(e=>N[e]),propName:"triggerEvent",value:"pageLoad"};f.conditions=[{field:"triggerEvent",value:"click"}],y.conditions=[{field:"triggerEvent",value:"reengage"}],w.conditions=[{field:"triggerEvent",value:"elementVisible"}],h.conditions=[{field:"triggerEvent",value:"script"}],b.conditions=[{field:"triggerEvent",value:e=>"reengage"!==e}],O.conditions=[{field:"triggerEvent",value:e=>"click"===e||"script"===e}];const k={category:o,type:l,label:"widget_common_conditions_triggering_blockTitle",collapsible:!0,children:[x,...[f,w,h,O,y,b]]};function E(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,o)}return i}function j(t){for(var i=1;i<arguments.length;i++){var o=null!=arguments[i]?arguments[i]:{};i%2?E(Object(o),!0).forEach((function(i){e(t,i,o[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):E(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}var P={type:"select",category:t,options:[{label:"px",value:"px"},{label:"%",value:"%"},{label:"em",value:"em"},{label:"vw (% of viewport width)",value:"vw"},{label:"vh (% of viewport height)",value:"vh"},{label:"vmin (% of viewport minimum size)",value:"vmin"},{label:"vmax (% of viewport maximum size)",value:"vmax"}]};return v.children=v.children.filter((function(e){return!e.propName.includes("validationRecurrence")})),[{type:"inlinenotification",category:i,label:"widget_iframe_closable_alert_text",hrefUrl:"widget_iframe_closable_alert_link"},{propName:"iframeUrl",type:"url",category:i,label:"widget_iframe_content_label_iframeUrl",value:"widget_googleForm_content_defaultUrl"},{propName:"width",type:n,category:t,label:{en:"Width",fr:"Longueur",es:"Ancho",de:"Breite"},value:50},j({label:{en:"Width unit",fr:"Unité de longueur",es:"Unidad de ancho",de:"Breiteneinheit"},propName:"widthUnit",value:"vw"},P),{propName:"height",type:n,category:t,label:{en:"Height",fr:"Hauteur",es:"Altura",de:"Höhe"},value:50},j({label:{en:"Height unit",fr:"Unité de hauteur",es:"Unidad de altura",de:"Höheneinheit"},propName:"heightUnit",value:"vh"},P),v,k]}));
{
"name": "@abtasty/google-form-modal",
"description": "Widget for AB Tasty",
"version": "1.3.1",
"version": "1.4.0",
"form": "dist/form.js",

@@ -6,0 +6,0 @@ "main": "dist/main.js",

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