react-native-a11y-order 0.11.0-rc → 0.11.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 (90) hide show
  1. package/README.md +9 -2
  2. package/android/src/main/java/com/a11yorder/core/A11yManagedFocusView.java +29 -0
  3. package/android/src/main/java/com/a11yorder/core/A11yViewOrder.java +1 -1
  4. package/android/src/main/java/com/a11yorder/modules/A11yAnnounceModule.java +20 -7
  5. package/android/src/main/java/com/a11yorder/views/A11yIndexView/A11yIndexViewManager.java +0 -6
  6. package/android/src/oldarch/A11yAnnounceModuleSpec.java +8 -1
  7. package/android/src/oldarch/A11yIndexViewManagerSpec.java +0 -1
  8. package/ios/helpers/RNAOSpeechAttributes.h +35 -0
  9. package/ios/helpers/RNAOSpeechAttributes.mm +64 -0
  10. package/ios/modules/RNAOA11yAnnounceModule.h +13 -9
  11. package/ios/modules/RNAOA11yAnnounceModule.mm +220 -14
  12. package/ios/services/RNAOA11yAnnounceService/RNAOA11yAnnounceService.h +11 -1
  13. package/ios/services/RNAOA11yAnnounceService/RNAOA11yAnnounceService.mm +55 -51
  14. package/ios/views/RNAOA11yIndexView/RNAOA11yIndexView.mm +0 -4
  15. package/ios/views/RNAOA11yIndexView/RNAOA11yIndexViewManager.mm +5 -5
  16. package/ios/views/RNAOA11yPaneTitleView/RNAOA11yPaneTitleView.mm +12 -2
  17. package/ios/views/base/{RNAOA11yAutoFocusView.h → RNAOA11yManagedFocusView.h} +5 -7
  18. package/ios/views/base/{RNAOA11yAutoFocusView.mm → RNAOA11yManagedFocusView.mm} +2 -19
  19. package/ios/views/base/RNAOA11yViewOrder.h +3 -3
  20. package/lib/commonjs/components/A11yCard/A11yCard.ios.js +8 -1
  21. package/lib/commonjs/components/A11yCard/A11yCard.ios.js.map +1 -1
  22. package/lib/commonjs/components/A11yIndex/A11yIndex.js +3 -2
  23. package/lib/commonjs/components/A11yIndex/A11yIndex.js.map +1 -1
  24. package/lib/commonjs/index.js +22 -4
  25. package/lib/commonjs/index.js.map +1 -1
  26. package/lib/commonjs/index.web.js +4 -4
  27. package/lib/commonjs/modules/A11yAnnounceModule.android.js +37 -3
  28. package/lib/commonjs/modules/A11yAnnounceModule.android.js.map +1 -1
  29. package/lib/commonjs/modules/A11yAnnounceModule.js +66 -8
  30. package/lib/commonjs/modules/A11yAnnounceModule.js.map +1 -1
  31. package/lib/commonjs/nativeSpecs/A11yIndexNativeComponent.ts +0 -1
  32. package/lib/commonjs/nativeSpecs/NativeA11yAnnounceModule.js +2 -0
  33. package/lib/commonjs/nativeSpecs/NativeA11yAnnounceModule.js.map +1 -1
  34. package/lib/module/components/A11yCard/A11yCard.ios.js +8 -1
  35. package/lib/module/components/A11yCard/A11yCard.ios.js.map +1 -1
  36. package/lib/module/components/A11yIndex/A11yIndex.js +3 -2
  37. package/lib/module/components/A11yIndex/A11yIndex.js.map +1 -1
  38. package/lib/module/index.js +1 -1
  39. package/lib/module/index.js.map +1 -1
  40. package/lib/module/index.web.js +1 -1
  41. package/lib/module/index.web.js.map +1 -1
  42. package/lib/module/modules/A11yAnnounceModule.android.js +32 -2
  43. package/lib/module/modules/A11yAnnounceModule.android.js.map +1 -1
  44. package/lib/module/modules/A11yAnnounceModule.js +62 -7
  45. package/lib/module/modules/A11yAnnounceModule.js.map +1 -1
  46. package/lib/module/nativeSpecs/A11yIndexNativeComponent.ts +0 -1
  47. package/lib/module/nativeSpecs/NativeA11yAnnounceModule.js +4 -0
  48. package/lib/module/nativeSpecs/NativeA11yAnnounceModule.js.map +1 -1
  49. package/lib/typescript/src/components/A11yCard/A11yCard.ios.d.ts.map +1 -1
  50. package/lib/typescript/src/components/A11yIndex/A11yIndex.d.ts +3 -126
  51. package/lib/typescript/src/components/A11yIndex/A11yIndex.d.ts.map +1 -1
  52. package/lib/typescript/src/components/A11yIndex/A11yIndex.types.d.ts +0 -4
  53. package/lib/typescript/src/components/A11yIndex/A11yIndex.types.d.ts.map +1 -1
  54. package/lib/typescript/src/components/A11yIndex/A11yIndex.web.d.ts +1 -125
  55. package/lib/typescript/src/components/A11yIndex/A11yIndex.web.d.ts.map +1 -1
  56. package/lib/typescript/src/components/A11yOrder/A11yOrder.d.ts +1 -124
  57. package/lib/typescript/src/components/A11yOrder/A11yOrder.d.ts.map +1 -1
  58. package/lib/typescript/src/components/A11yView/A11yView.d.ts +2 -126
  59. package/lib/typescript/src/components/A11yView/A11yView.d.ts.map +1 -1
  60. package/lib/typescript/src/index.d.ts +7 -377
  61. package/lib/typescript/src/index.d.ts.map +1 -1
  62. package/lib/typescript/src/index.web.d.ts +11 -162
  63. package/lib/typescript/src/index.web.d.ts.map +1 -1
  64. package/lib/typescript/src/modules/A11yAnnounceModule.android.d.ts +25 -2
  65. package/lib/typescript/src/modules/A11yAnnounceModule.android.d.ts.map +1 -1
  66. package/lib/typescript/src/modules/A11yAnnounceModule.d.ts +112 -4
  67. package/lib/typescript/src/modules/A11yAnnounceModule.d.ts.map +1 -1
  68. package/lib/typescript/src/nativeSpecs/A11yCardNativeComponent.d.ts +1 -3
  69. package/lib/typescript/src/nativeSpecs/A11yCardNativeComponent.d.ts.map +1 -1
  70. package/lib/typescript/src/nativeSpecs/A11yIndexNativeComponent.d.ts +1 -4
  71. package/lib/typescript/src/nativeSpecs/A11yIndexNativeComponent.d.ts.map +1 -1
  72. package/lib/typescript/src/nativeSpecs/A11yLockNativeComponent.d.ts +1 -3
  73. package/lib/typescript/src/nativeSpecs/A11yLockNativeComponent.d.ts.map +1 -1
  74. package/lib/typescript/src/nativeSpecs/A11yOrderNativeComponent.d.ts +1 -3
  75. package/lib/typescript/src/nativeSpecs/A11yOrderNativeComponent.d.ts.map +1 -1
  76. package/lib/typescript/src/nativeSpecs/A11yPaneTitleNativeComponent.d.ts +1 -3
  77. package/lib/typescript/src/nativeSpecs/A11yPaneTitleNativeComponent.d.ts.map +1 -1
  78. package/lib/typescript/src/nativeSpecs/NativeA11yAnnounceModule.d.ts +22 -2
  79. package/lib/typescript/src/nativeSpecs/NativeA11yAnnounceModule.d.ts.map +1 -1
  80. package/package.json +1 -1
  81. package/src/components/A11yCard/A11yCard.ios.tsx +8 -1
  82. package/src/components/A11yIndex/A11yIndex.tsx +5 -4
  83. package/src/components/A11yIndex/A11yIndex.types.ts +0 -5
  84. package/src/index.ts +12 -1
  85. package/src/index.web.ts +1 -1
  86. package/src/modules/A11yAnnounceModule.android.ts +18 -2
  87. package/src/modules/A11yAnnounceModule.ts +153 -9
  88. package/src/nativeSpecs/A11yIndexNativeComponent.ts +0 -1
  89. package/src/nativeSpecs/NativeA11yAnnounceModule.ts +31 -1
  90. package/android/src/main/java/com/a11yorder/core/A11yAutoFocusView.java +0 -61
