Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Bump react-native-paste-input; remove hack (#1051)

authored by

Logan Rosen and committed by
GitHub
806be6f7 bb99a234

+23 -27
+1 -1
package.json
··· 34 34 "@fortawesome/free-solid-svg-icons": "^6.1.1", 35 35 "@fortawesome/react-native-fontawesome": "^0.3.0", 36 36 "@gorhom/bottom-sheet": "^4.4.7", 37 - "@mattermost/react-native-paste-input": "^0.6.0", 37 + "@mattermost/react-native-paste-input": "^0.6.4", 38 38 "@miblanchard/react-native-slider": "^2.2.0", 39 39 "@notifee/react-native": "^7.4.0", 40 40 "@react-native-async-storage/async-storage": "^1.17.6",
+1 -2
patches/@mattermost+react-native-paste-input+0.6.2.patch patches/@mattermost+react-native-paste-input+0.6.4.patch
··· 51 51 +minAndroidGradlePluginVersion=1.0.0 52 52 diff --git a/node_modules/@mattermost/react-native-paste-input/android/build/intermediates/compile_r_class_jar/debug/R.jar b/node_modules/@mattermost/react-native-paste-input/android/build/intermediates/compile_r_class_jar/debug/R.jar 53 53 new file mode 100644 54 - index 0000000..c0106e0 55 - Binary files /dev/null and b/node_modules/@mattermost/react-native-paste-input/android/build/intermediates/compile_r_class_jar/debug/R.jar differ 54 + index 0000000..e69de29 56 55 diff --git a/node_modules/@mattermost/react-native-paste-input/android/build/intermediates/compile_symbol_list/debug/R.txt b/node_modules/@mattermost/react-native-paste-input/android/build/intermediates/compile_symbol_list/debug/R.txt 57 56 new file mode 100644 58 57 index 0000000..7c9d30e
+5 -15
src/view/com/composer/Composer.tsx
··· 84 84 [insets, isKeyboardVisible], 85 85 ) 86 86 87 - // HACK 88 - // there's a bug with @mattermost/react-native-paste-input where if the input 89 - // is focused during unmount, an exception will throw (seems that a blur method isn't implemented) 90 - // manually blurring before closing gets around that 91 - // -prf 92 - const hackfixOnClose = useCallback(() => { 93 - textInput.current?.blur() 94 - onClose() 95 - }, [textInput, onClose]) 96 - 97 87 const onPressCancel = useCallback(() => { 98 88 if (graphemeLength > 0 || !gallery.isEmpty) { 99 89 if (store.shell.activeModals.some(modal => modal.name === 'confirm')) { ··· 105 95 store.shell.openModal({ 106 96 name: 'confirm', 107 97 title: 'Discard draft', 108 - onPressConfirm: hackfixOnClose, 98 + onPressConfirm: onClose, 109 99 onPressCancel: () => { 110 100 store.shell.closeModal() 111 101 }, ··· 114 104 confirmBtnStyle: {backgroundColor: colors.red4}, 115 105 }) 116 106 } else { 117 - hackfixOnClose() 107 + onClose() 118 108 } 119 - }, [store, hackfixOnClose, graphemeLength, gallery]) 109 + }, [store, onClose, graphemeLength, gallery]) 120 110 121 111 // initial setup 122 112 useEffect(() => { ··· 205 195 await store.me.mainFeed.addPostToTop(createdPost.uri) 206 196 } 207 197 onPost?.() 208 - hackfixOnClose() 198 + onClose() 209 199 Toast.show(`Your ${replyTo ? 'reply' : 'post'} has been published`) 210 200 }, 211 201 [ ··· 215 205 replyTo, 216 206 autocompleteView.knownHandles, 217 207 extLink, 218 - hackfixOnClose, 208 + onClose, 219 209 onPost, 220 210 quote, 221 211 setExtLink,
+16 -9
yarn.lock
··· 3906 3906 dependencies: 3907 3907 "@lukeed/csprng" "^1.1.0" 3908 3908 3909 - "@mattermost/react-native-paste-input@^0.6.0": 3910 - version "0.6.2" 3911 - resolved "https://registry.yarnpkg.com/@mattermost/react-native-paste-input/-/react-native-paste-input-0.6.2.tgz#783779bc60758927781270293f35d6b4f937cd07" 3912 - integrity sha512-+92KQfHytTdVzKzydkJQetyLy8H91uwCoDxKswJ4+fK4f4zNJpF/10LrHL+/aijcy0vJG+6gUC8zXvyLzv6wCw== 3909 + "@mattermost/react-native-paste-input@^0.6.4": 3910 + version "0.6.4" 3911 + resolved "https://registry.yarnpkg.com/@mattermost/react-native-paste-input/-/react-native-paste-input-0.6.4.tgz#0b51dacc525849c3f8350d43bf7057d17724b9b5" 3912 + integrity sha512-EJ/CTm97pe7u1GnrUFaVaP5j6i57GHPFpnUDdc+r7tLYa2T4LN0oR09KYbr1INcTMz//MqVMz4GYUVFMMN0Xmw== 3913 3913 dependencies: 3914 - semver "7.3.8" 3914 + semver "7.5.4" 3915 3915 3916 3916 "@miblanchard/react-native-slider@^2.2.0": 3917 3917 version "2.3.1" ··· 17609 17609 resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.2.tgz#604962b052b81ed0786aae84389ffba70ffd3938" 17610 17610 integrity sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ== 17611 17611 17612 - semver@7.3.8, semver@~7.3.2: 17613 - version "7.3.8" 17614 - resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.8.tgz#07a78feafb3f7b32347d725e33de7e2a2df67798" 17615 - integrity sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A== 17612 + semver@7.5.4: 17613 + version "7.5.4" 17614 + resolved "https://registry.yarnpkg.com/semver/-/semver-7.5.4.tgz#483986ec4ed38e1c6c48c34894a9182dbff68a6e" 17615 + integrity sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA== 17616 17616 dependencies: 17617 17617 lru-cache "^6.0.0" 17618 17618 ··· 17630 17630 version "7.5.3" 17631 17631 resolved "https://registry.yarnpkg.com/semver/-/semver-7.5.3.tgz#161ce8c2c6b4b3bdca6caadc9fa3317a4c4fe88e" 17632 17632 integrity sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ== 17633 + dependencies: 17634 + lru-cache "^6.0.0" 17635 + 17636 + semver@~7.3.2: 17637 + version "7.3.8" 17638 + resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.8.tgz#07a78feafb3f7b32347d725e33de7e2a2df67798" 17639 + integrity sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A== 17633 17640 dependencies: 17634 17641 lru-cache "^6.0.0" 17635 17642