Skip to content

Commit

Permalink
Updated AWF source
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Iglesias committed Sep 1, 2020
1 parent 3bb37d7 commit 780237f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions public/build/bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/build/bundle.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const scriptSrc =
'https://cdn.jsdelivr.net/gh/brotame/[email protected].2/dist/awf.js';
'https://cdn.jsdelivr.net/gh/brotame/[email protected]/dist/awf.js';

//prettier-ignore
export const starterForm = {"type":"@webflow/XscpData","payload":{"nodes":[{"_id":"38d2366b-4159-2510-38f3-6787f5878486","tag":"div","classes":[],"children":["38d2366b-4159-2510-38f3-6787f5878487","38d2366b-4159-2510-38f3-6787f58784df","38d2366b-4159-2510-38f3-6787f58784e2","0e1c4535-f4c0-c01c-f501-ba6c754dd6b0"],"type":"FormWrapper","data":{"form":{"type":"wrapper"}}},{"_id":"38d2366b-4159-2510-38f3-6787f5878487","tag":"form","classes":[],"children":["38d2366b-4159-2510-38f3-6787f5878488","38d2366b-4159-2510-38f3-6787f58784db"],"type":"FormForm","data":{"attr":{"id":"msf","name":"wf-form-Multi-Step-Form","data-name":"Multi Step Form"},"form":{"type":"form","name":"Multi Step Form"}}},{"_id":"38d2366b-4159-2510-38f3-6787f5878488","tag":"div","classes":["9e492cc5-3ba8-670c-f95e-8bb55c86b25a"],"children":["38d2366b-4159-2510-38f3-6787f5878489","38d2366b-4159-2510-38f3-6787f58784dc","38d2366b-4159-2510-38f3-6787f58784dd","38d2366b-4159-2510-38f3-6787f58784de"],"type":"SliderWrapper","data":{"slider":{"navSpacing":3,"autoplay":false,"delay":4000,"iconArrows":true,"animation":"outin","easing":"ease","navRound":false,"hideArrows":false,"disableSwipe":true,"duration":500,"infinite":false,"autoMax":0,"type":"wrapper"},"attr":{"data-animation":"outin","data-disable-swipe":"1","data-duration":"500"}}},{"_id":"38d2366b-4159-2510-38f3-6787f5878489","tag":"div","classes":[],"children":["38d2366b-4159-2510-38f3-6787f587848a","38d2366b-4159-2510-38f3-6787f58784aa","ef3f2af7-909c-644d-7267-6ccb03424cb6"],"type":"SliderMask","data":{"slider":{"type":"slides"}}},{"_id":"38d2366b-4159-2510-38f3-6787f587848a","tag":"div","classes":[],"children":["38d2366b-4159-2510-38f3-6787f587848b"],"type":"SliderSlide","data":{"tag":"div","slider":{"type":"slide"}}},{"_id":"38d2366b-4159-2510-38f3-6787f587848b","tag":"div","classes":[],"children":["38d2366b-4159-2510-38f3-6787f587848c","38d2366b-4159-2510-38f3-6787f587849d","38d2366b-4159-2510-38f3-6787f587849f","38d2366b-4159-2510-38f3-6787f58784a0","38d2366b-4159-2510-38f3-6787f58784a2","38d2366b-4159-2510-38f3-6787f58784a3","38d2366b-4159-2510-38f3-6787f58784a5","38d2366b-4159-2510-38f3-6787f58784a6"],"type":"Block","data":{"tag":"div"}},{"_id":"38d2366b-4159-2510-38f3-6787f587848c","tag":"p","classes":[],"children":["38d2366b-4159-2510-38f3-6787f587848d","38d2366b-4159-2510-38f3-6787f5878494","38d2366b-4159-2510-38f3-6787f5878495","38d2366b-4159-2510-38f3-6787f5878496","38d2366b-4159-2510-38f3-6787f5878497","f9618b03-efc9-eac9-4f27-19306d07c959","2db53dad-7e56-58ab-fbac-23671270cb69","38d2366b-4159-2510-38f3-6787f5878498","38d2366b-4159-2510-38f3-6787f5878499","65d30af1-1b1e-bcf1-c154-86697bc9cf3b","212d637a-f59b-f007-e4db-cc6345cf004a"],"type":"Paragraph"},{"_id":"38d2366b-4159-2510-38f3-6787f587848d","text":true,"v":"This is a simple form build that has all kind of inputs in 3 steps."},{"_id":"38d2366b-4159-2510-38f3-6787f5878494","tag":"br","classes":[],"children":[],"type":"LineBreak"},{"_id":"38d2366b-4159-2510-38f3-6787f5878495","text":true,"v":"‍"},{"_id":"38d2366b-4159-2510-38f3-6787f5878496","tag":"br","classes":[],"children":[],"type":"LineBreak"},{"_id":"38d2366b-4159-2510-38f3-6787f5878497","text":true,"v":"You can edit and style it however you want: add, delete or move steps (slides), inputs, confirmation values, etc."},{"_id":"f9618b03-efc9-eac9-4f27-19306d07c959","tag":"br","classes":[],"children":[],"type":"LineBreak"},{"_id":"2db53dad-7e56-58ab-fbac-23671270cb69","text":true,"v":"‍"},{"_id":"38d2366b-4159-2510-38f3-6787f5878498","tag":"br","classes":[],"children":[],"type":"LineBreak"},{"_id":"38d2366b-4159-2510-38f3-6787f5878499","text":true,"v":"Don't forget to check the "},{"_id":"65d30af1-1b1e-bcf1-c154-86697bc9cf3b","tag":"a","classes":[],"children":["e80b0a1b-f8ba-13fd-dc36-f3dad133c7d4"],"type":"Link","data":{"link":{"url":"https://advanced-forms.webflow.io/","mode":"external","target":"_blank"},"attr":{"href":"#"}}},{"_id":"e80b0a1b-f8ba-13fd-dc36-f3dad133c7d4","text":true,"v":"Advanced Forms Builder"},{"_id":"212d637a-f59b-f007-e4db-cc6345cf004a","text":true,"v":" for further customization and information."},{"_id":"38d2366b-4159-2510-38f3-6787f587849d","tag":"label","classes":[],"children":["38d2366b-4159-2510-38f3-6787f587849e"],"type":"FormBlockLabel","data":{"form":{"type":"label"},"attr":{"for":"name"}}},{"_id":"38d2366b-4159-2510-38f3-6787f587849e","text":true,"v":"Name*"},{"_id":"38d2366b-4159-2510-38f3-6787f587849f","tag":"input","classes":[],"children":[],"type":"FormTextInput","data":{"attr":{"autofocus":false,"maxlength":256,"name":"name","data-name":"Name","placeholder":"Input your name","type":"text","id":"name","disabled":false,"required":true},"form":{"type":"input","name":"Name"}}},{"_id":"38d2366b-4159-2510-38f3-6787f58784a0","tag":"label","classes":[],"children":["38d2366b-4159-2510-38f3-6787f58784a1"],"type":"FormBlockLabel","data":{"form":{"type":"label"},"attr":{"for":"email"}}},{"_id":"38d2366b-4159-2510-38f3-6787f58784a1","text":true,"v":"Email*"},{"_id":"38d2366b-4159-2510-38f3-6787f58784a2","tag":"input","classes":[],"children":[],"type":"FormTextInput","data":{"attr":{"autofocus":false,"maxlength":256,"name":"email","data-name":"Email","placeholder":"Input your email","type":"email","id":"email","disabled":false,"required":true},"form":{"type":"input","name":"Email"}}},{"_id":"38d2366b-4159-2510-38f3-6787f58784a3","tag":"label","classes":[],"children":["38d2366b-4159-2510-38f3-6787f58784a4"],"type":"FormBlockLabel","data":{"form":{"type":"label"},"attr":{"for":"phone"}}},{"_id":"38d2366b-4159-2510-38f3-6787f58784a4","text":true,"v":"Phone*"},{"_id":"38d2366b-4159-2510-38f3-6787f58784a5","tag":"input","classes":[],"children":[],"type":"FormTextInput","data":{"attr":{"autofocus":false,"maxlength":256,"name":"phone","data-name":"Phone","placeholder":"Input your phone number","type":"tel","id":"phone","disabled":false,"required":true},"form":{"type":"input","name":"Phone"}}},{"_id":"38d2366b-4159-2510-38f3-6787f58784a6","tag":"div","classes":[],"children":["38d2366b-4159-2510-38f3-6787f58784a7","38d2366b-4159-2510-38f3-6787f58784a8"],"type":"FormCheckboxWrapper","data":{"form":{"type":"checkbox"}}},{"_id":"38d2366b-4159-2510-38f3-6787f58784a7","tag":"input","classes":[],"children":[],"type":"FormCheckboxInput","data":{"attr":{"type":"checkbox","id":"checkbox","required":true,"data-name":"Checkbox","name":"checkbox"},"form":{"type":"checkbox-input","name":"Checkbox"},"inputType":"custom"}},{"_id":"38d2366b-4159-2510-38f3-6787f58784a8","tag":"label","classes":[],"children":["38d2366b-4159-2510-38f3-6787f58784a9"],"type":"FormInlineLabel","data":{"form":{"type":"checkbox-label"},"attr":{"for":"Checkbox-2"}}},{"_id":"38d2366b-4159-2510-38f3-6787f58784a9","text":true,"v":"This is a required checkbox."},{"_id":"38d2366b-4159-2510-38f3-6787f58784aa","tag":"div","classes":[],"children":["38d2366b-4159-2510-38f3-6787f58784ab"],"type":"SliderSlide","data":{"tag":"div","slider":{"type":"slide"}}},{"_id":"38d2366b-4159-2510-38f3-6787f58784ab","tag":"div","classes":[],"children":["38d2366b-4159-2510-38f3-6787f58784ac","38d2366b-4159-2510-38f3-6787f58784ae","38d2366b-4159-2510-38f3-6787f58784af","38d2366b-4159-2510-38f3-6787f58784b1"],"type":"Block","data":{"tag":"div"}},{"_id":"38d2366b-4159-2510-38f3-6787f58784ac","tag":"label","classes":[],"children":["38d2366b-4159-2510-38f3-6787f58784ad"],"type":"FormBlockLabel","data":{"form":{"type":"label"},"attr":{"for":"Service"}}},{"_id":"38d2366b-4159-2510-38f3-6787f58784ad","text":true,"v":"Select*"},{"_id":"38d2366b-4159-2510-38f3-6787f58784ae","tag":"select","classes":[],"children":[],"v":"<option value=\"\">Select one...</option>\n<option value=\"First Choice\">First Choice</option>\n<option value=\"Second Choice\">Second Choice</option>\n<option value=\"Third Choice\">Third Choice</option>","type":"FormSelect","data":{"attr":{"id":"service","name":"service","required":true,"data-name":"Service"},"form":{"type":"select","opts":[{"v":"","t":"Select one..."},{"v":"First Choice","t":"First Choice"},{"v":"Second Choice","t":"Second Choice"},{"v":"Third Choice","t":"Third Choice"}],"name":"Service"}}},{"_id":"38d2366b-4159-2510-38f3-6787f58784af","tag":"label","classes":[],"children":["38d2366b-4159-2510-38f3-6787f58784b0"],"type":"FormBlockLabel","data":{"form":{"type":"label"},"attr":{"for":"amount"}}},{"_id":"38d2366b-4159-2510-38f3-6787f58784b0","text":true,"v":"Number*"},{"_id":"38d2366b-4159-2510-38f3-6787f58784b1","tag":"input","classes":[],"children":[],"type":"FormTextInput","data":{"attr":{"autofocus":false,"maxlength":256,"name":"amount","data-name":"Amount","placeholder":"Choose amount","type":"number","id":"amount","disabled":false,"required":true},"form":{"type":"input","name":"Amount"}}},{"_id":"ef3f2af7-909c-644d-7267-6ccb03424cb6","tag":"div","classes":[],"children":["33127c1b-fb46-2bfa-4b3c-9db5bac6da91"],"type":"SliderSlide","data":{"tag":"div","slider":{"type":"slide"}}},{"_id":"33127c1b-fb46-2bfa-4b3c-9db5bac6da91","tag":"div","classes":[],"children":["33127c1b-fb46-2bfa-4b3c-9db5bac6da98","33127c1b-fb46-2bfa-4b3c-9db5bac6da9a","33127c1b-fb46-2bfa-4b3c-9db5bac6da9e","33127c1b-fb46-2bfa-4b3c-9db5bac6daa2","33127c1b-fb46-2bfa-4b3c-9db5bac6daa6","33127c1b-fb46-2bfa-4b3c-9db5bac6daaa","33127c1b-fb46-2bfa-4b3c-9db5bac6daac"],"type":"Block","data":{"tag":"div"}},{"_id":"33127c1b-fb46-2bfa-4b3c-9db5bac6da98","tag":"label","classes":[],"children":["33127c1b-fb46-2bfa-4b3c-9db5bac6da99"],"type":"FormBlockLabel","data":{"form":{"type":"label"}}},{"_id":"33127c1b-fb46-2bfa-4b3c-9db5bac6da99","text":true,"v":"Radio Group*"},{"_id":"33127c1b-fb46-2bfa-4b3c-9db5bac6da9a","tag":"div","classes":[],"children":["33127c1b-fb46-2bfa-4b3c-9db5bac6da9b","33127c1b-fb46-2bfa-4b3c-9db5bac6da9c"],"type":"FormRadioWrapper","data":{"form":{"type":"radio"}}},{"_id":"33127c1b-fb46-2bfa-4b3c-9db5bac6da9b","tag":"input","classes":[],"children":[],"type":"FormRadioInput","data":{"attr":{"type":"radio","data-name":"Options","id":"Option","name":"Options","value":"Option 1","required":true},"form":{"type":"radio-input","name":"Options"},"inputType":"custom"}},{"_id":"33127c1b-fb46-2bfa-4b3c-9db5bac6da9c","tag":"label","classes":[],"children":["33127c1b-fb46-2bfa-4b3c-9db5bac6da9d"],"type":"FormInlineLabel","data":{"form":{"type":"radio-label"},"attr":{"for":"Option -5"}}},{"_id":"33127c1b-fb46-2bfa-4b3c-9db5bac6da9d","text":true,"v":"Option 1"},{"_id":"33127c1b-fb46-2bfa-4b3c-9db5bac6da9e","tag":"div","classes":[],"children":["33127c1b-fb46-2bfa-4b3c-9db5bac6da9f","33127c1b-fb46-2bfa-4b3c-9db5bac6daa0"],"type":"FormRadioWrapper","data":{"form":{"type":"radio"}}},{"_id":"33127c1b-fb46-2bfa-4b3c-9db5bac6da9f","tag":"input","classes":[],"children":[],"type":"FormRadioInput","data":{"attr":{"type":"radio","data-name":"Options","id":"Option -2","name":"Options","value":"Option 2","required":true},"form":{"type":"radio-input","name":"Options"},"inputType":"custom"}},{"_id":"33127c1b-fb46-2bfa-4b3c-9db5bac6daa0","tag":"label","classes":[],"children":["33127c1b-fb46-2bfa-4b3c-9db5bac6daa1"],"type":"FormInlineLabel","data":{"form":{"type":"radio-label"},"attr":{"for":"Option -5"}}},{"_id":"33127c1b-fb46-2bfa-4b3c-9db5bac6daa1","text":true,"v":"Option 2"},{"_id":"33127c1b-fb46-2bfa-4b3c-9db5bac6daa2","tag":"div","classes":[],"children":["33127c1b-fb46-2bfa-4b3c-9db5bac6daa3","33127c1b-fb46-2bfa-4b3c-9db5bac6daa4"],"type":"FormRadioWrapper","data":{"form":{"type":"radio"}}},{"_id":"33127c1b-fb46-2bfa-4b3c-9db5bac6daa3","tag":"input","classes":[],"children":[],"type":"FormRadioInput","data":{"attr":{"type":"radio","data-name":"Options","id":"Option -3","name":"Options","value":"Option 3","required":true},"form":{"type":"radio-input","name":"Options"},"inputType":"custom"}},{"_id":"33127c1b-fb46-2bfa-4b3c-9db5bac6daa4","tag":"label","classes":[],"children":["33127c1b-fb46-2bfa-4b3c-9db5bac6daa5"],"type":"FormInlineLabel","data":{"form":{"type":"radio-label"},"attr":{"for":"Option -5"}}},{"_id":"33127c1b-fb46-2bfa-4b3c-9db5bac6daa5","text":true,"v":"Option 3"},{"_id":"33127c1b-fb46-2bfa-4b3c-9db5bac6daa6","tag":"div","classes":[],"children":["33127c1b-fb46-2bfa-4b3c-9db5bac6daa7","33127c1b-fb46-2bfa-4b3c-9db5bac6daa8"],"type":"FormRadioWrapper","data":{"form":{"type":"radio"}}},{"_id":"33127c1b-fb46-2bfa-4b3c-9db5bac6daa7","tag":"input","classes":[],"children":[],"type":"FormRadioInput","data":{"attr":{"type":"radio","data-name":"Options","id":"Option -4","name":"Options","value":"Option 4","required":true},"form":{"type":"radio-input","name":"Options"},"inputType":"custom"}},{"_id":"33127c1b-fb46-2bfa-4b3c-9db5bac6daa8","tag":"label","classes":[],"children":["33127c1b-fb46-2bfa-4b3c-9db5bac6daa9"],"type":"FormInlineLabel","data":{"form":{"type":"radio-label"},"attr":{"for":"Option -5"}}},{"_id":"33127c1b-fb46-2bfa-4b3c-9db5bac6daa9","text":true,"v":"Option 4"},{"_id":"33127c1b-fb46-2bfa-4b3c-9db5bac6daaa","tag":"label","classes":[],"children":["33127c1b-fb46-2bfa-4b3c-9db5bac6daab"],"type":"FormBlockLabel","data":{"form":{"type":"label"},"attr":{"for":"notes-2"}}},{"_id":"33127c1b-fb46-2bfa-4b3c-9db5bac6daab","text":true,"v":"Text Area"},{"_id":"33127c1b-fb46-2bfa-4b3c-9db5bac6daac","tag":"textarea","classes":[],"children":[],"type":"FormTextarea","data":{"attr":{"placeholder":"Tell us anything you need.","maxlength":5000,"id":"notes-2","name":"notes-2","data-name":"Notes 2"},"form":{"type":"textarea","name":"Notes 2"}}},{"_id":"38d2366b-4159-2510-38f3-6787f58784dc","tag":"div","classes":["07828abd-7f85-d22f-b6d9-ed59721f9f4b"],"children":[],"type":"SliderArrow","data":{"slider":{"type":"arrow","dir":"left"}}},{"_id":"38d2366b-4159-2510-38f3-6787f58784dd","tag":"div","classes":["07828abd-7f85-d22f-b6d9-ed59721f9f4b"],"children":[],"type":"SliderArrow","data":{"slider":{"type":"arrow","dir":"right"}}},{"_id":"38d2366b-4159-2510-38f3-6787f58784de","tag":"div","classes":["07828abd-7f85-d22f-b6d9-ed59721f9f4b"],"children":[],"type":"SliderNav","data":{"slider":{"type":"nav"}}},{"_id":"38d2366b-4159-2510-38f3-6787f58784db","tag":"input","classes":["07828abd-7f85-d22f-b6d9-ed59721f9f4b"],"children":[],"type":"FormButton","data":{"attr":{"type":"submit","value":"Submit","data-wait":"Please wait..."},"form":{"type":"button","wait":"Please wait..."}}},{"_id":"38d2366b-4159-2510-38f3-6787f58784df","tag":"div","classes":[],"children":["38d2366b-4159-2510-38f3-6787f58784e0"],"type":"FormSuccessMessage","data":{"form":{"type":"msg-done"}}},{"_id":"38d2366b-4159-2510-38f3-6787f58784e0","tag":"div","classes":[],"children":["38d2366b-4159-2510-38f3-6787f58784e1"],"type":"Block","data":{"tag":"div","text":true}},{"_id":"38d2366b-4159-2510-38f3-6787f58784e1","text":true,"v":"Thank you! Your submission has been received!"},{"_id":"38d2366b-4159-2510-38f3-6787f58784e2","tag":"div","classes":[],"children":["38d2366b-4159-2510-38f3-6787f58784e3"],"type":"FormErrorMessage","data":{"form":{"type":"msg-fail"}}},{"_id":"38d2366b-4159-2510-38f3-6787f58784e3","tag":"div","classes":[],"children":["38d2366b-4159-2510-38f3-6787f58784e4"],"type":"Block","data":{"tag":"div","text":true}},{"_id":"38d2366b-4159-2510-38f3-6787f58784e4","text":true,"v":"Oops! Something went wrong while submitting the form."},{"_id":"0e1c4535-f4c0-c01c-f501-ba6c754dd6b0","tag":"a","classes":[],"children":["0e1c4535-f4c0-c01c-f501-ba6c754dd6b1"],"type":"Link","data":{"button":true,"link":{"mode":"external"},"attr":{"id":"msf-next","href":"#msf"}}},{"_id":"0e1c4535-f4c0-c01c-f501-ba6c754dd6b1","text":true,"v":"Next"}],"styles":[{"_id":"9e492cc5-3ba8-670c-f95e-8bb55c86b25a","fake":false,"type":"class","name":"MSF Slider","namespace":"","comb":"","styleLess":"height: auto; background-color: transparent;","variants":{},"children":[],"selector":null},{"_id":"07828abd-7f85-d22f-b6d9-ed59721f9f4b","fake":false,"type":"class","name":"MSF Hidden","namespace":"","comb":"","styleLess":"display: none;","variants":{},"children":[],"selector":null}],"assets":[],"ix1":[],"ix2":{"interactions":[],"events":[],"actionLists":[]}},"meta":{"unlinkedSymbolCount":0,"droppedLinks":0,"dynBindRemovedCount":0,"dynListBindRemovedCount":0,"paginationRemovedCount":0}}

0 comments on commit 780237f

Please sign in to comment.