@@ -24,7 +24,6 @@ export interface A11yIndexNativeComponentProps extends ViewProps {
24
24
  orderFocusType?: Int32;
25
25
  shouldGroupAccessibilityChildren?: Int32;
26
26
 
27
- autoFocus?: boolean;
28
27
  descendantFocusChangedEnabled?: boolean;
29
28
 
30
29
  onScreenReaderFocused?: DirectEventHandler<{}>;
@@ -5,5 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var _reactNative = require("react-native");
8
+ // Speech options are kept flat here (bridge contract).
9
+ // The JS API groups them under `speech: {}` and flattens before calling native.
8
10
  var _default = exports.default = _reactNative.TurboModuleRegistry.get('A11yAnnounceModule');
9
11
  //# sourceMappingURL=NativeA11yAnnounceModule.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNative","require","_default","exports","default","TurboModuleRegistry","get"],"sourceRoot":"../../../src","sources":["nativeSpecs/NativeA11yAnnounceModule.ts"],"mappings":";;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AAAmD,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAMpCC,gCAAmB,CAACC,GAAG,CAAO,oBAAoB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_reactNative","require","_default","exports","default","TurboModuleRegistry","get"],"sourceRoot":"../../../src","sources":["nativeSpecs/NativeA11yAnnounceModule.ts"],"mappings":";;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AAEA;AACA;AAAA,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAiCeC,gCAAmB,CAACC,GAAG,CAAO,oBAAoB,CAAC","ignoreList":[]}
@@ -22,6 +22,7 @@ export const A11yCard = ({
22
22
  ...accessibility,
23
23
  accessible: true,
24
24
  pointerEvents: "none",
25
+ collapsable: false,
25
26
  onAccessibilityTap: onPress,
26
27
  style: styles.overlay
27
28
  }), /*#__PURE__*/_jsx(Pressable, {
@@ -38,6 +39,12 @@ const styles = StyleSheet.create({
38
39
  container: {
39
40
  position: 'relative'
40
41
  },
41
- overlay: StyleSheet.absoluteFillObject
42
+ overlay: {
43
+ position: 'absolute',
44
+ top: 0,
45
+ left: 0,
46
+ right: 0,
47
+ bottom: 0
48
+ }
42
49
  });
43
50
  //# sourceMappingURL=A11yCard.ios.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","Pressable","StyleSheet","View","Card","jsx","_jsx","jsxs","_jsxs","A11yCard","containerProps","style","testID","onPress","accessibility","pressableProps","children","styles","container","accessibilityRole","accessible","pointerEvents","onAccessibilityTap","overlay","create","position","absoluteFillObject"],"sourceRoot":"../../../../src","sources":["components/A11yCard/A11yCard.ios.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,SAAS,EAAEC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC1D,OAAOC,IAAI,MAAM,2CAA2C;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAK7D,OAAO,MAAMC,QAAQ,GAAGA,CAAC;EACvBC,cAAc;EACdC,KAAK;EACLC,MAAM;EACNC,OAAO;EACPC,aAAa;EACbC,cAAc;EACdC;AACa,CAAC,KAAK;EACnB,oBACER,KAAA,CAACJ,IAAI;IAAA,GAAKM,cAAc;IAAEC,KAAK,EAAE,CAACM,MAAM,CAACC,SAAS,EAAER,cAAc,EAAEC,KAAK,CAAE;IAAAK,QAAA,gBACzEV,IAAA,CAACH,IAAI;MACHS,MAAM,EAAE,GAAGA,MAAM,UAAW;MAC5BO,iBAAiB,EAAC,QAAQ;MAAA,GACtBL,aAAa;MACjBM,UAAU;MACVC,aAAa,EAAC,MAAM;MACpBC,kBAAkB,EAAET,OAAQ;MAC5BF,KAAK,EAAEM,MAAM,CAACM;IAAQ,CACvB,CAAC,eACFjB,IAAA,CAACL,SAAS;MAAA,GACJc,cAAc;MAClBK,UAAU,EAAE,KAAM;MAClBP,OAAO,EAAEA,OAAQ;MACjBD,MAAM,EAAEA,MAAO;MACfD,KAAK,EAAEA,KAAM;MAAAK,QAAA,EAEZA;IAAQ,CACA,CAAC;EAAA,CACR,CAAC;AAEX,CAAC;AAED,MAAMC,MAAM,GAAGf,UAAU,CAACsB,MAAM,CAAC;EAC/BN,SAAS,EAAE;IAAEO,QAAQ,EAAE;EAAW,CAAC;EACnCF,OAAO,EAAErB,UAAU,CAACwB;AACtB,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","Pressable","StyleSheet","View","Card","jsx","_jsx","jsxs","_jsxs","A11yCard","containerProps","style","testID","onPress","accessibility","pressableProps","children","styles","container","accessibilityRole","accessible","pointerEvents","collapsable","onAccessibilityTap","overlay","create","position","top","left","right","bottom"],"sourceRoot":"../../../../src","sources":["components/A11yCard/A11yCard.ios.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,SAAS,EAAEC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC1D,OAAOC,IAAI,MAAM,2CAA2C;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAK7D,OAAO,MAAMC,QAAQ,GAAGA,CAAC;EACvBC,cAAc;EACdC,KAAK;EACLC,MAAM;EACNC,OAAO;EACPC,aAAa;EACbC,cAAc;EACdC;AACa,CAAC,KAAK;EACnB,oBACER,KAAA,CAACJ,IAAI;IAAA,GAAKM,cAAc;IAAEC,KAAK,EAAE,CAACM,MAAM,CAACC,SAAS,EAAER,cAAc,EAAEC,KAAK,CAAE;IAAAK,QAAA,gBACzEV,IAAA,CAACH,IAAI;MACHS,MAAM,EAAE,GAAGA,MAAM,UAAW;MAC5BO,iBAAiB,EAAC,QAAQ;MAAA,GACtBL,aAAa;MACjBM,UAAU;MACVC,aAAa,EAAC,MAAM;MACpBC,WAAW,EAAE,KAAM;MACnBC,kBAAkB,EAAEV,OAAQ;MAC5BF,KAAK,EAAEM,MAAM,CAACO;IAAQ,CACvB,CAAC,eACFlB,IAAA,CAACL,SAAS;MAAA,GACJc,cAAc;MAClBK,UAAU,EAAE,KAAM;MAClBP,OAAO,EAAEA,OAAQ;MACjBD,MAAM,EAAEA,MAAO;MACfD,KAAK,EAAEA,KAAM;MAAAK,QAAA,EAEZA;IAAQ,CACA,CAAC;EAAA,CACR,CAAC;AAEX,CAAC;AAED,MAAMC,MAAM,GAAGf,UAAU,CAACuB,MAAM,CAAC;EAC/BP,SAAS,EAAE;IAAEQ,QAAQ,EAAE;EAAW,CAAC;EACnCF,OAAO,EAAE;IACPE,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE,CAAC;IACNC,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,CAAC;IACRC,MAAM,EAAE;EACV;AACF,CAAC,CAAC","ignoreList":[]}
@@ -58,11 +58,12 @@ function useOrderProps(index, orderType, importantForAccessibilityProp) {
58
58
  throw new Error('<A11y.Index> element should be used inside of <A11y.Order> container');
59
59
  }
60
60
  const resolvedOrderType = orderType ?? 'default';
61
- const importantForAccessibilityFallback = resolvedOrderType === 'default' ? 'yes' : undefined;
61
+ const isDefaultOrderType = resolvedOrderType === 'default';
62
+ const importantForAccessibility = hasOrderInfo && isDefaultOrderType ? 'yes' : importantForAccessibilityProp;
62
63
  return {
63
64
  orderKey,
64
65
  orderFocusType: hasOrderInfo ? A11yOrderTypeEnum[resolvedOrderType] : undefined,
65
- importantForAccessibility: importantForAccessibilityProp ?? importantForAccessibilityFallback
66
+ importantForAccessibility
66
67
  };
67
68
  }
68
69
  export const A11yIndex = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(({
@@ -1 +1 @@
1
- {"version":3,"names":["React","useImperativeHandle","useRef","A11ySequenceOrderContext","A11yIndexView","Commands","A11yOrderTypeEnum","A11yContainerTypeEnum","jsx","_jsx","useScreenReaderProps","onScreenReaderFocused","onScreenReaderSubViewFocusChange","onScreenReaderSubViewFocused","onScreenReaderSubViewBlurred","onScreenReaderDescendantFocusChanged","hasHandler","Boolean","onScreenReaderFocusChange","useCallback","event","isFocused","nativeEvent","undefined","descendantFocusChangedEnabled","useFocusRef","ref","localRef","native","current","Proxy","get","_target","prop","focus","useOrderProps","index","orderType","importantForAccessibilityProp","orderKey","useContext","hasOrderInfo","Error","resolvedOrderType","importantForAccessibilityFallback","orderFocusType","importantForAccessibility","A11yIndex","memo","forwardRef","children","a11yUIContainer","shouldGroupAccessibilityChildren","props","viewProps","containerTypeValue","shouldGroupChildrenValue","screenReaderNativeProps","containerType","orderIndex"],"sourceRoot":"../../../../src","sources":["components/A11yIndex/A11yIndex.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,mBAAmB,EAAEC,MAAM,QAAQ,OAAO;AAE1D,SAASC,wBAAwB,QAAQ,wCAAwC;AACjF,OAAOC,aAAa,IAClBC,QAAQ,QACH,4CAA4C;AACnD,SAEEC,iBAAiB,EAGjBC,qBAAqB,QAChB,mBAAmB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAW3B,SAASC,oBAAoBA,CAAC;EAC5BC,qBAAqB;EACrBC,gCAAgC;EAChCC,4BAA4B;EAC5BC,4BAA4B;EAC5BC;AACqB,CAAC,EAAE;EACxB,MAAMC,UAAU,GAAGC,OAAO,CACxBH,4BAA4B,IAC1BD,4BAA4B,IAC5BD,gCACJ,CAAC;EAED,MAAMM,yBAAyB,GAAGlB,KAA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AACC,GAAG,CAAC;EAEjC,oBACEjB,IAAA,CAACL,aAAa;IACZsB,GAAG,EAAEC,QAA2B;IAAA,GAC5B2B,SAAS;IACbI,aAAa,EAAEH,kBAAmB;IAClCH,gCAAgC,EAAEI,wBAAyB;IAC3DV,yBAAyB,EAAEA,yBAA0B;IACrDD,cAAc,EAAEA,cAAe;IAC/Bc,UAAU,EAAEvB,KAAM;IAClBG,QAAQ,EAAEA,QAAS;IAAA,GACfkB,uBAAuB;IAAAP,QAAA,EAE1BA;EAAQ,CACI,CAAC;AAEpB,CACF,CACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","useImperativeHandle","useRef","A11ySequenceOrderContext","A11yIndexView","Commands","A11yOrderTypeEnum","A11yContainerTypeEnum","jsx","_jsx","useScreenReaderProps","onScreenReaderFocused","onScreenReaderSubViewFocusChange","onScreenReaderSubViewFocused","onScreenReaderSubViewBlurred","onScreenReaderDescendantFocusChanged","hasHandler","Boolean","onScreenReaderFocusChange","useCallback","event","isFocused","nativeEvent","undefined","descendantFocusChangedEnabled","useFocusRef","ref","localRef","native","current","Proxy","get","_target","prop","focus","useOrderProps","index","orderType","importantForAccessibilityProp","orderKey","useContext","hasOrderInfo","Error","resolvedOrderType","isDefaultOrderType","importantForAccessibility","orderFocusType","A11yIndex","memo","forwardRef","children","a11yUIContainer","shouldGroupAccessibilityChildren","props","viewProps","containerTypeValue","shouldGroupChildrenValue","screenReaderNativeProps","containerType","orderIndex"],"sourceRoot":"../../../../src","sources":["components/A11yIndex/A11yIndex.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,mBAAmB,EAAEC,MAAM,QAAQ,OAAO;AAE1D,SAASC,wBAAwB,QAAQ,wCAAwC;AACjF,OAAOC,aAAa,IAClBC,QAAQ,QACH,4CAA4C;AACnD,SAEEC,iBAAiB,EAGjBC,qBAAqB,QAChB,mBAAmB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAW3B,SAASC,oBAAoBA,CAAC;EAC5BC,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AAgC;IAChCC,4BAA4B;IAC5BC,4BAA4B;IAC5BC;EACF,CAAC,CAAC;EAEF,MAAM;IAAEwB,QAAQ;IAAEO,cAAc;IAAED;EAA0B,CAAC,GAC3DV,aAAa,CAACC,KAAK,EAAEC,SAAS,EAAEC,6BAA6B,CAAC;EAEhE,MAAMX,QAAQ,GAAGF,WAAW,CAACC,GAAG,CAAC;EAEjC,oBACEjB,IAAA,CAACL,aAAa;IACZsB,GAAG,EAAEC,QAA2B;IAAA,GAC5B2B,SAAS;IACbI,aAAa,EAAEH,kBAAmB;IAClCH,gCAAgC,EAAEI,wBAAyB;IAC3DX,yBAAyB,EAAEA,yBAA0B;IACrDC,cAAc,EAAEA,cAAe;IAC/Ba,UAAU,EAAEvB,KAAM;IAClBG,QAAQ,EAAEA,QAAS;IAAA,GACfkB,uBAAuB;IAAAP,QAAA,EAE1BA;EAAQ,CACI,CAAC;AAEpB,CACF,CACF,CAAC","ignoreList":[]}
@@ -23,5 +23,5 @@ export const A11y = {
23
23
  FocusTrap: A11yFocusTrap,
24
24
  Card: A11yCard
25
25
  };
26
- export { A11yModule } from './modules/A11yAnnounceModule';
26
+ export { ScreenReader, announce, cancel, cancelAll } from './modules/A11yAnnounceModule';
27
27
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["A11yIndex","A11yOrder","A11yPaneTitle","A11yScreenChange","A11yView","A11yFocusFrame","A11yFocusTrap","A11yCard","A11yOrderTypeEnum","A11y","Order","Index","View","PaneTitle","ScreenChange","FocusFrame","FocusTrap","Card","A11yModule"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA,SAASA,SAAS,QAAQ,kCAAkC;AAC5D,SAASC,SAAS,QAAQ,kCAAkC;AAC5D,SACEC,aAAa,EACbC,gBAAgB,QACX,0CAA0C;AACjD,SAASC,QAAQ,QAAQ,gCAAgC;AACzD,SAASC,cAAc,QAAQ,qDAAqD;AACpF,SAASC,aAAa,QAAQ,mDAAmD;AACjF,SAASC,QAAQ,QAAQ,gCAAgC;;AAEzD;;AASA,SAASC,iBAAiB,QAAQ,wCAAwC;AAe1E;;AAEA,OAAO,MAAMC,IAAI,GAAG;EAClBC,KAAK,EAAET,SAAS;EAChBU,KAAK,EAAEX,SAAS;EAChBY,IAAI,EAAER,QAAQ;EACdS,SAAS,EAAEX,aAAa;EACxBY,YAAY,EAAEX,gBAAgB;EAC9BY,UAAU,EAAEV,cAAc;EAC1BW,SAAS,EAAEV,aAAa;EACxBW,IAAI,EAAEV;AACR,CAAC;AAED,SAASW,UAAU,QAAQ,8BAA8B","ignoreList":[]}
1
+ {"version":3,"names":["A11yIndex","A11yOrder","A11yPaneTitle","A11yScreenChange","A11yView","A11yFocusFrame","A11yFocusTrap","A11yCard","A11yOrderTypeEnum","A11y","Order","Index","View","PaneTitle","ScreenChange","FocusFrame","FocusTrap","Card","ScreenReader","announce","cancel","cancelAll"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA,SAASA,SAAS,QAAQ,kCAAkC;AAC5D,SAASC,SAAS,QAAQ,kCAAkC;AAC5D,SACEC,aAAa,EACbC,gBAAgB,QACX,0CAA0C;AACjD,SAASC,QAAQ,QAAQ,gCAAgC;AACzD,SAASC,cAAc,QAAQ,qDAAqD;AACpF,SAASC,aAAa,QAAQ,mDAAmD;AACjF,SAASC,QAAQ,QAAQ,gCAAgC;;AAEzD;;AASA,SAASC,iBAAiB,QAAQ,wCAAwC;AAe1E;;AAEA,OAAO,MAAMC,IAAI,GAAG;EAClBC,KAAK,EAAET,SAAS;EAChBU,KAAK,EAAEX,SAAS;EAChBY,IAAI,EAAER,QAAQ;EACdS,SAAS,EAAEX,aAAa;EACxBY,YAAY,EAAEX,gBAAgB;EAC9BY,UAAU,EAAEV,cAAc;EAC1BW,SAAS,EAAEV,aAAa;EACxBW,IAAI,EAAEV;AACR,CAAC;AAED,SACEW,YAAY,EACZC,QAAQ,EACRC,MAAM,EACNC,SAAS,QACJ,8BAA8B","ignoreList":[]}
@@ -13,5 +13,5 @@ export const A11y = {
13
13
  FocusTrap: View,
14
14
  Card: View
15
15
  };
16
- export { A11yModule } from './modules/A11yAnnounceModule';
16
+ export { ScreenReader } from './modules/A11yAnnounceModule';
17
17
  //# sourceMappingURL=index.web.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["A11yIndex","View","A11yOrderTypeEnum","A11y","Order","Index","PaneTitle","ScreenChange","FocusFrame","FocusTrap","Card","A11yModule"],"sourceRoot":"../../src","sources":["index.web.ts"],"mappings":";;AAAA,SAASA,SAAS,QAAQ,kCAAkC;AAC5D,SAASC,IAAI,QAAQ,cAAc;AAOnC,SAASC,iBAAiB,QAAQ,wCAAwC;AAM1E,OAAO,MAAMC,IAAI,GAAG;EAClBC,KAAK,EAAEH,IAAI;EACXI,KAAK,EAAEL,SAAS;EAChBC,IAAI,EAAEA,IAAI;EACVK,SAAS,EAAEL,IAAI;EACfM,YAAY,EAAEN,IAAI;EAClBO,UAAU,EAAEP,IAAI;EAChBQ,SAAS,EAAER,IAAI;EACfS,IAAI,EAAET;AACR,CAAC;AAED,SAASU,UAAU,QAAQ,8BAA8B","ignoreList":[]}
1
+ {"version":3,"names":["A11yIndex","View","A11yOrderTypeEnum","A11y","Order","Index","PaneTitle","ScreenChange","FocusFrame","FocusTrap","Card","ScreenReader"],"sourceRoot":"../../src","sources":["index.web.ts"],"mappings":";;AAAA,SAASA,SAAS,QAAQ,kCAAkC;AAC5D,SAASC,IAAI,QAAQ,cAAc;AAOnC,SAASC,iBAAiB,QAAQ,wCAAwC;AAM1E,OAAO,MAAMC,IAAI,GAAG;EAClBC,KAAK,EAAEH,IAAI;EACXI,KAAK,EAAEL,SAAS;EAChBC,IAAI,EAAEA,IAAI;EACVK,SAAS,EAAEL,IAAI;EACfM,YAAY,EAAEN,IAAI;EAClBO,UAAU,EAAEP,IAAI;EAChBQ,SAAS,EAAER,IAAI;EACfS,IAAI,EAAET;AACR,CAAC;AAED,SAASU,YAAY,QAAQ,8BAA8B","ignoreList":[]}
@@ -1,7 +1,37 @@
1
1
  "use strict";
2
2
 
3
+ // Android stub — bypasses the native bridge, uses the built-in API directly.
3
4
  import { AccessibilityInfo } from 'react-native';
4
- export const A11yModule = {
5
- announce: AccessibilityInfo.announceForAccessibility
5
+ export const ScreenReader = {
6
+ announce: message => {
7
+ AccessibilityInfo.announceForAccessibility(message);
8
+ return Promise.resolve({
9
+ id: '',
10
+ status: 'fired'
11
+ });
12
+ },
13
+ cancel: () => Promise.resolve({
14
+ id: '',
15
+ status: 'cancelled'
16
+ }),
17
+ cancelAll: () => Promise.resolve({
18
+ id: '',
19
+ status: 'cancelled'
20
+ })
6
21
  };
22
+ export const announce = message => {
23
+ AccessibilityInfo.announceForAccessibility(message);
24
+ return Promise.resolve({
25
+ id: '',
26
+ status: 'fired'
27
+ });
28
+ };
29
+ export const cancel = () => Promise.resolve({
30
+ id: '',
31
+ status: 'cancelled'
32
+ });
33
+ export const cancelAll = () => Promise.resolve({
34
+ id: '',
35
+ status: 'cancelled'
36
+ });
7
37
  //# sourceMappingURL=A11yAnnounceModule.android.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["AccessibilityInfo","A11yModule","announce","announceForAccessibility"],"sourceRoot":"../../../src","sources":["modules/A11yAnnounceModule.android.ts"],"mappings":";;AAAA,SAASA,iBAAiB,QAAQ,cAAc;AAEhD,OAAO,MAAMC,UAAU,GAAG;EACxBC,QAAQ,EAAEF,iBAAiB,CAACG;AAC9B,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["AccessibilityInfo","ScreenReader","announce","message","announceForAccessibility","Promise","resolve","id","status","cancel","cancelAll"],"sourceRoot":"../../../src","sources":["modules/A11yAnnounceModule.android.ts"],"mappings":";;AAAA;AACA,SAASA,iBAAiB,QAAQ,cAAc;AAEhD,OAAO,MAAMC,YAAY,GAAG;EAC1BC,QAAQ,EAAGC,OAAe,IAAK;IAC7BH,iBAAiB,CAACI,wBAAwB,CAACD,OAAO,CAAC;IACnD,OAAOE,OAAO,CAACC,OAAO,CAAC;MAAEC,EAAE,EAAE,EAAE;MAAEC,MAAM,EAAE;IAAiB,CAAC,CAAC;EAC9D,CAAC;EACDC,MAAM,EAAEA,CAAA,KAAMJ,OAAO,CAACC,OAAO,CAAC;IAAEC,EAAE,EAAE,EAAE;IAAEC,MAAM,EAAE;EAAqB,CAAC,CAAC;EACvEE,SAAS,EAAEA,CAAA,KAAML,OAAO,CAACC,OAAO,CAAC;IAAEC,EAAE,EAAE,EAAE;IAAEC,MAAM,EAAE;EAAqB,CAAC;AAC3E,CAAC;AAED,OAAO,MAAMN,QAAQ,GAAIC,OAAe,IAAK;EAC3CH,iBAAiB,CAACI,wBAAwB,CAACD,OAAO,CAAC;EACnD,OAAOE,OAAO,CAACC,OAAO,CAAC;IAAEC,EAAE,EAAE,EAAE;IAAEC,MAAM,EAAE;EAAiB,CAAC,CAAC;AAC9D,CAAC;AAED,OAAO,MAAMC,MAAM,GAAGA,CAAA,KACpBJ,OAAO,CAACC,OAAO,CAAC;EAAEC,EAAE,EAAE,EAAE;EAAEC,MAAM,EAAE;AAAqB,CAAC,CAAC;AAC3D,OAAO,MAAME,SAAS,GAAGA,CAAA,KACvBL,OAAO,CAACC,OAAO,CAAC;EAAEC,EAAE,EAAE,EAAE;EAAEC,MAAM,EAAE;AAAqB,CAAC,CAAC","ignoreList":[]}
@@ -1,23 +1,78 @@
1
1
  "use strict";
2
2
 
3
3
  import { NativeModules, Platform } from 'react-native';
4
- const LINKING_ERROR = `The package 'react-native-external-keyboard' doesn't seem to be linked. Make sure: \n\n${Platform.select({
4
+ import NativeA11yAnnounceModule from '../nativeSpecs/NativeA11yAnnounceModule';
5
+ const LINKING_ERROR = `The package 'react-native-a11y-order' doesn't seem to be linked. Make sure: \n\n${Platform.select({
5
6
  ios: "- You have run 'pod install'\n",
6
7
  default: ''
7
8
  })}- You rebuilt the app after installing the package\n` + `- You are not using Expo Go\n`;
8
9
 
9
10
  // @ts-expect-error
10
11
  const isTurboModuleEnabled = global.__turboModuleProxy != null;
11
- const A11yAnnounceModule = isTurboModuleEnabled ? require('../nativeSpecs/NativeA11yAnnounceModule').default : NativeModules.A11yAnnounceModule;
12
- export const A11yAnnounce = A11yAnnounceModule || new Proxy({}, {
12
+ const A11yAnnounceNative = isTurboModuleEnabled ? NativeA11yAnnounceModule : NativeModules.A11yAnnounceModule;
13
+ const A11yAnnounceProxy = A11yAnnounceNative ?? new Proxy({}, {
13
14
  get() {
14
15
  throw new Error(LINKING_ERROR);
15
16
  }
16
17
  });
17
- export function announce(message) {
18
- A11yAnnounce.announce(message);
18
+
19
+ // ─── Types ────────────────────────────────────────────────────────────────────
20
+
21
+ // ─── Core API ─────────────────────────────────────────────────────────────────
22
+
23
+ /**
24
+ * Posts a screen reader announcement.
25
+ *
26
+ * **calm mode** (`calm: true`): navigation-aware — waits for transitions to
27
+ * settle and for VoiceOver/TalkBack to have a focused element. Promise
28
+ * resolves when the announcement is **actually fired** (not just enqueued).
29
+ *
30
+ * **direct mode** (`calm: false`, default): posts immediately with speech
31
+ * attributes. On iOS, Promise resolves when VoiceOver confirms speech finished
32
+ * (`status: 'spoken'`) or was interrupted (`status: 'fired'`).
33
+ * On Android, always resolves immediately with `status: 'fired'`.
34
+ */
35
+ export function announce(message, options) {
36
+ const {
37
+ speech,
38
+ ...rest
39
+ } = options ?? {};
40
+ return A11yAnnounceProxy.announce(message, {
41
+ ...rest,
42
+ ...speech
43
+ });
44
+ }
45
+
46
+ /**
47
+ * Cancels the announcement with the given `id`.
48
+ * In calm mode, removes it from the service queue if not yet fired.
49
+ * In direct mode, interrupts the active announcement if it matches.
50
+ */
51
+ export function cancel(id) {
52
+ return A11yAnnounceProxy.cancel(id);
19
53
  }
20
- export const A11yModule = {
21
- announce
54
+
55
+ /**
56
+ * Cancels all pending and active announcements.
57
+ * Calm-mode promises resolve with `status: 'cancelled'`.
58
+ */
59
+ export function cancelAll() {
60
+ return A11yAnnounceProxy.cancelAll();
61
+ }
62
+
63
+ // ─── Namespace export (backward-compatible) ───────────────────────────────────
64
+
65
+ export const ScreenReader = {
66
+ /**
67
+ * Posts a navigation-aware announcement (calm mode).
68
+ * Waits for transitions to finish before speaking.
69
+ * Promise resolves when the announcement is actually fired.
70
+ */
71
+ announce: (message, options) => announce(message, {
72
+ calm: true,
73
+ ...options
74
+ }),
75
+ cancel,
76
+ cancelAll
22
77
  };
23
78
  //# sourceMappingURL=A11yAnnounceModule.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["NativeModules","Platform","LINKING_ERROR","select","ios","default","isTurboModuleEnabled","global","__turboModuleProxy","A11yAnnounceModule","require","A11yAnnounce","Proxy","get","Error","announce","message","A11yModule"],"sourceRoot":"../../../src","sources":["modules/A11yAnnounceModule.ts"],"mappings":";;AAAA,SAASA,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AAEtD,MAAMC,aAAa,GACjB,0FAA0FD,QAAQ,CAACE,MAAM,CACvG;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CACvD,CAAC,sDAAsD,GACvD,+BAA+B;;AAEjC;AACA,MAAMC,oBAAoB,GAAGC,MAAM,CAACC,kBAAkB,IAAI,IAAI;AAC9D,MAAMC,kBAAkB,GAAGH,oBAAoB,GAC3CI,OAAO,CAAC,yCAAyC,CAAC,CAACL,OAAO,GAC1DL,aAAa,CAACS,kBAAkB;AAEpC,OAAO,MAAME,YAAY,GACvBF,kBAAkB,IAClB,IAAIG,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACZ,aAAa,CAAC;EAChC;AACF,CACF,CAAC;AAEH,OAAO,SAASa,QAAQA,CAACC,OAAe,EAAE;EACxCL,YAAY,CAACI,QAAQ,CAACC,OAAO,CAAC;AAChC;AAEA,OAAO,MAAMC,UAAU,GAAG;EACxBF;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["NativeModules","Platform","NativeA11yAnnounceModule","LINKING_ERROR","select","ios","default","isTurboModuleEnabled","global","__turboModuleProxy","A11yAnnounceNative","A11yAnnounceModule","A11yAnnounceProxy","Proxy","get","Error","announce","message","options","speech","rest","cancel","id","cancelAll","ScreenReader","calm"],"sourceRoot":"../../../src","sources":["modules/A11yAnnounceModule.ts"],"mappings":";;AAAA,SAASA,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AACtD,OAAOC,wBAAwB,MAAM,yCAAyC;AAE9E,MAAMC,aAAa,GACjB,mFAAmFF,QAAQ,CAACG,MAAM,CAChG;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CACvD,CAAC,sDAAsD,GACvD,+BAA+B;;AAEjC;AACA,MAAMC,oBAAoB,GAAGC,MAAM,CAACC,kBAAkB,IAAI,IAAI;AAE9D,MAAMC,kBAAkB,GAAGH,oBAAoB,GAC3CL,wBAAwB,GACxBF,aAAa,CAACW,kBAAkB;AAEpC,MAAMC,iBAAkD,GACtDF,kBAAkB,IAClB,IAAIG,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACZ,aAAa,CAAC;EAChC;AACF,CACF,CAAC;;AAEH;;AA6FA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASa,QAAQA,CACtBC,OAAe,EACfC,OAAyB,EACI;EAC7B,MAAM;IAAEC,MAAM;IAAE,GAAGC;EAAK,CAAC,GAAGF,OAAO,IAAI,CAAC,CAAC;EACzC,OAAON,iBAAiB,CAAEI,QAAQ,CAACC,OAAO,EAAE;IAC1C,GAAGG,IAAI;IACP,GAAGD;EACL,CAAC,CAAC;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASE,MAAMA,CAACC,EAAU,EAA+B;EAC9D,OAAOV,iBAAiB,CAAES,MAAM,CAACC,EAAE,CAAC;AACtC;;AAEA;AACA;AACA;AACA;AACA,OAAO,SAASC,SAASA,CAAA,EAAgC;EACvD,OAAOX,iBAAiB,CAAEW,SAAS,CAAC,CAAC;AACvC;;AAEA;;AAEA,OAAO,MAAMC,YAAY,GAAG;EAC1B;AACF;AACA;AACA;AACA;EACER,QAAQ,EAAEA,CAACC,OAAe,EAAEC,OAAyB,KACnDF,QAAQ,CAACC,OAAO,EAAE;IAAEQ,IAAI,EAAE,IAAI;IAAE,GAAGP;EAAQ,CAAC,CAAC;EAE/CG,MAAM;EACNE;AACF,CAAC","ignoreList":[]}
@@ -24,7 +24,6 @@ export interface A11yIndexNativeComponentProps extends ViewProps {
24
24
  orderFocusType?: Int32;
25
25
  shouldGroupAccessibilityChildren?: Int32;
26
26
 
27
- autoFocus?: boolean;
28
27
  descendantFocusChangedEnabled?: boolean;
29
28
 
30
29
  onScreenReaderFocused?: DirectEventHandler<{}>;
@@ -1,5 +1,9 @@
1
1
  "use strict";
2
2
 
3
3
  import { TurboModuleRegistry } from 'react-native';
4
+
5
+ // Speech options are kept flat here (bridge contract).
6
+ // The JS API groups them under `speech: {}` and flattens before calling native.
7
+
4
8
  export default TurboModuleRegistry.get('A11yAnnounceModule');
5
9
  //# sourceMappingURL=NativeA11yAnnounceModule.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["TurboModuleRegistry","get"],"sourceRoot":"../../../src","sources":["nativeSpecs/NativeA11yAnnounceModule.ts"],"mappings":";;AACA,SAASA,mBAAmB,QAAQ,cAAc;AAMlD,eAAeA,mBAAmB,CAACC,GAAG,CAAO,oBAAoB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["TurboModuleRegistry","get"],"sourceRoot":"../../../src","sources":["nativeSpecs/NativeA11yAnnounceModule.ts"],"mappings":";;AACA,SAASA,mBAAmB,QAAQ,cAAc;;AAElD;AACA;;AAiCA,eAAeA,mBAAmB,CAACC,GAAG,CAAO,oBAAoB,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"A11yCard.ios.d.ts","sourceRoot":"","sources":["../../../../../src/components/A11yCard/A11yCard.ios.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,YAAY,EAAE,aAAa,EAAE,CAAC;AAE9B,eAAO,MAAM,QAAQ,GAAI,sFAQtB,aAAa,sBAuBf,CAAC"}
1
+ {"version":3,"file":"A11yCard.ios.d.ts","sourceRoot":"","sources":["../../../../../src/components/A11yCard/A11yCard.ios.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,YAAY,EAAE,aAAa,EAAE,CAAC;AAE9B,eAAO,MAAM,QAAQ,GAAI,sFAQtB,aAAa,sBAwBf,CAAC"}
@@ -1,139 +1,16 @@
1
1
  import React from 'react';
2
+ import type { ViewProps } from 'react-native';
2
3
  import { type A11yOrderType, type IndexCommands } from './A11yIndex.types';
3
- export declare const A11yIndex: React.NamedExoticComponent<Readonly<Omit<Readonly<{
4
- onAccessibilityAction?: ((event: import("react-native").AccessibilityActionEvent) => unknown) | undefined;
5
- onAccessibilityTap?: (() => unknown) | undefined;
6
- onLayout?: ((event: import("react-native").LayoutChangeEvent) => unknown) | undefined;
7
- onMagicTap?: (() => unknown) | undefined;
8
- onAccessibilityEscape?: (() => unknown) | undefined;
9
- }>, "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<{
10
- onMoveShouldSetResponder?: ((e: import("react-native").GestureResponderEvent) => boolean) | undefined;
11
- onMoveShouldSetResponderCapture?: ((e: import("react-native").GestureResponderEvent) => boolean) | undefined;
12
- onResponderGrant?: ((e: import("react-native").GestureResponderEvent) => void | boolean) | undefined;
13
- onResponderMove?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
14
- onResponderReject?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
15
- onResponderRelease?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
16
- onResponderStart?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
17
- onResponderEnd?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
18
- onResponderTerminate?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
19
- onResponderTerminationRequest?: ((e: import("react-native").GestureResponderEvent) => boolean) | undefined;
20
- onStartShouldSetResponder?: ((e: import("react-native").GestureResponderEvent) => boolean) | undefined;
21
- onStartShouldSetResponderCapture?: ((e: import("react-native").GestureResponderEvent) => boolean) | undefined;
22
- }>, "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<{
23
- onMouseEnter?: ((event: import("react-native").MouseEvent) => void) | undefined;
24
- onMouseLeave?: ((event: import("react-native").MouseEvent) => void) | undefined;
25
- }>, "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<{
26
- onClick?: ((event: import("react-native").PointerEvent) => void) | undefined;
27
- onClickCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
28
- onPointerEnter?: ((event: import("react-native").PointerEvent) => void) | undefined;
29
- onPointerEnterCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
30
- onPointerLeave?: ((event: import("react-native").PointerEvent) => void) | undefined;
31
- onPointerLeaveCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
32
- onPointerMove?: ((event: import("react-native").PointerEvent) => void) | undefined;
33
- onPointerMoveCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
34
- onPointerCancel?: ((e: import("react-native").PointerEvent) => void) | undefined;
35
- onPointerCancelCapture?: ((e: import("react-native").PointerEvent) => void) | undefined;
36
- onPointerDown?: ((e: import("react-native").PointerEvent) => void) | undefined;
37
- onPointerDownCapture?: ((e: import("react-native").PointerEvent) => void) | undefined;
38
- onPointerUp?: ((e: import("react-native").PointerEvent) => void) | undefined;
39
- onPointerUpCapture?: ((e: import("react-native").PointerEvent) => void) | undefined;
40
- onPointerOver?: ((e: import("react-native").PointerEvent) => void) | undefined;
41
- onPointerOverCapture?: ((e: import("react-native").PointerEvent) => void) | undefined;
42
- onPointerOut?: ((e: import("react-native").PointerEvent) => void) | undefined;
43
- onPointerOutCapture?: ((e: import("react-native").PointerEvent) => void) | undefined;
44
- onGotPointerCapture?: ((e: import("react-native").PointerEvent) => void) | undefined;
45
- onGotPointerCaptureCapture?: ((e: import("react-native").PointerEvent) => void) | undefined;
46
- onLostPointerCapture?: ((e: import("react-native").PointerEvent) => void) | undefined;
47
- onLostPointerCaptureCapture?: ((e: import("react-native").PointerEvent) => void) | undefined;
48
- }>, "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<{
49
- onBlur?: ((event: import("react-native").BlurEvent) => void) | undefined;
50
- onBlurCapture?: ((event: import("react-native").BlurEvent) => void) | undefined;
51
- onFocus?: ((event: import("react-native").FocusEvent) => void) | undefined;
52
- onFocusCapture?: ((event: import("react-native").FocusEvent) => void) | undefined;
53
- }>, "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<{
54
- onTouchCancel?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
55
- onTouchCancelCapture?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
56
- onTouchEnd?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
57
- onTouchEndCapture?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
58
- onTouchMove?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
59
- onTouchMoveCapture?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
60
- onTouchStart?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
61
- onTouchStartCapture?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
62
- }>, "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<{
63
- nativeBackgroundAndroid?: import("react-native/types_generated/Libraries/Components/View/ViewPropTypes").AndroidDrawable | undefined;
64
- nativeForegroundAndroid?: import("react-native/types_generated/Libraries/Components/View/ViewPropTypes").AndroidDrawable | undefined;
65
- renderToHardwareTextureAndroid?: boolean | undefined;
66
- hasTVPreferredFocus?: boolean | undefined;
67
- nextFocusDown?: number | undefined;
68
- nextFocusForward?: number | undefined;
69
- nextFocusLeft?: number | undefined;
70
- nextFocusRight?: number | undefined;
71
- nextFocusUp?: number | undefined;
72
- focusable?: boolean | undefined;
73
- tabIndex?: 0 | -1;
74
- onClick?: ((event: import("react-native").GestureResponderEvent) => unknown) | undefined;
75
- }>, "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<{
76
- shouldRasterizeIOS?: boolean | undefined;
77
- }>, "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<{
78
- accessibilityLabelledBy?: (string | undefined) | (Array<string> | undefined);
79
- "aria-labelledby"?: string | undefined;
80
- accessibilityLiveRegion?: ("none" | "polite" | "assertive") | undefined;
81
- "aria-live"?: ("polite" | "assertive" | "off") | undefined;
82
- importantForAccessibility?: ("auto" | "yes" | "no" | "no-hide-descendants") | undefined;
83
- screenReaderFocusable?: boolean;
84
- }>, "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<{
85
- accessibilityIgnoresInvertColors?: boolean | undefined;
86
- accessibilityViewIsModal?: boolean | undefined;
87
- accessibilityShowsLargeContentViewer?: boolean | undefined;
88
- accessibilityLargeContentTitle?: string | undefined;
89
- "aria-modal"?: boolean | undefined;
90
- accessibilityElementsHidden?: boolean | undefined;
91
- accessibilityLanguage?: string | undefined;
92
- accessibilityRespondsToUserInteraction?: boolean | undefined;
93
- }>, "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"> & {
94
- accessible?: boolean | undefined;
95
- accessibilityLabel?: string | undefined;
96
- accessibilityHint?: string | undefined;
97
- "aria-label"?: string | undefined;
98
- accessibilityRole?: import("react-native").AccessibilityRole | undefined;
99
- role?: import("react-native").Role | undefined;
100
- accessibilityState?: import("react-native").AccessibilityState | undefined;
101
- accessibilityValue?: import("react-native").AccessibilityValue | undefined;
102
- "aria-valuemax"?: import("react-native").AccessibilityValue["max"] | undefined;
103
- "aria-valuemin"?: import("react-native").AccessibilityValue["min"] | undefined;
104
- "aria-valuenow"?: import("react-native").AccessibilityValue["now"] | undefined;
105
- "aria-valuetext"?: import("react-native").AccessibilityValue["text"] | undefined;
106
- accessibilityActions?: ReadonlyArray<import("react-native/types_generated/Libraries/Components/View/ViewAccessibility").AccessibilityActionInfo> | undefined;
107
- "aria-busy"?: boolean | undefined;
108
- "aria-checked"?: (boolean | undefined) | "mixed";
109
- "aria-disabled"?: boolean | undefined;
110
- "aria-expanded"?: boolean | undefined;
111
- "aria-selected"?: boolean | undefined;
112
- "aria-hidden"?: boolean | undefined;
113
- }>, "children" | "style" | "collapsable" | "collapsableChildren" | "id" | "testID" | "nativeID" | "needsOffscreenAlphaCompositing" | "hitSlop" | "pointerEvents" | "removeClippedSubviews" | "experimental_accessibilityOrder"> & Omit<Readonly<{
114
- children?: React.ReactNode;
115
- style?: import("react-native/types_generated/Libraries/StyleSheet/StyleSheet").ViewStyleProp | undefined;
116
- collapsable?: boolean | undefined;
117
- collapsableChildren?: boolean | undefined;
118
- id?: string;
119
- testID?: string | undefined;
120
- nativeID?: string | undefined;
121
- needsOffscreenAlphaCompositing?: boolean | undefined;
122
- hitSlop?: import("react-native/types_generated/Libraries/StyleSheet/EdgeInsetsPropType").EdgeInsetsOrSizeProp | undefined;
123
- pointerEvents?: ("auto" | "box-none" | "box-only" | "none") | undefined;
124
- removeClippedSubviews?: boolean | undefined;
125
- experimental_accessibilityOrder?: Array<string> | undefined;
126
- }>, never>> & {
4
+ export declare const A11yIndex: React.MemoExoticComponent<React.ForwardRefExoticComponent<ViewProps & {
127
5
  children: React.ReactNode;
128
6
  index?: number;
129
7
  orderType?: A11yOrderType;
130
8
  a11yUIContainer?: import("./A11yIndex.types").A11yUIContainerType;
131
9
  shouldGroupAccessibilityChildren?: boolean;
132
- autoFocus?: boolean;
133
10
  onScreenReaderFocused?: () => void;
134
11
  onScreenReaderSubViewFocusChange?: (isFocused: boolean) => void;
135
12
  onScreenReaderSubViewFocused?: () => void;
136
13
  onScreenReaderSubViewBlurred?: () => void;
137
14
  onScreenReaderDescendantFocusChanged?: (e: import("./A11yIndex.types").ScreenReaderDescendantFocusChangedEvent) => void;
138
- } & React.RefAttributes<IndexCommands>>;
15
+ } & React.RefAttributes<IndexCommands>>>;
139
16
  //# sourceMappingURL=A11yIndex.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"A11yIndex.d.ts","sourceRoot":"","sources":["../../../../../src/components/A11yIndex/A11yIndex.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAM3D,OAAO,EAGL,KAAK,aAAa,EAClB,KAAK,aAAa,EAEnB,MAAM,mBAAmB,CAAC;AAyG3B,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uCAgErB,CAAC"}
1
+ {"version":3,"file":"A11yIndex.d.ts","sourceRoot":"","sources":["../../../../../src/components/A11yIndex/A11yIndex.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAK9C,OAAO,EAGL,KAAK,aAAa,EAClB,KAAK,aAAa,EAEnB,MAAM,mBAAmB,CAAC;AA0G3B,eAAO,MAAM,SAAS;;;;;;;;;;;wCAgErB,CAAC"}
@@ -75,10 +75,6 @@ export type A11yIndexProps = ViewProps & {
75
75
  * @platform ios
76
76
  */
77
77
  shouldGroupAccessibilityChildren?: boolean;
78
- /**
79
- * When `true`, requests screen reader focus on this element immediately after mount.
80
- */
81
- autoFocus?: boolean;
82
78
  /**
83
79
  * Called when the screen reader focuses this element directly (not a descendant).
84
80
  */
@@ -1 +1 @@
1
- {"version":3,"file":"A11yIndex.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/A11yIndex/A11yIndex.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC1E,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,4CAA4C,CAAC;AAErG,0GAA0G;AAC1G,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,OAAO,IAAI,CAAC,EAAE,OAAO,CAAC,GAAG;IAC3E,iDAAiD;IACjD,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB,CAAC;AAEF,oGAAoG;AACpG,eAAO,MAAM,iBAAiB;;;;CAIpB,CAAC;AAEX,wEAAwE;AACxE,eAAO,MAAM,qBAAqB;;;;;;CAMxB,CAAC;AAEX;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG,MAAM,OAAO,qBAAqB,CAAC;AAErE;;;;;;GAMG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,iBAAiB,CAAC;AAE3D,kFAAkF;AAClF,MAAM,MAAM,uCAAuC,GACjD,oBAAoB,CAAC,kCAAkC,CAAC,CAAC;AAE3D,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG;IACvC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAE1B;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;;;;;;OASG;IACH,SAAS,CAAC,EAAE,aAAa,CAAC;IAE1B;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,mBAAmB,CAAC;IAEtC;;;;;;;;;;;;OAYG;IACH,gCAAgC,CAAC,EAAE,OAAO,CAAC;IAE3C;;OAEG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