From 45ee469829eaa6d19a04932b340353f941944b25 Mon Sep 17 00:00:00 2001 From: Siobhan Date: Thu, 3 Aug 2023 10:31:17 +0100 Subject: [PATCH 01/13] Release script: Update react-native-editor version to 1.101.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 2eec58c75a82c6..34315c42bcfb5b 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.100.1", + "version": "1.101.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 f84542655d4b9f..ceadb478a63266 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.100.1", + "version": "1.101.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 53339f56fb807b..c2de53ad13045b 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.100.1", + "version": "1.101.0", "description": "Mobile WordPress gutenberg editor.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", From 0257347f2748a193da1513e317204b5060397c93 Mon Sep 17 00:00:00 2001 From: Siobhan Date: Thu, 3 Aug 2023 11:05:53 +0100 Subject: [PATCH 02/13] Release script: Update with changes from 'npm run core preios' --- packages/react-native-editor/ios/Podfile.lock | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/react-native-editor/ios/Podfile.lock b/packages/react-native-editor/ios/Podfile.lock index d55f7f407fe73c..4106127c75b33e 100644 --- a/packages/react-native-editor/ios/Podfile.lock +++ b/packages/react-native-editor/ios/Podfile.lock @@ -13,7 +13,7 @@ PODS: - ReactCommon/turbomodule/core (= 0.71.11) - fmt (6.2.1) - glog (0.3.5) - - Gutenberg (1.100.1): + - Gutenberg (1.101.0): - React-Core (= 0.71.11) - React-CoreModules (= 0.71.11) - React-RCTImage (= 0.71.11) @@ -394,7 +394,7 @@ PODS: - React-RCTImage - RNSVG (13.9.0): - React-Core - - RNTAztecView (1.100.1): + - RNTAztecView (1.101.0): - React-Core - WordPress-Aztec-iOS (~> 1.19.8) - SDWebImage (5.11.1): @@ -577,7 +577,7 @@ SPEC CHECKSUMS: FBReactNativeSpec: f07662560742d82a5b73cee116c70b0b49bcc220 fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9 glog: 04b94705f318337d7ead9e6d17c019bd9b1f6b1b - Gutenberg: 68bee259a516c052424d03936ddd961cf8b906cb + Gutenberg: d0808b714cad9e66130dcce03f5030ac09f0276d libwebp: 60305b2e989864154bd9be3d772730f08fc6a59c RCT-Folly: 424b8c9a7a0b9ab2886ffe9c3b041ef628fd4fb1 RCTRequired: f6187ec763637e6a57f5728dd9a3bdabc6d6b4e0 @@ -593,13 +593,13 @@ SPEC CHECKSUMS: React-jsiexecutor: 089cd07c76ecf498960a64ba8ae0f2dddd382f44 React-jsinspector: b6ed4cb3ffa27a041cd440300503dc512b761450 React-logger: 186dd536128ae5924bc38ed70932c00aa740cd5b - react-native-blur: 8cd9b4a8007166ad643f4dff914c3fddd2ff5b9a + react-native-blur: 3e9c8e8e9f7d17fa1b94e1a0ae9fd816675f5382 react-native-get-random-values: b6fb85e7169b9822976793e467458c151c3e8b69 react-native-safe-area: c9cf765aa2dd96159476a99633e7d462ce5bb94f - react-native-safe-area-context: 5496bfc1fb0f0e096eeb740377d6a3d62597abe2 + react-native-safe-area-context: 36cc67648134e89465663b8172336a19eeda493d react-native-slider: dff0d8a46f368a8d1bacd8638570d75b9b0be400 - react-native-video: afb806880af4f6612683ab678a793ae41bc39705 - react-native-webview: e3b659a6d614bb37fb12a2de82c91a378c59d84b + react-native-video: 6dee623307ed9d04d1be2de87494f9a0fa2041d1 + react-native-webview: 9f111dfbcfc826084d6c507f569e5e03342ee1c1 React-perflogger: e706562ab7eb8eb590aa83a224d26fa13963d7f2 React-RCTActionSheet: 57d4bd98122f557479a3359ad5dad8e109e20c5a React-RCTAnimation: ccf3ef00101ea74bda73a045d79a658b36728a60 @@ -613,14 +613,14 @@ SPEC CHECKSUMS: React-RCTVibration: f09f08de63e4122deb32506e20ca4cae6e4e14c1 React-runtimeexecutor: 4817d63dbc9d658f8dc0ec56bd9b83ce531129f0 ReactCommon: e2d70ebcd90a2eaab343fb0cc23bbdb5ac321f5c - RNCClipboard: 33ec5830d149587a7d9de7bee1f80889f101dda6 - RNCMaskedView: 627993e2ddd1ed09c1d540a61c4311cfc507bbe7 + RNCClipboard: 3f0451a8100393908bea5c5c5b16f96d45f30bfc + RNCMaskedView: 949696f25ec596bfc697fc88e6f95cf0c79669b6 RNFastImage: 1f2cab428712a4baaf78d6169eaec7f622556dd7 RNGestureHandler: f75d81410b40aaa99e71ae8f8bb7a88620c95042 RNReanimated: df2567658c01135f9ff4709d372675bcb9fd1d83 RNScreens: 68fd1060f57dd1023880bf4c05d74784b5392789 RNSVG: 53c661b76829783cdaf9b7a57258f3d3b4c28315 - RNTAztecView: f959829b0cfd6b660f5a0cc6b92bf60ba96c0ab7 + RNTAztecView: eace043b38d25193a2e7d9dfce1ce890b9348b98 SDWebImage: a7f831e1a65eb5e285e3fb046a23fcfbf08e696d SDWebImageWebPCoder: 908b83b6adda48effe7667cd2b7f78c897e5111d WordPress-Aztec-iOS: 7d11d598f14c82c727c08b56bd35fbeb7dafb504 From e176b37ead775d6707ef80a0ece8a736a240b7a2 Mon Sep 17 00:00:00 2001 From: Siobhan Date: Thu, 3 Aug 2023 11:54:00 +0100 Subject: [PATCH 03/13] Update `react-native-editor` CHANGELOG --- packages/react-native-editor/CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/react-native-editor/CHANGELOG.md b/packages/react-native-editor/CHANGELOG.md index de65021b44d752..a173c68f117fd1 100644 --- a/packages/react-native-editor/CHANGELOG.md +++ b/packages/react-native-editor/CHANGELOG.md @@ -10,6 +10,8 @@ For each user feature we should also add a importance categorization label to i --> ## Unreleased + +## 1.101.0 - [*] Remove visual gap in mobile toolbar when a Gallery block is selected [#52966] - [*] Remove Gallery caption button on mobile [#53010] - [**] Upgrade React Native to 0.71.11 [#51303] From f77146b44a3934824c63e46c8f70383bbe55a5ee Mon Sep 17 00:00:00 2001 From: Siobhan Date: Thu, 3 Aug 2023 16:04:17 +0100 Subject: [PATCH 04/13] Remove incorrect CHANGELOG entry The iOS focus loop will be included in 1.100.2. I've updated the CHANGELOG accordingly. --- packages/react-native-editor/CHANGELOG.md | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/react-native-editor/CHANGELOG.md b/packages/react-native-editor/CHANGELOG.md index a173c68f117fd1..d8ae8c6e20f54b 100644 --- a/packages/react-native-editor/CHANGELOG.md +++ b/packages/react-native-editor/CHANGELOG.md @@ -17,7 +17,6 @@ For each user feature we should also add a importance categorization label to i - [**] Upgrade React Native to 0.71.11 [#51303] - [*] Upgrade Gradle to 8.2.1 & AGP to 8.1.0 [#52872] - [*] Fix Gallery block selection when adding media [#53127] -- [**] Fix iOS Focus loop for RichText components [#53217] ## 1.100.1 - [**] Add WP hook for registering non-core blocks [#52791] From f562188ccb879b6f5343e640a9478c2dcb2a8899 Mon Sep 17 00:00:00 2001 From: Siobhan Date: Thu, 17 Aug 2023 09:11:31 +0100 Subject: [PATCH 05/13] Release script: Update react-native-editor version to 1.101.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 34315c42bcfb5b..2e4588091cef2f 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.101.0", + "version": "1.101.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 ceadb478a63266..f8a78acaf0c9dd 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.101.0", + "version": "1.101.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 c2de53ad13045b..013b78b3055376 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.101.0", + "version": "1.101.1", "description": "Mobile WordPress gutenberg editor.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", From dcd3282d361b7b564eca66c60e12e787f679284b Mon Sep 17 00:00:00 2001 From: Siobhan Date: Thu, 17 Aug 2023 09:20:56 +0100 Subject: [PATCH 06/13] Release script: Update with changes from '$PRE_IOS_COMMAND' --- packages/react-native-editor/ios/Podfile.lock | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/react-native-editor/ios/Podfile.lock b/packages/react-native-editor/ios/Podfile.lock index 4106127c75b33e..a53565b551fa42 100644 --- a/packages/react-native-editor/ios/Podfile.lock +++ b/packages/react-native-editor/ios/Podfile.lock @@ -13,7 +13,7 @@ PODS: - ReactCommon/turbomodule/core (= 0.71.11) - fmt (6.2.1) - glog (0.3.5) - - Gutenberg (1.101.0): + - Gutenberg (1.101.1): - React-Core (= 0.71.11) - React-CoreModules (= 0.71.11) - React-RCTImage (= 0.71.11) @@ -394,7 +394,7 @@ PODS: - React-RCTImage - RNSVG (13.9.0): - React-Core - - RNTAztecView (1.101.0): + - RNTAztecView (1.101.1): - React-Core - WordPress-Aztec-iOS (~> 1.19.8) - SDWebImage (5.11.1): @@ -577,7 +577,7 @@ SPEC CHECKSUMS: FBReactNativeSpec: f07662560742d82a5b73cee116c70b0b49bcc220 fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9 glog: 04b94705f318337d7ead9e6d17c019bd9b1f6b1b - Gutenberg: d0808b714cad9e66130dcce03f5030ac09f0276d + Gutenberg: 8f153a8a9ce7343bc4533bc1d0728ce9c9bfb86a libwebp: 60305b2e989864154bd9be3d772730f08fc6a59c RCT-Folly: 424b8c9a7a0b9ab2886ffe9c3b041ef628fd4fb1 RCTRequired: f6187ec763637e6a57f5728dd9a3bdabc6d6b4e0 @@ -620,7 +620,7 @@ SPEC CHECKSUMS: RNReanimated: df2567658c01135f9ff4709d372675bcb9fd1d83 RNScreens: 68fd1060f57dd1023880bf4c05d74784b5392789 RNSVG: 53c661b76829783cdaf9b7a57258f3d3b4c28315 - RNTAztecView: eace043b38d25193a2e7d9dfce1ce890b9348b98 + RNTAztecView: 09cf0bda64c4a3a4d33bee3bdab4ed03506eba86 SDWebImage: a7f831e1a65eb5e285e3fb046a23fcfbf08e696d SDWebImageWebPCoder: 908b83b6adda48effe7667cd2b7f78c897e5111d WordPress-Aztec-iOS: 7d11d598f14c82c727c08b56bd35fbeb7dafb504 From cc3b91a672f41903d6fc5a4e1948a38a08638a2d Mon Sep 17 00:00:00 2001 From: David Calhoun Date: Mon, 14 Aug 2023 08:47:03 -0400 Subject: [PATCH 07/13] fix: Dynamic bottom sheet height (#53608) Stretching this content with flex appears to be necessary after upgrading React Native or refactoring the bottom sheet height animation. Refactor: 0411df13e1e8b832d8011e4fafe34436cd8fc773 Upgrade: c2957aa08de7e574d030f167ed8c5731c89e37af --- packages/editor/src/components/editor-help/index.native.js | 2 +- packages/editor/src/components/editor-help/style.scss | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/editor/src/components/editor-help/index.native.js b/packages/editor/src/components/editor-help/index.native.js index fb802ba7560cde..5aeee5fba49b1c 100644 --- a/packages/editor/src/components/editor-help/index.native.js +++ b/packages/editor/src/components/editor-help/index.native.js @@ -102,7 +102,7 @@ function EditorHelpTopics( { close, isVisible, onClose, showSupport } ) { contentStyle={ styles.contentContainer } testID="editor-help-modal" > - + Date: Wed, 16 Aug 2023 17:53:16 +0100 Subject: [PATCH 08/13] fix: Optional chaining to handle undefined title (#53721) This PR adds safety checks for the `title` property within `reusableBlock`. By using optional chaining, the code now gracefully handles scenarios where `title` might be undefined, preventing a TypeError from being thrown. --- packages/block-editor/src/store/selectors.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-editor/src/store/selectors.js b/packages/block-editor/src/store/selectors.js index 1c9a2c1348ce0c..9572f275260289 100644 --- a/packages/block-editor/src/store/selectors.js +++ b/packages/block-editor/src/store/selectors.js @@ -1972,7 +1972,7 @@ export const getInserterItems = createSelector( id, name: 'core/block', initialAttributes: { ref: reusableBlock.id }, - title: reusableBlock.title.raw, + title: reusableBlock.title?.raw, icon, category: 'reusable', keywords: [ 'reusable' ], From c7e91ec133de4f7fbe53ae41950a58927425e03d Mon Sep 17 00:00:00 2001 From: Siobhan Date: Thu, 17 Aug 2023 11:32:16 +0100 Subject: [PATCH 09/13] Update CHANGELOG --- packages/react-native-editor/CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/react-native-editor/CHANGELOG.md b/packages/react-native-editor/CHANGELOG.md index d8ae8c6e20f54b..3108e372ee2cfb 100644 --- a/packages/react-native-editor/CHANGELOG.md +++ b/packages/react-native-editor/CHANGELOG.md @@ -11,6 +11,9 @@ For each user feature we should also add a importance categorization label to i ## Unreleased +## 1.101.1 +- [**] Fix the dynamic height when opening/closing navigation screens within the bottom sheet. [https://github.com/WordPress/gutenberg/pull/53608] + ## 1.101.0 - [*] Remove visual gap in mobile toolbar when a Gallery block is selected [#52966] - [*] Remove Gallery caption button on mobile [#53010] From f4eba5690c711b0bdd0ab316bb469dc0cbc49ee4 Mon Sep 17 00:00:00 2001 From: Gerardo Date: Fri, 25 Aug 2023 10:56:11 +0200 Subject: [PATCH 10/13] Release script: Update react-native-editor version to 1.101.2 --- 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 2e4588091cef2f..8d597bc712a2e6 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.101.1", + "version": "1.101.2", "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 f8a78acaf0c9dd..9fd46102ada019 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.101.1", + "version": "1.101.2", "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 013b78b3055376..5d1d8eb786e893 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.101.1", + "version": "1.101.2", "description": "Mobile WordPress gutenberg editor.", "author": "The WordPress Contributors", "license": "GPL-2.0-or-later", From 8b55dfdd0ade088d3ebb5d1a30f26123de933897 Mon Sep 17 00:00:00 2001 From: Gerardo Date: Fri, 25 Aug 2023 10:56:49 +0200 Subject: [PATCH 11/13] Release script: Update with changes from 'npm run core preios' --- packages/react-native-editor/ios/Podfile.lock | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/react-native-editor/ios/Podfile.lock b/packages/react-native-editor/ios/Podfile.lock index a53565b551fa42..32677f3c5c011c 100644 --- a/packages/react-native-editor/ios/Podfile.lock +++ b/packages/react-native-editor/ios/Podfile.lock @@ -13,7 +13,7 @@ PODS: - ReactCommon/turbomodule/core (= 0.71.11) - fmt (6.2.1) - glog (0.3.5) - - Gutenberg (1.101.1): + - Gutenberg (1.101.2): - React-Core (= 0.71.11) - React-CoreModules (= 0.71.11) - React-RCTImage (= 0.71.11) @@ -394,7 +394,7 @@ PODS: - React-RCTImage - RNSVG (13.9.0): - React-Core - - RNTAztecView (1.101.1): + - RNTAztecView (1.101.2): - React-Core - WordPress-Aztec-iOS (~> 1.19.8) - SDWebImage (5.11.1): @@ -577,7 +577,7 @@ SPEC CHECKSUMS: FBReactNativeSpec: f07662560742d82a5b73cee116c70b0b49bcc220 fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9 glog: 04b94705f318337d7ead9e6d17c019bd9b1f6b1b - Gutenberg: 8f153a8a9ce7343bc4533bc1d0728ce9c9bfb86a + Gutenberg: 1dfe44f8ec534b67205eb717b61b14007e0192d5 libwebp: 60305b2e989864154bd9be3d772730f08fc6a59c RCT-Folly: 424b8c9a7a0b9ab2886ffe9c3b041ef628fd4fb1 RCTRequired: f6187ec763637e6a57f5728dd9a3bdabc6d6b4e0 @@ -620,7 +620,7 @@ SPEC CHECKSUMS: RNReanimated: df2567658c01135f9ff4709d372675bcb9fd1d83 RNScreens: 68fd1060f57dd1023880bf4c05d74784b5392789 RNSVG: 53c661b76829783cdaf9b7a57258f3d3b4c28315 - RNTAztecView: 09cf0bda64c4a3a4d33bee3bdab4ed03506eba86 + RNTAztecView: f2585751afa55bd4d3eb67561ea103da32dc5338 SDWebImage: a7f831e1a65eb5e285e3fb046a23fcfbf08e696d SDWebImageWebPCoder: 908b83b6adda48effe7667cd2b7f78c897e5111d WordPress-Aztec-iOS: 7d11d598f14c82c727c08b56bd35fbeb7dafb504 From 58d05888eb248a63963b9ad0dd6965d0761760a2 Mon Sep 17 00:00:00 2001 From: Gerardo Pacheco Date: Thu, 24 Aug 2023 19:04:00 +0200 Subject: [PATCH 12/13] =?UTF-8?q?[Mobile]=C2=A0-=20Fix=20Voice=20Over=20an?= =?UTF-8?q?d=20assistive=20keyboards=20(#53895)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * AztecView - Replace usage of TouchableWithoutFeedback with Pressable - This fixes the current React Native regression with VoiceOver and assistive keyboards * Patch React Native's TextInput component to avoid passing the recently introduced accessibilityState prop which causes issues with assistive keyboards * Updates snapshots: Fule, Audio blocks and Search component after changing the AztecView component to use Pressable * Update AztecView's Pressable with changing its accessible prop to false --- .../test/__snapshots__/edit.native.js.snap | 184 ++--- .../test/__snapshots__/edit.native.js.snap | 380 ++++++----- .../test/__snapshots__/edit.native.js.snap | 628 ++++++++++-------- packages/react-native-aztec/src/AztecView.js | 6 +- patches/react-native+0.71.11.patch | 12 + 5 files changed, 702 insertions(+), 508 deletions(-) create mode 100644 patches/react-native+0.71.11.patch diff --git a/packages/block-library/src/audio/test/__snapshots__/edit.native.js.snap b/packages/block-library/src/audio/test/__snapshots__/edit.native.js.snap index dca3f782efc676..e37c7fa1071021 100644 --- a/packages/block-library/src/audio/test/__snapshots__/edit.native.js.snap +++ b/packages/block-library/src/audio/test/__snapshots__/edit.native.js.snap @@ -133,7 +133,7 @@ exports[`Audio block renders audio block error state without crashing 1`] = ` ] } > - + + text={ + { + "eventCount": undefined, + "linkTextColor": undefined, + "selection": null, + "tag": "p", + "text": "", + } + } + textAlign="center" + triggerKeyCodes={[]} + /> + @@ -359,7 +373,7 @@ exports[`Audio block renders audio file without crashing 1`] = ` ] } > - + + text={ + { + "eventCount": undefined, + "linkTextColor": undefined, + "selection": null, + "tag": "p", + "text": "", + } + } + textAlign="center" + triggerKeyCodes={[]} + /> + diff --git a/packages/block-library/src/file/test/__snapshots__/edit.native.js.snap b/packages/block-library/src/file/test/__snapshots__/edit.native.js.snap index 5ce876137ade00..a14a1de7b76bc7 100644 --- a/packages/block-library/src/file/test/__snapshots__/edit.native.js.snap +++ b/packages/block-library/src/file/test/__snapshots__/edit.native.js.snap @@ -64,7 +64,7 @@ exports[`File block renders file error state without crashing 1`] = ` ] } > - + File name

", + deleteEnter={true} + disableEditingMenu={false} + fontFamily="serif" + fontSize={16} + isMultiline={false} + maxImagesWidth={200} + onBackspace={[Function]} + onBlur={[Function]} + onChange={[Function]} + onContentSizeChange={[Function]} + onEnter={[Function]} + onFocus={[Function]} + onHTMLContentWithCursor={[Function]} + onKeyDown={[Function]} + onPaste={[Function]} + onSelectionChange={[Function]} + placeholder="File name" + placeholderTextColor="gray" + selectionColor="black" + style={ + { + "backgroundColor": undefined, + "maxWidth": undefined, + "minHeight": 0, + } } - } - textAlign="left" - triggerKeyCodes={[]} - /> + text={ + { + "eventCount": undefined, + "linkTextColor": undefined, + "selection": null, + "tag": "p", + "text": "

File name

", + } + } + textAlign="left" + triggerKeyCodes={[]} + /> + - + Download

", + color="white" + deleteEnter={true} + disableEditingMenu={false} + fontFamily="serif" + fontSize={16} + isMultiline={false} + maxImagesWidth={200} + minWidth={40} + onBackspace={[Function]} + onBlur={[Function]} + onChange={[Function]} + onContentSizeChange={[Function]} + onEnter={[Function]} + onFocus={[Function]} + onHTMLContentWithCursor={[Function]} + onKeyDown={[Function]} + onPaste={[Function]} + onSelectionChange={[Function]} + placeholder="" + placeholderTextColor="white" + selectionColor="white" + style={ + { + "backgroundColor": undefined, + "color": "white", + "maxWidth": 80, + "minHeight": 0, + } } - } - textAlign="center" - triggerKeyCodes={[]} - /> + text={ + { + "eventCount": undefined, + "linkTextColor": undefined, + "selection": null, + "tag": "p", + "text": "

Download

", + } + } + textAlign="center" + triggerKeyCodes={[]} + /> +
@@ -315,7 +343,7 @@ exports[`File block renders file without crashing 1`] = ` ] } > - + File name

", + deleteEnter={true} + disableEditingMenu={false} + fontFamily="serif" + fontSize={16} + isMultiline={false} + maxImagesWidth={200} + onBackspace={[Function]} + onBlur={[Function]} + onChange={[Function]} + onContentSizeChange={[Function]} + onEnter={[Function]} + onFocus={[Function]} + onHTMLContentWithCursor={[Function]} + onKeyDown={[Function]} + onPaste={[Function]} + onSelectionChange={[Function]} + placeholder="File name" + placeholderTextColor="gray" + selectionColor="black" + style={ + { + "backgroundColor": undefined, + "maxWidth": undefined, + "minHeight": 0, + } } - } - textAlign="left" - triggerKeyCodes={[]} - /> + text={ + { + "eventCount": undefined, + "linkTextColor": undefined, + "selection": null, + "tag": "p", + "text": "

File name

", + } + } + textAlign="left" + triggerKeyCodes={[]} + /> + - + Download

", + color="white" + deleteEnter={true} + disableEditingMenu={false} + fontFamily="serif" + fontSize={16} + isMultiline={false} + maxImagesWidth={200} + minWidth={40} + onBackspace={[Function]} + onBlur={[Function]} + onChange={[Function]} + onContentSizeChange={[Function]} + onEnter={[Function]} + onFocus={[Function]} + onHTMLContentWithCursor={[Function]} + onKeyDown={[Function]} + onPaste={[Function]} + onSelectionChange={[Function]} + placeholder="" + placeholderTextColor="white" + selectionColor="white" + style={ + { + "backgroundColor": undefined, + "color": "white", + "maxWidth": 80, + "minHeight": 0, + } } - } - textAlign="center" - triggerKeyCodes={[]} - /> + text={ + { + "eventCount": undefined, + "linkTextColor": undefined, + "selection": null, + "tag": "p", + "text": "

Download

", + } + } + textAlign="center" + triggerKeyCodes={[]} + /> +
diff --git a/packages/block-library/src/search/test/__snapshots__/edit.native.js.snap b/packages/block-library/src/search/test/__snapshots__/edit.native.js.snap index e40797aea57757..dd0c7aa1694f4d 100644 --- a/packages/block-library/src/search/test/__snapshots__/edit.native.js.snap +++ b/packages/block-library/src/search/test/__snapshots__/edit.native.js.snap @@ -19,7 +19,7 @@ exports[`Search Block renders block with button inside option 1`] = ` ] } > - + Search

