From e78a777878e7824d84987af5e697dbab942ece32 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Date: Fri, 23 Apr 2021 19:58:51 +0200 Subject: [PATCH 1/3] Remove devOnly for reusable block --- packages/block-library/src/index.native.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-library/src/index.native.js b/packages/block-library/src/index.native.js index ba0d20795a1111..04aa2a4135d99b 100644 --- a/packages/block-library/src/index.native.js +++ b/packages/block-library/src/index.native.js @@ -247,7 +247,7 @@ export const registerCoreBlocks = () => { pullquote, file, audio, - devOnly( reusableBlock ), + reusableBlock, devOnly( search ), devOnly( embed ), ].forEach( registerBlock ); From 8063dc76fcc0360e5fc5bf056c163c29eaf80629 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Date: Fri, 30 Apr 2021 19:15:41 +0200 Subject: [PATCH 2/3] Set maximum items per page of reusable blocks --- .../editor/src/components/provider/use-block-editor-settings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/editor/src/components/provider/use-block-editor-settings.js b/packages/editor/src/components/provider/use-block-editor-settings.js index 64fb570b5d945c..33e55182dc3534 100644 --- a/packages/editor/src/components/provider/use-block-editor-settings.js +++ b/packages/editor/src/components/provider/use-block-editor-settings.js @@ -48,7 +48,7 @@ function useBlockEditorSettings( settings, hasTemplate ) { * Unbounded queries are not supported on native so as a workaround, we set per_page with the maximum value that native version can handle. * Related issue: https://github.com/wordpress-mobile/gutenberg-mobile/issues/2661 */ - { per_page: Platform.select( { web: -1, native: 10 } ) } + { per_page: Platform.select( { web: -1, native: 100 } ) } ), hasUploadPermissions: defaultTo( canUser( 'create', 'media' ), From a55eadda0578f94cd032b5bd88d925da19636ae9 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Date: Fri, 30 Apr 2021 19:32:08 +0200 Subject: [PATCH 3/3] Update react-native-editor changelog --- packages/react-native-editor/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/react-native-editor/CHANGELOG.md b/packages/react-native-editor/CHANGELOG.md index f5c90731220828..682983cab2bf52 100644 --- a/packages/react-native-editor/CHANGELOG.md +++ b/packages/react-native-editor/CHANGELOG.md @@ -15,6 +15,7 @@ For each user feature we should also add a importance categorization label to i - [*] Image block: Add a "featured" banner. (Android only) [#30806] - [**] The media upload options of the Image, Video and Gallery block automatically opens when the respective block is inserted. [#29546] - [**] The media upload options of the File and Audio block automatically opens when the respective block is inserted. [#31025] +- [**] Reusable block: Enable preview mode. [#31154] ## 1.51.1