react-native-external-keyboard 0.9.1 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (372) hide show
  1. package/README.md +95 -600
  2. package/android/build.gradle +0 -18
  3. package/android/src/main/java/com/externalkeyboard/ExternalKeyboardViewPackage.java +24 -22
  4. package/android/src/main/java/com/externalkeyboard/events/EventHelper.java +10 -13
  5. package/android/src/main/java/com/externalkeyboard/helper/FocusHelper.java +1 -2
  6. package/android/src/main/java/com/externalkeyboard/services/FocusMemoryService.java +64 -0
  7. package/android/src/main/java/com/externalkeyboard/services/KeyboardFocusService.java +41 -0
  8. package/android/src/main/java/com/externalkeyboard/services/KeyboardService.java +4 -13
  9. package/android/src/main/java/com/externalkeyboard/views/ExternalKeyboardView/ExternalKeyboardView.java +2 -8
  10. package/android/src/main/java/com/externalkeyboard/views/ExternalKeyboardView/ExternalKeyboardViewManager.java +20 -13
  11. package/android/src/main/java/com/externalkeyboard/views/TextInputFocusWrapper/TextInputFocusWrapper.java +99 -21
  12. package/android/src/main/java/com/externalkeyboard/views/TextInputFocusWrapper/TextInputFocusWrapperManager.java +11 -0
  13. package/android/src/main/java/com/externalkeyboard/views/base/FocusHighlightBase.java +11 -5
  14. package/android/src/main/java/com/externalkeyboard/views/base/FocusableBase.java +36 -0
  15. package/android/src/main/java/com/externalkeyboard/views/base/keyboard/ViewFocusChangeBase.java +2 -3
  16. package/android/src/main/java/com/externalkeyboard/views/base/keyboard/ViewFocusRequestBase.java +10 -61
  17. package/android/src/newarch/ExternalKeyboardLockViewManagerInterface.java +11 -0
  18. package/android/src/newarch/ExternalKeyboardLockViewManagerSpec.java +0 -1
  19. package/android/src/newarch/ExternalKeyboardViewManagerInterface.java +42 -0
  20. package/android/src/newarch/ExternalKeyboardViewManagerSpec.java +0 -1
  21. package/android/src/newarch/KeyboardFocusGroupManagerInterface.java +12 -0
  22. package/android/src/newarch/KeyboardFocusGroupManagerSpec.java +0 -1
  23. package/android/src/newarch/TextInputFocusWrapperManagerInterface.java +34 -0
  24. package/android/src/newarch/TextInputFocusWrapperManagerSpec.java +0 -10
  25. package/android/src/newarch/helper/ReactNativeEventDispatcher.java +28 -0
  26. package/android/src/oldarch/ExternalKeyboardViewManagerSpec.java +6 -4
  27. package/android/src/oldarch/TextInputFocusWrapperManagerSpec.java +4 -0
  28. package/android/src/oldarch/helper/ReactNativeEventDispatcher.java +15 -0
  29. package/ios/Delegates/RNCEKVFocusDelegate/RNCEKVFocusDelegate.mm +1 -1
  30. package/ios/Delegates/RNCEKVFocusDelegate/RNCEKVFocusProtocol.h +1 -1
  31. package/ios/Delegates/RNCEKVHaloDelegate/RNCEKVHaloDelegate.h +2 -1
  32. package/ios/Delegates/RNCEKVHaloDelegate/RNCEKVHaloDelegate.mm +41 -5
  33. package/ios/Delegates/RNCEKVHaloDelegate/RNCEKVHaloProtocol.h +1 -0
  34. package/ios/Extensions/RCTCustomScrollView+RNCEKVExternalKeyboard.mm +5 -6
  35. package/ios/Extensions/RCTEnhancedScrollView+RNCEKVExternalKeyboard.mm +8 -9
  36. package/ios/Extensions/RCTTextInputComponentView+RNCEKVExternalKeyboard.mm +1 -1
  37. package/ios/Extensions/RCTViewComponentView+RNCEKVExternalKeyboard.h +0 -1
  38. package/ios/Extensions/RCTViewComponentView+RNCEKVExternalKeyboard.mm +16 -4
  39. package/ios/Extensions/UIViewController+RNCEKVExternalKeyboard.mm +7 -10
  40. package/ios/Helpers/RNCEKVNativeProps/RNCEKVNativeProps.h +4 -4
  41. package/ios/Helpers/RNCEKVSwizzleInstanceMethod/RNCEKVSwizzleInstanceMethod.h +19 -0
  42. package/ios/Protocols/RNCEKVCustomFocusEffectProtocol.h +1 -1
  43. package/ios/Services/RNCEKVFocusMemoryService.h +39 -0
  44. package/ios/Services/RNCEKVFocusMemoryService.mm +42 -0
  45. package/ios/Services/RNCEKVKeyboardFocusService.h +28 -0
  46. package/ios/Services/RNCEKVKeyboardFocusService.mm +54 -0
  47. package/ios/Views/Base/FocusChange/RNCEKVViewFocusChangeBase.h +2 -0
  48. package/ios/Views/Base/FocusChange/RNCEKVViewFocusChangeBase.mm +12 -10
  49. package/ios/Views/Base/FocusRequest/RNCEKVViewFocusRequestBase.h +1 -1
  50. package/ios/Views/Base/FocusRequest/RNCEKVViewFocusRequestBase.mm +6 -17
  51. package/ios/Views/Base/KeyboardHallo/RNCEKVExternalKeyboardHalloBase.h +1 -0
  52. package/ios/Views/Base/KeyboardHallo/RNCEKVExternalKeyboardHalloBase.mm +146 -6
  53. package/ios/Views/Base/ViewGroup/RNCEKVViewGroupBase.h +2 -0
  54. package/ios/Views/Base/ViewGroup/RNCEKVViewGroupBase.mm +4 -0
  55. package/ios/Views/RNCEKVExternalKeyboardView/RNCEKVExternalKeyboardView.h +1 -1
  56. package/ios/Views/RNCEKVExternalKeyboardView/RNCEKVExternalKeyboardView.mm +8 -4
  57. package/ios/Views/RNCEKVExternalKeyboardView/RNCEKVExternalKeyboardViewManager.mm +22 -11
  58. package/ios/Views/RNCEKVTextInputFocusWrapper/RNCEKVTextInputFocusWrapper.mm +17 -0
  59. package/ios/Views/RNCEKVTextInputFocusWrapper/RNCEKVTextInputFocusWrapperManager.mm +12 -0
  60. package/lib/commonjs/components/BaseKeyboardView/BaseKeyboardView.js +67 -65
  61. package/lib/commonjs/components/BaseKeyboardView/BaseKeyboardView.js.map +1 -1
  62. package/lib/commonjs/components/KeyboardExtendedInput/KeyboardExtendedInput.js +49 -97
  63. package/lib/commonjs/components/KeyboardExtendedInput/KeyboardExtendedInput.js.map +1 -1
  64. package/lib/commonjs/components/KeyboardFocusGroup/KeyboardFocusGroup.android.js.map +1 -1
  65. package/lib/commonjs/components/KeyboardFocusGroup/KeyboardFocusGroup.ios.js.map +1 -1
  66. package/lib/commonjs/components/KeyboardFocusGroup/KeyboardFocusGroup.js.map +1 -1
  67. package/lib/commonjs/components/{KeyboardExtendedInput/KeyboardExtendedInput.types.js → KeyboardFocusGroup/KeyboardFocusGroup.types.js} +1 -1
  68. package/lib/commonjs/components/KeyboardFocusGroup/KeyboardFocusGroup.types.js.map +1 -0
  69. package/lib/commonjs/components/KeyboardFocusLock/FocusFrame/FocusFrame.android.js +2 -1
  70. package/lib/commonjs/components/KeyboardFocusLock/FocusFrame/FocusFrame.android.js.map +1 -1
  71. package/lib/commonjs/components/KeyboardFocusLock/FocusTrap/FocusTrap.android.js +2 -1
  72. package/lib/commonjs/components/KeyboardFocusLock/FocusTrap/FocusTrap.android.js.map +1 -1
  73. package/lib/commonjs/components/KeyboardFocusLock/KeyboardFocusLockBase/KeyboardFocusLockBase.js +2 -1
  74. package/lib/commonjs/components/KeyboardFocusLock/KeyboardFocusLockBase/KeyboardFocusLockBase.js.map +1 -1
  75. package/lib/commonjs/components/KeyboardFocusView/KeyboardFocusView.js +14 -51
  76. package/lib/commonjs/components/KeyboardFocusView/KeyboardFocusView.js.map +1 -1
  77. package/lib/commonjs/components/index.js +47 -0
  78. package/lib/commonjs/components/index.js.map +1 -1
  79. package/lib/commonjs/index.js +37 -19
  80. package/lib/commonjs/index.js.map +1 -1
  81. package/lib/commonjs/nativeSpec/ExternalKeyboardLockViewNativeComponent.ts +1 -3
  82. package/lib/commonjs/nativeSpec/ExternalKeyboardViewNativeComponent.ts +12 -9
  83. package/lib/commonjs/nativeSpec/KeyboardFocusGroupNativeComponent.ts +5 -3
  84. package/lib/commonjs/nativeSpec/TextInputFocusWrapperNativeComponent.ts +7 -3
  85. package/lib/commonjs/types/KeyboardFocusLock.types.js +13 -0
  86. package/lib/commonjs/types/KeyboardFocusLock.types.js.map +1 -1
  87. package/lib/commonjs/types/baseKeyboardView.types.js +6 -0
  88. package/lib/commonjs/types/baseKeyboardView.types.js.map +1 -0
  89. package/lib/commonjs/types/{FocusStyle.js → focus.types.js} +1 -1
  90. package/lib/commonjs/types/{FocusStyle.js.map → focus.types.js.map} +1 -1
  91. package/lib/commonjs/types/focusOrder.types.js +33 -0
  92. package/lib/commonjs/types/focusOrder.types.js.map +1 -0
  93. package/lib/commonjs/types/{WithKeyboardFocus.js → focusStyle.types.js} +1 -1
  94. package/lib/commonjs/types/{WithKeyboardFocus.js.map → focusStyle.types.js.map} +1 -1
  95. package/lib/commonjs/types/index.js +18 -0
  96. package/lib/commonjs/types/index.js.map +1 -1
  97. package/lib/commonjs/types/keyPress.types.js +6 -0
  98. package/lib/{module/types/WithKeyboardFocus.js.map → commonjs/types/keyPress.types.js.map} +1 -1
  99. package/lib/commonjs/types/keyboardInput.types.js +6 -0
  100. package/lib/commonjs/types/keyboardInput.types.js.map +1 -0
  101. package/lib/commonjs/types/withKeyboardFocus.types.js +6 -0
  102. package/lib/commonjs/types/withKeyboardFocus.types.js.map +1 -0
  103. package/lib/commonjs/utils/mapLockFocus.js +37 -0
  104. package/lib/commonjs/utils/mapLockFocus.js.map +1 -0
  105. package/lib/commonjs/utils/useFocusStyle.js +4 -21
  106. package/lib/commonjs/utils/useFocusStyle.js.map +1 -1
  107. package/lib/commonjs/utils/useKeyboardFocusContainer.js +79 -0
  108. package/lib/commonjs/utils/useKeyboardFocusContainer.js.map +1 -0
  109. package/lib/commonjs/utils/useKeyboardPress/useKeyboardPress.android.js +4 -7
  110. package/lib/commonjs/utils/useKeyboardPress/useKeyboardPress.android.js.map +1 -1
  111. package/lib/commonjs/utils/useKeyboardPress/useKeyboardPress.ios.js +3 -6
  112. package/lib/commonjs/utils/useKeyboardPress/useKeyboardPress.ios.js.map +1 -1
  113. package/lib/commonjs/utils/useKeyboardPress/useKeyboardPress.js +9 -7
  114. package/lib/commonjs/utils/useKeyboardPress/useKeyboardPress.js.map +1 -1
  115. package/lib/commonjs/utils/useKeyboardPressState.js +65 -0
  116. package/lib/commonjs/utils/useKeyboardPressState.js.map +1 -0
  117. package/lib/commonjs/utils/useOnFocusChange.js +1 -1
  118. package/lib/commonjs/utils/useOnFocusChange.js.map +1 -1
  119. package/lib/commonjs/utils/useOrderValidation.js +35 -0
  120. package/lib/commonjs/utils/useOrderValidation.js.map +1 -0
  121. package/lib/commonjs/utils/useRenderedChildren.js +34 -0
  122. package/lib/commonjs/utils/useRenderedChildren.js.map +1 -0
  123. package/lib/commonjs/utils/useWrappedOrderProps.js +35 -0
  124. package/lib/commonjs/utils/useWrappedOrderProps.js.map +1 -0
  125. package/lib/commonjs/utils/withKeyboardFocus.js +81 -96
  126. package/lib/commonjs/utils/withKeyboardFocus.js.map +1 -1
  127. package/lib/module/components/BaseKeyboardView/BaseKeyboardView.js +57 -55
  128. package/lib/module/components/BaseKeyboardView/BaseKeyboardView.js.map +1 -1
  129. package/lib/module/components/KeyboardExtendedInput/KeyboardExtendedInput.js +51 -99
  130. package/lib/module/components/KeyboardExtendedInput/KeyboardExtendedInput.js.map +1 -1
  131. package/lib/module/components/KeyboardFocusGroup/KeyboardFocusGroup.android.js.map +1 -1
  132. package/lib/module/components/KeyboardFocusGroup/KeyboardFocusGroup.ios.js.map +1 -1
  133. package/lib/module/components/KeyboardFocusGroup/KeyboardFocusGroup.js.map +1 -1
  134. package/lib/module/components/KeyboardFocusGroup/KeyboardFocusGroup.types.js +4 -0
  135. package/lib/module/components/KeyboardFocusGroup/KeyboardFocusGroup.types.js.map +1 -0
  136. package/lib/module/components/KeyboardFocusLock/FocusFrame/FocusFrame.android.js +2 -1
  137. package/lib/module/components/KeyboardFocusLock/FocusFrame/FocusFrame.android.js.map +1 -1
  138. package/lib/module/components/KeyboardFocusLock/FocusTrap/FocusTrap.android.js +2 -1
  139. package/lib/module/components/KeyboardFocusLock/FocusTrap/FocusTrap.android.js.map +1 -1
  140. package/lib/module/components/KeyboardFocusLock/KeyboardFocusLockBase/KeyboardFocusLockBase.js +2 -1
  141. package/lib/module/components/KeyboardFocusLock/KeyboardFocusLockBase/KeyboardFocusLockBase.js.map +1 -1
  142. package/lib/module/components/KeyboardFocusView/KeyboardFocusView.js +16 -53
  143. package/lib/module/components/KeyboardFocusView/KeyboardFocusView.js.map +1 -1
  144. package/lib/module/components/index.js +5 -0
  145. package/lib/module/components/index.js.map +1 -1
  146. package/lib/module/index.js +20 -7
  147. package/lib/module/index.js.map +1 -1
  148. package/lib/module/nativeSpec/ExternalKeyboardLockViewNativeComponent.ts +1 -3
  149. package/lib/module/nativeSpec/ExternalKeyboardViewNativeComponent.ts +12 -9
  150. package/lib/module/nativeSpec/KeyboardFocusGroupNativeComponent.ts +5 -3
  151. package/lib/module/nativeSpec/TextInputFocusWrapperNativeComponent.ts +7 -3
  152. package/lib/module/types/KeyboardFocusLock.types.js +12 -1
  153. package/lib/module/types/KeyboardFocusLock.types.js.map +1 -1
  154. package/lib/module/types/baseKeyboardView.types.js +4 -0
  155. package/lib/module/types/baseKeyboardView.types.js.map +1 -0
  156. package/lib/module/types/focus.types.js +4 -0
  157. package/lib/module/types/{FocusStyle.js.map → focus.types.js.map} +1 -1
  158. package/lib/module/types/focusOrder.types.js +31 -0
  159. package/lib/module/types/focusOrder.types.js.map +1 -0
  160. package/lib/module/types/focusStyle.types.js +4 -0
  161. package/lib/module/types/focusStyle.types.js.map +1 -0
  162. package/lib/module/types/index.js +3 -0
  163. package/lib/module/types/index.js.map +1 -1
  164. package/lib/module/types/keyPress.types.js +4 -0
  165. package/lib/module/types/keyPress.types.js.map +1 -0
  166. package/lib/module/types/keyboardInput.types.js +4 -0
  167. package/lib/module/types/keyboardInput.types.js.map +1 -0
  168. package/lib/module/types/withKeyboardFocus.types.js +4 -0
  169. package/lib/module/types/withKeyboardFocus.types.js.map +1 -0
  170. package/lib/module/utils/mapLockFocus.js +32 -0
  171. package/lib/module/utils/mapLockFocus.js.map +1 -0
  172. package/lib/module/utils/useFocusStyle.js +4 -21
  173. package/lib/module/utils/useFocusStyle.js.map +1 -1
  174. package/lib/module/utils/useKeyboardFocusContainer.js +74 -0
  175. package/lib/module/utils/useKeyboardFocusContainer.js.map +1 -0
  176. package/lib/module/utils/useKeyboardPress/useKeyboardPress.android.js +4 -7
  177. package/lib/module/utils/useKeyboardPress/useKeyboardPress.android.js.map +1 -1
  178. package/lib/module/utils/useKeyboardPress/useKeyboardPress.ios.js +3 -6
  179. package/lib/module/utils/useKeyboardPress/useKeyboardPress.ios.js.map +1 -1
  180. package/lib/module/utils/useKeyboardPress/useKeyboardPress.js +9 -7
  181. package/lib/module/utils/useKeyboardPress/useKeyboardPress.js.map +1 -1
  182. package/lib/module/utils/useKeyboardPressState.js +60 -0
  183. package/lib/module/utils/useKeyboardPressState.js.map +1 -0
  184. package/lib/module/utils/useOnFocusChange.js +1 -1
  185. package/lib/module/utils/useOnFocusChange.js.map +1 -1
  186. package/lib/module/utils/useOrderValidation.js +30 -0
  187. package/lib/module/utils/useOrderValidation.js.map +1 -0
  188. package/lib/module/utils/useRenderedChildren.js +29 -0
  189. package/lib/module/utils/useRenderedChildren.js.map +1 -0
  190. package/lib/module/utils/useWrappedOrderProps.js +30 -0
  191. package/lib/module/utils/useWrappedOrderProps.js.map +1 -0
  192. package/lib/module/utils/withKeyboardFocus.js +84 -99
  193. package/lib/module/utils/withKeyboardFocus.js.map +1 -1
  194. package/lib/typescript/src/components/BaseKeyboardView/BaseKeyboardView.d.ts +30 -10
  195. package/lib/typescript/src/components/BaseKeyboardView/BaseKeyboardView.d.ts.map +1 -1
  196. package/lib/typescript/src/components/KeyboardExtendedInput/KeyboardExtendedInput.d.ts +187 -12
  197. package/lib/typescript/src/components/KeyboardExtendedInput/KeyboardExtendedInput.d.ts.map +1 -1
  198. package/lib/typescript/src/components/KeyboardFocusGroup/KeyboardFocusGroup.android.d.ts +4 -146
  199. package/lib/typescript/src/components/KeyboardFocusGroup/KeyboardFocusGroup.android.d.ts.map +1 -1
  200. package/lib/typescript/src/components/KeyboardFocusGroup/KeyboardFocusGroup.d.ts +2 -12
  201. package/lib/typescript/src/components/KeyboardFocusGroup/KeyboardFocusGroup.d.ts.map +1 -1
  202. package/lib/typescript/src/components/KeyboardFocusGroup/KeyboardFocusGroup.ios.d.ts +4 -146
  203. package/lib/typescript/src/components/KeyboardFocusGroup/KeyboardFocusGroup.ios.d.ts.map +1 -1
  204. package/lib/typescript/src/components/KeyboardFocusGroup/KeyboardFocusGroup.types.d.ts +13 -0
  205. package/lib/typescript/src/components/KeyboardFocusGroup/KeyboardFocusGroup.types.d.ts.map +1 -0
  206. package/lib/typescript/src/components/KeyboardFocusLock/FocusFrame/FocusFrame.android.d.ts +1 -1
  207. package/lib/typescript/src/components/KeyboardFocusLock/FocusFrame/FocusFrame.android.d.ts.map +1 -1
  208. package/lib/typescript/src/components/KeyboardFocusLock/FocusTrap/FocusTrap.android.d.ts +1 -1
  209. package/lib/typescript/src/components/KeyboardFocusLock/FocusTrap/FocusTrap.android.d.ts.map +1 -1
  210. package/lib/typescript/src/components/KeyboardFocusLock/FocusTrap/FocusTrap.d.ts +1 -1
  211. package/lib/typescript/src/components/KeyboardFocusLock/FocusTrap/FocusTrap.d.ts.map +1 -1
  212. package/lib/typescript/src/components/KeyboardFocusLock/KeyboardFocusLockBase/KeyboardFocusLockBase.d.ts +1 -1
  213. package/lib/typescript/src/components/KeyboardFocusLock/KeyboardFocusLockBase/KeyboardFocusLockBase.d.ts.map +1 -1
  214. package/lib/typescript/src/components/KeyboardFocusView/KeyboardFocusView.d.ts +28 -18
  215. package/lib/typescript/src/components/KeyboardFocusView/KeyboardFocusView.d.ts.map +1 -1
  216. package/lib/typescript/src/components/Touchable/Pressable.d.ts +14 -14
  217. package/lib/typescript/src/components/Touchable/Pressable.d.ts.map +1 -1
  218. package/lib/typescript/src/components/index.d.ts +5 -0
  219. package/lib/typescript/src/components/index.d.ts.map +1 -1
  220. package/lib/typescript/src/index.d.ts +694 -9
  221. package/lib/typescript/src/index.d.ts.map +1 -1
  222. package/lib/typescript/src/nativeSpec/ExternalKeyboardLockViewNativeComponent.d.ts +2 -4
  223. package/lib/typescript/src/nativeSpec/ExternalKeyboardLockViewNativeComponent.d.ts.map +1 -1
  224. package/lib/typescript/src/nativeSpec/ExternalKeyboardViewNativeComponent.d.ts +6 -7
  225. package/lib/typescript/src/nativeSpec/ExternalKeyboardViewNativeComponent.d.ts.map +1 -1
  226. package/lib/typescript/src/nativeSpec/KeyboardFocusGroupNativeComponent.d.ts +2 -4
  227. package/lib/typescript/src/nativeSpec/KeyboardFocusGroupNativeComponent.d.ts.map +1 -1
  228. package/lib/typescript/src/nativeSpec/TextInputFocusWrapperNativeComponent.d.ts +4 -4
  229. package/lib/typescript/src/nativeSpec/TextInputFocusWrapperNativeComponent.d.ts.map +1 -1
  230. package/lib/typescript/src/types/KeyboardFocusLock.types.d.ts +15 -1
  231. package/lib/typescript/src/types/KeyboardFocusLock.types.d.ts.map +1 -1
  232. package/lib/typescript/src/types/KeyboardFocusView.types.d.ts +16 -14
  233. package/lib/typescript/src/types/KeyboardFocusView.types.d.ts.map +1 -1
  234. package/lib/typescript/src/types/baseKeyboardView.types.d.ts +119 -0
  235. package/lib/typescript/src/types/baseKeyboardView.types.d.ts.map +1 -0
  236. package/lib/typescript/src/types/focus.types.d.ts +35 -0
  237. package/lib/typescript/src/types/focus.types.d.ts.map +1 -0
  238. package/lib/typescript/src/types/focusOrder.types.d.ts +57 -0
  239. package/lib/typescript/src/types/focusOrder.types.d.ts.map +1 -0
  240. package/lib/typescript/src/types/focusStyle.types.d.ts +11 -0
  241. package/lib/typescript/src/types/focusStyle.types.d.ts.map +1 -0
  242. package/lib/typescript/src/types/index.d.ts +11 -2
  243. package/lib/typescript/src/types/index.d.ts.map +1 -1
  244. package/lib/typescript/src/types/keyPress.types.d.ts +7 -0
  245. package/lib/typescript/src/types/keyPress.types.d.ts.map +1 -0
  246. package/lib/typescript/src/types/keyboardInput.types.d.ts +53 -0
  247. package/lib/typescript/src/types/keyboardInput.types.d.ts.map +1 -0
  248. package/lib/typescript/src/types/withKeyboardFocus.types.d.ts +109 -0
  249. package/lib/typescript/src/types/withKeyboardFocus.types.d.ts.map +1 -0
  250. package/lib/typescript/src/utils/mapLockFocus.d.ts +3 -0
  251. package/lib/typescript/src/utils/mapLockFocus.d.ts.map +1 -0
  252. package/lib/typescript/src/utils/useFocusStyle.d.ts +26 -34
  253. package/lib/typescript/src/utils/useFocusStyle.d.ts.map +1 -1
  254. package/lib/typescript/src/utils/useKeyboardFocusContainer.d.ts +898 -0
  255. package/lib/typescript/src/utils/useKeyboardFocusContainer.d.ts.map +1 -0
  256. package/lib/typescript/src/utils/useKeyboardPress/useKeyboardPress.android.d.ts +2 -2
  257. package/lib/typescript/src/utils/useKeyboardPress/useKeyboardPress.android.d.ts.map +1 -1
  258. package/lib/typescript/src/utils/useKeyboardPress/useKeyboardPress.d.ts +4 -3
  259. package/lib/typescript/src/utils/useKeyboardPress/useKeyboardPress.d.ts.map +1 -1
  260. package/lib/typescript/src/utils/useKeyboardPress/useKeyboardPress.ios.d.ts +3 -3
  261. package/lib/typescript/src/utils/useKeyboardPress/useKeyboardPress.ios.d.ts.map +1 -1
  262. package/lib/typescript/src/utils/useKeyboardPress/useKeyboardPress.types.d.ts +1 -2
  263. package/lib/typescript/src/utils/useKeyboardPress/useKeyboardPress.types.d.ts.map +1 -1
  264. package/lib/typescript/src/utils/useKeyboardPressState.d.ts +29 -0
  265. package/lib/typescript/src/utils/useKeyboardPressState.d.ts.map +1 -0
  266. package/lib/typescript/src/utils/useOnFocusChange.d.ts +3 -3
  267. package/lib/typescript/src/utils/useOnFocusChange.d.ts.map +1 -1
  268. package/lib/typescript/src/utils/useOrderValidation.d.ts +8 -0
  269. package/lib/typescript/src/utils/useOrderValidation.d.ts.map +1 -0
  270. package/lib/typescript/src/utils/useRenderedChildren.d.ts +18 -0
  271. package/lib/typescript/src/utils/useRenderedChildren.d.ts.map +1 -0
  272. package/lib/typescript/src/utils/useWrappedOrderProps.d.ts +13 -0
  273. package/lib/typescript/src/utils/useWrappedOrderProps.d.ts.map +1 -0
  274. package/lib/typescript/src/utils/withKeyboardFocus.d.ts +3 -4
  275. package/lib/typescript/src/utils/withKeyboardFocus.d.ts.map +1 -1
  276. package/package.json +4 -2
  277. package/src/components/BaseKeyboardView/BaseKeyboardView.tsx +74 -94
  278. package/src/components/KeyboardExtendedInput/KeyboardExtendedInput.tsx +49 -149
  279. package/src/components/KeyboardFocusGroup/KeyboardFocusGroup.android.tsx +23 -32
  280. package/src/components/KeyboardFocusGroup/KeyboardFocusGroup.ios.tsx +32 -41
  281. package/src/components/KeyboardFocusGroup/KeyboardFocusGroup.tsx +3 -14
  282. package/src/components/KeyboardFocusGroup/KeyboardFocusGroup.types.ts +15 -0
  283. package/src/components/KeyboardFocusLock/FocusFrame/FocusFrame.android.tsx +2 -2
  284. package/src/components/KeyboardFocusLock/FocusTrap/FocusTrap.android.tsx +2 -2
  285. package/src/components/KeyboardFocusLock/FocusTrap/FocusTrap.tsx +1 -1
  286. package/src/components/KeyboardFocusLock/KeyboardFocusLockBase/KeyboardFocusLockBase.tsx +2 -2
  287. package/src/components/KeyboardFocusView/KeyboardFocusView.tsx +29 -68
  288. package/src/components/Touchable/Pressable.tsx +2 -2
  289. package/src/components/index.ts +12 -0
  290. package/src/index.tsx +44 -32
  291. package/src/nativeSpec/ExternalKeyboardLockViewNativeComponent.ts +1 -3
  292. package/src/nativeSpec/ExternalKeyboardViewNativeComponent.ts +12 -9
  293. package/src/nativeSpec/KeyboardFocusGroupNativeComponent.ts +5 -3
  294. package/src/nativeSpec/TextInputFocusWrapperNativeComponent.ts +7 -3
  295. package/src/types/KeyboardFocusLock.types.ts +16 -1
  296. package/src/types/KeyboardFocusView.types.ts +17 -18
  297. package/src/types/baseKeyboardView.types.ts +122 -0
  298. package/src/types/focus.types.ts +40 -0
  299. package/src/types/focusOrder.types.ts +59 -0
  300. package/src/types/{FocusStyle.ts → focusStyle.types.ts} +5 -0
  301. package/src/types/index.ts +32 -2
  302. package/src/types/keyPress.types.ts +8 -0
  303. package/src/types/keyboardInput.types.ts +81 -0
  304. package/src/types/withKeyboardFocus.types.ts +178 -0
  305. package/src/utils/mapLockFocus.ts +31 -0
  306. package/src/utils/useFocusStyle.tsx +13 -41
  307. package/src/utils/useKeyboardFocusContainer.ts +102 -0
  308. package/src/utils/useKeyboardPress/useKeyboardPress.android.ts +4 -7
  309. package/src/utils/useKeyboardPress/useKeyboardPress.ios.ts +3 -6
  310. package/src/utils/useKeyboardPress/useKeyboardPress.ts +9 -7
  311. package/src/utils/useKeyboardPress/useKeyboardPress.types.ts +1 -2
  312. package/src/utils/useKeyboardPressState.ts +81 -0
  313. package/src/utils/useOnFocusChange.ts +4 -7
  314. package/src/utils/useOrderValidation.ts +74 -0
  315. package/src/utils/useRenderedChildren.ts +42 -0
  316. package/src/utils/useWrappedOrderProps.ts +48 -0
  317. package/src/utils/withKeyboardFocus.tsx +105 -125
  318. package/lib/commonjs/components/KeyboardExtendedInput/KeyboardExtendedInput.types.js.map +0 -1
  319. package/lib/commonjs/components/KeyboardFocusView/hooks/index.js +0 -13
  320. package/lib/commonjs/components/KeyboardFocusView/hooks/index.js.map +0 -1
  321. package/lib/commonjs/components/KeyboardFocusView/hooks/useFocusStyle/index.js +0 -13
  322. package/lib/commonjs/components/KeyboardFocusView/hooks/useFocusStyle/index.js.map +0 -1
  323. package/lib/commonjs/components/KeyboardFocusView/hooks/useFocusStyle/useFocusStyle.js +0 -33
  324. package/lib/commonjs/components/KeyboardFocusView/hooks/useFocusStyle/useFocusStyle.js.map +0 -1
  325. package/lib/commonjs/components/KeyboardFocusView/hooks/useFocusStyle/useTintStyle.js +0 -39
  326. package/lib/commonjs/components/KeyboardFocusView/hooks/useFocusStyle/useTintStyle.js.map +0 -1
  327. package/lib/commonjs/components/RenderPropComponent/RenderPropComponent.js +0 -23
  328. package/lib/commonjs/components/RenderPropComponent/RenderPropComponent.js.map +0 -1
  329. package/lib/commonjs/types/BaseKeyboardView.js +0 -18
  330. package/lib/commonjs/types/BaseKeyboardView.js.map +0 -1
  331. package/lib/module/components/KeyboardExtendedInput/KeyboardExtendedInput.types.js +0 -4
  332. package/lib/module/components/KeyboardExtendedInput/KeyboardExtendedInput.types.js.map +0 -1
  333. package/lib/module/components/KeyboardFocusView/hooks/index.js +0 -4
  334. package/lib/module/components/KeyboardFocusView/hooks/index.js.map +0 -1
  335. package/lib/module/components/KeyboardFocusView/hooks/useFocusStyle/index.js +0 -4
  336. package/lib/module/components/KeyboardFocusView/hooks/useFocusStyle/index.js.map +0 -1
  337. package/lib/module/components/KeyboardFocusView/hooks/useFocusStyle/useFocusStyle.js +0 -28
  338. package/lib/module/components/KeyboardFocusView/hooks/useFocusStyle/useFocusStyle.js.map +0 -1
  339. package/lib/module/components/KeyboardFocusView/hooks/useFocusStyle/useTintStyle.js +0 -34
  340. package/lib/module/components/KeyboardFocusView/hooks/useFocusStyle/useTintStyle.js.map +0 -1
  341. package/lib/module/components/RenderPropComponent/RenderPropComponent.js +0 -17
  342. package/lib/module/components/RenderPropComponent/RenderPropComponent.js.map +0 -1
  343. package/lib/module/types/BaseKeyboardView.js +0 -14
  344. package/lib/module/types/BaseKeyboardView.js.map +0 -1
  345. package/lib/module/types/FocusStyle.js +0 -4
  346. package/lib/module/types/WithKeyboardFocus.js +0 -4
  347. package/lib/typescript/src/components/KeyboardExtendedInput/KeyboardExtendedInput.types.d.ts +0 -45
  348. package/lib/typescript/src/components/KeyboardExtendedInput/KeyboardExtendedInput.types.d.ts.map +0 -1
  349. package/lib/typescript/src/components/KeyboardFocusView/hooks/index.d.ts +0 -2
  350. package/lib/typescript/src/components/KeyboardFocusView/hooks/index.d.ts.map +0 -1
  351. package/lib/typescript/src/components/KeyboardFocusView/hooks/useFocusStyle/index.d.ts +0 -2
  352. package/lib/typescript/src/components/KeyboardFocusView/hooks/useFocusStyle/index.d.ts.map +0 -1
  353. package/lib/typescript/src/components/KeyboardFocusView/hooks/useFocusStyle/useFocusStyle.d.ts +0 -175
  354. package/lib/typescript/src/components/KeyboardFocusView/hooks/useFocusStyle/useFocusStyle.d.ts.map +0 -1
  355. package/lib/typescript/src/components/KeyboardFocusView/hooks/useFocusStyle/useTintStyle.d.ts +0 -181
  356. package/lib/typescript/src/components/KeyboardFocusView/hooks/useFocusStyle/useTintStyle.d.ts.map +0 -1
  357. package/lib/typescript/src/components/RenderPropComponent/RenderPropComponent.d.ts +0 -6
  358. package/lib/typescript/src/components/RenderPropComponent/RenderPropComponent.d.ts.map +0 -1
  359. package/lib/typescript/src/types/BaseKeyboardView.d.ts +0 -70
  360. package/lib/typescript/src/types/BaseKeyboardView.d.ts.map +0 -1
  361. package/lib/typescript/src/types/FocusStyle.d.ts +0 -6
  362. package/lib/typescript/src/types/FocusStyle.d.ts.map +0 -1
  363. package/lib/typescript/src/types/WithKeyboardFocus.d.ts +0 -47
  364. package/lib/typescript/src/types/WithKeyboardFocus.d.ts.map +0 -1
  365. package/src/components/KeyboardExtendedInput/KeyboardExtendedInput.types.ts +0 -73
  366. package/src/components/KeyboardFocusView/hooks/index.ts +0 -1
  367. package/src/components/KeyboardFocusView/hooks/useFocusStyle/index.ts +0 -1
  368. package/src/components/KeyboardFocusView/hooks/useFocusStyle/useFocusStyle.ts +0 -34
  369. package/src/components/KeyboardFocusView/hooks/useFocusStyle/useTintStyle.ts +0 -41
  370. package/src/components/RenderPropComponent/RenderPropComponent.tsx +0 -18
  371. package/src/types/BaseKeyboardView.ts +0 -74
  372. package/src/types/WithKeyboardFocus.ts +0 -115
