diff --git a/dist/blocks/loop-item/block.json b/dist/blocks/loop-item/block.json index 8e8ff1182..39b21188c 100644 --- a/dist/blocks/loop-item/block.json +++ b/dist/blocks/loop-item/block.json @@ -65,6 +65,8 @@ "generateblocks/loopItem", "generateblocks/loopPreviewId", "generateblocks/hasLoopItems", + "generateblocks/queryId", + "generateblocks/setLoopPreviewId", "postId" ] } \ No newline at end of file diff --git a/dist/blocks/loop-item/index.asset.php b/dist/blocks/loop-item/index.asset.php index ba296c842..fee317b32 100644 --- a/dist/blocks/loop-item/index.asset.php +++ b/dist/blocks/loop-item/index.asset.php @@ -1 +1 @@ - array('lodash', 'react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-primitives', 'wp-rich-text', 'generateblocks-block-styles', 'generateblocks-components', 'generateblocks-styles-builder'), 'version' => 'b5b6dc2f0f3fc5f8a73c'); + array('lodash', 'react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-primitives', 'wp-rich-text', 'generateblocks-block-styles', 'generateblocks-components', 'generateblocks-styles-builder'), 'version' => '4b72fa9adfb0b2bf4e53'); diff --git a/dist/blocks/loop-item/index.js b/dist/blocks/loop-item/index.js index 3234a411d..a9dacbbd9 100644 --- a/dist/blocks/loop-item/index.js +++ b/dist/blocks/loop-item/index.js @@ -1,4 +1,4 @@ -(()=>{var e={838:function(e){e.exports=function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,r){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,r)}function r(e,n,a){return r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function(e,r,n){var a=[null];a.push.apply(a,r);var l=new(Function.bind.apply(e,a));return n&&t(l,n.prototype),l},r.apply(null,arguments)}function n(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1?r-1:0),a=1;a/gm),U=h(/\${[\w\W]*}/gm),G=h(/^data-[\-\w.\u00B7-\uFFFF]/),W=h(/^aria-[\-\w]+$/),Q=h(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),K=h(/^(?:\w+script|data):/i),$=h(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),J=h(/^html$/i),Y=h(/^[a-z][.\w]*(-[.\w]+)+$/i),X=function(){return"undefined"==typeof window?null:window};return function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:X(),a=function(e){return t(e)};if(a.version="2.5.6",a.removed=[],!r||!r.document||9!==r.document.nodeType)return a.isSupported=!1,a;var l=r.document,o=r.document,i=r.DocumentFragment,s=r.HTMLTemplateElement,c=r.Node,h=r.Element,d=r.NodeFilter,m=r.NamedNodeMap,g=void 0===m?r.NamedNodeMap||r.MozNamedAttrMap:m,p=r.HTMLFormElement,L=r.DOMParser,S=r.trustedTypes,ee=h.prototype,te=T(ee,"cloneNode"),re=T(ee,"nextSibling"),ne=T(ee,"childNodes"),ae=T(ee,"parentNode");if("function"==typeof s){var le=o.createElement("template");le.content&&le.content.ownerDocument&&(o=le.content.ownerDocument)}var oe=function(t,r){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var n=null,a="data-tt-policy-suffix";r.currentScript&&r.currentScript.hasAttribute(a)&&(n=r.currentScript.getAttribute(a));var l="dompurify"+(n?"#"+n:"");try{return t.createPolicy(l,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+l+" could not be created."),null}}(S,l),ie=oe?oe.createHTML(""):"",se=o,ce=se.implementation,ue=se.createNodeIterator,he=se.createDocumentFragment,de=se.getElementsByTagName,me=l.importNode,ge={};try{ge=A(o).documentMode?o.documentMode:{}}catch(e){}var pe={};a.isSupported="function"==typeof ae&&ce&&void 0!==ce.createHTMLDocument&&9!==ge;var Le,ve,fe=q,be=j,we=U,ye=G,Ce=W,ke=K,Ee=$,xe=Y,_e=Q,Me=null,Se=z({},[].concat(n(O),n(H),n(R),n(N),n(P))),ze=null,Ae=z({},[].concat(n(D),n(F),n(V),n(Z))),Te=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Oe=null,He=null,Re=!0,Be=!0,Ne=!1,Ie=!0,Pe=!1,De=!0,Fe=!1,Ve=!1,Ze=!1,qe=!1,je=!1,Ue=!1,Ge=!0,We=!1,Qe=!0,Ke=!1,$e={},Je=null,Ye=z({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Xe=null,et=z({},["audio","video","img","source","image","track"]),tt=null,rt=z({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),nt="http://www.w3.org/1998/Math/MathML",at="http://www.w3.org/2000/svg",lt="http://www.w3.org/1999/xhtml",ot=lt,it=!1,st=null,ct=z({},[nt,at,lt],y),ut=["application/xhtml+xml","text/html"],ht=null,dt=o.createElement("form"),mt=function(e){return e instanceof RegExp||e instanceof Function},gt=function(t){ht&&ht===t||(t&&"object"===e(t)||(t={}),t=A(t),Le=Le=-1===ut.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,ve="application/xhtml+xml"===Le?y:w,Me="ALLOWED_TAGS"in t?z({},t.ALLOWED_TAGS,ve):Se,ze="ALLOWED_ATTR"in t?z({},t.ALLOWED_ATTR,ve):Ae,st="ALLOWED_NAMESPACES"in t?z({},t.ALLOWED_NAMESPACES,y):ct,tt="ADD_URI_SAFE_ATTR"in t?z(A(rt),t.ADD_URI_SAFE_ATTR,ve):rt,Xe="ADD_DATA_URI_TAGS"in t?z(A(et),t.ADD_DATA_URI_TAGS,ve):et,Je="FORBID_CONTENTS"in t?z({},t.FORBID_CONTENTS,ve):Ye,Oe="FORBID_TAGS"in t?z({},t.FORBID_TAGS,ve):{},He="FORBID_ATTR"in t?z({},t.FORBID_ATTR,ve):{},$e="USE_PROFILES"in t&&t.USE_PROFILES,Re=!1!==t.ALLOW_ARIA_ATTR,Be=!1!==t.ALLOW_DATA_ATTR,Ne=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Ie=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Pe=t.SAFE_FOR_TEMPLATES||!1,De=!1!==t.SAFE_FOR_XML,Fe=t.WHOLE_DOCUMENT||!1,qe=t.RETURN_DOM||!1,je=t.RETURN_DOM_FRAGMENT||!1,Ue=t.RETURN_TRUSTED_TYPE||!1,Ze=t.FORCE_BODY||!1,Ge=!1!==t.SANITIZE_DOM,We=t.SANITIZE_NAMED_PROPS||!1,Qe=!1!==t.KEEP_CONTENT,Ke=t.IN_PLACE||!1,_e=t.ALLOWED_URI_REGEXP||_e,ot=t.NAMESPACE||lt,Te=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&mt(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Te.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&mt(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Te.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Te.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Pe&&(Be=!1),je&&(qe=!0),$e&&(Me=z({},n(P)),ze=[],!0===$e.html&&(z(Me,O),z(ze,D)),!0===$e.svg&&(z(Me,H),z(ze,F),z(ze,Z)),!0===$e.svgFilters&&(z(Me,R),z(ze,F),z(ze,Z)),!0===$e.mathMl&&(z(Me,N),z(ze,V),z(ze,Z))),t.ADD_TAGS&&(Me===Se&&(Me=A(Me)),z(Me,t.ADD_TAGS,ve)),t.ADD_ATTR&&(ze===Ae&&(ze=A(ze)),z(ze,t.ADD_ATTR,ve)),t.ADD_URI_SAFE_ATTR&&z(tt,t.ADD_URI_SAFE_ATTR,ve),t.FORBID_CONTENTS&&(Je===Ye&&(Je=A(Je)),z(Je,t.FORBID_CONTENTS,ve)),Qe&&(Me["#text"]=!0),Fe&&z(Me,["html","head","body"]),Me.table&&(z(Me,["tbody"]),delete Oe.tbody),u&&u(t),ht=t)},pt=z({},["mi","mo","mn","ms","mtext"]),Lt=z({},["foreignobject","annotation-xml"]),vt=z({},["title","style","font","a","script"]),ft=z({},H);z(ft,R),z(ft,B);var bt=z({},N);z(bt,I);var wt=function(e){b(a.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ie}catch(t){e.remove()}}},yt=function(e,t){try{b(a.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){b(a.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!ze[e])if(qe||je)try{wt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Ct=function(e){var t,r;if(Ze)e=""+e;else{var n=C(e,/^[\r\n\t ]+/);r=n&&n[0]}"application/xhtml+xml"===Le&&ot===lt&&(e=''+e+"");var a=oe?oe.createHTML(e):e;if(ot===lt)try{t=(new L).parseFromString(a,Le)}catch(e){}if(!t||!t.documentElement){t=ce.createDocument(ot,"template",null);try{t.documentElement.innerHTML=it?ie:a}catch(e){}}var l=t.body||t.documentElement;return e&&r&&l.insertBefore(o.createTextNode(r),l.childNodes[0]||null),ot===lt?de.call(t,Fe?"html":"body")[0]:Fe?t.documentElement:l},kt=function(e){return ue.call(e.ownerDocument||e,e,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null,!1)},Et=function(e){return e instanceof p&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof g)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},xt=function(t){return"object"===e(c)?t instanceof c:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},_t=function(e,t,r){pe[e]&&v(pe[e],(function(e){e.call(a,t,r,ht)}))},Mt=function(e){var t;if(_t("beforeSanitizeElements",e,null),Et(e))return wt(e),!0;if(_(/[\u0080-\uFFFF]/,e.nodeName))return wt(e),!0;var r=ve(e.nodeName);if(_t("uponSanitizeElement",e,{tagName:r,allowedTags:Me}),e.hasChildNodes()&&!xt(e.firstElementChild)&&(!xt(e.content)||!xt(e.content.firstElementChild))&&_(/<[/\w]/g,e.innerHTML)&&_(/<[/\w]/g,e.textContent))return wt(e),!0;if("select"===r&&_(/