diff --git a/apps/full-site-editing/full-site-editing-plugin/blocks/content-slot/edit.js~HEAD b/apps/full-site-editing/full-site-editing-plugin/blocks/content-slot/edit.js~HEAD deleted file mode 100644 index 3d861ef08ad91..0000000000000 --- a/apps/full-site-editing/full-site-editing-plugin/blocks/content-slot/edit.js~HEAD +++ /dev/null @@ -1,87 +0,0 @@ -/* eslint-disable wpcalypso/jsx-classname-namespace */ -/** - * External dependencies - */ -import classNames from 'classnames'; -import { get } from 'lodash'; - -/** - * WordPress dependencies - */ -import { IconButton, Placeholder, Toolbar } from '@wordpress/components'; -import { withState } from '@wordpress/compose'; -import { BlockControls } from '@wordpress/editor'; -import { Fragment, RawHTML } from '@wordpress/element'; -import { __ } from '@wordpress/i18n'; - -/** - * Internal dependencies - */ -import PostAutocomplete from '../../components/post-autocomplete'; - -const ContentSlotEdit = withState( { - isEditing: false, - selectedPost: null, -} )( ( { attributes, isEditing, selectedPost, setState } ) => { - const { align } = attributes; - - const toggleEditing = () => setState( { isEditing: ! isEditing } ); - - const onSelectPost = post => { - setState( { isEditing: false, selectedPost: post } ); - }; - - const showToggleButton = ! isEditing || !! selectedPost; - const showPlaceholder = isEditing || ! selectedPost; - const showPreview = ! isEditing && !! selectedPost; - - return ( - - { showToggleButton && ( - - - - - - ) } -
- { showPlaceholder && ( - -
-
{ __( 'Select something to preview:' ) }
- - { !! selectedPost && ( - { __( 'Edit' ) } - ) } -
-
- ) } - { showPreview && ( - - { get( selectedPost, 'content.rendered' ) } - - ) } -
-
- ); -} ); - -export default ContentSlotEdit; diff --git a/apps/full-site-editing/full-site-editing-plugin/blocks/content-slot/index.js~HEAD b/apps/full-site-editing/full-site-editing-plugin/blocks/content-slot/index.js~HEAD deleted file mode 100644 index 4c4e50cacb37f..0000000000000 --- a/apps/full-site-editing/full-site-editing-plugin/blocks/content-slot/index.js~HEAD +++ /dev/null @@ -1,27 +0,0 @@ -/** - * WordPress dependencies - */ -import { registerBlockType } from '@wordpress/blocks'; -import { __ } from '@wordpress/i18n'; - -/** - * Internal dependencies - */ -import edit from './edit'; -import './style.scss'; - -registerBlockType( 'a8c/content-slot', { - title: __( 'Content Slot' ), - description: __( 'Placeholder for a post or a page.' ), - icon: 'layout', - category: 'layout', - supports: { - align: [ 'wide', 'full' ], - anchor: true, - html: false, - multiple: false, - reusable: false, - }, - edit, - save: () => null, -} ); diff --git a/apps/full-site-editing/full-site-editing-plugin/blocks/content-slot/index.php~HEAD b/apps/full-site-editing/full-site-editing-plugin/blocks/content-slot/index.php~HEAD deleted file mode 100644 index 85638e7518579..0000000000000 --- a/apps/full-site-editing/full-site-editing-plugin/blocks/content-slot/index.php~HEAD +++ /dev/null @@ -1,11 +0,0 @@ -' - . __( '[Renders some content]' ) - . ''; - - return $content; -}