@@ -60,4 +60,8 @@
60
60
 
61
61
  - (void)onSubviewsLayoutUpdated {}
62
62
 
63
+ - (BOOL)focusableWrapper {
64
+ return NO;
65
+ }
66
+
63
67
  @end
@@ -12,7 +12,7 @@
12
12
 
13
13
  @interface RNCEKVExternalKeyboardView : RNCEKVViewKeyPress <RNCEKVKeyboardFocusableProtocol>
14
14
 
15
- @property BOOL isGroup;
15
+ @property BOOL focusableWrapper;
16
16
 
17
17
  #ifndef RCT_NEW_ARCH_ENABLED
18
18
  @property (nonatomic, copy) RCTDirectEventBlock onFocusChange;
@@ -58,10 +58,14 @@ using namespace facebook::react;
58
58
 
59
59
 
60
60
  - (void)handleCommand:(const NSString *)commandName args:(const NSArray *)args {
61
- NSString *FOCUS = @"focus";
62
- if ([commandName isEqual:FOCUS]) {
61
+ NSString *KEYBOARD_FOCUS = @"rnekKeyboardFocus";
62
+ NSString *SCREEN_READER_FOCUS = @"rnekScreenReaderFocus";
63
+ if ([commandName isEqual:KEYBOARD_FOCUS]) {
63
64
  [self focus];
64
65
  }
66
+ if ([commandName isEqual:SCREEN_READER_FOCUS]) {
67
+ [self screenReaderFocus];
68
+ }
65
69
  }
66
70
 
67
71
  - (void)updateProps:(Props::Shared const &)props
@@ -91,8 +95,8 @@ using namespace facebook::react;
91
95
  [self updateFocusRequestProps:RNCEKV::AutoFocusProps::from(oldViewProps)
92
96
  newProps:RNCEKV::AutoFocusProps::from(newViewProps)];
93
97
 
94
- if (oldViewProps.group != newViewProps.group) {
95
- [self setIsGroup:newViewProps.group];
98
+ if (oldViewProps.focusableWrapper != newViewProps.focusableWrapper) {
99
+ [self setFocusableWrapper:newViewProps.focusableWrapper];
96
100
  }
97
101
  }
98
102
 
@@ -70,14 +70,6 @@ RCT_CUSTOM_VIEW_PROPERTY(haloEffect, BOOL, RNCEKVExternalKeyboardView)
70
70
  }
