react-native-a11y-order 0.9.1 → 0.11.0-rc1

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 (305) hide show
  1. package/README.md +55 -334
  2. package/android/src/main/java/com/a11yorder/A11yOrderPackage.java +2 -6
  3. package/android/src/main/java/com/a11yorder/core/A11yManagedFocusView.java +29 -0
  4. package/android/src/main/java/com/a11yorder/{views/A11yView/A11yView.java → core/A11yScreenReaderView.java} +3 -45
  5. package/android/src/main/java/com/a11yorder/core/A11yViewOrder.java +37 -0
  6. package/android/src/main/java/com/a11yorder/modules/A11yAnnounceModule.java +20 -7
  7. package/android/src/main/java/com/a11yorder/views/A11yCardView/A11yCardViewManager.java +18 -0
  8. package/android/src/main/java/com/a11yorder/views/A11yIndexView/A11yIndexView.java +2 -65
  9. package/android/src/main/java/com/a11yorder/views/A11yIndexView/A11yIndexViewManager.java +21 -0
  10. package/android/src/newarch/A11yCardViewManagerSpec.java +9 -0
  11. package/android/src/oldarch/A11yAnnounceModuleSpec.java +8 -1
  12. package/android/src/oldarch/A11yCardViewManagerSpec.java +8 -0
  13. package/android/src/oldarch/A11yIndexViewManagerSpec.java +8 -0
  14. package/ios/helpers/RNAOFabricEventHelper/RNAOFabricEventHelper.mm +5 -5
  15. package/ios/helpers/RNAOSpeechAttributes.h +35 -0
  16. package/ios/helpers/RNAOSpeechAttributes.mm +64 -0
  17. package/ios/modules/RNAOA11yAnnounceModule.h +13 -9
  18. package/ios/modules/RNAOA11yAnnounceModule.mm +220 -14
  19. package/ios/services/RNAOA11yAnnounceService/RNAOA11yAnnounceService.h +11 -1
  20. package/ios/services/RNAOA11yAnnounceService/RNAOA11yAnnounceService.mm +55 -51
  21. package/ios/views/RNAOA11yCardView/RNAOA11yCardView.h +29 -0
  22. package/ios/views/RNAOA11yCardView/RNAOA11yCardView.mm +83 -0
  23. package/ios/views/RNAOA11yCardView/RNAOA11yCardViewManager.h +14 -0
  24. package/ios/views/RNAOA11yCardView/RNAOA11yCardViewManager.mm +17 -0
  25. package/ios/views/RNAOA11yIndexView/RNAOA11yIndexView.h +2 -41
  26. package/ios/views/RNAOA11yIndexView/RNAOA11yIndexView.mm +24 -128
  27. package/ios/views/RNAOA11yIndexView/RNAOA11yIndexViewManager.mm +15 -0
  28. package/ios/views/RNAOA11yPaneTitleView/RNAOA11yPaneTitleView.mm +12 -2
  29. package/ios/views/base/RNAOA11yGroupChildrenView.h +21 -0
  30. package/ios/views/base/RNAOA11yGroupChildrenView.mm +19 -0
  31. package/ios/views/base/RNAOA11yManagedFocusView.h +28 -0
  32. package/ios/views/{RNAOA11yView/RNAOA11yView.mm → base/RNAOA11yManagedFocusView.mm} +64 -183
  33. package/ios/views/base/RNAOA11yScreenReaderView.h +24 -0
  34. package/ios/views/base/RNAOA11yScreenReaderView.mm +32 -0
  35. package/ios/views/base/RNAOA11yViewGroup.h +35 -0
  36. package/ios/views/base/RNAOA11yViewGroup.mm +46 -0
  37. package/ios/views/base/RNAOA11yViewOrder.h +40 -0
  38. package/ios/views/base/RNAOA11yViewOrder.mm +92 -0
  39. package/lib/commonjs/components/A11yCard/A11yCard.ios.js +49 -0
  40. package/lib/commonjs/components/A11yCard/A11yCard.ios.js.map +1 -0
  41. package/lib/commonjs/components/A11yCard/A11yCard.js +41 -0
  42. package/lib/commonjs/components/A11yCard/A11yCard.js.map +1 -0
  43. package/lib/commonjs/{types/A11yGroup.types.js → components/A11yCard/A11yCard.types.js} +1 -1
  44. package/lib/commonjs/components/A11yCard/A11yCard.types.js.map +1 -0
  45. package/lib/commonjs/components/A11yIndex/A11yIndex.js +88 -28
  46. package/lib/commonjs/components/A11yIndex/A11yIndex.js.map +1 -1
  47. package/lib/commonjs/components/A11yIndex/A11yIndex.types.js +39 -0
  48. package/lib/commonjs/components/A11yIndex/A11yIndex.types.js.map +1 -0
  49. package/lib/commonjs/components/A11yIndex/A11yIndex.web.js.map +1 -1
  50. package/lib/commonjs/components/A11yLock/A11yFocusFrame/A11yFocusFrame.js.map +1 -1
  51. package/lib/commonjs/components/A11yLock/A11yFocusTrap/A11yFocusTrap.js.map +1 -1
  52. package/lib/commonjs/components/A11yLock/A11yLock.types.js.map +1 -0
  53. package/lib/commonjs/components/{A11ySequence/A11ySequence.js → A11yOrder/A11yOrder.js} +3 -3
  54. package/lib/commonjs/components/A11yOrder/A11yOrder.js.map +1 -0
  55. package/lib/commonjs/{types/A11yModule.types.js → components/A11yOrder/A11yOrder.types.js} +1 -1
  56. package/lib/commonjs/components/A11yOrder/A11yOrder.types.js.map +1 -0
  57. package/lib/commonjs/components/A11yPaneTitle/A11yPaneTitle.js +6 -7
  58. package/lib/commonjs/components/A11yPaneTitle/A11yPaneTitle.js.map +1 -1
  59. package/lib/commonjs/components/A11yPaneTitle/A11yPaneTitle.types.js +6 -0
  60. package/lib/commonjs/components/A11yPaneTitle/A11yPaneTitle.types.js.map +1 -0
  61. package/lib/commonjs/components/A11yView/A11yView.js +7 -33
  62. package/lib/commonjs/components/A11yView/A11yView.js.map +1 -1
  63. package/lib/commonjs/components/A11yView/A11yView.types.js.map +1 -0
  64. package/lib/commonjs/index.js +37 -10
  65. package/lib/commonjs/index.js.map +1 -1
  66. package/lib/commonjs/index.web.js +12 -6
  67. package/lib/commonjs/index.web.js.map +1 -1
  68. package/lib/commonjs/modules/A11yAnnounceModule.android.js +37 -3
  69. package/lib/commonjs/modules/A11yAnnounceModule.android.js.map +1 -1
  70. package/lib/commonjs/modules/A11yAnnounceModule.js +66 -8
  71. package/lib/commonjs/modules/A11yAnnounceModule.js.map +1 -1
  72. package/lib/commonjs/nativeSpecs/{A11yGroupNativeComponent.ts → A11yCardNativeComponent.ts} +3 -3
  73. package/lib/commonjs/nativeSpecs/A11yIndexNativeComponent.ts +11 -3
  74. package/lib/commonjs/nativeSpecs/NativeA11yAnnounceModule.js +2 -0
  75. package/lib/commonjs/nativeSpecs/NativeA11yAnnounceModule.js.map +1 -1
  76. package/lib/module/components/A11yCard/A11yCard.ios.js +43 -0
  77. package/lib/module/components/A11yCard/A11yCard.ios.js.map +1 -0
  78. package/lib/module/components/A11yCard/A11yCard.js +35 -0
  79. package/lib/module/components/A11yCard/A11yCard.js.map +1 -0
  80. package/lib/module/components/A11yCard/A11yCard.types.js +4 -0
  81. package/lib/module/components/A11yCard/A11yCard.types.js.map +1 -0
  82. package/lib/module/components/A11yIndex/A11yIndex.js +88 -28
  83. package/lib/module/components/A11yIndex/A11yIndex.js.map +1 -1
  84. package/lib/module/components/A11yIndex/A11yIndex.types.js +35 -0
  85. package/lib/module/components/A11yIndex/A11yIndex.types.js.map +1 -0
  86. package/lib/module/components/A11yIndex/A11yIndex.web.js.map +1 -1
  87. package/lib/module/components/A11yLock/A11yFocusFrame/A11yFocusFrame.js.map +1 -1
  88. package/lib/module/components/A11yLock/A11yFocusTrap/A11yFocusTrap.js.map +1 -1
  89. package/lib/module/components/A11yLock/A11yLock.types.js.map +1 -0
  90. package/lib/module/components/{A11ySequence/A11ySequence.js → A11yOrder/A11yOrder.js} +2 -2
  91. package/lib/module/components/A11yOrder/A11yOrder.js.map +1 -0
  92. package/lib/module/components/A11yOrder/A11yOrder.types.js +4 -0
  93. package/lib/module/components/A11yOrder/A11yOrder.types.js.map +1 -0
  94. package/lib/module/components/A11yPaneTitle/A11yPaneTitle.js +6 -7
  95. package/lib/module/components/A11yPaneTitle/A11yPaneTitle.js.map +1 -1
  96. package/lib/module/components/A11yPaneTitle/A11yPaneTitle.types.js +4 -0
  97. package/lib/module/components/A11yPaneTitle/A11yPaneTitle.types.js.map +1 -0
  98. package/lib/module/components/A11yView/A11yView.js +7 -31
  99. package/lib/module/components/A11yView/A11yView.js.map +1 -1
  100. package/lib/module/components/A11yView/A11yView.types.js.map +1 -0
  101. package/lib/module/index.js +13 -9
  102. package/lib/module/index.js.map +1 -1
  103. package/lib/module/index.web.js +5 -5
  104. package/lib/module/index.web.js.map +1 -1
  105. package/lib/module/modules/A11yAnnounceModule.android.js +32 -2
  106. package/lib/module/modules/A11yAnnounceModule.android.js.map +1 -1
  107. package/lib/module/modules/A11yAnnounceModule.js +62 -7
  108. package/lib/module/modules/A11yAnnounceModule.js.map +1 -1
  109. package/{src/nativeSpecs/A11yGroupNativeComponent.ts → lib/module/nativeSpecs/A11yCardNativeComponent.ts} +3 -3
  110. package/lib/module/nativeSpecs/A11yIndexNativeComponent.ts +11 -3
  111. package/lib/module/nativeSpecs/NativeA11yAnnounceModule.js +4 -0
  112. package/lib/module/nativeSpecs/NativeA11yAnnounceModule.js.map +1 -1
  113. package/lib/typescript/src/components/A11yCard/A11yCard.d.ts +5 -0
  114. package/lib/typescript/src/components/A11yCard/A11yCard.d.ts.map +1 -0
  115. package/lib/typescript/src/components/A11yCard/A11yCard.ios.d.ts +5 -0
  116. package/lib/typescript/src/components/A11yCard/A11yCard.ios.d.ts.map +1 -0
  117. package/lib/typescript/src/components/A11yCard/A11yCard.types.d.ts +38 -0
  118. package/lib/typescript/src/components/A11yCard/A11yCard.types.d.ts.map +1 -0
  119. package/lib/typescript/src/components/A11yIndex/A11yIndex.d.ts +10 -128
  120. package/lib/typescript/src/components/A11yIndex/A11yIndex.d.ts.map +1 -1
  121. package/lib/typescript/src/components/A11yIndex/A11yIndex.types.d.ts +101 -0
  122. package/lib/typescript/src/components/A11yIndex/A11yIndex.types.d.ts.map +1 -0
  123. package/lib/typescript/src/components/A11yIndex/A11yIndex.web.d.ts +8 -128
  124. package/lib/typescript/src/components/A11yIndex/A11yIndex.web.d.ts.map +1 -1
  125. package/lib/typescript/src/components/A11yLock/A11yBaseLock/A11yBaseLock.d.ts +1 -1
  126. package/lib/typescript/src/components/A11yLock/A11yBaseLock/A11yBaseLock.d.ts.map +1 -1
  127. package/lib/typescript/src/components/A11yLock/A11yFocusFrame/A11yFocusFrame.android.d.ts +1 -1
  128. package/lib/typescript/src/components/A11yLock/A11yFocusFrame/A11yFocusFrame.android.d.ts.map +1 -1
  129. package/lib/typescript/src/components/A11yLock/A11yFocusFrame/A11yFocusFrame.d.ts +2 -2
  130. package/lib/typescript/src/components/A11yLock/A11yFocusFrame/A11yFocusFrame.d.ts.map +1 -1
  131. package/lib/typescript/src/components/A11yLock/A11yFocusTrap/A11yFocusTrap.android.d.ts +1 -1
  132. package/lib/typescript/src/components/A11yLock/A11yFocusTrap/A11yFocusTrap.android.d.ts.map +1 -1
  133. package/lib/typescript/src/components/A11yLock/A11yFocusTrap/A11yFocusTrap.d.ts +2 -2
  134. package/lib/typescript/src/components/A11yLock/A11yFocusTrap/A11yFocusTrap.d.ts.map +1 -1
  135. package/lib/typescript/src/components/A11yLock/A11yLock.types.d.ts +35 -0
  136. package/lib/typescript/src/components/A11yLock/A11yLock.types.d.ts.map +1 -0
  137. package/lib/typescript/src/components/A11yOrder/A11yOrder.d.ts +5 -0
  138. package/lib/typescript/src/components/A11yOrder/A11yOrder.d.ts.map +1 -0
  139. package/lib/typescript/src/components/A11yOrder/A11yOrder.types.d.ts +11 -0
  140. package/lib/typescript/src/components/A11yOrder/A11yOrder.types.d.ts.map +1 -0
  141. package/lib/typescript/src/components/A11yPaneTitle/A11yPaneTitle.d.ts +3 -17
  142. package/lib/typescript/src/components/A11yPaneTitle/A11yPaneTitle.d.ts.map +1 -1
  143. package/lib/typescript/src/components/A11yPaneTitle/A11yPaneTitle.types.d.ts +52 -0
  144. package/lib/typescript/src/components/A11yPaneTitle/A11yPaneTitle.types.d.ts.map +1 -0
  145. package/lib/typescript/src/components/A11yView/A11yView.d.ts +13 -130
  146. package/lib/typescript/src/components/A11yView/A11yView.d.ts.map +1 -1
  147. package/lib/typescript/src/components/A11yView/A11yView.types.d.ts +10 -0
  148. package/lib/typescript/src/components/A11yView/A11yView.types.d.ts.map +1 -0
  149. package/lib/typescript/src/index.d.ts +29 -403
  150. package/lib/typescript/src/index.d.ts.map +1 -1
  151. package/lib/typescript/src/index.web.d.ts +20 -171
  152. package/lib/typescript/src/index.web.d.ts.map +1 -1
  153. package/lib/typescript/src/modules/A11yAnnounceModule.android.d.ts +25 -2
  154. package/lib/typescript/src/modules/A11yAnnounceModule.android.d.ts.map +1 -1
  155. package/lib/typescript/src/modules/A11yAnnounceModule.d.ts +112 -4
  156. package/lib/typescript/src/modules/A11yAnnounceModule.d.ts.map +1 -1
  157. package/lib/typescript/src/nativeSpecs/A11yCardNativeComponent.d.ts +6 -0
  158. package/lib/typescript/src/nativeSpecs/A11yCardNativeComponent.d.ts.map +1 -0
  159. package/lib/typescript/src/nativeSpecs/A11yIndexNativeComponent.d.ts +10 -6
  160. package/lib/typescript/src/nativeSpecs/A11yIndexNativeComponent.d.ts.map +1 -1
  161. package/lib/typescript/src/nativeSpecs/A11yLockNativeComponent.d.ts +1 -3
  162. package/lib/typescript/src/nativeSpecs/A11yLockNativeComponent.d.ts.map +1 -1
  163. package/lib/typescript/src/nativeSpecs/A11yOrderNativeComponent.d.ts +1 -3
  164. package/lib/typescript/src/nativeSpecs/A11yOrderNativeComponent.d.ts.map +1 -1
  165. package/lib/typescript/src/nativeSpecs/A11yPaneTitleNativeComponent.d.ts +1 -3
  166. package/lib/typescript/src/nativeSpecs/A11yPaneTitleNativeComponent.d.ts.map +1 -1
  167. package/lib/typescript/src/nativeSpecs/NativeA11yAnnounceModule.d.ts +22 -2
  168. package/lib/typescript/src/nativeSpecs/NativeA11yAnnounceModule.d.ts.map +1 -1
  169. package/package.json +12 -11
  170. package/src/components/A11yCard/A11yCard.ios.tsx +44 -0
  171. package/src/components/A11yCard/A11yCard.tsx +35 -0
  172. package/src/components/A11yCard/A11yCard.types.ts +50 -0
  173. package/src/components/A11yIndex/A11yIndex.tsx +144 -52
  174. package/src/components/A11yIndex/A11yIndex.types.ts +119 -0
  175. package/src/components/A11yIndex/A11yIndex.web.tsx +12 -17
  176. package/src/components/A11yLock/A11yBaseLock/A11yBaseLock.tsx +1 -1
  177. package/src/components/A11yLock/A11yFocusFrame/A11yFocusFrame.android.tsx +1 -1
  178. package/src/components/A11yLock/A11yFocusFrame/A11yFocusFrame.tsx +3 -2
  179. package/src/components/A11yLock/A11yFocusTrap/A11yFocusTrap.android.tsx +1 -1
  180. package/src/components/A11yLock/A11yFocusTrap/A11yFocusTrap.tsx +2 -2
  181. package/src/components/A11yLock/A11yLock.types.ts +38 -0
  182. package/src/components/{A11ySequence/A11ySequence.tsx → A11yOrder/A11yOrder.tsx} +4 -2
  183. package/src/components/A11yOrder/A11yOrder.types.ts +11 -0
  184. package/src/components/A11yPaneTitle/A11yPaneTitle.tsx +13 -19
  185. package/src/components/A11yPaneTitle/A11yPaneTitle.types.ts +58 -0
  186. package/src/components/A11yView/A11yView.tsx +8 -63
  187. package/src/components/A11yView/A11yView.types.ts +11 -0
  188. package/src/index.ts +38 -20
  189. package/src/index.web.ts +7 -14
  190. package/src/modules/A11yAnnounceModule.android.ts +18 -2
  191. package/src/modules/A11yAnnounceModule.ts +153 -9
  192. package/{lib/module/nativeSpecs/A11yGroupNativeComponent.ts → src/nativeSpecs/A11yCardNativeComponent.ts} +3 -3
  193. package/src/nativeSpecs/A11yIndexNativeComponent.ts +11 -3
  194. package/src/nativeSpecs/NativeA11yAnnounceModule.ts +31 -1
  195. package/android/src/main/java/com/a11yorder/views/A11yGroupView/A11yGroupViewManager.java +0 -25
  196. package/android/src/main/java/com/a11yorder/views/A11yUIContainerView/A11yUIContainerViewManager.java +0 -30
  197. package/android/src/main/java/com/a11yorder/views/A11yView/A11yViewManager.java +0 -67
  198. package/android/src/newarch/A11yGroupViewManagerSpec.java +0 -9
  199. package/android/src/newarch/A11yUIContainerViewManagerSpec.java +0 -8
  200. package/android/src/newarch/A11yViewSpec.java +0 -13
  201. package/android/src/oldarch/A11yGroupViewManagerSpec.java +0 -8
  202. package/android/src/oldarch/A11yUIContainerViewManagerSpec.java +0 -9
  203. package/android/src/oldarch/A11yViewSpec.java +0 -18
  204. package/ios/views/RNAOA11yGroupView/RNAOA11yGroupView.h +0 -37
  205. package/ios/views/RNAOA11yGroupView/RNAOA11yGroupView.mm +0 -67
  206. package/ios/views/RNAOA11yGroupView/RNAOA11yGroupViewManager.h +0 -18
  207. package/ios/views/RNAOA11yGroupView/RNAOA11yGroupViewManager.mm +0 -25
  208. package/ios/views/RNAOA11yUIContainerView/RNAOA11yUIContainerView.h +0 -35
  209. package/ios/views/RNAOA11yUIContainerView/RNAOA11yUIContainerView.mm +0 -79
  210. package/ios/views/RNAOA11yUIContainerView/RNAOA11yUIContainerViewManager.h +0 -18
  211. package/ios/views/RNAOA11yUIContainerView/RNAOA11yUIContainerViewManager.mm +0 -27
  212. package/ios/views/RNAOA11yView/RNAOA11yView.h +0 -45
  213. package/ios/views/RNAOA11yView/RNAOA11yViewManager.h +0 -14
  214. package/ios/views/RNAOA11yView/RNAOA11yViewManager.mm +0 -53
  215. package/lib/commonjs/components/A11yGroup/A11yGroup.android.js +0 -18
  216. package/lib/commonjs/components/A11yGroup/A11yGroup.android.js.map +0 -1
  217. package/lib/commonjs/components/A11yGroup/A11yGroup.ios.js +0 -24
  218. package/lib/commonjs/components/A11yGroup/A11yGroup.ios.js.map +0 -1
  219. package/lib/commonjs/components/A11yGroup/A11yGroup.js +0 -9
  220. package/lib/commonjs/components/A11yGroup/A11yGroup.js.map +0 -1
  221. package/lib/commonjs/components/A11ySequence/A11ySequence.js.map +0 -1
  222. package/lib/commonjs/components/A11yUIContainer/A11yUIContainer.ios.js +0 -22
  223. package/lib/commonjs/components/A11yUIContainer/A11yUIContainer.ios.js.map +0 -1
  224. package/lib/commonjs/components/A11yUIContainer/A11yUIContainer.js +0 -9
  225. package/lib/commonjs/components/A11yUIContainer/A11yUIContainer.js.map +0 -1
  226. package/lib/commonjs/nativeSpecs/A11yUIContainerNativeComponent.ts +0 -12
  227. package/lib/commonjs/nativeSpecs/A11yViewNativeComponent.ts +0 -36
  228. package/lib/commonjs/types/A11yGroup.types.js.map +0 -1
  229. package/lib/commonjs/types/A11yIndex.types.js +0 -13
  230. package/lib/commonjs/types/A11yIndex.types.js.map +0 -1
  231. package/lib/commonjs/types/A11yLock.types.js.map +0 -1
  232. package/lib/commonjs/types/A11yModule.types.js.map +0 -1
  233. package/lib/commonjs/types/A11yUIContainerView.types.js +0 -15
  234. package/lib/commonjs/types/A11yUIContainerView.types.js.map +0 -1
  235. package/lib/commonjs/types/A11yView.types.js.map +0 -1
  236. package/lib/module/components/A11yGroup/A11yGroup.android.js +0 -12
  237. package/lib/module/components/A11yGroup/A11yGroup.android.js.map +0 -1
  238. package/lib/module/components/A11yGroup/A11yGroup.ios.js +0 -18
  239. package/lib/module/components/A11yGroup/A11yGroup.ios.js.map +0 -1
  240. package/lib/module/components/A11yGroup/A11yGroup.js +0 -5
  241. package/lib/module/components/A11yGroup/A11yGroup.js.map +0 -1
  242. package/lib/module/components/A11ySequence/A11ySequence.js.map +0 -1
  243. package/lib/module/components/A11yUIContainer/A11yUIContainer.ios.js +0 -17
  244. package/lib/module/components/A11yUIContainer/A11yUIContainer.ios.js.map +0 -1
  245. package/lib/module/components/A11yUIContainer/A11yUIContainer.js +0 -5
  246. package/lib/module/components/A11yUIContainer/A11yUIContainer.js.map +0 -1
  247. package/lib/module/nativeSpecs/A11yUIContainerNativeComponent.ts +0 -12
  248. package/lib/module/nativeSpecs/A11yViewNativeComponent.ts +0 -36
  249. package/lib/module/types/A11yGroup.types.js +0 -4
  250. package/lib/module/types/A11yGroup.types.js.map +0 -1
  251. package/lib/module/types/A11yIndex.types.js +0 -9
  252. package/lib/module/types/A11yIndex.types.js.map +0 -1
  253. package/lib/module/types/A11yLock.types.js.map +0 -1
  254. package/lib/module/types/A11yModule.types.js +0 -4
  255. package/lib/module/types/A11yModule.types.js.map +0 -1
  256. package/lib/module/types/A11yUIContainerView.types.js +0 -11
  257. package/lib/module/types/A11yUIContainerView.types.js.map +0 -1
  258. package/lib/module/types/A11yView.types.js.map +0 -1
  259. package/lib/typescript/src/components/A11yGroup/A11yGroup.android.d.ts +0 -4
  260. package/lib/typescript/src/components/A11yGroup/A11yGroup.android.d.ts.map +0 -1
  261. package/lib/typescript/src/components/A11yGroup/A11yGroup.d.ts +0 -3
  262. package/lib/typescript/src/components/A11yGroup/A11yGroup.d.ts.map +0 -1
  263. package/lib/typescript/src/components/A11yGroup/A11yGroup.ios.d.ts +0 -4
  264. package/lib/typescript/src/components/A11yGroup/A11yGroup.ios.d.ts.map +0 -1
  265. package/lib/typescript/src/components/A11ySequence/A11ySequence.d.ts +0 -126
  266. package/lib/typescript/src/components/A11ySequence/A11ySequence.d.ts.map +0 -1
  267. package/lib/typescript/src/components/A11yUIContainer/A11yUIContainer.d.ts +0 -3
  268. package/lib/typescript/src/components/A11yUIContainer/A11yUIContainer.d.ts.map +0 -1
  269. package/lib/typescript/src/components/A11yUIContainer/A11yUIContainer.ios.d.ts +0 -4
  270. package/lib/typescript/src/components/A11yUIContainer/A11yUIContainer.ios.d.ts.map +0 -1
  271. package/lib/typescript/src/nativeSpecs/A11yGroupNativeComponent.d.ts +0 -8
  272. package/lib/typescript/src/nativeSpecs/A11yGroupNativeComponent.d.ts.map +0 -1
  273. package/lib/typescript/src/nativeSpecs/A11yUIContainerNativeComponent.d.ts +0 -10
  274. package/lib/typescript/src/nativeSpecs/A11yUIContainerNativeComponent.d.ts.map +0 -1
  275. package/lib/typescript/src/nativeSpecs/A11yViewNativeComponent.d.ts +0 -26
  276. package/lib/typescript/src/nativeSpecs/A11yViewNativeComponent.d.ts.map +0 -1
  277. package/lib/typescript/src/types/A11yGroup.types.d.ts +0 -7
  278. package/lib/typescript/src/types/A11yGroup.types.d.ts.map +0 -1
  279. package/lib/typescript/src/types/A11yIndex.types.d.ts +0 -19
  280. package/lib/typescript/src/types/A11yIndex.types.d.ts.map +0 -1
  281. package/lib/typescript/src/types/A11yLock.types.d.ts +0 -8
  282. package/lib/typescript/src/types/A11yLock.types.d.ts.map +0 -1
  283. package/lib/typescript/src/types/A11yModule.types.d.ts +0 -7
  284. package/lib/typescript/src/types/A11yModule.types.d.ts.map +0 -1
  285. package/lib/typescript/src/types/A11yUIContainerView.types.d.ts +0 -13
  286. package/lib/typescript/src/types/A11yUIContainerView.types.d.ts.map +0 -1
  287. package/lib/typescript/src/types/A11yView.types.d.ts +0 -12
  288. package/lib/typescript/src/types/A11yView.types.d.ts.map +0 -1
  289. package/src/components/A11yGroup/A11yGroup.android.tsx +0 -8
  290. package/src/components/A11yGroup/A11yGroup.ios.tsx +0 -11
  291. package/src/components/A11yGroup/A11yGroup.tsx +0 -5
  292. package/src/components/A11yUIContainer/A11yUIContainer.ios.tsx +0 -20
  293. package/src/components/A11yUIContainer/A11yUIContainer.tsx +0 -5
  294. package/src/nativeSpecs/A11yUIContainerNativeComponent.ts +0 -12
  295. package/src/nativeSpecs/A11yViewNativeComponent.ts +0 -36
  296. package/src/types/A11yGroup.types.ts +0 -9
  297. package/src/types/A11yIndex.types.ts +0 -21
  298. package/src/types/A11yLock.types.ts +0 -8
  299. package/src/types/A11yModule.types.ts +0 -7
  300. package/src/types/A11yUIContainerView.types.ts +0 -15
  301. package/src/types/A11yView.types.ts +0 -19
  302. /package/lib/commonjs/{types → components/A11yLock}/A11yLock.types.js +0 -0
  303. /package/lib/commonjs/{types → components/A11yView}/A11yView.types.js +0 -0
  304. /package/lib/module/{types → components/A11yLock}/A11yLock.types.js +0 -0
  305. /package/lib/module/{types → components/A11yView}/A11yView.types.js +0 -0
