From 61d3be5ee0e2dc3ec4674509dbfc9f0e2ffdb16d Mon Sep 17 00:00:00 2001 From: Joel Dean Date: Tue, 14 Sep 2021 21:16:26 -0500 Subject: [PATCH] [RNMobile][Embed block] Enable embed preview for Instagram and Vimeo providers (#34563) * Added instagram and vimeo to inline preview providers. * Added entry to CHANGELOG. --- packages/block-library/src/embed/edit.native.js | 2 +- packages/react-native-editor/CHANGELOG.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/block-library/src/embed/edit.native.js b/packages/block-library/src/embed/edit.native.js index 084ba659d61813..d85befd2b2ec75 100644 --- a/packages/block-library/src/embed/edit.native.js +++ b/packages/block-library/src/embed/edit.native.js @@ -34,7 +34,7 @@ import { View } from '@wordpress/primitives'; // The inline preview feature will be released progressible, for this reason // the embed will only be considered previewable for the following providers list. -const PREVIEWABLE_PROVIDERS = [ 'youtube', 'twitter' ]; +const PREVIEWABLE_PROVIDERS = [ 'youtube', 'twitter', 'instagram', 'vimeo' ]; const EmbedEdit = ( props ) => { const { diff --git a/packages/react-native-editor/CHANGELOG.md b/packages/react-native-editor/CHANGELOG.md index ce91793b81f94f..d529f3ecb4ba54 100644 --- a/packages/react-native-editor/CHANGELOG.md +++ b/packages/react-native-editor/CHANGELOG.md @@ -16,6 +16,7 @@ For each user feature we should also add a importance categorization label to i - [**] Fix Android-only issue of main toolbar initial position being wrong when RTL [#34617] - [**] Embed block: Implemented the No Preview UI when an embed is successful, but we're unable to show an inline preview [#34626] - [*] Column block: Translate column width's control labels [#34777] +- [**] Enable embed preview for Instagram and Vimeo providers. [#34563] ## 1.61.0 - [**] Enable embed preview for a list of providers (for now only YouTube and Twitter) [#34446]