Skip to content

Commit

Permalink
PLANET-6198 Convert SocialMedia block to WYSIWYG
Browse files Browse the repository at this point in the history
This commit also includes code splitting for the SocialMedia block
  • Loading branch information
mleray committed Jul 2, 2021
1 parent fb30070 commit 953bced
Show file tree
Hide file tree
Showing 17 changed files with 474 additions and 359 deletions.
2 changes: 1 addition & 1 deletion assets/src/blocks/Media/MediaEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { MediaPlaceholder, InspectorControls } from '@wordpress/block-editor';
import { TextControl } from '@wordpress/components';
import { debounce } from 'lodash';

import { MediaEmbedPreview } from "./MediaEmbedPreview";
import { MediaEmbedPreview } from "../../components/MediaEmbedPreview/MediaEmbedPreview";
import { MediaElementVideo } from './MediaElementVideo';
import { useSelect } from '@wordpress/data';
import { lacksAttributes } from './MediaBlock';
Expand Down
1 change: 0 additions & 1 deletion assets/src/blocks/Media/MediaEmbedPreview.js

This file was deleted.

2 changes: 1 addition & 1 deletion assets/src/blocks/Media/MediaFrontend.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { MediaEmbedPreview } from './MediaEmbedPreview';
import { MediaEmbedPreview } from '../../components/MediaEmbedPreview/MediaEmbedPreview';
import { MediaElementVideo } from './MediaElementVideo';

const wrapEmbedHTML = embed_html => {
Expand Down
246 changes: 0 additions & 246 deletions assets/src/blocks/SocialMedia/SocialMedia.js

This file was deleted.

Loading

0 comments on commit 953bced

Please sign in to comment.