@@ -1,179 +1,28 @@
1
- export type { IndexCommands, A11yOrderType, A11yOrderTypeEnum, A11yIndexProps, } from './types/A11yIndex.types';
2
- export type { A11yContainerTypeEnum, A11yUIContainerType, A11yUIContainerProps, } from './types/A11yUIContainerView.types';
3
- export type { ScreenReaderDescendantFocusChangedEvent } from './types/A11yView.types';
4
- export type { A11yViewProps } from './types/A11yView.types';
1
+ import { View } from 'react-native';
2
+ export type { IndexCommands, A11yOrderType, A11yIndexProps, } from './components/A11yIndex/A11yIndex.types';
3
+ export { A11yOrderTypeEnum } from './components/A11yIndex/A11yIndex.types';
4
+ export type { ScreenReaderDescendantFocusChangedEvent } from './components/A11yView/A11yView.types';
5
+ export type { A11yViewProps } from './components/A11yView/A11yView.types';
5
6
  export declare const A11y: {
6
- Order: (props: Omit<import("react-native").ViewProps, keyof {
7
- ref?: React.Ref<React.ComponentRef<typeof import("react-native").unstable_NativeView>>;
8
- }> & {
9
- ref?: React.Ref<React.ComponentRef<typeof import("react-native").unstable_NativeView>>;
10
- }) => React.ReactNode;
11
- Group: (props: Omit<import("react-native").ViewProps, keyof {
12
- ref?: React.Ref<React.ComponentRef<typeof import("react-native").unstable_NativeView>>;
13
- }> & {
14
- ref?: React.Ref<React.ComponentRef<typeof import("react-native").unstable_NativeView>>;
15
- }) => React.ReactNode;
16
- Index: import("react").NamedExoticComponent<{
7
+ Order: typeof View;
8
+ Index: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("react-native").ViewProps & {
17
9
  children: React.ReactNode;
18
- index: number;
10
+ index?: number;
19
11
  orderType?: import(".").A11yOrderType;
12
+ a11yUIContainer?: import("./components/A11yIndex/A11yIndex.types").A11yUIContainerType;
13
+ shouldGroupAccessibilityChildren?: boolean;
14
+ onScreenReaderFocused?: () => void;
20
15
  onScreenReaderSubViewFocusChange?: (isFocused: boolean) => void;
21
16
  onScreenReaderSubViewFocused?: () => void;
22
17
  onScreenReaderSubViewBlurred?: () => void;
23
- } & Readonly<Omit<Readonly<{
24
- onAccessibilityAction?: ((event: import("react-native").AccessibilityActionEvent) => unknown) | undefined;
25
- onAccessibilityTap?: (() => unknown) | undefined;
26
- onLayout?: ((event: import("react-native").LayoutChangeEvent) => unknown) | undefined;
27
- onMagicTap?: (() => unknown) | undefined;
28
- onAccessibilityEscape?: (() => unknown) | undefined;
29
- }>, "onMoveShouldSetResponder" | "onMoveShouldSetResponderCapture" | "onResponderGrant" | "onResponderMove" | "onResponderReject" | "onResponderRelease" | "onResponderStart" | "onResponderEnd" | "onResponderTerminate" | "onResponderTerminationRequest" | "onStartShouldSetResponder" | "onStartShouldSetResponderCapture" | "onMouseEnter" | "onMouseLeave" | "onClick" | "onClickCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onBlur" | "onBlurCapture" | "onFocus" | "onFocusCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "nativeBackgroundAndroid" | "nativeForegroundAndroid" | "renderToHardwareTextureAndroid" | "hasTVPreferredFocus" | "nextFocusDown" | "nextFocusForward" | "nextFocusLeft" | "nextFocusRight" | "nextFocusUp" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "accessibilityIgnoresInvertColors" | "accessibilityViewIsModal" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "aria-modal" | "accessibilityElementsHidden" | "accessibilityLanguage" | "accessibilityRespondsToUserInteraction" | "accessible" | "accessibilityLabel" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "role" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "importantForAccessibility" | "screenReaderFocusable" | "children" | "style" | "collapsable" | "collapsableChildren" | "id" | "testID" | "nativeID" | "needsOffscreenAlphaCompositing" | "hitSlop" | "pointerEvents" | "removeClippedSubviews" | "experimental_accessibilityOrder"> & Omit<Readonly<{
30
- onMoveShouldSetResponder?: ((e: import("react-native").GestureResponderEvent) => boolean) | undefined;
31
- onMoveShouldSetResponderCapture?: ((e: import("react-native").GestureResponderEvent) => boolean) | undefined;
32
- onResponderGrant?: ((e: import("react-native").GestureResponderEvent) => void | boolean) | undefined;
33
- onResponderMove?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
34
- onResponderReject?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
35
- onResponderRelease?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
36
- onResponderStart?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
37
- onResponderEnd?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
38
- onResponderTerminate?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
39
- onResponderTerminationRequest?: ((e: import("react-native").GestureResponderEvent) => boolean) | undefined;
40
- onStartShouldSetResponder?: ((e: import("react-native").GestureResponderEvent) => boolean) | undefined;
41
- onStartShouldSetResponderCapture?: ((e: import("react-native").GestureResponderEvent) => boolean) | undefined;
42
- }>, "onMouseEnter" | "onMouseLeave" | "onClick" | "onClickCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onBlur" | "onBlurCapture" | "onFocus" | "onFocusCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "nativeBackgroundAndroid" | "nativeForegroundAndroid" | "renderToHardwareTextureAndroid" | "hasTVPreferredFocus" | "nextFocusDown" | "nextFocusForward" | "nextFocusLeft" | "nextFocusRight" | "nextFocusUp" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "accessibilityIgnoresInvertColors" | "accessibilityViewIsModal" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "aria-modal" | "accessibilityElementsHidden" | "accessibilityLanguage" | "accessibilityRespondsToUserInteraction" | "accessible" | "accessibilityLabel" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "role" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "importantForAccessibility" | "screenReaderFocusable" | "children" | "style" | "collapsable" | "collapsableChildren" | "id" | "testID" | "nativeID" | "needsOffscreenAlphaCompositing" | "hitSlop" | "pointerEvents" | "removeClippedSubviews" | "experimental_accessibilityOrder"> & Omit<Readonly<{
43
- onMouseEnter?: ((event: import("react-native").MouseEvent) => void) | undefined;
44
- onMouseLeave?: ((event: import("react-native").MouseEvent) => void) | undefined;
45
- }>, "onClick" | "onClickCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onBlur" | "onBlurCapture" | "onFocus" | "onFocusCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "nativeBackgroundAndroid" | "nativeForegroundAndroid" | "renderToHardwareTextureAndroid" | "hasTVPreferredFocus" | "nextFocusDown" | "nextFocusForward" | "nextFocusLeft" | "nextFocusRight" | "nextFocusUp" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "accessibilityIgnoresInvertColors" | "accessibilityViewIsModal" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "aria-modal" | "accessibilityElementsHidden" | "accessibilityLanguage" | "accessibilityRespondsToUserInteraction" | "accessible" | "accessibilityLabel" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "role" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "importantForAccessibility" | "screenReaderFocusable" | "children" | "style" | "collapsable" | "collapsableChildren" | "id" | "testID" | "nativeID" | "needsOffscreenAlphaCompositing" | "hitSlop" | "pointerEvents" | "removeClippedSubviews" | "experimental_accessibilityOrder"> & Omit<Readonly<{
46
- onClick?: ((event: import("react-native").PointerEvent) => void) | undefined;
47
- onClickCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
48
- onPointerEnter?: ((event: import("react-native").PointerEvent) => void) | undefined;
49
- onPointerEnterCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
50
- onPointerLeave?: ((event: import("react-native").PointerEvent) => void) | undefined;
51
- onPointerLeaveCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
52
- onPointerMove?: ((event: import("react-native").PointerEvent) => void) | undefined;
53
- onPointerMoveCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
54
- onPointerCancel?: ((e: import("react-native").PointerEvent) => void) | undefined;
55
- onPointerCancelCapture?: ((e: import("react-native").PointerEvent) => void) | undefined;
56
- onPointerDown?: ((e: import("react-native").PointerEvent) => void) | undefined;
57
- onPointerDownCapture?: ((e: import("react-native").PointerEvent) => void) | undefined;
58
- onPointerUp?: ((e: import("react-native").PointerEvent) => void) | undefined;
59
- onPointerUpCapture?: ((e: import("react-native").PointerEvent) => void) | undefined;
60
- onPointerOver?: ((e: import("react-native").PointerEvent) => void) | undefined;
61
- onPointerOverCapture?: ((e: import("react-native").PointerEvent) => void) | undefined;
62
- onPointerOut?: ((e: import("react-native").PointerEvent) => void) | undefined;
63
- onPointerOutCapture?: ((e: import("react-native").PointerEvent) => void) | undefined;
64
- onGotPointerCapture?: ((e: import("react-native").PointerEvent) => void) | undefined;
65
- onGotPointerCaptureCapture?: ((e: import("react-native").PointerEvent) => void) | undefined;
66
- onLostPointerCapture?: ((e: import("react-native").PointerEvent) => void) | undefined;
67
- onLostPointerCaptureCapture?: ((e: import("react-native").PointerEvent) => void) | undefined;
68
- }>, "onClick" | "onBlur" | "onBlurCapture" | "onFocus" | "onFocusCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "nativeBackgroundAndroid" | "nativeForegroundAndroid" | "renderToHardwareTextureAndroid" | "hasTVPreferredFocus" | "nextFocusDown" | "nextFocusForward" | "nextFocusLeft" | "nextFocusRight" | "nextFocusUp" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "accessibilityIgnoresInvertColors" | "accessibilityViewIsModal" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "aria-modal" | "accessibilityElementsHidden" | "accessibilityLanguage" | "accessibilityRespondsToUserInteraction" | "accessible" | "accessibilityLabel" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "role" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "importantForAccessibility" | "screenReaderFocusable" | "children" | "style" | "collapsable" | "collapsableChildren" | "id" | "testID" | "nativeID" | "needsOffscreenAlphaCompositing" | "hitSlop" | "pointerEvents" | "removeClippedSubviews" | "experimental_accessibilityOrder"> & Omit<Readonly<{
69
- onBlur?: ((event: import("react-native").BlurEvent) => void) | undefined;
70
- onBlurCapture?: ((event: import("react-native").BlurEvent) => void) | undefined;
71
- onFocus?: ((event: import("react-native").FocusEvent) => void) | undefined;
72
- onFocusCapture?: ((event: import("react-native").FocusEvent) => void) | undefined;
73
- }>, "onClick" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "nativeBackgroundAndroid" | "nativeForegroundAndroid" | "renderToHardwareTextureAndroid" | "hasTVPreferredFocus" | "nextFocusDown" | "nextFocusForward" | "nextFocusLeft" | "nextFocusRight" | "nextFocusUp" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "accessibilityIgnoresInvertColors" | "accessibilityViewIsModal" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "aria-modal" | "accessibilityElementsHidden" | "accessibilityLanguage" | "accessibilityRespondsToUserInteraction" | "accessible" | "accessibilityLabel" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "role" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "importantForAccessibility" | "screenReaderFocusable" | "children" | "style" | "collapsable" | "collapsableChildren" | "id" | "testID" | "nativeID" | "needsOffscreenAlphaCompositing" | "hitSlop" | "pointerEvents" | "removeClippedSubviews" | "experimental_accessibilityOrder"> & Omit<Readonly<{
74
- onTouchCancel?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
75
- onTouchCancelCapture?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
76
- onTouchEnd?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
77
- onTouchEndCapture?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
78
- onTouchMove?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
79
- onTouchMoveCapture?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
80
- onTouchStart?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
81
- onTouchStartCapture?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
82
- }>, "onClick" | "nativeBackgroundAndroid" | "nativeForegroundAndroid" | "renderToHardwareTextureAndroid" | "hasTVPreferredFocus" | "nextFocusDown" | "nextFocusForward" | "nextFocusLeft" | "nextFocusRight" | "nextFocusUp" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "accessibilityIgnoresInvertColors" | "accessibilityViewIsModal" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "aria-modal" | "accessibilityElementsHidden" | "accessibilityLanguage" | "accessibilityRespondsToUserInteraction" | "accessible" | "accessibilityLabel" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "role" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "importantForAccessibility" | "screenReaderFocusable" | "children" | "style" | "collapsable" | "collapsableChildren" | "id" | "testID" | "nativeID" | "needsOffscreenAlphaCompositing" | "hitSlop" | "pointerEvents" | "removeClippedSubviews" | "experimental_accessibilityOrder"> & Omit<Readonly<{
83
- nativeBackgroundAndroid?: import("react-native/types_generated/Libraries/Components/View/ViewPropTypes").AndroidDrawable | undefined;
84
- nativeForegroundAndroid?: import("react-native/types_generated/Libraries/Components/View/ViewPropTypes").AndroidDrawable | undefined;
85
- renderToHardwareTextureAndroid?: boolean | undefined;
86
- hasTVPreferredFocus?: boolean | undefined;
87
- nextFocusDown?: number | undefined;
88
- nextFocusForward?: number | undefined;
89
- nextFocusLeft?: number | undefined;
90
- nextFocusRight?: number | undefined;
91
- nextFocusUp?: number | undefined;
92
- focusable?: boolean | undefined;
93
- tabIndex?: 0 | -1;
94
- onClick?: ((event: import("react-native").GestureResponderEvent) => unknown) | undefined;
95
- }>, "shouldRasterizeIOS" | "accessibilityIgnoresInvertColors" | "accessibilityViewIsModal" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "aria-modal" | "accessibilityElementsHidden" | "accessibilityLanguage" | "accessibilityRespondsToUserInteraction" | "accessible" | "accessibilityLabel" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "role" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "importantForAccessibility" | "screenReaderFocusable" | "children" | "style" | "collapsable" | "collapsableChildren" | "id" | "testID" | "nativeID" | "needsOffscreenAlphaCompositing" | "hitSlop" | "pointerEvents" | "removeClippedSubviews" | "experimental_accessibilityOrder"> & Omit<Readonly<{
96
- shouldRasterizeIOS?: boolean | undefined;
97
- }>, "accessibilityIgnoresInvertColors" | "accessibilityViewIsModal" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "aria-modal" | "accessibilityElementsHidden" | "accessibilityLanguage" | "accessibilityRespondsToUserInteraction" | "accessible" | "accessibilityLabel" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "role" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "importantForAccessibility" | "screenReaderFocusable" | "children" | "style" | "collapsable" | "collapsableChildren" | "id" | "testID" | "nativeID" | "needsOffscreenAlphaCompositing" | "hitSlop" | "pointerEvents" | "removeClippedSubviews" | "experimental_accessibilityOrder"> & Omit<Readonly<Omit<Readonly<{
98
- accessibilityLabelledBy?: (string | undefined) | (Array<string> | undefined);
99
- "aria-labelledby"?: string | undefined;
100
- accessibilityLiveRegion?: ("none" | "polite" | "assertive") | undefined;
101
- "aria-live"?: ("polite" | "assertive" | "off") | undefined;
102
- importantForAccessibility?: ("auto" | "yes" | "no" | "no-hide-descendants") | undefined;
103
- screenReaderFocusable?: boolean;
104
- }>, "accessibilityIgnoresInvertColors" | "accessibilityViewIsModal" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "aria-modal" | "accessibilityElementsHidden" | "accessibilityLanguage" | "accessibilityRespondsToUserInteraction" | "accessible" | "accessibilityLabel" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "role" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden"> & Omit<Readonly<{
105
- accessibilityIgnoresInvertColors?: boolean | undefined;
106
- accessibilityViewIsModal?: boolean | undefined;
107
- accessibilityShowsLargeContentViewer?: boolean | undefined;
108
- accessibilityLargeContentTitle?: string | undefined;
109
- "aria-modal"?: boolean | undefined;
110
- accessibilityElementsHidden?: boolean | undefined;
111
- accessibilityLanguage?: string | undefined;
112
- accessibilityRespondsToUserInteraction?: boolean | undefined;
113
- }>, "accessible" | "accessibilityLabel" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "role" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden"> & {
114
- accessible?: boolean | undefined;
115
- accessibilityLabel?: string | undefined;
116
- accessibilityHint?: string | undefined;
117
- "aria-label"?: string | undefined;
118
- accessibilityRole?: import("react-native").AccessibilityRole | undefined;
119
- role?: import("react-native").Role | undefined;
120
- accessibilityState?: import("react-native").AccessibilityState | undefined;
121
- accessibilityValue?: import("react-native").AccessibilityValue | undefined;
122
- "aria-valuemax"?: import("react-native").AccessibilityValue["max"] | undefined;
123
- "aria-valuemin"?: import("react-native").AccessibilityValue["min"] | undefined;
124
- "aria-valuenow"?: import("react-native").AccessibilityValue["now"] | undefined;
125
- "aria-valuetext"?: import("react-native").AccessibilityValue["text"] | undefined;
126
- accessibilityActions?: ReadonlyArray<import("react-native/types_generated/Libraries/Components/View/ViewAccessibility").AccessibilityActionInfo> | undefined;
127
- "aria-busy"?: boolean | undefined;
128
- "aria-checked"?: (boolean | undefined) | "mixed";
129
- "aria-disabled"?: boolean | undefined;
130
- "aria-expanded"?: boolean | undefined;
131
- "aria-selected"?: boolean | undefined;
132
- "aria-hidden"?: boolean | undefined;
133
- }>, "children" | "style" | "collapsable" | "collapsableChildren" | "id" | "testID" | "nativeID" | "needsOffscreenAlphaCompositing" | "hitSlop" | "pointerEvents" | "removeClippedSubviews" | "experimental_accessibilityOrder"> & Omit<Readonly<{
134
- children?: React.ReactNode;
135
- style?: import("react-native/types_generated/Libraries/StyleSheet/StyleSheet").ViewStyleProp | undefined;
136
- collapsable?: boolean | undefined;
137
- collapsableChildren?: boolean | undefined;
138
- id?: string;
139
- testID?: string | undefined;
140
- nativeID?: string | undefined;
141
- needsOffscreenAlphaCompositing?: boolean | undefined;
142
- hitSlop?: import("react-native/types_generated/Libraries/StyleSheet/EdgeInsetsPropType").EdgeInsetsOrSizeProp | undefined;
143
- pointerEvents?: ("auto" | "box-none" | "box-only" | "none") | undefined;
144
- removeClippedSubviews?: boolean | undefined;
145
- experimental_accessibilityOrder?: Array<string> | undefined;
146
- }>, never>> & import("react").RefAttributes<import(".").IndexCommands>>;
147
- Container: (props: Omit<import("react-native").ViewProps, keyof {
148
- ref?: React.Ref<React.ComponentRef<typeof import("react-native").unstable_NativeView>>;
149
- }> & {
150
- ref?: React.Ref<React.ComponentRef<typeof import("react-native").unstable_NativeView>>;
151
- }) => React.ReactNode;
152
- PaneTitle: (props: Omit<import("react-native").ViewProps, keyof {
153
- ref?: React.Ref<React.ComponentRef<typeof import("react-native").unstable_NativeView>>;
154
- }> & {
155
- ref?: React.Ref<React.ComponentRef<typeof import("react-native").unstable_NativeView>>;
156
- }) => React.ReactNode;
157
- ScreenChange: (props: Omit<import("react-native").ViewProps, keyof {
158
- ref?: React.Ref<React.ComponentRef<typeof import("react-native").unstable_NativeView>>;
159
- }> & {
160
- ref?: React.Ref<React.ComponentRef<typeof import("react-native").unstable_NativeView>>;
161
- }) => React.ReactNode;
162
- View: (props: Omit<import("react-native").ViewProps, keyof {
163
- ref?: React.Ref<React.ComponentRef<typeof import("react-native").unstable_NativeView>>;
164
- }> & {
165
- ref?: React.Ref<React.ComponentRef<typeof import("react-native").unstable_NativeView>>;
166
- }) => React.ReactNode;
167
- FocusFrame: (props: Omit<import("react-native").ViewProps, keyof {
168
- ref?: React.Ref<React.ComponentRef<typeof import("react-native").unstable_NativeView>>;
169
- }> & {
170
- ref?: React.Ref<React.ComponentRef<typeof import("react-native").unstable_NativeView>>;
171
- }) => React.ReactNode;
172
- FocusTrap: (props: Omit<import("react-native").ViewProps, keyof {
173
- ref?: React.Ref<React.ComponentRef<typeof import("react-native").unstable_NativeView>>;
174
- }> & {
175
- ref?: React.Ref<React.ComponentRef<typeof import("react-native").unstable_NativeView>>;
176
- }) => React.ReactNode;
18
+ onScreenReaderDescendantFocusChanged?: (e: import(".").ScreenReaderDescendantFocusChangedEvent) => void;
19
+ } & import("react").RefAttributes<import(".").IndexCommands>>>;
20
+ View: typeof View;
21
+ PaneTitle: typeof View;
22
+ ScreenChange: typeof View;
23
+ FocusFrame: typeof View;
24
+ FocusTrap: typeof View;
25
+ Card: typeof View;
177
26
  };