", + disableEditingMenu={false} + fontFamily="serif" + fontSize={16} + isMultiline={false} + maxImagesWidth={200} + onBackspace={[Function]} + onBlur={[Function]} + onChange={[Function]} + onContentSizeChange={[Function]} + onEnter={[Function]} + onFocus={[Function]} + onHTMLContentWithCursor={[Function]} + onKeyDown={[Function]} + onPaste={[Function]} + onSelectionChange={[Function]} + placeholder="Add label…" + placeholderTextColor="gray" + selectionColor="black" + style={ + { + "backgroundColor": undefined, + "maxWidth": undefined, + "minHeight": 0, + } } - } - triggerKeyCodes={[]} - /> + text={ + { + "eventCount": undefined, + "linkTextColor": undefined, + "selection": null, + "tag": "p", + "text": "

Search

", + } + } + triggerKeyCodes={[]} + /> + - + Search Button

", + disableEditingMenu={false} + fontFamily="serif" + fontSize={16} + isMultiline={false} + maxImagesWidth={200} + minWidth={75} + onBackspace={[Function]} + onBlur={[Function]} + onChange={[Function]} + onContentSizeChange={[Function]} + onEnter={[Function]} + onFocus={[Function]} + onHTMLContentWithCursor={[Function]} + onKeyDown={[Function]} + onPaste={[Function]} + onSelectionChange={[Function]} + placeholder="" + placeholderTextColor="gray" + selectionColor="black" + style={ + { + "backgroundColor": undefined, + "maxWidth": NaN, + "minHeight": 0, + } } - } - textAlign="center" - triggerKeyCodes={[]} - /> + text={ + { + "eventCount": undefined, + "linkTextColor": undefined, + "selection": null, + "tag": "p", + "text": "