71
71
  }
72
72
 
73
- RCT_CUSTOM_VIEW_PROPERTY(enableA11yFocus, BOOL, RNCEKVExternalKeyboardView)
74
- {
75
- if(json) {
76
- BOOL value = json ? [RCTConvert BOOL:json] : NO;
77
- [view setEnableA11yFocus: value];
78
- }
79
- }
80
-
81
73
  RCT_CUSTOM_VIEW_PROPERTY(screenAutoA11yFocus, BOOL, RNCEKVExternalKeyboardView)
82
74
  {
83
75
  //stub
@@ -112,11 +104,17 @@ RCT_CUSTOM_VIEW_PROPERTY(haloExpendY, float, RNCEKVExternalKeyboardView)
112
104
  }
113
105
  }
114
106
 
107
+ RCT_CUSTOM_VIEW_PROPERTY(roundedHaloFix, BOOL, RNCEKVExternalKeyboardView)
108
+ {
109
+ BOOL value = json ? [RCTConvert BOOL:json] : NO;
110
+ [view setRoundedHaloFix: value];
111
+ }
115
112
 
116
- RCT_CUSTOM_VIEW_PROPERTY(group, BOOL, RNCEKVExternalKeyboardView)
113
+
114
+ RCT_CUSTOM_VIEW_PROPERTY(focusableWrapper, BOOL, RNCEKVExternalKeyboardView)
117
115
  {
118
116
  BOOL value = json ? [RCTConvert BOOL:json] : NO;
119
- [view setIsGroup: value];
117
+ [view setFocusableWrapper: value];
120
118
  }
