From 9c7a6bb6a40b1554c8b243535ed08ddee14f4970 Mon Sep 17 00:00:00 2001
From: Douglas Johnson
+ { displayName }
+ {$display_name} {$display_name} {$display_name}
- { displayName }
+ { display_name }
- { display_name }
+ {
+ isLink ? (
+ event.preventDefault() }
+ >
+ { display_name }
+
+ ) : display_name
+ }
{$display_name} %s
%s
', get_block_wrapper_attributes(), $inner_content ); } + /** + * Provide Author Archive Context + * + * @param array $context, + * @param array $parsed_block + * @param null|WP_Block $parent_block + * @return array + */ + public static function provide_author_archive_context( array $context, array $parsed_block, ?WP_Block $parent_block ) : array { + if ( ! is_author() ) { + return $context; + } + + if ( null === $parsed_block['blockName'] ) { + return $context; + } + + // author if you do an individual piece of a coauthor outside of a coauthor template. + if ( 'cap/coauthor-' === substr( $parsed_block['blockName'], 0, 13 ) && ( null === $parent_block || 'core/null' !== $parent_block->name ?? '' ) ) { + return array( + 'author_name' => get_query_var( 'author_name' ) + ); + } + + return $context; + } } diff --git a/blocks/coauthor-display-name/src/block.json b/blocks/coauthor-display-name/src/block.json index 4acc124b..7458c3cb 100644 --- a/blocks/coauthor-display-name/src/block.json +++ b/blocks/coauthor-display-name/src/block.json @@ -3,11 +3,10 @@ "apiVersion": 2, "name": "cap/coauthor-display-name", "version": "0.1.0", - "title": "Co-Author Display Name", + "title": "Co-Author Name", "category": "widgets", "icon": "smiley", - "description": "Display a co-author's preferred name.", - "parent": ["cap/coauthors"], + "description": "Display a co-author's name.", "supports": { "html": false, "color": { @@ -37,8 +36,7 @@ } }, "usesContext": [ - "display_name", - "link" + "author_name" ], "attributes": { "isLink": { diff --git a/blocks/coauthor-display-name/src/edit.js b/blocks/coauthor-display-name/src/edit.js index fa8a06b7..8f394a8d 100644 --- a/blocks/coauthor-display-name/src/edit.js +++ b/blocks/coauthor-display-name/src/edit.js @@ -4,9 +4,10 @@ * * @see https://developer.wordpress.org/block-editor/reference-guides/packages/packages-block-editor/#useblockprops */ -import { useBlockProps } from '@wordpress/block-editor'; -import { InspectorControls } from '@wordpress/block-editor'; +import { useBlockProps, InspectorControls } from '@wordpress/block-editor'; import { TextControl, PanelBody, ToggleControl } from '@wordpress/components'; +import { useEffect, useState } from '@wordpress/element'; +import { useDispatch } from '@wordpress/data'; import { __ } from '@wordpress/i18n'; /** @@ -18,8 +19,47 @@ import { __ } from '@wordpress/i18n'; * @return {WPElement} Element to render. */ export default function Edit( { context, attributes, setAttributes } ) { - const { display_name, link } = context; + const { author_name } = context; const { isLink, rel } = attributes; + const [ author, setAuthor ] = useState({ + link: '#', + display_name: 'CoAuthor Name' + }); + const noticesDispatch = useDispatch('core/notices'); + + useEffect(() => { + if ( ! author_name ) { + return; + } + + const controller = new AbortController(); + + apiFetch( { + path: `/coauthor-blocks/v1/coauthor/${author_name}`, + signal: controller.signal + } ) + .then( setAuthor ) + .catch( handleError ) + + return () => { + controller.abort(); + } + }, [author_name]); + + /** + * Handle Error + * + * @param {Error} + */ + function handleError( error ) { + if ( 'AbortError' === error.name ) { + return; + } + noticesDispatch.createErrorNotice( error.message, { isDismissible: true } ); + } + + const { link, display_name } = author; + return ( <>
@@ -39,7 +79,7 @@ export default function Edit( { context, attributes, setAttributes } ) {
Post hoc impie perpetratum quod in aliis quoque iam timebatur, tamquam licentia crudelitati indulta per suspicionum nebulas aestimati quidam. Placeholder description from Co-Authors block. %s %s
+
{
isLink ? (
Date: Thu, 3 Aug 2023 14:15:03 -0400
Subject: [PATCH 032/123] open up permissions for single coauthor
---
php/api/endpoints/class-coauthor-blocks-controller.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/php/api/endpoints/class-coauthor-blocks-controller.php b/php/api/endpoints/class-coauthor-blocks-controller.php
index e74389ff..badb4004 100644
--- a/php/api/endpoints/class-coauthor-blocks-controller.php
+++ b/php/api/endpoints/class-coauthor-blocks-controller.php
@@ -75,7 +75,7 @@ public function register_routes() : void {
array(
'methods' => WP_REST_Server::READABLE,
'callback' => array( $this, 'get_item' ),
- 'permission_callback' => array( $this, 'get_item_permission_check' ),
+ 'permission_callback' => '__return_true',
)
)
);
From d248c189fe80e7fe52cfe55cf92e733bec49586e Mon Sep 17 00:00:00 2001
From: Douglas Johnson Placeholder description from Co-Authors block. Placeholder description from Co-Authors block. Placeholder description from Co-Authors block.
+ { 'Coauthor Feature Image – hello from the saved content!' }
+ Post hoc impie perpetratum quod in aliis quoque iam timebatur, tamquam licentia crudelitati indulta per suspicionum nebulas aestimati quidam. Placeholder description from Co-Authors block. Placeholder description from Co-Authors block. Placeholder description from Co-Authors block. Placeholder description from Co-Authors block. Placeholder description from Co-Authors block. Placeholder description from Co-Authors block. Placeholder description from Co-Authors block. Placeholder description from Co-Authors block. Placeholder description from Co-Authors block. Placeholder description from Co-Authors block. Placeholder description from Co-Authors block. Placeholder description from Co-Authors block. Placeholder description from Co-Authors block. %s )"),value:"p"},{label:"",value:"span"},{label:"
+
- { 'Coauthor Feature Image – hello from the saved content!' }
- )"),value:"p"},{label:"",value:"span"},{label:" )"),value:"p"},{label:"",value:"span"},{label:" Placeholder description from Co-Authors block. )"),value:"p"},{label:"",value:"span"},{label:" )"),value:"p"},{label:"",value:"span"},{label:" Placeholder description from Co-Authors block.",value:"h1"},{label:"
",value:"h2"},{label:"
",value:"h3"},{label:"
",value:"h4"},{label:"
",value:"h5"},{label:"
",value:"h6"}],value:h,onChange:e=>c({tagName:e})})))}})}()}();
\ No newline at end of file
diff --git a/blocks/coauthor-display-name/class-cap-block-coauthor-display-name.php b/blocks/coauthor-display-name/class-cap-block-coauthor-display-name.php
index 9829c273..d320e692 100644
--- a/blocks/coauthor-display-name/class-cap-block-coauthor-display-name.php
+++ b/blocks/coauthor-display-name/class-cap-block-coauthor-display-name.php
@@ -43,19 +43,27 @@ public static function render_block( array $attributes, string $content, WP_Bloc
}
$display_name = $author['display_name'] ?? '';
+ $link = $author['link'] ?? '';
if ( '' === $display_name ) {
return '';
}
- $link = $author['link'] ?? '';
- $rel = $attributes['rel'] ?? '';
+ $attributes = array_merge(
+ array(
+ 'isLink' => false,
+ 'rel' => '',
+ 'tagName' => 'p',
+ 'textAlign' => '',
+ ),
+ $attributes
+ );
if ( '' !== $link && true === $attributes['isLink'] ) {
$link_attributes = Templating::render_attributes(
array(
'href' => $link,
- 'rel' => $rel,
+ 'rel' => $attributes['rel'],
'title' => sprintf( __( 'Posts by %s', 'co-authors-plus' ), $display_name ),
)
);
@@ -64,8 +72,10 @@ public static function render_block( array $attributes, string $content, WP_Bloc
$inner_content = $display_name;
}
+ $tag_name = self::sanitize_tag_name( $attributes['tagName'] );
+
return Templating::render_element(
- 'p',
+ $tag_name,
get_block_wrapper_attributes(
self::get_custom_block_wrapper_attributes( $attributes )
),
@@ -73,6 +83,16 @@ public static function render_block( array $attributes, string $content, WP_Bloc
);
}
+ /**
+ * Sanitize Tag Name
+ */
+ public static function sanitize_tag_name( string $tag_name ) : string {
+ if ( in_array( $tag_name, array_keys( wp_kses_allowed_html('post') ), true ) ) {
+ return $tag_name;
+ }
+ return 'p';
+ }
+
/**
* Get Custom Block Wrapper Attributes
*
diff --git a/blocks/coauthor-display-name/src/block.json b/blocks/coauthor-display-name/src/block.json
index aec2e661..69b0953b 100644
--- a/blocks/coauthor-display-name/src/block.json
+++ b/blocks/coauthor-display-name/src/block.json
@@ -47,6 +47,10 @@
"type": "string",
"default": "author"
},
+ "tagName": {
+ "type": "string",
+ "default": "p"
+ },
"textAlign": {
"type": "string"
}
diff --git a/blocks/coauthor-display-name/src/edit.js b/blocks/coauthor-display-name/src/edit.js
index 19c6df7f..4ab3da36 100644
--- a/blocks/coauthor-display-name/src/edit.js
+++ b/blocks/coauthor-display-name/src/edit.js
@@ -11,7 +11,7 @@ import {
BlockControls,
store as blockEditorStore
} from '@wordpress/block-editor';
-import { TextControl, PanelBody, ToggleControl } from '@wordpress/components';
+import { TextControl, PanelBody, ToggleControl, SelectControl } from '@wordpress/components';
import { __ } from '@wordpress/i18n';
import { useSelect } from '@wordpress/data';
import classnames from 'classnames';
@@ -26,11 +26,13 @@ import classnames from 'classnames';
*/
export default function Edit( { context, attributes, setAttributes } ) {
- const { isLink, rel, textAlign } = attributes;
+ const { isLink, rel, tagName, textAlign } = attributes;
const authorPlaceholder = useSelect( select => select( 'cap/blocks' ).getAuthorPlaceholder(), []);
const author = context['cap/author'] || authorPlaceholder;
const { link, display_name } = author;
+ const TagName = tagName;
+
return (
<>
', value: 'h1' },
+ { label: '
', value: 'h2' },
+ { label: '
', value: 'h3' },
+ { label: '
', value: 'h4' },
+ { label: '
', value: 'h5' },
+ { label: '
', value: 'h6' },
+ ] }
+ value={ tagName }
+ onChange={ (value) => setAttributes( {tagName: value}) }
+ // help={ htmlElementMessages[ tagName ] }
+ />
+
",value:"h1"},{label:"
",value:"h2"},{label:"
",value:"h3"},{label:"
",value:"h4"},{label:"
",value:"h5"},{label:"
",value:"h6"}],value:h,onChange:e=>c({tagName:e})})))}})}()}();
\ No newline at end of file
diff --git a/blocks/coauthor-feature-image/build/style-index.css b/blocks/coauthor-feature-image/build/style-index.css
deleted file mode 100644
index 3805a8ed..00000000
--- a/blocks/coauthor-feature-image/build/style-index.css
+++ /dev/null
@@ -1 +0,0 @@
-.wp-block-cap-coauthor-feature-image{margin-bottom:0}.wp-block-cap-coauthor-feature-image :where(img){height:auto;max-width:100%;vertical-align:bottom}.wp-block-cap-coauthors.is-layout-cap-inline .wp-block-cap-coauthor-feature-image{display:inline}.wp-block-cap-coauthors.is-layout-cap-inline .wp-block-cap-coauthor-feature-image :where(img){vertical-align:middle}.wp-block-cap-coauthor-feature-image:is(.alignfull,.alignwide) :where(img){width:100%}.wp-block-cap-coauthor-feature-image:is(.alignleft,.alignright,.aligncenter){display:table}
diff --git a/blocks/coauthor-feature-image/build/block.json b/blocks/coauthor-featured-image/build/block.json
similarity index 90%
rename from blocks/coauthor-feature-image/build/block.json
rename to blocks/coauthor-featured-image/build/block.json
index 1bb5c86b..f3ac35c7 100644
--- a/blocks/coauthor-feature-image/build/block.json
+++ b/blocks/coauthor-featured-image/build/block.json
@@ -1,12 +1,12 @@
{
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 3,
- "name": "cap/coauthor-feature-image",
+ "name": "cap/coauthor-featured-image",
"version": "0.1.0",
- "title": "Coauthor Feature Image",
+ "title": "Co-Author Featured Image",
"category": "widgets",
"icon": "smiley",
- "description": "Feature Image from a Guest Author profile.",
+ "description": "Featured Image from a Guest Author profile.",
"supports": {
"align": [
"left",
diff --git a/blocks/coauthor-feature-image/build/index.asset.php b/blocks/coauthor-featured-image/build/index.asset.php
similarity index 69%
rename from blocks/coauthor-feature-image/build/index.asset.php
rename to blocks/coauthor-featured-image/build/index.asset.php
index d7d7c714..2848ff6f 100644
--- a/blocks/coauthor-feature-image/build/index.asset.php
+++ b/blocks/coauthor-featured-image/build/index.asset.php
@@ -1 +1 @@
- array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => 'a3bbf694533a78c1f79e');
+ array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => '985a000f28e19e79fe0d');
diff --git a/blocks/coauthor-feature-image/build/index.js b/blocks/coauthor-featured-image/build/index.js
similarity index 52%
rename from blocks/coauthor-feature-image/build/index.js
rename to blocks/coauthor-featured-image/build/index.js
index 7c4f9cd0..f5539e5b 100644
--- a/blocks/coauthor-feature-image/build/index.js
+++ b/blocks/coauthor-featured-image/build/index.js
@@ -1 +1 @@
-!function(){"use strict";var e,t={983:function(){var e=window.wp.blocks,t=window.wp.element,l=window.wp.i18n,i=window.wp.blockEditor,a=window.wp.components,n=window.wp.data,o=window.wp.coreData;const r=(0,t.createElement)(t.Fragment,null,(0,t.createElement)(a.__experimentalToggleGroupControlOption,{value:"cover",label:(0,l._x)("Cover","Scale option for Image dimension control")}),(0,t.createElement)(a.__experimentalToggleGroupControlOption,{value:"contain",label:(0,l._x)("Contain","Scale option for Image dimension control")}),(0,t.createElement)(a.__experimentalToggleGroupControlOption,{value:"fill",label:(0,l._x)("Fill","Scale option for Image dimension control")})),s="cover",c={cover:(0,l.__)("Image is scaled and cropped to fill the entire space without being distorted."),contain:(0,l.__)("Image is scaled to fill the space without clipping nor distorting."),fill:(0,l.__)("Image will be stretched and distorted to completely fill the space.")};var u=e=>{let{clientId:n,attributes:{aspectRatio:o,width:u,height:h,scale:g,sizeSlug:m},setAttributes:d,imageSizeOptions:p=[]}=e;const _=(0,a.__experimentalUseCustomUnits)({availableUnits:(0,i.useSetting)("spacing.units")||["px","%","vw","em","rem"]}),v=(e,t)=>{const l=parseFloat(t);isNaN(l)&&t||d({[e]:l<0?"0":t})},w=(0,l._x)("Scale","Image scaling options"),b=h||o&&"auto"!==o;return(0,t.createElement)(i.InspectorControls,{group:"dimensions"},(0,t.createElement)(a.__experimentalToolsPanelItem,{hasValue:()=>!!o,label:(0,l.__)("Aspect ratio"),onDeselect:()=>d({aspectRatio:void 0}),resetAllFilter:()=>({aspectRatio:void 0}),isShownByDefault:!0,panelId:n},(0,t.createElement)(a.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Aspect ratio"),value:o,options:[{label:(0,l.__)("Original"),value:"auto"},{label:(0,l.__)("Square"),value:"1"},{label:(0,l.__)("16:9"),value:"16/9"},{label:(0,l.__)("4:3"),value:"4/3"},{label:(0,l.__)("3:2"),value:"3/2"},{label:(0,l.__)("9:16"),value:"9/16"},{label:(0,l.__)("3:4"),value:"3/4"},{label:(0,l.__)("2:3"),value:"2/3"}],onChange:e=>d({aspectRatio:e})})),(0,t.createElement)(a.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>!!h,label:(0,l.__)("Height"),onDeselect:()=>d({height:void 0}),resetAllFilter:()=>({height:void 0}),isShownByDefault:!0,panelId:n},(0,t.createElement)(a.__experimentalUnitControl,{label:(0,l.__)("Height"),labelPosition:"top",value:h||"",min:0,onChange:e=>v("height",e),units:_})),(0,t.createElement)(a.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>!!u,label:(0,l.__)("Width"),onDeselect:()=>d({width:void 0}),resetAllFilter:()=>({width:void 0}),isShownByDefault:!0,panelId:n},(0,t.createElement)(a.__experimentalUnitControl,{label:(0,l.__)("Width"),labelPosition:"top",value:u||"",min:0,onChange:e=>v("width",e),units:_})),b&&(0,t.createElement)(a.__experimentalToolsPanelItem,{hasValue:()=>!!g&&g!==s,label:w,onDeselect:()=>d({scale:s}),resetAllFilter:()=>({scale:s}),isShownByDefault:!0,panelId:n},(0,t.createElement)(a.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:w,value:g,help:c[g],onChange:e=>d({scale:e}),isBlock:!0},r)),!!p.length&&(0,t.createElement)(a.__experimentalToolsPanelItem,{hasValue:()=>!!m,label:(0,l.__)("Resolution"),onDeselect:()=>d({sizeSlug:void 0}),resetAllFilter:()=>({sizeSlug:void 0}),isShownByDefault:!1,panelId:n},(0,t.createElement)(a.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Resolution"),value:m||"full",options:p,onChange:e=>d({sizeSlug:e}),help:(0,l.__)("Select the size of the source image.")})))};function h(e){let{dimensions:i,style:a,className:n}=e;const o=(0,t.useMemo)((()=>function(e){let{width:t,height:l}=e;return`data:image/svg+xml;charset=UTF-8,${encodeURIComponent(``.replace(/[\t\n\r]/gim,"").replace(/\s\s+/g," ")).replace(/\(/g,"%28").replace(/\)/g,"%29")}`}(i)),[i]);return(0,t.createElement)("img",{alt:(0,l.__)("Placeholder image"),className:n,src:o,style:a,width:i.width,height:i.height})}function g(e,t){var l,i;return null==e||null===(l=e.media_details)||void 0===l||null===(i=l.sizes[t])||void 0===i?void 0:i.source_url}var m=JSON.parse('{"u2":"cap/coauthor-feature-image"}');(0,e.registerBlockType)(m.u2,{edit:function(e){let{attributes:r,setAttributes:s,context:c,clientId:m}=e;const{aspectRatio:d,height:p,isLink:_,rel:v,scale:w,sizeSlug:b,verticalAlign:f,width:x}=r,S=(0,n.useSelect)((e=>e("cap/blocks").getAuthorPlaceholder()),[]),E=c["cap/author"]||S,C=(0,n.useSelect)((e=>0!==E.featured_media&&e(o.store).getMedia(E.featured_media,{context:"view"})),[E.featured_media]),{imageSizes:y,imageDimensions:k}=(0,n.useSelect)((e=>e(i.store).getSettings()),[]),I=y.map((e=>{let{name:t,slug:l}=e;return{value:l,label:t}})),O=function(e,t,l){if(e&&"full"===l)return l;const i=function(e,t){if(!e)return Object.keys(t);const l=Object.keys(e.media_details.sizes),i=Object.keys(t);return Array.from(new Set([...l.filter((e=>i.includes(e)))]))}(e,t);return l&&i.includes(l)?l:i[Math.max(0,i.length-1)]}(C,k,b),B=function(e,t,l){if(!e)return{};const i=e.media_details.sizes[l];if("full"===l)return{width:i.width,height:i.height};const a=t[l];if(!0===a.crop||a.width===a.height)return{width:a.width,height:a.height};const n=i.width/i.height;return a.width>a.height?{width:a.width,height:a.width/n}:{width:a.height*n,height:a.height}}(C,k,O),A=C?{}:function(e,t){const l=e[t];return!0===l.crop||l.width===l.height?{width:l.width,height:l.height}:l.width>l.height?{width:l.width,height:l.width}:{width:l.height,height:l.height}}(k,O),T=(0,i.__experimentalUseBorderProps)(r),N=0!==E.id&&!1===C;return(0,t.createElement)(t.Fragment,null,(0,t.createElement)(u,{clientId:m,attributes:r,setAttributes:s,imageSizeOptions:I}),N?null:(0,t.createElement)("figure",(0,i.useBlockProps)(),C?(0,t.createElement)("img",{alt:(0,l.__)("Author feature image"),className:T.className,src:g(C,O),style:{width:!x&&p?"auto":x,height:!p&&x?"auto":p,aspectRatio:d,objectFit:w,verticalAlign:f,...T.style},width:B.width,height:B.height}):(0,t.createElement)(h,{className:T.className,dimensions:A,style:{width:!x&&p?"auto":x,height:!p&&x?"auto":p,aspectRatio:d,objectFit:w,verticalAlign:f,...T.style}})),(0,t.createElement)(i.InspectorControls,null,(0,t.createElement)(a.PanelBody,{title:(0,l.__)("Feature Image Settings")},(0,t.createElement)(a.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Make feature image a link to author archive."),onChange:()=>s({isLink:!_}),checked:_}),_&&(0,t.createElement)(a.TextControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Link rel"),value:v,onChange:e=>s({rel:e})})),(0,t.createElement)(a.PanelBody,{initialOpen:!1,title:(0,l.__)("Coauthors Layout")},(0,t.createElement)(a.SelectControl,{label:(0,l.__)("Vertical align"),value:f,options:[{value:"",label:"Default"},{value:"baseline",label:"Baseline"},{value:"bottom",label:"Bottom"},{value:"middle",label:"Middle"},{value:"sub",label:"Sub"},{value:"super",label:"Super"},{value:"text-bottom",label:"Text Bottom"},{value:"text-top",label:"Text Top"},{value:"top",label:"Top"}],onChange:e=>{s({verticalAlign:""===e?void 0:e})},help:(0,l.__)("Vertical alignment defaults to bottom in the block layout and middle in the inline layout.")}))))}})}},l={};function i(e){var a=l[e];if(void 0!==a)return a.exports;var n=l[e]={exports:{}};return t[e](n,n.exports,i),n.exports}i.m=t,e=[],i.O=function(t,l,a,n){if(!l){var o=1/0;for(u=0;u
",value:"h1"},{label:"
",value:"h2"},{label:"
",value:"h3"},{label:"
",value:"h4"},{label:"
",value:"h5"},{label:"
",value:"h6"}],value:h,onChange:e=>c({tagName:e})})))}})}()}();
\ No newline at end of file
diff --git a/blocks/coauthor-display-name/class-cap-block-coauthor-display-name.php b/blocks/coauthor-name/class-block-coauthor-name.php
similarity index 95%
rename from blocks/coauthor-display-name/class-cap-block-coauthor-display-name.php
rename to blocks/coauthor-name/class-block-coauthor-name.php
index d320e692..14cf2789 100644
--- a/blocks/coauthor-display-name/class-cap-block-coauthor-display-name.php
+++ b/blocks/coauthor-name/class-block-coauthor-name.php
@@ -1,14 +1,18 @@
array('wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '992aad811383c5f0a244');
+ array('wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => 'ec17272f585edf49f005');
diff --git a/blocks/coauthors/build/index.js b/blocks/coauthors/build/index.js
index 9344efdf..465b1cff 100644
--- a/blocks/coauthors/build/index.js
+++ b/blocks/coauthors/build/index.js
@@ -1 +1 @@
-!function(){var e,t={911:function(e,t,n){"use strict";var o=window.wp.blocks,r=window.wp.element,l=window.wp.blockEditor,a=window.wp.components,i=window.wp.apiFetch,c=n.n(i),s=window.wp.data,u=window.wp.i18n,p=window.wp.primitives,v=(0,r.createElement)(p.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(p.Path,{d:"M4 4v1.5h16V4H4zm8 8.5h8V11h-8v1.5zM4 20h16v-1.5H4V20zm4-8c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2z"})),f=(0,r.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(p.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-2zm-7.8 16.5H5c-.3 0-.5-.2-.5-.5v-6.2h6.8v6.7zm0-8.3H4.5V5c0-.3.2-.5.5-.5h6.2v6.7zm8.3 7.8c0 .3-.2.5-.5.5h-6.2v-6.8h6.8V19zm0-7.8h-6.8V4.5H19c.3 0 .5.2.5.5v6.2z",fillRule:"evenodd",clipRule:"evenodd"})),d=n(779),h=n.n(d);function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t
",value:"h1"},{label:"
",value:"h2"},{label:"
",value:"h3"},{label:"
",value:"h4"},{label:"
",value:"h5"},{label:"
",value:"h6"}],value:h,onChange:e=>c({tagName:e})})))}})}()}();
\ No newline at end of file
+!function(){var e={184:function(e,t){var n;!function(){"use strict";var l={}.hasOwnProperty;function r(){for(var e=[],t=0;t
",value:"h1"},{label:"
",value:"h2"},{label:"
",value:"h3"},{label:"
",value:"h4"},{label:"
",value:"h5"},{label:"
",value:"h6"}],value:h,onChange:e=>c({tagName:e})})))}})}()}();
\ No newline at end of file
diff --git a/blocks/coauthors/build/block.json b/build/blocks/block-coauthors/block.json
similarity index 100%
rename from blocks/coauthors/build/block.json
rename to build/blocks/block-coauthors/block.json
diff --git a/blocks/coauthors/build/index.asset.php b/build/blocks/block-coauthors/index.asset.php
similarity index 64%
rename from blocks/coauthors/build/index.asset.php
rename to build/blocks/block-coauthors/index.asset.php
index d28b2076..693147f2 100644
--- a/blocks/coauthors/build/index.asset.php
+++ b/build/blocks/block-coauthors/index.asset.php
@@ -1 +1 @@
- array('wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => 'ec17272f585edf49f005');
+ array('wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '86b33ca9598a93fd863e');
diff --git a/blocks/coauthors/build/index.js b/build/blocks/block-coauthors/index.js
similarity index 69%
rename from blocks/coauthors/build/index.js
rename to build/blocks/block-coauthors/index.js
index 465b1cff..922f7af2 100644
--- a/blocks/coauthors/build/index.js
+++ b/build/blocks/block-coauthors/index.js
@@ -1 +1 @@
-!function(){var e,t={911:function(e,t,n){"use strict";var o=window.wp.blocks,r=window.wp.element,l=window.wp.blockEditor,a=window.wp.components,i=window.wp.apiFetch,c=n.n(i),s=window.wp.data,u=window.wp.i18n,p=window.wp.primitives,v=(0,r.createElement)(p.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(p.Path,{d:"M4 4v1.5h16V4H4zm8 8.5h8V11h-8v1.5zM4 20h16v-1.5H4V20zm4-8c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2z"})),f=(0,r.createElement)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(p.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-2zm-7.8 16.5H5c-.3 0-.5-.2-.5-.5v-6.2h6.8v6.7zm0-8.3H4.5V5c0-.3.2-.5.5-.5h6.2v6.7zm8.3 7.8c0 .3-.2.5-.5.5h-6.2v-6.8h6.8V19zm0-7.8h-6.8V4.5H19c.3 0 .5.2.5.5v6.2z",fillRule:"evenodd",clipRule:"evenodd"})),d=n(779),h=n.n(d);function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t