Version Description
Download this release
Release Info
Developer | grantmkin |
Plugin | Full Site Editing |
Version | 3.12588 |
Comparing to | |
See all releases |
Code changes from version 3.12492 to 3.12588
dotcom-fse/dist/dotcom-fse.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('lodash', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-dom-ready', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-server-side-render', 'wp-url'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-dom-ready', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-server-side-render', 'wp-url'), 'version' => '704f81f6a00ffe069159f1fa9df5d7ef');
|
dotcom-fse/dist/dotcom-fse.js
CHANGED
@@ -3,4 +3,4 @@
|
|
3 |
Copyright (c) 2018 Jed Watson.
|
4 |
Licensed under the MIT License (MIT), see
|
5 |
http://jedwatson.github.io/classnames
|
6 |
-
*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var t=[],e=0;e<arguments.length;e++){var n=arguments[e];if(n){var i=typeof n;if("string"===i||"number"===i)t.push(n);else if(Array.isArray(n)){if(n.length){var l=o.apply(null,n);l&&t.push(l)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var c in n)r.call(n,c)&&n[c]&&t.push(c);else t.push(n.toString())}}return t.join(" ")}t.exports?(o.default=o,t.exports=o):void 0===(n=function(){return o}.apply(e,[]))||(t.exports=n)}()},6959:function(){},7148:function(){},3920:function(){},9861:function(){},6913:function(){},7252:function(){},784:function(){},6254:function(){},1428:function(t,e,n){"use strict";n.d(e,{R:function(){return o}});var r=n(9314);function o(){for(var t=(0,r.getCategories)(),e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];for(var i=function(){var e=c[l];if(t.some((function(t){return t.slug===e})))return{v:e}},l=0,c=n;l<c.length;l++){var s=i();if("object"==typeof s)return s.v}throw new Error("Could not find a category from the provided list: ".concat(n.join(",")))}},49:function(t,e,n){"use strict";var r=n(3027),o=n(6399),i=n(7997),l=n(1417),c=n(5707),s=n(3163),a=n(9775),u=n.n(a),__=s.__;e.Z=(0,l.compose)([(0,o.withColors)("backgroundColor",{textColor:"color"}),(0,o.withFontSizes)("fontSize"),(0,c.withSelect)((function(t){return{isPublished:t("core/editor").isCurrentPostPublished()}}))])((function(t){var e=t.attributes,n=t.backgroundColor,l=t.fontSize,c=t.setAttributes,s=t.setBackgroundColor,a=t.setFontSize,d=t.setTextColor,f=t.textColor,p=t.isPublished,m=e.customFontSize,g=e.textAlign,v=m||l.size;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(o.BlockControls,null,(0,r.createElement)(o.AlignmentToolbar,{value:g,onChange:function(t){c({textAlign:t})}})),(0,r.createElement)(o.InspectorControls,null,(0,r.createElement)(i.PanelBody,{className:"blocks-font-size",title:__("Text Settings","full-site-editing")},(0,r.createElement)(o.FontSizePicker,{onChange:a,value:v})),(0,r.createElement)(o.PanelColorSettings,{title:__("Color Settings","full-site-editing"),initialOpen:!1,colorSettings:[{value:n.color,onChange:s,label:__("Background Color","full-site-editing")},{value:f.color,onChange:d,label:__("Text Color","full-site-editing")}]},(0,r.createElement)(o.ContrastChecker,{textColor:f.color,backgroundColor:n.color,fontSize:v}))),(0,r.createElement)(u(),{isPublished:p,block:"a8c/navigation-menu",attributes:e}))}))},4018:function(t,e,n){"use strict";var r=n(3027),o=n(9314),i=n(3163),l=n(1428),c=n(49),__=(n(6959),i.__),s=(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,r.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),(0,r.createElement)("path",{d:"M12 7.27l4.28 10.43-3.47-1.53-.81-.36-.81.36-3.47 1.53L12 7.27M12 2L4.5 20.29l.71.71L12 18l6.79 3 .71-.71L12 2z"}));(0,o.registerBlockType)("a8c/navigation-menu",{title:__("Navigation Menu","full-site-editing"),description:__("Visual placeholder for site-wide navigation and menus.","full-site-editing"),icon:s,category:(0,l.R)("design","layout"),supports:{align:["wide","full","right","left"],html:!1,reusable:!1},edit:c.Z,save:function(){return null}})},966:function(t,e,n){"use strict";var r=n(1119),o=n(4659),i=n(4730),l=n(5663),c=n(9049),s=n(3027),a=n(6399),u=n(1417),d=n(5707),f=n(8885),p=n(2779),m=n.n(p),g=function(t){(0,l.Z)(n,t);var e=(0,c.Z)(n);function n(){return(0,o.Z)(this,n),e.apply(this,arguments)}return(0,i.Z)(n,[{key:"toggleEditing",value:function(){var t=this.props,e=t.isEditing;(0,t.setState)({isEditing:!e})}},{key:"onSelectPost",value:function(t){var e=t.id,n=t.type;this.props.setState({isEditing:!1,selectedPostId:e,selectedPostType:n})}},{key:"render",value:function(){var t=this.props.attributes.align;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{className:m()("post-content-block",(0,r.Z)({},"align".concat(t),t))},(0,s.createElement)(f.PostTitle,null),(0,s.createElement)(a.InnerBlocks,{templateLock:!1})))}}]),n}(s.Component);e.Z=(0,u.compose)([(0,u.withState)({isEditing:!1,selectedPostId:void 0,selectedPostType:void 0}),(0,d.withSelect)((function(t,e){var n=e.selectedPostId,r=e.selectedPostType;return{selectedPost:(0,t("core").getEntityRecord)("postType",r,n)}}))])(g)},7308:function(t,e,n){"use strict";var r=n(7560),o=n(3027),i=n(9314),l=n(1417),c=n(5799),s=n(3163),a=n(1428),u=n(966),d=n(3175),__=(n(7148),s.__);(0,i.registerBlockType)("a8c/post-content",{title:__("Content","full-site-editing"),description:__("The page content.","full-site-editing"),icon:"layout",category:(0,a.R)("design","layout"),supports:{align:["full"],anchor:!1,customClassName:!1,html:!1,inserter:!1,multiple:!1,reusable:!1},attributes:{align:{type:"string",default:"full"}},edit:u.Z,save:d.Z});var f=(0,l.createHigherOrderComponent)((function(t){return function(e){return"a8c/post-content"!==e.name?(0,o.createElement)(t,e):(0,o.createElement)(t,(0,r.Z)({},e,{className:"post-content__block"}))}}),"addContentSlotClassname");(0,c.addFilter)("editor.BlockListBlock","full-site-editing/blocks/post-content",f,9)},3175:function(t,e,n){"use strict";var r=n(3027),o=n(6399);e.Z=function(){return(0,r.createElement)(o.InnerBlocks.Content,null)}},1097:function(t,e,n){"use strict";var r=n(1119),o=n(3027),i=n(6399),l=n(7997),c=n(1417),s=n(3163),a=n(2779),u=n.n(a),d=n(6284),f=n(8558),__=s.__,p=fullSiteEditing,m=p.footerCreditOptions,g=p.defaultCreditOption;e.Z=(0,c.compose)([(0,d.g)({siteTitleOption:{optionName:"title",defaultValue:__("Site title loading…","full-site-editing")},footerCreditOption:{optionName:"footer_credit",defaultValue:__("Footer credit loading…","full-site-editing")}})])((function(t){var e=t.attributes.textAlign,n=void 0===e?"center":e,c=t.isSelected,s=t.setAttributes,a=t.footerCreditOption,d=a.value,p=a.updateValue,v=t.siteTitleOption.value,b=d||g;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(i.BlockControls,null,(0,o.createElement)(i.AlignmentToolbar,{value:n,onChange:function(t){s({textAlign:t})}})),(0,o.createElement)("div",{className:u()("site-info","site-credit__block",(0,r.Z)({},"has-text-align-".concat(n),n))},(0,o.createElement)("span",{className:"site-name"},v),(0,o.createElement)("span",{className:"comma"},","),(0,o.createElement)("span",{className:"site-credit__selection"},c?(0,o.createElement)(l.SelectControl,{onChange:p,value:b,options:m}):(0,o.createElement)(f.U,{choice:b}))))}))},8558:function(t,e,n){"use strict";n.d(e,{U:function(){return c}});var r=n(9394),o=n(3027),i=n(7997),l=fullSiteEditing.footerCreditOptions,c=function(t){var e=t.choice,n=l.find((function(t){return t.value===e}));if(!n)return null;var c=n.renderType,s=n.renderProps,a=n.label,u=(0,r.Z)({label:a},s);return"icon"===c?(0,o.createElement)(i.Icon,u):(0,o.createElement)("span",null," ",u.label," ")}},6367:function(t,e,n){"use strict";var r=n(9314),o=n(3163),i=n(1428),l=n(1097),__=(n(3920),o.__);(0,r.registerBlockType)("a8c/site-credit",{title:__("WordPress.com Credit","full-site-editing"),description:__("This block tells the world that you're using WordPress.com.","full-site-editing"),icon:"wordpress-alt",category:(0,i.R)("design","layout"),supports:{align:["wide","full"],html:!1,multiple:!1,reusable:!1,removal:!1},attributes:{align:{type:"string",default:"wide"},textAlign:{type:"string",default:"center"}},edit:l.Z,save:function(){return null}})},942:function(t,e,n){"use strict";var r=n(1119),o=n(3027),i=n(6399),l=n(7997),c=n(1417),s=n(5707),a=n(3163),u=n(2779),d=n.n(u),f=n(6284),__=a.__,p=function(){};e.Z=(0,c.compose)([(0,i.withColors)("backgroundColor",{textColor:"color"}),(0,i.withFontSizes)("fontSize"),(0,s.withSelect)((function(t,e){var n=e.clientId,r=t("core/block-editor"),o=r.getBlockIndex,i=r.getBlockRootClientId,l=r.getTemplateLock,c=i(n);return{blockIndex:o(n,c),isLocked:!!l(c),rootClientId:c}})),(0,s.withDispatch)((function(t,e){var n=e.blockIndex,r=e.rootClientId;return{insertDefaultBlock:function(){return t("core/block-editor").insertDefaultBlock({},r,n+1)}}})),(0,f.g)({siteDescription:{optionName:"description",defaultValue:__("Site description loading…","full-site-editing")}})])((function(t){var e,n=t.attributes,c=t.backgroundColor,s=t.className,a=t.fontSize,u=t.insertDefaultBlock,f=t.setAttributes,m=t.setBackgroundColor,g=t.setFontSize,v=t.setTextColor,b=t.siteDescription,y=t.textColor,h=n.customFontSize,w=n.textAlign,S=h||a.size,E=b.value,k=b.updateValue;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(i.BlockControls,null,(0,o.createElement)(i.AlignmentToolbar,{value:w,onChange:function(t){f({textAlign:t})}})),(0,o.createElement)(i.InspectorControls,null,(0,o.createElement)(l.PanelBody,{className:"blocks-font-size",title:__("Text Settings","full-site-editing")},(0,o.createElement)(i.FontSizePicker,{onChange:g,value:S})),(0,o.createElement)(i.PanelColorSettings,{title:__("Color Settings","full-site-editing"),initialOpen:!1,colorSettings:[{value:c.color,onChange:m,label:__("Background Color","full-site-editing")},{value:y.color,onChange:v,label:__("Text Color","full-site-editing")}]},(0,o.createElement)(i.ContrastChecker,{textColor:y.color,backgroundColor:c.color,fontSize:S}))),(0,o.createElement)(i.RichText,{allowedFormats:[],"aria-label":__("Site Description","full-site-editing"),className:d()("site-description",s,(e={"has-text-color":y.color,"has-background":c.color},(0,r.Z)(e,"has-text-align-".concat(w),w),(0,r.Z)(e,c.class,c.class),(0,r.Z)(e,y.class,y.class),(0,r.Z)(e,a.class,!h&&a.class),e)),identifier:"content",onChange:k,onReplace:u,onSplit:p,placeholder:__("Add a Site Description","full-site-editing"),style:{backgroundColor:c.color,color:y.color,fontSize:S?S+"px":void 0},tagName:"p",value:E}))}))},5129:function(t,e,n){"use strict";var r=n(3027),o=n(9314),i=n(3163),l=n(1428),c=n(942),__=(n(9861),i.__);(0,o.registerBlockType)("a8c/site-description",{title:__("Site Description","full-site-editing"),description:__("Site description, also known as the tagline.","full-site-editing"),icon:(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"},(0,r.createElement)("path",{fill:"none",d:"M0 0h24v24H0z"}),(0,r.createElement)("path",{d:"M4 9h16v2H4V9zm0 4h10v2H4v-2z"})),category:(0,l.R)("design","layout"),supports:{align:["wide","full"],html:!1,multiple:!1,reusable:!1},attributes:{align:{type:"string",default:"wide"},textAlign:{type:"string",default:"center"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},fontSize:{type:"string",default:"small"},customFontSize:{type:"number"}},edit:c.Z,save:function(){return null}})},512:function(t,e,n){"use strict";var r=n(1119),o=n(3027),i=n(6399),l=n(7997),c=n(1417),s=n(5707),a=n(3163),u=n(2779),d=n.n(u),f=n(6284),__=a.__,p=function(){};e.Z=(0,c.compose)([(0,i.withColors)({textColor:"color"}),(0,i.withFontSizes)("fontSize"),(0,s.withSelect)((function(t,e){var n=e.clientId,r=t("core/block-editor"),o=r.getBlockIndex,i=r.getBlockRootClientId,l=r.getTemplateLock,c=i(n);return{blockIndex:o(n,c),isLocked:!!l(c),rootClientId:c}})),(0,s.withDispatch)((function(t,e){var n=e.blockIndex,r=e.rootClientId;return{insertDefaultBlock:function(){return t("core/block-editor").insertDefaultBlock({},r,n+1)}}})),(0,f.g)({siteTitle:{optionName:"title",defaultValue:__("Site title loading…","full-site-editing")}})])((function(t){var e,n=t.attributes,c=t.className,s=t.fontSize,a=t.insertDefaultBlock,u=t.setAttributes,f=t.setFontSize,m=t.setTextColor,g=t.siteTitle,v=t.textColor,b=n.customFontSize,y=n.textAlign,h=b||s.size,w=g.value,S=g.updateValue;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(i.BlockControls,null,(0,o.createElement)(i.AlignmentToolbar,{value:y,onChange:function(t){u({textAlign:t})}})),(0,o.createElement)(i.InspectorControls,null,(0,o.createElement)(l.PanelBody,{className:"blocks-font-size",title:__("Text Settings","full-site-editing")},(0,o.createElement)(i.FontSizePicker,{onChange:f,value:h})),(0,o.createElement)(i.PanelColorSettings,{title:__("Color Settings","full-site-editing"),initialOpen:!1,colorSettings:[{value:v.color,onChange:m,label:__("Text Color","full-site-editing")}]})),(0,o.createElement)(i.RichText,{allowedFormats:[],"aria-label":__("Site Title","full-site-editing"),className:d()("site-title",c,(e={"has-text-color":v.color},(0,r.Z)(e,"has-text-align-".concat(y),y),(0,r.Z)(e,v.class,v.class),(0,r.Z)(e,s.class,!b&&s.class),e)),identifier:"content",onChange:S,onReplace:a,onSplit:p,placeholder:__("Add a Site Title","full-site-editing"),style:{color:v.color,fontSize:h?h+"px":void 0},tagName:"h1",value:w}))}))},5725:function(t,e,n){"use strict";var r=n(9314),o=n(3163),i=n(1428),l=n(512),__=(n(6913),o.__);(0,r.registerBlockType)("a8c/site-title",{title:__("Site Title","full-site-editing"),description:__("Your site title.","full-site-editing"),icon:"layout",category:(0,i.R)("design","layout"),supports:{align:["wide","full"],html:!1,multiple:!1,reusable:!1},attributes:{align:{type:"string",default:"wide"},textAlign:{type:"string",default:"center"},textColor:{type:"string"},customTextColor:{type:"string"},fontSize:{type:"string",default:"normal"},customFontSize:{type:"number"}},edit:l.Z,save:function(){return null}})},6594:function(t,e,n){"use strict";var r=n(1119),o=n(3258),i=n(3027),l=n(6399),c=n(9314),s=n(7997),a=n(1417),u=n(5707),d=n(3163),f=n(791),p=n(2779),m=n.n(p),g=n(3804),__=(n(7252),d.__),v=function(){},b=(0,a.compose)((0,a.withState)({templateClientId:null}),(0,u.withSelect)((function(t,e){var n=e.attributes,r=e.templateClientId,o=t("core").getEntityRecord,i=t("core/editor"),l=i.getCurrentPostId,c=i.isEditedPostDirty,s=t("core/block-editor"),a=s.getBlock,u=s.getSelectedBlock,d=t("core/edit-post").isEditorSidebarOpened,p=n.templateId,m=l(),v=p&&o("postType","wp_template_part",p),b=(0,f.addQueryArgs)(fullSiteEditing.editTemplateBaseUrl,{post:p,fse_parent_post:m}),y=u();return{currentPostId:m,editTemplateUrl:b,template:v,templateBlock:a(r),templateTitle:(0,g.get)(v,["title","rendered"],""),isDirty:c(),isEditorSidebarOpened:!!d(),isAnyTemplateBlockSelected:y&&"a8c/template"===y.name}})),(0,u.withDispatch)((function(t,e){var n=t("core/block-editor").receiveBlocks,r=t("core/edit-post").openGeneralSidebar,o=e.template,i=e.templateClientId,l=e.setState;return{savePost:t("core/editor").savePost,receiveTemplateBlocks:function(){if(o&&!i){var t=(0,c.parse)((0,g.get)(o,["content","raw"],"")),e=(0,c.createBlock)("core/group",{},t);n([e]),l({templateClientId:e.clientId})}},openGeneralSidebar:r}})))((function(t){var e,n=t.attributes,c=t.editTemplateUrl,a=t.receiveTemplateBlocks,u=t.template,f=t.templateBlock,p=t.templateTitle,g=t.isDirty,b=t.savePost,y=t.isEditorSidebarOpened,h=t.openGeneralSidebar,w=t.isAnyTemplateBlockSelected;if(!u)return(0,i.createElement)(s.Placeholder,{className:"template-block__placeholder"},(0,i.createElement)(s.Spinner,null));var S=(0,i.createRef)(),E=(0,i.useState)(!1),k=(0,o.Z)(E,2),C=k[0],Z=k[1];(0,i.useEffect)((function(){C&&!g&&S.current.click(),a()})),(0,i.useEffect)((function(){var t=document.querySelector(".edit-post-sidebar__panel-tabs ul li:last-child");if(y&&t){if(w)return h("edit-post/document"),void t.classList.add("hidden");t.classList.remove("hidden")}}),[w,y,h]);var _=n.align,P=n.className,x=function(t){t.stopPropagation(),Z(!0),g&&(t.preventDefault(),b())};return(0,i.createElement)("div",{className:m()("template-block",(e={},(0,r.Z)(e,"align".concat(_),_),(0,r.Z)(e,"is-navigating-to-template",C),e))},f&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.Disabled,null,(0,i.createElement)("div",{className:P},(0,i.createElement)(l.BlockEdit,{attributes:f.attributes,block:f,clientId:f.clientId,isSelected:!1,name:f.name,setAttributes:v}))),(0,i.createElement)(s.Placeholder,{className:"template-block__overlay",onClick:x},C&&(0,i.createElement)("div",{className:"template-block__loading"},(0,i.createElement)(s.Spinner,null)," ",(0,d.sprintf)(__("Loading editor for: %s","full-site-editing"),p)),(0,i.createElement)(s.Button,{className:C?"hidden":null,href:c,onClick:x,isDefault:!0,isLarge:!0,ref:S},(0,d.sprintf)(__("Edit %s","full-site-editing"),p)))))}));e.Z=b},4987:function(t,e,n){"use strict";var r=n(7560),o=n(3027),i=n(9314),l=n(1417),c=n(5799),s=n(3163),a=n(1428),u=n(6594),__=(n(7252),n(4498),s.__);"wp_template_part"!==fullSiteEditing.editorPostType&&(0,i.registerBlockType)("a8c/template",{title:__("Template Part","full-site-editing"),__experimentalDisplayName:"label",description:__("Display a Template Part.","full-site-editing"),icon:"layout",category:(0,a.R)("design","layout"),attributes:{templateId:{type:"number"},className:{type:"string"},label:{type:"string"}},supports:{anchor:!1,customClassName:!1,html:!1,inserter:!1,reusable:!1},edit:u.Z,save:function(){return null},getEditWrapperProps:function(){return{"data-align":"full"}}});var d=(0,l.createHigherOrderComponent)((function(t){return function(e){return"a8c/template"!==e.name?(0,o.createElement)(t,e):(0,o.createElement)(t,(0,r.Z)({},e,{className:"template__block-container"}))}}),"addFSETemplateClassname");(0,c.addFilter)("editor.BlockListBlock","full-site-editing/blocks/template",d,9)},4498:function(t,e,n){"use strict";var r=n(7560),o=n(3027),i=n(1417),l=n(5799),c=(0,i.createHigherOrderComponent)((function(t){return function(e){return"fse-site-logo"!==e.attributes.className?(0,o.createElement)(t,e):(0,o.createElement)(t,(0,r.Z)({},e,{className:"template__site-logo"}))}}),"addFSESiteLogoClassname");(0,l.addFilter)("editor.BlockListBlock","full-site-editing/blocks/template",c)},9987:function(t,e,n){"use strict";var r=n(3027),o=n(7531),i=n.n(o),l=n(8259),c="fse-post-content-block-inserter";function s(){if(!document.getElementById(c)){var t=document.querySelector(".edit-post-header-toolbar");if(t){var e=document.createElement("div");e.className="fse-post-content-block-inserter",e.id=c,t.insertBefore(e,t.firstChild),(0,r.render)((0,r.createElement)(l.Z,null),e)}}}i()((function(){if("page"===fullSiteEditing.editorPostType)var t=setInterval((function(){document.querySelector(".edit-post-header-toolbar")&&(clearInterval(t),s(),document.getElementById("wpbody")&&void 0!==window.MutationObserver&&new window.MutationObserver(s).observe(document.getElementById("wpbody"),{subtree:!0,childList:!0}))}))}))},8259:function(t,e,n){"use strict";var r=n(3027),o=n(6399),i=n(1417),l=n(5707),c=(0,i.compose)((0,l.withSelect)((function(t){var e=t("core/editor").getEditorSettings,n=t("core/block-editor").getBlocks,r=t("core/edit-post").getEditorMode,o=n().find((function(t){return"a8c/post-content"===t.name}));return{rootClientId:o?o.clientId:"",showInserter:"visual"===r()&&e().richEditingEnabled}})))((function(t){var e=t.rootClientId,n=t.showInserter;return(0,r.createElement)(o.Inserter,{rootClientId:e,disabled:!n,position:"bottom right",toggleProps:{isPrimary:!0}})}));e.Z=c},6970:function(t,e,n){"use strict";var r=n(9394),o=n(5799),i=["logo","brand","emblem","hallmark"];(0,o.addFilter)("blocks.registerBlockType","full-site-editing/editor/image-block-keywords",(function(t,e){return"core/image"!==e?t:t=(0,r.Z)((0,r.Z)({},t),{},{keywords:t.keywords.concat(i)})}))},7111:function(t,e,n){"use strict";n(9987),n(1860),n(6970),n(784),n(3644),n(711),n(1321)},1321:function(t,e,n){"use strict";var r=n(5707),o=(0,r.subscribe)((function(){var t=(0,r.dispatch)("core/edit-post").removeEditorPanel;return"page"===fullSiteEditing.editorPostType&&t("featured-image"),"wp_template_part"===fullSiteEditing.editorPostType&&t("post-status"),o()}))},711:function(t,e,n){"use strict";var r=n(9394),o=n(5707);(0,o.use)((function(t){return{dispatch:function(e){var n=(0,r.Z)({},t.dispatch(e)),o=fullSiteEditing.editorPostType;if("core/editor"===e&&n.editPost&&"wp_template_part"===o){var i=n.editPost;n.editPost=function(t){"draft"!==t.status&&i(t)}}return n}}}))},3644:function(t,e,n){"use strict";var r=n(9394),o=n(5707);(0,o.use)((function(t){return{dispatch:function(e){var n=(0,r.Z)({},t.dispatch(e)),o=fullSiteEditing.editorPostType;return"core/editor"===e&&n.trashPost&&"wp_template_part"===o&&(n.trashPost=function(){}),n}}}))},1860:function(t,e,n){"use strict";var r=n(5707),o=(0,r.subscribe)((function(){if("page"!==fullSiteEditing.editorPostType)return o();!1===(0,r.select)("core/block-editor").isValidTemplate()&&(0,r.dispatch)("core/block-editor").setTemplateValidity(!0)}))},6284:function(t,e,n){"use strict";n.d(e,{g:function(){return r.g}});var r=n(4825)},4825:function(t,e,n){"use strict";n.d(e,{g:function(){return r.g}});n(4351);var r=n(29)},5333:function(t,e,n){"use strict";n.d(e,{D:function(){return o}});var r=n(3027);function o(t){var e=(0,r.useRef)();return(0,r.useEffect)((function(){e.current=t}),[t]),e.current}},4351:function(t,e,n){"use strict";n.d(e,{s:function(){return f}});var r=n(1119),o=n(9394),i=n(3258),l=n(7606),c=n.n(l),s=n(3027),a=n(1424),u=n(3163),d=n(5333),__=u.__;function f(t,e,n,l,f,p){var m=(0,s.useState)({option:e,previousOption:"",loaded:!1,error:!1}),g=(0,i.Z)(m,2),v=g[0],b=g[1],y=(0,d.D)(l),h=(0,d.D)(f);function w(){b((0,o.Z)((0,o.Z)({},v),{},{option:v.previousOption,isSaving:!1}))}return(0,s.useEffect)((function(){v.loaded||v.error?function(){var e=v.option,i=v.previousOption,s=!i&&!e||e&&i&&e.trim()===i.trim(),a=!e||0===e.trim().length;!l&&y&&a&&w();if(!f||s)return;!h&&f&&function(e){b((0,o.Z)((0,o.Z)({},v),{},{isSaving:!0})),c()({path:"/wp/v2/settings",method:"POST",data:(0,r.Z)({},t,e)}).then((function(){return function(t){b((0,o.Z)((0,o.Z)({},v),{},{previousOption:t,isDirty:!1,isSaving:!1}))}(e)})).catch((function(){n((0,u.sprintf)(__("Unable to save site %s","full-site-editing"),t)),w()}))}(e)}():c()({path:"/wp/v2/settings"}).then((function(e){return b((0,o.Z)((0,o.Z)({},v),{},{option:(0,a.decodeEntities)(e[t]),previousOption:(0,a.decodeEntities)(e[t]),loaded:!0,error:!1}))})).catch((function(){n((0,u.sprintf)(__("Unable to load site %s","full-site-editing"),t)),b((0,o.Z)((0,o.Z)({},v),{},{option:(0,u.sprintf)(__("Error loading site %s","full-site-editing"),t),error:!0}))}))})),{siteOptions:v,handleChange:function(t){p({updated:Date.now()}),b((0,o.Z)((0,o.Z)({},v),{},{option:t}))}}}},29:function(t,e,n){"use strict";n.d(e,{g:function(){return s}});var r=n(7560),o=n(3027),i=n(1417),l=n(5707),c=n(4351),s=function(t){return(0,i.createHigherOrderComponent)((function(e){return(0,i.pure)((function(n){var i=(0,l.useSelect)((function(t){var e=t("core/editor"),n=e.isSavingPost,r=e.isPublishingPost,o=e.isAutosavingPost,i=e.isCurrentPostPublished;return(n()&&i()||r())&&!o()})),s=(0,l.useDispatch)((function(t){return t("core/notices").createErrorNotice})),a=n.isSelected,u=n.setAttributes,d=Object.keys(t).reduce((function(e,n){var r=t[n],o=r.optionName,l=r.defaultValue,d=(0,c.s)(o,l,s,a,i,u),f=d.siteOptions,p=d.handleChange;return e[n]={value:f.option,updateValue:p,loaded:f.loaded},e}),{});return(0,o.createElement)(e,(0,r.Z)({},n,d))}))}),"withSiteOptions")}},3427:function(t,e,n){"use strict";var r=n(3258),o=n(3027),i=n(7997),l=n(7531),c=n.n(l),s=n(3163),a=n(7196),u=n.n(a),__=(n(6254),s.__);function d(t){var e=t.defaultLabel,n=t.defaultUrl,l=(0,o.useState)(e),c=(0,r.Z)(l,2),s=c[0],a=c[1],u=(0,o.useState)(n),d=(0,r.Z)(u,2),f=d[0],p=d[1];return window.wp.hooks.addAction("updateCloseButtonOverrides","a8c-fse",(function(t){a(t.label),p(t.closeUrl)})),(0,o.createElement)("a",{href:f,"aria-label":s},(0,o.createElement)(i.Button,{className:"components-button components-icon-button"},(0,o.createElement)(i.Dashicon,{icon:"arrow-left-alt2"}),(0,o.createElement)("div",{className:"close-button-override__label"},s)))}c()((function(){var t=fullSiteEditing.editorPostType;if("wp_template_part"===t||"page"===t||"post"===t)var e=setInterval((function(){var n=document.querySelector(".edit-post-header__toolbar");if(n){clearInterval(e);var r=document.createElement("div");r.className="components-toolbar edit-post-fullscreen-mode-close__toolbar edit-post-fullscreen-mode-close__toolbar__override",n.prepend(r);var i=fullSiteEditing,l=i.closeButtonLabel,c=i.closeButtonUrl,s=window.calypsoifyGutenberg;s&&s.closeUrl&&(c=s.closeUrl),s&&s.closeButtonLabel&&(l=s.closeButtonLabel);var a=c||"edit.php?post_type=".concat(t),f=l||"Back";"page"!==t||l?"post"!==t||l?"wp_template_part"!==t||l||(f=__("Template Parts","full-site-editing")):f=__("Posts","full-site-editing"):f=__("Pages","full-site-editing"),u().render((0,o.createElement)(d,{defaultLabel:f,defaultUrl:a}),r)}}))}))},601:function(t,e,n){"use strict";var r=n(1766),o=n(5707),i=n(1200),l=n(2779),c=n.n(l),s=n(3804),a=(0,o.withSelect)((function(t){var e=t("core").getEntityRecord,n=t("core/editor").getEditedPostAttribute;return{templateClasses:(0,s.map)(n("template_part_types"),(function(t){var n=(0,s.get)(e("taxonomy","wp_template_part_type",t),"name","");return n.endsWith("-header")?"fse-header":n.endsWith("-footer")?"fse-footer":void 0}))}}))((function(t){var e=t.templateClasses,n=setInterval((function(){var t=document.querySelector(".block-editor-writing-flow");t&&(clearInterval(n),t.className=c().apply(void 0,["block-editor-writing-flow","a8c-template-editor fse-template-part"].concat((0,r.Z)(e))))}));return null}));"wp_template_part"===fullSiteEditing.editorPostType&&(0,i.registerPlugin)("fse-editor-template-classes",{render:a})},5052:function(t,e,n){"use strict";var r=n(5707),o=n(7531),i=n.n(o),l=n(3163),__=l.__;i()((function(){"wp_template_part"===fullSiteEditing.editorPostType&&(0,r.dispatch)("core/notices").createNotice("info",__("Updates to this template will affect all pages on your site.","full-site-editing"),{isDismissible:!1})}))},7196:function(t){"use strict";t.exports=window.ReactDOM},3804:function(t){"use strict";t.exports=window.lodash},7606:function(t){"use strict";t.exports=window.wp.apiFetch},6399:function(t){"use strict";t.exports=window.wp.blockEditor},9314:function(t){"use strict";t.exports=window.wp.blocks},7997:function(t){"use strict";t.exports=window.wp.components},1417:function(t){"use strict";t.exports=window.wp.compose},5707:function(t){"use strict";t.exports=window.wp.data},7531:function(t){"use strict";t.exports=window.wp.domReady},8885:function(t){"use strict";t.exports=window.wp.editor},3027:function(t){"use strict";t.exports=window.wp.element},5799:function(t){"use strict";t.exports=window.wp.hooks},1424:function(t){"use strict";t.exports=window.wp.htmlEntities},3163:function(t){"use strict";t.exports=window.wp.i18n},1200:function(t){"use strict";t.exports=window.wp.plugins},9775:function(t){"use strict";t.exports=window.wp.serverSideRender},791:function(t){"use strict";t.exports=window.wp.url}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};!function(){"use strict";n.r(r);n(4018),n(7308),n(6367),n(5129),n(5725),n(4987),n(3427),n(601),n(5052),n(7111)}(),window.EditingToolkit=r}();
|
3 |
Copyright (c) 2018 Jed Watson.
|
4 |
Licensed under the MIT License (MIT), see
|
5 |
http://jedwatson.github.io/classnames
|
6 |
+
*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var t=[],e=0;e<arguments.length;e++){var n=arguments[e];if(n){var i=typeof n;if("string"===i||"number"===i)t.push(n);else if(Array.isArray(n)){if(n.length){var l=o.apply(null,n);l&&t.push(l)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var c in n)r.call(n,c)&&n[c]&&t.push(c);else t.push(n.toString())}}return t.join(" ")}t.exports?(o.default=o,t.exports=o):void 0===(n=function(){return o}.apply(e,[]))||(t.exports=n)}()},6959:function(){},7148:function(){},3920:function(){},9861:function(){},6913:function(){},7252:function(){},784:function(){},6254:function(){},1428:function(t,e,n){"use strict";n.d(e,{R:function(){return o}});var r=n(9314);function o(){for(var t=(0,r.getCategories)(),e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];for(var i=function(){var e=c[l];if(t.some((function(t){return t.slug===e})))return{v:e}},l=0,c=n;l<c.length;l++){var s=i();if("object"==typeof s)return s.v}throw new Error("Could not find a category from the provided list: ".concat(n.join(",")))}},49:function(t,e,n){"use strict";var r=n(3027),o=n(6399),i=n(7997),l=n(1417),c=n(5707),s=n(3163),a=n(9775),u=n.n(a),__=s.__;e.Z=(0,l.compose)([(0,o.withColors)("backgroundColor",{textColor:"color"}),(0,o.withFontSizes)("fontSize"),(0,c.withSelect)((function(t){return{isPublished:t("core/editor").isCurrentPostPublished()}}))])((function(t){var e=t.attributes,n=t.backgroundColor,l=t.fontSize,c=t.setAttributes,s=t.setBackgroundColor,a=t.setFontSize,d=t.setTextColor,f=t.textColor,p=t.isPublished,m=e.customFontSize,g=e.textAlign,v=m||l.size;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(o.BlockControls,null,(0,r.createElement)(o.AlignmentToolbar,{value:g,onChange:function(t){c({textAlign:t})}})),(0,r.createElement)(o.InspectorControls,null,(0,r.createElement)(i.PanelBody,{className:"blocks-font-size",title:__("Text Settings","full-site-editing")},(0,r.createElement)(o.FontSizePicker,{onChange:a,value:v})),(0,r.createElement)(o.PanelColorSettings,{title:__("Color Settings","full-site-editing"),initialOpen:!1,colorSettings:[{value:n.color,onChange:s,label:__("Background Color","full-site-editing")},{value:f.color,onChange:d,label:__("Text Color","full-site-editing")}]},(0,r.createElement)(o.ContrastChecker,{textColor:f.color,backgroundColor:n.color,fontSize:v}))),(0,r.createElement)(u(),{isPublished:p,block:"a8c/navigation-menu",attributes:e}))}))},4018:function(t,e,n){"use strict";var r=n(3027),o=n(9314),i=n(3163),l=n(1428),c=n(49),__=(n(6959),i.__),s=(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,r.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),(0,r.createElement)("path",{d:"M12 7.27l4.28 10.43-3.47-1.53-.81-.36-.81.36-3.47 1.53L12 7.27M12 2L4.5 20.29l.71.71L12 18l6.79 3 .71-.71L12 2z"}));(0,o.registerBlockType)("a8c/navigation-menu",{title:__("Navigation Menu","full-site-editing"),description:__("Visual placeholder for site-wide navigation and menus.","full-site-editing"),icon:s,category:(0,l.R)("design","layout"),supports:{align:["wide","full","right","left"],html:!1,reusable:!1},edit:c.Z,save:function(){return null}})},966:function(t,e,n){"use strict";var r=n(1119),o=n(4659),i=n(4730),l=n(5663),c=n(9049),s=n(3027),a=n(6399),u=n(1417),d=n(5707),f=n(8885),p=n(2779),m=n.n(p),g=function(t){(0,l.Z)(n,t);var e=(0,c.Z)(n);function n(){return(0,o.Z)(this,n),e.apply(this,arguments)}return(0,i.Z)(n,[{key:"toggleEditing",value:function(){var t=this.props,e=t.isEditing;(0,t.setState)({isEditing:!e})}},{key:"onSelectPost",value:function(t){var e=t.id,n=t.type;this.props.setState({isEditing:!1,selectedPostId:e,selectedPostType:n})}},{key:"render",value:function(){var t=this.props.attributes.align;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{className:m()("post-content-block",(0,r.Z)({},"align".concat(t),t))},(0,s.createElement)(f.PostTitle,null),(0,s.createElement)(a.InnerBlocks,{templateLock:!1})))}}]),n}(s.Component);e.Z=(0,u.compose)([(0,u.withState)({isEditing:!1,selectedPostId:void 0,selectedPostType:void 0}),(0,d.withSelect)((function(t,e){var n=e.selectedPostId,r=e.selectedPostType;return{selectedPost:(0,t("core").getEntityRecord)("postType",r,n)}}))])(g)},7308:function(t,e,n){"use strict";var r=n(7560),o=n(3027),i=n(9314),l=n(1417),c=n(5799),s=n(3163),a=n(1428),u=n(966),d=n(3175),__=(n(7148),s.__);(0,i.registerBlockType)("a8c/post-content",{title:__("Content","full-site-editing"),description:__("The page content.","full-site-editing"),icon:"layout",category:(0,a.R)("design","layout"),supports:{align:["full"],anchor:!1,customClassName:!1,html:!1,inserter:!1,multiple:!1,reusable:!1},attributes:{align:{type:"string",default:"full"}},edit:u.Z,save:d.Z});var f=(0,l.createHigherOrderComponent)((function(t){return function(e){return"a8c/post-content"!==e.name?(0,o.createElement)(t,e):(0,o.createElement)(t,(0,r.Z)({},e,{className:"post-content__block"}))}}),"addContentSlotClassname");(0,c.addFilter)("editor.BlockListBlock","full-site-editing/blocks/post-content",f,9)},3175:function(t,e,n){"use strict";var r=n(3027),o=n(6399);e.Z=function(){return(0,r.createElement)(o.InnerBlocks.Content,null)}},1097:function(t,e,n){"use strict";var r=n(1119),o=n(3027),i=n(6399),l=n(7997),c=n(1417),s=n(3163),a=n(2779),u=n.n(a),d=n(6284),f=n(8558),__=s.__,p=fullSiteEditing,m=p.footerCreditOptions,g=p.defaultCreditOption;e.Z=(0,c.compose)([(0,d.g)({siteTitleOption:{optionName:"title",defaultValue:__("Site title loading…","full-site-editing")},footerCreditOption:{optionName:"footer_credit",defaultValue:__("Footer credit loading…","full-site-editing")}})])((function(t){var e=t.attributes.textAlign,n=void 0===e?"center":e,c=t.isSelected,s=t.setAttributes,a=t.footerCreditOption,d=a.value,p=a.updateValue,v=t.siteTitleOption.value,b=d||g;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(i.BlockControls,null,(0,o.createElement)(i.AlignmentToolbar,{value:n,onChange:function(t){s({textAlign:t})}})),(0,o.createElement)("div",{className:u()("site-info","site-credit__block",(0,r.Z)({},"has-text-align-".concat(n),n))},(0,o.createElement)("span",{className:"site-name"},v),(0,o.createElement)("span",{className:"comma"},","),(0,o.createElement)("span",{className:"site-credit__selection"},c?(0,o.createElement)(l.SelectControl,{onChange:p,value:b,options:m}):(0,o.createElement)(f.U,{choice:b}))))}))},8558:function(t,e,n){"use strict";n.d(e,{U:function(){return c}});var r=n(9394),o=n(3027),i=n(7997),l=fullSiteEditing.footerCreditOptions,c=function(t){var e=t.choice,n=l.find((function(t){return t.value===e}));if(!n)return null;var c=n.renderType,s=n.renderProps,a=n.label,u=(0,r.Z)({label:a},s);return"icon"===c?(0,o.createElement)(i.Icon,u):(0,o.createElement)("span",null," ",u.label," ")}},6367:function(t,e,n){"use strict";var r=n(9314),o=n(3163),i=n(1428),l=n(1097),__=(n(3920),o.__);(0,r.registerBlockType)("a8c/site-credit",{title:__("WordPress.com Credit","full-site-editing"),description:__("This block tells the world that you're using WordPress.com.","full-site-editing"),icon:"wordpress-alt",category:(0,i.R)("design","layout"),supports:{align:["wide","full"],html:!1,multiple:!1,reusable:!1,removal:!1},attributes:{align:{type:"string",default:"wide"},textAlign:{type:"string",default:"center"}},edit:l.Z,save:function(){return null}})},942:function(t,e,n){"use strict";var r=n(1119),o=n(3027),i=n(6399),l=n(7997),c=n(1417),s=n(5707),a=n(3163),u=n(2779),d=n.n(u),f=n(6284),__=a.__,p=function(){};e.Z=(0,c.compose)([(0,i.withColors)("backgroundColor",{textColor:"color"}),(0,i.withFontSizes)("fontSize"),(0,s.withSelect)((function(t,e){var n=e.clientId,r=t("core/block-editor"),o=r.getBlockIndex,i=r.getBlockRootClientId,l=r.getTemplateLock,c=i(n);return{blockIndex:o(n,c),isLocked:!!l(c),rootClientId:c}})),(0,s.withDispatch)((function(t,e){var n=e.blockIndex,r=e.rootClientId;return{insertDefaultBlock:function(){return t("core/block-editor").insertDefaultBlock({},r,n+1)}}})),(0,f.g)({siteDescription:{optionName:"description",defaultValue:__("Site description loading…","full-site-editing")}})])((function(t){var e,n=t.attributes,c=t.backgroundColor,s=t.className,a=t.fontSize,u=t.insertDefaultBlock,f=t.setAttributes,m=t.setBackgroundColor,g=t.setFontSize,v=t.setTextColor,b=t.siteDescription,y=t.textColor,h=n.customFontSize,w=n.textAlign,S=h||a.size,E=b.value,k=b.updateValue;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(i.BlockControls,null,(0,o.createElement)(i.AlignmentToolbar,{value:w,onChange:function(t){f({textAlign:t})}})),(0,o.createElement)(i.InspectorControls,null,(0,o.createElement)(l.PanelBody,{className:"blocks-font-size",title:__("Text Settings","full-site-editing")},(0,o.createElement)(i.FontSizePicker,{onChange:g,value:S})),(0,o.createElement)(i.PanelColorSettings,{title:__("Color Settings","full-site-editing"),initialOpen:!1,colorSettings:[{value:c.color,onChange:m,label:__("Background Color","full-site-editing")},{value:y.color,onChange:v,label:__("Text Color","full-site-editing")}]},(0,o.createElement)(i.ContrastChecker,{textColor:y.color,backgroundColor:c.color,fontSize:S}))),(0,o.createElement)(i.RichText,{allowedFormats:[],"aria-label":__("Site Description","full-site-editing"),className:d()("site-description",s,(e={"has-text-color":y.color,"has-background":c.color},(0,r.Z)(e,"has-text-align-".concat(w),w),(0,r.Z)(e,c.class,c.class),(0,r.Z)(e,y.class,y.class),(0,r.Z)(e,a.class,!h&&a.class),e)),identifier:"content",onChange:k,onReplace:u,onSplit:p,placeholder:__("Add a Site Description","full-site-editing"),style:{backgroundColor:c.color,color:y.color,fontSize:S?S+"px":void 0},tagName:"p",value:E}))}))},5129:function(t,e,n){"use strict";var r=n(3027),o=n(9314),i=n(3163),l=n(1428),c=n(942),__=(n(9861),i.__);(0,o.registerBlockType)("a8c/site-description",{title:__("Site Description","full-site-editing"),description:__("Site description, also known as the tagline.","full-site-editing"),icon:(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"},(0,r.createElement)("path",{fill:"none",d:"M0 0h24v24H0z"}),(0,r.createElement)("path",{d:"M4 9h16v2H4V9zm0 4h10v2H4v-2z"})),category:(0,l.R)("design","layout"),supports:{align:["wide","full"],html:!1,multiple:!1,reusable:!1},attributes:{align:{type:"string",default:"wide"},textAlign:{type:"string",default:"center"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},fontSize:{type:"string",default:"small"},customFontSize:{type:"number"}},edit:c.Z,save:function(){return null}})},512:function(t,e,n){"use strict";var r=n(1119),o=n(3027),i=n(6399),l=n(7997),c=n(1417),s=n(5707),a=n(3163),u=n(2779),d=n.n(u),f=n(6284),__=a.__,p=function(){};e.Z=(0,c.compose)([(0,i.withColors)({textColor:"color"}),(0,i.withFontSizes)("fontSize"),(0,s.withSelect)((function(t,e){var n=e.clientId,r=t("core/block-editor"),o=r.getBlockIndex,i=r.getBlockRootClientId,l=r.getTemplateLock,c=i(n);return{blockIndex:o(n,c),isLocked:!!l(c),rootClientId:c}})),(0,s.withDispatch)((function(t,e){var n=e.blockIndex,r=e.rootClientId;return{insertDefaultBlock:function(){return t("core/block-editor").insertDefaultBlock({},r,n+1)}}})),(0,f.g)({siteTitle:{optionName:"title",defaultValue:__("Site title loading…","full-site-editing")}})])((function(t){var e,n=t.attributes,c=t.className,s=t.fontSize,a=t.insertDefaultBlock,u=t.setAttributes,f=t.setFontSize,m=t.setTextColor,g=t.siteTitle,v=t.textColor,b=n.customFontSize,y=n.textAlign,h=b||s.size,w=g.value,S=g.updateValue;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(i.BlockControls,null,(0,o.createElement)(i.AlignmentToolbar,{value:y,onChange:function(t){u({textAlign:t})}})),(0,o.createElement)(i.InspectorControls,null,(0,o.createElement)(l.PanelBody,{className:"blocks-font-size",title:__("Text Settings","full-site-editing")},(0,o.createElement)(i.FontSizePicker,{onChange:f,value:h})),(0,o.createElement)(i.PanelColorSettings,{title:__("Color Settings","full-site-editing"),initialOpen:!1,colorSettings:[{value:v.color,onChange:m,label:__("Text Color","full-site-editing")}]})),(0,o.createElement)(i.RichText,{allowedFormats:[],"aria-label":__("Site Title","full-site-editing"),className:d()("site-title",c,(e={"has-text-color":v.color},(0,r.Z)(e,"has-text-align-".concat(y),y),(0,r.Z)(e,v.class,v.class),(0,r.Z)(e,s.class,!b&&s.class),e)),identifier:"content",onChange:S,onReplace:a,onSplit:p,placeholder:__("Add a Site Title","full-site-editing"),style:{color:v.color,fontSize:h?h+"px":void 0},tagName:"h1",value:w}))}))},5725:function(t,e,n){"use strict";var r=n(9314),o=n(3163),i=n(1428),l=n(512),__=(n(6913),o.__);(0,r.registerBlockType)("a8c/site-title",{title:__("Site Title","full-site-editing"),description:__("Your site title.","full-site-editing"),icon:"layout",category:(0,i.R)("design","layout"),supports:{align:["wide","full"],html:!1,multiple:!1,reusable:!1},attributes:{align:{type:"string",default:"wide"},textAlign:{type:"string",default:"center"},textColor:{type:"string"},customTextColor:{type:"string"},fontSize:{type:"string",default:"normal"},customFontSize:{type:"number"}},edit:l.Z,save:function(){return null}})},6594:function(t,e,n){"use strict";var r=n(1119),o=n(3258),i=n(3027),l=n(6399),c=n(9314),s=n(7997),a=n(1417),u=n(5707),d=n(3163),f=n(791),p=n(2779),m=n.n(p),g=n(3804),__=(n(7252),d.__),v=function(){},b=(0,a.compose)((0,a.withState)({templateClientId:null}),(0,u.withSelect)((function(t,e){var n=e.attributes,r=e.templateClientId,o=t("core").getEntityRecord,i=t("core/editor"),l=i.getCurrentPostId,c=i.isEditedPostDirty,s=t("core/block-editor"),a=s.getBlock,u=s.getSelectedBlock,d=t("core/edit-post").isEditorSidebarOpened,p=n.templateId,m=l(),v=p&&o("postType","wp_template_part",p),b=(0,f.addQueryArgs)(fullSiteEditing.editTemplateBaseUrl,{post:p,fse_parent_post:m}),y=u();return{currentPostId:m,editTemplateUrl:b,template:v,templateBlock:a(r),templateTitle:(0,g.get)(v,["title","rendered"],""),isDirty:c(),isEditorSidebarOpened:!!d(),isAnyTemplateBlockSelected:y&&"a8c/template"===y.name}})),(0,u.withDispatch)((function(t,e){var n=t("core/block-editor").receiveBlocks,r=t("core/edit-post").openGeneralSidebar,o=e.template,i=e.templateClientId,l=e.setState;return{savePost:t("core/editor").savePost,receiveTemplateBlocks:function(){if(o&&!i){var t=(0,c.parse)((0,g.get)(o,["content","raw"],"")),e=(0,c.createBlock)("core/group",{},t);n([e]),l({templateClientId:e.clientId})}},openGeneralSidebar:r}})))((function(t){var e,n=t.attributes,c=t.editTemplateUrl,a=t.receiveTemplateBlocks,u=t.template,f=t.templateBlock,p=t.templateTitle,g=t.isDirty,b=t.savePost,y=t.isEditorSidebarOpened,h=t.openGeneralSidebar,w=t.isAnyTemplateBlockSelected;if(!u)return(0,i.createElement)(s.Placeholder,{className:"template-block__placeholder"},(0,i.createElement)(s.Spinner,null));var S=(0,i.createRef)(),E=(0,i.useState)(!1),k=(0,o.Z)(E,2),C=k[0],Z=k[1];(0,i.useEffect)((function(){C&&!g&&S.current.click(),a()})),(0,i.useEffect)((function(){var t=document.querySelector(".edit-post-sidebar__panel-tabs ul li:last-child");if(y&&t){if(w)return h("edit-post/document"),void t.classList.add("hidden");t.classList.remove("hidden")}}),[w,y,h]);var _=n.align,P=n.className,x=function(t){t.stopPropagation(),Z(!0),g&&(t.preventDefault(),b())};return(0,i.createElement)("div",{className:m()("template-block",(e={},(0,r.Z)(e,"align".concat(_),_),(0,r.Z)(e,"is-navigating-to-template",C),e))},f&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(s.Disabled,null,(0,i.createElement)("div",{className:P},(0,i.createElement)(l.BlockEdit,{attributes:f.attributes,block:f,clientId:f.clientId,isSelected:!1,name:f.name,setAttributes:v}))),(0,i.createElement)(s.Placeholder,{className:"template-block__overlay",onClick:x},C&&(0,i.createElement)("div",{className:"template-block__loading"},(0,i.createElement)(s.Spinner,null)," ",(0,d.sprintf)(__("Loading editor for: %s","full-site-editing"),p)),(0,i.createElement)(s.Button,{className:C?"hidden":null,href:c,onClick:x,isDefault:!0,isLarge:!0,ref:S},(0,d.sprintf)(__("Edit %s","full-site-editing"),p)))))}));e.Z=b},4987:function(t,e,n){"use strict";var r=n(7560),o=n(3027),i=n(9314),l=n(1417),c=n(5799),s=n(3163),a=n(1428),u=n(6594),__=(n(7252),n(4498),s.__);"wp_template_part"!==fullSiteEditing.editorPostType&&(0,i.registerBlockType)("a8c/template",{title:__("Template Part","full-site-editing"),__experimentalDisplayName:"label",description:__("Display a Template Part.","full-site-editing"),icon:"layout",category:(0,a.R)("design","layout"),attributes:{templateId:{type:"number"},className:{type:"string"},label:{type:"string"}},supports:{anchor:!1,customClassName:!1,html:!1,inserter:!1,reusable:!1},edit:u.Z,save:function(){return null},getEditWrapperProps:function(){return{"data-align":"full"}}});var d=(0,l.createHigherOrderComponent)((function(t){return function(e){return"a8c/template"!==e.name?(0,o.createElement)(t,e):(0,o.createElement)(t,(0,r.Z)({},e,{className:"template__block-container"}))}}),"addFSETemplateClassname");(0,c.addFilter)("editor.BlockListBlock","full-site-editing/blocks/template",d,9)},4498:function(t,e,n){"use strict";var r=n(7560),o=n(3027),i=n(1417),l=n(5799),c=(0,i.createHigherOrderComponent)((function(t){return function(e){return"fse-site-logo"!==e.attributes.className?(0,o.createElement)(t,e):(0,o.createElement)(t,(0,r.Z)({},e,{className:"template__site-logo"}))}}),"addFSESiteLogoClassname");(0,l.addFilter)("editor.BlockListBlock","full-site-editing/blocks/template",c)},9987:function(t,e,n){"use strict";var r=n(3027),o=n(7531),i=n.n(o),l=n(8259),c="fse-post-content-block-inserter";function s(){if(!document.getElementById(c)){var t=document.querySelector(".edit-post-header-toolbar");if(t){var e=document.createElement("div");e.className="fse-post-content-block-inserter",e.id=c,t.insertBefore(e,t.firstChild),(0,r.render)((0,r.createElement)(l.Z,null),e)}}}i()((function(){if("page"===fullSiteEditing.editorPostType)var t=setInterval((function(){document.querySelector(".edit-post-header-toolbar")&&(clearInterval(t),s(),document.getElementById("wpbody")&&void 0!==window.MutationObserver&&new window.MutationObserver(s).observe(document.getElementById("wpbody"),{subtree:!0,childList:!0}))}))}))},8259:function(t,e,n){"use strict";var r=n(3027),o=n(6399),i=n(1417),l=n(5707),c=(0,i.compose)((0,l.withSelect)((function(t){var e=t("core/editor").getEditorSettings,n=t("core/block-editor").getBlocks,r=t("core/edit-post").getEditorMode,o=n().find((function(t){return"a8c/post-content"===t.name}));return{rootClientId:o?o.clientId:"",showInserter:"visual"===r()&&e().richEditingEnabled}})))((function(t){var e=t.rootClientId,n=t.showInserter;return(0,r.createElement)(o.Inserter,{rootClientId:e,disabled:!n,position:"bottom right",toggleProps:{isPrimary:!0}})}));e.Z=c},6970:function(t,e,n){"use strict";var r=n(9394),o=n(5799),i=["logo","brand","emblem","hallmark"];(0,o.addFilter)("blocks.registerBlockType","full-site-editing/editor/image-block-keywords",(function(t,e){return"core/image"!==e?t:t=(0,r.Z)((0,r.Z)({},t),{},{keywords:t.keywords.concat(i)})}))},7111:function(t,e,n){"use strict";n(9987),n(1860),n(6970),n(784),n(3644),n(711),n(1321)},1321:function(t,e,n){"use strict";var r=n(5707),o=(0,r.subscribe)((function(){var t=(0,r.dispatch)("core/edit-post").removeEditorPanel;return"page"===fullSiteEditing.editorPostType&&t("featured-image"),"wp_template_part"===fullSiteEditing.editorPostType&&t("post-status"),o()}))},711:function(t,e,n){"use strict";var r=n(9394),o=n(5707);(0,o.use)((function(t){return{dispatch:function(e){var n=(0,r.Z)({},t.dispatch(e)),o=fullSiteEditing.editorPostType;if("core/editor"===e&&n.editPost&&"wp_template_part"===o){var i=n.editPost;n.editPost=function(t){"draft"!==t.status&&i(t)}}return n}}}))},3644:function(t,e,n){"use strict";var r=n(9394),o=n(5707);(0,o.use)((function(t){return{dispatch:function(e){var n=(0,r.Z)({},t.dispatch(e)),o=fullSiteEditing.editorPostType;return"core/editor"===e&&n.trashPost&&"wp_template_part"===o&&(n.trashPost=function(){}),n}}}))},1860:function(t,e,n){"use strict";var r=n(5707),o=(0,r.subscribe)((function(){if("page"!==fullSiteEditing.editorPostType)return o();!1===(0,r.select)("core/block-editor").isValidTemplate()&&(0,r.dispatch)("core/block-editor").setTemplateValidity(!0)}))},6284:function(t,e,n){"use strict";n.d(e,{g:function(){return r.g}});var r=n(4825)},4825:function(t,e,n){"use strict";n.d(e,{g:function(){return r.g}});n(4351);var r=n(29)},5333:function(t,e,n){"use strict";n.d(e,{D:function(){return o}});var r=n(3027);function o(t){var e=(0,r.useRef)();return(0,r.useEffect)((function(){e.current=t}),[t]),e.current}},4351:function(t,e,n){"use strict";n.d(e,{s:function(){return f}});var r=n(1119),o=n(9394),i=n(3258),l=n(7606),c=n.n(l),s=n(3027),a=n(1424),u=n(3163),d=n(5333),__=u.__;function f(t,e,n,l,f,p){var m=(0,s.useState)({option:e,previousOption:"",loaded:!1,error:!1}),g=(0,i.Z)(m,2),v=g[0],b=g[1],y=(0,d.D)(l),h=(0,d.D)(f);function w(){b((0,o.Z)((0,o.Z)({},v),{},{option:v.previousOption,isSaving:!1}))}return(0,s.useEffect)((function(){v.loaded||v.error?function(){var e=v.option,i=v.previousOption,s=!i&&!e||e&&i&&e.trim()===i.trim(),a=!e||0===e.trim().length;!l&&y&&a&&w();if(!f||s)return;!h&&f&&function(e){b((0,o.Z)((0,o.Z)({},v),{},{isSaving:!0})),c()({path:"/wp/v2/settings",method:"POST",data:(0,r.Z)({},t,e)}).then((function(){return function(t){b((0,o.Z)((0,o.Z)({},v),{},{previousOption:t,isDirty:!1,isSaving:!1}))}(e)})).catch((function(){n((0,u.sprintf)(__("Unable to save site %s","full-site-editing"),t)),w()}))}(e)}():c()({path:"/wp/v2/settings"}).then((function(e){return b((0,o.Z)((0,o.Z)({},v),{},{option:(0,a.decodeEntities)(e[t]),previousOption:(0,a.decodeEntities)(e[t]),loaded:!0,error:!1}))})).catch((function(){n((0,u.sprintf)(__("Unable to load site %s","full-site-editing"),t)),b((0,o.Z)((0,o.Z)({},v),{},{option:(0,u.sprintf)(__("Error loading site %s","full-site-editing"),t),error:!0}))}))})),{siteOptions:v,handleChange:function(t){p({updated:Date.now()}),b((0,o.Z)((0,o.Z)({},v),{},{option:t}))}}}},29:function(t,e,n){"use strict";n.d(e,{g:function(){return s}});var r=n(7560),o=n(3027),i=n(1417),l=n(5707),c=n(4351),s=function(t){return(0,i.createHigherOrderComponent)((function(e){return(0,i.pure)((function(n){var i=(0,l.useSelect)((function(t){var e=t("core/editor"),n=e.isSavingPost,r=e.isPublishingPost,o=e.isAutosavingPost,i=e.isCurrentPostPublished;return(n()&&i()||r())&&!o()})),s=(0,l.useDispatch)((function(t){return t("core/notices").createErrorNotice})),a=n.isSelected,u=n.setAttributes,d=Object.keys(t).reduce((function(e,n){var r=t[n],o=r.optionName,l=r.defaultValue,d=(0,c.s)(o,l,s,a,i,u),f=d.siteOptions,p=d.handleChange;return e[n]={value:f.option,updateValue:p,loaded:f.loaded},e}),{});return(0,o.createElement)(e,(0,r.Z)({},n,d))}))}),"withSiteOptions")}},3427:function(t,e,n){"use strict";var r=n(3258),o=n(3027),i=n(7997),l=n(7531),c=n.n(l),s=n(3163),a=n(7196),u=n.n(a),__=(n(6254),s.__);function d(t){var e=t.defaultLabel,n=t.defaultUrl,l=(0,o.useState)(e),c=(0,r.Z)(l,2),s=c[0],a=c[1],u=(0,o.useState)(n),d=(0,r.Z)(u,2),f=d[0],p=d[1];return window.wp.hooks.addAction("updateCloseButtonOverrides","a8c-fse",(function(t){a(t.label),p(t.closeUrl)})),(0,o.createElement)("a",{href:f,"aria-label":s},(0,o.createElement)(i.Button,{className:"components-button components-icon-button"},(0,o.createElement)(i.Dashicon,{icon:"arrow-left-alt2"}),(0,o.createElement)("div",{className:"close-button-override__label"},s)))}c()((function(){var t=fullSiteEditing.editorPostType;if("wp_template_part"===t||"page"===t||"post"===t)var e=setInterval((function(){var n=document.querySelector(".edit-post-header__toolbar");if(n){clearInterval(e);var r=document.createElement("div");r.className="components-toolbar edit-post-fullscreen-mode-close__toolbar edit-post-fullscreen-mode-close__toolbar__override",n.prepend(r);var i=fullSiteEditing,l=i.closeButtonLabel,c=i.closeButtonUrl,s=window.calypsoifyGutenberg;s&&s.closeUrl&&(c=s.closeUrl),s&&s.closeButtonLabel&&(l=s.closeButtonLabel);var a=c||"edit.php?post_type=".concat(t),f=l||"Back";"page"!==t||l?"post"!==t||l?"wp_template_part"!==t||l||(f=__("Template Parts","full-site-editing")):f=__("Posts","full-site-editing"):f=__("Pages","full-site-editing"),u().render((0,o.createElement)(d,{defaultLabel:f,defaultUrl:a}),r)}}))}))},601:function(t,e,n){"use strict";var r=n(1766),o=n(5707),i=n(1200),l=n(2779),c=n.n(l),s=n(3804),a=n(6141),u=(0,o.withSelect)((function(t){var e=t("core").getEntityRecord,n=t("core/editor").getEditedPostAttribute;return{templateClasses:(0,s.map)(n("template_part_types"),(function(t){var n=(0,s.get)(e("taxonomy","wp_template_part_type",t),"name","");return n.endsWith("-header")?"fse-header":n.endsWith("-footer")?"fse-footer":void 0}))}}))((function(t){var e=t.templateClasses;return(0,a.useEffect)((function(){if(e.some((function(t){return t}))){var t=setInterval((function(){var n=document.querySelector(".editor-styles-wrapper > .block-editor-block-list__layout");n&&(clearInterval(t),n.className.includes("a8c-template-editor fse-template-part")||(n.className=c().apply(void 0,[n.className,"a8c-template-editor fse-template-part"].concat((0,r.Z)(e)))))}),100);return function(){return clearInterval(t)}}}),(0,r.Z)(e)),null}));"wp_template_part"===fullSiteEditing.editorPostType&&(0,i.registerPlugin)("fse-editor-template-classes",{render:u})},5052:function(t,e,n){"use strict";var r=n(5707),o=n(7531),i=n.n(o),l=n(3163),__=l.__;i()((function(){"wp_template_part"===fullSiteEditing.editorPostType&&(0,r.dispatch)("core/notices").createNotice("info",__("Updates to this template will affect all pages on your site.","full-site-editing"),{isDismissible:!1})}))},6141:function(t){"use strict";t.exports=window.React},7196:function(t){"use strict";t.exports=window.ReactDOM},3804:function(t){"use strict";t.exports=window.lodash},7606:function(t){"use strict";t.exports=window.wp.apiFetch},6399:function(t){"use strict";t.exports=window.wp.blockEditor},9314:function(t){"use strict";t.exports=window.wp.blocks},7997:function(t){"use strict";t.exports=window.wp.components},1417:function(t){"use strict";t.exports=window.wp.compose},5707:function(t){"use strict";t.exports=window.wp.data},7531:function(t){"use strict";t.exports=window.wp.domReady},8885:function(t){"use strict";t.exports=window.wp.editor},3027:function(t){"use strict";t.exports=window.wp.element},5799:function(t){"use strict";t.exports=window.wp.hooks},1424:function(t){"use strict";t.exports=window.wp.htmlEntities},3163:function(t){"use strict";t.exports=window.wp.i18n},1200:function(t){"use strict";t.exports=window.wp.plugins},9775:function(t){"use strict";t.exports=window.wp.serverSideRender},791:function(t){"use strict";t.exports=window.wp.url}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};!function(){"use strict";n.r(r);n(4018),n(7308),n(6367),n(5129),n(5725),n(4987),n(3427),n(601),n(5052),n(7111)}(),window.EditingToolkit=r}();
|
dotcom-fse/plugins/editor-template-classes/index.js
CHANGED
@@ -4,6 +4,7 @@ import { withSelect } from '@wordpress/data';
|
|
4 |
import { registerPlugin } from '@wordpress/plugins';
|
5 |
import classNames from 'classnames';
|
6 |
import { get, map } from 'lodash';
|
|
|
7 |
|
8 |
const EditorTemplateClasses = withSelect( ( select ) => {
|
9 |
const { getEntityRecord } = select( 'core' );
|
@@ -23,21 +24,34 @@ const EditorTemplateClasses = withSelect( ( select ) => {
|
|
23 |
} );
|
24 |
return { templateClasses };
|
25 |
} )( ( { templateClasses } ) => {
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
if ( ! blockListParent ) {
|
30 |
return;
|
31 |
}
|
32 |
-
clearInterval( blockListInception );
|
33 |
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
|
|
|
|
|
41 |
return null;
|
42 |
} );
|
43 |
|
4 |
import { registerPlugin } from '@wordpress/plugins';
|
5 |
import classNames from 'classnames';
|
6 |
import { get, map } from 'lodash';
|
7 |
+
import { useEffect } from 'react';
|
8 |
|
9 |
const EditorTemplateClasses = withSelect( ( select ) => {
|
10 |
const { getEntityRecord } = select( 'core' );
|
24 |
} );
|
25 |
return { templateClasses };
|
26 |
} )( ( { templateClasses } ) => {
|
27 |
+
useEffect( () => {
|
28 |
+
// templateClasses will be an array with an undefined element when loading.
|
29 |
+
if ( ! templateClasses.some( ( templateClass ) => templateClass ) ) {
|
|
|
30 |
return;
|
31 |
}
|
|
|
32 |
|
33 |
+
const blockListInception = setInterval( () => {
|
34 |
+
const blockListParent = document.querySelector(
|
35 |
+
'.editor-styles-wrapper > .block-editor-block-list__layout'
|
36 |
+
);
|
37 |
+
|
38 |
+
if ( ! blockListParent ) {
|
39 |
+
return;
|
40 |
+
}
|
41 |
+
|
42 |
+
clearInterval( blockListInception );
|
43 |
+
|
44 |
+
if ( ! blockListParent.className.includes( 'a8c-template-editor fse-template-part' ) ) {
|
45 |
+
blockListParent.className = classNames(
|
46 |
+
blockListParent.className,
|
47 |
+
'a8c-template-editor fse-template-part',
|
48 |
+
...templateClasses
|
49 |
+
);
|
50 |
+
}
|
51 |
+
}, 100 );
|
52 |
|
53 |
+
return () => clearInterval( blockListInception );
|
54 |
+
}, [ ...templateClasses ] ); // eslint-disable-line react-hooks/exhaustive-deps
|
55 |
return null;
|
56 |
} );
|
57 |
|
full-site-editing-plugin.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* Plugin Name: WordPress.com Editing Toolkit
|
4 |
* Description: Enhances your page creation workflow within the Block Editor.
|
5 |
-
* Version: 3.
|
6 |
* Author: Automattic
|
7 |
* Author URI: https://automattic.com/wordpress-plugins/
|
8 |
* License: GPLv2 or later
|
@@ -42,7 +42,7 @@ namespace A8C\FSE;
|
|
42 |
*
|
43 |
* @var string
|
44 |
*/
|
45 |
-
define( 'A8C_ETK_PLUGIN_VERSION', '3.
|
46 |
|
47 |
// Always include these helper files for dotcom FSE.
|
48 |
require_once __DIR__ . '/dotcom-fse/helpers.php';
|
2 |
/**
|
3 |
* Plugin Name: WordPress.com Editing Toolkit
|
4 |
* Description: Enhances your page creation workflow within the Block Editor.
|
5 |
+
* Version: 3.12588
|
6 |
* Author: Automattic
|
7 |
* Author URI: https://automattic.com/wordpress-plugins/
|
8 |
* License: GPLv2 or later
|
42 |
*
|
43 |
* @var string
|
44 |
*/
|
45 |
+
define( 'A8C_ETK_PLUGIN_VERSION', '3.12588' );
|
46 |
|
47 |
// Always include these helper files for dotcom FSE.
|
48 |
require_once __DIR__ . '/dotcom-fse/helpers.php';
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: automattic
|
|
3 |
Tags: block, blocks, editor, gutenberg, page
|
4 |
Requires at least: 5.5
|
5 |
Tested up to: 5.6
|
6 |
-
Stable tag: 3.
|
7 |
Requires PHP: 5.6.20
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
3 |
Tags: block, blocks, editor, gutenberg, page
|
4 |
Requires at least: 5.5
|
5 |
Tested up to: 5.6
|
6 |
+
Stable tag: 3.12588
|
7 |
Requires PHP: 5.6.20
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|