121
119
 
122
120
  RCT_CUSTOM_VIEW_PROPERTY(groupIdentifier, NSString, RNCEKVExternalKeyboardView)
@@ -159,7 +157,7 @@ RCT_CUSTOM_VIEW_PROPERTY(enableContextMenu, BOOL, RNCEKVExternalKeyboardView)
159
157
  [view setEnableContextMenu: value];
160
158
  }
161
159
 
162
- RCT_EXPORT_METHOD(focus:(nonnull NSNumber *)reactTag)
160
+ RCT_EXPORT_METHOD(rnekKeyboardFocus:(nonnull NSNumber *)reactTag)
163
161
  {
164
162
  [self.bridge.uiManager addUIBlock:^(RCTUIManager *uiManager, NSDictionary<NSNumber *,UIView *> *viewRegistry) {
165
163
  UIView *view = viewRegistry[reactTag];
@@ -171,4 +169,17 @@ RCT_EXPORT_METHOD(focus:(nonnull NSNumber *)reactTag)
171
169
  }];
172
170
  }
173
171
 
172
+
173
+ RCT_EXPORT_METHOD(rnekScreenReaderFocus:(nonnull NSNumber *)reactTag)
174
+ {
175
+ [self.bridge.uiManager addUIBlock:^(RCTUIManager *uiManager, NSDictionary<NSNumber *,UIView *> *viewRegistry) {
176
+ UIView *view = viewRegistry[reactTag];
177
+ if (!view || ![view isKindOfClass:[RNCEKVExternalKeyboardView class]]) {
178
+ return;
179
+ }
180
+ RNCEKVExternalKeyboardView *keyboardView = (RNCEKVExternalKeyboardView*)view;
181
+ [keyboardView screenReaderFocus];
182
+ }];
183
+ }
184
+
174
185
  @end
