Version Description
Download this release
Release Info
Developer | gutenbergplugin |
Plugin | Gutenberg |
Version | 10.3.1 |
Comparing to | |
See all releases |
Code changes from version 10.3.0 to 10.3.1
- build/block-library/index.asset.php +1 -1
- build/block-library/index.js +1 -1
- changelog.txt +229 -220
- gutenberg.php +3 -3
- lib/block-supports/layout.php +3 -4
- lib/global-styles.php +7 -2
- readme.txt +1 -1
build/block-library/index.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('lodash', 'moment', 'react', 'wp-api-fetch', 'wp-autop', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('lodash', 'moment', 'react', 'wp-api-fetch', 'wp-autop', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport'), 'version' => '5f5ebffa5771bb68051a339c91c58581');
|
build/block-library/index.js
CHANGED
@@ -56,7 +56,7 @@ Object(Pe.__)('Your site doesn’t include support for the "%s" block. You can l
|
|
56 |
content:Object(Pe.__)("EXT. XANADU - FAINT DAWN - 1940 (MINIATURE)\nWindow, very small in the distance, illuminated.\nAll around this is an almost totally black screen. Now, as the camera moves slowly towards the window which is almost a postage stamp in the frame, other forms appear;")}},transforms:Ss,edit:function(e){var t=e.attributes,n=e.mergeBlocks,r=e.setAttributes,o=e.onRemove,c=t.content,a=Object(Ce.useBlockProps)();return Object(Be.createElement)(Ce.RichText,Object(De.a)({tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:c,onChange:function(e){r({content:e})},onRemove:o,"aria-label":Object(Pe.__)("Preformatted text"),placeholder:Object(Pe.__)("Write preformatted text…"),onMerge:n},a,{__unstablePastePlainText:!0}))},save:function(e){var t=e.attributes.content;return Object(Be.createElement)("pre",Ce.useBlockProps.save(),Object(Be.createElement)(Ce.RichText.Content,{value:t}))},merge:function(e,t){return{content:e.content+t.content}}},zs=Object(Be.createElement)(Te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Be.createElement)(Te.Path,{d:"M18 8H6c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-4c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v4zM4 4v1.5h16V4H4zm0 16h16v-1.5H4V20z"})),Ns="is-style-".concat("solid-color");function Ms(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ms(Object(n),!0).forEach((function(t){Object(ke.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ms(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Is={value:{type:"string",source:"html",selector:"blockquote",multiline:"p"},citation:{type:"string",source:"html",selector:"cite",default:""},mainColor:{type:"string"},customMainColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}};function Rs(e){if(e){var t=e.match(/border-color:([^;]+)[;]?/);return t&&t[1]?t[1]:void 0}}var Hs=[{attributes:Vs(Vs({},Is),{},{figureStyle:{source:"attribute",selector:"figure",attribute:"style"}}),save:function(e){var t,n,r=e.attributes,o=r.mainColor,c=r.customMainColor,a=r.textColor,i=r.customTextColor,l=r.value,s=r.citation,u=r.className,b=r.figureStyle;if(Object(Se.includes)(u,Ns)){var m=Object(Ce.getColorClassName)("background-color",o);t=Me()(Object(ke.a)({"has-background":m||c},m,m)),n={backgroundColor:m?void 0:c}}else c?n={borderColor:c}:o&&(n={borderColor:Rs(b)});var p=Object(Ce.getColorClassName)("color",a),d=(a||i)&&Me()("has-text-color",Object(ke.a)({},p,p)),g=p?void 0:{color:i};return Object(Be.createElement)("figure",{className:t,style:n},Object(Be.createElement)("blockquote",{className:d,style:g},Object(Be.createElement)(Ce.RichText.Content,{value:l,multiline:!0}),!Ce.RichText.isEmpty(s)&&Object(Be.createElement)(Ce.RichText.Content,{tagName:"cite",value:s})))},migrate:function(e){var t=e.className,n=e.figureStyle,r=e.mainColor,o=Object(Cn.a)(e,["className","figureStyle","mainColor"]);if(!Object(Se.includes)(t,Ns)&&r&&n){var c=Rs(n);if(c)return Vs(Vs({},o),{},{className:t,customMainColor:c})}return Vs({className:t,mainColor:r},o)}},{attributes:Is,save:function(e){var t,n,r=e.attributes,o=r.mainColor,c=r.customMainColor,a=r.textColor,i=r.customTextColor,l=r.value,s=r.citation,u=r.className;if(Object(Se.includes)(u,Ns))(t=Object(Ce.getColorClassName)("background-color",o))||(n={backgroundColor:c});else if(c)n={borderColor:c};else if(o){var b=Object(Se.get)(Object(nt.select)(Ce.store).getSettings(),["colors"],[]);n={borderColor:Object(Ce.getColorObjectByAttributeValues)(b,o).color}}var m=Object(Ce.getColorClassName)("color",a),p=a||i?Me()("has-text-color",Object(ke.a)({},m,m)):void 0,d=m?void 0:{color:i};return Object(Be.createElement)("figure",{className:t,style:n},Object(Be.createElement)("blockquote",{className:p,style:d},Object(Be.createElement)(Ce.RichText.Content,{value:l,multiline:!0}),!Ce.RichText.isEmpty(s)&&Object(Be.createElement)(Ce.RichText.Content,{tagName:"cite",value:s})))}},{attributes:Vs({},Is),save:function(e){var t=e.attributes,n=t.value,r=t.citation;return Object(Be.createElement)("blockquote",null,Object(Be.createElement)(Ce.RichText.Content,{value:n,multiline:!0}),!Ce.RichText.isEmpty(r)&&Object(Be.createElement)(Ce.RichText.Content,{tagName:"cite",value:r}))}},{attributes:Vs(Vs({},Is),{},{citation:{type:"string",source:"html",selector:"footer"},align:{type:"string",default:"none"}}),save:function(e){var t=e.attributes,n=t.value,r=t.citation,o=t.align;return Object(Be.createElement)("blockquote",{className:"align".concat(o)},Object(Be.createElement)(Ce.RichText.Content,{value:n,multiline:!0}),!Ce.RichText.isEmpty(r)&&Object(Be.createElement)(Ce.RichText.Content,{tagName:"footer",value:r}))}}];function As(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ls(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?As(Object(n),!0).forEach((function(t){Object(ke.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):As(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ds=Object(Ce.withColors)({mainColor:"background-color",textColor:"color"})((function(e){var t=e.colorUtils,n=e.textColor,r=e.attributes,o=r.value,c=r.citation,a=e.setAttributes,i=e.setTextColor,l=e.setMainColor,s=e.mainColor,u=e.isSelected,b=e.insertBlocksAfter,m=Object(Be.useRef)(!1),p=Object(Ce.useBlockProps)(),d=p.style,g=void 0===d?{}:d,h=p.className,O=Object(Se.includes)(h,Ns),f=Ls(Ls({},p),{},{className:Me()(h,Object(ke.a)({"has-background":O&&s.color},s.class,O&&s.class)),style:Ls(Ls({},g),{},O?{backgroundColor:s.color}:{borderColor:s.color})});return Object(Be.useEffect)((function(){s&&!O&&a({mainColor:void 0,customMainColor:s.color})}),[O,s]),Object(Be.createElement)(Be.Fragment,null,Object(Be.createElement)("figure",f,Object(Be.createElement)("blockquote",{style:{color:n.color},className:n.color&&Me()("has-text-color",Object(ke.a)({},n.class,n.class))},Object(Be.createElement)(Ce.RichText,{identifier:"value",multiline:!0,value:o,onChange:function(e){return a({value:e})},"aria-label":Object(Pe.__)("Pullquote text"),placeholder:// translators: placeholder text used for the quote
|
57 |
Object(Pe.__)("Write quote…"),textAlign:"center"}),(!Ce.RichText.isEmpty(c)||u)&&Object(Be.createElement)(Ce.RichText,{identifier:"citation",value:c,"aria-label":Object(Pe.__)("Pullquote citation text"),placeholder:// translators: placeholder text used for the citation
|
58 |
Object(Pe.__)("Write citation…"),onChange:function(e){return a({citation:e})},className:"wp-block-pullquote__citation",__unstableMobileNoFocusOnMount:!0,textAlign:"center",__unstableOnSplitAtEnd:function(){return b(Object(xe.createBlock)("core/paragraph"))}}))),"web"===Be.Platform.OS&&Object(Be.createElement)(Ce.InspectorControls,null,Object(Be.createElement)(Ce.PanelColorSettings,{title:Object(Pe.__)("Color settings"),colorSettings:[{value:s.color,onChange:function(e){var r=!n.color||m.current,o=O&&r;O?l(e):a({customMainColor:e}),o&&(e?(m.current=!0,i(t.getMostReadableColor(e))):m.current&&(m.current=!1,i()))},label:Object(Pe.__)("Main color")},{value:n.color,onChange:function(e){i(e),m.current=!1},label:Object(Pe.__)("Text color")}]},O&&Object(Be.createElement)(Ce.ContrastChecker,{textColor:n.color,backgroundColor:s.color,isLargeText:!1}))))}));function Fs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fs(Object(n),!0).forEach((function(t){Object(ke.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Us={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:function(e){return Object(xe.createBlock)("core/pullquote",{value:Object(Xn.toHTMLString)({value:Object(Xn.join)(e.map((function(e){var t=e.content;return Object(Xn.create)({html:t})})),"\u2028"),multilineTag:"p"}),anchor:e.anchor})}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.content,n=e.anchor;return Object(xe.createBlock)("core/pullquote",{value:"<p>".concat(t,"</p>"),anchor:n})}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.value,n=e.citation,r=[];return t&&"<p></p>"!==t&&r.push.apply(r,Object(we.a)(Object(Xn.split)(Object(Xn.create)({html:t,multilineTag:"p"}),"\u2028").map((function(e){return Object(xe.createBlock)("core/paragraph",{content:Object(Xn.toHTMLString)({value:e})})})))),n&&"<p></p>"!==n&&r.push(Object(xe.createBlock)("core/paragraph",{content:n})),0===r.length?Object(xe.createBlock)("core/paragraph",{content:""}):r}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.value,n=e.citation,r=Object(Cn.a)(e,["value","citation"]);if("<p></p>"===t)return Object(xe.createBlock)("core/heading",{content:n});var o=Object(Xn.split)(Object(Xn.create)({html:t,multilineTag:"p"}),"\u2028"),c=Object(xe.createBlock)("core/heading",{content:Object(Xn.toHTMLString)({value:o[0]})});if(!n&&1===o.length)return c;var a=o.slice(1);return[c,Object(xe.createBlock)("core/pullquote",Gs(Gs({},r),{},{citation:n,value:Object(Xn.toHTMLString)({value:a.length?Object(Xn.join)(o.slice(1),"\u2028"):Object(Xn.create)(),multilineTag:"p"})}))]}}]},qs={apiVersion:2,name:"core/pullquote",category:"text",attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p"},citation:{type:"string",source:"html",selector:"cite",default:""},mainColor:{type:"string"},customMainColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},supports:{anchor:!0,align:["left","right","wide","full"]},editorStyle:"wp-block-pullquote-editor",style:"wp-block-pullquote"},Ws=qs.name,Zs={title:Object(Pe._x)("Pullquote","block title"),description:Object(Pe.__)("Give special visual emphasis to a quote from your text."),icon:zs,example:{attributes:{value:"<p>"+// translators: Quote serving as example for the Pullquote block. Attributed to Matt Mullenweg.
|
59 |
-
Object(Pe.__)("One of the hardest things to do in technology is disrupt yourself.")+"</p>",citation:Object(Pe.__)("Matt Mullenweg")}},styles:[{name:"default",label:Object(Pe._x)("Default","block style"),isDefault:!0},{name:"solid-color",label:Object(Pe.__)("Solid color")}],transforms:Us,edit:Ds,save:function(e){var t,n,r=e.attributes,o=r.mainColor,c=r.customMainColor,a=r.textColor,i=r.customTextColor,l=r.value,s=r.citation,u=r.className;if(Object(Se.includes)(u,Ns)){var b=Object(Ce.getColorClassName)("background-color",o);t=Me()(Object(ke.a)({"has-background":b||c},b,b)),n={backgroundColor:b?void 0:c}}else c&&(n={borderColor:c});var m=Object(Ce.getColorClassName)("color",a),p=(a||i)&&Me()("has-text-color",Object(ke.a)({},m,m)),d=m?void 0:{color:i};return Object(Be.createElement)("figure",Ce.useBlockProps.save({className:t,style:n}),Object(Be.createElement)("blockquote",{className:p,style:d},Object(Be.createElement)(Ce.RichText.Content,{value:l,multiline:!0}),!Ce.RichText.isEmpty(s)&&Object(Be.createElement)(Ce.RichText.Content,{tagName:"cite",value:s})))},deprecated:Hs},Js=n(139),Qs=Object(Be.createElement)(Te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Be.createElement)(Te.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5h-7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7zm-5 5c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h1V9H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-1h-1.5v1z"})),Ks={apiVersion:2,name:"core/block",category:"reusable",attributes:{ref:{type:"number"}},supports:{customClassName:!1,html:!1,inserter:!1},editorStyle:"wp-block-editor"},$s=Ks.name,Ys={title:Object(Pe._x)("Reusable block","block title"),description:Object(Pe.__)("Create and save content to reuse across your site. Update the block, and the changes apply everywhere it’s used."),edit:function(e){var t=e.attributes.ref,n=e.clientId,r=Object(Ce.__experimentalUseNoRecursiveRenders)(t),o=Object(et.a)(r,2),c=o[0],a=o[1],i=Object(nt.useSelect)((function(e){var n=e(Ee.store).getEntityRecord("postType","wp_block",t),r=e(Ee.store).hasFinishedResolution("getEntityRecord",["postType","wp_block",t]);return{hasResolved:r,isMissing:r&&!n}}),[t,n]),l=i.isMissing,s=i.hasResolved,u=Object(nt.useDispatch)(Js.store).__experimentalConvertBlockToStatic,b=Object(Ee.useEntityBlockEditor)("postType","wp_block",{id:t}),m=Object(et.a)(b,3),p=m[0],d=m[1],g=m[2],h=Object(Ee.useEntityProp)("postType","wp_block","title",t),O=Object(et.a)(h,2),f=O[0],v=O[1],j=Object(Ce.__experimentalUseInnerBlocksProps)({},{value:p,onInput:d,onChange:g,renderAppender:null!=p&&p.length?void 0:Ce.InnerBlocks.ButtonBlockAppender}),y=Object(Ce.useBlockProps)();return c?Object(Be.createElement)("div",y,Object(Be.createElement)(Ce.Warning,null,Object(Pe.__)("Block cannot be rendered inside itself."))):l?Object(Be.createElement)("div",y,Object(Be.createElement)(Ce.Warning,null,Object(Pe.__)("Block has been deleted or is unavailable."))):s?Object(Be.createElement)(a,null,Object(Be.createElement)("div",y,Object(Be.createElement)(Ce.BlockControls,null,Object(Be.createElement)(Fe.ToolbarGroup,null,Object(Be.createElement)(Fe.ToolbarButton,{onClick:function(){return u(n)},label:Object(Pe.__)("Convert to regular blocks"),icon:Qs,showTooltip:!0}))),Object(Be.createElement)(Ce.InspectorControls,null,Object(Be.createElement)(Fe.PanelBody,null,Object(Be.createElement)(Fe.TextControl,{label:Object(Pe.__)("Name"),value:f,onChange:v}))),Object(Be.createElement)("div",{className:"block-library-block__reusable-block-container"},Object(Be.createElement)("div",j)))):Object(Be.createElement)("div",y,Object(Be.createElement)(Fe.Placeholder,null,Object(Be.createElement)(Fe.Spinner,null)))}},Xs=Object(Be.createElement)(Te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Be.createElement)(Te.Path,{d:"M5 10.2h-.8v1.5H5c1.9 0 3.8.8 5.1 2.1 1.4 1.4 2.1 3.2 2.1 5.1v.8h1.5V19c0-2.3-.9-4.5-2.6-6.2-1.6-1.6-3.8-2.6-6.1-2.6zm10.4-1.6C12.6 5.8 8.9 4.2 5 4.2h-.8v1.5H5c3.5 0 6.9 1.4 9.4 3.9s3.9 5.8 3.9 9.4v.8h1.5V19c0-3.9-1.6-7.6-4.4-10.4zM4 20h3v-3H4v3z"})),eu={apiVersion:2,name:"core/rss",category:"widgets",attributes:{columns:{type:"number",default:2},blockLayout:{type:"string",default:"list"},feedURL:{type:"string",default:""},itemsToShow:{type:"number",default:5},displayExcerpt:{type:"boolean",default:!1},displayAuthor:{type:"boolean",default:!1},displayDate:{type:"boolean",default:!1},excerptLength:{type:"number",default:55}},supports:{align:!0,html:!1},editorStyle:"wp-block-rss-editor",style:"wp-block-rss"},tu=eu.name,nu={title:Object(Pe._x)("RSS","block title"),description:Object(Pe.__)("Display entries from any RSS or Atom feed."),icon:Xs,keywords:[Object(Pe.__)("atom"),Object(Pe.__)("feed")],example:{attributes:{feedURL:"https://wordpress.org"}},edit:function(e){var t=e.attributes,n=e.setAttributes,r=Object(Be.useState)(!t.feedURL),o=Object(et.a)(r,2),c=o[0],a=o[1],i=t.blockLayout,l=t.columns,s=t.displayAuthor,u=t.displayDate,b=t.displayExcerpt,m=t.excerptLength,p=t.feedURL,d=t.itemsToShow;function g(e){return function(){var r=t[e];n(Object(ke.a)({},e,!r))}}var h=Object(Ce.useBlockProps)();if(c)return Object(Be.createElement)("div",h,Object(Be.createElement)(Fe.Placeholder,{icon:Xs,label:"RSS"},Object(Be.createElement)("form",{onSubmit:function(e){e.preventDefault(),p&&a(!1)},className:"wp-block-rss__placeholder-form"},Object(Be.createElement)(Fe.TextControl,{placeholder:Object(Pe.__)("Enter URL here…"),value:p,onChange:function(e){return n({feedURL:e})},className:"wp-block-rss__placeholder-input"}),Object(Be.createElement)(Fe.Button,{isPrimary:!0,type:"submit"},Object(Pe.__)("Use URL")))));var O=[{icon:kr.a,title:Object(Pe.__)("Edit RSS URL"),onClick:function(){return a(!0)}},{icon:xl,title:Object(Pe.__)("List view"),onClick:function(){return n({blockLayout:"list"})},isActive:"list"===i},{icon:Sl,title:Object(Pe.__)("Grid view"),onClick:function(){return n({blockLayout:"grid"})},isActive:"grid"===i}];return Object(Be.createElement)(Be.Fragment,null,Object(Be.createElement)(Ce.BlockControls,null,Object(Be.createElement)(Fe.ToolbarGroup,{controls:O})),Object(Be.createElement)(Ce.InspectorControls,null,Object(Be.createElement)(Fe.PanelBody,{title:Object(Pe.__)("RSS settings")},Object(Be.createElement)(Fe.RangeControl,{label:Object(Pe.__)("Number of items"),value:d,onChange:function(e){return n({itemsToShow:e})},min:1,max:10,required:!0}),Object(Be.createElement)(Fe.ToggleControl,{label:Object(Pe.__)("Display author"),checked:s,onChange:g("displayAuthor")}),Object(Be.createElement)(Fe.ToggleControl,{label:Object(Pe.__)("Display date"),checked:u,onChange:g("displayDate")}),Object(Be.createElement)(Fe.ToggleControl,{label:Object(Pe.__)("Display excerpt"),checked:b,onChange:g("displayExcerpt")}),b&&Object(Be.createElement)(Fe.RangeControl,{label:Object(Pe.__)("Max number of words in excerpt"),value:m,onChange:function(e){return n({excerptLength:e})},min:10,max:100,required:!0}),"grid"===i&&Object(Be.createElement)(Fe.RangeControl,{label:Object(Pe.__)("Columns"),value:l,onChange:function(e){return n({columns:e})},min:2,max:6,required:!0}))),Object(Be.createElement)("div",h,Object(Be.createElement)(Fe.Disabled,null,Object(Be.createElement)(Ur.a,{block:"core/rss",attributes:t}))))}},ru=Object(Be.createElement)(Fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Be.createElement)(Fe.Rect,{x:"7",y:"10",width:"10",height:"4",rx:"1",fill:"currentColor"})),ou=Object(Be.createElement)(Fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Be.createElement)(Fe.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"9.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",strokeWidth:"1.5",fill:"none"}),Object(Be.createElement)(Fe.Rect,{x:"16",y:"10",width:"4",height:"4",rx:"1",fill:"currentColor"})),cu=Object(Be.createElement)(Fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Be.createElement)(Fe.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"14.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",strokeWidth:"1.5",fill:"none"}),Object(Be.createElement)(Fe.Rect,{x:"14",y:"10",width:"4",height:"4",rx:"1",fill:"currentColor"})),au=Object(Be.createElement)(Fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Be.createElement)(Fe.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"14.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",fill:"none",strokeWidth:"1.5"})),iu=Object(Be.createElement)(Fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Be.createElement)(Fe.Rect,{x:"4.75",y:"7.75",width:"14.5",height:"8.5",rx:"1.25",stroke:"currentColor",fill:"none",strokeWidth:"1.5"}),Object(Be.createElement)(Fe.Rect,{x:"8",y:"11",width:"8",height:"2",fill:"currentColor"})),lu=Object(Be.createElement)(Fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Be.createElement)(Fe.Rect,{x:"4.75",y:"17.25",width:"5.5",height:"14.5",transform:"rotate(-90 4.75 17.25)",stroke:"currentColor",fill:"none",strokeWidth:"1.5"}),Object(Be.createElement)(Fe.Rect,{x:"4",y:"7",width:"10",height:"2",fill:"currentColor"})),su="web"===Be.Platform.OS,uu=[{value:"%",label:su?"%":Object(Pe.__)("Percentage (%)"),default:50},{value:"px",label:su?"px":Object(Pe.__)("Pixels (px)"),default:350}],bu=[{name:"default",isDefault:!0,attributes:{buttonText:Object(Pe.__)("Search"),label:Object(Pe.__)("Search")}}],mu={apiVersion:2,name:"core/search",category:"widgets",attributes:{label:{type:"string"},showLabel:{type:"boolean",default:!0},placeholder:{type:"string",default:""},width:{type:"number"},widthUnit:{type:"string"},buttonText:{type:"string"},buttonPosition:{type:"string",default:"button-outside"},buttonUseIcon:{type:"boolean",default:!1}},supports:{align:["left","center","right"],html:!1},editorStyle:"wp-block-search-editor",style:"wp-block-search"},pu=mu.name,du={title:Object(Pe._x)("Search","block title"),description:Object(Pe.__)("Help visitors find your content."),icon:$t.a,keywords:[Object(Pe.__)("find")],example:{},variations:bu,edit:function(e){var t=e.className,n=e.attributes,r=e.setAttributes,o=e.toggleSelection,c=e.isSelected,a=n.label,i=n.showLabel,l=n.placeholder,s=n.width,u=n.widthUnit,b=n.align,m=n.buttonText,p=n.buttonPosition,d=n.buttonUseIcon,g=Object(rt.useInstanceId)(Ce.__experimentalUnitControl),h="wp-block-search__width-".concat(g),O=function(){return Object(Be.createElement)("input",{className:"wp-block-search__input","aria-label":Object(Pe.__)("Optional placeholder text"),placeholder:l?void 0:Object(Pe.__)("Optional placeholder…"),value:l,onChange:function(e){return r({placeholder:e.target.value})}})},f=function(){return Object(Be.createElement)(Be.Fragment,null,d&&Object(Be.createElement)(Fe.Button,{icon:$t.a,className:"wp-block-search__button"}),!d&&Object(Be.createElement)(Ce.RichText,{className:"wp-block-search__button","aria-label":Object(Pe.__)("Button text"),placeholder:Object(Pe.__)("Add button text…"),withoutInteractiveFormatting:!0,value:m,onChange:function(e){return r({buttonText:e})}}))},v=Object(Be.createElement)(Be.Fragment,null,Object(Be.createElement)(Ce.BlockControls,null,Object(Be.createElement)(Fe.ToolbarGroup,null,Object(Be.createElement)(Fe.ToolbarButton,{title:Object(Pe.__)("Toggle search label"),icon:lu,onClick:function(){r({showLabel:!i})},className:i?"is-pressed":void 0}),Object(Be.createElement)(Fe.DropdownMenu,{icon:function(){switch(p){case"button-inside":return cu;case"button-outside":return ou;case"no-button":return au;case"button-only":return ru}}(),label:Object(Pe.__)("Change button position")},(function(e){var t=e.onClose;return Object(Be.createElement)(Fe.MenuGroup,{className:"wp-block-search__button-position-menu"},Object(Be.createElement)(Fe.MenuItem,{icon:au,onClick:function(){r({buttonPosition:"no-button"}),t()}},Object(Pe.__)("No Button")),Object(Be.createElement)(Fe.MenuItem,{icon:ou,onClick:function(){r({buttonPosition:"button-outside"}),t()}},Object(Pe.__)("Button Outside")),Object(Be.createElement)(Fe.MenuItem,{icon:cu,onClick:function(){r({buttonPosition:"button-inside"}),t()}},Object(Pe.__)("Button Inside")))})),"no-button"!==p&&Object(Be.createElement)(Fe.ToolbarButton,{title:Object(Pe.__)("Use button with icon"),icon:iu,onClick:function(){r({buttonUseIcon:!d})},className:d?"is-pressed":void 0}))),Object(Be.createElement)(Ce.InspectorControls,null,Object(Be.createElement)(Fe.PanelBody,{title:Object(Pe.__)("Display Settings")},Object(Be.createElement)(Fe.BaseControl,{label:Object(Pe.__)("Width"),id:h},Object(Be.createElement)(Ce.__experimentalUnitControl,{id:h,min:"".concat(220).concat("px"),onChange:function(e){var t="%"===u&&parseInt(e,10)>100?100:e;r({width:parseInt(t,10)})},onUnitChange:function(e){r({width:"%"===e?50:350,widthUnit:e})},style:{maxWidth:80},value:"".concat(s).concat(u),unit:u,units:uu}),Object(Be.createElement)(Fe.ButtonGroup,{className:"wp-block-search__components-button-group","aria-label":Object(Pe.__)("Percentage Width")},[25,50,75,100].map((function(e){return Object(Be.createElement)(Fe.Button,{key:e,isSmall:!0,isPrimary:"".concat(e,"%")==="".concat(s).concat(u),onClick:function(){return r({width:e,widthUnit:"%"})}},e,"%")}))))))),j=Object(Ce.useBlockProps)({className:Me()(t,"button-inside"===p?"wp-block-search__button-inside":void 0,"button-outside"===p?"wp-block-search__button-outside":void 0,"no-button"===p?"wp-block-search__no-button":void 0,"button-only"===p?"wp-block-search__button-only":void 0,d||"no-button"===p?void 0:"wp-block-search__text-button",d&&"no-button"!==p?"wp-block-search__icon-button":void 0)});return Object(Be.createElement)("div",j,v,i&&Object(Be.createElement)(Ce.RichText,{className:"wp-block-search__label","aria-label":Object(Pe.__)("Label text"),placeholder:Object(Pe.__)("Add label…"),withoutInteractiveFormatting:!0,value:a,onChange:function(e){return r({label:e})}}),Object(Be.createElement)(Fe.ResizableBox,{size:{width:"".concat(s).concat(u)},className:"wp-block-search__inside-wrapper",minWidth:220,enable:"button-only"===p?{}:{right:"right"!==b,left:"right"===b},onResizeStart:function(e,t,n){r({width:parseInt(n.offsetWidth,10),widthUnit:"px"}),o(!1)},onResizeStop:function(e,t,n,c){r({width:parseInt(s+c.width,10)}),o(!0)},showHandle:c},("button-inside"===p||"button-outside"===p)&&Object(Be.createElement)(Be.Fragment,null,O(),f()),"button-only"===p&&f(),"no-button"===p&&O()))}},gu=Object(Be.createElement)(Te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Be.createElement)(Te.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v3H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-3h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h3V13c0 1.1.9 2 2 2h2.5v3zm0-4.5H11c-.3 0-.5-.2-.5-.5v-2.5H13c.3 0 .5.2.5.5v2.5zm5-.5c0 .3-.2.5-.5.5h-3V11c0-1.1-.9-2-2-2h-2.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7z"}));function hu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ou(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hu(Object(n),!0).forEach((function(t){Object(ke.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var fu=function(e){if(e.tagName||(e=Ou(Ou({},e),{},{tagName:"div"})),!e.customTextColor&&!e.customBackgroundColor)return e;var t={color:{}};return e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),Ou(Ou({},Object(Se.omit)(e,["customTextColor","customBackgroundColor"])),{},{style:t})},vu=[{attributes:{tagName:{type:"string",default:"div"},templateLock:{type:"string"}},supports:{align:["wide","full"],anchor:!0,color:{gradients:!0,link:!0},spacing:{padding:!0},__experimentalBorder:{radius:!0}},save:function(e){var t=e.attributes.tagName;return Object(Be.createElement)(t,Ce.useBlockProps.save(),Object(Be.createElement)("div",{className:"wp-block-group__inner-container"},Object(Be.createElement)(Ce.InnerBlocks.Content,null)))}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:fu,save:function(e){var t=e.attributes,n=t.backgroundColor,r=t.customBackgroundColor,o=t.textColor,c=t.customTextColor,a=Object(Ce.getColorClassName)("background-color",n),i=Object(Ce.getColorClassName)("color",o),l=Me()(a,i,{"has-text-color":o||c,"has-background":n||r}),s={backgroundColor:a?void 0:r,color:i?void 0:c};return Object(Be.createElement)("div",{className:l,style:s},Object(Be.createElement)("div",{className:"wp-block-group__inner-container"},Object(Be.createElement)(Ce.InnerBlocks.Content,null)))}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},migrate:fu,supports:{align:["wide","full"],anchor:!0,html:!1},save:function(e){var t=e.attributes,n=t.backgroundColor,r=t.customBackgroundColor,o=t.textColor,c=t.customTextColor,a=Object(Ce.getColorClassName)("background-color",n),i=Object(Ce.getColorClassName)("color",o),l=Me()(a,{"has-text-color":o||c,"has-background":n||r}),s={backgroundColor:a?void 0:r,color:i?void 0:c};return Object(Be.createElement)("div",{className:l,style:s},Object(Be.createElement)("div",{className:"wp-block-group__inner-container"},Object(Be.createElement)(Ce.InnerBlocks.Content,null)))}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:fu,save:function(e){var t=e.attributes,n=t.backgroundColor,r=t.customBackgroundColor,o=Object(Ce.getColorClassName)("background-color",n),c=Me()(o,{"has-background":n||r}),a={backgroundColor:o?void 0:r};return Object(Be.createElement)("div",{className:c,style:a},Object(Be.createElement)(Ce.InnerBlocks.Content,null))}}],ju={apiVersion:2,name:"core/group",category:"design",attributes:{tagName:{type:"string",default:"div"},templateLock:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,color:{gradients:!0,link:!0},spacing:{padding:!0},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0},__experimentalLayout:!0},editorStyle:"wp-block-group-editor",style:"wp-block-group"},yu=ju.name,_u={title:Object(Pe._x)("Group","block title"),icon:gu,description:Object(Pe.__)("Combine blocks into a group."),keywords:[Object(Pe.__)("container"),Object(Pe.__)("wrapper"),Object(Pe.__)("row"),Object(Pe.__)("section")],example:{attributes:{style:{color:{text:"#000000",background:"#ffffff"}}},innerBlocks:[{name:"core/paragraph",attributes:{customTextColor:"#cf2e2e",fontSize:"large",content:Object(Pe.__)("One.")}},{name:"core/paragraph",attributes:{customTextColor:"#ff6900",fontSize:"large",content:Object(Pe.__)("Two.")}},{name:"core/paragraph",attributes:{customTextColor:"#fcb900",fontSize:"large",content:Object(Pe.__)("Three.")}},{name:"core/paragraph",attributes:{customTextColor:"#00d084",fontSize:"large",content:Object(Pe.__)("Four.")}},{name:"core/paragraph",attributes:{customTextColor:"#0693e3",fontSize:"large",content:Object(Pe.__)("Five.")}},{name:"core/paragraph",attributes:{customTextColor:"#9b51e0",fontSize:"large",content:Object(Pe.__)("Six.")}}]},transforms:{from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:function(e){if(1!==e.length||"core/group"!==e[0].name){var t=["wide","full"],n=e.reduce((function(e,n){var r=n.attributes.align;return t.indexOf(r)>t.indexOf(e)?r:e}),void 0),r=e.map((function(e){return Object(xe.createBlock)(e.name,e.attributes,e.innerBlocks)}));return Object(xe.createBlock)("core/group",{align:n},r)}}}]},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.clientId,o=Object(nt.useSelect)((function(e){var t,n=e(Ce.store),o=n.getBlock,c=n.getSettings,a=o(r);return{hasInnerBlocks:!(!a||!a.innerBlocks.length),themeSupportsLayout:null===(t=c())||void 0===t?void 0:t.supportsLayout}}),[r]),c=o.hasInnerBlocks,a=o.themeSupportsLayout,i=Object(Ce.__experimentalUseEditorFeature)("layout")||{},l=t.tagName,s=void 0===l?"div":l,u=t.templateLock,b=t.layout,m=void 0===b?{}:b,p=m&&m.inherit?i:m,d=p.contentSize,g=p.wideSize,h=d||g?["wide","full"]:["left","center","right"],O=Object(Ce.useBlockProps)(),f=Object(Ce.__experimentalUseInnerBlocksProps)(O,{templateLock:u,renderAppender:c?void 0:Ce.InnerBlocks.ButtonBlockAppender,__experimentalLayout:{type:"default",alignments:a?h:void 0}});return Object(Be.createElement)(Be.Fragment,null,Object(Be.createElement)(Ce.InspectorAdvancedControls,null,Object(Be.createElement)(Fe.SelectControl,{label:Object(Pe.__)("HTML element"),options:[{label:Object(Pe.__)("Default (<div>)"),value:"div"},{label:"<header>",value:"header"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"},{label:"<aside>",value:"aside"},{label:"<footer>",value:"footer"}],value:s,onChange:function(e){return n({tagName:e})}})),Object(Be.createElement)(s,f))},save:function(e){var t=e.attributes.tagName;return Object(Be.createElement)(t,Ce.useBlockProps.save(),Object(Be.createElement)(Ce.InnerBlocks.Content,null))},deprecated:vu},wu=Object(Be.createElement)(Te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Be.createElement)(Te.Path,{d:"M20.2 7v4H3.8V7H2.2v9h1.6v-3.5h16.4V16h1.6V7z"})),ku=function(e){var t=e.color,n=e.setColor;return Object(Be.createElement)(Ce.InspectorControls,null,Object(Be.createElement)(Ce.PanelColorSettings,{title:Object(Pe.__)("Color settings"),colorSettings:[{value:t.color,onChange:n,label:Object(Pe.__)("Color")}]}))},Eu=Object(Ce.withColors)("color",{textColor:"color"})((function(e){var t=e.color,n=e.setColor,r=e.className;return Object(Be.createElement)(Be.Fragment,null,Object(Be.createElement)(Fe.HorizontalRule,Object(Ce.useBlockProps)({className:Me()(r,Object(ke.a)({"has-background":t.color},t.class,t.class)),style:{backgroundColor:t.color,color:t.color}})),Object(Be.createElement)(ku,{color:t,setColor:n}))})),Cu={from:[{type:"enter",regExp:/^-{3,}$/,transform:function(){return Object(xe.createBlock)("core/separator")}},{type:"raw",selector:"hr",schema:{hr:{}}}]},xu={apiVersion:2,name:"core/separator",category:"design",attributes:{color:{type:"string"},customColor:{type:"string"}},supports:{anchor:!0,align:["center","wide","full"]},editorStyle:"wp-block-separator-editor",style:"wp-block-separator"},Su=xu.name,Pu={title:Object(Pe._x)("Separator","block title"),description:Object(Pe.__)("Create a break between ideas or sections with a horizontal separator."),icon:wu,keywords:[Object(Pe.__)("horizontal-line"),"hr",Object(Pe.__)("divider")],example:{attributes:{customColor:"#065174",className:"is-style-wide"}},styles:[{name:"default",label:Object(Pe.__)("Default"),isDefault:!0},{name:"wide",label:Object(Pe.__)("Wide Line")},{name:"dots",label:Object(Pe.__)("Dots")}],transforms:Cu,edit:Eu,save:function(e){var t,n=e.attributes,r=n.color,o=n.customColor,c=Object(Ce.getColorClassName)("background-color",r),a=Object(Ce.getColorClassName)("color",r),i=Me()((t={"has-text-color has-background":r||o},Object(ke.a)(t,c,c),Object(ke.a)(t,a,a),t)),l={backgroundColor:c?void 0:o,color:a?void 0:o};return Object(Be.createElement)("hr",Ce.useBlockProps.save({className:i,style:l}))}},Bu=Object(Be.createElement)(Te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Be.createElement)(Te.Path,{d:"M16 4.2v1.5h2.5v12.5H16v1.5h4V4.2h-4zM4.2 19.8h4v-1.5H5.8V5.8h2.5V4.2h-4l-.1 15.6zm5.1-3.1l1.4.6 4-10-1.4-.6-4 10z"})),Tu=n(142),zu={from:[{type:"shortcode",tag:"[a-z][a-z0-9_-]*",attributes:{text:{type:"string",shortcode:function(e,t){var n=t.content;return Object(Tu.removep)(Object(Tu.autop)(n))}}},priority:20}]},Nu={apiVersion:2,name:"core/shortcode",category:"widgets",attributes:{text:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,html:!1},editorStyle:"wp-block-shortcode-editor"},Mu=Nu.name,Vu={title:Object(Pe._x)("Shortcode","block title"),description:Object(Pe.__)("Insert additional custom elements with a WordPress shortcode."),icon:Bu,transforms:zu,edit:function e(t){var n=t.attributes,r=t.setAttributes,o=Object(rt.useInstanceId)(e),c="blocks-shortcode-input-".concat(o);return Object(Be.createElement)("div",Object(Ce.useBlockProps)({className:"components-placeholder"}),Object(Be.createElement)("label",{htmlFor:c,className:"components-placeholder__label"},Object(Be.createElement)(Ri.a,{icon:Bu}),Object(Pe.__)("Shortcode")),Object(Be.createElement)(Ce.PlainText,{className:"blocks-shortcode__textarea",id:c,value:n.text,"aria-label":Object(Pe.__)("Shortcode text"),placeholder:Object(Pe.__)("Write shortcode here…"),onChange:function(e){return r({text:e})}}))},save:function(e){var t=e.attributes;return Object(Be.createElement)(Be.RawHTML,null,t.text)}},Iu=Object(Be.createElement)(Te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Be.createElement)(Te.Path,{d:"M12.5 4.2v1.6h4.7L5.8 17.2V12H4.2v7.8H12v-1.6H6.8L18.2 6.8v4.7h1.6V4.2z"})),Ru=Object(rt.compose)([Object(nt.withDispatch)((function(e){var t=e(Ce.store).toggleSelection;return{onResizeStart:function(){return t(!1)},onResizeStop:function(){return t(!0)}}})),rt.withInstanceId])((function(e){var t=e.attributes,n=e.isSelected,r=e.setAttributes,o=e.onResizeStart,c=e.onResizeStop,a=e.context.orientation,i=Object(Be.useState)(!1),l=Object(et.a)(i,2),s=l[0],u=l[1],b=t.height,m=t.width,p=function(e){r({height:e})},d=function(e){r({width:e})},g=function(){o.apply(void 0,arguments),u(!0)};return Object(Be.useEffect)((function(){"horizontal"!==a||m||(d(72),p(0))}),[]),Object(Be.createElement)(Be.Fragment,null,Object(Be.createElement)(Te.View,Object(Ce.useBlockProps)(),"horizontal"===a?Object(Be.createElement)(Fe.ResizableBox,{className:Me()("block-library-spacer__resize-container","resize-horizontal",{"is-selected":n}),size:{width:m,height:24},minWidth:1,enable:{top:!1,right:!0,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:g,onResizeStop:function(e,t,n,r){c();var o=Math.min(parseInt(m+r.width,10),500);d(o),u(!1)},showHandle:n,__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:"x",position:"corner",isVisible:s}}):Object(Be.createElement)(Fe.ResizableBox,{className:Me()("block-library-spacer__resize-container",{"is-selected":n}),size:{height:b},minHeight:1,enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:g,onResizeStop:function(e,t,n,r){c();var o=Math.min(parseInt(b+r.height,10),500);p(o),u(!1)},showHandle:n,__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:"y",position:"bottom",isVisible:s}})),Object(Be.createElement)(Ce.InspectorControls,null,Object(Be.createElement)(Fe.PanelBody,{title:Object(Pe.__)("Spacer settings")},"horizontal"===a&&Object(Be.createElement)(Fe.RangeControl,{label:Object(Pe.__)("Width in pixels"),min:1,max:Math.max(500,m),value:m,onChange:d}),"horizontal"!==a&&Object(Be.createElement)(Fe.RangeControl,{label:Object(Pe.__)("Height in pixels"),min:1,max:Math.max(500,b),value:b,onChange:p}))))})),Hu={apiVersion:2,name:"core/spacer",category:"design",attributes:{height:{type:"number",default:100},width:{type:"number"}},usesContext:["orientation"],supports:{anchor:!0},editorStyle:"wp-block-spacer-editor",style:"wp-block-spacer"},Au=Hu.name,Lu={title:Object(Pe._x)("Spacer","block title"),description:Object(Pe.__)("Add white space between blocks and customize its height."),icon:Iu,edit:Ru,save:function(e){var t=e.attributes;return Object(Be.createElement)("div",Ce.useBlockProps.save({style:{height:t.height,width:t.width},"aria-hidden":!0}))}},Du=Object(Be.createElement)(Te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Be.createElement)(Te.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v3.5h-15V5c0-.3.2-.5.5-.5zm8 5.5h6.5v3.5H13V10zm-1.5 3.5h-7V10h7v3.5zm-7 5.5v-4h7v4.5H5c-.3 0-.5-.2-.5-.5zm14.5.5h-6V15h6.5v4c0 .3-.2.5-.5.5z"})),Fu=[{attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}}}}}},supports:{align:!0},save:function(e){var t=e.attributes,n=t.hasFixedLayout,r=t.head,o=t.body,c=t.foot,a=t.backgroundColor;if(!r.length&&!o.length&&!c.length)return null;var i=Object(Ce.getColorClassName)("background-color",a),l=Me()(i,{"has-fixed-layout":n,"has-background":!!i}),s=function(e){var t=e.type,n=e.rows;if(!n.length)return null;var r="t".concat(t);return Object(Be.createElement)(r,null,n.map((function(e,t){var n=e.cells;return Object(Be.createElement)("tr",{key:t},n.map((function(e,t){var n=e.content,r=e.tag,o=e.scope;return Object(Be.createElement)(Ce.RichText.Content,{tagName:r,value:n,key:t,scope:"th"===r?o:void 0})})))})))};return Object(Be.createElement)("table",{className:l},Object(Be.createElement)(s,{type:"head",rows:r}),Object(Be.createElement)(s,{type:"body",rows:o}),Object(Be.createElement)(s,{type:"foot",rows:c}))}}],Gu=n(406),Uu=n(407),qu=n(408),Wu=Object(Be.createElement)(Te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(Be.createElement)(Te.Path,{d:"M6.656 6.464h2.88v2.88h1.408v-2.88h2.88V5.12h-2.88V2.24H9.536v2.88h-2.88zM0 17.92V0h20.48v17.92H0zm7.68-2.56h5.12v-3.84H7.68v3.84zm-6.4 0H6.4v-3.84H1.28v3.84zM19.2 1.28H1.28v9.024H19.2V1.28zm0 10.24h-5.12v3.84h5.12v-3.84zM6.656 6.464h2.88v2.88h1.408v-2.88h2.88V5.12h-2.88V2.24H9.536v2.88h-2.88zM0 17.92V0h20.48v17.92H0zm7.68-2.56h5.12v-3.84H7.68v3.84zm-6.4 0H6.4v-3.84H1.28v3.84zM19.2 1.28H1.28v9.024H19.2V1.28zm0 10.24h-5.12v3.84h5.12v-3.84z"})),Zu=Object(Be.createElement)(Te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(Be.createElement)(Te.Path,{d:"M13.824 10.176h-2.88v-2.88H9.536v2.88h-2.88v1.344h2.88v2.88h1.408v-2.88h2.88zM0 17.92V0h20.48v17.92H0zM6.4 1.28H1.28v3.84H6.4V1.28zm6.4 0H7.68v3.84h5.12V1.28zm6.4 0h-5.12v3.84h5.12V1.28zm0 5.056H1.28v9.024H19.2V6.336z"})),Ju=Object(Be.createElement)(Te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(Be.createElement)(Te.Path,{d:"M17.728 11.456L14.592 8.32l3.2-3.2-1.536-1.536-3.2 3.2L9.92 3.648 8.384 5.12l3.2 3.2-3.264 3.264 1.536 1.536 3.264-3.264 3.136 3.136 1.472-1.536zM0 17.92V0h20.48v17.92H0zm19.2-6.4h-.448l-1.28-1.28H19.2V6.4h-1.792l1.28-1.28h.512V1.28H1.28v3.84h6.208l1.28 1.28H1.28v3.84h7.424l-1.28 1.28H1.28v3.84H19.2v-3.84z"})),Qu=Object(Be.createElement)(Te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(Be.createElement)(Te.Path,{d:"M6.4 3.776v3.648H2.752v1.792H6.4v3.648h1.728V9.216h3.712V7.424H8.128V3.776zM0 17.92V0h20.48v17.92H0zM12.8 1.28H1.28v14.08H12.8V1.28zm6.4 0h-5.12v3.84h5.12V1.28zm0 5.12h-5.12v3.84h5.12V6.4zm0 5.12h-5.12v3.84h5.12v-3.84z"})),Ku=Object(Be.createElement)(Te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(Be.createElement)(Te.Path,{d:"M14.08 12.864V9.216h3.648V7.424H14.08V3.776h-1.728v3.648H8.64v1.792h3.712v3.648zM0 17.92V0h20.48v17.92H0zM6.4 1.28H1.28v3.84H6.4V1.28zm0 5.12H1.28v3.84H6.4V6.4zm0 5.12H1.28v3.84H6.4v-3.84zM19.2 1.28H7.68v14.08H19.2V1.28z"})),$u=Object(Be.createElement)(Te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(Be.createElement)(Te.Path,{d:"M6.4 9.98L7.68 8.7v-.256L6.4 7.164V9.98zm6.4-1.532l1.28-1.28V9.92L12.8 8.64v-.192zm7.68 9.472V0H0v17.92h20.48zm-1.28-2.56h-5.12v-1.024l-.256.256-1.024-1.024v1.792H7.68v-1.792l-1.024 1.024-.256-.256v1.024H1.28V1.28H6.4v2.368l.704-.704.576.576V1.216h5.12V3.52l.96-.96.32.32V1.216h5.12V15.36zm-5.76-2.112l-3.136-3.136-3.264 3.264-1.536-1.536 3.264-3.264L5.632 5.44l1.536-1.536 3.136 3.136 3.2-3.2 1.536 1.536-3.2 3.2 3.136 3.136-1.536 1.536z"})),Yu=Object(Be.createElement)(Te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Be.createElement)(Te.Path,{d:"M4 6v11.5h16V6H4zm1.5 1.5h6V11h-6V7.5zm0 8.5v-3.5h6V16h-6zm13 0H13v-3.5h5.5V16zM13 11V7.5h5.5V11H13z"}));function Xu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function eb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xu(Object(n),!0).forEach((function(t){Object(ke.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var tb=["align"];function nb(e,t,n){if(!t)return e;var r=Object(Se.pick)(e,["head","body","foot"]),o=t.sectionName,c=t.rowIndex;return Object(Se.mapValues)(r,(function(e,r){return o&&o!==r?e:e.map((function(e,o){return c&&c!==o?e:{cells:e.cells.map((function(e,c){return function(e,t){if(!e||!t)return!1;switch(t.type){case"column":return"column"===t.type&&e.columnIndex===t.columnIndex;case"cell":return"cell"===t.type&&e.sectionName===t.sectionName&&e.columnIndex===t.columnIndex&&e.rowIndex===t.rowIndex}}({sectionName:r,columnIndex:c,rowIndex:o},t)?n(e):e}))}}))}))}function rb(e,t){var n=t.sectionName,r=t.rowIndex,o=t.columnCount,c=function(e){return ab(e.head)?ab(e.body)?ab(e.foot)?void 0:e.foot[0]:e.body[0]:e.head[0]}(e),a=void 0===o?Object(Se.get)(c,["cells","length"]):o;return a?Object(ke.a)({},n,[].concat(Object(we.a)(e[n].slice(0,r)),[{cells:Object(Se.times)(a,(function(e){var t=Object(Se.get)(c,["cells",e],{});return eb(eb({},Object(Se.pick)(t,tb)),{},{content:"",tag:"head"===n?"th":"td"})}))}],Object(we.a)(e[n].slice(r)))):e}function ob(e,t){var n=t.columnIndex,r=Object(Se.pick)(e,["head","body","foot"]);return Object(Se.mapValues)(r,(function(e,t){return ab(e)?e:e.map((function(e){return ib(e)||e.cells.length<n?e:{cells:[].concat(Object(we.a)(e.cells.slice(0,n)),[{content:"",tag:"head"===t?"th":"td"}],Object(we.a)(e.cells.slice(n)))}}))}))}function cb(e,t){return ab(e[t])?rb(e,{sectionName:t,rowIndex:0,columnCount:Object(Se.get)(e,["body",0,"cells","length"],1)}):Object(ke.a)({},t,[])}function ab(e){return!e||!e.length||Object(Se.every)(e,ib)}function ib(e){return!(e.cells&&e.cells.length)}function lb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lb(Object(n),!0).forEach((function(t){Object(ke.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ub=[{color:"#f3f4f5",name:"Subtle light gray",slug:"subtle-light-gray"},{color:"#e9fbe5",name:"Subtle pale green",slug:"subtle-pale-green"},{color:"#e7f5fe",name:"Subtle pale blue",slug:"subtle-pale-blue"},{color:"#fcf0ef",name:"Subtle pale pink",slug:"subtle-pale-pink"}],bb=[{icon:Gu.a,title:Object(Pe.__)("Align column left"),align:"left"},{icon:Uu.a,title:Object(Pe.__)("Align column center"),align:"center"},{icon:qu.a,title:Object(Pe.__)("Align column right"),align:"right"}],mb=Object(Ce.createCustomColorsHOC)(ub),pb={head:Object(Pe.__)("Header cell text"),body:Object(Pe.__)("Body cell text"),foot:Object(Pe.__)("Footer cell text")},db={head:Object(Pe.__)("Header label"),foot:Object(Pe.__)("Footer label")};function gb(e){var t=e.name,n=Object(Cn.a)(e,["name"]),r="t".concat(t);return Object(Be.createElement)(r,n)}var hb=mb("backgroundColor")((function(e){var t=e.attributes,n=e.backgroundColor,r=e.setBackgroundColor,o=e.setAttributes,c=e.insertBlocksAfter,a=e.isSelected,i=t.hasFixedLayout,l=t.caption,s=t.head,u=t.foot,b=Object(Be.useState)(2),m=Object(et.a)(b,2),p=m[0],d=m[1],g=Object(Be.useState)(2),h=Object(et.a)(g,2),O=h[0],f=h[1],v=Object(Be.useState)(),j=Object(et.a)(v,2),y=j[0],_=j[1];function w(e){y&&o(nb(t,y,(function(t){return sb(sb({},t),{},{content:e})})))}function k(e){if(y){var n=y.sectionName,r=y.rowIndex+e;o(rb(t,{sectionName:n,rowIndex:r})),_({sectionName:n,rowIndex:r,columnIndex:0,type:"cell"})}}function E(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(y){var n=y.columnIndex,r=n+e;o(ob(t,{columnIndex:r})),_({rowIndex:0,columnIndex:r,type:"cell"})}}Object(Be.useEffect)((function(){a||_()}),[a]);var C=["head","body","foot"].filter((function(e){return!ab(t[e])})),x=[{icon:Wu,title:Object(Pe.__)("Insert row before"),isDisabled:!y,onClick:function(){k(0)}},{icon:Zu,title:Object(Pe.__)("Insert row after"),isDisabled:!y,onClick:function(){k(1)}},{icon:Ju,title:Object(Pe.__)("Delete row"),isDisabled:!y,onClick:function(){if(y){var e=y.sectionName,n=y.rowIndex;_(),o(function(e,t){var n=t.sectionName,r=t.rowIndex;return Object(ke.a)({},n,e[n].filter((function(e,t){return t!==r})))}(t,{sectionName:e,rowIndex:n}))}}},{icon:Qu,title:Object(Pe.__)("Insert column before"),isDisabled:!y,onClick:function(){E(0)}},{icon:Ku,title:Object(Pe.__)("Insert column after"),isDisabled:!y,onClick:function(){E(1)}},{icon:$u,title:Object(Pe.__)("Delete column"),isDisabled:!y,onClick:function(){if(y){var e=y.sectionName,n=y.columnIndex;_(),o(function(e,t){var n=t.columnIndex,r=Object(Se.pick)(e,["head","body","foot"]);return Object(Se.mapValues)(r,(function(e){return ab(e)?e:e.map((function(e){return{cells:e.cells.length>=n?e.cells.filter((function(e,t){return t!==n})):e.cells}})).filter((function(e){return e.cells.length}))}))}(t,{sectionName:e,columnIndex:n}))}}}],S=["head","body","foot"].map((function(e){return Object(Be.createElement)(gb,{name:e,key:e},t[e].map((function(t,n){var r=t.cells;return Object(Be.createElement)("tr",{key:n},r.map((function(t,r){var o=t.content,c=t.tag,a=t.scope,i=t.align;return Object(Be.createElement)(Ce.RichText,{tagName:c,key:r,className:Me()(Object(ke.a)({},"has-text-align-".concat(i),i),"wp-block-table__cell-content"),scope:"th"===c?a:void 0,value:o,onChange:w,unstableOnFocus:function(){_({sectionName:e,rowIndex:n,columnIndex:r,type:"cell"})},"aria-label":pb[e],placeholder:db[e]})})))})))})),P=!C.length;return Object(Be.createElement)("figure",Object(Ce.useBlockProps)(),!P&&Object(Be.createElement)(Ce.BlockControls,null,Object(Be.createElement)(Fe.ToolbarGroup,null,Object(Be.createElement)(Fe.ToolbarItem,null,(function(e){return Object(Be.createElement)(Fe.DropdownMenu,{hasArrowIndicator:!0,icon:Yu,toggleProps:e,label:Object(Pe.__)("Edit table"),controls:x})}))),Object(Be.createElement)(Ce.AlignmentToolbar,{label:Object(Pe.__)("Change column alignment"),alignmentControls:bb,value:function(){var e,n,r,o,c;if(y)return e=t,"align",r=(n=y).sectionName,o=n.rowIndex,c=n.columnIndex,Object(Se.get)(e,[r,o,"cells",c,"align"])}(),onChange:function(e){return function(e){if(y){var n={type:"column",columnIndex:y.columnIndex},r=nb(t,n,(function(t){return sb(sb({},t),{},{align:e})}));o(r)}}(e)}})),!P&&Object(Be.createElement)(Ce.InspectorControls,null,Object(Be.createElement)(Fe.PanelBody,{title:Object(Pe.__)("Table settings"),className:"blocks-table-settings"},Object(Be.createElement)(Fe.ToggleControl,{label:Object(Pe.__)("Fixed width table cells"),checked:!!i,onChange:function(){o({hasFixedLayout:!i})}}),Object(Be.createElement)(Fe.ToggleControl,{label:Object(Pe.__)("Header section"),checked:!(!s||!s.length),onChange:function(){o(cb(t,"head"))}}),Object(Be.createElement)(Fe.ToggleControl,{label:Object(Pe.__)("Footer section"),checked:!(!u||!u.length),onChange:function(){o(cb(t,"foot"))}})),Object(Be.createElement)(Ce.PanelColorSettings,{title:Object(Pe.__)("Color settings"),initialOpen:!1,colorSettings:[{value:n.color,onChange:r,label:Object(Pe.__)("Background color"),disableCustomColors:!0,colors:ub}]})),!P&&Object(Be.createElement)("table",{className:Me()(n.class,{"has-fixed-layout":i,"has-background":!!n.color})},S),!P&&Object(Be.createElement)(Ce.RichText,{tagName:"figcaption","aria-label":Object(Pe.__)("Table caption text"),placeholder:Object(Pe.__)("Write caption…"),value:l,onChange:function(e){return o({caption:e})},unstableOnFocus:function(){return _()},__unstableOnSplitAtEnd:function(){return c(Object(xe.createBlock)("core/paragraph"))}}),P&&Object(Be.createElement)(Fe.Placeholder,{label:Object(Pe.__)("Table"),icon:Object(Be.createElement)(Ce.BlockIcon,{icon:Du,showColors:!0}),instructions:Object(Pe.__)("Insert a table for sharing data.")},Object(Be.createElement)("form",{className:"blocks-table__placeholder-form",onSubmit:function(e){var t,n,r;e.preventDefault(),o((n=(t={rowCount:parseInt(p,10)||2,columnCount:parseInt(O,10)||2}).rowCount,r=t.columnCount,{body:Object(Se.times)(n,(function(){return{cells:Object(Se.times)(r,(function(){return{content:"",tag:"td"}}))}}))}))}},Object(Be.createElement)(Fe.TextControl,{type:"number",label:Object(Pe.__)("Column count"),value:O,onChange:function(e){f(e)},min:"1",className:"blocks-table__placeholder-input"}),Object(Be.createElement)(Fe.TextControl,{type:"number",label:Object(Pe.__)("Row count"),value:p,onChange:function(e){d(e)},min:"1",className:"blocks-table__placeholder-input"}),Object(Be.createElement)(Fe.Button,{className:"blocks-table__placeholder-button",isPrimary:!0,type:"submit"},Object(Pe.__)("Create Table")))))})),Ob=function(e){var t=e.phrasingContentSchema;return{tr:{allowEmpty:!0,children:{th:{allowEmpty:!0,children:t,attributes:["scope"]},td:{allowEmpty:!0,children:t}}}}},fb={from:[{type:"raw",selector:"table",schema:function(e){return{table:{children:{thead:{allowEmpty:!0,children:Ob(e)},tfoot:{allowEmpty:!0,children:Ob(e)},tbody:{allowEmpty:!0,children:Ob(e)}}}}}}]},vb={apiVersion:2,name:"core/table",category:"text",attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption",default:""},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}}},supports:{anchor:!0,align:!0,__experimentalSelector:".wp-block-table > table"},editorStyle:"wp-block-table-editor",style:"wp-block-table"},jb=vb.name,yb={title:Object(Pe._x)("Table","block title"),description:Object(Pe.__)("Insert a table — perfect for sharing charts and data."),icon:Du,example:{attributes:{head:[{cells:[{content:Object(Pe.__)("Version"),tag:"th"},{content:Object(Pe.__)("Jazz Musician"),tag:"th"},{content:Object(Pe.__)("Release Date"),tag:"th"}]}],body:[{cells:[{content:"5.2",tag:"td"},{content:"Jaco Pastorius",tag:"td"},{content:Object(Pe.__)("May 7, 2019"),tag:"td"}]},{cells:[{content:"5.1",tag:"td"},{content:"Betty Carter",tag:"td"},{content:Object(Pe.__)("February 21, 2019"),tag:"td"}]},{cells:[{content:"5.0",tag:"td"},{content:"Bebo Valdés",tag:"td"},{content:Object(Pe.__)("December 6, 2018"),tag:"td"}]}]}},styles:[{name:"regular",label:Object(Pe._x)("Default","block style"),isDefault:!0},{name:"stripes",label:Object(Pe.__)("Stripes")}],transforms:fb,edit:hb,save:function(e){var t=e.attributes,n=t.hasFixedLayout,r=t.head,o=t.body,c=t.foot,a=t.backgroundColor,i=t.caption;if(!r.length&&!o.length&&!c.length)return null;var l=Object(Ce.getColorClassName)("background-color",a),s=Me()(l,{"has-fixed-layout":n,"has-background":!!l}),u=!Ce.RichText.isEmpty(i),b=function(e){var t=e.type,n=e.rows;if(!n.length)return null;var r="t".concat(t);return Object(Be.createElement)(r,null,n.map((function(e,t){var n=e.cells;return Object(Be.createElement)("tr",{key:t},n.map((function(e,t){var n=e.content,r=e.tag,o=e.scope,c=e.align,a=Me()(Object(ke.a)({},"has-text-align-".concat(c),c));return Object(Be.createElement)(Ce.RichText.Content,{className:a||void 0,"data-align":c,tagName:r,value:n,key:t,scope:"th"===r?o:void 0})})))})))};return Object(Be.createElement)("figure",Ce.useBlockProps.save(),Object(Be.createElement)("table",{className:""===s?void 0:s},Object(Be.createElement)(b,{type:"head",rows:r}),Object(Be.createElement)(b,{type:"body",rows:o}),Object(Be.createElement)(b,{type:"foot",rows:c})),u&&Object(Be.createElement)(Ce.RichText.Content,{tagName:"figcaption",value:i}))},deprecated:Fu},_b=n(38),wb=n.n(_b),kb={to:[{type:"block",blocks:["core/columns"],transform:function(e){var t=e.className,n=e.columns,r=e.content,o=e.width;return Object(xe.createBlock)("core/columns",{align:"wide"===o||"full"===o?o:void 0,className:t,columns:n},r.map((function(e){var t=e.children;return Object(xe.createBlock)("core/column",{},[Object(xe.createBlock)("core/paragraph",{content:t})])})))}}]},Eb={apiVersion:2,name:"core/text-columns",icon:"columns",category:"design",attributes:{content:{type:"array",source:"query",selector:"p",query:{children:{type:"string",source:"html"}},default:[{},{}]},columns:{type:"number",default:2},width:{type:"string"}},supports:{inserter:!1},editorStyle:"wp-block-text-columns-editor",style:"wp-block-text-columns"},Cb=Eb.name,xb={title:Object(Pe._x)("Text Columns (deprecated)","block title"),description:Object(Pe.__)("This block is deprecated. Please use the Columns block instead."),transforms:kb,getEditWrapperProps:function(e){var t=e.width;if("wide"===t||"full"===t)return{"data-align":t}},edit:function(e){var t=e.attributes,n=e.setAttributes,r=t.width,o=t.content,c=t.columns;return wb()("The Text Columns block",{since:"5.3",alternative:"the Columns block"}),Object(Be.createElement)(Be.Fragment,null,Object(Be.createElement)(Ce.BlockControls,null,Object(Be.createElement)(Ce.BlockAlignmentToolbar,{value:r,onChange:function(e){return n({width:e})},controls:["center","wide","full"]})),Object(Be.createElement)(Ce.InspectorControls,null,Object(Be.createElement)(Fe.PanelBody,null,Object(Be.createElement)(Fe.RangeControl,{label:Object(Pe.__)("Columns"),value:c,onChange:function(e){return n({columns:e})},min:2,max:4,required:!0}))),Object(Be.createElement)("div",Object(Ce.useBlockProps)({className:"align".concat(r," columns-").concat(c)}),Object(Se.times)(c,(function(e){return Object(Be.createElement)("div",{className:"wp-block-column",key:"column-".concat(e)},Object(Be.createElement)(Ce.RichText,{tagName:"p",value:Object(Se.get)(o,[e,"children"]),onChange:function(t){n({content:[].concat(Object(we.a)(o.slice(0,e)),[{children:t}],Object(we.a)(o.slice(e+1)))})},"aria-label":Object(Pe.sprintf)(// translators: %d: column index (starting with 1)
|
60 |
Object(Pe.__)("Column %d text"),e+1),placeholder:Object(Pe.__)("New Column")}))}))))},save:function(e){var t=e.attributes,n=t.width,r=t.content,o=t.columns;return Object(Be.createElement)("div",Ce.useBlockProps.save({className:"align".concat(n," columns-").concat(o)}),Object(Se.times)(o,(function(e){return Object(Be.createElement)("div",{className:"wp-block-column",key:"column-".concat(e)},Object(Be.createElement)(Ce.RichText.Content,{tagName:"p",value:Object(Se.get)(r,[e,"children"])}))})))}},Sb=Object(Be.createElement)(Te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Be.createElement)(Te.Path,{d:"M17.8 2l-.9.3c-.1 0-3.6 1-5.2 2.1C10 5.5 9.3 6.5 8.9 7.1c-.6.9-1.7 4.7-1.7 6.3l-.9 2.3c-.2.4 0 .8.4 1 .1 0 .2.1.3.1.3 0 .6-.2.7-.5l.6-1.5c.3 0 .7-.1 1.2-.2.7-.1 1.4-.3 2.2-.5.8-.2 1.6-.5 2.4-.8.7-.3 1.4-.7 1.9-1.2s.8-1.2 1-1.9c.2-.7.3-1.6.4-2.4.1-.8.1-1.7.2-2.5 0-.8.1-1.5.2-2.1V2zm-1.9 5.6c-.1.8-.2 1.5-.3 2.1-.2.6-.4 1-.6 1.3-.3.3-.8.6-1.4.9-.7.3-1.4.5-2.2.8-.6.2-1.3.3-1.8.4L15 7.5c.3-.3.6-.7 1-1.1 0 .4 0 .8-.1 1.2zM6 20h8v-1.5H6V20z"})),Pb=[{attributes:{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}},save:function(e){var t=e.attributes,n=t.textAlign,r=t.content;return Object(Be.createElement)(Ce.RichText.Content,{tagName:"pre",style:{textAlign:n},value:r})}}],Bb={from:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(xe.createBlock)("core/verse",e)}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(xe.createBlock)("core/paragraph",e)}}]},Tb={apiVersion:2,name:"core/verse",category:"text",attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0},textAlign:{type:"string"}},supports:{anchor:!0,__experimentalFontFamily:!0,fontSize:!0,spacing:{padding:!0}},style:"wp-block-verse",editorStyle:"wp-block-verse-editor"},zb=Tb.name,Nb={title:Object(Pe._x)("Verse","block title"),description:Object(Pe.__)("Insert poetry. Use special spacing formats. Or quote song lyrics."),icon:Sb,example:{attributes:{
|
61 |
// translators: Sample content for the Verse block. Can be replaced with a more locale-adequate work.
|
62 |
content:Object(Pe.__)("WHAT was he doing, the great god Pan,\n\tDown in the reeds by the river?\nSpreading ruin and scattering ban,\nSplashing and paddling with hoofs of a goat,\nAnd breaking the golden lilies afloat\n With the dragon-fly on the river.")}},keywords:[Object(Pe.__)("poetry"),Object(Pe.__)("poem")],transforms:Bb,deprecated:Pb,merge:function(e,t){return{content:e.content+t.content}},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.mergeBlocks,o=e.onRemove,c=t.textAlign,a=t.content,i=Object(Ce.useBlockProps)({className:Me()(Object(ke.a)({},"has-text-align-".concat(c),c))});return Object(Be.createElement)(Be.Fragment,null,Object(Be.createElement)(Ce.BlockControls,null,Object(Be.createElement)(Ce.AlignmentToolbar,{value:c,onChange:function(e){n({textAlign:e})}})),Object(Be.createElement)(Ce.RichText,Object(De.a)({tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:a,onChange:function(e){n({content:e})},"aria-label":Object(Pe.__)("Verse text"),placeholder:Object(Pe.__)("Write verse…"),onRemove:o,onMerge:r,textAlign:c},i,{__unstablePastePlainText:!0})))},save:function(e){var t=e.attributes,n=t.textAlign,r=t.content,o=Me()(Object(ke.a)({},"has-text-align-".concat(n),n));return Object(Be.createElement)("pre",Ce.useBlockProps.save({className:o}),Object(Be.createElement)(Ce.RichText.Content,{value:r}))}},Mb=Object(Be.createElement)(Te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Be.createElement)(Te.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"})),Vb=[{value:"auto",label:Object(Pe.__)("Auto")},{value:"metadata",label:Object(Pe.__)("Metadata")},{value:"none",label:Object(Pe.__)("None")}],Ib=function(e){var t=e.setAttributes,n=e.attributes,r=n.autoplay,o=n.controls,c=n.loop,a=n.muted,i=n.playsInline,l=n.preload,s=Object(Be.useCallback)((function(e){return e?Object(Pe.__)("Note: Autoplaying videos may cause usability issues for some visitors."):null}),[]),u=Object(Be.useMemo)((function(){var e=function(e){return function(n){t(Object(ke.a)({},e,n))}};return{autoplay:e("autoplay"),loop:e("loop"),muted:e("muted"),controls:e("controls"),playsInline:e("playsInline")}}),[]),b=Object(Be.useCallback)((function(e){t({preload:e})}),[]);return Object(Be.createElement)(Be.Fragment,null,Object(Be.createElement)(Fe.ToggleControl,{label:Object(Pe.__)("Autoplay"),onChange:u.autoplay,checked:r,help:s}),Object(Be.createElement)(Fe.ToggleControl,{label:Object(Pe.__)("Loop"),onChange:u.loop,checked:c}),Object(Be.createElement)(Fe.ToggleControl,{label:Object(Pe.__)("Muted"),onChange:u.muted,checked:a}),Object(Be.createElement)(Fe.ToggleControl,{label:Object(Pe.__)("Playback controls"),onChange:u.controls,checked:o}),Object(Be.createElement)(Fe.ToggleControl,{label:Object(Pe.__)("Play inline"),onChange:u.playsInline,checked:i}),Object(Be.createElement)(Fe.SelectControl,{label:Object(Pe.__)("Preload"),value:l,onChange:b,options:Vb,hideCancelButton:!0}))},Rb=n(411);function Hb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ab(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hb(Object(n),!0).forEach((function(t){Object(ke.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Lb=["text/vtt"],Db=[{label:Object(Pe.__)("Subtitles"),value:"subtitles"},{label:Object(Pe.__)("Captions"),value:"captions"},{label:Object(Pe.__)("Descriptions"),value:"descriptions"},{label:Object(Pe.__)("Chapters"),value:"chapters"},{label:Object(Pe.__)("Metadata"),value:"metadata"}],Fb=Object(Be.createElement)(Fe.SVG,{width:"18",height:"14",viewBox:"0 0 18 14",role:"img",fill:"none"},Object(Be.createElement)(Fe.Rect,{x:"0.75",y:"0.75",width:"16.5",height:"12.5",rx:"1.25",stroke:"black",strokeWidth:"1.5",fill:"none"}),Object(Be.createElement)(Fe.Path,{d:"M3 7H15",stroke:"black",strokeWidth:"1.5"}),Object(Be.createElement)(Fe.Path,{d:"M3 10L15 10",stroke:"black",strokeWidth:"1.5"}));function Gb(e){var t,n=e.tracks,r=e.onEditPress;return t=0===n.length?Object(Be.createElement)("p",{className:"block-library-video-tracks-editor__tracks-informative-message"},Object(Pe.__)("Tracks can be subtitles, captions, chapters, or descriptions. They help make your content more accessible to a wider range of users.")):n.map((function(e,t){return Object(Be.createElement)("div",{key:t,className:"block-library-video-tracks-editor__track-list-track"},Object(Be.createElement)("span",null,e.label," "),Object(Be.createElement)(Fe.Button,{isTertiary:!0,onClick:function(){return r(t)},"aria-label":Object(Pe.sprintf)(
|
56 |
content:Object(Pe.__)("EXT. XANADU - FAINT DAWN - 1940 (MINIATURE)\nWindow, very small in the distance, illuminated.\nAll around this is an almost totally black screen. Now, as the camera moves slowly towards the window which is almost a postage stamp in the frame, other forms appear;")}},transforms:Ss,edit:function(e){var t=e.attributes,n=e.mergeBlocks,r=e.setAttributes,o=e.onRemove,c=t.content,a=Object(Ce.useBlockProps)();return Object(Be.createElement)(Ce.RichText,Object(De.a)({tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:c,onChange:function(e){r({content:e})},onRemove:o,"aria-label":Object(Pe.__)("Preformatted text"),placeholder:Object(Pe.__)("Write preformatted text…"),onMerge:n},a,{__unstablePastePlainText:!0}))},save:function(e){var t=e.attributes.content;return Object(Be.createElement)("pre",Ce.useBlockProps.save(),Object(Be.createElement)(Ce.RichText.Content,{value:t}))},merge:function(e,t){return{content:e.content+t.content}}},zs=Object(Be.createElement)(Te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Be.createElement)(Te.Path,{d:"M18 8H6c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-4c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v4zM4 4v1.5h16V4H4zm0 16h16v-1.5H4V20z"})),Ns="is-style-".concat("solid-color");function Ms(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ms(Object(n),!0).forEach((function(t){Object(ke.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ms(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Is={value:{type:"string",source:"html",selector:"blockquote",multiline:"p"},citation:{type:"string",source:"html",selector:"cite",default:""},mainColor:{type:"string"},customMainColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}};function Rs(e){if(e){var t=e.match(/border-color:([^;]+)[;]?/);return t&&t[1]?t[1]:void 0}}var Hs=[{attributes:Vs(Vs({},Is),{},{figureStyle:{source:"attribute",selector:"figure",attribute:"style"}}),save:function(e){var t,n,r=e.attributes,o=r.mainColor,c=r.customMainColor,a=r.textColor,i=r.customTextColor,l=r.value,s=r.citation,u=r.className,b=r.figureStyle;if(Object(Se.includes)(u,Ns)){var m=Object(Ce.getColorClassName)("background-color",o);t=Me()(Object(ke.a)({"has-background":m||c},m,m)),n={backgroundColor:m?void 0:c}}else c?n={borderColor:c}:o&&(n={borderColor:Rs(b)});var p=Object(Ce.getColorClassName)("color",a),d=(a||i)&&Me()("has-text-color",Object(ke.a)({},p,p)),g=p?void 0:{color:i};return Object(Be.createElement)("figure",{className:t,style:n},Object(Be.createElement)("blockquote",{className:d,style:g},Object(Be.createElement)(Ce.RichText.Content,{value:l,multiline:!0}),!Ce.RichText.isEmpty(s)&&Object(Be.createElement)(Ce.RichText.Content,{tagName:"cite",value:s})))},migrate:function(e){var t=e.className,n=e.figureStyle,r=e.mainColor,o=Object(Cn.a)(e,["className","figureStyle","mainColor"]);if(!Object(Se.includes)(t,Ns)&&r&&n){var c=Rs(n);if(c)return Vs(Vs({},o),{},{className:t,customMainColor:c})}return Vs({className:t,mainColor:r},o)}},{attributes:Is,save:function(e){var t,n,r=e.attributes,o=r.mainColor,c=r.customMainColor,a=r.textColor,i=r.customTextColor,l=r.value,s=r.citation,u=r.className;if(Object(Se.includes)(u,Ns))(t=Object(Ce.getColorClassName)("background-color",o))||(n={backgroundColor:c});else if(c)n={borderColor:c};else if(o){var b=Object(Se.get)(Object(nt.select)(Ce.store).getSettings(),["colors"],[]);n={borderColor:Object(Ce.getColorObjectByAttributeValues)(b,o).color}}var m=Object(Ce.getColorClassName)("color",a),p=a||i?Me()("has-text-color",Object(ke.a)({},m,m)):void 0,d=m?void 0:{color:i};return Object(Be.createElement)("figure",{className:t,style:n},Object(Be.createElement)("blockquote",{className:p,style:d},Object(Be.createElement)(Ce.RichText.Content,{value:l,multiline:!0}),!Ce.RichText.isEmpty(s)&&Object(Be.createElement)(Ce.RichText.Content,{tagName:"cite",value:s})))}},{attributes:Vs({},Is),save:function(e){var t=e.attributes,n=t.value,r=t.citation;return Object(Be.createElement)("blockquote",null,Object(Be.createElement)(Ce.RichText.Content,{value:n,multiline:!0}),!Ce.RichText.isEmpty(r)&&Object(Be.createElement)(Ce.RichText.Content,{tagName:"cite",value:r}))}},{attributes:Vs(Vs({},Is),{},{citation:{type:"string",source:"html",selector:"footer"},align:{type:"string",default:"none"}}),save:function(e){var t=e.attributes,n=t.value,r=t.citation,o=t.align;return Object(Be.createElement)("blockquote",{className:"align".concat(o)},Object(Be.createElement)(Ce.RichText.Content,{value:n,multiline:!0}),!Ce.RichText.isEmpty(r)&&Object(Be.createElement)(Ce.RichText.Content,{tagName:"footer",value:r}))}}];function As(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ls(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?As(Object(n),!0).forEach((function(t){Object(ke.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):As(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ds=Object(Ce.withColors)({mainColor:"background-color",textColor:"color"})((function(e){var t=e.colorUtils,n=e.textColor,r=e.attributes,o=r.value,c=r.citation,a=e.setAttributes,i=e.setTextColor,l=e.setMainColor,s=e.mainColor,u=e.isSelected,b=e.insertBlocksAfter,m=Object(Be.useRef)(!1),p=Object(Ce.useBlockProps)(),d=p.style,g=void 0===d?{}:d,h=p.className,O=Object(Se.includes)(h,Ns),f=Ls(Ls({},p),{},{className:Me()(h,Object(ke.a)({"has-background":O&&s.color},s.class,O&&s.class)),style:Ls(Ls({},g),{},O?{backgroundColor:s.color}:{borderColor:s.color})});return Object(Be.useEffect)((function(){s&&!O&&a({mainColor:void 0,customMainColor:s.color})}),[O,s]),Object(Be.createElement)(Be.Fragment,null,Object(Be.createElement)("figure",f,Object(Be.createElement)("blockquote",{style:{color:n.color},className:n.color&&Me()("has-text-color",Object(ke.a)({},n.class,n.class))},Object(Be.createElement)(Ce.RichText,{identifier:"value",multiline:!0,value:o,onChange:function(e){return a({value:e})},"aria-label":Object(Pe.__)("Pullquote text"),placeholder:// translators: placeholder text used for the quote
|
57 |
Object(Pe.__)("Write quote…"),textAlign:"center"}),(!Ce.RichText.isEmpty(c)||u)&&Object(Be.createElement)(Ce.RichText,{identifier:"citation",value:c,"aria-label":Object(Pe.__)("Pullquote citation text"),placeholder:// translators: placeholder text used for the citation
|
58 |
Object(Pe.__)("Write citation…"),onChange:function(e){return a({citation:e})},className:"wp-block-pullquote__citation",__unstableMobileNoFocusOnMount:!0,textAlign:"center",__unstableOnSplitAtEnd:function(){return b(Object(xe.createBlock)("core/paragraph"))}}))),"web"===Be.Platform.OS&&Object(Be.createElement)(Ce.InspectorControls,null,Object(Be.createElement)(Ce.PanelColorSettings,{title:Object(Pe.__)("Color settings"),colorSettings:[{value:s.color,onChange:function(e){var r=!n.color||m.current,o=O&&r;O?l(e):a({customMainColor:e}),o&&(e?(m.current=!0,i(t.getMostReadableColor(e))):m.current&&(m.current=!1,i()))},label:Object(Pe.__)("Main color")},{value:n.color,onChange:function(e){i(e),m.current=!1},label:Object(Pe.__)("Text color")}]},O&&Object(Be.createElement)(Ce.ContrastChecker,{textColor:n.color,backgroundColor:s.color,isLargeText:!1}))))}));function Fs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fs(Object(n),!0).forEach((function(t){Object(ke.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Us={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:function(e){return Object(xe.createBlock)("core/pullquote",{value:Object(Xn.toHTMLString)({value:Object(Xn.join)(e.map((function(e){var t=e.content;return Object(Xn.create)({html:t})})),"\u2028"),multilineTag:"p"}),anchor:e.anchor})}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.content,n=e.anchor;return Object(xe.createBlock)("core/pullquote",{value:"<p>".concat(t,"</p>"),anchor:n})}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.value,n=e.citation,r=[];return t&&"<p></p>"!==t&&r.push.apply(r,Object(we.a)(Object(Xn.split)(Object(Xn.create)({html:t,multilineTag:"p"}),"\u2028").map((function(e){return Object(xe.createBlock)("core/paragraph",{content:Object(Xn.toHTMLString)({value:e})})})))),n&&"<p></p>"!==n&&r.push(Object(xe.createBlock)("core/paragraph",{content:n})),0===r.length?Object(xe.createBlock)("core/paragraph",{content:""}):r}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.value,n=e.citation,r=Object(Cn.a)(e,["value","citation"]);if("<p></p>"===t)return Object(xe.createBlock)("core/heading",{content:n});var o=Object(Xn.split)(Object(Xn.create)({html:t,multilineTag:"p"}),"\u2028"),c=Object(xe.createBlock)("core/heading",{content:Object(Xn.toHTMLString)({value:o[0]})});if(!n&&1===o.length)return c;var a=o.slice(1);return[c,Object(xe.createBlock)("core/pullquote",Gs(Gs({},r),{},{citation:n,value:Object(Xn.toHTMLString)({value:a.length?Object(Xn.join)(o.slice(1),"\u2028"):Object(Xn.create)(),multilineTag:"p"})}))]}}]},qs={apiVersion:2,name:"core/pullquote",category:"text",attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p"},citation:{type:"string",source:"html",selector:"cite",default:""},mainColor:{type:"string"},customMainColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},supports:{anchor:!0,align:["left","right","wide","full"]},editorStyle:"wp-block-pullquote-editor",style:"wp-block-pullquote"},Ws=qs.name,Zs={title:Object(Pe._x)("Pullquote","block title"),description:Object(Pe.__)("Give special visual emphasis to a quote from your text."),icon:zs,example:{attributes:{value:"<p>"+// translators: Quote serving as example for the Pullquote block. Attributed to Matt Mullenweg.
|
59 |
+
Object(Pe.__)("One of the hardest things to do in technology is disrupt yourself.")+"</p>",citation:Object(Pe.__)("Matt Mullenweg")}},styles:[{name:"default",label:Object(Pe._x)("Default","block style"),isDefault:!0},{name:"solid-color",label:Object(Pe.__)("Solid color")}],transforms:Us,edit:Ds,save:function(e){var t,n,r=e.attributes,o=r.mainColor,c=r.customMainColor,a=r.textColor,i=r.customTextColor,l=r.value,s=r.citation,u=r.className;if(Object(Se.includes)(u,Ns)){var b=Object(Ce.getColorClassName)("background-color",o);t=Me()(Object(ke.a)({"has-background":b||c},b,b)),n={backgroundColor:b?void 0:c}}else c&&(n={borderColor:c});var m=Object(Ce.getColorClassName)("color",a),p=(a||i)&&Me()("has-text-color",Object(ke.a)({},m,m)),d=m?void 0:{color:i};return Object(Be.createElement)("figure",Ce.useBlockProps.save({className:t,style:n}),Object(Be.createElement)("blockquote",{className:p,style:d},Object(Be.createElement)(Ce.RichText.Content,{value:l,multiline:!0}),!Ce.RichText.isEmpty(s)&&Object(Be.createElement)(Ce.RichText.Content,{tagName:"cite",value:s})))},deprecated:Hs},Js=n(139),Qs=Object(Be.createElement)(Te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Be.createElement)(Te.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5h-7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7zm-5 5c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h1V9H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-1h-1.5v1z"})),Ks={apiVersion:2,name:"core/block",category:"reusable",attributes:{ref:{type:"number"}},supports:{customClassName:!1,html:!1,inserter:!1},editorStyle:"wp-block-editor"},$s=Ks.name,Ys={title:Object(Pe._x)("Reusable block","block title"),description:Object(Pe.__)("Create and save content to reuse across your site. Update the block, and the changes apply everywhere it’s used."),edit:function(e){var t=e.attributes.ref,n=e.clientId,r=Object(Ce.__experimentalUseNoRecursiveRenders)(t),o=Object(et.a)(r,2),c=o[0],a=o[1],i=Object(nt.useSelect)((function(e){var n=e(Ee.store).getEntityRecord("postType","wp_block",t),r=e(Ee.store).hasFinishedResolution("getEntityRecord",["postType","wp_block",t]);return{hasResolved:r,isMissing:r&&!n}}),[t,n]),l=i.isMissing,s=i.hasResolved,u=Object(nt.useDispatch)(Js.store).__experimentalConvertBlockToStatic,b=Object(Ee.useEntityBlockEditor)("postType","wp_block",{id:t}),m=Object(et.a)(b,3),p=m[0],d=m[1],g=m[2],h=Object(Ee.useEntityProp)("postType","wp_block","title",t),O=Object(et.a)(h,2),f=O[0],v=O[1],j=Object(Ce.__experimentalUseInnerBlocksProps)({},{value:p,onInput:d,onChange:g,renderAppender:null!=p&&p.length?void 0:Ce.InnerBlocks.ButtonBlockAppender}),y=Object(Ce.useBlockProps)();return c?Object(Be.createElement)("div",y,Object(Be.createElement)(Ce.Warning,null,Object(Pe.__)("Block cannot be rendered inside itself."))):l?Object(Be.createElement)("div",y,Object(Be.createElement)(Ce.Warning,null,Object(Pe.__)("Block has been deleted or is unavailable."))):s?Object(Be.createElement)(a,null,Object(Be.createElement)("div",y,Object(Be.createElement)(Ce.BlockControls,null,Object(Be.createElement)(Fe.ToolbarGroup,null,Object(Be.createElement)(Fe.ToolbarButton,{onClick:function(){return u(n)},label:Object(Pe.__)("Convert to regular blocks"),icon:Qs,showTooltip:!0}))),Object(Be.createElement)(Ce.InspectorControls,null,Object(Be.createElement)(Fe.PanelBody,null,Object(Be.createElement)(Fe.TextControl,{label:Object(Pe.__)("Name"),value:f,onChange:v}))),Object(Be.createElement)("div",{className:"block-library-block__reusable-block-container"},Object(Be.createElement)("div",j)))):Object(Be.createElement)("div",y,Object(Be.createElement)(Fe.Placeholder,null,Object(Be.createElement)(Fe.Spinner,null)))}},Xs=Object(Be.createElement)(Te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Be.createElement)(Te.Path,{d:"M5 10.2h-.8v1.5H5c1.9 0 3.8.8 5.1 2.1 1.4 1.4 2.1 3.2 2.1 5.1v.8h1.5V19c0-2.3-.9-4.5-2.6-6.2-1.6-1.6-3.8-2.6-6.1-2.6zm10.4-1.6C12.6 5.8 8.9 4.2 5 4.2h-.8v1.5H5c3.5 0 6.9 1.4 9.4 3.9s3.9 5.8 3.9 9.4v.8h1.5V19c0-3.9-1.6-7.6-4.4-10.4zM4 20h3v-3H4v3z"})),eu={apiVersion:2,name:"core/rss",category:"widgets",attributes:{columns:{type:"number",default:2},blockLayout:{type:"string",default:"list"},feedURL:{type:"string",default:""},itemsToShow:{type:"number",default:5},displayExcerpt:{type:"boolean",default:!1},displayAuthor:{type:"boolean",default:!1},displayDate:{type:"boolean",default:!1},excerptLength:{type:"number",default:55}},supports:{align:!0,html:!1},editorStyle:"wp-block-rss-editor",style:"wp-block-rss"},tu=eu.name,nu={title:Object(Pe._x)("RSS","block title"),description:Object(Pe.__)("Display entries from any RSS or Atom feed."),icon:Xs,keywords:[Object(Pe.__)("atom"),Object(Pe.__)("feed")],example:{attributes:{feedURL:"https://wordpress.org"}},edit:function(e){var t=e.attributes,n=e.setAttributes,r=Object(Be.useState)(!t.feedURL),o=Object(et.a)(r,2),c=o[0],a=o[1],i=t.blockLayout,l=t.columns,s=t.displayAuthor,u=t.displayDate,b=t.displayExcerpt,m=t.excerptLength,p=t.feedURL,d=t.itemsToShow;function g(e){return function(){var r=t[e];n(Object(ke.a)({},e,!r))}}var h=Object(Ce.useBlockProps)();if(c)return Object(Be.createElement)("div",h,Object(Be.createElement)(Fe.Placeholder,{icon:Xs,label:"RSS"},Object(Be.createElement)("form",{onSubmit:function(e){e.preventDefault(),p&&a(!1)},className:"wp-block-rss__placeholder-form"},Object(Be.createElement)(Fe.TextControl,{placeholder:Object(Pe.__)("Enter URL here…"),value:p,onChange:function(e){return n({feedURL:e})},className:"wp-block-rss__placeholder-input"}),Object(Be.createElement)(Fe.Button,{isPrimary:!0,type:"submit"},Object(Pe.__)("Use URL")))));var O=[{icon:kr.a,title:Object(Pe.__)("Edit RSS URL"),onClick:function(){return a(!0)}},{icon:xl,title:Object(Pe.__)("List view"),onClick:function(){return n({blockLayout:"list"})},isActive:"list"===i},{icon:Sl,title:Object(Pe.__)("Grid view"),onClick:function(){return n({blockLayout:"grid"})},isActive:"grid"===i}];return Object(Be.createElement)(Be.Fragment,null,Object(Be.createElement)(Ce.BlockControls,null,Object(Be.createElement)(Fe.ToolbarGroup,{controls:O})),Object(Be.createElement)(Ce.InspectorControls,null,Object(Be.createElement)(Fe.PanelBody,{title:Object(Pe.__)("RSS settings")},Object(Be.createElement)(Fe.RangeControl,{label:Object(Pe.__)("Number of items"),value:d,onChange:function(e){return n({itemsToShow:e})},min:1,max:10,required:!0}),Object(Be.createElement)(Fe.ToggleControl,{label:Object(Pe.__)("Display author"),checked:s,onChange:g("displayAuthor")}),Object(Be.createElement)(Fe.ToggleControl,{label:Object(Pe.__)("Display date"),checked:u,onChange:g("displayDate")}),Object(Be.createElement)(Fe.ToggleControl,{label:Object(Pe.__)("Display excerpt"),checked:b,onChange:g("displayExcerpt")}),b&&Object(Be.createElement)(Fe.RangeControl,{label:Object(Pe.__)("Max number of words in excerpt"),value:m,onChange:function(e){return n({excerptLength:e})},min:10,max:100,required:!0}),"grid"===i&&Object(Be.createElement)(Fe.RangeControl,{label:Object(Pe.__)("Columns"),value:l,onChange:function(e){return n({columns:e})},min:2,max:6,required:!0}))),Object(Be.createElement)("div",h,Object(Be.createElement)(Fe.Disabled,null,Object(Be.createElement)(Ur.a,{block:"core/rss",attributes:t}))))}},ru=Object(Be.createElement)(Fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Be.createElement)(Fe.Rect,{x:"7",y:"10",width:"10",height:"4",rx:"1",fill:"currentColor"})),ou=Object(Be.createElement)(Fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Be.createElement)(Fe.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"9.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",strokeWidth:"1.5",fill:"none"}),Object(Be.createElement)(Fe.Rect,{x:"16",y:"10",width:"4",height:"4",rx:"1",fill:"currentColor"})),cu=Object(Be.createElement)(Fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Be.createElement)(Fe.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"14.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",strokeWidth:"1.5",fill:"none"}),Object(Be.createElement)(Fe.Rect,{x:"14",y:"10",width:"4",height:"4",rx:"1",fill:"currentColor"})),au=Object(Be.createElement)(Fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Be.createElement)(Fe.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"14.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",fill:"none",strokeWidth:"1.5"})),iu=Object(Be.createElement)(Fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Be.createElement)(Fe.Rect,{x:"4.75",y:"7.75",width:"14.5",height:"8.5",rx:"1.25",stroke:"currentColor",fill:"none",strokeWidth:"1.5"}),Object(Be.createElement)(Fe.Rect,{x:"8",y:"11",width:"8",height:"2",fill:"currentColor"})),lu=Object(Be.createElement)(Fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Be.createElement)(Fe.Rect,{x:"4.75",y:"17.25",width:"5.5",height:"14.5",transform:"rotate(-90 4.75 17.25)",stroke:"currentColor",fill:"none",strokeWidth:"1.5"}),Object(Be.createElement)(Fe.Rect,{x:"4",y:"7",width:"10",height:"2",fill:"currentColor"})),su="web"===Be.Platform.OS,uu=[{value:"%",label:su?"%":Object(Pe.__)("Percentage (%)"),default:50},{value:"px",label:su?"px":Object(Pe.__)("Pixels (px)"),default:350}],bu=[{name:"default",isDefault:!0,attributes:{buttonText:Object(Pe.__)("Search"),label:Object(Pe.__)("Search")}}],mu={apiVersion:2,name:"core/search",category:"widgets",attributes:{label:{type:"string"},showLabel:{type:"boolean",default:!0},placeholder:{type:"string",default:""},width:{type:"number"},widthUnit:{type:"string"},buttonText:{type:"string"},buttonPosition:{type:"string",default:"button-outside"},buttonUseIcon:{type:"boolean",default:!1}},supports:{align:["left","center","right"],html:!1},editorStyle:"wp-block-search-editor",style:"wp-block-search"},pu=mu.name,du={title:Object(Pe._x)("Search","block title"),description:Object(Pe.__)("Help visitors find your content."),icon:$t.a,keywords:[Object(Pe.__)("find")],example:{},variations:bu,edit:function(e){var t=e.className,n=e.attributes,r=e.setAttributes,o=e.toggleSelection,c=e.isSelected,a=n.label,i=n.showLabel,l=n.placeholder,s=n.width,u=n.widthUnit,b=n.align,m=n.buttonText,p=n.buttonPosition,d=n.buttonUseIcon,g=Object(rt.useInstanceId)(Ce.__experimentalUnitControl),h="wp-block-search__width-".concat(g),O=function(){return Object(Be.createElement)("input",{className:"wp-block-search__input","aria-label":Object(Pe.__)("Optional placeholder text"),placeholder:l?void 0:Object(Pe.__)("Optional placeholder…"),value:l,onChange:function(e){return r({placeholder:e.target.value})}})},f=function(){return Object(Be.createElement)(Be.Fragment,null,d&&Object(Be.createElement)(Fe.Button,{icon:$t.a,className:"wp-block-search__button"}),!d&&Object(Be.createElement)(Ce.RichText,{className:"wp-block-search__button","aria-label":Object(Pe.__)("Button text"),placeholder:Object(Pe.__)("Add button text…"),withoutInteractiveFormatting:!0,value:m,onChange:function(e){return r({buttonText:e})}}))},v=Object(Be.createElement)(Be.Fragment,null,Object(Be.createElement)(Ce.BlockControls,null,Object(Be.createElement)(Fe.ToolbarGroup,null,Object(Be.createElement)(Fe.ToolbarButton,{title:Object(Pe.__)("Toggle search label"),icon:lu,onClick:function(){r({showLabel:!i})},className:i?"is-pressed":void 0}),Object(Be.createElement)(Fe.DropdownMenu,{icon:function(){switch(p){case"button-inside":return cu;case"button-outside":return ou;case"no-button":return au;case"button-only":return ru}}(),label:Object(Pe.__)("Change button position")},(function(e){var t=e.onClose;return Object(Be.createElement)(Fe.MenuGroup,{className:"wp-block-search__button-position-menu"},Object(Be.createElement)(Fe.MenuItem,{icon:au,onClick:function(){r({buttonPosition:"no-button"}),t()}},Object(Pe.__)("No Button")),Object(Be.createElement)(Fe.MenuItem,{icon:ou,onClick:function(){r({buttonPosition:"button-outside"}),t()}},Object(Pe.__)("Button Outside")),Object(Be.createElement)(Fe.MenuItem,{icon:cu,onClick:function(){r({buttonPosition:"button-inside"}),t()}},Object(Pe.__)("Button Inside")))})),"no-button"!==p&&Object(Be.createElement)(Fe.ToolbarButton,{title:Object(Pe.__)("Use button with icon"),icon:iu,onClick:function(){r({buttonUseIcon:!d})},className:d?"is-pressed":void 0}))),Object(Be.createElement)(Ce.InspectorControls,null,Object(Be.createElement)(Fe.PanelBody,{title:Object(Pe.__)("Display Settings")},Object(Be.createElement)(Fe.BaseControl,{label:Object(Pe.__)("Width"),id:h},Object(Be.createElement)(Ce.__experimentalUnitControl,{id:h,min:"".concat(220).concat("px"),onChange:function(e){var t="%"===u&&parseInt(e,10)>100?100:e;r({width:parseInt(t,10)})},onUnitChange:function(e){r({width:"%"===e?50:350,widthUnit:e})},style:{maxWidth:80},value:"".concat(s).concat(u),unit:u,units:uu}),Object(Be.createElement)(Fe.ButtonGroup,{className:"wp-block-search__components-button-group","aria-label":Object(Pe.__)("Percentage Width")},[25,50,75,100].map((function(e){return Object(Be.createElement)(Fe.Button,{key:e,isSmall:!0,isPrimary:"".concat(e,"%")==="".concat(s).concat(u),onClick:function(){return r({width:e,widthUnit:"%"})}},e,"%")}))))))),j=Object(Ce.useBlockProps)({className:Me()(t,"button-inside"===p?"wp-block-search__button-inside":void 0,"button-outside"===p?"wp-block-search__button-outside":void 0,"no-button"===p?"wp-block-search__no-button":void 0,"button-only"===p?"wp-block-search__button-only":void 0,d||"no-button"===p?void 0:"wp-block-search__text-button",d&&"no-button"!==p?"wp-block-search__icon-button":void 0)});return Object(Be.createElement)("div",j,v,i&&Object(Be.createElement)(Ce.RichText,{className:"wp-block-search__label","aria-label":Object(Pe.__)("Label text"),placeholder:Object(Pe.__)("Add label…"),withoutInteractiveFormatting:!0,value:a,onChange:function(e){return r({label:e})}}),Object(Be.createElement)(Fe.ResizableBox,{size:{width:"".concat(s).concat(u)},className:"wp-block-search__inside-wrapper",minWidth:220,enable:"button-only"===p?{}:{right:"right"!==b,left:"right"===b},onResizeStart:function(e,t,n){r({width:parseInt(n.offsetWidth,10),widthUnit:"px"}),o(!1)},onResizeStop:function(e,t,n,c){r({width:parseInt(s+c.width,10)}),o(!0)},showHandle:c},("button-inside"===p||"button-outside"===p)&&Object(Be.createElement)(Be.Fragment,null,O(),f()),"button-only"===p&&f(),"no-button"===p&&O()))}},gu=Object(Be.createElement)(Te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Be.createElement)(Te.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v3H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-3h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h3V13c0 1.1.9 2 2 2h2.5v3zm0-4.5H11c-.3 0-.5-.2-.5-.5v-2.5H13c.3 0 .5.2.5.5v2.5zm5-.5c0 .3-.2.5-.5.5h-3V11c0-1.1-.9-2-2-2h-2.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7z"}));function hu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ou(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hu(Object(n),!0).forEach((function(t){Object(ke.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var fu=function(e){if(e.tagName||(e=Ou(Ou({},e),{},{tagName:"div"})),!e.customTextColor&&!e.customBackgroundColor)return e;var t={color:{}};return e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),Ou(Ou({},Object(Se.omit)(e,["customTextColor","customBackgroundColor"])),{},{style:t})},vu=[{attributes:{tagName:{type:"string",default:"div"},templateLock:{type:"string"}},supports:{align:["wide","full"],anchor:!0,color:{gradients:!0,link:!0},spacing:{padding:!0},__experimentalBorder:{radius:!0}},save:function(e){var t=e.attributes.tagName;return Object(Be.createElement)(t,Ce.useBlockProps.save(),Object(Be.createElement)("div",{className:"wp-block-group__inner-container"},Object(Be.createElement)(Ce.InnerBlocks.Content,null)))}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:fu,save:function(e){var t=e.attributes,n=t.backgroundColor,r=t.customBackgroundColor,o=t.textColor,c=t.customTextColor,a=Object(Ce.getColorClassName)("background-color",n),i=Object(Ce.getColorClassName)("color",o),l=Me()(a,i,{"has-text-color":o||c,"has-background":n||r}),s={backgroundColor:a?void 0:r,color:i?void 0:c};return Object(Be.createElement)("div",{className:l,style:s},Object(Be.createElement)("div",{className:"wp-block-group__inner-container"},Object(Be.createElement)(Ce.InnerBlocks.Content,null)))}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},migrate:fu,supports:{align:["wide","full"],anchor:!0,html:!1},save:function(e){var t=e.attributes,n=t.backgroundColor,r=t.customBackgroundColor,o=t.textColor,c=t.customTextColor,a=Object(Ce.getColorClassName)("background-color",n),i=Object(Ce.getColorClassName)("color",o),l=Me()(a,{"has-text-color":o||c,"has-background":n||r}),s={backgroundColor:a?void 0:r,color:i?void 0:c};return Object(Be.createElement)("div",{className:l,style:s},Object(Be.createElement)("div",{className:"wp-block-group__inner-container"},Object(Be.createElement)(Ce.InnerBlocks.Content,null)))}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:fu,save:function(e){var t=e.attributes,n=t.backgroundColor,r=t.customBackgroundColor,o=Object(Ce.getColorClassName)("background-color",n),c=Me()(o,{"has-background":n||r}),a={backgroundColor:o?void 0:r};return Object(Be.createElement)("div",{className:c,style:a},Object(Be.createElement)(Ce.InnerBlocks.Content,null))}}],ju={apiVersion:2,name:"core/group",category:"design",attributes:{tagName:{type:"string",default:"div"},templateLock:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,color:{gradients:!0,link:!0},spacing:{padding:!0},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0},__experimentalLayout:!0},editorStyle:"wp-block-group-editor",style:"wp-block-group"},yu=ju.name,_u={title:Object(Pe._x)("Group","block title"),icon:gu,description:Object(Pe.__)("Combine blocks into a group."),keywords:[Object(Pe.__)("container"),Object(Pe.__)("wrapper"),Object(Pe.__)("row"),Object(Pe.__)("section")],example:{attributes:{style:{color:{text:"#000000",background:"#ffffff"}}},innerBlocks:[{name:"core/paragraph",attributes:{customTextColor:"#cf2e2e",fontSize:"large",content:Object(Pe.__)("One.")}},{name:"core/paragraph",attributes:{customTextColor:"#ff6900",fontSize:"large",content:Object(Pe.__)("Two.")}},{name:"core/paragraph",attributes:{customTextColor:"#fcb900",fontSize:"large",content:Object(Pe.__)("Three.")}},{name:"core/paragraph",attributes:{customTextColor:"#00d084",fontSize:"large",content:Object(Pe.__)("Four.")}},{name:"core/paragraph",attributes:{customTextColor:"#0693e3",fontSize:"large",content:Object(Pe.__)("Five.")}},{name:"core/paragraph",attributes:{customTextColor:"#9b51e0",fontSize:"large",content:Object(Pe.__)("Six.")}}]},transforms:{from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:function(e){if(1!==e.length||"core/group"!==e[0].name){var t=["wide","full"],n=e.reduce((function(e,n){var r=n.attributes.align;return t.indexOf(r)>t.indexOf(e)?r:e}),void 0),r=e.map((function(e){return Object(xe.createBlock)(e.name,e.attributes,e.innerBlocks)}));return Object(xe.createBlock)("core/group",{align:n},r)}}}]},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.clientId,o=Object(nt.useSelect)((function(e){var t,n=e(Ce.store),o=n.getBlock,c=n.getSettings,a=o(r);return{hasInnerBlocks:!(!a||!a.innerBlocks.length),themeSupportsLayout:null===(t=c())||void 0===t?void 0:t.supportsLayout}}),[r]),c=o.hasInnerBlocks,a=o.themeSupportsLayout,i=Object(Ce.__experimentalUseEditorFeature)("layout")||{},l=t.tagName,s=void 0===l?"div":l,u=t.templateLock,b=t.layout,m=void 0===b?{}:b,p=m&&m.inherit?i:m,d=p.contentSize,g=p.wideSize,h=d||g?["wide","full"]:["left","center","right"],O=Object(Ce.useBlockProps)(),f=Object(Ce.__experimentalUseInnerBlocksProps)(a?O:{className:"wp-block-group__inner-container"},{templateLock:u,renderAppender:c?void 0:Ce.InnerBlocks.ButtonBlockAppender,__experimentalLayout:{type:"default",alignments:a?h:void 0}});return Object(Be.createElement)(Be.Fragment,null,Object(Be.createElement)(Ce.InspectorAdvancedControls,null,Object(Be.createElement)(Fe.SelectControl,{label:Object(Pe.__)("HTML element"),options:[{label:Object(Pe.__)("Default (<div>)"),value:"div"},{label:"<header>",value:"header"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"},{label:"<aside>",value:"aside"},{label:"<footer>",value:"footer"}],value:s,onChange:function(e){return n({tagName:e})}})),a&&Object(Be.createElement)(s,f),!a&&Object(Be.createElement)(s,O,Object(Be.createElement)("div",f)))},save:function(e){var t=e.attributes.tagName;return Object(Be.createElement)(t,Ce.useBlockProps.save(),Object(Be.createElement)(Ce.InnerBlocks.Content,null))},deprecated:vu},wu=Object(Be.createElement)(Te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Be.createElement)(Te.Path,{d:"M20.2 7v4H3.8V7H2.2v9h1.6v-3.5h16.4V16h1.6V7z"})),ku=function(e){var t=e.color,n=e.setColor;return Object(Be.createElement)(Ce.InspectorControls,null,Object(Be.createElement)(Ce.PanelColorSettings,{title:Object(Pe.__)("Color settings"),colorSettings:[{value:t.color,onChange:n,label:Object(Pe.__)("Color")}]}))},Eu=Object(Ce.withColors)("color",{textColor:"color"})((function(e){var t=e.color,n=e.setColor,r=e.className;return Object(Be.createElement)(Be.Fragment,null,Object(Be.createElement)(Fe.HorizontalRule,Object(Ce.useBlockProps)({className:Me()(r,Object(ke.a)({"has-background":t.color},t.class,t.class)),style:{backgroundColor:t.color,color:t.color}})),Object(Be.createElement)(ku,{color:t,setColor:n}))})),Cu={from:[{type:"enter",regExp:/^-{3,}$/,transform:function(){return Object(xe.createBlock)("core/separator")}},{type:"raw",selector:"hr",schema:{hr:{}}}]},xu={apiVersion:2,name:"core/separator",category:"design",attributes:{color:{type:"string"},customColor:{type:"string"}},supports:{anchor:!0,align:["center","wide","full"]},editorStyle:"wp-block-separator-editor",style:"wp-block-separator"},Su=xu.name,Pu={title:Object(Pe._x)("Separator","block title"),description:Object(Pe.__)("Create a break between ideas or sections with a horizontal separator."),icon:wu,keywords:[Object(Pe.__)("horizontal-line"),"hr",Object(Pe.__)("divider")],example:{attributes:{customColor:"#065174",className:"is-style-wide"}},styles:[{name:"default",label:Object(Pe.__)("Default"),isDefault:!0},{name:"wide",label:Object(Pe.__)("Wide Line")},{name:"dots",label:Object(Pe.__)("Dots")}],transforms:Cu,edit:Eu,save:function(e){var t,n=e.attributes,r=n.color,o=n.customColor,c=Object(Ce.getColorClassName)("background-color",r),a=Object(Ce.getColorClassName)("color",r),i=Me()((t={"has-text-color has-background":r||o},Object(ke.a)(t,c,c),Object(ke.a)(t,a,a),t)),l={backgroundColor:c?void 0:o,color:a?void 0:o};return Object(Be.createElement)("hr",Ce.useBlockProps.save({className:i,style:l}))}},Bu=Object(Be.createElement)(Te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Be.createElement)(Te.Path,{d:"M16 4.2v1.5h2.5v12.5H16v1.5h4V4.2h-4zM4.2 19.8h4v-1.5H5.8V5.8h2.5V4.2h-4l-.1 15.6zm5.1-3.1l1.4.6 4-10-1.4-.6-4 10z"})),Tu=n(142),zu={from:[{type:"shortcode",tag:"[a-z][a-z0-9_-]*",attributes:{text:{type:"string",shortcode:function(e,t){var n=t.content;return Object(Tu.removep)(Object(Tu.autop)(n))}}},priority:20}]},Nu={apiVersion:2,name:"core/shortcode",category:"widgets",attributes:{text:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,html:!1},editorStyle:"wp-block-shortcode-editor"},Mu=Nu.name,Vu={title:Object(Pe._x)("Shortcode","block title"),description:Object(Pe.__)("Insert additional custom elements with a WordPress shortcode."),icon:Bu,transforms:zu,edit:function e(t){var n=t.attributes,r=t.setAttributes,o=Object(rt.useInstanceId)(e),c="blocks-shortcode-input-".concat(o);return Object(Be.createElement)("div",Object(Ce.useBlockProps)({className:"components-placeholder"}),Object(Be.createElement)("label",{htmlFor:c,className:"components-placeholder__label"},Object(Be.createElement)(Ri.a,{icon:Bu}),Object(Pe.__)("Shortcode")),Object(Be.createElement)(Ce.PlainText,{className:"blocks-shortcode__textarea",id:c,value:n.text,"aria-label":Object(Pe.__)("Shortcode text"),placeholder:Object(Pe.__)("Write shortcode here…"),onChange:function(e){return r({text:e})}}))},save:function(e){var t=e.attributes;return Object(Be.createElement)(Be.RawHTML,null,t.text)}},Iu=Object(Be.createElement)(Te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Be.createElement)(Te.Path,{d:"M12.5 4.2v1.6h4.7L5.8 17.2V12H4.2v7.8H12v-1.6H6.8L18.2 6.8v4.7h1.6V4.2z"})),Ru=Object(rt.compose)([Object(nt.withDispatch)((function(e){var t=e(Ce.store).toggleSelection;return{onResizeStart:function(){return t(!1)},onResizeStop:function(){return t(!0)}}})),rt.withInstanceId])((function(e){var t=e.attributes,n=e.isSelected,r=e.setAttributes,o=e.onResizeStart,c=e.onResizeStop,a=e.context.orientation,i=Object(Be.useState)(!1),l=Object(et.a)(i,2),s=l[0],u=l[1],b=t.height,m=t.width,p=function(e){r({height:e})},d=function(e){r({width:e})},g=function(){o.apply(void 0,arguments),u(!0)};return Object(Be.useEffect)((function(){"horizontal"!==a||m||(d(72),p(0))}),[]),Object(Be.createElement)(Be.Fragment,null,Object(Be.createElement)(Te.View,Object(Ce.useBlockProps)(),"horizontal"===a?Object(Be.createElement)(Fe.ResizableBox,{className:Me()("block-library-spacer__resize-container","resize-horizontal",{"is-selected":n}),size:{width:m,height:24},minWidth:1,enable:{top:!1,right:!0,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:g,onResizeStop:function(e,t,n,r){c();var o=Math.min(parseInt(m+r.width,10),500);d(o),u(!1)},showHandle:n,__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:"x",position:"corner",isVisible:s}}):Object(Be.createElement)(Fe.ResizableBox,{className:Me()("block-library-spacer__resize-container",{"is-selected":n}),size:{height:b},minHeight:1,enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:g,onResizeStop:function(e,t,n,r){c();var o=Math.min(parseInt(b+r.height,10),500);p(o),u(!1)},showHandle:n,__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:"y",position:"bottom",isVisible:s}})),Object(Be.createElement)(Ce.InspectorControls,null,Object(Be.createElement)(Fe.PanelBody,{title:Object(Pe.__)("Spacer settings")},"horizontal"===a&&Object(Be.createElement)(Fe.RangeControl,{label:Object(Pe.__)("Width in pixels"),min:1,max:Math.max(500,m),value:m,onChange:d}),"horizontal"!==a&&Object(Be.createElement)(Fe.RangeControl,{label:Object(Pe.__)("Height in pixels"),min:1,max:Math.max(500,b),value:b,onChange:p}))))})),Hu={apiVersion:2,name:"core/spacer",category:"design",attributes:{height:{type:"number",default:100},width:{type:"number"}},usesContext:["orientation"],supports:{anchor:!0},editorStyle:"wp-block-spacer-editor",style:"wp-block-spacer"},Au=Hu.name,Lu={title:Object(Pe._x)("Spacer","block title"),description:Object(Pe.__)("Add white space between blocks and customize its height."),icon:Iu,edit:Ru,save:function(e){var t=e.attributes;return Object(Be.createElement)("div",Ce.useBlockProps.save({style:{height:t.height,width:t.width},"aria-hidden":!0}))}},Du=Object(Be.createElement)(Te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Be.createElement)(Te.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v3.5h-15V5c0-.3.2-.5.5-.5zm8 5.5h6.5v3.5H13V10zm-1.5 3.5h-7V10h7v3.5zm-7 5.5v-4h7v4.5H5c-.3 0-.5-.2-.5-.5zm14.5.5h-6V15h6.5v4c0 .3-.2.5-.5.5z"})),Fu=[{attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}}}}}},supports:{align:!0},save:function(e){var t=e.attributes,n=t.hasFixedLayout,r=t.head,o=t.body,c=t.foot,a=t.backgroundColor;if(!r.length&&!o.length&&!c.length)return null;var i=Object(Ce.getColorClassName)("background-color",a),l=Me()(i,{"has-fixed-layout":n,"has-background":!!i}),s=function(e){var t=e.type,n=e.rows;if(!n.length)return null;var r="t".concat(t);return Object(Be.createElement)(r,null,n.map((function(e,t){var n=e.cells;return Object(Be.createElement)("tr",{key:t},n.map((function(e,t){var n=e.content,r=e.tag,o=e.scope;return Object(Be.createElement)(Ce.RichText.Content,{tagName:r,value:n,key:t,scope:"th"===r?o:void 0})})))})))};return Object(Be.createElement)("table",{className:l},Object(Be.createElement)(s,{type:"head",rows:r}),Object(Be.createElement)(s,{type:"body",rows:o}),Object(Be.createElement)(s,{type:"foot",rows:c}))}}],Gu=n(406),Uu=n(407),qu=n(408),Wu=Object(Be.createElement)(Te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(Be.createElement)(Te.Path,{d:"M6.656 6.464h2.88v2.88h1.408v-2.88h2.88V5.12h-2.88V2.24H9.536v2.88h-2.88zM0 17.92V0h20.48v17.92H0zm7.68-2.56h5.12v-3.84H7.68v3.84zm-6.4 0H6.4v-3.84H1.28v3.84zM19.2 1.28H1.28v9.024H19.2V1.28zm0 10.24h-5.12v3.84h5.12v-3.84zM6.656 6.464h2.88v2.88h1.408v-2.88h2.88V5.12h-2.88V2.24H9.536v2.88h-2.88zM0 17.92V0h20.48v17.92H0zm7.68-2.56h5.12v-3.84H7.68v3.84zm-6.4 0H6.4v-3.84H1.28v3.84zM19.2 1.28H1.28v9.024H19.2V1.28zm0 10.24h-5.12v3.84h5.12v-3.84z"})),Zu=Object(Be.createElement)(Te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(Be.createElement)(Te.Path,{d:"M13.824 10.176h-2.88v-2.88H9.536v2.88h-2.88v1.344h2.88v2.88h1.408v-2.88h2.88zM0 17.92V0h20.48v17.92H0zM6.4 1.28H1.28v3.84H6.4V1.28zm6.4 0H7.68v3.84h5.12V1.28zm6.4 0h-5.12v3.84h5.12V1.28zm0 5.056H1.28v9.024H19.2V6.336z"})),Ju=Object(Be.createElement)(Te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(Be.createElement)(Te.Path,{d:"M17.728 11.456L14.592 8.32l3.2-3.2-1.536-1.536-3.2 3.2L9.92 3.648 8.384 5.12l3.2 3.2-3.264 3.264 1.536 1.536 3.264-3.264 3.136 3.136 1.472-1.536zM0 17.92V0h20.48v17.92H0zm19.2-6.4h-.448l-1.28-1.28H19.2V6.4h-1.792l1.28-1.28h.512V1.28H1.28v3.84h6.208l1.28 1.28H1.28v3.84h7.424l-1.28 1.28H1.28v3.84H19.2v-3.84z"})),Qu=Object(Be.createElement)(Te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(Be.createElement)(Te.Path,{d:"M6.4 3.776v3.648H2.752v1.792H6.4v3.648h1.728V9.216h3.712V7.424H8.128V3.776zM0 17.92V0h20.48v17.92H0zM12.8 1.28H1.28v14.08H12.8V1.28zm6.4 0h-5.12v3.84h5.12V1.28zm0 5.12h-5.12v3.84h5.12V6.4zm0 5.12h-5.12v3.84h5.12v-3.84z"})),Ku=Object(Be.createElement)(Te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(Be.createElement)(Te.Path,{d:"M14.08 12.864V9.216h3.648V7.424H14.08V3.776h-1.728v3.648H8.64v1.792h3.712v3.648zM0 17.92V0h20.48v17.92H0zM6.4 1.28H1.28v3.84H6.4V1.28zm0 5.12H1.28v3.84H6.4V6.4zm0 5.12H1.28v3.84H6.4v-3.84zM19.2 1.28H7.68v14.08H19.2V1.28z"})),$u=Object(Be.createElement)(Te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(Be.createElement)(Te.Path,{d:"M6.4 9.98L7.68 8.7v-.256L6.4 7.164V9.98zm6.4-1.532l1.28-1.28V9.92L12.8 8.64v-.192zm7.68 9.472V0H0v17.92h20.48zm-1.28-2.56h-5.12v-1.024l-.256.256-1.024-1.024v1.792H7.68v-1.792l-1.024 1.024-.256-.256v1.024H1.28V1.28H6.4v2.368l.704-.704.576.576V1.216h5.12V3.52l.96-.96.32.32V1.216h5.12V15.36zm-5.76-2.112l-3.136-3.136-3.264 3.264-1.536-1.536 3.264-3.264L5.632 5.44l1.536-1.536 3.136 3.136 3.2-3.2 1.536 1.536-3.2 3.2 3.136 3.136-1.536 1.536z"})),Yu=Object(Be.createElement)(Te.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Be.createElement)(Te.Path,{d:"M4 6v11.5h16V6H4zm1.5 1.5h6V11h-6V7.5zm0 8.5v-3.5h6V16h-6zm13 0H13v-3.5h5.5V16zM13 11V7.5h5.5V11H13z"}));function Xu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function eb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xu(Object(n),!0).forEach((function(t){Object(ke.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var tb=["align"];function nb(e,t,n){if(!t)return e;var r=Object(Se.pick)(e,["head","body","foot"]),o=t.sectionName,c=t.rowIndex;return Object(Se.mapValues)(r,(function(e,r){return o&&o!==r?e:e.map((function(e,o){return c&&c!==o?e:{cells:e.cells.map((function(e,c){return function(e,t){if(!e||!t)return!1;switch(t.type){case"column":return"column"===t.type&&e.columnIndex===t.columnIndex;case"cell":return"cell"===t.type&&e.sectionName===t.sectionName&&e.columnIndex===t.columnIndex&&e.rowIndex===t.rowIndex}}({sectionName:r,columnIndex:c,rowIndex:o},t)?n(e):e}))}}))}))}function rb(e,t){var n=t.sectionName,r=t.rowIndex,o=t.columnCount,c=function(e){return ab(e.head)?ab(e.body)?ab(e.foot)?void 0:e.foot[0]:e.body[0]:e.head[0]}(e),a=void 0===o?Object(Se.get)(c,["cells","length"]):o;return a?Object(ke.a)({},n,[].concat(Object(we.a)(e[n].slice(0,r)),[{cells:Object(Se.times)(a,(function(e){var t=Object(Se.get)(c,["cells",e],{});return eb(eb({},Object(Se.pick)(t,tb)),{},{content:"",tag:"head"===n?"th":"td"})}))}],Object(we.a)(e[n].slice(r)))):e}function ob(e,t){var n=t.columnIndex,r=Object(Se.pick)(e,["head","body","foot"]);return Object(Se.mapValues)(r,(function(e,t){return ab(e)?e:e.map((function(e){return ib(e)||e.cells.length<n?e:{cells:[].concat(Object(we.a)(e.cells.slice(0,n)),[{content:"",tag:"head"===t?"th":"td"}],Object(we.a)(e.cells.slice(n)))}}))}))}function cb(e,t){return ab(e[t])?rb(e,{sectionName:t,rowIndex:0,columnCount:Object(Se.get)(e,["body",0,"cells","length"],1)}):Object(ke.a)({},t,[])}function ab(e){return!e||!e.length||Object(Se.every)(e,ib)}function ib(e){return!(e.cells&&e.cells.length)}function lb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lb(Object(n),!0).forEach((function(t){Object(ke.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ub=[{color:"#f3f4f5",name:"Subtle light gray",slug:"subtle-light-gray"},{color:"#e9fbe5",name:"Subtle pale green",slug:"subtle-pale-green"},{color:"#e7f5fe",name:"Subtle pale blue",slug:"subtle-pale-blue"},{color:"#fcf0ef",name:"Subtle pale pink",slug:"subtle-pale-pink"}],bb=[{icon:Gu.a,title:Object(Pe.__)("Align column left"),align:"left"},{icon:Uu.a,title:Object(Pe.__)("Align column center"),align:"center"},{icon:qu.a,title:Object(Pe.__)("Align column right"),align:"right"}],mb=Object(Ce.createCustomColorsHOC)(ub),pb={head:Object(Pe.__)("Header cell text"),body:Object(Pe.__)("Body cell text"),foot:Object(Pe.__)("Footer cell text")},db={head:Object(Pe.__)("Header label"),foot:Object(Pe.__)("Footer label")};function gb(e){var t=e.name,n=Object(Cn.a)(e,["name"]),r="t".concat(t);return Object(Be.createElement)(r,n)}var hb=mb("backgroundColor")((function(e){var t=e.attributes,n=e.backgroundColor,r=e.setBackgroundColor,o=e.setAttributes,c=e.insertBlocksAfter,a=e.isSelected,i=t.hasFixedLayout,l=t.caption,s=t.head,u=t.foot,b=Object(Be.useState)(2),m=Object(et.a)(b,2),p=m[0],d=m[1],g=Object(Be.useState)(2),h=Object(et.a)(g,2),O=h[0],f=h[1],v=Object(Be.useState)(),j=Object(et.a)(v,2),y=j[0],_=j[1];function w(e){y&&o(nb(t,y,(function(t){return sb(sb({},t),{},{content:e})})))}function k(e){if(y){var n=y.sectionName,r=y.rowIndex+e;o(rb(t,{sectionName:n,rowIndex:r})),_({sectionName:n,rowIndex:r,columnIndex:0,type:"cell"})}}function E(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(y){var n=y.columnIndex,r=n+e;o(ob(t,{columnIndex:r})),_({rowIndex:0,columnIndex:r,type:"cell"})}}Object(Be.useEffect)((function(){a||_()}),[a]);var C=["head","body","foot"].filter((function(e){return!ab(t[e])})),x=[{icon:Wu,title:Object(Pe.__)("Insert row before"),isDisabled:!y,onClick:function(){k(0)}},{icon:Zu,title:Object(Pe.__)("Insert row after"),isDisabled:!y,onClick:function(){k(1)}},{icon:Ju,title:Object(Pe.__)("Delete row"),isDisabled:!y,onClick:function(){if(y){var e=y.sectionName,n=y.rowIndex;_(),o(function(e,t){var n=t.sectionName,r=t.rowIndex;return Object(ke.a)({},n,e[n].filter((function(e,t){return t!==r})))}(t,{sectionName:e,rowIndex:n}))}}},{icon:Qu,title:Object(Pe.__)("Insert column before"),isDisabled:!y,onClick:function(){E(0)}},{icon:Ku,title:Object(Pe.__)("Insert column after"),isDisabled:!y,onClick:function(){E(1)}},{icon:$u,title:Object(Pe.__)("Delete column"),isDisabled:!y,onClick:function(){if(y){var e=y.sectionName,n=y.columnIndex;_(),o(function(e,t){var n=t.columnIndex,r=Object(Se.pick)(e,["head","body","foot"]);return Object(Se.mapValues)(r,(function(e){return ab(e)?e:e.map((function(e){return{cells:e.cells.length>=n?e.cells.filter((function(e,t){return t!==n})):e.cells}})).filter((function(e){return e.cells.length}))}))}(t,{sectionName:e,columnIndex:n}))}}}],S=["head","body","foot"].map((function(e){return Object(Be.createElement)(gb,{name:e,key:e},t[e].map((function(t,n){var r=t.cells;return Object(Be.createElement)("tr",{key:n},r.map((function(t,r){var o=t.content,c=t.tag,a=t.scope,i=t.align;return Object(Be.createElement)(Ce.RichText,{tagName:c,key:r,className:Me()(Object(ke.a)({},"has-text-align-".concat(i),i),"wp-block-table__cell-content"),scope:"th"===c?a:void 0,value:o,onChange:w,unstableOnFocus:function(){_({sectionName:e,rowIndex:n,columnIndex:r,type:"cell"})},"aria-label":pb[e],placeholder:db[e]})})))})))})),P=!C.length;return Object(Be.createElement)("figure",Object(Ce.useBlockProps)(),!P&&Object(Be.createElement)(Ce.BlockControls,null,Object(Be.createElement)(Fe.ToolbarGroup,null,Object(Be.createElement)(Fe.ToolbarItem,null,(function(e){return Object(Be.createElement)(Fe.DropdownMenu,{hasArrowIndicator:!0,icon:Yu,toggleProps:e,label:Object(Pe.__)("Edit table"),controls:x})}))),Object(Be.createElement)(Ce.AlignmentToolbar,{label:Object(Pe.__)("Change column alignment"),alignmentControls:bb,value:function(){var e,n,r,o,c;if(y)return e=t,"align",r=(n=y).sectionName,o=n.rowIndex,c=n.columnIndex,Object(Se.get)(e,[r,o,"cells",c,"align"])}(),onChange:function(e){return function(e){if(y){var n={type:"column",columnIndex:y.columnIndex},r=nb(t,n,(function(t){return sb(sb({},t),{},{align:e})}));o(r)}}(e)}})),!P&&Object(Be.createElement)(Ce.InspectorControls,null,Object(Be.createElement)(Fe.PanelBody,{title:Object(Pe.__)("Table settings"),className:"blocks-table-settings"},Object(Be.createElement)(Fe.ToggleControl,{label:Object(Pe.__)("Fixed width table cells"),checked:!!i,onChange:function(){o({hasFixedLayout:!i})}}),Object(Be.createElement)(Fe.ToggleControl,{label:Object(Pe.__)("Header section"),checked:!(!s||!s.length),onChange:function(){o(cb(t,"head"))}}),Object(Be.createElement)(Fe.ToggleControl,{label:Object(Pe.__)("Footer section"),checked:!(!u||!u.length),onChange:function(){o(cb(t,"foot"))}})),Object(Be.createElement)(Ce.PanelColorSettings,{title:Object(Pe.__)("Color settings"),initialOpen:!1,colorSettings:[{value:n.color,onChange:r,label:Object(Pe.__)("Background color"),disableCustomColors:!0,colors:ub}]})),!P&&Object(Be.createElement)("table",{className:Me()(n.class,{"has-fixed-layout":i,"has-background":!!n.color})},S),!P&&Object(Be.createElement)(Ce.RichText,{tagName:"figcaption","aria-label":Object(Pe.__)("Table caption text"),placeholder:Object(Pe.__)("Write caption…"),value:l,onChange:function(e){return o({caption:e})},unstableOnFocus:function(){return _()},__unstableOnSplitAtEnd:function(){return c(Object(xe.createBlock)("core/paragraph"))}}),P&&Object(Be.createElement)(Fe.Placeholder,{label:Object(Pe.__)("Table"),icon:Object(Be.createElement)(Ce.BlockIcon,{icon:Du,showColors:!0}),instructions:Object(Pe.__)("Insert a table for sharing data.")},Object(Be.createElement)("form",{className:"blocks-table__placeholder-form",onSubmit:function(e){var t,n,r;e.preventDefault(),o((n=(t={rowCount:parseInt(p,10)||2,columnCount:parseInt(O,10)||2}).rowCount,r=t.columnCount,{body:Object(Se.times)(n,(function(){return{cells:Object(Se.times)(r,(function(){return{content:"",tag:"td"}}))}}))}))}},Object(Be.createElement)(Fe.TextControl,{type:"number",label:Object(Pe.__)("Column count"),value:O,onChange:function(e){f(e)},min:"1",className:"blocks-table__placeholder-input"}),Object(Be.createElement)(Fe.TextControl,{type:"number",label:Object(Pe.__)("Row count"),value:p,onChange:function(e){d(e)},min:"1",className:"blocks-table__placeholder-input"}),Object(Be.createElement)(Fe.Button,{className:"blocks-table__placeholder-button",isPrimary:!0,type:"submit"},Object(Pe.__)("Create Table")))))})),Ob=function(e){var t=e.phrasingContentSchema;return{tr:{allowEmpty:!0,children:{th:{allowEmpty:!0,children:t,attributes:["scope"]},td:{allowEmpty:!0,children:t}}}}},fb={from:[{type:"raw",selector:"table",schema:function(e){return{table:{children:{thead:{allowEmpty:!0,children:Ob(e)},tfoot:{allowEmpty:!0,children:Ob(e)},tbody:{allowEmpty:!0,children:Ob(e)}}}}}}]},vb={apiVersion:2,name:"core/table",category:"text",attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption",default:""},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}}},supports:{anchor:!0,align:!0,__experimentalSelector:".wp-block-table > table"},editorStyle:"wp-block-table-editor",style:"wp-block-table"},jb=vb.name,yb={title:Object(Pe._x)("Table","block title"),description:Object(Pe.__)("Insert a table — perfect for sharing charts and data."),icon:Du,example:{attributes:{head:[{cells:[{content:Object(Pe.__)("Version"),tag:"th"},{content:Object(Pe.__)("Jazz Musician"),tag:"th"},{content:Object(Pe.__)("Release Date"),tag:"th"}]}],body:[{cells:[{content:"5.2",tag:"td"},{content:"Jaco Pastorius",tag:"td"},{content:Object(Pe.__)("May 7, 2019"),tag:"td"}]},{cells:[{content:"5.1",tag:"td"},{content:"Betty Carter",tag:"td"},{content:Object(Pe.__)("February 21, 2019"),tag:"td"}]},{cells:[{content:"5.0",tag:"td"},{content:"Bebo Valdés",tag:"td"},{content:Object(Pe.__)("December 6, 2018"),tag:"td"}]}]}},styles:[{name:"regular",label:Object(Pe._x)("Default","block style"),isDefault:!0},{name:"stripes",label:Object(Pe.__)("Stripes")}],transforms:fb,edit:hb,save:function(e){var t=e.attributes,n=t.hasFixedLayout,r=t.head,o=t.body,c=t.foot,a=t.backgroundColor,i=t.caption;if(!r.length&&!o.length&&!c.length)return null;var l=Object(Ce.getColorClassName)("background-color",a),s=Me()(l,{"has-fixed-layout":n,"has-background":!!l}),u=!Ce.RichText.isEmpty(i),b=function(e){var t=e.type,n=e.rows;if(!n.length)return null;var r="t".concat(t);return Object(Be.createElement)(r,null,n.map((function(e,t){var n=e.cells;return Object(Be.createElement)("tr",{key:t},n.map((function(e,t){var n=e.content,r=e.tag,o=e.scope,c=e.align,a=Me()(Object(ke.a)({},"has-text-align-".concat(c),c));return Object(Be.createElement)(Ce.RichText.Content,{className:a||void 0,"data-align":c,tagName:r,value:n,key:t,scope:"th"===r?o:void 0})})))})))};return Object(Be.createElement)("figure",Ce.useBlockProps.save(),Object(Be.createElement)("table",{className:""===s?void 0:s},Object(Be.createElement)(b,{type:"head",rows:r}),Object(Be.createElement)(b,{type:"body",rows:o}),Object(Be.createElement)(b,{type:"foot",rows:c})),u&&Object(Be.createElement)(Ce.RichText.Content,{tagName:"figcaption",value:i}))},deprecated:Fu},_b=n(38),wb=n.n(_b),kb={to:[{type:"block",blocks:["core/columns"],transform:function(e){var t=e.className,n=e.columns,r=e.content,o=e.width;return Object(xe.createBlock)("core/columns",{align:"wide"===o||"full"===o?o:void 0,className:t,columns:n},r.map((function(e){var t=e.children;return Object(xe.createBlock)("core/column",{},[Object(xe.createBlock)("core/paragraph",{content:t})])})))}}]},Eb={apiVersion:2,name:"core/text-columns",icon:"columns",category:"design",attributes:{content:{type:"array",source:"query",selector:"p",query:{children:{type:"string",source:"html"}},default:[{},{}]},columns:{type:"number",default:2},width:{type:"string"}},supports:{inserter:!1},editorStyle:"wp-block-text-columns-editor",style:"wp-block-text-columns"},Cb=Eb.name,xb={title:Object(Pe._x)("Text Columns (deprecated)","block title"),description:Object(Pe.__)("This block is deprecated. Please use the Columns block instead."),transforms:kb,getEditWrapperProps:function(e){var t=e.width;if("wide"===t||"full"===t)return{"data-align":t}},edit:function(e){var t=e.attributes,n=e.setAttributes,r=t.width,o=t.content,c=t.columns;return wb()("The Text Columns block",{since:"5.3",alternative:"the Columns block"}),Object(Be.createElement)(Be.Fragment,null,Object(Be.createElement)(Ce.BlockControls,null,Object(Be.createElement)(Ce.BlockAlignmentToolbar,{value:r,onChange:function(e){return n({width:e})},controls:["center","wide","full"]})),Object(Be.createElement)(Ce.InspectorControls,null,Object(Be.createElement)(Fe.PanelBody,null,Object(Be.createElement)(Fe.RangeControl,{label:Object(Pe.__)("Columns"),value:c,onChange:function(e){return n({columns:e})},min:2,max:4,required:!0}))),Object(Be.createElement)("div",Object(Ce.useBlockProps)({className:"align".concat(r," columns-").concat(c)}),Object(Se.times)(c,(function(e){return Object(Be.createElement)("div",{className:"wp-block-column",key:"column-".concat(e)},Object(Be.createElement)(Ce.RichText,{tagName:"p",value:Object(Se.get)(o,[e,"children"]),onChange:function(t){n({content:[].concat(Object(we.a)(o.slice(0,e)),[{children:t}],Object(we.a)(o.slice(e+1)))})},"aria-label":Object(Pe.sprintf)(// translators: %d: column index (starting with 1)
|
60 |
Object(Pe.__)("Column %d text"),e+1),placeholder:Object(Pe.__)("New Column")}))}))))},save:function(e){var t=e.attributes,n=t.width,r=t.content,o=t.columns;return Object(Be.createElement)("div",Ce.useBlockProps.save({className:"align".concat(n," columns-").concat(o)}),Object(Se.times)(o,(function(e){return Object(Be.createElement)("div",{className:"wp-block-column",key:"column-".concat(e)},Object(Be.createElement)(Ce.RichText.Content,{tagName:"p",value:Object(Se.get)(r,[e,"children"])}))})))}},Sb=Object(Be.createElement)(Te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Be.createElement)(Te.Path,{d:"M17.8 2l-.9.3c-.1 0-3.6 1-5.2 2.1C10 5.5 9.3 6.5 8.9 7.1c-.6.9-1.7 4.7-1.7 6.3l-.9 2.3c-.2.4 0 .8.4 1 .1 0 .2.1.3.1.3 0 .6-.2.7-.5l.6-1.5c.3 0 .7-.1 1.2-.2.7-.1 1.4-.3 2.2-.5.8-.2 1.6-.5 2.4-.8.7-.3 1.4-.7 1.9-1.2s.8-1.2 1-1.9c.2-.7.3-1.6.4-2.4.1-.8.1-1.7.2-2.5 0-.8.1-1.5.2-2.1V2zm-1.9 5.6c-.1.8-.2 1.5-.3 2.1-.2.6-.4 1-.6 1.3-.3.3-.8.6-1.4.9-.7.3-1.4.5-2.2.8-.6.2-1.3.3-1.8.4L15 7.5c.3-.3.6-.7 1-1.1 0 .4 0 .8-.1 1.2zM6 20h8v-1.5H6V20z"})),Pb=[{attributes:{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}},save:function(e){var t=e.attributes,n=t.textAlign,r=t.content;return Object(Be.createElement)(Ce.RichText.Content,{tagName:"pre",style:{textAlign:n},value:r})}}],Bb={from:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(xe.createBlock)("core/verse",e)}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(xe.createBlock)("core/paragraph",e)}}]},Tb={apiVersion:2,name:"core/verse",category:"text",attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0},textAlign:{type:"string"}},supports:{anchor:!0,__experimentalFontFamily:!0,fontSize:!0,spacing:{padding:!0}},style:"wp-block-verse",editorStyle:"wp-block-verse-editor"},zb=Tb.name,Nb={title:Object(Pe._x)("Verse","block title"),description:Object(Pe.__)("Insert poetry. Use special spacing formats. Or quote song lyrics."),icon:Sb,example:{attributes:{
|
61 |
// translators: Sample content for the Verse block. Can be replaced with a more locale-adequate work.
|
62 |
content:Object(Pe.__)("WHAT was he doing, the great god Pan,\n\tDown in the reeds by the river?\nSpreading ruin and scattering ban,\nSplashing and paddling with hoofs of a goat,\nAnd breaking the golden lilies afloat\n With the dragon-fly on the river.")}},keywords:[Object(Pe.__)("poetry"),Object(Pe.__)("poem")],transforms:Bb,deprecated:Pb,merge:function(e,t){return{content:e.content+t.content}},edit:function(e){var t=e.attributes,n=e.setAttributes,r=e.mergeBlocks,o=e.onRemove,c=t.textAlign,a=t.content,i=Object(Ce.useBlockProps)({className:Me()(Object(ke.a)({},"has-text-align-".concat(c),c))});return Object(Be.createElement)(Be.Fragment,null,Object(Be.createElement)(Ce.BlockControls,null,Object(Be.createElement)(Ce.AlignmentToolbar,{value:c,onChange:function(e){n({textAlign:e})}})),Object(Be.createElement)(Ce.RichText,Object(De.a)({tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:a,onChange:function(e){n({content:e})},"aria-label":Object(Pe.__)("Verse text"),placeholder:Object(Pe.__)("Write verse…"),onRemove:o,onMerge:r,textAlign:c},i,{__unstablePastePlainText:!0})))},save:function(e){var t=e.attributes,n=t.textAlign,r=t.content,o=Me()(Object(ke.a)({},"has-text-align-".concat(n),n));return Object(Be.createElement)("pre",Ce.useBlockProps.save({className:o}),Object(Be.createElement)(Ce.RichText.Content,{value:r}))}},Mb=Object(Be.createElement)(Te.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Be.createElement)(Te.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"})),Vb=[{value:"auto",label:Object(Pe.__)("Auto")},{value:"metadata",label:Object(Pe.__)("Metadata")},{value:"none",label:Object(Pe.__)("None")}],Ib=function(e){var t=e.setAttributes,n=e.attributes,r=n.autoplay,o=n.controls,c=n.loop,a=n.muted,i=n.playsInline,l=n.preload,s=Object(Be.useCallback)((function(e){return e?Object(Pe.__)("Note: Autoplaying videos may cause usability issues for some visitors."):null}),[]),u=Object(Be.useMemo)((function(){var e=function(e){return function(n){t(Object(ke.a)({},e,n))}};return{autoplay:e("autoplay"),loop:e("loop"),muted:e("muted"),controls:e("controls"),playsInline:e("playsInline")}}),[]),b=Object(Be.useCallback)((function(e){t({preload:e})}),[]);return Object(Be.createElement)(Be.Fragment,null,Object(Be.createElement)(Fe.ToggleControl,{label:Object(Pe.__)("Autoplay"),onChange:u.autoplay,checked:r,help:s}),Object(Be.createElement)(Fe.ToggleControl,{label:Object(Pe.__)("Loop"),onChange:u.loop,checked:c}),Object(Be.createElement)(Fe.ToggleControl,{label:Object(Pe.__)("Muted"),onChange:u.muted,checked:a}),Object(Be.createElement)(Fe.ToggleControl,{label:Object(Pe.__)("Playback controls"),onChange:u.controls,checked:o}),Object(Be.createElement)(Fe.ToggleControl,{label:Object(Pe.__)("Play inline"),onChange:u.playsInline,checked:i}),Object(Be.createElement)(Fe.SelectControl,{label:Object(Pe.__)("Preload"),value:l,onChange:b,options:Vb,hideCancelButton:!0}))},Rb=n(411);function Hb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ab(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hb(Object(n),!0).forEach((function(t){Object(ke.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Lb=["text/vtt"],Db=[{label:Object(Pe.__)("Subtitles"),value:"subtitles"},{label:Object(Pe.__)("Captions"),value:"captions"},{label:Object(Pe.__)("Descriptions"),value:"descriptions"},{label:Object(Pe.__)("Chapters"),value:"chapters"},{label:Object(Pe.__)("Metadata"),value:"metadata"}],Fb=Object(Be.createElement)(Fe.SVG,{width:"18",height:"14",viewBox:"0 0 18 14",role:"img",fill:"none"},Object(Be.createElement)(Fe.Rect,{x:"0.75",y:"0.75",width:"16.5",height:"12.5",rx:"1.25",stroke:"black",strokeWidth:"1.5",fill:"none"}),Object(Be.createElement)(Fe.Path,{d:"M3 7H15",stroke:"black",strokeWidth:"1.5"}),Object(Be.createElement)(Fe.Path,{d:"M3 10L15 10",stroke:"black",strokeWidth:"1.5"}));function Gb(e){var t,n=e.tracks,r=e.onEditPress;return t=0===n.length?Object(Be.createElement)("p",{className:"block-library-video-tracks-editor__tracks-informative-message"},Object(Pe.__)("Tracks can be subtitles, captions, chapters, or descriptions. They help make your content more accessible to a wider range of users.")):n.map((function(e,t){return Object(Be.createElement)("div",{key:t,className:"block-library-video-tracks-editor__track-list-track"},Object(Be.createElement)("span",null,e.label," "),Object(Be.createElement)(Fe.Button,{isTertiary:!0,onClick:function(){return r(t)},"aria-label":Object(Pe.sprintf)(
|
changelog.txt
CHANGED
@@ -1,228 +1,237 @@
|
|
1 |
== Changelog ==
|
2 |
|
3 |
-
= 10.3.
|
4 |
|
5 |
-
### Enhancements
|
6 |
-
|
7 |
-
- Add `since` versions to the deprecated features. ([30072](https://github.com/WordPress/gutenberg/pull/30072))
|
8 |
-
- Blocks: Add "theme" category and better present Template Parts in the inserter. ([30020](https://github.com/WordPress/gutenberg/pull/30020))
|
9 |
-
- Block Editor:
|
10 |
-
- Add drag handle to select mode. ([28815](https://github.com/WordPress/gutenberg/pull/28815))
|
11 |
-
- Improve block inserter keyboard navigation. ([26938](https://github.com/WordPress/gutenberg/pull/26938))
|
12 |
-
- Open admin sidebar menu over editor on small screens. ([29955](https://github.com/WordPress/gutenberg/pull/29955))
|
13 |
-
- Block Library:
|
14 |
-
- Cover: Allow drag and drop media replacement. ([29813](https://github.com/WordPress/gutenberg/pull/29813))
|
15 |
-
- File: Make the editor markup match the frontend. ([30148](https://github.com/WordPress/gutenberg/pull/30148))
|
16 |
-
- Social Links: Improve selected state of empty block. ([29756](https://github.com/WordPress/gutenberg/pull/29756))
|
17 |
-
- Standardize the groups in the block toolbar. ([30012](https://github.com/WordPress/gutenberg/pull/30012), [29247](https://github.com/WordPress/gutenberg/pull/29247), [29863](https://github.com/WordPress/gutenberg/pull/29863))
|
18 |
-
- Verse block: Add support for the padding to the verse block. ([29820](https://github.com/WordPress/gutenberg/pull/29820))
|
19 |
-
- Components: Allow multiple words in the autocomplete phrase matcher. ([29939](https://github.com/WordPress/gutenberg/pull/29939))
|
20 |
-
- Gutenberg Plugin: Improved cache bust without `filemtime` for assets. ([29775](https://github.com/WordPress/gutenberg/pull/29775))
|
21 |
-
- Icons: Hint the lowercase icon by 0.15px to correct the font weight appearance. ([29754](https://github.com/WordPress/gutenberg/pull/29754))
|
22 |
-
- Media: Use image default size from settings. ([29966](https://github.com/WordPress/gutenberg/pull/29966))
|
23 |
-
|
24 |
-
### New APIs
|
25 |
-
|
26 |
-
- Compose: Add new `useCopyToClipboard` hook. ([29643](https://github.com/WordPress/gutenberg/pull/29643))
|
27 |
-
- Deprecated: Add `since` option to `deprecated` function. ([30017](https://github.com/WordPress/gutenberg/pull/30017))
|
28 |
-
|
29 |
### Bug Fixes
|
30 |
|
31 |
-
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
-
|
41 |
-
-
|
42 |
-
|
43 |
-
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
-
|
48 |
-
|
49 |
-
|
50 |
-
-
|
51 |
-
-
|
52 |
-
- Components:
|
53 |
-
|
54 |
-
|
55 |
-
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
-
|
60 |
-
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
-
|
66 |
-
-
|
67 |
-
-
|
68 |
-
-
|
69 |
-
-
|
70 |
-
- Fix
|
71 |
-
-
|
72 |
-
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
-
|
77 |
-
|
78 |
-
|
79 |
-
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
-
|
84 |
-
-
|
85 |
-
|
86 |
-
-
|
87 |
-
-
|
88 |
-
|
89 |
-
|
90 |
-
-
|
91 |
-
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
-
|
97 |
-
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
- Fix
|
104 |
-
- Fix
|
105 |
-
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
-
|
111 |
-
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
-
|
118 |
-
-
|
119 |
-
|
120 |
-
|
121 |
-
-
|
122 |
-
-
|
123 |
-
-
|
124 |
-
-
|
125 |
-
-
|
126 |
-
-
|
127 |
-
-
|
128 |
-
-
|
129 |
-
-
|
130 |
-
- Add
|
131 |
-
-
|
132 |
-
-
|
133 |
-
-
|
134 |
-
-
|
135 |
-
-
|
136 |
-
- Fix
|
137 |
-
- Fix
|
138 |
-
- Fix
|
139 |
-
- Fix
|
140 |
-
- Fix
|
141 |
-
- Fix
|
142 |
-
- Fix
|
143 |
-
- Fix
|
144 |
-
-
|
145 |
-
-
|
146 |
-
-
|
147 |
-
-
|
148 |
-
-
|
149 |
-
-
|
150 |
-
-
|
151 |
-
-
|
152 |
-
-
|
153 |
-
-
|
154 |
-
|
155 |
-
-
|
156 |
-
-
|
157 |
-
-
|
158 |
-
-
|
159 |
-
-
|
160 |
-
-
|
161 |
-
-
|
162 |
-
|
163 |
-
-
|
164 |
-
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
-
|
169 |
-
-
|
170 |
-
- Fix
|
171 |
-
- Fix
|
172 |
-
- Fix
|
173 |
-
- Fix
|
174 |
-
-
|
175 |
-
-
|
176 |
-
-
|
177 |
-
-
|
178 |
-
-
|
179 |
-
-
|
180 |
-
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
-
|
185 |
-
-
|
186 |
-
-
|
187 |
-
-
|
188 |
-
-
|
189 |
-
-
|
190 |
-
-
|
191 |
-
-
|
192 |
-
|
193 |
-
-
|
194 |
-
-
|
195 |
-
-
|
196 |
-
-
|
197 |
-
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
-
|
202 |
-
-
|
203 |
-
-
|
204 |
-
-
|
205 |
-
-
|
206 |
-
-
|
207 |
-
-
|
208 |
-
-
|
209 |
-
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
-
|
219 |
-
-
|
220 |
-
-
|
221 |
-
-
|
222 |
-
-
|
223 |
-
-
|
224 |
-
-
|
225 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
226 |
|
227 |
|
228 |
= 10.2.1 =
|
1 |
== Changelog ==
|
2 |
|
3 |
+
= 10.3.1 =
|
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
### Bug Fixes
|
6 |
|
7 |
+
- Restore color preset CSS variables for custom links for themes with the `experimental-link-color` support flag enabled. ([30452](https://github.com/WordPress/gutenberg/pull/30452))
|
8 |
+
- Restore the inner `<div />` of the Group block in the editor for classic themes. ([30453](https://github.com/WordPress/gutenberg/pull/30453))
|
9 |
+
- Fix content loss for Group block when used with lots of nesting. ([30460](https://github.com/WordPress/gutenberg/pull/30460))
|
10 |
+
|
11 |
+
|
12 |
+
= 10.3.0 =
|
13 |
+
|
14 |
+
### Enhancements
|
15 |
+
|
16 |
+
- Add `since` versions to the deprecated features. ([30072](https://github.com/WordPress/gutenberg/pull/30072))
|
17 |
+
- Blocks: Add "theme" category and better present Template Parts in the inserter. ([30020](https://github.com/WordPress/gutenberg/pull/30020))
|
18 |
+
- Block Editor:
|
19 |
+
- Add drag handle to select mode. ([28815](https://github.com/WordPress/gutenberg/pull/28815))
|
20 |
+
- Improve block inserter keyboard navigation. ([26938](https://github.com/WordPress/gutenberg/pull/26938))
|
21 |
+
- Open admin sidebar menu over editor on small screens. ([29955](https://github.com/WordPress/gutenberg/pull/29955))
|
22 |
+
- Block Library:
|
23 |
+
- Cover: Allow drag and drop media replacement. ([29813](https://github.com/WordPress/gutenberg/pull/29813))
|
24 |
+
- File: Make the editor markup match the frontend. ([30148](https://github.com/WordPress/gutenberg/pull/30148))
|
25 |
+
- Social Links: Improve selected state of empty block. ([29756](https://github.com/WordPress/gutenberg/pull/29756))
|
26 |
+
- Standardize the groups in the block toolbar. ([30012](https://github.com/WordPress/gutenberg/pull/30012), [29247](https://github.com/WordPress/gutenberg/pull/29247), [29863](https://github.com/WordPress/gutenberg/pull/29863))
|
27 |
+
- Verse block: Add support for the padding to the verse block. ([29820](https://github.com/WordPress/gutenberg/pull/29820))
|
28 |
+
- Components: Allow multiple words in the autocomplete phrase matcher. ([29939](https://github.com/WordPress/gutenberg/pull/29939))
|
29 |
+
- Gutenberg Plugin: Improved cache bust without `filemtime` for assets. ([29775](https://github.com/WordPress/gutenberg/pull/29775))
|
30 |
+
- Icons: Hint the lowercase icon by 0.15px to correct the font weight appearance. ([29754](https://github.com/WordPress/gutenberg/pull/29754))
|
31 |
+
- Media: Use image default size from settings. ([29966](https://github.com/WordPress/gutenberg/pull/29966))
|
32 |
+
|
33 |
+
### New APIs
|
34 |
+
|
35 |
+
- Compose: Add new `useCopyToClipboard` hook. ([29643](https://github.com/WordPress/gutenberg/pull/29643))
|
36 |
+
- Deprecated: Add `since` option to `deprecated` function. ([30017](https://github.com/WordPress/gutenberg/pull/30017))
|
37 |
+
|
38 |
+
### Bug Fixes
|
39 |
+
|
40 |
+
- Block Editor:
|
41 |
+
- Ensure that uncategorized block types are properly handled. ([30125](https://github.com/WordPress/gutenberg/pull/30125))
|
42 |
+
- Fix mover width/size regressions. ([29889](https://github.com/WordPress/gutenberg/pull/29889))
|
43 |
+
- Fix navigation mode focus. ([30126](https://github.com/WordPress/gutenberg/pull/30126))
|
44 |
+
- Fix regression with multi select style. ([30128](https://github.com/WordPress/gutenberg/pull/30128))
|
45 |
+
- Fix the issue with block style preview when example missing. ([29894](https://github.com/WordPress/gutenberg/pull/29894))
|
46 |
+
- Fix sibling block inserter displaying at end of block list. ([29920](https://github.com/WordPress/gutenberg/pull/29920))
|
47 |
+
- Revert showing empty paragraphs on fronted. ([29809](https://github.com/WordPress/gutenberg/pull/29809))
|
48 |
+
- Show the active block variation's icon in Select mode. ([30143](https://github.com/WordPress/gutenberg/pull/30143))
|
49 |
+
- Blocks: Adding onRemove event to verse block. ([30104](https://github.com/WordPress/gutenberg/pull/30104))
|
50 |
+
- Block Library:
|
51 |
+
- Cover: Improve disabled media buttons check for placeholder. ([29858](https://github.com/WordPress/gutenberg/pull/29858))
|
52 |
+
- Embed:
|
53 |
+
- Fix overzealous aspect ratio scaling for embeds. ([29510](https://github.com/WordPress/gutenberg/pull/29510))
|
54 |
+
- Embed: Fix select on focus. ([29431](https://github.com/WordPress/gutenberg/pull/29431))
|
55 |
+
- Gallery: Fix gallery item clicking. ([29860](https://github.com/WordPress/gutenberg/pull/29860))
|
56 |
+
- Image:
|
57 |
+
- Fix block reset sizes on external URL change. ([26879](https://github.com/WordPress/gutenberg/pull/26879))
|
58 |
+
- Fix undo step with temporary URL. ([30114](https://github.com/WordPress/gutenberg/pull/30114))
|
59 |
+
- Social Link: More accessible labels. ([29659](https://github.com/WordPress/gutenberg/pull/29659))
|
60 |
+
- Video: Fix kind attribute missing subtitle value in video text track. ([30040](https://github.com/WordPress/gutenberg/pull/30040))
|
61 |
+
- Components:
|
62 |
+
- Don't display Guide's page control if there is only one page. ([29629](https://github.com/WordPress/gutenberg/pull/29629))
|
63 |
+
- Prevent PanelBody title from being overlapped by arrow. ([29914](https://github.com/WordPress/gutenberg/pull/29914))
|
64 |
+
- Compose: Call `useMergeRefs` when dependency changes after ref change. ([29892](https://github.com/WordPress/gutenberg/pull/29892))
|
65 |
+
- Copy:
|
66 |
+
- Restore dot at the end of a sentence. ([29897](https://github.com/WordPress/gutenberg/pull/29897))
|
67 |
+
- Update the layout alignment description for better clarity. ([29974](https://github.com/WordPress/gutenberg/pull/29974))
|
68 |
+
- Gutenberg Plugin: Update "requires at least" value to 5.6. ([29646](https://github.com/WordPress/gutenberg/pull/29646))
|
69 |
+
- E2E Tests: Stabilize randomly failing tests in trunk. ([29836](https://github.com/WordPress/gutenberg/pull/29836))
|
70 |
+
- Navigation Component: Align item text to the left/right. ([30083](https://github.com/WordPress/gutenberg/pull/30083))
|
71 |
+
- Post Editor:
|
72 |
+
- Fix post editor layout regression. ([30093](https://github.com/WordPress/gutenberg/pull/30093))
|
73 |
+
- Keep post publishing popover open when a date is clicked. ([29738](https://github.com/WordPress/gutenberg/pull/29738), [29893](https://github.com/WordPress/gutenberg/pull/29893))
|
74 |
+
- RichText: Fix inline display warning. ([30193](https://github.com/WordPress/gutenberg/pull/30193))
|
75 |
+
- Themes: Restore the default editor font for the non FSE themes. ([30080](https://github.com/WordPress/gutenberg/pull/30080))
|
76 |
+
- Raw Handling: Fix pasting special spaces. ([28077](https://github.com/WordPress/gutenberg/pull/28077))
|
77 |
+
- Storybook: Fix block editor shortcuts. ([29750](https://github.com/WordPress/gutenberg/pull/29750))
|
78 |
+
- Writing Flow:
|
79 |
+
- Fix `caretRangeFromPoint`. ([30031](https://github.com/WordPress/gutenberg/pull/30031))
|
80 |
+
- Fix tab behavior. ([30000](https://github.com/WordPress/gutenberg/pull/30000))
|
81 |
+
- Remove arrow nav limitations. ([30057](https://github.com/WordPress/gutenberg/pull/30057))
|
82 |
+
|
83 |
+
### Performance
|
84 |
+
|
85 |
+
- Block Editor:
|
86 |
+
- Optimise multi-selection select calls. ([30140](https://github.com/WordPress/gutenberg/pull/30140))
|
87 |
+
- When inserting Block Patterns they get parsed when the browser is idle. ([29444](https://github.com/WordPress/gutenberg/pull/29444))
|
88 |
+
- Block Library: Use early return in the Button block to optimize save.js. ([29781](https://github.com/WordPress/gutenberg/pull/29781))
|
89 |
+
|
90 |
+
### Experiments
|
91 |
+
|
92 |
+
- Components:
|
93 |
+
- Add Heading. ([29592](https://github.com/WordPress/gutenberg/pull/29592))
|
94 |
+
- Button: Add a default type of button. ([29900](https://github.com/WordPress/gutenberg/pull/29900))
|
95 |
+
- Customizer: Add widgets customize inspector. ([29755](https://github.com/WordPress/gutenberg/pull/29755))
|
96 |
+
- Full-Site Editing:
|
97 |
+
- Add a layout configuration to the Group block and `theme.json` and make alignments declarative. ([29335](https://github.com/WordPress/gutenberg/pull/29335))
|
98 |
+
- Add client ID trees selectors in block navigation. ([29902](https://github.com/WordPress/gutenberg/pull/29902))
|
99 |
+
- Add description field to Post Content block. ([29971](https://github.com/WordPress/gutenberg/pull/29971))
|
100 |
+
- Add Log In/Out block. ([29766](https://github.com/WordPress/gutenberg/pull/29766))
|
101 |
+
- Add Query Title block and Archive Title variation. ([29428](https://github.com/WordPress/gutenberg/pull/29428))
|
102 |
+
- Add Term Description block. ([29613](https://github.com/WordPress/gutenberg/pull/29613))
|
103 |
+
- Add preload_paths filter for widgets screen and full site editing. ([28701](https://github.com/WordPress/gutenberg/pull/28701))
|
104 |
+
- Add support for experimental layout in Post Content block. ([29982](https://github.com/WordPress/gutenberg/pull/29982))
|
105 |
+
- Add layout support to the Template Part block. ([30077](https://github.com/WordPress/gutenberg/pull/30077))
|
106 |
+
- Add link color option in Site Title block. ([29924](https://github.com/WordPress/gutenberg/pull/29924))
|
107 |
+
- Always use full screen mode. ([29489](https://github.com/WordPress/gutenberg/pull/29489))
|
108 |
+
- Automatically open the sidebar to the appropriate menu. ([26964](https://github.com/WordPress/gutenberg/pull/26964), [30098](https://github.com/WordPress/gutenberg/pull/30098))
|
109 |
+
- Close navigation panel after template selection. ([29956](https://github.com/WordPress/gutenberg/pull/29956))
|
110 |
+
- Expose Template Part block variations to the Inserter. ([30032](https://github.com/WordPress/gutenberg/pull/30032))
|
111 |
+
- First step towards hybrid themes – fallback to PHP templates. ([29026](https://github.com/WordPress/gutenberg/pull/29026))
|
112 |
+
- Fix block toolbar from overlapping navigation panel. ([29918](https://github.com/WordPress/gutenberg/pull/29918))
|
113 |
+
- Fix different markup in the editor and on the frontend for the Site Title block. ([29021](https://github.com/WordPress/gutenberg/pull/29021))
|
114 |
+
- Fix edge case where the default layout could be undefined. ([30024](https://github.com/WordPress/gutenberg/pull/30024))
|
115 |
+
- Fix persistence of Preferences in site editor. ([30019](https://github.com/WordPress/gutenberg/pull/30019))
|
116 |
+
- Fix Post Comment Count block attribute. ([30056](https://github.com/WordPress/gutenberg/pull/30056))
|
117 |
+
- Fix Query Loop block margin. ([30078](https://github.com/WordPress/gutenberg/pull/30078))
|
118 |
+
- Fix Template Part alignments behavior. ([30099](https://github.com/WordPress/gutenberg/pull/30099))
|
119 |
+
- Fix template saving issue after switching themes. ([29842](https://github.com/WordPress/gutenberg/pull/29842))
|
120 |
+
- Polish site button focus/hover styles in post and site editor. ([29888](https://github.com/WordPress/gutenberg/pull/29888))
|
121 |
+
- Prevent navigation panel focus when hidden. ([29600](https://github.com/WordPress/gutenberg/pull/29600))
|
122 |
+
- Refactor the Post Content block. ([29898](https://github.com/WordPress/gutenberg/pull/29898))
|
123 |
+
- Remove alignments from the root level of the site editor. ([30079](https://github.com/WordPress/gutenberg/pull/30079))
|
124 |
+
- Remove header toolbar transition in reduced-motion mode. ([29764](https://github.com/WordPress/gutenberg/pull/29764))
|
125 |
+
- Remove unused QueryProvider in Query block. ([29947](https://github.com/WordPress/gutenberg/pull/29947))
|
126 |
+
- Template Part: Identify template parts in error messages. ([28398](https://github.com/WordPress/gutenberg/pull/28398))
|
127 |
+
- Update Post Content icon, unuse justify. ([29867](https://github.com/WordPress/gutenberg/pull/29867))
|
128 |
+
- Update Post Title markup so that editor and front match. ([29824](https://github.com/WordPress/gutenberg/pull/29824))
|
129 |
+
- Update template details popover. ([29439](https://github.com/WordPress/gutenberg/pull/29439))
|
130 |
+
- Global Styles:
|
131 |
+
- Allow themes to use any styles in the `theme.json` whether or not the block supports it. ([29941](https://github.com/WordPress/gutenberg/pull/29941))
|
132 |
+
- Better CSS reset style loader order. ([30034](https://github.com/WordPress/gutenberg/pull/30034))
|
133 |
+
- Block Supports: Allow skipping serialization of border. ([30035](https://github.com/WordPress/gutenberg/pull/30035))
|
134 |
+
- Optimistically continue with empty data when user data for global styles is not a JSON. ([30088](https://github.com/WordPress/gutenberg/pull/30088))
|
135 |
+
- Remove kebab-case camelCase transformations. ([29986](https://github.com/WordPress/gutenberg/pull/29986))
|
136 |
+
- Skip `null` when translating settings. ([30171](https://github.com/WordPress/gutenberg/pull/30171))
|
137 |
+
- Translate custom templates in `theme.json`. ([29828](https://github.com/WordPress/gutenberg/pull/29828))
|
138 |
+
- Navigation Editor and Block:
|
139 |
+
- Add line-height to Navigation block. ([30010](https://github.com/WordPress/gutenberg/pull/30010))
|
140 |
+
- Add padding to Navigation Link placeholder. ([29832](https://github.com/WordPress/gutenberg/pull/29832))
|
141 |
+
- Allow vertical inserter in the Navigation block. ([28833](https://github.com/WordPress/gutenberg/pull/28833))
|
142 |
+
- Consistently provide fallback variations for the block. ([30117](https://github.com/WordPress/gutenberg/pull/30117))
|
143 |
+
- Enable list view. ([29936](https://github.com/WordPress/gutenberg/pull/29936))
|
144 |
+
- Fix flyout background color in Page List block. ([29932](https://github.com/WordPress/gutenberg/pull/29932))
|
145 |
+
- Fix link items in navigation screen. ([30009](https://github.com/WordPress/gutenberg/pull/30009))
|
146 |
+
- Fix minor styling issues with nav editor. ([30129](https://github.com/WordPress/gutenberg/pull/30129))
|
147 |
+
- Fix Navigation block styles in the navigation editor. ([29748](https://github.com/WordPress/gutenberg/pull/29748))
|
148 |
+
- Fix navigation editor link search suggestions. ([29707](https://github.com/WordPress/gutenberg/pull/29707))
|
149 |
+
- Fix navigation editor saving. ([29749](https://github.com/WordPress/gutenberg/pull/29749))
|
150 |
+
- Fix navigation screen font. ([30085](https://github.com/WordPress/gutenberg/pull/30085))
|
151 |
+
- Fix navigation screen inserter horizontal scrollbar. ([29930](https://github.com/WordPress/gutenberg/pull/29930))
|
152 |
+
- Fix navigation editor block toolbar not visible on small screens. ([29967](https://github.com/WordPress/gutenberg/pull/29967))
|
153 |
+
- Fix padding issues with nav screen. ([30183](https://github.com/WordPress/gutenberg/pull/30183))
|
154 |
+
- Fix paragraph margin specificity inside layout containers. ([30038](https://github.com/WordPress/gutenberg/pull/30038))
|
155 |
+
- Fix popover anchor in Navigation Link block. ([30173](https://github.com/WordPress/gutenberg/pull/30173))
|
156 |
+
- Improve default label of location select. ([29908](https://github.com/WordPress/gutenberg/pull/29908))
|
157 |
+
- Increase importance of submenus staying open. ([30169](https://github.com/WordPress/gutenberg/pull/30169))
|
158 |
+
- Keep submenus open on select in the editor. ([29713](https://github.com/WordPress/gutenberg/pull/29713))
|
159 |
+
- Match editor markup to rendered in Navigation Link block. ([29935](https://github.com/WordPress/gutenberg/pull/29935))
|
160 |
+
- Move theme location settings to navigation editor sidebar. ([29458](https://github.com/WordPress/gutenberg/pull/29458))
|
161 |
+
- Navigation Menu: Show submenus only on select in the editor. ([29869](https://github.com/WordPress/gutenberg/pull/29869))
|
162 |
+
- Polish navigation screen. ([29926](https://github.com/WordPress/gutenberg/pull/29926), [30168](https://github.com/WordPress/gutenberg/pull/30168))
|
163 |
+
- Simplify focus style in Site Icon block. ([29872](https://github.com/WordPress/gutenberg/pull/29872))
|
164 |
+
- Show all menus in manage locations. ([29906](https://github.com/WordPress/gutenberg/pull/29906))
|
165 |
+
- Unset font weight and text decoration inheritance in Navigation block. ([30011](https://github.com/WordPress/gutenberg/pull/30011))
|
166 |
+
- Use the interface package for the navigation screen. ([30013](https://github.com/WordPress/gutenberg/pull/30013))
|
167 |
+
- Visual and design improvements for List View. ([29769](https://github.com/WordPress/gutenberg/pull/29769))
|
168 |
+
- Widgets Editor:
|
169 |
+
- Fix warning when widgets block editor is disabled. ([30318](https://github.com/WordPress/gutenberg/pull/30318))
|
170 |
+
- Iterate on widgets REST API endpoints. ([29649](https://github.com/WordPress/gutenberg/pull/29649))
|
171 |
+
- Load block editor assets in the navigation and widget editors. ([30076](https://github.com/WordPress/gutenberg/pull/30076))
|
172 |
+
- Unify menu item styles for Navigation Block and Page List blocks. ([29975](https://github.com/WordPress/gutenberg/pull/29975))
|
173 |
+
- Use a default sans serif font for the widget screen. ([30084](https://github.com/WordPress/gutenberg/pull/30084))
|
174 |
+
|
175 |
+
### Documentation
|
176 |
+
|
177 |
+
- Block Editor: Fix `renderAppender` documentation. ([29925](https://github.com/WordPress/gutenberg/pull/29925))
|
178 |
+
- Handbook:
|
179 |
+
- Fix broken image link in the documentation main README. ([29857](https://github.com/WordPress/gutenberg/pull/29857))
|
180 |
+
- Fix broken link to developer resources in README.md. (#29795). ([29796](https://github.com/WordPress/gutenberg/pull/29796))
|
181 |
+
- Fix link to native-mobile.md in pull request template. ([29923](https://github.com/WordPress/gutenberg/pull/29923))
|
182 |
+
- Fix rebase error. ([29753](https://github.com/WordPress/gutenberg/pull/29753))
|
183 |
+
- Remove superfluous sentence in create block tutorial. ([30062](https://github.com/WordPress/gutenberg/pull/30062))
|
184 |
+
- Update block design principles with a new section on how to group controls. ([29816](https://github.com/WordPress/gutenberg/pull/29816))
|
185 |
+
- Update broken link to Getting Started for the React Native based Mobile Gutenberg. ([30162](https://github.com/WordPress/gutenberg/pull/30162))
|
186 |
+
- Update the quick view image on the documentation homepage. ([29808](https://github.com/WordPress/gutenberg/pull/29808))
|
187 |
+
- Editor: Clarify the purpose of the `@wordpress/editor` package. ([30136](https://github.com/WordPress/gutenberg/pull/30136))
|
188 |
+
- I18n: Replace dead link in README.md. ([29699](https://github.com/WordPress/gutenberg/pull/29699))
|
189 |
+
- Interface: Fix typos in interface package. ([29740](https://github.com/WordPress/gutenberg/pull/29740))
|
190 |
+
|
191 |
+
### Code Quality
|
192 |
+
|
193 |
+
- API Fetch:
|
194 |
+
- Type several of the middlewares. ([29719](https://github.com/WordPress/gutenberg/pull/29719), [30150](https://github.com/WordPress/gutenberg/pull/30150), [29901](https://github.com/WordPress/gutenberg/pull/29901))
|
195 |
+
- Type the rest of the package. ([30161](https://github.com/WordPress/gutenberg/pull/30161))
|
196 |
+
- Block Editor:
|
197 |
+
- Avoid `isInsideRootBlock` (DOM query) in `useFocusFirstElement`. ([30178](https://github.com/WordPress/gutenberg/pull/30178))
|
198 |
+
- Focus mode: Fix opacity for inner blocks, move classes. ([30130](https://github.com/WordPress/gutenberg/pull/30130))
|
199 |
+
- Move class for navigation mode. ([30181](https://github.com/WordPress/gutenberg/pull/30181))
|
200 |
+
- Move `is-typing` and `is-outline-mode` classes up the tree. ([30106](https://github.com/WordPress/gutenberg/pull/30106))
|
201 |
+
- Move nav mode exit from writing flow to block props. ([30175](https://github.com/WordPress/gutenberg/pull/30175))
|
202 |
+
- Block Library:
|
203 |
+
- Refactor ServerSideRender to use React hooks. ([28297](https://github.com/WordPress/gutenberg/pull/28297))
|
204 |
+
- Remove obsolete editor styles for List block. ([30094](https://github.com/WordPress/gutenberg/pull/30094))
|
205 |
+
- Rename `loginOut` variable to `logInOut`. ([29979](https://github.com/WordPress/gutenberg/pull/29979))
|
206 |
+
- Blocks:
|
207 |
+
- Ensure theme category is only added when not provided. ([30089](https://github.com/WordPress/gutenberg/pull/30089))
|
208 |
+
- Rename getBlockContent to getBlockInnerHTML internally. ([29949](https://github.com/WordPress/gutenberg/pull/29949))
|
209 |
+
- Components: Fix React warning in Text Control. ([29724](https://github.com/WordPress/gutenberg/pull/29724))
|
210 |
+
- Date: Add types. ([29789](https://github.com/WordPress/gutenberg/pull/29789))
|
211 |
+
- DOM:
|
212 |
+
- Add types to `focusable`. ([29787](https://github.com/WordPress/gutenberg/pull/29787), [30030](https://github.com/WordPress/gutenberg/pull/30030))
|
213 |
+
- Split into smaller modules to facilitate typing. ([30044](https://github.com/WordPress/gutenberg/pull/30044))
|
214 |
+
- Gutenberg Plugin:
|
215 |
+
- Cleanup the blocks.php file. ([29964](https://github.com/WordPress/gutenberg/pull/29964))
|
216 |
+
- Fix PHPCS warnings. ([30022](https://github.com/WordPress/gutenberg/pull/30022))
|
217 |
+
- Packages: Add types directive to api-fetch and date packages. ([30252](https://github.com/WordPress/gutenberg/pull/30252))
|
218 |
+
- RichText: Remove dead and deprecated `setFocusedElement`. ([29877](https://github.com/WordPress/gutenberg/pull/29877))
|
219 |
+
|
220 |
+
### Tools
|
221 |
+
|
222 |
+
- Babel Preset: Update Babel to v7.13.x. ([30018](https://github.com/WordPress/gutenberg/pull/30018))
|
223 |
+
- Create block: Require WordPress 5.7 by default and source it from the main plugin file. ([29757](https://github.com/WordPress/gutenberg/pull/29757))
|
224 |
+
- E2E Tests:
|
225 |
+
- Cover the case when using multiple words in the inserter. ([29978](https://github.com/WordPress/gutenberg/pull/29978))
|
226 |
+
- Fix test plugin clash. ([29744](https://github.com/WordPress/gutenberg/pull/29744), [29745](https://github.com/WordPress/gutenberg/pull/29745))
|
227 |
+
- Set delay to zero in the reduce-motion mixin and tests. ([29762](https://github.com/WordPress/gutenberg/pull/29762))
|
228 |
+
- Eslint Plugin: Add TypeScript as peer dependency and make it optional. ([29942](https://github.com/WordPress/gutenberg/pull/29942))
|
229 |
+
- GitHub Workflows:
|
230 |
+
- Release: Allow triggering manually. ([28138](https://github.com/WordPress/gutenberg/pull/28138))
|
231 |
+
- Remove path ignore configs from CI. ([30090](https://github.com/WordPress/gutenberg/pull/30090))
|
232 |
+
- Use Gutenberg token for version bump, changelog commits. ([30212](https://github.com/WordPress/gutenberg/pull/30212))
|
233 |
+
- Packages: Enforce version bump for production packages after WP major. ([29903](https://github.com/WordPress/gutenberg/pull/29903))
|
234 |
+
- Unit Testing: Allow TypeScript modules for transpiled packages. ([29873](https://github.com/WordPress/gutenberg/pull/29873))
|
235 |
|
236 |
|
237 |
= 10.2.1 =
|
gutenberg.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: Printing since 1440. This is the development plugin for the new block editor in core.
|
6 |
* Requires at least: 5.6
|
7 |
* Requires PHP: 5.6
|
8 |
-
* Version: 10.3.
|
9 |
* Author: Gutenberg Team
|
10 |
* Text Domain: gutenberg
|
11 |
*
|
@@ -13,8 +13,8 @@
|
|
13 |
*/
|
14 |
|
15 |
### BEGIN AUTO-GENERATED DEFINES
|
16 |
-
define( 'GUTENBERG_VERSION', '10.3.
|
17 |
-
define( 'GUTENBERG_GIT_COMMIT', '
|
18 |
### END AUTO-GENERATED DEFINES
|
19 |
|
20 |
gutenberg_pre_init();
|
5 |
* Description: Printing since 1440. This is the development plugin for the new block editor in core.
|
6 |
* Requires at least: 5.6
|
7 |
* Requires PHP: 5.6
|
8 |
+
* Version: 10.3.1
|
9 |
* Author: Gutenberg Team
|
10 |
* Text Domain: gutenberg
|
11 |
*
|
13 |
*/
|
14 |
|
15 |
### BEGIN AUTO-GENERATED DEFINES
|
16 |
+
define( 'GUTENBERG_VERSION', '10.3.1' );
|
17 |
+
define( 'GUTENBERG_GIT_COMMIT', '57009c2685843ac5adf76859d316b4e2580b6b45' );
|
18 |
### END AUTO-GENERATED DEFINES
|
19 |
|
20 |
gutenberg_pre_init();
|
lib/block-supports/layout.php
CHANGED
@@ -125,7 +125,7 @@ add_filter( 'render_block', 'gutenberg_render_layout_support_flag', 10, 2 );
|
|
125 |
* @return string Filtered block content.
|
126 |
*/
|
127 |
function gutenberg_restore_group_inner_container( $block_content, $block ) {
|
128 |
-
$group_with_inner_container_regex = '/(
|
129 |
|
130 |
if (
|
131 |
'core/group' !== $block['blockName'] ||
|
@@ -135,15 +135,14 @@ function gutenberg_restore_group_inner_container( $block_content, $block ) {
|
|
135 |
return $block_content;
|
136 |
}
|
137 |
|
138 |
-
$replace_regex = '/(
|
139 |
$updated_content = preg_replace_callback(
|
140 |
$replace_regex,
|
141 |
function( $matches ) {
|
142 |
-
return $matches[1] . '<div class="wp-block-group__inner-container">' . $matches[
|
143 |
},
|
144 |
$block_content
|
145 |
);
|
146 |
-
|
147 |
return $updated_content;
|
148 |
}
|
149 |
|
125 |
* @return string Filtered block content.
|
126 |
*/
|
127 |
function gutenberg_restore_group_inner_container( $block_content, $block ) {
|
128 |
+
$group_with_inner_container_regex = '/(^\s*<div\b[^>]*wp-block-group(\s|")[^>]*>)(\s*<div\b[^>]*wp-block-group__inner-container(\s|")[^>]*>)((.|\S|\s)*)/';
|
129 |
|
130 |
if (
|
131 |
'core/group' !== $block['blockName'] ||
|
135 |
return $block_content;
|
136 |
}
|
137 |
|
138 |
+
$replace_regex = '/(^\s*<div\b[^>]*wp-block-group[^>]*>)(.*)(<\/div>\s*$)/ms';
|
139 |
$updated_content = preg_replace_callback(
|
140 |
$replace_regex,
|
141 |
function( $matches ) {
|
142 |
+
return $matches[1] . '<div class="wp-block-group__inner-container">' . $matches[2] . '</div>' . $matches[3];
|
143 |
},
|
144 |
$block_content
|
145 |
);
|
|
|
146 |
return $updated_content;
|
147 |
}
|
148 |
|
lib/global-styles.php
CHANGED
@@ -158,7 +158,9 @@ function gutenberg_experimental_global_styles_get_stylesheet( $tree, $type = 'al
|
|
158 |
* and enqueues the resulting stylesheet.
|
159 |
*/
|
160 |
function gutenberg_experimental_global_styles_enqueue_assets() {
|
161 |
-
if (
|
|
|
|
|
162 |
return;
|
163 |
}
|
164 |
|
@@ -231,7 +233,10 @@ function gutenberg_experimental_global_styles_settings( $settings ) {
|
|
231 |
|
232 |
$settings['__experimentalGlobalStylesUserEntityId'] = $user_cpt_id;
|
233 |
$settings['__experimentalGlobalStylesBaseStyles'] = $base_styles;
|
234 |
-
} elseif (
|
|
|
|
|
|
|
235 |
// STEP 3 - ADD STYLES IF THEME HAS SUPPORT
|
236 |
//
|
237 |
// If we are in a block editor context, but not in edit-site,
|
158 |
* and enqueues the resulting stylesheet.
|
159 |
*/
|
160 |
function gutenberg_experimental_global_styles_enqueue_assets() {
|
161 |
+
if (
|
162 |
+
! get_theme_support( 'experimental-link-color' ) && // link color support needs the presets CSS variables regardless of the presence of theme.json file.
|
163 |
+
! WP_Theme_JSON_Resolver::theme_has_support() ) {
|
164 |
return;
|
165 |
}
|
166 |
|
233 |
|
234 |
$settings['__experimentalGlobalStylesUserEntityId'] = $user_cpt_id;
|
235 |
$settings['__experimentalGlobalStylesBaseStyles'] = $base_styles;
|
236 |
+
} elseif (
|
237 |
+
WP_Theme_JSON_Resolver::theme_has_support() ||
|
238 |
+
get_theme_support( 'experimental-link-color' ) // link color support needs the presets CSS variables regardless of the presence of theme.json file.
|
239 |
+
) {
|
240 |
// STEP 3 - ADD STYLES IF THEME HAS SUPPORT
|
241 |
//
|
242 |
// If we are in a block editor context, but not in edit-site,
|
readme.txt
CHANGED
@@ -55,4 +55,4 @@ View <a href="https://developer.wordpress.org/block-editor/principles/versions-i
|
|
55 |
|
56 |
== Changelog ==
|
57 |
|
58 |
-
To read the changelog for Gutenberg 10.3.
|
55 |
|
56 |
== Changelog ==
|
57 |
|
58 |
+
To read the changelog for Gutenberg 10.3.1, please navigate to the <a href="https://github.com/WordPress/gutenberg/releases/tag/v10.3.1">release page</a>.
|