From 8968c35e60d851f28c58f77e826c1583d4b0b1cc Mon Sep 17 00:00:00 2001 From: Paul Von Schrottky Date: Thu, 30 Sep 2021 18:34:14 -0400 Subject: [PATCH 1/8] Release script: Update react-native-editor version to 1.63.0 --- packages/react-native-aztec/package.json | 2 +- packages/react-native-bridge/package.json | 2 +- packages/react-native-editor/package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/react-native-aztec/package.json b/packages/react-native-aztec/package.json index f996171f65f597..d76e53d1d92772 100644 --- a/packages/react-native-aztec/package.json +++ b/packages/react-native-aztec/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/react-native-aztec", - "version": "1.62.2", + "version": "1.63.0", "description": "Aztec view for react-native.", "private": true, "author": "The WordPress Contributors", diff --git a/packages/react-native-bridge/package.json b/packages/react-native-bridge/package.json index 382545530fd198..66e39f6d97734f 100644 --- a/packages/react-native-bridge/package.json +++ b/packages/react-native-bridge/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/react-native-bridge", - "version": "1.62.2", + "version": "1.63.0", "description": "Native bridge library used to integrate the block editor into a native App.", "private": true, "author": "The WordPress Contributors", diff --git a/packages/react-native-editor/package.json b/packages/react-native-editor/package.json index c777e753ef0de8..716380dd5905f1 100644 --- a/packages/react-native-editor/package.json +++ b/packages/react-native-editor/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/react-native-editor", - "version": "1.62.2", + "version": "1.63.0", "description": "Mobile WordPress gutenberg editor.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", From f2db40bc6b307d6db339318a6b302474fe21ec45 Mon Sep 17 00:00:00 2001 From: Paul Von Schrottky Date: Thu, 30 Sep 2021 18:34:40 -0400 Subject: [PATCH 2/8] Release script: Update with changes from 'npm run core preios' --- packages/react-native-editor/ios/Podfile.lock | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/react-native-editor/ios/Podfile.lock b/packages/react-native-editor/ios/Podfile.lock index 611097cdbfb329..fc06aae5968a55 100644 --- a/packages/react-native-editor/ios/Podfile.lock +++ b/packages/react-native-editor/ios/Podfile.lock @@ -12,7 +12,7 @@ PODS: - React-jsi (= 0.64.0) - ReactCommon/turbomodule/core (= 0.64.0) - glog (0.3.5) - - Gutenberg (1.62.2): + - Gutenberg (1.63.0): - React-Core (= 0.64.0) - React-CoreModules (= 0.64.0) - React-RCTImage (= 0.64.0) @@ -303,7 +303,7 @@ PODS: - React-Core - RNSVG (9.13.7-wp-1): - React-Core - - RNTAztecView (1.62.2): + - RNTAztecView (1.63.0): - React-Core - WordPress-Aztec-iOS (~> 1.19.4) - WordPress-Aztec-iOS (1.19.4) @@ -457,9 +457,9 @@ SPEC CHECKSUMS: BVLinearGradient: 1e5474c982efcfcaed47f368a61431bb38a4faf8 DoubleConversion: cf9b38bf0b2d048436d9a82ad2abe1404f11e7de FBLazyVector: 49cbe4b43e445b06bf29199b6ad2057649e4c8f5 - FBReactNativeSpec: ebf5d0d5406a50fed4bd7e93460435dfddcab39a + FBReactNativeSpec: 483e4a3c2982c1ce57d08e90fea6be852dd5f691 glog: 73c2498ac6884b13ede40eda8228cb1eee9d9d62 - Gutenberg: 2e61ed255ded30ff9132da6ea386120ae05909f5 + Gutenberg: 85dff717292b9bc07b4dc999ae106aa7e778699c RCT-Folly: ec7a233ccc97cc556cf7237f0db1ff65b986f27c RCTRequired: 2f8cb5b7533219bf4218a045f92768129cf7050a RCTTypeSafety: 512728b73549e72ad7330b92f3d42936f2a4de5b @@ -496,7 +496,7 @@ SPEC CHECKSUMS: RNReanimated: 39a9478eb635667c9a4da08ac906add9901b145e RNScreens: 185dcb481fab2f3dc77413f62b43dc3df826029c RNSVG: 9c0db12736608e32841e90fe9773db70ea40de20 - RNTAztecView: b7264eaa89c472a1b08efb2af048294a99acdc25 + RNTAztecView: ce9b100a1e03dcb382bde38cf81a3530c2cc8b93 WordPress-Aztec-iOS: 870c93297849072aadfc2223e284094e73023e82 Yoga: 8c8436d4171c87504c648ae23b1d81242bdf3bbf From 45be4b41b7a72d3d486cbea3c07042c8b4dae8b2 Mon Sep 17 00:00:00 2001 From: Paul Von Schrottky Date: Fri, 1 Oct 2021 11:46:41 -0400 Subject: [PATCH 3/8] Update react-native-editor changlog for 1.63.0 --- packages/react-native-editor/CHANGELOG.md | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/packages/react-native-editor/CHANGELOG.md b/packages/react-native-editor/CHANGELOG.md index 11506c0c9476f1..8c48627d99b873 100644 --- a/packages/react-native-editor/CHANGELOG.md +++ b/packages/react-native-editor/CHANGELOG.md @@ -10,16 +10,18 @@ For each user feature we should also add a importance categorization label to i --> ## Unreleased + +## 1.63.0 - [**] [Embed block] Add the top 5 specific embed blocks to the Block inserter list [#34967] +- [*] Embed block: Fix URL update when edited after setting a bad URL of a provider [#35013] +- [**] Users can now contact support from inside the block editor screen. [#34890] -1.62.2 ------- -* Same as 1.62.1 but with the changelog. +## 1.62.2 +- Same as 1.62.1 but with the changelog. -1.62.1 ------- -* [**] Image block: fix height and border regression. [https://github.com/WordPress/gutenberg/pull/34957] -* [**] Column block: fix width attribute flout cutoff. [https://github.com/wordpress-mobile/gutenberg-mobile/pull/3921] +## 1.62.1 +- [**] Image block: fix height and border regression. [https://github.com/WordPress/gutenberg/pull/34957] +- [**] Column block: fix width attribute flout cutoff. [https://github.com/wordpress-mobile/gutenberg-mobile/pull/3921] ## 1.62.0 - [**] [Embed block] Implement WP embed preview component [#34004] From bf867e9812996cbae99841ec52a6ba1789234593 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Date: Fri, 1 Oct 2021 16:42:35 +0200 Subject: [PATCH 4/8] [RNMobile] Remove unneeded memoization dependency from useBlockEditorSettings (#35289) --- .../editor/src/components/provider/use-block-editor-settings.js | 2 -- 1 file changed, 2 deletions(-) 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 e8b5e4b4ff21e5..01ad73c7063800 100644 --- a/packages/editor/src/components/provider/use-block-editor-settings.js +++ b/packages/editor/src/components/provider/use-block-editor-settings.js @@ -148,9 +148,7 @@ function useBlockEditorSettings( settings, hasTemplate ) { canUseUnfilteredHTML, undo, hasTemplate, - userCanCreatePages, - createPageEntity, ] ); } From c50113b6ecc1ed67faed98369452cb87a2b08645 Mon Sep 17 00:00:00 2001 From: David Calhoun <438664+dcalhoun@users.noreply.github.com> Date: Tue, 12 Oct 2021 16:30:49 -0500 Subject: [PATCH 5/8] Release script: Update react-native-editor version to 1.63.1 --- packages/react-native-aztec/package.json | 2 +- packages/react-native-bridge/package.json | 2 +- packages/react-native-editor/package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/react-native-aztec/package.json b/packages/react-native-aztec/package.json index d76e53d1d92772..13e6a8dc2b373f 100644 --- a/packages/react-native-aztec/package.json +++ b/packages/react-native-aztec/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/react-native-aztec", - "version": "1.63.0", + "version": "1.63.1", "description": "Aztec view for react-native.", "private": true, "author": "The WordPress Contributors", diff --git a/packages/react-native-bridge/package.json b/packages/react-native-bridge/package.json index 66e39f6d97734f..da47700fa76737 100644 --- a/packages/react-native-bridge/package.json +++ b/packages/react-native-bridge/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/react-native-bridge", - "version": "1.63.0", + "version": "1.63.1", "description": "Native bridge library used to integrate the block editor into a native App.", "private": true, "author": "The WordPress Contributors", diff --git a/packages/react-native-editor/package.json b/packages/react-native-editor/package.json index 716380dd5905f1..7db8f19decf5bf 100644 --- a/packages/react-native-editor/package.json +++ b/packages/react-native-editor/package.json @@ -1,6 +1,6 @@ { "name": "@wordpress/react-native-editor", - "version": "1.63.0", + "version": "1.63.1", "description": "Mobile WordPress gutenberg editor.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", From e3e644cf85276bd39a6fe3f402e15502f893e5fa Mon Sep 17 00:00:00 2001 From: David Calhoun <438664+dcalhoun@users.noreply.github.com> Date: Tue, 12 Oct 2021 16:31:01 -0500 Subject: [PATCH 6/8] Release script: Update with changes from 'npm run core preios' --- packages/react-native-editor/ios/Podfile.lock | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/react-native-editor/ios/Podfile.lock b/packages/react-native-editor/ios/Podfile.lock index fc06aae5968a55..1aae9e87203370 100644 --- a/packages/react-native-editor/ios/Podfile.lock +++ b/packages/react-native-editor/ios/Podfile.lock @@ -12,7 +12,7 @@ PODS: - React-jsi (= 0.64.0) - ReactCommon/turbomodule/core (= 0.64.0) - glog (0.3.5) - - Gutenberg (1.63.0): + - Gutenberg (1.63.1): - React-Core (= 0.64.0) - React-CoreModules (= 0.64.0) - React-RCTImage (= 0.64.0) @@ -303,7 +303,7 @@ PODS: - React-Core - RNSVG (9.13.7-wp-1): - React-Core - - RNTAztecView (1.63.0): + - RNTAztecView (1.63.1): - React-Core - WordPress-Aztec-iOS (~> 1.19.4) - WordPress-Aztec-iOS (1.19.4) @@ -457,9 +457,9 @@ SPEC CHECKSUMS: BVLinearGradient: 1e5474c982efcfcaed47f368a61431bb38a4faf8 DoubleConversion: cf9b38bf0b2d048436d9a82ad2abe1404f11e7de FBLazyVector: 49cbe4b43e445b06bf29199b6ad2057649e4c8f5 - FBReactNativeSpec: 483e4a3c2982c1ce57d08e90fea6be852dd5f691 + FBReactNativeSpec: 576cdc0b18dc6371ce9033ceda15ad7e8cb6d5e6 glog: 73c2498ac6884b13ede40eda8228cb1eee9d9d62 - Gutenberg: 85dff717292b9bc07b4dc999ae106aa7e778699c + Gutenberg: 8469db66999688ca11f47e52b2fd6fae566b9719 RCT-Folly: ec7a233ccc97cc556cf7237f0db1ff65b986f27c RCTRequired: 2f8cb5b7533219bf4218a045f92768129cf7050a RCTTypeSafety: 512728b73549e72ad7330b92f3d42936f2a4de5b @@ -496,7 +496,7 @@ SPEC CHECKSUMS: RNReanimated: 39a9478eb635667c9a4da08ac906add9901b145e RNScreens: 185dcb481fab2f3dc77413f62b43dc3df826029c RNSVG: 9c0db12736608e32841e90fe9773db70ea40de20 - RNTAztecView: ce9b100a1e03dcb382bde38cf81a3530c2cc8b93 + RNTAztecView: 8eb0656f6ca31ade9feb7e0042f669e23428057c WordPress-Aztec-iOS: 870c93297849072aadfc2223e284094e73023e82 Yoga: 8c8436d4171c87504c648ae23b1d81242bdf3bbf From 0580de27b893a323e1e0b8e4321fc78604bd18bc Mon Sep 17 00:00:00 2001 From: David Calhoun <438664+dcalhoun@users.noreply.github.com> Date: Tue, 12 Oct 2021 11:51:08 -0500 Subject: [PATCH 7/8] Fix overflowing content for native Help screen (#35552) * Fix overflowing content for Help screen When navigating to a Help section child screen, the parent screen would remain visible outside of the container. Hiding the overflow of the containing element fixes this. The reason this occurred for the first time now is likely because it is the first time we have utilized the default navigation transitions for the platforms, which is provided by React Navigation. This means the screen animates from right to left on iOS, rather than a cross-fade. * Update change log --- .../navigation-container.native.js | 14 ++++++++------ .../src/components/editor-help/index.native.js | 6 +++++- .../editor/src/components/editor-help/style.scss | 4 ++++ packages/react-native-editor/CHANGELOG.md | 3 +++ 4 files changed, 20 insertions(+), 7 deletions(-) diff --git a/packages/components/src/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js b/packages/components/src/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js index 660a86b6e24a76..ab5ea8f54f7c9a 100644 --- a/packages/components/src/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js +++ b/packages/components/src/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js @@ -59,7 +59,13 @@ const options = { const ANIMATION_DURATION = 190; -function BottomSheetNavigationContainer( { children, animate, main, theme } ) { +function BottomSheetNavigationContainer( { + children, + animate, + main, + theme, + style, +} ) { const Stack = useRef( createStackNavigator() ).current; const context = useContext( BottomSheetNavigationContext ); const [ currentHeight, setCurrentHeight ] = useState( @@ -129,11 +135,7 @@ function BottomSheetNavigationContainer( { children, animate, main, theme } ) { return useMemo( () => { return ( - + - + Date: Tue, 12 Oct 2021 16:56:04 -0500 Subject: [PATCH 8/8] Fix invisible bottom sheet backdrop on Android (#35557) * Fix invisible bottom sheet backdrop on Android Animating the opacity for the initial modal results in the backdrop provided by `react-native-modal` to never transition from transparent to partially opaque black. The core issue was not idenfited, but it may relate to the experimental state of LayoutAnimation for Android. https://reactnative.dev/docs/layoutanimation * Update change log * Empty commit to trigger rebuilds Attempt to resolve flaky, failing e2e tests. --- .../navigation-container.native.js | 10 +++++++++- packages/react-native-editor/CHANGELOG.md | 1 + 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/packages/components/src/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js b/packages/components/src/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js index ab5ea8f54f7c9a..1def0400a1c42f 100644 --- a/packages/components/src/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js +++ b/packages/components/src/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js @@ -16,6 +16,7 @@ import { Children, useRef, cloneElement, + Platform, } from '@wordpress/element'; import { usePreferredColorSchemeStyle } from '@wordpress/compose'; @@ -93,7 +94,14 @@ function BottomSheetNavigationContainer( { typeof height !== 'string' ) || typeof height === 'string' ) { - performLayoutAnimation( ANIMATION_DURATION ); + // Animating the opacity for the initial modal results in the backdrop + // provided by react-native-modal to never transition from transparent + // to partially opaque black. The core issue was not idenfited, but it + // may relate to the experimental state of LayoutAnimation for Android. + // https://reactnative.dev/docs/layoutanimation + if ( ! Platform.isAndroid || currentHeight !== 1 ) { + performLayoutAnimation( ANIMATION_DURATION ); + } setCurrentHeight( height ); return; diff --git a/packages/react-native-editor/CHANGELOG.md b/packages/react-native-editor/CHANGELOG.md index f556e09eb4d830..ee1d6d62838f32 100644 --- a/packages/react-native-editor/CHANGELOG.md +++ b/packages/react-native-editor/CHANGELOG.md @@ -12,6 +12,7 @@ For each user feature we should also add a importance categorization label to i ## Unreleased ## 1.63.1 +- [*] Fixed missing modal backdrop for Android help section [#35557] - [*] Fixed erroneous overflow within editor Help screens. [#35552] ## 1.63.0