Search Button

", + } + } + textAlign="center" + triggerKeyCodes={[]} + /> +
@@ -233,7 +261,7 @@ exports[`Search Block renders block with icon button option matches snapshot 1`] ] } > - + Search

", + disableEditingMenu={false} + fontFamily="serif" + fontSize={16} + isMultiline={false} + maxImagesWidth={200} + onBackspace={[Function]} + onBlur={[Function]} + onChange={[Function]} + onContentSizeChange={[Function]} + onEnter={[Function]} + onFocus={[Function]} + onHTMLContentWithCursor={[Function]} + onKeyDown={[Function]} + onPaste={[Function]} + onSelectionChange={[Function]} + placeholder="Add label…" + placeholderTextColor="gray" + selectionColor="black" + style={ + { + "backgroundColor": undefined, + "maxWidth": undefined, + "minHeight": 0, + } } - } - triggerKeyCodes={[]} - /> + text={ + { + "eventCount": undefined, + "linkTextColor": undefined, + "selection": null, + "tag": "p", + "text": "

Search

", + } + } + triggerKeyCodes={[]} + /> + @@ -517,7 +573,7 @@ exports[`Search Block renders with default configuration matches snapshot 1`] = ] } > - + Search

", + disableEditingMenu={false} + fontFamily="serif" + fontSize={16} + isMultiline={false} + maxImagesWidth={200} + onBackspace={[Function]} + onBlur={[Function]} + onChange={[Function]} + onContentSizeChange={[Function]} + onEnter={[Function]} + onFocus={[Function]} + onHTMLContentWithCursor={[Function]} + onKeyDown={[Function]} + onPaste={[Function]} + onSelectionChange={[Function]} + placeholder="Add label…" + placeholderTextColor="gray" + selectionColor="black" + style={ + { + "backgroundColor": undefined, + "maxWidth": undefined, + "minHeight": 0, + } } - } - triggerKeyCodes={[]} - /> + text={ + { + "eventCount": undefined, + "linkTextColor": undefined, + "selection": null, + "tag": "p", + "text": "

