<!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>[48262] trunk: Editor: Register core blocks on the server</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="https://core.trac.wordpress.org/changeset/48262">48262</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"https://core.trac.wordpress.org/changeset/48262","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>gziolo</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2020-07-01 12:27:10 +0000 (Wed, 01 Jul 2020)</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'>Editor: Register core blocks on the server
Exposes all core blocks (excluding embeds) on the server to be used with the REST API block types endpoint.
Props spacedmonkey, timothyblynjacobs.
Fixes <a href="https://core.trac.wordpress.org/ticket/50263">#50263</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpsettingsphp">trunk/src/wp-settings.php</a></li>
<li><a href="#trunktoolswebpackpackagesjs">trunk/tools/webpack/packages.js</a></li>
</ul>
<h3>Added Paths</h3>
<ul>
<li>trunk/src/wp-includes/blocks/audio/</li>
<li><a href="#trunksrcwpincludesblocksaudioblockjson">trunk/src/wp-includes/blocks/audio/block.json</a></li>
<li>trunk/src/wp-includes/blocks/button/</li>
<li><a href="#trunksrcwpincludesblocksbuttonblockjson">trunk/src/wp-includes/blocks/button/block.json</a></li>
<li>trunk/src/wp-includes/blocks/buttons/</li>
<li><a href="#trunksrcwpincludesblocksbuttonsblockjson">trunk/src/wp-includes/blocks/buttons/block.json</a></li>
<li>trunk/src/wp-includes/blocks/classic/</li>
<li><a href="#trunksrcwpincludesblocksclassicblockjson">trunk/src/wp-includes/blocks/classic/block.json</a></li>
<li>trunk/src/wp-includes/blocks/code/</li>
<li><a href="#trunksrcwpincludesblockscodeblockjson">trunk/src/wp-includes/blocks/code/block.json</a></li>
<li>trunk/src/wp-includes/blocks/column/</li>
<li><a href="#trunksrcwpincludesblockscolumnblockjson">trunk/src/wp-includes/blocks/column/block.json</a></li>
<li>trunk/src/wp-includes/blocks/columns/</li>
<li><a href="#trunksrcwpincludesblockscolumnsblockjson">trunk/src/wp-includes/blocks/columns/block.json</a></li>
<li>trunk/src/wp-includes/blocks/file/</li>
<li><a href="#trunksrcwpincludesblocksfileblockjson">trunk/src/wp-includes/blocks/file/block.json</a></li>
<li>trunk/src/wp-includes/blocks/gallery/</li>
<li><a href="#trunksrcwpincludesblocksgalleryblockjson">trunk/src/wp-includes/blocks/gallery/block.json</a></li>
<li>trunk/src/wp-includes/blocks/group/</li>
<li><a href="#trunksrcwpincludesblocksgroupblockjson">trunk/src/wp-includes/blocks/group/block.json</a></li>
<li>trunk/src/wp-includes/blocks/heading/</li>
<li><a href="#trunksrcwpincludesblocksheadingblockjson">trunk/src/wp-includes/blocks/heading/block.json</a></li>
<li>trunk/src/wp-includes/blocks/html/</li>
<li><a href="#trunksrcwpincludesblockshtmlblockjson">trunk/src/wp-includes/blocks/html/block.json</a></li>
<li>trunk/src/wp-includes/blocks/image/</li>
<li><a href="#trunksrcwpincludesblocksimageblockjson">trunk/src/wp-includes/blocks/image/block.json</a></li>
<li><a href="#trunksrcwpincludesblocksindexphp">trunk/src/wp-includes/blocks/index.php</a></li>
<li>trunk/src/wp-includes/blocks/list/</li>
<li><a href="#trunksrcwpincludesblockslistblockjson">trunk/src/wp-includes/blocks/list/block.json</a></li>
<li>trunk/src/wp-includes/blocks/media-text/</li>
<li><a href="#trunksrcwpincludesblocksmediatextblockjson">trunk/src/wp-includes/blocks/media-text/block.json</a></li>
<li>trunk/src/wp-includes/blocks/missing/</li>
<li><a href="#trunksrcwpincludesblocksmissingblockjson">trunk/src/wp-includes/blocks/missing/block.json</a></li>
<li>trunk/src/wp-includes/blocks/more/</li>
<li><a href="#trunksrcwpincludesblocksmoreblockjson">trunk/src/wp-includes/blocks/more/block.json</a></li>
<li>trunk/src/wp-includes/blocks/nextpage/</li>
<li><a href="#trunksrcwpincludesblocksnextpageblockjson">trunk/src/wp-includes/blocks/nextpage/block.json</a></li>
<li>trunk/src/wp-includes/blocks/paragraph/</li>
<li><a href="#trunksrcwpincludesblocksparagraphblockjson">trunk/src/wp-includes/blocks/paragraph/block.json</a></li>
<li>trunk/src/wp-includes/blocks/preformatted/</li>
<li><a href="#trunksrcwpincludesblockspreformattedblockjson">trunk/src/wp-includes/blocks/preformatted/block.json</a></li>
<li>trunk/src/wp-includes/blocks/pullquote/</li>
<li><a href="#trunksrcwpincludesblockspullquoteblockjson">trunk/src/wp-includes/blocks/pullquote/block.json</a></li>
<li>trunk/src/wp-includes/blocks/quote/</li>
<li><a href="#trunksrcwpincludesblocksquoteblockjson">trunk/src/wp-includes/blocks/quote/block.json</a></li>
<li>trunk/src/wp-includes/blocks/separator/</li>
<li><a href="#trunksrcwpincludesblocksseparatorblockjson">trunk/src/wp-includes/blocks/separator/block.json</a></li>
<li>trunk/src/wp-includes/blocks/social-links/</li>
<li><a href="#trunksrcwpincludesblockssociallinksblockjson">trunk/src/wp-includes/blocks/social-links/block.json</a></li>
<li>trunk/src/wp-includes/blocks/spacer/</li>
<li><a href="#trunksrcwpincludesblocksspacerblockjson">trunk/src/wp-includes/blocks/spacer/block.json</a></li>
<li>trunk/src/wp-includes/blocks/subhead/</li>
<li><a href="#trunksrcwpincludesblockssubheadblockjson">trunk/src/wp-includes/blocks/subhead/block.json</a></li>
<li>trunk/src/wp-includes/blocks/table/</li>
<li><a href="#trunksrcwpincludesblockstableblockjson">trunk/src/wp-includes/blocks/table/block.json</a></li>
<li>trunk/src/wp-includes/blocks/text-columns/</li>
<li><a href="#trunksrcwpincludesblockstextcolumnsblockjson">trunk/src/wp-includes/blocks/text-columns/block.json</a></li>
<li>trunk/src/wp-includes/blocks/verse/</li>
<li><a href="#trunksrcwpincludesblocksverseblockjson">trunk/src/wp-includes/blocks/verse/block.json</a></li>
<li>trunk/src/wp-includes/blocks/video/</li>
<li><a href="#trunksrcwpincludesblocksvideoblockjson">trunk/src/wp-includes/blocks/video/block.json</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpincludesblocksaudioblockjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: trunk/src/wp-includes/blocks/audio/block.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/blocks/audio/block.json (rev 0)
+++ trunk/src/wp-includes/blocks/audio/block.json 2020-07-01 12:27:10 UTC (rev 48262)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,42 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+{
+ "name": "core/audio",
+ "category": "media",
+ "attributes": {
+ "src": {
+ "type": "string",
+ "source": "attribute",
+ "selector": "audio",
+ "attribute": "src"
+ },
+ "caption": {
+ "type": "string",
+ "source": "html",
+ "selector": "figcaption"
+ },
+ "id": {
+ "type": "number"
+ },
+ "autoplay": {
+ "type": "boolean",
+ "source": "attribute",
+ "selector": "audio",
+ "attribute": "autoplay"
+ },
+ "loop": {
+ "type": "boolean",
+ "source": "attribute",
+ "selector": "audio",
+ "attribute": "loop"
+ },
+ "preload": {
+ "type": "string",
+ "source": "attribute",
+ "selector": "audio",
+ "attribute": "preload"
+ }
+ },
+ "supports": {
+ "align": true,
+ "lightBlockWrapper": true
+ }
+}
</ins></span></pre></div>
<a id="trunksrcwpincludesblocksbuttonblockjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: trunk/src/wp-includes/blocks/button/block.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/blocks/button/block.json (rev 0)
+++ trunk/src/wp-includes/blocks/button/block.json 2020-07-01 12:27:10 UTC (rev 48262)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,62 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+{
+ "name": "core/button",
+ "category": "design",
+ "parent": [
+ "core/buttons"
+ ],
+ "attributes": {
+ "url": {
+ "type": "string",
+ "source": "attribute",
+ "selector": "a",
+ "attribute": "href"
+ },
+ "title": {
+ "type": "string",
+ "source": "attribute",
+ "selector": "a",
+ "attribute": "title"
+ },
+ "text": {
+ "type": "string",
+ "source": "html",
+ "selector": "a"
+ },
+ "linkTarget": {
+ "type": "string",
+ "source": "attribute",
+ "selector": "a",
+ "attribute": "target"
+ },
+ "rel": {
+ "type": "string",
+ "source": "attribute",
+ "selector": "a",
+ "attribute": "rel"
+ },
+ "placeholder": {
+ "type": "string"
+ },
+ "borderRadius": {
+ "type": "number"
+ },
+ "style": {
+ "type": "object"
+ },
+ "backgroundColor": {
+ "type": "string"
+ },
+ "textColor": {
+ "type": "string"
+ },
+ "gradient": {
+ "type": "string"
+ }
+ },
+ "supports": {
+ "align": true,
+ "alignWide": false,
+ "reusable": false,
+ "lightBlockWrapper": true
+ }
+}
</ins></span></pre></div>
<a id="trunksrcwpincludesblocksbuttonsblockjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: trunk/src/wp-includes/blocks/buttons/block.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/blocks/buttons/block.json (rev 0)
+++ trunk/src/wp-includes/blocks/buttons/block.json 2020-07-01 12:27:10 UTC (rev 48262)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,9 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+{
+ "name": "core/buttons",
+ "category": "design",
+ "supports": {
+ "align": true,
+ "alignWide": false,
+ "lightBlockWrapper": true
+ }
+}
</ins></span></pre></div>
<a id="trunksrcwpincludesblocksclassicblockjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: trunk/src/wp-includes/blocks/classic/block.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/blocks/classic/block.json (rev 0)
+++ trunk/src/wp-includes/blocks/classic/block.json 2020-07-01 12:27:10 UTC (rev 48262)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,15 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+{
+ "name": "core/freeform",
+ "category": "text",
+ "attributes": {
+ "content": {
+ "type": "string",
+ "source": "html"
+ }
+ },
+ "supports": {
+ "className": false,
+ "customClassName": false,
+ "reusable": false
+ }
+}
</ins></span></pre></div>
<a id="trunksrcwpincludesblockscodeblockjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: trunk/src/wp-includes/blocks/code/block.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/blocks/code/block.json (rev 0)
+++ trunk/src/wp-includes/blocks/code/block.json 2020-07-01 12:27:10 UTC (rev 48262)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,15 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+{
+ "name": "core/code",
+ "category": "text",
+ "attributes": {
+ "content": {
+ "type": "string",
+ "source": "text",
+ "selector": "code"
+ }
+ },
+ "supports": {
+ "html": false,
+ "lightBlockWrapper": true
+ }
+}
</ins></span></pre></div>
<a id="trunksrcwpincludesblockscolumnblockjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: trunk/src/wp-includes/blocks/column/block.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/blocks/column/block.json (rev 0)
+++ trunk/src/wp-includes/blocks/column/block.json 2020-07-01 12:27:10 UTC (rev 48262)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,22 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+{
+ "name": "core/column",
+ "category": "text",
+ "parent": [
+ "core/columns"
+ ],
+ "attributes": {
+ "verticalAlignment": {
+ "type": "string"
+ },
+ "width": {
+ "type": "number",
+ "min": 0,
+ "max": 100
+ }
+ },
+ "supports": {
+ "reusable": false,
+ "html": false,
+ "lightBlockWrapper": true
+ }
+}
</ins></span></pre></div>
<a id="trunksrcwpincludesblockscolumnsblockjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: trunk/src/wp-includes/blocks/columns/block.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/blocks/columns/block.json (rev 0)
+++ trunk/src/wp-includes/blocks/columns/block.json 2020-07-01 12:27:10 UTC (rev 48262)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,21 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+{
+ "name": "core/columns",
+ "category": "design",
+ "attributes": {
+ "verticalAlignment": {
+ "type": "string"
+ }
+ },
+ "supports": {
+ "align": [
+ "wide",
+ "full"
+ ],
+ "html": false,
+ "lightBlockWrapper": true,
+ "__experimentalColor": {
+ "gradients": true,
+ "linkColor": true
+ }
+ }
+}
</ins></span></pre></div>
<a id="trunksrcwpincludesblocksfileblockjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: trunk/src/wp-includes/blocks/file/block.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/blocks/file/block.json (rev 0)
+++ trunk/src/wp-includes/blocks/file/block.json 2020-07-01 12:27:10 UTC (rev 48262)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,41 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+{
+ "name": "core/file",
+ "category": "media",
+ "attributes": {
+ "id": {
+ "type": "number"
+ },
+ "href": {
+ "type": "string"
+ },
+ "fileName": {
+ "type": "string",
+ "source": "html",
+ "selector": "a:not([download])"
+ },
+ "textLinkHref": {
+ "type": "string",
+ "source": "attribute",
+ "selector": "a:not([download])",
+ "attribute": "href"
+ },
+ "textLinkTarget": {
+ "type": "string",
+ "source": "attribute",
+ "selector": "a:not([download])",
+ "attribute": "target"
+ },
+ "showDownloadButton": {
+ "type": "boolean",
+ "default": true
+ },
+ "downloadButtonText": {
+ "type": "string",
+ "source": "html",
+ "selector": "a[download]"
+ }
+ },
+ "supports": {
+ "align": true
+ }
+}
</ins></span></pre></div>
<a id="trunksrcwpincludesblocksgalleryblockjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: trunk/src/wp-includes/blocks/gallery/block.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/blocks/gallery/block.json (rev 0)
+++ trunk/src/wp-includes/blocks/gallery/block.json 2020-07-01 12:27:10 UTC (rev 48262)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,82 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+{
+ "name": "core/gallery",
+ "category": "media",
+ "attributes": {
+ "images": {
+ "type": "array",
+ "default": [],
+ "source": "query",
+ "selector": ".blocks-gallery-item",
+ "query": {
+ "url": {
+ "type": "string",
+ "source": "attribute",
+ "selector": "img",
+ "attribute": "src"
+ },
+ "fullUrl": {
+ "type": "string",
+ "source": "attribute",
+ "selector": "img",
+ "attribute": "data-full-url"
+ },
+ "link": {
+ "type": "string",
+ "source": "attribute",
+ "selector": "img",
+ "attribute": "data-link"
+ },
+ "alt": {
+ "type": "string",
+ "source": "attribute",
+ "selector": "img",
+ "attribute": "alt",
+ "default": ""
+ },
+ "id": {
+ "type": "string",
+ "source": "attribute",
+ "selector": "img",
+ "attribute": "data-id"
+ },
+ "caption": {
+ "type": "string",
+ "source": "html",
+ "selector": ".blocks-gallery-item__caption"
+ }
+ }
+ },
+ "ids": {
+ "type": "array",
+ "items": {
+ "type": "number"
+ },
+ "default": []
+ },
+ "columns": {
+ "type": "number",
+ "minimum": 1,
+ "maximum": 8
+ },
+ "caption": {
+ "type": "string",
+ "source": "html",
+ "selector": ".blocks-gallery-caption"
+ },
+ "imageCrop": {
+ "type": "boolean",
+ "default": true
+ },
+ "linkTo": {
+ "type": "string",
+ "default": "none"
+ },
+ "sizeSlug": {
+ "type": "string",
+ "default": "large"
+ }
+ },
+ "supports": {
+ "align": true
+ }
+}
</ins></span></pre></div>
<a id="trunksrcwpincludesblocksgroupblockjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: trunk/src/wp-includes/blocks/group/block.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/blocks/group/block.json (rev 0)
+++ trunk/src/wp-includes/blocks/group/block.json 2020-07-01 12:27:10 UTC (rev 48262)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,23 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+{
+ "name": "core/group",
+ "category": "design",
+ "attributes": {
+ "tagName": {
+ "type": "string",
+ "default": "div"
+ }
+ },
+ "supports": {
+ "align": [
+ "wide",
+ "full"
+ ],
+ "anchor": true,
+ "html": false,
+ "lightBlockWrapper": true,
+ "__experimentalColor": {
+ "gradients": true,
+ "linkColor": true
+ }
+ }
+}
</ins></span></pre></div>
<a id="trunksrcwpincludesblocksheadingblockjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: trunk/src/wp-includes/blocks/heading/block.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/blocks/heading/block.json (rev 0)
+++ trunk/src/wp-includes/blocks/heading/block.json 2020-07-01 12:27:10 UTC (rev 48262)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,41 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+{
+ "name": "core/heading",
+ "category": "text",
+ "attributes": {
+ "align": {
+ "type": "string"
+ },
+ "content": {
+ "type": "string",
+ "source": "html",
+ "selector": "h1,h2,h3,h4,h5,h6",
+ "default": ""
+ },
+ "level": {
+ "type": "number",
+ "default": 2
+ },
+ "placeholder": {
+ "type": "string"
+ }
+ },
+ "supports": {
+ "anchor": true,
+ "className": false,
+ "lightBlockWrapper": true,
+ "__experimentalColor": {
+ "linkColor": true
+ },
+ "__experimentalFontSize": true,
+ "__experimentalLineHeight": true,
+ "__experimentalSelector": {
+ "core/heading/h1": "h1",
+ "core/heading/h2": "h2",
+ "core/heading/h3": "h3",
+ "core/heading/h4": "h4",
+ "core/heading/h5": "h5",
+ "core/heading/h6": "h6"
+ },
+ "__unstablePasteTextInline": true
+ }
+}
</ins></span></pre></div>
<a id="trunksrcwpincludesblockshtmlblockjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: trunk/src/wp-includes/blocks/html/block.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/blocks/html/block.json (rev 0)
+++ trunk/src/wp-includes/blocks/html/block.json 2020-07-01 12:27:10 UTC (rev 48262)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,15 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+{
+ "name": "core/html",
+ "category": "widgets",
+ "attributes": {
+ "content": {
+ "type": "string",
+ "source": "html"
+ }
+ },
+ "supports": {
+ "customClassName": false,
+ "className": false,
+ "html": false
+ }
+}
</ins></span></pre></div>
<a id="trunksrcwpincludesblocksimageblockjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: trunk/src/wp-includes/blocks/image/block.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/blocks/image/block.json (rev 0)
+++ trunk/src/wp-includes/blocks/image/block.json 2020-07-01 12:27:10 UTC (rev 48262)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,76 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+{
+ "name": "core/image",
+ "category": "media",
+ "attributes": {
+ "align": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string",
+ "source": "attribute",
+ "selector": "img",
+ "attribute": "src"
+ },
+ "alt": {
+ "type": "string",
+ "source": "attribute",
+ "selector": "img",
+ "attribute": "alt",
+ "default": ""
+ },
+ "caption": {
+ "type": "string",
+ "source": "html",
+ "selector": "figcaption"
+ },
+ "title": {
+ "type": "string",
+ "source": "attribute",
+ "selector": "img",
+ "attribute": "title"
+ },
+ "href": {
+ "type": "string",
+ "source": "attribute",
+ "selector": "figure > a",
+ "attribute": "href"
+ },
+ "rel": {
+ "type": "string",
+ "source": "attribute",
+ "selector": "figure > a",
+ "attribute": "rel"
+ },
+ "linkClass": {
+ "type": "string",
+ "source": "attribute",
+ "selector": "figure > a",
+ "attribute": "class"
+ },
+ "id": {
+ "type": "number"
+ },
+ "width": {
+ "type": "number"
+ },
+ "height": {
+ "type": "number"
+ },
+ "sizeSlug": {
+ "type": "string"
+ },
+ "linkDestination": {
+ "type": "string",
+ "default": "none"
+ },
+ "linkTarget": {
+ "type": "string",
+ "source": "attribute",
+ "selector": "figure > a",
+ "attribute": "target"
+ }
+ },
+ "supports": {
+ "lightBlockWrapper": true
+ }
+}
</ins></span></pre></div>
<a id="trunksrcwpincludesblocksindexphp"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: trunk/src/wp-includes/blocks/index.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/blocks/index.php (rev 0)
+++ trunk/src/wp-includes/blocks/index.php 2020-07-01 12:27:10 UTC (rev 48262)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,58 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<?php
+/**
+ * Used to set up all core blocks used with the block editor.
+ *
+ * @package WordPress
+ */
+
+// Include files required for core blocks registration.
+require ABSPATH . WPINC . '/blocks/archives.php';
+require ABSPATH . WPINC . '/blocks/block.php';
+require ABSPATH . WPINC . '/blocks/calendar.php';
+require ABSPATH . WPINC . '/blocks/categories.php';
+require ABSPATH . WPINC . '/blocks/latest-comments.php';
+require ABSPATH . WPINC . '/blocks/latest-posts.php';
+require ABSPATH . WPINC . '/blocks/rss.php';
+require ABSPATH . WPINC . '/blocks/search.php';
+require ABSPATH . WPINC . '/blocks/shortcode.php';
+require ABSPATH . WPINC . '/blocks/social-link.php';
+require ABSPATH . WPINC . '/blocks/tag-cloud.php';
+
+$block_folders = array(
+ 'audio',
+ 'button',
+ 'buttons',
+ 'classic',
+ 'code',
+ 'column',
+ 'columns',
+ 'file',
+ 'gallery',
+ 'group',
+ 'heading',
+ 'html',
+ 'image',
+ 'list',
+ 'media-text',
+ 'missing',
+ 'more',
+ 'nextpage',
+ 'paragraph',
+ 'preformatted',
+ 'pullquote',
+ 'quote',
+ 'separator',
+ 'social-links',
+ 'spacer',
+ 'subhead',
+ 'table',
+ 'text-columns',
+ 'verse',
+ 'video',
+);
+
+foreach ( $block_folders as $block_folder ) {
+ register_block_type_from_metadata(
+ ABSPATH . WPINC . '/blocks/' . $block_folder
+ );
+}
</ins></span></pre></div>
<a id="trunksrcwpincludesblockslistblockjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: trunk/src/wp-includes/blocks/list/block.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/blocks/list/block.json (rev 0)
+++ trunk/src/wp-includes/blocks/list/block.json 2020-07-01 12:27:10 UTC (rev 48262)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,35 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+{
+ "name": "core/list",
+ "category": "text",
+ "attributes": {
+ "ordered": {
+ "type": "boolean",
+ "default": false
+ },
+ "values": {
+ "type": "string",
+ "source": "html",
+ "selector": "ol,ul",
+ "multiline": "li",
+ "__unstableMultilineWrapperTags": [
+ "ol",
+ "ul"
+ ],
+ "default": ""
+ },
+ "type": {
+ "type": "string"
+ },
+ "start": {
+ "type": "number"
+ },
+ "reversed": {
+ "type": "boolean"
+ }
+ },
+ "supports": {
+ "className": false,
+ "__unstablePasteTextInline": true,
+ "lightBlockWrapper": true
+ }
+}
</ins></span></pre></div>
<a id="trunksrcwpincludesblocksmediatextblockjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: trunk/src/wp-includes/blocks/media-text/block.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/blocks/media-text/block.json (rev 0)
+++ trunk/src/wp-includes/blocks/media-text/block.json 2020-07-01 12:27:10 UTC (rev 48262)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,92 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+{
+ "name": "core/media-text",
+ "category": "media",
+ "attributes": {
+ "align": {
+ "type": "string",
+ "default": "wide"
+ },
+ "mediaAlt": {
+ "type": "string",
+ "source": "attribute",
+ "selector": "figure img",
+ "attribute": "alt",
+ "default": ""
+ },
+ "mediaPosition": {
+ "type": "string",
+ "default": "left"
+ },
+ "mediaId": {
+ "type": "number"
+ },
+ "mediaUrl": {
+ "type": "string",
+ "source": "attribute",
+ "selector": "figure video,figure img",
+ "attribute": "src"
+ },
+ "mediaLink": {
+ "type": "string"
+ },
+ "linkDestination": {
+ "type": "string"
+ },
+ "linkTarget": {
+ "type": "string",
+ "source": "attribute",
+ "selector": "figure a",
+ "attribute": "target"
+ },
+ "href": {
+ "type": "string",
+ "source": "attribute",
+ "selector": "figure a",
+ "attribute": "href"
+ },
+ "rel": {
+ "type": "string",
+ "source": "attribute",
+ "selector": "figure a",
+ "attribute": "rel"
+ },
+ "linkClass": {
+ "type": "string",
+ "source": "attribute",
+ "selector": "figure a",
+ "attribute": "class"
+ },
+ "mediaType": {
+ "type": "string"
+ },
+ "mediaWidth": {
+ "type": "number",
+ "default": 50
+ },
+ "isStackedOnMobile": {
+ "type": "boolean",
+ "default": true
+ },
+ "verticalAlignment": {
+ "type": "string"
+ },
+ "imageFill": {
+ "type": "boolean"
+ },
+ "focalPoint": {
+ "type": "object"
+ }
+ },
+ "supports": {
+ "align": [
+ "wide",
+ "full"
+ ],
+ "html": false,
+ "lightBlockWrapper": true,
+ "__experimentalColor": {
+ "gradients": true,
+ "linkColor": true
+ }
+ }
+}
</ins></span></pre></div>
<a id="trunksrcwpincludesblocksmissingblockjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: trunk/src/wp-includes/blocks/missing/block.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/blocks/missing/block.json (rev 0)
+++ trunk/src/wp-includes/blocks/missing/block.json 2020-07-01 12:27:10 UTC (rev 48262)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,23 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+{
+ "name": "core/missing",
+ "category": "text",
+ "attributes": {
+ "originalName": {
+ "type": "string"
+ },
+ "originalUndelimitedContent": {
+ "type": "string"
+ },
+ "originalContent": {
+ "type": "string",
+ "source": "html"
+ }
+ },
+ "supports": {
+ "className": false,
+ "customClassName": false,
+ "inserter": false,
+ "html": false,
+ "reusable": false
+ }
+}
</ins></span></pre></div>
<a id="trunksrcwpincludesblocksmoreblockjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: trunk/src/wp-includes/blocks/more/block.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/blocks/more/block.json (rev 0)
+++ trunk/src/wp-includes/blocks/more/block.json 2020-07-01 12:27:10 UTC (rev 48262)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,19 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+{
+ "name": "core/more",
+ "category": "design",
+ "attributes": {
+ "customText": {
+ "type": "string"
+ },
+ "noTeaser": {
+ "type": "boolean",
+ "default": false
+ }
+ },
+ "supports": {
+ "customClassName": false,
+ "className": false,
+ "html": false,
+ "multiple": false
+ }
+}
</ins></span></pre></div>
<a id="trunksrcwpincludesblocksnextpageblockjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: trunk/src/wp-includes/blocks/nextpage/block.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/blocks/nextpage/block.json (rev 0)
+++ trunk/src/wp-includes/blocks/nextpage/block.json 2020-07-01 12:27:10 UTC (rev 48262)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,10 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+{
+ "name": "core/nextpage",
+ "category": "design",
+ "parent": [ "core/post-content" ],
+ "supports": {
+ "customClassName": false,
+ "className": false,
+ "html": false
+ }
+}
</ins></span></pre></div>
<a id="trunksrcwpincludesblocksparagraphblockjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: trunk/src/wp-includes/blocks/paragraph/block.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/blocks/paragraph/block.json (rev 0)
+++ trunk/src/wp-includes/blocks/paragraph/block.json 2020-07-01 12:27:10 UTC (rev 48262)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,45 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+{
+ "name": "core/paragraph",
+ "category": "text",
+ "attributes": {
+ "align": {
+ "type": "string"
+ },
+ "content": {
+ "type": "string",
+ "source": "html",
+ "selector": "p",
+ "default": ""
+ },
+ "dropCap": {
+ "type": "boolean",
+ "default": false
+ },
+ "placeholder": {
+ "type": "string"
+ },
+ "direction": {
+ "type": "string",
+ "enum": [
+ "ltr",
+ "rtl"
+ ]
+ }
+ },
+ "supports": {
+ "className": false,
+ "lightBlockWrapper": true,
+ "__experimentalColor": {
+ "linkColor": true
+ },
+ "__experimentalFontSize": true,
+ "__experimentalLineHeight": true,
+ "__experimentalFeatures": {
+ "typography": {
+ "dropCap": true
+ }
+ },
+ "__experimentalSelector": "p",
+ "__unstablePasteTextInline": true
+ }
+}
</ins></span></pre></div>
<a id="trunksrcwpincludesblockspreformattedblockjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: trunk/src/wp-includes/blocks/preformatted/block.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/blocks/preformatted/block.json (rev 0)
+++ trunk/src/wp-includes/blocks/preformatted/block.json 2020-07-01 12:27:10 UTC (rev 48262)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,16 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+{
+ "name": "core/preformatted",
+ "category": "text",
+ "attributes": {
+ "content": {
+ "type": "string",
+ "source": "html",
+ "selector": "pre",
+ "default": "",
+ "__unstablePreserveWhiteSpace": true
+ }
+ },
+ "supports": {
+ "lightBlockWrapper": true
+ }
+}
</ins></span></pre></div>
<a id="trunksrcwpincludesblockspullquoteblockjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: trunk/src/wp-includes/blocks/pullquote/block.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/blocks/pullquote/block.json (rev 0)
+++ trunk/src/wp-includes/blocks/pullquote/block.json 2020-07-01 12:27:10 UTC (rev 48262)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,38 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+{
+ "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": {
+ "align": [
+ "left",
+ "right",
+ "wide",
+ "full"
+ ]
+ }
+}
</ins></span></pre></div>
<a id="trunksrcwpincludesblocksquoteblockjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: trunk/src/wp-includes/blocks/quote/block.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/blocks/quote/block.json (rev 0)
+++ trunk/src/wp-includes/blocks/quote/block.json 2020-07-01 12:27:10 UTC (rev 48262)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,22 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+{
+ "name": "core/quote",
+ "category": "text",
+ "attributes": {
+ "value": {
+ "type": "string",
+ "source": "html",
+ "selector": "blockquote",
+ "multiline": "p",
+ "default": ""
+ },
+ "citation": {
+ "type": "string",
+ "source": "html",
+ "selector": "cite",
+ "default": ""
+ },
+ "align": {
+ "type": "string"
+ }
+ }
+}
</ins></span></pre></div>
<a id="trunksrcwpincludesblocksseparatorblockjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: trunk/src/wp-includes/blocks/separator/block.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/blocks/separator/block.json (rev 0)
+++ trunk/src/wp-includes/blocks/separator/block.json 2020-07-01 12:27:10 UTC (rev 48262)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,12 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+{
+ "name": "core/separator",
+ "category": "design",
+ "attributes": {
+ "color": {
+ "type": "string"
+ },
+ "customColor": {
+ "type": "string"
+ }
+ }
+}
</ins></span></pre></div>
<a id="trunksrcwpincludesblockssociallinksblockjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: trunk/src/wp-includes/blocks/social-links/block.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/blocks/social-links/block.json (rev 0)
+++ trunk/src/wp-includes/blocks/social-links/block.json 2020-07-01 12:27:10 UTC (rev 48262)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,12 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+{
+ "name": "core/social-links",
+ "category": "widgets",
+ "supports": {
+ "align": [
+ "left",
+ "center",
+ "right"
+ ],
+ "lightBlockWrapper": true
+ }
+}
</ins></span></pre></div>
<a id="trunksrcwpincludesblocksspacerblockjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: trunk/src/wp-includes/blocks/spacer/block.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/blocks/spacer/block.json (rev 0)
+++ trunk/src/wp-includes/blocks/spacer/block.json 2020-07-01 12:27:10 UTC (rev 48262)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,10 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+{
+ "name": "core/spacer",
+ "category": "design",
+ "attributes": {
+ "height": {
+ "type": "number",
+ "default": 100
+ }
+ }
+}
</ins></span></pre></div>
<a id="trunksrcwpincludesblockssubheadblockjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: trunk/src/wp-includes/blocks/subhead/block.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/blocks/subhead/block.json (rev 0)
+++ trunk/src/wp-includes/blocks/subhead/block.json 2020-07-01 12:27:10 UTC (rev 48262)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,18 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+{
+ "name": "core/subhead",
+ "category": "text",
+ "attributes": {
+ "align": {
+ "type": "string"
+ },
+ "content": {
+ "type": "string",
+ "source": "html",
+ "selector": "p"
+ }
+ },
+ "supports": {
+ "inserter": false,
+ "multiple": false
+ }
+}
</ins></span></pre></div>
<a id="trunksrcwpincludesblockstableblockjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: trunk/src/wp-includes/blocks/table/block.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/blocks/table/block.json (rev 0)
+++ trunk/src/wp-includes/blocks/table/block.json 2020-07-01 12:27:10 UTC (rev 48262)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,127 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+{
+ "name": "core/table",
+ "category": "text",
+ "attributes": {
+ "hasFixedLayout": {
+ "type": "boolean",
+ "default": false
+ },
+ "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": {
+ "align": true
+ }
+}
</ins></span></pre></div>
<a id="trunksrcwpincludesblockstextcolumnsblockjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: trunk/src/wp-includes/blocks/text-columns/block.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/blocks/text-columns/block.json (rev 0)
+++ trunk/src/wp-includes/blocks/text-columns/block.json 2020-07-01 12:27:10 UTC (rev 48262)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,32 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+{
+ "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": false
+ }
+}
</ins></span></pre></div>
<a id="trunksrcwpincludesblocksverseblockjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: trunk/src/wp-includes/blocks/verse/block.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/blocks/verse/block.json (rev 0)
+++ trunk/src/wp-includes/blocks/verse/block.json 2020-07-01 12:27:10 UTC (rev 48262)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,19 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+{
+ "name": "core/verse",
+ "category": "text",
+ "attributes": {
+ "content": {
+ "type": "string",
+ "source": "html",
+ "selector": "pre",
+ "default": "",
+ "__unstablePreserveWhiteSpace": true
+ },
+ "textAlign": {
+ "type": "string"
+ }
+ },
+ "supports": {
+ "lightBlockWrapper": true
+ }
+}
</ins></span></pre></div>
<a id="trunksrcwpincludesblocksvideoblockjson"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: trunk/src/wp-includes/blocks/video/block.json</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/blocks/video/block.json (rev 0)
+++ trunk/src/wp-includes/blocks/video/block.json 2020-07-01 12:27:10 UTC (rev 48262)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,68 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+{
+ "name": "core/video",
+ "category": "media",
+ "attributes": {
+ "autoplay": {
+ "type": "boolean",
+ "source": "attribute",
+ "selector": "video",
+ "attribute": "autoplay"
+ },
+ "caption": {
+ "type": "string",
+ "source": "html",
+ "selector": "figcaption"
+ },
+ "controls": {
+ "type": "boolean",
+ "source": "attribute",
+ "selector": "video",
+ "attribute": "controls",
+ "default": true
+ },
+ "id": {
+ "type": "number"
+ },
+ "loop": {
+ "type": "boolean",
+ "source": "attribute",
+ "selector": "video",
+ "attribute": "loop"
+ },
+ "muted": {
+ "type": "boolean",
+ "source": "attribute",
+ "selector": "video",
+ "attribute": "muted"
+ },
+ "poster": {
+ "type": "string",
+ "source": "attribute",
+ "selector": "video",
+ "attribute": "poster"
+ },
+ "preload": {
+ "type": "string",
+ "source": "attribute",
+ "selector": "video",
+ "attribute": "preload",
+ "default": "metadata"
+ },
+ "src": {
+ "type": "string",
+ "source": "attribute",
+ "selector": "video",
+ "attribute": "src"
+ },
+ "playsInline": {
+ "type": "boolean",
+ "source": "attribute",
+ "selector": "video",
+ "attribute": "playsinline"
+ }
+ },
+ "supports": {
+ "align": true,
+ "lightBlockWrapper": true
+ }
+}
</ins></span></pre></div>
<a id="trunksrcwpsettingsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-settings.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-settings.php 2020-07-01 09:54:37 UTC (rev 48261)
+++ trunk/src/wp-settings.php 2020-07-01 12:27:10 UTC (rev 48262)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -285,17 +285,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> require ABSPATH . WPINC . '/class-wp-block-list.php';
</span><span class="cx" style="display: block; padding: 0 10px"> require ABSPATH . WPINC . '/class-wp-block-parser.php';
</span><span class="cx" style="display: block; padding: 0 10px"> require ABSPATH . WPINC . '/blocks.php';
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-require ABSPATH . WPINC . '/blocks/archives.php';
-require ABSPATH . WPINC . '/blocks/block.php';
-require ABSPATH . WPINC . '/blocks/calendar.php';
-require ABSPATH . WPINC . '/blocks/categories.php';
-require ABSPATH . WPINC . '/blocks/latest-comments.php';
-require ABSPATH . WPINC . '/blocks/latest-posts.php';
-require ABSPATH . WPINC . '/blocks/rss.php';
-require ABSPATH . WPINC . '/blocks/search.php';
-require ABSPATH . WPINC . '/blocks/shortcode.php';
-require ABSPATH . WPINC . '/blocks/social-link.php';
-require ABSPATH . WPINC . '/blocks/tag-cloud.php';
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+require ABSPATH . WPINC . '/blocks/index.php';
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $GLOBALS['wp_embed'] = new WP_Embed();
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunktoolswebpackpackagesjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tools/webpack/packages.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tools/webpack/packages.js 2020-07-01 09:54:37 UTC (rev 48261)
+++ trunk/tools/webpack/packages.js 2020-07-01 12:27:10 UTC (rev 48262)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -102,7 +102,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 'wp-polyfill-dom-rect.min.js': 'polyfill-library/polyfills/DOMRect/polyfill.js',
</span><span class="cx" style="display: block; padding: 0 10px"> };
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- const blockNames = [
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ const dynamicBlockFolders = [
</ins><span class="cx" style="display: block; padding: 0 10px"> 'archives',
</span><span class="cx" style="display: block; padding: 0 10px"> 'block',
</span><span class="cx" style="display: block; padding: 0 10px"> 'calendar',
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -115,17 +115,51 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 'social-link',
</span><span class="cx" style="display: block; padding: 0 10px"> 'tag-cloud',
</span><span class="cx" style="display: block; padding: 0 10px"> ];
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ const blockFolders = [
+ 'audio',
+ 'button',
+ 'buttons',
+ 'classic',
+ 'code',
+ 'column',
+ 'columns',
+ 'file',
+ 'gallery',
+ 'group',
+ 'heading',
+ 'html',
+ 'image',
+ 'list',
+ 'media-text',
+ 'missing',
+ 'more',
+ 'nextpage',
+ 'paragraph',
+ 'preformatted',
+ 'pullquote',
+ 'quote',
+ 'separator',
+ 'social-links',
+ 'spacer',
+ 'subhead',
+ 'table',
+ 'text-columns',
+ 'verse',
+ 'video',
+ ...dynamicBlockFolders,
+ ];
</ins><span class="cx" style="display: block; padding: 0 10px"> const phpFiles = {
</span><span class="cx" style="display: block; padding: 0 10px"> 'block-serialization-default-parser/parser.php': 'wp-includes/class-wp-block-parser.php',
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- ...blockNames.reduce( ( files, blockName ) => {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ ...dynamicBlockFolders.reduce( ( files, blockName ) => {
</ins><span class="cx" style="display: block; padding: 0 10px"> files[ `block-library/src/${ blockName }/index.php` ] = `wp-includes/blocks/${ blockName }.php`;
</span><span class="cx" style="display: block; padding: 0 10px"> return files;
</span><span class="cx" style="display: block; padding: 0 10px"> } , {} ),
</span><span class="cx" style="display: block; padding: 0 10px"> };
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- const blockMetadataCopies = {
- from: join( baseDir, `node_modules/@wordpress/block-library/src/+(${ blockNames.join( '|' ) })/block.json` ),
- test: new RegExp( `\/([^/]+)\/block\.json$` ),
- to: join( baseDir, `${ buildTarget }/blocks/[1]/block.json` ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ const blockMetadataFiles = {
+ ...blockFolders.reduce( ( files, blockName ) => {
+ files[ `block-library/src/${ blockName }/block.json` ] = `wp-includes/blocks/${ blockName }/block.json`;
+ return files;
+ } , {} ),
</ins><span class="cx" style="display: block; padding: 0 10px"> };
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> const developmentCopies = mapVendorCopies( vendors, buildTarget );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -172,6 +206,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> to: join( baseDir, `src/${ phpFiles[ filename ] }` ),
</span><span class="cx" style="display: block; padding: 0 10px"> } ) );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ const blockMetadataCopies = Object.keys( blockMetadataFiles ).map( ( filename ) => ( {
+ from: join( baseDir, `node_modules/@wordpress/${ filename }` ),
+ to: join( baseDir, `src/${ blockMetadataFiles[ filename ] }` ),
+ } ) );
+
</ins><span class="cx" style="display: block; padding: 0 10px"> const config = {
</span><span class="cx" style="display: block; padding: 0 10px"> mode,
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -254,7 +293,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> ...vendorCopies,
</span><span class="cx" style="display: block; padding: 0 10px"> ...cssCopies,
</span><span class="cx" style="display: block; padding: 0 10px"> ...phpCopies,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- blockMetadataCopies,
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ ...blockMetadataCopies,
</ins><span class="cx" style="display: block; padding: 0 10px"> ],
</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>