@@ -91,6 +91,9 @@ static const NSInteger AUTO_BLUR = 2;
91
91
  [self setMultiline: newViewProps.multiline];
92
92
  }
93
93
 
94
+ [self updateFocusProps:RNCEKV::FocusProps::from(oldViewProps)
95
+ newProps:RNCEKV::FocusProps::from(newViewProps)];
96
+
94
97
  [self updateGroupIdentifierProps:RNCEKV::GroupIdentifierProps::from(oldViewProps)
95
98
  newProps:RNCEKV::GroupIdentifierProps::from(newViewProps)];
96
99
 
@@ -177,6 +180,16 @@ Class<RCTComponentViewProtocol> TextInputFocusWrapperCls(void)
177
180
  return _textField;
178
181
  }
179
182
 
183
+ - (NSNumber *)resolveFocusChange:(UIFocusUpdateContext *)context {
184
+ if([context.nextFocusedView isDescendantOfView:self]) {
185
+ return @YES;
186
+ } else if([context.previouslyFocusedView isDescendantOfView:self]) {
187
+ return @NO;
188
+ }
189
+
190
+ return nil;
191
+ }
192
+
180
193
  - (void)didUpdateFocusInContext:(UIFocusUpdateContext *)context
181
194
  withAnimationCoordinator:(UIFocusAnimationCoordinator *)coordinator {
182
195
 
@@ -286,4 +299,8 @@ Class<RCTComponentViewProtocol> TextInputFocusWrapperCls(void)
286
299
  return nil;
287
300
  }