Search

", + } + } + triggerKeyCodes={[]} + /> + - + Search Button

", + disableEditingMenu={false} + fontFamily="serif" + fontSize={16} + isMultiline={false} + maxImagesWidth={200} + minWidth={75} + onBackspace={[Function]} + onBlur={[Function]} + onChange={[Function]} + onContentSizeChange={[Function]} + onEnter={[Function]} + onFocus={[Function]} + onHTMLContentWithCursor={[Function]} + onKeyDown={[Function]} + onPaste={[Function]} + onSelectionChange={[Function]} + placeholder="" + placeholderTextColor="gray" + selectionColor="black" + style={ + { + "backgroundColor": undefined, + "maxWidth": NaN, + "minHeight": 0, + } } - } - textAlign="center" - triggerKeyCodes={[]} - /> + text={ + { + "eventCount": undefined, + "linkTextColor": undefined, + "selection": null, + "tag": "p", + "text": "

Search Button

", + } + } + textAlign="center" + triggerKeyCodes={[]} + /> +
@@ -731,7 +815,7 @@ exports[`Search Block renders with no-button option matches snapshot 1`] = ` ] } > - + Search

", + disableEditingMenu={false} + fontFamily="serif" + fontSize={16} + isMultiline={false} + maxImagesWidth={200} + onBackspace={[Function]} + onBlur={[Function]} + onChange={[Function]} + onContentSizeChange={[Function]} + onEnter={[Function]} + onFocus={[Function]} + onHTMLContentWithCursor={[Function]} + onKeyDown={[Function]} + onPaste={[Function]} + onSelectionChange={[Function]} + placeholder="Add label…" + placeholderTextColor="gray" + selectionColor="black" + style={ + { + "backgroundColor": undefined, + "maxWidth": undefined, + "minHeight": 0, + } } - } - triggerKeyCodes={[]} - /> + text={ + { + "eventCount": undefined, + "linkTextColor": undefined, + "selection": null, + "tag": "p", + "text": "

Search

", + } + } + triggerKeyCodes={[]} + /> + + - + ); } } diff --git a/patches/react-native+0.71.11.patch b/patches/react-native+0.71.11.patch new file mode 100644 index 00000000000000..d6248810094668 --- /dev/null +++ b/patches/react-native+0.71.11.patch @@ -0,0 +1,12 @@ +diff --git a/node_modules/react-native/Libraries/Components/TextInput/TextInput.js b/node_modules/react-native/Libraries/Components/TextInput/TextInput.js +index 0758df6..18c5687 100644 +--- a/node_modules/react-native/Libraries/Components/TextInput/TextInput.js ++++ b/node_modules/react-native/Libraries/Components/TextInput/TextInput.js +@@ -1410,7 +1410,6 @@ function InternalTextInput(props: Props): React.Node { + {...props} + {...eventHandlers} + accessible={accessible} +- accessibilityState={_accessibilityState} + submitBehavior={submitBehavior} + caretHidden={caretHidden} + dataDetectorTypes={props.dataDetectorTypes} From 3d0cf7fae719f9e36ae85d11a3c54b6a457f1212 Mon Sep 17 00:00:00 2001 From: Gerardo Date: Fri, 25 Aug 2023 11:12:37 +0200 Subject: [PATCH 13/13] Update Changelog --- packages/react-native-editor/CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/react-native-editor/CHANGELOG.md b/packages/react-native-editor/CHANGELOG.md index 3108e372ee2cfb..84643b9bbe0e4e 100644 --- a/packages/react-native-editor/CHANGELOG.md +++ b/packages/react-native-editor/CHANGELOG.md @@ -11,6 +11,9 @@ For each user feature we should also add a importance categorization label to i ## Unreleased +## 1.101.2 +- [**] Fix Voice Over and assistive keyboards [#53895] + ## 1.101.1 - [**] Fix the dynamic height when opening/closing navigation screens within the bottom sheet. [https://github.com/WordPress/gutenberg/pull/53608]