<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[12187] sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/scripts: Handbooks: Allow the callout blocks to include lists in addition to paragraphs.</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { white-space: pre-line; overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="http://meta.trac.wordpress.org/changeset/12187">12187</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"http://meta.trac.wordpress.org/changeset/12187","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>dd32</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2022-11-02 06:28:26 +0000 (Wed, 02 Nov 2022)</dd>
</dl>

<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>Handbooks: Allow the callout blocks to include lists in addition to paragraphs.

Props psykro.
Closes https://github.com/WordPress/wordpress.org/pull/102.
Fixes <a href="http://meta.trac.wordpress.org/ticket/6548">#6548</a>.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginshandbookscriptsblocksassetphp">sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/scripts/blocks.asset.php</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginshandbookscriptsblocksjs">sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/scripts/blocks.js</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentpluginshandbookscriptssrcblockscallouteditjs">sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/scripts/src/blocks/callout/edit.js</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginshandbookscriptsblocksassetphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/scripts/blocks.asset.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/scripts/blocks.asset.php        2022-11-02 03:16:40 UTC (rev 12186)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/scripts/blocks.asset.php  2022-11-02 06:28:26 UTC (rev 12187)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1 +1 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-<?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '1480a2bfa33c4985c6c8d9c16641a96d');
</del><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of file
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '6cebe0cec8356cd3644eb5bf2b7232f3');
</ins><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of file
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginshandbookscriptsblocksjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/scripts/blocks.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/scripts/blocks.js       2022-11-02 03:16:40 UTC (rev 12186)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/scripts/blocks.js 2022-11-02 06:28:26 UTC (rev 12187)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1 +1 @@
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-!function(t){var e={};function o(r){if(e[r])return e[r].exports;var n=e[r]={i:r,l:!1,exports:{}};return t[r].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.m=t,o.c=e,o.d=function(t,e,r){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(r,n,function(e){return t[e]}.bind(null,n));return r},o.n=function(t){var e=t&&t.__esModule?functio
 n(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=4)}([function(t,e){!function(){t.exports=this.wp.i18n}()},function(t,e){!function(){t.exports=this.wp.blocks}()},function(t,e){!function(){t.exports=this.wp.element}()},function(t,e){!function(){t.exports=this.wp.blockEditor}()},function(t,e,o){"use strict";o.r(e);var r=o(2),n=o(0),c=o(1),i=o(3),a=function(t){var e=t.attributes,o="callout callout-".concat(e.type);return Object(r.createElement)("div",{className:o},Object(r.createElement)(i.InnerBlocks,{allowedBlocks:["core/paragraph"]}))},l=[{name:"info",isDefault:!0,title:Object(n.__)("Info Callout","wporg"),icon:"info",attributes:{type:"info"}},{name:"tip",title:Object(n.__)("Tip Callout","wporg"),icon:"lightbulb",attributes:{type:"tip
 "}},{name:"alert",title:Object(n.__)("Alert Callout","wporg"),icon:"flag",attributes:{type:"alert"}},{name:"tutorial",title:Object(n.__)("Tutorial Callout","wporg"),icon:"hammer",attributes:{type:"tutorial"}},{name:"warning",title:Object(n.__)("Warning Callout","wporg"),icon:"dismiss",attributes:{type:"warning"}}],u={from:[{type:"block",blocks:["core/paragraph"],transform:function(t){var e=t.content,o=[Object(c.createBlock)("core/paragraph",{content:e})];return Object(c.createBlock)("wporg/callout",{type:"info"},o)}},{type:"block",blocks:["core/shortcode"],isMatch:function(t){return wp.shortcode.regexp("info|tip|alert|tutorial|warning").test(t.text)},transform:function(t){var e,o,r,n,i,a=t.text,l=null===(e=wp.shortcode.next("info",a))||void 0
 ===e?void 0:e.shortcode;l||(l=null===(o=wp.shortcode.next("tip",a))||void 0===o?void 0:o.shortcode);l||(l=null===(r=wp.shortcode.next("alert",a))||void 0===r?void 0:r.shortcode);l||(l=null===(n=wp.shortcode.next("tutorial",a))||void 0===n?void 0:n.shortcode);l||(l=null===(i=wp.shortcode.next("warning",a))||void 0===i?void 0:i.shortcode);var u=[Object(c.createBlock)("core/paragraph",{content:l.content})];return Object(c.createBlock)("wporg/callout",{type:l.tag},u)}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(t,e){return e}}]};Object(c.registerBlockType)("wporg/callout",{title:Object(n.__)("Callout","wporg"),description:Object(n.__)("Callout boxes to be used in handbooks.","wporg"),category:"widgets",icon:"info",keywords:[Object(n.__)("alert","wporg"),Object(n.__)("tip","wporg"
 )],attributes:{type:{type:"string",default:"info"}},supports:{className:!1},example:{attributes:{type:"info"},innerBlocks:[{name:"core/paragraph",attributes:{content:Object(n.__)("This is the content of the callout boxes.","wporg")}}]},variations:l,transforms:u,edit:a,save:function(t){var e=t.attributes,o="callout callout-".concat(e.type);return Object(r.createElement)("div",{className:o},Object(r.createElement)(i.InnerBlocks.Content,null))}})}]);
</del><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of file
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+!function(t){var e={};function o(r){if(e[r])return e[r].exports;var n=e[r]={i:r,l:!1,exports:{}};return t[r].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.m=t,o.c=e,o.d=function(t,e,r){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(r,n,function(e){return t[e]}.bind(null,n));return r},o.n=function(t){var e=t&&t.__esModule?functio
 n(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=4)}([function(t,e){t.exports=window.wp.i18n},function(t,e){t.exports=window.wp.blocks},function(t,e){t.exports=window.wp.element},function(t,e){t.exports=window.wp.blockEditor},function(t,e,o){"use strict";o.r(e);var r=o(2),n=o(0),c=o(1),a=o(3),i=function(t){var e=t.attributes,o="callout callout-".concat(e.type);return Object(r.createElement)("div",{className:o},Object(r.createElement)(a.InnerBlocks,{allowedBlocks:["core/paragraph","core/list"]}))},l=[{name:"info",isDefault:!0,title:Object(n.__)("Info Callout","wporg"),icon:"info",attributes:{type:"info"}},{name:"tip",title:Object(n.__)("Tip Callout","wporg"),icon:"lightbulb",attributes:{type:"tip"}},{name:"alert&quo
 t;,title:Object(n.__)("Alert Callout","wporg"),icon:"flag",attributes:{type:"alert"}},{name:"tutorial",title:Object(n.__)("Tutorial Callout","wporg"),icon:"hammer",attributes:{type:"tutorial"}},{name:"warning",title:Object(n.__)("Warning Callout","wporg"),icon:"dismiss",attributes:{type:"warning"}}],u={from:[{type:"block",blocks:["core/paragraph"],transform:function(t){var e=t.content,o=[Object(c.createBlock)("core/paragraph",{content:e})];return Object(c.createBlock)("wporg/callout",{type:"info"},o)}},{type:"block",blocks:["core/shortcode"],isMatch:function(t){return wp.shortcode.regexp("info|tip|alert|tutorial|warning").test(t.text)},transform:function(t){var e,o,r,n,a,i=t.text,l=null===(e=wp.shortcode.next("info",i))||void 0===e?void 0:e.shortcode;l||(l=
 null===(o=wp.shortcode.next("tip",i))||void 0===o?void 0:o.shortcode);l||(l=null===(r=wp.shortcode.next("alert",i))||void 0===r?void 0:r.shortcode);l||(l=null===(n=wp.shortcode.next("tutorial",i))||void 0===n?void 0:n.shortcode);l||(l=null===(a=wp.shortcode.next("warning",i))||void 0===a?void 0:a.shortcode);var u=[Object(c.createBlock)("core/paragraph",{content:l.content})];return Object(c.createBlock)("wporg/callout",{type:l.tag},u)}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(t,e){return e}}]};Object(c.registerBlockType)("wporg/callout",{title:Object(n.__)("Callout","wporg"),description:Object(n.__)("Callout boxes to be used in handbooks.","wporg"),category:"widgets",icon:"info",keywords:[Object(n.__)("alert","wporg"),Object(n.__)("tip","wporg")],attributes:{type:{type:&quo
 t;string",default:"info"}},supports:{className:!1},example:{attributes:{type:"info"},innerBlocks:[{name:"core/paragraph",attributes:{content:Object(n.__)("This is the content of the callout boxes.","wporg")}}]},variations:l,transforms:u,edit:i,save:function(t){var e=t.attributes,o="callout callout-".concat(e.type);return Object(r.createElement)("div",{className:o},Object(r.createElement)(a.InnerBlocks.Content,null))}})}]);
</ins><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of file
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentpluginshandbookscriptssrcblockscallouteditjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/scripts/src/blocks/callout/edit.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/scripts/src/blocks/callout/edit.js      2022-11-02 03:16:40 UTC (rev 12186)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/scripts/src/blocks/callout/edit.js        2022-11-02 06:28:26 UTC (rev 12187)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -7,7 +7,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">        const className = `callout callout-${ attributes.type }`;
</span><span class="cx" style="display: block; padding: 0 10px">        return (
</span><span class="cx" style="display: block; padding: 0 10px">                <div className={ className }>
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-                        <InnerBlocks allowedBlocks={ [ 'core/paragraph' ] } />
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+                 <InnerBlocks allowedBlocks={ [ 'core/paragraph', 'core/list' ] } />
</ins><span class="cx" style="display: block; padding: 0 10px">                 </div>
</span><span class="cx" style="display: block; padding: 0 10px">        );
</span><span class="cx" style="display: block; padding: 0 10px"> };
</span></span></pre>
</div>
</div>

</body>
</html>