288
301
 
302
+ - (BOOL)focusableWrapper {
303
+ return YES;
304
+ }
305
+
289
306
  @end
@@ -22,6 +22,12 @@ RCT_CUSTOM_VIEW_PROPERTY(canBeFocused, BOOL, RNCEKVTextInputFocusWrapper)
22
22
  [view setCanBeFocused: value];
23
23
  }
24
24
 
25
+ RCT_CUSTOM_VIEW_PROPERTY(hasOnFocusChanged, BOOL, RNCEKVTextInputFocusWrapper)
26
+ {
27
+ BOOL value = json ? [RCTConvert BOOL:json] : NO;
28
+ [view setHasOnFocusChanged: value];
29
+ }
30
+
25
31
  RCT_CUSTOM_VIEW_PROPERTY(groupIdentifier, NSString, RNCEKVTextInputFocusWrapper)
26
32
  {
27
33
  NSString* value = json ? [RCTConvert NSString:json] : nil;
@@ -63,6 +69,12 @@ RCT_CUSTOM_VIEW_PROPERTY(haloEffect, BOOL, RNCEKVTextInputFocusWrapper)
63
69
  }
64
70
  }
65
71
 
72
+ RCT_CUSTOM_VIEW_PROPERTY(roundedHaloFix, BOOL, RNCEKVTextInputFocusWrapper)
73
+ {
74
+ BOOL value = json ? [RCTConvert BOOL:json] : NO;
75
+ [view setRoundedHaloFix: value];
76
+ }
77
+
66
78
  RCT_CUSTOM_VIEW_PROPERTY(tintColor, UIColor, RNCEKVTextInputFocusWrapper)
67
79
  {
68
80
  if (json) {
@@ -8,19 +8,18 @@ var _react = _interopRequireWildcard(require("react"));
8
8
  var _reactNative = require("react-native");
9
9
  var _nativeSpec = require("../../nativeSpec");
10
10
  var _ExternalKeyboardViewNativeComponent = require("../../nativeSpec/ExternalKeyboardViewNativeComponent");
11
- var _BaseKeyboardView = require("../../types/BaseKeyboardView");
11
+ var _types = require("../../types");
12
12
  var _BubbledKeyPressContext = require("../../context/BubbledKeyPressContext");
13
- var _BaseKeyboardView2 = require("./BaseKeyboardView.hooks");
13
+ var _BaseKeyboardView = require("./BaseKeyboardView.hooks");
14
14
  var _GroupIdentifierContext = require("../../context/GroupIdentifierContext");
15
15
  var _useOnFocusChange = require("../../utils/useOnFocusChange");
16
16
  var _OrderFocusContext = require("../../context/OrderFocusContext");
17
- var _wrapOrderPrefix = require("../../utils/wrapOrderPrefix");
17
+ var _useWrappedOrderProps = require("../../utils/useWrappedOrderProps");
18
18
  var _jsxRuntime = require("react/jsx-runtime");
19
19
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
20
20
  // @ts-ignore
21
21
 
22
22
  const isIOS = _reactNative.Platform.OS === 'ios';
23
- const DEFAULT_EXPOSE_METHODS = ['blur', 'measure', 'measureInWindow', 'measureLayout', 'setNativeProps'];
24
23
  var BITS = /*#__PURE__*/function (BITS) {
25
24
  BITS[BITS["BIT_01"] = 1] = "BIT_01";
26
25
  BITS[BITS["BIT_02"] = 2] = "BIT_02";
@@ -28,21 +27,19 @@ var BITS = /*#__PURE__*/function (BITS) {
28
27
  BITS[BITS["BIT_04"] = 8] = "BIT_04";
29
28
  BITS[BITS["BIT_05"] = 16] = "BIT_05";
30
29
  BITS[BITS["BIT_06"] = 32] = "BIT_06";
31
- BITS[BITS["BIT_07"] = 64] = "BIT_07";
32
- BITS[BITS["BIT_08"] = 128] = "BIT_08";
33
30
  BITS[BITS["BIT_09"] = 256] = "BIT_09";
34
31
  BITS[BITS["BIT_10"] = 512] = "BIT_10";
35
32
  return BITS;
36
33
  }(BITS || {});
37
34
  const focusBinaryValue = {
38
- [_BaseKeyboardView.LockFocusEnum.Up]: BITS.BIT_01,
39
- [_BaseKeyboardView.LockFocusEnum.Down]: BITS.BIT_02,
40
- [_BaseKeyboardView.LockFocusEnum.Left]: BITS.BIT_03,
41
- [_BaseKeyboardView.LockFocusEnum.Right]: BITS.BIT_04,
42
- [_BaseKeyboardView.LockFocusEnum.Forward]: BITS.BIT_05,
43
- [_BaseKeyboardView.LockFocusEnum.Backward]: BITS.BIT_06,
44
- [_BaseKeyboardView.LockFocusEnum.First]: BITS.BIT_09,
45
- [_BaseKeyboardView.LockFocusEnum.Last]: BITS.BIT_10
35
+ [_types.LockFocusEnum.Up]: BITS.BIT_01,
36
+ [_types.LockFocusEnum.Down]: BITS.BIT_02,
37
+ [_types.LockFocusEnum.Left]: BITS.BIT_03,
38
+ [_types.LockFocusEnum.Right]: BITS.BIT_04,
39
+ [_types.LockFocusEnum.Forward]: BITS.BIT_05,
40
+ [_types.LockFocusEnum.Backward]: BITS.BIT_06,
41
+ [_types.LockFocusEnum.First]: BITS.BIT_09,
42
+ [_types.LockFocusEnum.Last]: BITS.BIT_10
46
43
  };
47
44
  const mapFocusValues = values => {
48
45
  if (!values || !values.length) return 0;
@@ -57,18 +54,14 @@ const BaseKeyboardView = exports.BaseKeyboardView = /*#__PURE__*/_react.default.
57
54
  onBubbledContextMenuPress,
58
55
  haloEffect,
59
56
  autoFocus,
60
- canBeFocused = true,
61
57
  focusable = true,
62
- group = false,
58
+ focusableWrapper = false,
63
59
  onFocus,
64
60
  onBlur,
65
- viewRef,
66
61
  groupIdentifier,
67
62
  tintColor,
68
- ignoreGroupFocusHint,
69
- exposeMethods = DEFAULT_EXPOSE_METHODS,
70
- enableA11yFocus = false,
71
- screenAutoA11yFocusDelay = 500,
63
+ // TODO: revisit screenAutoA11yFocusDelay default (currently 300ms)
64
+ screenAutoA11yFocusDelay = 300,
72
65
  lockFocus,
73
66
  orderIndex,
74
67
  orderForward,
@@ -83,11 +76,14 @@ const BaseKeyboardView = exports.BaseKeyboardView = /*#__PURE__*/_react.default.
83
76
  orderId,
84
77
  enableContextMenu,
85
78
  orderPrefix: _orderPrefix,
79
+ tintType,
80
+ // Deprecated no-ops: destructured out so they never reach the native view.
81
+ enableA11yFocus: _enableA11yFocus,
86
82
  defaultFocusHighlightEnabled = true,
83
+ roundedHaloFix = false,
87
84
  ...props
88
85
  }, ref) => {
89
- const localRef = (0, _react.useRef)(undefined);
90
- const targetRef = viewRef ?? localRef;
86
+ const targetRef = (0, _react.useRef)(null);
91
87
  const lockFocusValue = (0, _react.useMemo)(() => mapFocusValues(lockFocus), [lockFocus]);
92
88
  const contextIdentifier = (0, _GroupIdentifierContext.useGroupIdentifierContext)();
93
89
  const contextGroupId = (0, _OrderFocusContext.useOrderFocusGroup)();
@@ -105,44 +101,53 @@ const BaseKeyboardView = exports.BaseKeyboardView = /*#__PURE__*/_react.default.
105
101
  }
106
102
  }, [orderId, orderForward, orderBackward, orderFirst, orderLast, orderLeft, orderRight, orderUp, orderDown, orderPrefix]);
