From af23817280fb4bc2774777145814b2a451a296b6 Mon Sep 17 00:00:00 2001 From: Glen Young Date: Fri, 4 Jan 2019 12:26:06 +1300 Subject: [PATCH 1/4] Change polldaddy embed to Crowdsignal --- .../block-library/src/embed/core-embeds.js | 172 +++++++++--------- 1 file changed, 87 insertions(+), 85 deletions(-) diff --git a/packages/block-library/src/embed/core-embeds.js b/packages/block-library/src/embed/core-embeds.js index d14c76cadff2a..32599e4ec0fc2 100644 --- a/packages/block-library/src/embed/core-embeds.js +++ b/packages/block-library/src/embed/core-embeds.js @@ -21,57 +21,60 @@ import { /** * WordPress dependencies */ -import { __ } from '@wordpress/i18n'; -import { createBlock } from '@wordpress/blocks'; +import { + __ +} from '@wordpress/i18n'; +import { + createBlock +} from '@wordpress/blocks'; -export const common = [ - { +export const common = [{ name: 'core-embed/twitter', settings: { title: 'Twitter', icon: embedTwitterIcon, - keywords: [ 'tweet' ], - description: __( 'Embed a tweet.' ), + keywords: ['tweet'], + description: __('Embed a tweet.'), }, - patterns: [ /^https?:\/\/(www\.)?twitter\.com\/.+/i ], + patterns: [/^https?:\/\/(www\.)?twitter\.com\/.+/i], }, { name: 'core-embed/youtube', settings: { title: 'YouTube', icon: embedYouTubeIcon, - keywords: [ __( 'music' ), __( 'video' ) ], - description: __( 'Embed a YouTube video.' ), + keywords: [__('music'), __('video')], + description: __('Embed a YouTube video.'), }, - patterns: [ /^https?:\/\/((m|www)\.)?youtube\.com\/.+/i, /^https?:\/\/youtu\.be\/.+/i ], + patterns: [/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i, /^https?:\/\/youtu\.be\/.+/i], }, { name: 'core-embed/facebook', settings: { title: 'Facebook', icon: embedFacebookIcon, - description: __( 'Embed a Facebook post.' ), + description: __('Embed a Facebook post.'), }, - patterns: [ /^https?:\/\/www\.facebook.com\/.+/i ], + patterns: [/^https?:\/\/www\.facebook.com\/.+/i], }, { name: 'core-embed/instagram', settings: { title: 'Instagram', icon: embedInstagramIcon, - keywords: [ __( 'image' ) ], - description: __( 'Embed an Instagram post.' ), + keywords: [__('image')], + description: __('Embed an Instagram post.'), }, - patterns: [ /^https?:\/\/(www\.)?instagr(\.am|am\.com)\/.+/i ], + patterns: [/^https?:\/\/(www\.)?instagr(\.am|am\.com)\/.+/i], }, { name: 'core-embed/wordpress', settings: { title: 'WordPress', icon: embedWordPressIcon, - keywords: [ __( 'post' ), __( 'blog' ) ], + keywords: [__('post'), __('blog')], responsive: false, - description: __( 'Embed a WordPress post.' ), + description: __('Embed a WordPress post.'), }, }, { @@ -79,197 +82,196 @@ export const common = [ settings: { title: 'SoundCloud', icon: embedAudioIcon, - keywords: [ __( 'music' ), __( 'audio' ) ], - description: __( 'Embed SoundCloud content.' ), + keywords: [__('music'), __('audio')], + description: __('Embed SoundCloud content.'), }, - patterns: [ /^https?:\/\/(www\.)?soundcloud\.com\/.+/i ], + patterns: [/^https?:\/\/(www\.)?soundcloud\.com\/.+/i], }, { name: 'core-embed/spotify', settings: { title: 'Spotify', icon: embedSpotifyIcon, - keywords: [ __( 'music' ), __( 'audio' ) ], - description: __( 'Embed Spotify content.' ), + keywords: [__('music'), __('audio')], + description: __('Embed Spotify content.'), }, - patterns: [ /^https?:\/\/(open|play)\.spotify\.com\/.+/i ], + patterns: [/^https?:\/\/(open|play)\.spotify\.com\/.+/i], }, { name: 'core-embed/flickr', settings: { title: 'Flickr', icon: embedFlickrIcon, - keywords: [ __( 'image' ) ], - description: __( 'Embed Flickr content.' ), + keywords: [__('image')], + description: __('Embed Flickr content.'), }, - patterns: [ /^https?:\/\/(www\.)?flickr\.com\/.+/i, /^https?:\/\/flic\.kr\/.+/i ], + patterns: [/^https?:\/\/(www\.)?flickr\.com\/.+/i, /^https?:\/\/flic\.kr\/.+/i], }, { name: 'core-embed/vimeo', settings: { title: 'Vimeo', icon: embedVimeoIcon, - keywords: [ __( 'video' ) ], - description: __( 'Embed a Vimeo video.' ), + keywords: [__('video')], + description: __('Embed a Vimeo video.'), }, - patterns: [ /^https?:\/\/(www\.)?vimeo\.com\/.+/i ], + patterns: [/^https?:\/\/(www\.)?vimeo\.com\/.+/i], }, ]; -export const others = [ - { +export const others = [{ name: 'core-embed/animoto', settings: { title: 'Animoto', icon: embedVideoIcon, - description: __( 'Embed an Animoto video.' ), + description: __('Embed an Animoto video.'), }, - patterns: [ /^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i ], + patterns: [/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i], }, { name: 'core-embed/cloudup', settings: { title: 'Cloudup', icon: embedContentIcon, - description: __( 'Embed Cloudup content.' ), + description: __('Embed Cloudup content.'), }, - patterns: [ /^https?:\/\/cloudup\.com\/.+/i ], + patterns: [/^https?:\/\/cloudup\.com\/.+/i], }, { name: 'core-embed/collegehumor', settings: { title: 'CollegeHumor', icon: embedVideoIcon, - description: __( 'Embed CollegeHumor content.' ), + description: __('Embed CollegeHumor content.'), }, - patterns: [ /^https?:\/\/(www\.)?collegehumor\.com\/.+/i ], + patterns: [/^https?:\/\/(www\.)?collegehumor\.com\/.+/i], }, { name: 'core-embed/dailymotion', settings: { title: 'Dailymotion', icon: embedVideoIcon, - description: __( 'Embed a Dailymotion video.' ), + description: __('Embed a Dailymotion video.'), }, - patterns: [ /^https?:\/\/(www\.)?dailymotion\.com\/.+/i ], + patterns: [/^https?:\/\/(www\.)?dailymotion\.com\/.+/i], }, { name: 'core-embed/hulu', settings: { title: 'Hulu', icon: embedVideoIcon, - description: __( 'Embed Hulu content.' ), + description: __('Embed Hulu content.'), }, - patterns: [ /^https?:\/\/(www\.)?hulu\.com\/.+/i ], + patterns: [/^https?:\/\/(www\.)?hulu\.com\/.+/i], }, { name: 'core-embed/imgur', settings: { title: 'Imgur', icon: embedPhotoIcon, - description: __( 'Embed Imgur content.' ), + description: __('Embed Imgur content.'), }, - patterns: [ /^https?:\/\/(.+\.)?imgur\.com\/.+/i ], + patterns: [/^https?:\/\/(.+\.)?imgur\.com\/.+/i], }, { name: 'core-embed/issuu', settings: { title: 'Issuu', icon: embedContentIcon, - description: __( 'Embed Issuu content.' ), + description: __('Embed Issuu content.'), }, - patterns: [ /^https?:\/\/(www\.)?issuu\.com\/.+/i ], + patterns: [/^https?:\/\/(www\.)?issuu\.com\/.+/i], }, { name: 'core-embed/kickstarter', settings: { title: 'Kickstarter', icon: embedContentIcon, - description: __( 'Embed Kickstarter content.' ), + description: __('Embed Kickstarter content.'), }, - patterns: [ /^https?:\/\/(www\.)?kickstarter\.com\/.+/i, /^https?:\/\/kck\.st\/.+/i ], + patterns: [/^https?:\/\/(www\.)?kickstarter\.com\/.+/i, /^https?:\/\/kck\.st\/.+/i], }, { name: 'core-embed/meetup-com', settings: { title: 'Meetup.com', icon: embedContentIcon, - description: __( 'Embed Meetup.com content.' ), + description: __('Embed Meetup.com content.'), }, - patterns: [ /^https?:\/\/(www\.)?meetu(\.ps|p\.com)\/.+/i ], + patterns: [/^https?:\/\/(www\.)?meetu(\.ps|p\.com)\/.+/i], }, { name: 'core-embed/mixcloud', settings: { title: 'Mixcloud', icon: embedAudioIcon, - keywords: [ __( 'music' ), __( 'audio' ) ], - description: __( 'Embed Mixcloud content.' ), + keywords: [__('music'), __('audio')], + description: __('Embed Mixcloud content.'), }, - patterns: [ /^https?:\/\/(www\.)?mixcloud\.com\/.+/i ], + patterns: [/^https?:\/\/(www\.)?mixcloud\.com\/.+/i], }, { - name: 'core-embed/polldaddy', + name: 'core-embed/crowdsignal', settings: { - title: 'Polldaddy', + title: 'Crowdsignal', icon: embedContentIcon, - description: __( 'Embed Polldaddy content.' ), + description: __('Embed Crowdsignal (Formally Polldaddy) content.'), }, - patterns: [ /^https?:\/\/(www\.)?polldaddy\.com\/.+/i ], + patterns: [/^https?:\/\/(www\.)?crowdsignal\.com\/.+/i], }, { name: 'core-embed/reddit', settings: { title: 'Reddit', icon: embedRedditIcon, - description: __( 'Embed a Reddit thread.' ), + description: __('Embed a Reddit thread.'), }, - patterns: [ /^https?:\/\/(www\.)?reddit\.com\/.+/i ], + patterns: [/^https?:\/\/(www\.)?reddit\.com\/.+/i], }, { name: 'core-embed/reverbnation', settings: { title: 'ReverbNation', icon: embedAudioIcon, - description: __( 'Embed ReverbNation content.' ), + description: __('Embed ReverbNation content.'), }, - patterns: [ /^https?:\/\/(www\.)?reverbnation\.com\/.+/i ], + patterns: [/^https?:\/\/(www\.)?reverbnation\.com\/.+/i], }, { name: 'core-embed/screencast', settings: { title: 'Screencast', icon: embedVideoIcon, - description: __( 'Embed Screencast content.' ), + description: __('Embed Screencast content.'), }, - patterns: [ /^https?:\/\/(www\.)?screencast\.com\/.+/i ], + patterns: [/^https?:\/\/(www\.)?screencast\.com\/.+/i], }, { name: 'core-embed/scribd', settings: { title: 'Scribd', icon: embedContentIcon, - description: __( 'Embed Scribd content.' ), + description: __('Embed Scribd content.'), }, - patterns: [ /^https?:\/\/(www\.)?scribd\.com\/.+/i ], + patterns: [/^https?:\/\/(www\.)?scribd\.com\/.+/i], }, { name: 'core-embed/slideshare', settings: { title: 'Slideshare', icon: embedContentIcon, - description: __( 'Embed Slideshare content.' ), + description: __('Embed Slideshare content.'), }, - patterns: [ /^https?:\/\/(.+?\.)?slideshare\.net\/.+/i ], + patterns: [/^https?:\/\/(.+?\.)?slideshare\.net\/.+/i], }, { name: 'core-embed/smugmug', settings: { title: 'SmugMug', icon: embedPhotoIcon, - description: __( 'Embed SmugMug content.' ), + description: __('Embed SmugMug content.'), }, - patterns: [ /^https?:\/\/(www\.)?smugmug\.com\/.+/i ], + patterns: [/^https?:\/\/(www\.)?smugmug\.com\/.+/i], }, { // Deprecated in favour of the core-embed/speaker-deck block. @@ -288,54 +290,54 @@ export const others = [ settings: { title: 'Speaker Deck', icon: embedContentIcon, - transform: [ { + transform: [{ type: 'block', - blocks: [ 'core-embed/speaker' ], - transform: ( content ) => { - return createBlock( 'core-embed/speaker-deck', { + blocks: ['core-embed/speaker'], + transform: (content) => { + return createBlock('core-embed/speaker-deck', { content, - } ); + }); }, - } ], - description: __( 'Embed Speaker Deck content.' ), + }], + description: __('Embed Speaker Deck content.'), }, - patterns: [ /^https?:\/\/(www\.)?speakerdeck\.com\/.+/i ], + patterns: [/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i], }, { name: 'core-embed/ted', settings: { title: 'TED', icon: embedVideoIcon, - description: __( 'Embed a TED video.' ), + description: __('Embed a TED video.'), }, - patterns: [ /^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i ], + patterns: [/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i], }, { name: 'core-embed/tumblr', settings: { title: 'Tumblr', icon: embedTumbrIcon, - description: __( 'Embed a Tumblr post.' ), + description: __('Embed a Tumblr post.'), }, - patterns: [ /^https?:\/\/(www\.)?tumblr\.com\/.+/i ], + patterns: [/^https?:\/\/(www\.)?tumblr\.com\/.+/i], }, { name: 'core-embed/videopress', settings: { title: 'VideoPress', icon: embedVideoIcon, - keywords: [ __( 'video' ) ], - description: __( 'Embed a VideoPress video.' ), + keywords: [__('video')], + description: __('Embed a VideoPress video.'), }, - patterns: [ /^https?:\/\/videopress\.com\/.+/i ], + patterns: [/^https?:\/\/videopress\.com\/.+/i], }, { name: 'core-embed/wordpress-tv', settings: { title: 'WordPress.tv', icon: embedVideoIcon, - description: __( 'Embed a WordPress.tv video.' ), + description: __('Embed a WordPress.tv video.'), }, - patterns: [ /^https?:\/\/wordpress\.tv\/.+/i ], + patterns: [/^https?:\/\/wordpress\.tv\/.+/i], }, ]; From 00a2cff125c3dcdbd500671d37e1eb29b2a4d91d Mon Sep 17 00:00:00 2001 From: Glen Young Date: Fri, 4 Jan 2019 13:24:14 +1300 Subject: [PATCH 2/4] Updated formatting and allowed for deprecated content --- .../block-library/src/embed/core-embeds.js | 189 ++++++++++-------- 1 file changed, 103 insertions(+), 86 deletions(-) diff --git a/packages/block-library/src/embed/core-embeds.js b/packages/block-library/src/embed/core-embeds.js index 32599e4ec0fc2..b87d1d891229b 100644 --- a/packages/block-library/src/embed/core-embeds.js +++ b/packages/block-library/src/embed/core-embeds.js @@ -21,60 +21,56 @@ import { /** * WordPress dependencies */ -import { - __ -} from '@wordpress/i18n'; -import { - createBlock -} from '@wordpress/blocks'; +import {__} from '@wordpress/i18n'; +import { createBlock } from '@wordpress/blocks'; -export const common = [{ +export const common = [ { name: 'core-embed/twitter', settings: { title: 'Twitter', icon: embedTwitterIcon, - keywords: ['tweet'], - description: __('Embed a tweet.'), + keywords: [ 'tweet' ], + description: __( 'Embed a tweet.' ), }, - patterns: [/^https?:\/\/(www\.)?twitter\.com\/.+/i], + patterns: [ /^https?:\/\/(www\.)?twitter\.com\/.+/i ], }, { name: 'core-embed/youtube', settings: { title: 'YouTube', icon: embedYouTubeIcon, - keywords: [__('music'), __('video')], - description: __('Embed a YouTube video.'), + keywords: [ __( 'music' ), __( 'video' ) ], + description: __( 'Embed a YouTube video.' ), }, - patterns: [/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i, /^https?:\/\/youtu\.be\/.+/i], + patterns: [ /^https?:\/\/((m|www)\.)?youtube\.com\/.+/i, /^https?:\/\/youtu\.be\/.+/i ], }, { name: 'core-embed/facebook', settings: { title: 'Facebook', icon: embedFacebookIcon, - description: __('Embed a Facebook post.'), + description: __( 'Embed a Facebook post.' ), }, - patterns: [/^https?:\/\/www\.facebook.com\/.+/i], + patterns: [ /^https?:\/\/www\.facebook.com\/.+/i ], }, { name: 'core-embed/instagram', settings: { title: 'Instagram', icon: embedInstagramIcon, - keywords: [__('image')], - description: __('Embed an Instagram post.'), + keywords: [ __( 'image' ) ], + description: __( 'Embed an Instagram post.' ), }, - patterns: [/^https?:\/\/(www\.)?instagr(\.am|am\.com)\/.+/i], + patterns: [ /^https?:\/\/(www\.)?instagr(\.am|am\.com)\/.+/i ], }, { name: 'core-embed/wordpress', settings: { title: 'WordPress', icon: embedWordPressIcon, - keywords: [__('post'), __('blog')], + keywords: [ __( 'post' ), __( 'blog' ) ], responsive: false, - description: __('Embed a WordPress post.'), + description: __( 'Embed a WordPress post.' ), }, }, { @@ -82,196 +78,217 @@ export const common = [{ settings: { title: 'SoundCloud', icon: embedAudioIcon, - keywords: [__('music'), __('audio')], - description: __('Embed SoundCloud content.'), + keywords: [ __( 'music' ), __( 'audio' ) ], + description: __( 'Embed SoundCloud content.' ), }, - patterns: [/^https?:\/\/(www\.)?soundcloud\.com\/.+/i], + patterns: [ /^https?:\/\/(www\.)?soundcloud\.com\/.+/i ], }, { name: 'core-embed/spotify', settings: { title: 'Spotify', icon: embedSpotifyIcon, - keywords: [__('music'), __('audio')], - description: __('Embed Spotify content.'), + keywords: [ __( 'music' ), __( 'audio' ) ], + description: __( 'Embed Spotify content.' ), }, - patterns: [/^https?:\/\/(open|play)\.spotify\.com\/.+/i], + patterns: [ /^https?:\/\/(open|play)\.spotify\.com\/.+/i ], }, { name: 'core-embed/flickr', settings: { title: 'Flickr', icon: embedFlickrIcon, - keywords: [__('image')], - description: __('Embed Flickr content.'), + keywords: [ __( 'image' ) ], + description: __( 'Embed Flickr content.' ), }, - patterns: [/^https?:\/\/(www\.)?flickr\.com\/.+/i, /^https?:\/\/flic\.kr\/.+/i], + patterns: [ /^https?:\/\/(www\.)?flickr\.com\/.+/i, /^https?:\/\/flic\.kr\/.+/i ], }, { name: 'core-embed/vimeo', settings: { title: 'Vimeo', icon: embedVimeoIcon, - keywords: [__('video')], - description: __('Embed a Vimeo video.'), + keywords: [ __( 'video' ) ], + description: __( 'Embed a Vimeo video.' ), }, - patterns: [/^https?:\/\/(www\.)?vimeo\.com\/.+/i], + patterns: [ /^https?:\/\/(www\.)?vimeo\.com\/.+/i ], }, -]; + ]; -export const others = [{ +export const others = [ { name: 'core-embed/animoto', settings: { title: 'Animoto', icon: embedVideoIcon, - description: __('Embed an Animoto video.'), + description: __( 'Embed an Animoto video.' ), }, - patterns: [/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i], + patterns: [ /^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i ], }, { name: 'core-embed/cloudup', settings: { title: 'Cloudup', icon: embedContentIcon, - description: __('Embed Cloudup content.'), + description: __( 'Embed Cloudup content.' ), }, - patterns: [/^https?:\/\/cloudup\.com\/.+/i], + patterns: [ /^https?:\/\/cloudup\.com\/.+/i ], }, { name: 'core-embed/collegehumor', settings: { title: 'CollegeHumor', icon: embedVideoIcon, - description: __('Embed CollegeHumor content.'), + description: __( 'Embed CollegeHumor content.' ), }, - patterns: [/^https?:\/\/(www\.)?collegehumor\.com\/.+/i], + patterns: [ /^https?:\/\/(www\.)?collegehumor\.com\/.+/i ], }, { name: 'core-embed/dailymotion', settings: { title: 'Dailymotion', icon: embedVideoIcon, - description: __('Embed a Dailymotion video.'), + description: __( 'Embed a Dailymotion video.' ), }, - patterns: [/^https?:\/\/(www\.)?dailymotion\.com\/.+/i], + patterns: [ /^https?:\/\/(www\.)?dailymotion\.com\/.+/i ], }, { name: 'core-embed/hulu', settings: { title: 'Hulu', icon: embedVideoIcon, - description: __('Embed Hulu content.'), + description: __( 'Embed Hulu content.' ), }, - patterns: [/^https?:\/\/(www\.)?hulu\.com\/.+/i], + patterns: [ /^https?:\/\/(www\.)?hulu\.com\/.+/i ], }, { name: 'core-embed/imgur', settings: { title: 'Imgur', icon: embedPhotoIcon, - description: __('Embed Imgur content.'), + description: __( 'Embed Imgur content.' ), }, - patterns: [/^https?:\/\/(.+\.)?imgur\.com\/.+/i], + patterns: [ /^https?:\/\/(.+\.)?imgur\.com\/.+/i ], }, { name: 'core-embed/issuu', settings: { title: 'Issuu', icon: embedContentIcon, - description: __('Embed Issuu content.'), + description: __( 'Embed Issuu content.' ), }, - patterns: [/^https?:\/\/(www\.)?issuu\.com\/.+/i], + patterns: [ /^https?:\/\/(www\.)?issuu\.com\/.+/i ], }, { name: 'core-embed/kickstarter', settings: { title: 'Kickstarter', icon: embedContentIcon, - description: __('Embed Kickstarter content.'), + description: __( 'Embed Kickstarter content.' ), }, - patterns: [/^https?:\/\/(www\.)?kickstarter\.com\/.+/i, /^https?:\/\/kck\.st\/.+/i], + patterns: [ /^https?:\/\/(www\.)?kickstarter\.com\/.+/i, /^https?:\/\/kck\.st\/.+/i ], }, { name: 'core-embed/meetup-com', settings: { title: 'Meetup.com', icon: embedContentIcon, - description: __('Embed Meetup.com content.'), + description: __( 'Embed Meetup.com content.' ), }, - patterns: [/^https?:\/\/(www\.)?meetu(\.ps|p\.com)\/.+/i], + patterns: [ /^https?:\/\/(www\.)?meetu(\.ps|p\.com)\/.+/i ], }, { name: 'core-embed/mixcloud', settings: { title: 'Mixcloud', icon: embedAudioIcon, - keywords: [__('music'), __('audio')], - description: __('Embed Mixcloud content.'), + keywords: [ __( 'music' ), __( 'audio' ) ], + description: __( 'Embed Mixcloud content.' ), }, - patterns: [/^https?:\/\/(www\.)?mixcloud\.com\/.+/i], + patterns: [ /^https?:\/\/(www\.)?mixcloud\.com\/.+/i ], + }, + { + // Deprecated in favour of the core-embed/crowdsignal + name: 'core-embed/polldaddy', + settings: { + title: 'Polldaddy', + icon: embedContentIcon, + supports: { + inserter: false, + }, + }, + patterns: [ ], }, { name: 'core-embed/crowdsignal', settings: { title: 'Crowdsignal', icon: embedContentIcon, - description: __('Embed Crowdsignal (Formally Polldaddy) content.'), + transform: [ { + type: 'block', + blocks: [ 'core-embed/polldaddy' ], + transform: (content) => { + return createBlock( 'core-embed/crowdsignal', { + content, + }); + }, + } ], + description: __( 'Embed Crowdsignal (Formally Polldaddy) content.' ), }, - patterns: [/^https?:\/\/(www\.)?crowdsignal\.com\/.+/i], + patterns: [ /^https?:\/\/(www\.)?crowdsignal\.com\/.+/i ], }, { name: 'core-embed/reddit', settings: { title: 'Reddit', icon: embedRedditIcon, - description: __('Embed a Reddit thread.'), + description: __( 'Embed a Reddit thread.' ), }, - patterns: [/^https?:\/\/(www\.)?reddit\.com\/.+/i], + patterns: [ /^https?:\/\/(www\.)?reddit\.com\/.+/i ], }, { name: 'core-embed/reverbnation', settings: { title: 'ReverbNation', icon: embedAudioIcon, - description: __('Embed ReverbNation content.'), + description: __( 'Embed ReverbNation content.' ), }, - patterns: [/^https?:\/\/(www\.)?reverbnation\.com\/.+/i], + patterns: [ /^https?:\/\/(www\.)?reverbnation\.com\/.+/i ], }, { name: 'core-embed/screencast', settings: { title: 'Screencast', icon: embedVideoIcon, - description: __('Embed Screencast content.'), + description: __( 'Embed Screencast content.' ), }, - patterns: [/^https?:\/\/(www\.)?screencast\.com\/.+/i], + patterns: [ /^https?:\/\/(www\.)?screencast\.com\/.+/i ], }, { name: 'core-embed/scribd', settings: { title: 'Scribd', icon: embedContentIcon, - description: __('Embed Scribd content.'), + description: __( 'Embed Scribd content.' ), }, - patterns: [/^https?:\/\/(www\.)?scribd\.com\/.+/i], + patterns: [ /^https?:\/\/(www\.)?scribd\.com\/.+/i ], }, { name: 'core-embed/slideshare', settings: { title: 'Slideshare', icon: embedContentIcon, - description: __('Embed Slideshare content.'), + description: __( 'Embed Slideshare content.' ), }, - patterns: [/^https?:\/\/(.+?\.)?slideshare\.net\/.+/i], + patterns: [ /^https?:\/\/(.+?\.)?slideshare\.net\/.+/i ], }, { name: 'core-embed/smugmug', settings: { title: 'SmugMug', icon: embedPhotoIcon, - description: __('Embed SmugMug content.'), + description: __( 'Embed SmugMug content.' ), }, - patterns: [/^https?:\/\/(www\.)?smugmug\.com\/.+/i], + patterns: [ /^https?:\/\/(www\.)?smugmug\.com\/.+/i ], }, { // Deprecated in favour of the core-embed/speaker-deck block. @@ -283,61 +300,61 @@ export const others = [{ inserter: false, }, }, - patterns: [], + patterns: [ ], }, { name: 'core-embed/speaker-deck', settings: { title: 'Speaker Deck', icon: embedContentIcon, - transform: [{ + transform: [ { type: 'block', - blocks: ['core-embed/speaker'], + blocks: [ 'core-embed/speaker' ], transform: (content) => { - return createBlock('core-embed/speaker-deck', { + return createBlock( 'core-embed/speaker-deck', { content, }); }, - }], - description: __('Embed Speaker Deck content.'), + } ], + description: __( 'Embed Speaker Deck content.' ), }, - patterns: [/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i], + patterns: [ /^https?:\/\/(www\.)?speakerdeck\.com\/.+/i ], }, { name: 'core-embed/ted', settings: { title: 'TED', icon: embedVideoIcon, - description: __('Embed a TED video.'), + description: __( 'Embed a TED video.' ), }, - patterns: [/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i], + patterns: [ /^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i ], }, { name: 'core-embed/tumblr', settings: { title: 'Tumblr', icon: embedTumbrIcon, - description: __('Embed a Tumblr post.'), + description: __( 'Embed a Tumblr post.' ), }, - patterns: [/^https?:\/\/(www\.)?tumblr\.com\/.+/i], + patterns: [ /^https?:\/\/(www\.)?tumblr\.com\/.+/i ], }, { name: 'core-embed/videopress', settings: { title: 'VideoPress', icon: embedVideoIcon, - keywords: [__('video')], - description: __('Embed a VideoPress video.'), + keywords: [ __( 'video' ) ], + description: __( 'Embed a VideoPress video.' ), }, - patterns: [/^https?:\/\/videopress\.com\/.+/i], + patterns: [ /^https?:\/\/videopress\.com\/.+/i ], }, { name: 'core-embed/wordpress-tv', settings: { title: 'WordPress.tv', icon: embedVideoIcon, - description: __('Embed a WordPress.tv video.'), + description: __( 'Embed a WordPress.tv video.' ), }, - patterns: [/^https?:\/\/wordpress\.tv\/.+/i], + patterns: [ /^https?:\/\/wordpress\.tv\/.+/i ], }, -]; + ]; From daa1ae9a1e94d3d650b45422e2be6c5a2d88144d Mon Sep 17 00:00:00 2001 From: Glen Young Date: Fri, 4 Jan 2019 13:59:19 +1300 Subject: [PATCH 3/4] turn of beautify --- .vscode/settings.json | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000000000..7a73a41bfdf76 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,2 @@ +{ +} \ No newline at end of file From f7bbd84c20aa11eeda5bd3d698875a5f17810ef1 Mon Sep 17 00:00:00 2001 From: Glen Young Date: Fri, 4 Jan 2019 15:59:49 +1300 Subject: [PATCH 4/4] Fix formatting issues --- .../block-library/src/embed/core-embeds.js | 660 +++++++++--------- 1 file changed, 330 insertions(+), 330 deletions(-) diff --git a/packages/block-library/src/embed/core-embeds.js b/packages/block-library/src/embed/core-embeds.js index b87d1d891229b..37ed759ae185a 100644 --- a/packages/block-library/src/embed/core-embeds.js +++ b/packages/block-library/src/embed/core-embeds.js @@ -21,340 +21,340 @@ import { /** * WordPress dependencies */ -import {__} from '@wordpress/i18n'; +import { __ } from '@wordpress/i18n'; import { createBlock } from '@wordpress/blocks'; export const common = [ { - name: 'core-embed/twitter', - settings: { - title: 'Twitter', - icon: embedTwitterIcon, - keywords: [ 'tweet' ], - description: __( 'Embed a tweet.' ), - }, - patterns: [ /^https?:\/\/(www\.)?twitter\.com\/.+/i ], - }, - { - name: 'core-embed/youtube', - settings: { - title: 'YouTube', - icon: embedYouTubeIcon, - keywords: [ __( 'music' ), __( 'video' ) ], - description: __( 'Embed a YouTube video.' ), - }, - patterns: [ /^https?:\/\/((m|www)\.)?youtube\.com\/.+/i, /^https?:\/\/youtu\.be\/.+/i ], - }, - { - name: 'core-embed/facebook', - settings: { - title: 'Facebook', - icon: embedFacebookIcon, - description: __( 'Embed a Facebook post.' ), - }, - patterns: [ /^https?:\/\/www\.facebook.com\/.+/i ], - }, - { - name: 'core-embed/instagram', - settings: { - title: 'Instagram', - icon: embedInstagramIcon, - keywords: [ __( 'image' ) ], - description: __( 'Embed an Instagram post.' ), - }, - patterns: [ /^https?:\/\/(www\.)?instagr(\.am|am\.com)\/.+/i ], - }, - { - name: 'core-embed/wordpress', - settings: { - title: 'WordPress', - icon: embedWordPressIcon, - keywords: [ __( 'post' ), __( 'blog' ) ], - responsive: false, - description: __( 'Embed a WordPress post.' ), - }, - }, - { - name: 'core-embed/soundcloud', - settings: { - title: 'SoundCloud', - icon: embedAudioIcon, - keywords: [ __( 'music' ), __( 'audio' ) ], - description: __( 'Embed SoundCloud content.' ), - }, - patterns: [ /^https?:\/\/(www\.)?soundcloud\.com\/.+/i ], - }, - { - name: 'core-embed/spotify', - settings: { - title: 'Spotify', - icon: embedSpotifyIcon, - keywords: [ __( 'music' ), __( 'audio' ) ], - description: __( 'Embed Spotify content.' ), - }, - patterns: [ /^https?:\/\/(open|play)\.spotify\.com\/.+/i ], - }, - { - name: 'core-embed/flickr', - settings: { - title: 'Flickr', - icon: embedFlickrIcon, - keywords: [ __( 'image' ) ], - description: __( 'Embed Flickr content.' ), - }, - patterns: [ /^https?:\/\/(www\.)?flickr\.com\/.+/i, /^https?:\/\/flic\.kr\/.+/i ], - }, - { - name: 'core-embed/vimeo', - settings: { - title: 'Vimeo', - icon: embedVimeoIcon, - keywords: [ __( 'video' ) ], - description: __( 'Embed a Vimeo video.' ), - }, - patterns: [ /^https?:\/\/(www\.)?vimeo\.com\/.+/i ], - }, - ]; + name: 'core-embed/twitter', + settings: { + title: 'Twitter', + icon: embedTwitterIcon, + keywords: [ 'tweet' ], + description: __( 'Embed a tweet.' ), + }, + patterns: [ /^https?:\/\/(www\.)?twitter\.com\/.+/i ], +}, +{ + name: 'core-embed/youtube', + settings: { + title: 'YouTube', + icon: embedYouTubeIcon, + keywords: [ __( 'music' ), __( 'video' ) ], + description: __( 'Embed a YouTube video.' ), + }, + patterns: [ /^https?:\/\/((m|www)\.)?youtube\.com\/.+/i, /^https?:\/\/youtu\.be\/.+/i ], +}, +{ + name: 'core-embed/facebook', + settings: { + title: 'Facebook', + icon: embedFacebookIcon, + description: __( 'Embed a Facebook post.' ), + }, + patterns: [ /^https?:\/\/www\.facebook.com\/.+/i ], +}, +{ + name: 'core-embed/instagram', + settings: { + title: 'Instagram', + icon: embedInstagramIcon, + keywords: [ __( 'image' ) ], + description: __( 'Embed an Instagram post.' ), + }, + patterns: [ /^https?:\/\/(www\.)?instagr(\.am|am\.com)\/.+/i ], +}, +{ + name: 'core-embed/wordpress', + settings: { + title: 'WordPress', + icon: embedWordPressIcon, + keywords: [ __( 'post' ), __( 'blog' ) ], + responsive: false, + description: __( 'Embed a WordPress post.' ), + }, +}, +{ + name: 'core-embed/soundcloud', + settings: { + title: 'SoundCloud', + icon: embedAudioIcon, + keywords: [ __( 'music' ), __( 'audio' ) ], + description: __( 'Embed SoundCloud content.' ), + }, + patterns: [ /^https?:\/\/(www\.)?soundcloud\.com\/.+/i ], +}, +{ + name: 'core-embed/spotify', + settings: { + title: 'Spotify', + icon: embedSpotifyIcon, + keywords: [ __( 'music' ), __( 'audio' ) ], + description: __( 'Embed Spotify content.' ), + }, + patterns: [ /^https?:\/\/(open|play)\.spotify\.com\/.+/i ], +}, +{ + name: 'core-embed/flickr', + settings: { + title: 'Flickr', + icon: embedFlickrIcon, + keywords: [ __( 'image' ) ], + description: __( 'Embed Flickr content.' ), + }, + patterns: [ /^https?:\/\/(www\.)?flickr\.com\/.+/i, /^https?:\/\/flic\.kr\/.+/i ], +}, +{ + name: 'core-embed/vimeo', + settings: { + title: 'Vimeo', + icon: embedVimeoIcon, + keywords: [ __( 'video' ) ], + description: __( 'Embed a Vimeo video.' ), + }, + patterns: [ /^https?:\/\/(www\.)?vimeo\.com\/.+/i ], +}, +]; export const others = [ { - name: 'core-embed/animoto', - settings: { - title: 'Animoto', - icon: embedVideoIcon, - description: __( 'Embed an Animoto video.' ), - }, - patterns: [ /^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i ], - }, - { - name: 'core-embed/cloudup', - settings: { - title: 'Cloudup', - icon: embedContentIcon, - description: __( 'Embed Cloudup content.' ), - }, - patterns: [ /^https?:\/\/cloudup\.com\/.+/i ], - }, - { - name: 'core-embed/collegehumor', - settings: { - title: 'CollegeHumor', - icon: embedVideoIcon, - description: __( 'Embed CollegeHumor content.' ), - }, - patterns: [ /^https?:\/\/(www\.)?collegehumor\.com\/.+/i ], - }, - { - name: 'core-embed/dailymotion', - settings: { - title: 'Dailymotion', - icon: embedVideoIcon, - description: __( 'Embed a Dailymotion video.' ), - }, - patterns: [ /^https?:\/\/(www\.)?dailymotion\.com\/.+/i ], - }, - { - name: 'core-embed/hulu', - settings: { - title: 'Hulu', - icon: embedVideoIcon, - description: __( 'Embed Hulu content.' ), - }, - patterns: [ /^https?:\/\/(www\.)?hulu\.com\/.+/i ], - }, - { - name: 'core-embed/imgur', - settings: { - title: 'Imgur', - icon: embedPhotoIcon, - description: __( 'Embed Imgur content.' ), - }, - patterns: [ /^https?:\/\/(.+\.)?imgur\.com\/.+/i ], - }, - { - name: 'core-embed/issuu', - settings: { - title: 'Issuu', - icon: embedContentIcon, - description: __( 'Embed Issuu content.' ), - }, - patterns: [ /^https?:\/\/(www\.)?issuu\.com\/.+/i ], - }, - { - name: 'core-embed/kickstarter', - settings: { - title: 'Kickstarter', - icon: embedContentIcon, - description: __( 'Embed Kickstarter content.' ), - }, - patterns: [ /^https?:\/\/(www\.)?kickstarter\.com\/.+/i, /^https?:\/\/kck\.st\/.+/i ], - }, - { - name: 'core-embed/meetup-com', - settings: { - title: 'Meetup.com', - icon: embedContentIcon, - description: __( 'Embed Meetup.com content.' ), - }, - patterns: [ /^https?:\/\/(www\.)?meetu(\.ps|p\.com)\/.+/i ], - }, - { - name: 'core-embed/mixcloud', - settings: { - title: 'Mixcloud', - icon: embedAudioIcon, - keywords: [ __( 'music' ), __( 'audio' ) ], - description: __( 'Embed Mixcloud content.' ), - }, - patterns: [ /^https?:\/\/(www\.)?mixcloud\.com\/.+/i ], - }, - { - // Deprecated in favour of the core-embed/crowdsignal - name: 'core-embed/polldaddy', - settings: { - title: 'Polldaddy', - icon: embedContentIcon, - supports: { - inserter: false, + name: 'core-embed/animoto', + settings: { + title: 'Animoto', + icon: embedVideoIcon, + description: __( 'Embed an Animoto video.' ), + }, + patterns: [ /^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i ], +}, +{ + name: 'core-embed/cloudup', + settings: { + title: 'Cloudup', + icon: embedContentIcon, + description: __( 'Embed Cloudup content.' ), + }, + patterns: [ /^https?:\/\/cloudup\.com\/.+/i ], +}, +{ + name: 'core-embed/collegehumor', + settings: { + title: 'CollegeHumor', + icon: embedVideoIcon, + description: __( 'Embed CollegeHumor content.' ), + }, + patterns: [ /^https?:\/\/(www\.)?collegehumor\.com\/.+/i ], +}, +{ + name: 'core-embed/dailymotion', + settings: { + title: 'Dailymotion', + icon: embedVideoIcon, + description: __( 'Embed a Dailymotion video.' ), + }, + patterns: [ /^https?:\/\/(www\.)?dailymotion\.com\/.+/i ], +}, +{ + name: 'core-embed/hulu', + settings: { + title: 'Hulu', + icon: embedVideoIcon, + description: __( 'Embed Hulu content.' ), + }, + patterns: [ /^https?:\/\/(www\.)?hulu\.com\/.+/i ], +}, +{ + name: 'core-embed/imgur', + settings: { + title: 'Imgur', + icon: embedPhotoIcon, + description: __( 'Embed Imgur content.' ), + }, + patterns: [ /^https?:\/\/(.+\.)?imgur\.com\/.+/i ], +}, +{ + name: 'core-embed/issuu', + settings: { + title: 'Issuu', + icon: embedContentIcon, + description: __( 'Embed Issuu content.' ), + }, + patterns: [ /^https?:\/\/(www\.)?issuu\.com\/.+/i ], +}, +{ + name: 'core-embed/kickstarter', + settings: { + title: 'Kickstarter', + icon: embedContentIcon, + description: __( 'Embed Kickstarter content.' ), + }, + patterns: [ /^https?:\/\/(www\.)?kickstarter\.com\/.+/i, /^https?:\/\/kck\.st\/.+/i ], +}, +{ + name: 'core-embed/meetup-com', + settings: { + title: 'Meetup.com', + icon: embedContentIcon, + description: __( 'Embed Meetup.com content.' ), + }, + patterns: [ /^https?:\/\/(www\.)?meetu(\.ps|p\.com)\/.+/i ], +}, +{ + name: 'core-embed/mixcloud', + settings: { + title: 'Mixcloud', + icon: embedAudioIcon, + keywords: [ __( 'music' ), __( 'audio' ) ], + description: __( 'Embed Mixcloud content.' ), + }, + patterns: [ /^https?:\/\/(www\.)?mixcloud\.com\/.+/i ], +}, +{ + // Deprecated in favour of the core-embed/crowdsignal + name: 'core-embed/polldaddy', + settings: { + title: 'Polldaddy', + icon: embedContentIcon, + supports: { + inserter: false, + }, + }, + patterns: [ ], +}, +{ + name: 'core-embed/crowdsignal', + settings: { + title: 'Crowdsignal', + icon: embedContentIcon, + transform: [ { + type: 'block', + blocks: [ 'core-embed/polldaddy' ], + transform: ( content ) => { + return createBlock( 'core-embed/crowdsignal', { + content, + } ); }, - }, - patterns: [ ], - }, - { - name: 'core-embed/crowdsignal', - settings: { - title: 'Crowdsignal', - icon: embedContentIcon, - transform: [ { - type: 'block', - blocks: [ 'core-embed/polldaddy' ], - transform: (content) => { - return createBlock( 'core-embed/crowdsignal', { - content, - }); - }, - } ], - description: __( 'Embed Crowdsignal (Formally Polldaddy) content.' ), - }, - patterns: [ /^https?:\/\/(www\.)?crowdsignal\.com\/.+/i ], - }, - { - name: 'core-embed/reddit', - settings: { - title: 'Reddit', - icon: embedRedditIcon, - description: __( 'Embed a Reddit thread.' ), - }, - patterns: [ /^https?:\/\/(www\.)?reddit\.com\/.+/i ], - }, - { - name: 'core-embed/reverbnation', - settings: { - title: 'ReverbNation', - icon: embedAudioIcon, - description: __( 'Embed ReverbNation content.' ), - }, - patterns: [ /^https?:\/\/(www\.)?reverbnation\.com\/.+/i ], - }, - { - name: 'core-embed/screencast', - settings: { - title: 'Screencast', - icon: embedVideoIcon, - description: __( 'Embed Screencast content.' ), - }, - patterns: [ /^https?:\/\/(www\.)?screencast\.com\/.+/i ], - }, - { - name: 'core-embed/scribd', - settings: { - title: 'Scribd', - icon: embedContentIcon, - description: __( 'Embed Scribd content.' ), - }, - patterns: [ /^https?:\/\/(www\.)?scribd\.com\/.+/i ], - }, - { - name: 'core-embed/slideshare', - settings: { - title: 'Slideshare', - icon: embedContentIcon, - description: __( 'Embed Slideshare content.' ), - }, - patterns: [ /^https?:\/\/(.+?\.)?slideshare\.net\/.+/i ], - }, - { - name: 'core-embed/smugmug', - settings: { - title: 'SmugMug', - icon: embedPhotoIcon, - description: __( 'Embed SmugMug content.' ), - }, - patterns: [ /^https?:\/\/(www\.)?smugmug\.com\/.+/i ], - }, - { - // Deprecated in favour of the core-embed/speaker-deck block. - name: 'core-embed/speaker', - settings: { - title: 'Speaker', - icon: embedAudioIcon, - supports: { - inserter: false, + } ], + description: __( 'Embed Crowdsignal (Formally Polldaddy) content.' ), + }, + patterns: [ /^https?:\/\/(www\.)?crowdsignal\.com\/.+/i ], +}, +{ + name: 'core-embed/reddit', + settings: { + title: 'Reddit', + icon: embedRedditIcon, + description: __( 'Embed a Reddit thread.' ), + }, + patterns: [ /^https?:\/\/(www\.)?reddit\.com\/.+/i ], +}, +{ + name: 'core-embed/reverbnation', + settings: { + title: 'ReverbNation', + icon: embedAudioIcon, + description: __( 'Embed ReverbNation content.' ), + }, + patterns: [ /^https?:\/\/(www\.)?reverbnation\.com\/.+/i ], +}, +{ + name: 'core-embed/screencast', + settings: { + title: 'Screencast', + icon: embedVideoIcon, + description: __( 'Embed Screencast content.' ), + }, + patterns: [ /^https?:\/\/(www\.)?screencast\.com\/.+/i ], +}, +{ + name: 'core-embed/scribd', + settings: { + title: 'Scribd', + icon: embedContentIcon, + description: __( 'Embed Scribd content.' ), + }, + patterns: [ /^https?:\/\/(www\.)?scribd\.com\/.+/i ], +}, +{ + name: 'core-embed/slideshare', + settings: { + title: 'Slideshare', + icon: embedContentIcon, + description: __( 'Embed Slideshare content.' ), + }, + patterns: [ /^https?:\/\/(.+?\.)?slideshare\.net\/.+/i ], +}, +{ + name: 'core-embed/smugmug', + settings: { + title: 'SmugMug', + icon: embedPhotoIcon, + description: __( 'Embed SmugMug content.' ), + }, + patterns: [ /^https?:\/\/(www\.)?smugmug\.com\/.+/i ], +}, +{ + // Deprecated in favour of the core-embed/speaker-deck block. + name: 'core-embed/speaker', + settings: { + title: 'Speaker', + icon: embedAudioIcon, + supports: { + inserter: false, + }, + }, + patterns: [ ], +}, +{ + name: 'core-embed/speaker-deck', + settings: { + title: 'Speaker Deck', + icon: embedContentIcon, + transform: [ { + type: 'block', + blocks: [ 'core-embed/speaker' ], + transform: ( content ) => { + return createBlock( 'core-embed/speaker-deck', { + content, + } ); }, - }, - patterns: [ ], - }, - { - name: 'core-embed/speaker-deck', - settings: { - title: 'Speaker Deck', - icon: embedContentIcon, - transform: [ { - type: 'block', - blocks: [ 'core-embed/speaker' ], - transform: (content) => { - return createBlock( 'core-embed/speaker-deck', { - content, - }); - }, - } ], - description: __( 'Embed Speaker Deck content.' ), - }, - patterns: [ /^https?:\/\/(www\.)?speakerdeck\.com\/.+/i ], - }, - { - name: 'core-embed/ted', - settings: { - title: 'TED', - icon: embedVideoIcon, - description: __( 'Embed a TED video.' ), - }, - patterns: [ /^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i ], - }, - { - name: 'core-embed/tumblr', - settings: { - title: 'Tumblr', - icon: embedTumbrIcon, - description: __( 'Embed a Tumblr post.' ), - }, - patterns: [ /^https?:\/\/(www\.)?tumblr\.com\/.+/i ], - }, - { - name: 'core-embed/videopress', - settings: { - title: 'VideoPress', - icon: embedVideoIcon, - keywords: [ __( 'video' ) ], - description: __( 'Embed a VideoPress video.' ), - }, - patterns: [ /^https?:\/\/videopress\.com\/.+/i ], - }, - { - name: 'core-embed/wordpress-tv', - settings: { - title: 'WordPress.tv', - icon: embedVideoIcon, - description: __( 'Embed a WordPress.tv video.' ), - }, - patterns: [ /^https?:\/\/wordpress\.tv\/.+/i ], - }, - ]; + } ], + description: __( 'Embed Speaker Deck content.' ), + }, + patterns: [ /^https?:\/\/(www\.)?speakerdeck\.com\/.+/i ], +}, +{ + name: 'core-embed/ted', + settings: { + title: 'TED', + icon: embedVideoIcon, + description: __( 'Embed a TED video.' ), + }, + patterns: [ /^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i ], +}, +{ + name: 'core-embed/tumblr', + settings: { + title: 'Tumblr', + icon: embedTumbrIcon, + description: __( 'Embed a Tumblr post.' ), + }, + patterns: [ /^https?:\/\/(www\.)?tumblr\.com\/.+/i ], +}, +{ + name: 'core-embed/videopress', + settings: { + title: 'VideoPress', + icon: embedVideoIcon, + keywords: [ __( 'video' ) ], + description: __( 'Embed a VideoPress video.' ), + }, + patterns: [ /^https?:\/\/videopress\.com\/.+/i ], +}, +{ + name: 'core-embed/wordpress-tv', + settings: { + title: 'WordPress.tv', + icon: embedVideoIcon, + description: __( 'Embed a WordPress.tv video.' ), + }, + patterns: [ /^https?:\/\/wordpress\.tv\/.+/i ], +}, +];