178
- export { A11yModule } from './modules/A11yAnnounceModule';
27
+ export { ScreenReader } from './modules/A11yAnnounceModule';
179
28
  //# sourceMappingURL=index.web.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../../src/index.web.ts"],"names":[],"mappings":"AAGA,YAAY,EACV,aAAa,EACb,aAAa,EACb,iBAAiB,EACjB,cAAc,GACf,MAAM,yBAAyB,CAAC;AAEjC,YAAY,EACV,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,mCAAmC,CAAC;AAE3C,YAAY,EAAE,uCAAuC,EAAE,MAAM,wBAAwB,CAAC;AAEtF,YAAY,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D,eAAO,MAAM,IAAI;;WAaiE,CAAC;;WAAyE,CAAC;;;WAA3E,CAAC;;WAAyE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAA3E,CAAC;;WAAyE,CAAC;;;WAA3E,CAAC;;WAAyE,CAAC;;;WAA3E,CAAC;;WAAyE,CAAC;;;WAA3E,CAAC;;WAAyE,CAAC;;;WAA3E,CAAC;;WAAyE,CAAC;;;WAA3E,CAAC;;WAAyE,CAAC;;CAH5J,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC"}
1
+ {"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../../src/index.web.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,YAAY,EACV,aAAa,EACb,aAAa,EACb,cAAc,GACf,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAE3E,YAAY,EAAE,uCAAuC,EAAE,MAAM,sCAAsC,CAAC;AAEpG,YAAY,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAE1E,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;CAShB,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC"}
@@ -1,4 +1,27 @@
1
- export declare const A11yModule: {
2
- announce: (announcement: string) => void;
1
+ export declare const ScreenReader: {
2
+ announce: (message: string) => Promise<{
3
+ id: string;
4
+ status: "fired";
5
+ }>;
6
+ cancel: () => Promise<{
7
+ id: string;
8
+ status: "cancelled";
9
+ }>;
10
+ cancelAll: () => Promise<{
11
+ id: string;
12
+ status: "cancelled";
13
+ }>;
3
14
  };
15
+ export declare const announce: (message: string) => Promise<{
16
+ id: string;
17
+ status: "fired";
18
+ }>;
19
+ export declare const cancel: () => Promise<{
20
+ id: string;
21
+ status: "cancelled";
22
+ }>;
23
+ export declare const cancelAll: () => Promise<{
24
+ id: string;
25
+ status: "cancelled";
26
+ }>;
4
27
  //# sourceMappingURL=A11yAnnounceModule.android.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"A11yAnnounceModule.android.d.ts","sourceRoot":"","sources":["../../../../src/modules/A11yAnnounceModule.android.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU;;CAEtB,CAAC"}
1
+ {"version":3,"file":"A11yAnnounceModule.android.d.ts","sourceRoot":"","sources":["../../../../src/modules/A11yAnnounceModule.android.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY;wBACH,MAAM;;;;;;;;;;;;CAM3B,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,SAAS,MAAM;;;EAGvC,CAAC;AAEF,eAAO,MAAM,MAAM;;;EACwC,CAAC;AAC5D,eAAO,MAAM,SAAS;;;EACqC,CAAC"}
@@ -1,6 +1,114 @@
1
- export declare const A11yAnnounce: any;
2
- export declare function announce(message: string): void;
3
- export declare const A11yModule: {
4
- announce: typeof announce;
1
+ export type AnnouncePriority = 'low' | 'default' | 'high';
2
+ export type AnnounceStatus = 'spoken' | 'fired' | 'cancelled';
3
+ export type AnnounceOptions = {
4
+ /**
5
+ * Controls urgency. iOS 17+: maps to `UIAccessibilityPriority`.
6
+ *
7
+ * - `'low'` — spoken only when the screen reader is fully idle
8
+ * - `'default'` — standard queued announcement (default)
9
+ * - `'high'` — may preempt lower-priority pending items
10
+ */
11
+ priority?: AnnouncePriority;
12
+ /**
13
+ * When `true`, waits for current speech before speaking.
14
+ * When `false`, may interrupt current speech.
15
+ * Default: `true`
16
+ */
17
+ queue?: boolean;
18
+ /**
19
+ * Navigation-aware mode. When `true`, the announcement waits for:
20
+ * - Active navigation transitions to finish (1 s lock after screen change)
21
+ * - The screen reader to have a focused element
22
+ * - A 300 ms debounce to prevent overlap with focus changes
23
+ *
24
+ * Promise resolves when the service **actually fires** the announcement
25
+ * (not just when it's enqueued), so `await` is meaningful.
26
+ * Default: `false`
27
+ */
28
+ calm?: boolean;
29
+ /**
30
+ * Explicit delay in milliseconds before the announcement is posted.
31
+ * In `calm` mode the service manages its own timing; this is ignored.
32
+ * Default: `0`
33
+ */
34
+ delayMs?: number;
35
+ /**
36
+ * iOS-only speech characteristics. No-op on Android.
37
+ * Only relevant in direct mode (`calm: false`).
38
+ */
39
+ speech?: {
40
+ /**
41
+ * BCP-47 language tag (e.g. `'fr-FR'`). Defaults to the system language.
42
+ * @platform ios
43
+ */
44
+ language?: string;
45
+ /**
46
+ * Voice pitch multiplier, range `0.0`–`2.0`. Default: `1.0`.
47
+ * @platform ios
48
+ */
49
+ pitch?: number;
50
+ /**
51
+ * Spell each character individually.
52
+ * Useful for codes, CAPTCHAs, or abbreviations.
53
+ * @platform ios
54
+ */
55
+ spellOut?: boolean;
56
+ /**
57
+ * Read punctuation marks aloud (e.g. "comma", "period").
58
+ * @platform ios
59
+ */
60
+ punctuation?: boolean;
61
+ /**
62
+ * IPA pronunciation hint applied to the entire string.
63
+ * @platform ios
64
+ */
65
+ ipaNotation?: string;
66
+ };
67
+ };
68
+ export type AnnouncementResult = {
69
+ /** UUID assigned at enqueue time. */
70
+ id: string;
71
+ /**
72
+ * - `'spoken'` — VoiceOver confirmed full speech (iOS direct mode only).
73
+ * - `'fired'` — posted to the screen reader; completion not confirmed.
74
+ * Always the case on Android. iOS calm mode resolves here
75
+ * once the service actually fires the announcement.
76
+ * - `'cancelled'` — explicitly cancelled via `cancel()` or `cancelAll()`.
77
+ */
78
+ status: AnnounceStatus;
79
+ };
80
+ /**
81
+ * Posts a screen reader announcement.
82
+ *
83
+ * **calm mode** (`calm: true`): navigation-aware — waits for transitions to
84
+ * settle and for VoiceOver/TalkBack to have a focused element. Promise
85
+ * resolves when the announcement is **actually fired** (not just enqueued).
86
+ *
87
+ * **direct mode** (`calm: false`, default): posts immediately with speech
88
+ * attributes. On iOS, Promise resolves when VoiceOver confirms speech finished
89
+ * (`status: 'spoken'`) or was interrupted (`status: 'fired'`).
90
+ * On Android, always resolves immediately with `status: 'fired'`.
91
+ */
92
+ export declare function announce(message: string, options?: AnnounceOptions): Promise<AnnouncementResult>;
93
+ /**
94
+ * Cancels the announcement with the given `id`.
95
+ * In calm mode, removes it from the service queue if not yet fired.
96
+ * In direct mode, interrupts the active announcement if it matches.
97
+ */
98
+ export declare function cancel(id: string): Promise<AnnouncementResult>;
99
+ /**
100
+ * Cancels all pending and active announcements.
101
+ * Calm-mode promises resolve with `status: 'cancelled'`.
102
+ */
103
+ export declare function cancelAll(): Promise<AnnouncementResult>;
104
+ export declare const ScreenReader: {
105
+ /**
106
+ * Posts a navigation-aware announcement (calm mode).
107
+ * Waits for transitions to finish before speaking.
108
+ * Promise resolves when the announcement is actually fired.
109
+ */
110
+ announce: (message: string, options?: AnnounceOptions) => Promise<AnnouncementResult>;
111
+ cancel: typeof cancel;
112
+ cancelAll: typeof cancelAll;
5
113
  };
6
114
  //# sourceMappingURL=A11yAnnounceModule.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"A11yAnnounceModule.d.ts","sourceRoot":"","sources":["../../../../src/modules/A11yAnnounceModule.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,YAAY,KAStB,CAAC;AAEJ,wBAAgB,QAAQ,CAAC,OAAO,EAAE,MAAM,QAEvC;AAED,eAAO,MAAM,UAAU;;CAEtB,CAAC"}
1
+ {"version":3,"file":"A11yAnnounceModule.d.ts","sourceRoot":"","sources":["../../../../src/modules/A11yAnnounceModule.ts"],"names":[],"mappings":"AA6BA,MAAM,MAAM,gBAAgB,GAAG,KAAK,GAAG,SAAS,GAAG,MAAM,CAAC;AAE1D,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,OAAO,GAAG,WAAW,CAAC;AAE9D,MAAM,MAAM,eAAe,GAAG;IAC5B;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAE5B;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;;;;;;;;OASG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,MAAM,CAAC,EAAE;QACP;;;WAGG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC;QAElB;;;WAGG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf;;;;WAIG;QACH,QAAQ,CAAC,EAAE,OAAO,CAAC;QAEnB;;;WAGG;QACH,WAAW,CAAC,EAAE,OAAO,CAAC;QAEtB;;;WAGG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,qCAAqC;IACrC,EAAE,EAAE,MAAM,CAAC;IACX;;;;;;OAMG;IACH,MAAM,EAAE,cAAc,CAAC;CACxB,CAAC;AAIF;;;;;;;;;;;GAWG;AACH,wBAAgB,QAAQ,CACtB,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,eAAe,GACxB,OAAO,CAAC,kBAAkB,CAAC,CAM7B;AAED;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAE9D;AAED;;;GAGG;AACH,wBAAgB,SAAS,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAEvD;AAID,eAAO,MAAM,YAAY;IACvB;;;;OAIG;wBACiB,MAAM,YAAY,eAAe;;;CAKtD,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { ViewProps } from 'react-native';
2
+ export interface A11yCardNativeComponentProps extends ViewProps {
3
+ }
4
+ declare const _default: import("react-native/Libraries/Utilities/codegenNativeComponent").NativeComponentType<A11yCardNativeComponentProps>;
5
+ export default _default;
6
+ //# sourceMappingURL=A11yCardNativeComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"A11yCardNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/nativeSpecs/A11yCardNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAI9C,MAAM,WAAW,4BAA6B,SAAQ,SAAS;CAAG;;AAElE,wBAEE"}
@@ -6,19 +6,23 @@ export type ScreenReaderFocusChange = Readonly<{
6
6
  }>;
7
7
  export type ScreenReaderDescendantFocusChanged = Readonly<{
8
8
  status: string;
9
+ nativeId?: string;
9
10
  }>;
10
11
  export interface A11yIndexNativeComponentProps extends ViewProps {
11
- orderIndex: Int32;
12
- orderKey: string;
13
- orderFocusType: Int32;
12
+ orderIndex?: Int32;
13
+ orderKey?: string;
14
+ orderFocusType?: Int32;
15
+ shouldGroupAccessibilityChildren?: Int32;
16
+ descendantFocusChangedEnabled?: boolean;
17
+ onScreenReaderFocused?: DirectEventHandler<{}>;
18
+ onScreenReaderDescendantFocusChanged?: DirectEventHandler<ScreenReaderDescendantFocusChanged>;
14
19
  onScreenReaderFocusChange?: DirectEventHandler<ScreenReaderFocusChange>;
20
+ containerType?: Int32;
15
21
  }
16
22
  export interface NativeCommands {
17
23
  focus: (viewRef: React.ElementRef<ComponentType>) => void;
18
24
  }
19
25
  export declare const Commands: NativeCommands;
20
- declare const _default: (props: Omit<A11yIndexNativeComponentProps, "ref"> & {
21
- ref?: React.Ref<import("react-native").HostInstance>;
22
- }) => React.ReactNode;
26
+ declare const _default: import("react-native/Libraries/Utilities/codegenNativeComponent").NativeComponentType<A11yIndexNativeComponentProps>;
23
27
  export default _default;
24
28
  //# sourceMappingURL=A11yIndexNativeComponent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"A11yIndexNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/nativeSpecs/A11yIndexNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EACV,kBAAkB,EAClB,KAAK,EACN,MAAM,2CAA2C,CAAC;AAMnD,MAAM,MAAM,uBAAuB,GAAG,QAAQ,CAAC;IAC7C,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC,CAAC;AAEH,MAAM,MAAM,kCAAkC,GAAG,QAAQ,CAAC;IACxD,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC,CAAC;AAEH,MAAM,WAAW,6BAA8B,SAAQ,SAAS;IAC9D,UAAU,EAAE,KAAK,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,KAAK,CAAC;IAEtB,yBAAyB,CAAC,EAAE,kBAAkB,CAAC,uBAAuB,CAAC,CAAC;CACzE;AAED,MAAM,WAAW,cAAc;IAE7B,KAAK,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,KAAK,IAAI,CAAC;CAC3D;AAED,eAAO,MAAM,QAAQ,EAAE,cAErB,CAAC;;;;AAEH,wBAEE"}
1
+ {"version":3,"file":"A11yIndexNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/nativeSpecs/A11yIndexNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EACV,kBAAkB,EAClB,KAAK,EACN,MAAM,2CAA2C,CAAC;AAMnD,MAAM,MAAM,uBAAuB,GAAG,QAAQ,CAAC;IAC7C,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC,CAAC;AAEH,MAAM,MAAM,kCAAkC,GAAG,QAAQ,CAAC;IACxD,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC,CAAC;AAEH,MAAM,WAAW,6BAA8B,SAAQ,SAAS;IAC9D,UAAU,CAAC,EAAE,KAAK,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,KAAK,CAAC;IACvB,gCAAgC,CAAC,EAAE,KAAK,CAAC;IAEzC,6BAA6B,CAAC,EAAE,OAAO,CAAC;IAExC,qBAAqB,CAAC,EAAE,kBAAkB,CAAC,EAAE,CAAC,CAAC;IAC/C,oCAAoC,CAAC,EAAE,kBAAkB,CAAC,kCAAkC,CAAC,CAAC;IAC9F,yBAAyB,CAAC,EAAE,kBAAkB,CAAC,uBAAuB,CAAC,CAAC;IAExE,aAAa,CAAC,EAAE,KAAK,CAAC;CACvB;AAED,MAAM,WAAW,cAAc;IAE7B,KAAK,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,KAAK,IAAI,CAAC;CAC3D;AAED,eAAO,MAAM,QAAQ,EAAE,cAErB,CAAC;;AAEH,wBAEE"}
@@ -6,8 +6,6 @@ export interface A11yLockNativeComponentProps extends ViewProps {
6
6
  lockDisabled?: boolean;
7
7
  forceLock?: boolean;
8
8
  }
9
- declare const _default: (props: Omit<A11yLockNativeComponentProps, "ref"> & {
10
- ref?: React.Ref<import("react-native").HostInstance>;
11
- }) => React.ReactNode;
9
+ declare const _default: import("react-native/Libraries/Utilities/codegenNativeComponent").NativeComponentType<A11yLockNativeComponentProps>;
12
10
  export default _default;
13
11
  //# sourceMappingURL=A11yLockNativeComponent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"A11yLockNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/nativeSpecs/A11yLockNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2CAA2C,CAAC;AAIvE,MAAM,WAAW,4BAA6B,SAAQ,SAAS;IAC7D,aAAa,EAAE,KAAK,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;;;;AAED,wBAAgF"}
1
+ {"version":3,"file":"A11yLockNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/nativeSpecs/A11yLockNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2CAA2C,CAAC;AAIvE,MAAM,WAAW,4BAA6B,SAAQ,SAAS;IAC7D,aAAa,EAAE,KAAK,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;;AAED,wBAAgF"}
@@ -2,8 +2,6 @@ import type { ViewProps } from 'react-native';
2
2
  export interface A11yOrderNativeComponentProps extends ViewProps {
3
3
  orderKey: string;
4
4
  }
5
- declare const _default: (props: Omit<A11yOrderNativeComponentProps, "ref"> & {
6
- ref?: React.Ref<import("react-native").HostInstance>;
7
- }) => React.ReactNode;
5
+ declare const _default: import("react-native/Libraries/Utilities/codegenNativeComponent").NativeComponentType<A11yOrderNativeComponentProps>;
8
6
  export default _default;
9
7
  //# sourceMappingURL=A11yOrderNativeComponent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"A11yOrderNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/nativeSpecs/A11yOrderNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAI9C,MAAM,WAAW,6BAA8B,SAAQ,SAAS;IAC9D,QAAQ,EAAE,MAAM,CAAC;CAClB;;;;AAED,wBAEE"}
1
+ {"version":3,"file":"A11yOrderNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/nativeSpecs/A11yOrderNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAI9C,MAAM,WAAW,6BAA8B,SAAQ,SAAS;IAC9D,QAAQ,EAAE,MAAM,CAAC;CAClB;;AAED,wBAEE"}
@@ -6,8 +6,6 @@ export interface A11yPaneTitleProps extends ViewProps {
6
6
  type: Int32;
7
7
  withFocusRestore?: boolean;
8
8
  }
9
- declare const _default: (props: Omit<A11yPaneTitleProps, "ref"> & {
10
- ref?: React.Ref<import("react-native").HostInstance>;
11
- }) => React.ReactNode;
9
+ declare const _default: import("react-native/Libraries/Utilities/codegenNativeComponent").NativeComponentType<A11yPaneTitleProps>;
12
10
  export default _default;
13
11
  //# sourceMappingURL=A11yPaneTitleNativeComponent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"A11yPaneTitleNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/nativeSpecs/A11yPaneTitleNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2CAA2C,CAAC;AAIvE,MAAM,WAAW,kBAAmB,SAAQ,SAAS;IACnD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,KAAK,CAAC;IACZ,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;;;;AAED,wBAA2E"}
1
+ {"version":3,"file":"A11yPaneTitleNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/nativeSpecs/A11yPaneTitleNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2CAA2C,CAAC;AAIvE,MAAM,WAAW,kBAAmB,SAAQ,SAAS;IACnD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,KAAK,CAAC;IACZ,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;;AAED,wBAA2E"}
@@ -1,7 +1,27 @@
1
1
  import type { TurboModule } from 'react-native';
2
+ type AnnounceOptions = Readonly<{
3
+ priority?: string;
4
+ queue?: boolean;
5
+ calm?: boolean;
6
+ delayMs?: number;
7
+ language?: string;
8
+ pitch?: number;
9
+ spellOut?: boolean;
10
+ punctuation?: boolean;
11
+ ipaNotation?: string;
12
+ }>;
13
+ type AnnouncementResult = Readonly<{
14
+ id: string;
15
+ status: string;
16
+ }>;
2
17
  export interface Spec extends TurboModule {
3
- announce(message: string): void;
18
+ /** Enqueues a screen reader announcement. Resolves with AnnouncementResult. */
19
+ announce(message: string, options?: AnnounceOptions): Promise<AnnouncementResult>;
20
+ /** Cancels a specific announcement by its id. Resolves with the cancelled item's result. */
21
+ cancel(id: string): Promise<AnnouncementResult>;
22
+ /** Drains the queue and interrupts current speech. */
23
+ cancelAll(): Promise<AnnouncementResult>;
4
24
  }
5
- declare const _default: Spec | null | undefined;
25
+ declare const _default: Spec | null;
6
26
  export default _default;
7
27
  //# sourceMappingURL=NativeA11yAnnounceModule.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NativeA11yAnnounceModule.d.ts","sourceRoot":"","sources":["../../../../src/nativeSpecs/NativeA11yAnnounceModule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC;;AAED,wBAAmE"}
1
+ {"version":3,"file":"NativeA11yAnnounceModule.d.ts","sourceRoot":"","sources":["../../../../src/nativeSpecs/NativeA11yAnnounceModule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAKhD,KAAK,eAAe,GAAG,QAAQ,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC,CAAC;AAEH,KAAK,kBAAkB,GAAG,QAAQ,CAAC;IACjC,EAAE,EAAE,MAAM,CAAC;IAIX,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC,CAAC;AAEH,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,+EAA+E;IAC/E,QAAQ,CACN,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,eAAe,GACxB,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAC/B,4FAA4F;IAC5F,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAChD,sDAAsD;IACtD,SAAS,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAAC;CAC1C;;AAED,wBAAmE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-a11y-order",
3
- "version": "0.9.1",
3
+ "version": "0.11.0-rc1",
4
4
  "description": "ReactNative library for managing screen reader focus ordering",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -25,10 +25,12 @@
25
25
  "!**/__fixtures__",
26
26
  "!**/__mocks__",
27
27
  "!**/.*",
28
- "!**/CLAUDE.md"
28
+ "!**/CLAUDE.md",
29
+ "!**/docs"
29
30
  ],
30
31
  "scripts": {
31
32
  "example": "yarn workspace a11y-order-example",
33
+ "example-legacy": "yarn workspace A11yOrderExample",
32
34
  "clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib",
33
35
  "prepare": "bob build",
34
36
  "typecheck": "tsc",
@@ -64,11 +66,11 @@
64
66
  "@eslint/compat": "^1.3.2",
65
67
  "@eslint/eslintrc": "^3.3.1",
66
68
  "@eslint/js": "^9.35.0",
67
- "@react-native/babel-preset": "0.83.0",
68
- "@react-native/eslint-config": "0.83.0",
69
+ "@react-native/babel-preset": "0.76.0",
70
+ "@react-native/eslint-config": "0.76.0",
69
71
  "@release-it/conventional-changelog": "^10.0.1",
70
72
  "@types/jest": "^29.5.14",
71
- "@types/react": "^19.2.0",
73
+ "@types/react": "^18.2.0",
72
74
  "commitlint": "^19.8.1",
73
75
  "del-cli": "^6.0.0",
74
76
  "eslint": "^9.35.0",
@@ -77,8 +79,8 @@
77
79
  "jest": "^29.7.0",
78
80
  "lefthook": "^2.0.3",
79
81
  "prettier": "^2.8.8",
80
- "react": "19.2.0",
81
- "react-native": "0.83.0",
82
+ "react": "18.2.0",
83
+ "react-native": "0.76.0",
82
84
  "react-native-builder-bob": "^0.40.18",
83
85
  "release-it": "^19.0.4",
84
86
  "turbo": "^2.5.6",
@@ -89,7 +91,8 @@
89
91
  "react-native": "*"
90
92
  },
91
93
  "workspaces": [
92
- "example"
94
+ "example",
95
+ "A11yOrderExample"
93
96
  ],
94
97
  "packageManager": "yarn@4.11.0",
95
98
  "react-native-builder-bob": {
@@ -112,12 +115,10 @@
112
115
  "jsSrcsDir": "src",
113
116
  "ios": {
114
117
  "componentProvider": {
115
- "A11yGroupView": "RNAOA11yGroupView",
118
+ "A11yCardView": "RNAOA11yCardView",
116
119
  "A11yIndexView": "RNAOA11yIndexView",
117
120
  "A11yOrderView": "RNAOA11yOrderView",
118
- "A11yUIContainer": "RNAOA11yUIContainerView",
119
121
  "A11yPaneTitle": "RNAOA11yPaneTitleView",
120
- "A11yView": "RNAOA11yView",
121
122
  "A11yLock": "RNAOA11yLockView"
122
123
  },
123
124
  "modulesProvider": {