107
103
  (0, _react.useImperativeHandle)(ref, () => {
108
- const actions = {};
109
- exposeMethods.forEach(method => {
110
- actions[method] = (...args) => {
111
- const componentActions = targetRef?.current;
112
- return componentActions?.[method]?.(...args);
113
- };
114
- });
115
- actions.focus = () => {
116
- if (targetRef?.current) {
117
- _ExternalKeyboardViewNativeComponent.Commands.focus(targetRef.current);
104
+ const nativeCommands = {
105
+ keyboardFocus: () => {
106
+ if (targetRef?.current) {
107
+ _ExternalKeyboardViewNativeComponent.Commands.rnekKeyboardFocus(targetRef.current);
108
+ }
109
+ },
110
+ screenReaderFocus: () => {
111
+ if (targetRef?.current) {
112
+ _ExternalKeyboardViewNativeComponent.Commands.rnekScreenReaderFocus(targetRef.current);
113
+ }
114
+ },
115
+ focus: () => {
116
+ if (targetRef?.current) {
117
+ _ExternalKeyboardViewNativeComponent.Commands.rnekKeyboardFocus(targetRef.current);
118
+ _ExternalKeyboardViewNativeComponent.Commands.rnekScreenReaderFocus(targetRef.current);
119
+ }
118
120
  }
119
121
  };
120
- return actions;
121
- }, [exposeMethods, targetRef]);
122
- const bubbled = (0, _BaseKeyboardView2.useBubbledInfo)(onBubbledContextMenuPress);
122
+ return new Proxy({}, {
123
+ get(_target, prop) {
124
+ if (prop in nativeCommands) {
125
+ return nativeCommands[prop];
126
+ }
127
+ return targetRef?.current?.[prop];
128
+ }
129
+ });
130
+ }, [targetRef]);
131
+ const bubbled = (0, _BaseKeyboardView.useBubbledInfo)(onBubbledContextMenuPress);
123
132
  const onFocusChangeHandler = (0, _useOnFocusChange.useOnFocusChange)({
124
133
  onFocusChange,
125
134
  onFocus,
126
135
  onBlur
127
136
  });
128
- const hasOnFocusChanged = onFocusChange || onFocus || onBlur;
129
- const ignoreFocusHint = _reactNative.Platform.OS !== 'ios' || !ignoreGroupFocusHint;
130
- const wrapPrefix = (0, _react.useMemo)(() => (0, _wrapOrderPrefix.wrapOrderPrefix)(orderPrefix), [orderPrefix]);
131
- const wrappedOrderProps = (0, _react.useMemo)(() => ({
132
- orderId: wrapPrefix(orderId),
133
- orderForward: wrapPrefix(orderForward),
134
- orderBackward: wrapPrefix(orderBackward),
135
- orderFirst: wrapPrefix(orderFirst === null ? undefined : orderFirst ?? orderForward),
136
- orderLast: wrapPrefix(orderLast === null ? undefined : orderLast ?? orderBackward),
137
- orderLeft: wrapPrefix(orderLeft),
138
- orderRight: wrapPrefix(orderRight),
139
- orderUp: wrapPrefix(orderUp),
140
- orderDown: wrapPrefix(orderDown)
141
- }), [wrapPrefix, orderId, orderForward, orderBackward, orderFirst, orderLast, orderLeft, orderRight, orderUp, orderDown]);
142
- const platformSpecificHalo = (0, _react.useMemo)(() => _reactNative.Platform.select({
143
- ios: haloEffect,
144
- android: defaultFocusHighlightEnabled
145
- }) ?? true, [defaultFocusHighlightEnabled, haloEffect]);
137
+ const hasFocusListener = onFocusChange || onFocus || onBlur;
138
+ const wrappedOrderProps = (0, _useWrappedOrderProps.useWrappedOrderProps)({
139
+ orderPrefix,
140
+ orderId,
141
+ orderForward,
142
+ orderBackward,
143
+ orderFirst,
144
+ orderLast,
145
+ orderLeft,
146
+ orderRight,
147
+ orderUp,
148
+ orderDown
149
+ });
150
+ const platformSpecificHalo = tintType !== 'none' && (isIOS ? haloEffect ?? true : defaultFocusHighlightEnabled);
146
151
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_BubbledKeyPressContext.KeyPressContext.Provider, {
147
152
  value: bubbled.context,
148
153
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_nativeSpec.ExternalKeyboardViewNative, {
@@ -150,27 +155,24 @@ const BaseKeyboardView = exports.BaseKeyboardView = /*#__PURE__*/_react.default.
150
155
  haloEffect: platformSpecificHalo,
151
156
  ref: targetRef,
152
157
  enableContextMenu: enableContextMenu,
153
- canBeFocused: ignoreFocusHint && focusable && canBeFocused,
158
+ canBeFocused: focusable,
154
159
  autoFocus: autoFocus,
155
- onKeyDownPress: onKeyDownPress //ToDo update types
156
- ,
157
- onKeyUpPress: onKeyUpPress //ToDo update types
158
- ,
160
+ onKeyDownPress: onKeyDownPress,
161
+ onKeyUpPress: onKeyUpPress,
159
162
  onBubbledContextMenuPress: bubbled.contextMenu,
160
163
  groupIdentifier: groupIdentifier ?? contextIdentifier,
161
164
  tintColor: isIOS ? tintColor : undefined,
162
- onFocusChange: hasOnFocusChanged && onFocusChangeHandler //ToDo update types
163
- ,
165
+ onFocusChange: hasFocusListener ? onFocusChangeHandler : undefined,
164
166
  hasKeyDownPress: Boolean(onKeyDownPress),
165
167
  hasKeyUpPress: Boolean(onKeyUpPress),
166
- hasOnFocusChanged: Boolean(hasOnFocusChanged),
167
- group: group,
168
+ hasOnFocusChanged: Boolean(hasFocusListener),
169
+ focusableWrapper: focusableWrapper,
168
170
  orderIndex: orderIndex ?? -1,
169
- enableA11yFocus: enableA11yFocus,
170
171
  screenAutoA11yFocusDelay: screenAutoA11yFocusDelay,
171
172
  lockFocus: lockFocusValue,
172
173
  ...wrappedOrderProps,
173
- orderGroup: groupId
174
+ orderGroup: groupId,
175
+ roundedHaloFix: roundedHaloFix
174
176
  })
