PluginProbe ʕ •ᴥ•ʔ
JetFormBuilder — Dynamic Blocks Form Builder / 3.6.5
JetFormBuilder — Dynamic Blocks Form Builder v3.6.5
3.6.5.1 3.6.5 3.6.4.2 3.6.4.1 3.6.4 3.6.3.1 3.6.3 3.6.2.2 3.6.2.1 3.6.2 3.6.1.1 3.6.1 3.6.0.1 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.4.1 1.4.2 1.4.3 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.1.0 2.1.1 2.1.10 2.1.11 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 3.0.0 3.0.0.1 3.0.0.2 3.0.0.3 3.0.1 3.0.1.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.0.1 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.1.8 3.1.9 3.2.0 3.2.1 3.2.2 3.2.3 3.3.0 3.3.1 3.3.2 3.3.3 3.3.3.1 3.3.4 3.3.4.1 3.3.4.2 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.4.5.1 3.4.5.2 3.4.6 3.4.7 3.4.7.1 3.5.0 3.5.1 3.5.1.1 3.5.1.2 3.5.2 3.5.2.1 3.5.3 3.5.4 3.5.5 3.5.6 3.5.6.1 3.5.6.2 3.5.6.3 3.6.0
jetformbuilder / modules / macros-inserter / assets / build / editor.js
jetformbuilder / modules / macros-inserter / assets / build Last commit date
editor.asset.php 1 month ago editor.css 2 months ago editor.js 1 month ago
editor.js
1 lines
1 (()=>{"use strict";var e={d:(t,r)=>{for(var l in r)e.o(r,l)&&!e.o(t,l)&&Object.defineProperty(t,l,{enumerable:!0,get:r[l]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{default:()=>c,metadata:()=>l,name:()=>a,settings:()=>d});const r=window.React,l=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"jet-forms/macros-inserter","title":"Fields Preview","description":"Build a custom preview of filled form data with HTML, CSS, and macros that display field values.","category":"jet-form-builder-fields","supports":{"html":false},"attributes":{"content":{"type":"string","source":"html","selector":"div","default":""}},"editorScript":"jet-fb-macros-inserter-editor","editorStyle":["wp-codemirror","jet-fb-macros-inserter-editor"]}'),n=window.wp.element,o=window.wp.blockEditor,i="option-label",a=l.name,d={icon:(0,r.createElement)("svg",{width:"46",height:"50",viewBox:"0 0 46 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M34 37C36.7614 37 39 39.2386 39 42C39 44.7614 36.7614 47 34 47C31.2386 47 29 44.7614 29 42C29 39.2386 31.2386 37 34 37ZM34 39C32.3431 39 31 40.3431 31 42C31 43.6569 32.3431 45 34 45C35.6568 45 37 43.6568 37 42C37 40.3431 35.6568 39 34 39Z",fill:"#0F172A"}),(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17 34C18.6569 34 20 35.3431 20 37C20 38.6569 18.6569 40 17 40H9C7.34315 40 6 38.6569 6 37C6 35.3431 7.34315 34 9 34H17ZM9 36C8.44772 36 8 36.4477 8 37C8 37.5523 8.44772 38 9 38H17C17.5523 38 18 37.5523 18 37C18 36.4477 17.5523 36 17 36H9Z",fill:"#0F172A"}),(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M27 24C28.6569 24 30 25.3431 30 27C30 28.6569 28.6569 30 27 30H9C7.34315 30 6 28.6569 6 27C6 25.3431 7.34315 24 9 24H27ZM9 26C8.44772 26 8 26.4477 8 27C8 27.5523 8.44772 28 9 28H27C27.5523 28 28 27.5523 28 27C28 26.4477 27.5523 26 27 26H9Z",fill:"#0F172A"}),(0,r.createElement)("path",{d:"M17 20C17.5523 20 18 20.4477 18 21C18 21.5523 17.5523 22 17 22H7.5C6.94772 22 6.5 21.5523 6.5 21C6.5 20.4477 6.94772 20 7.5 20H17Z",fill:"#0F172A"}),(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M27 10C28.6569 10 30 11.3431 30 13C30 14.6569 28.6569 16 27 16H9C7.34315 16 6 14.6569 6 13C6 11.3431 7.34315 10 9 10H27ZM9 12C8.44772 12 8 12.4477 8 13C8 13.5523 8.44772 14 9 14H27C27.5523 14 28 13.5523 28 13C28 12.4477 27.5523 12 27 12H9Z",fill:"#0F172A"}),(0,r.createElement)("path",{d:"M17 6C17.5523 6 18 6.44772 18 7C18 7.55228 17.5523 8 17 8H7.5C6.94772 8 6.5 7.55228 6.5 7C6.5 6.44772 6.94772 6 7.5 6H17Z",fill:"#0F172A"}),(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32 0C34.2091 0 36 1.79086 36 4V34.1797L38 34.7109C42.6608 36.3599 46 40 46 42C46 45 40.6274 50 34 50C31.5909 50 29.1601 49.1756 27.1221 48H4C1.79086 48 0 46.2091 0 44V4C0 1.79086 1.79086 0 4 0H32ZM34 36C31.1823 36 28.5936 37.0692 26.7129 38.4766C25.7753 39.1782 25.0602 39.9301 24.5957 40.6113C24.1088 41.3255 24 41.8063 24 42C24 42.1937 24.1088 42.6745 24.5957 43.3887C25.0602 44.0699 25.7753 44.8218 26.7129 45.5234C28.5936 46.9308 31.1823 48 34 48C36.8177 48 39.4064 46.9308 41.2871 45.5234C42.2247 44.8218 42.9398 44.0699 43.4043 43.3887C43.8433 42.7448 43.9745 42.2906 43.9961 42.0654C43.9861 42.0342 43.9677 41.9803 43.9326 41.9023C43.841 41.6985 43.68 41.4166 43.4336 41.0742C42.9417 40.3909 42.1912 39.5818 41.2305 38.8076C39.289 37.2431 36.7186 36 34 36ZM4 2C2.89543 2 2 2.89543 2 4V44C2 45.1046 2.89543 46 4 46H24.3799C22.9152 44.6521 22 43.2041 22 42.0654C22.0002 39.131 28.0665 34 34 34V4C34 2.89543 33.1046 2 32 2H4Z",fill:"#0F172A"})),edit:function({attributes:e,setAttributes:t}){var l;const a=(0,o.useBlockProps)(),d=window?.JetFBComponents?.MacrosFields,c=(0,n.useRef)(null),s=(0,n.useRef)(null);return(0,n.useEffect)(()=>{var r;if(!c.current)return;if(!window?.wp?.codeEditor?.initialize)return;const l=wp.codeEditor.initialize(c.current,{codemirror:{mode:"htmlmixed",lineNumbers:!0,lineWrapping:!0,indentUnit:2,tabSize:2}}),n=l?.codemirror;if(!n)return;s.current=n,n.setValue(null!==(r=e?.content)&&void 0!==r?r:"");const o=()=>{t({content:n.getValue()})};return n.on("change",o),()=>{try{n.off("change",o)}catch(e){}s.current=null}},[]),(0,r.createElement)(n.Fragment,null,d?(0,r.createElement)(o.BlockControls,{group:"other"},(0,r.createElement)(d,{withCurrent:!0,onClick:(e,t,r)=>{var l,n;l=s.current,n=function(e,t,r){const l=String(e).replace(/^%|%$/g,"").trim();let n="";return t?.is_repeater_child&&(n="this field can be used only inside repeater - "+t.repeater_name),`<span data-jfb-macro="${l}"${i===r?` data-jfb-macro-format="${i}"`:""}>${n}</span>`}(e,t,r),l&&(l.focus(),l.replaceSelection(n,"end"))}})):null,(0,r.createElement)("div",{...a},(0,r.createElement)("textarea",{ref:c,defaultValue:null!==(l=e?.content)&&void 0!==l?l:"",rows:5,placeholder:"Use the toolbar to insert macros. You can also write custom HTML here…",style:{width:"100%",fontFamily:"monospace",boxSizing:"border-box"}})))},save:function({attributes:e}){var t;return(0,r.createElement)("div",null,(0,r.createElement)(n.RawHTML,null,null!==(t=e?.content)&&void 0!==t?t:""))}},c={metadata:l,name:a,settings:d};(0,window.wp.hooks.addFilter)("jet.fb.register.fields","jet-form-builder/macros-inserter",e=>(e.push(t),e))})();