175
177
  });
176
178
  }));
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_nativeSpec","_ExternalKeyboardViewNativeComponent","_BaseKeyboardView","_BubbledKeyPressContext","_BaseKeyboardView2","_GroupIdentifierContext","_useOnFocusChange","_OrderFocusContext","_wrapOrderPrefix","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","isIOS","Platform","OS","DEFAULT_EXPOSE_METHODS","BITS","focusBinaryValue","LockFocusEnum","Up","BIT_01","Down","BIT_02","Left","BIT_03","Right","BIT_04","Forward","BIT_05","Backward","BIT_06","First","BIT_09","Last","BIT_10","mapFocusValues","values","length","reduce","acc","item","BaseKeyboardView","exports","React","memo","forwardRef","onFocusChange","onKeyUpPress","onKeyDownPress","onBubbledContextMenuPress","haloEffect","autoFocus","canBeFocused","focusable","group","onFocus","onBlur","viewRef","groupIdentifier","tintColor","ignoreGroupFocusHint","exposeMethods","enableA11yFocus","screenAutoA11yFocusDelay","lockFocus","orderIndex","orderForward","orderBackward","orderFirst","orderLast","orderGroup","orderLeft","orderRight","orderUp","orderDown","orderId","enableContextMenu","orderPrefix","_orderPrefix","defaultFocusHighlightEnabled","props","ref","localRef","useRef","undefined","targetRef","lockFocusValue","useMemo","contextIdentifier","useGroupIdentifierContext","contextGroupId","useOrderFocusGroup","groupId","useEffect","__DEV__","console","warn","hasOrderLinkProp","useImperativeHandle","actions","forEach","method","args","componentActions","current","focus","Commands","bubbled","useBubbledInfo","onFocusChangeHandler","useOnFocusChange","hasOnFocusChanged","ignoreFocusHint","wrapPrefix","wrapOrderPrefix","wrappedOrderProps","platformSpecificHalo","select","ios","android","jsx","KeyPressContext","Provider","value","context","children","ExternalKeyboardViewNative","contextMenu","hasKeyDownPress","Boolean","hasKeyUpPress"],"sourceRoot":"../../../../src","sources":["components/BaseKeyboardView/BaseKeyboardView.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAOA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,oCAAA,GAAAH,OAAA;AACA,IAAAI,iBAAA,GAAAJ,OAAA;AAOA,IAAAK,uBAAA,GAAAL,OAAA;AACA,IAAAM,kBAAA,GAAAN,OAAA;AACA,IAAAO,uBAAA,GAAAP,OAAA;AACA,IAAAQ,iBAAA,GAAAR,OAAA;AACA,IAAAS,kBAAA,GAAAT,OAAA;AACA,IAAAU,gBAAA,GAAAV,OAAA;AAA8D,IAAAW,WAAA,GAAAX,OAAA;AAAA,SAAAD,wBAAAa,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAf,uBAAA,YAAAA,CAAAa,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,C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I3D,SAAS,IAAID,YAAa;MAC3DD,SAAS,EAAEA,SAAU;MACrBH,cAAc,EAAEA,cAA4B,CAAC;MAAA;MAC7CD,YAAY,EAAEA,YAA0B,CAAC;MAAA;MACzCE,yBAAyB,EAAE0D,OAAO,CAACoB,WAAY;MAC/CrE,eAAe,EAAEA,eAAe,IAAI8B,iBAAkB;MACtD7B,SAAS,EAAE/C,KAAK,GAAG+C,SAAS,GAAGyB,SAAU;MACzCtC,aAAa,EACViE,iBAAiB,IAAIF,oBACvB,CAAC;MAAA;MACFmB,eAAe,EAAEC,OAAO,CAACjF,cAAc,CAAE;MACzCkF,aAAa,EAAED,OAAO,CAAClF,YAAY,CAAE;MACrCgE,iBAAiB,EAAEkB,OAAO,CAAClB,iBAAiB,CAAE;MAC9CzD,KAAK,EAAEA,KAAM;MACbW,UAAU,EAAEA,UAAU,IAAI,CAAC,CAAE;MAC7BH,eAAe,EAAEA,eAAgB;MACjCC,wBAAwB,EAAEA,wBAAyB;MACnDC,SAAS,EAAEsB,cAAe;MAAA,GACtB6B,iBAAiB;MACrB7C,UAAU,EAAEsB;IAAQ,CACrB;EAAC,CACsB,CAAC;AAE/B,CACF,CACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_nativeSpec","_ExternalKeyboardViewNativeComponent","_types","_BubbledKeyPressContext","_BaseKeyboardView","_GroupIdentifierContext","_useOnFocusChange","_OrderFocusContext","_useWrappedOrderProps","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","isIOS","Platform","OS","BITS","focusBinaryValue","LockFocusEnum","Up","BIT_01","Down","BIT_02","Left","BIT_03","Right","BIT_04","Forward","BIT_05","Backward","BIT_06","First","BIT_09","Last","BIT_10","mapFocusValues","values","length","reduce","acc","item","BaseKeyboardView","exports","React","memo","forwardRef","onFocusChange","onKeyUpPress","onKeyDownPress","onBubbledContextMenuPress","haloEffect","autoFocus","focusable","focusableWrapper","onFocus","onBlur","groupIdentifier","tintColor","screenAutoA11yFocusDelay","lockFocus","orderIndex","orderForward","orderBackward","orderFirst","orderLast","orderGroup","orderLeft","orderRight","orderUp","orderDown","orderId","enableContextMenu","orderPrefix","_orderPrefix","tintType","enableA11yFocus","_enableA11yFocus","defaultFocusHighlightEnabled","roundedHaloFix","props","ref","targetRef","useRef","lockFocusValue","useMemo","contextIdentifier","useGroupIdentifierContext","contextGroupId","useOrderFocusGroup","groupId","useEffect","__DEV__","undefined","console","warn","hasOrderLinkProp","useImperativeHandle","nativeCommands","keyboardFocus","current","Commands","rnekKeyboardFocus","screenReaderFocus","rnekScreenReaderFocus","focus","Proxy","_target","prop","bubbled","useBubbledInfo","onFocusChangeHandler","useOnFocusChange","hasFocusListener","wrappedOrderProps","useWrappedOrderProps","platformSpecificHalo","jsx","KeyPressContext","Provider","value","context","children","ExternalKeyboardViewNative","canBeFocused","contextMenu","hasKeyDownPress","Boolean","hasKeyUpPress","hasOnFocusChanged"],"sourceRoot":"../../../../src","sources":["components/BaseKeyboardView/BaseKeyboardView.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAOA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,oCAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AAOA,IAAAK,uBAAA,GAAAL,OAAA;AACA,IAAAM,iBAAA,GAAAN,OAAA;AACA,IAAAO,uBAAA,GAAAP,OAAA;AACA,IAAAQ,iBAAA,GAAAR,OAAA;AACA,IAAAS,kBAAA,GAAAT,OAAA;AACA,IAAAU,qBAAA,GAAAV,OAAA;AAAwE,IAAAW,WAAA,GAAAX,OAAA;AAAA,SAAAD,wBAAAa,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,Y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