react-native-a11y-order 0.2.3 → 0.2.5

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 (80) hide show
  1. package/README.md +47 -71
  2. package/ios/A11yOrder.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
  3. package/ios/A11yOrder.xcodeproj/project.xcworkspace/xcuserdata/Artur_Kalach.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  4. package/ios/A11yOrder.xcodeproj/xcuserdata/Artur_Kalach.xcuserdatad/xcschemes/xcschememanagement.plist +14 -0
  5. package/lib/commonjs/components/A11yGroup/A11yGroup.android.js +4 -6
  6. package/lib/commonjs/components/A11yGroup/A11yGroup.android.js.map +1 -1
  7. package/lib/commonjs/components/A11yGroup/A11yGroup.ios.js +1 -1
  8. package/lib/commonjs/components/A11yGroup/A11yGroup.ios.js.map +1 -1
  9. package/lib/commonjs/components/A11yGroup/A11yGroup.js +1 -2
  10. package/lib/commonjs/components/A11yGroup/A11yGroup.js.map +1 -1
  11. package/lib/commonjs/components/A11yIndex/A11yIndex.js +9 -12
  12. package/lib/commonjs/components/A11yIndex/A11yIndex.js.map +1 -1
  13. package/lib/commonjs/components/A11yIndex/A11yIndex.web.js +5 -7
  14. package/lib/commonjs/components/A11yIndex/A11yIndex.web.js.map +1 -1
  15. package/lib/commonjs/components/A11ySequence/A11ySequence.js +3 -4
  16. package/lib/commonjs/components/A11ySequence/A11ySequence.js.map +1 -1
  17. package/lib/commonjs/context/A11ySequenceOrderContext.js +2 -3
  18. package/lib/commonjs/context/A11ySequenceOrderContext.js.map +1 -1
  19. package/lib/commonjs/index.js +1 -9
  20. package/lib/commonjs/index.js.map +1 -1
  21. package/lib/commonjs/index.web.js +2 -46
  22. package/lib/commonjs/index.web.js.map +1 -1
  23. package/lib/commonjs/nativeSpecs/A11yGroupNativeComponent.js +2 -3
  24. package/lib/commonjs/nativeSpecs/A11yGroupNativeComponent.js.map +1 -1
  25. package/lib/commonjs/nativeSpecs/A11yIndexNativeComponent.js +3 -5
  26. package/lib/commonjs/nativeSpecs/A11yIndexNativeComponent.js.map +1 -1
  27. package/lib/commonjs/nativeSpecs/A11yOrderNativeComponent.js +2 -3
  28. package/lib/commonjs/nativeSpecs/A11yOrderNativeComponent.js.map +1 -1
  29. package/lib/commonjs/types/A11yGroup.types.js.map +1 -1
  30. package/lib/commonjs/types/A11yIndex.types.js.map +1 -1
  31. package/lib/commonjs/types/A11yModule.types.js.map +1 -1
  32. package/lib/module/components/A11yGroup/A11yGroup.android.js +3 -4
  33. package/lib/module/components/A11yGroup/A11yGroup.android.js.map +1 -1
  34. package/lib/module/components/A11yGroup/A11yGroup.ios.js.map +1 -1
  35. package/lib/module/components/A11yGroup/A11yGroup.js.map +1 -1
  36. package/lib/module/components/A11yIndex/A11yIndex.js +8 -9
  37. package/lib/module/components/A11yIndex/A11yIndex.js.map +1 -1
  38. package/lib/module/components/A11yIndex/A11yIndex.web.js +3 -3
  39. package/lib/module/components/A11yIndex/A11yIndex.web.js.map +1 -1
  40. package/lib/module/components/A11ySequence/A11ySequence.js +1 -1
  41. package/lib/module/components/A11ySequence/A11ySequence.js.map +1 -1
  42. package/lib/module/context/A11ySequenceOrderContext.js.map +1 -1
  43. package/lib/module/index.js +0 -1
  44. package/lib/module/index.js.map +1 -1
  45. package/lib/module/index.web.js +0 -40
  46. package/lib/module/index.web.js.map +1 -1
  47. package/lib/module/nativeSpecs/A11yGroupNativeComponent.js.map +1 -1
  48. package/lib/module/nativeSpecs/A11yIndexNativeComponent.js.map +1 -1
  49. package/lib/module/nativeSpecs/A11yOrderNativeComponent.js.map +1 -1
  50. package/lib/module/types/A11yGroup.types.js.map +1 -1
  51. package/lib/module/types/A11yIndex.types.js.map +1 -1
  52. package/lib/module/types/A11yModule.types.js.map +1 -1
  53. package/lib/typescript/components/A11yGroup/A11yGroup.android.d.ts +2 -2
  54. package/lib/typescript/components/A11yGroup/A11yGroup.android.d.ts.map +1 -1
  55. package/lib/typescript/components/A11yGroup/A11yGroup.ios.d.ts +2 -2
  56. package/lib/typescript/components/A11yGroup/A11yGroup.ios.d.ts.map +1 -1
  57. package/lib/typescript/index.d.ts +0 -2
  58. package/lib/typescript/index.d.ts.map +1 -1
  59. package/lib/typescript/index.web.d.ts +1 -39
  60. package/lib/typescript/index.web.d.ts.map +1 -1
  61. package/package.json +11 -3
  62. package/src/components/A11yGroup/A11yGroup.android.tsx +2 -3
  63. package/src/components/A11yIndex/A11yIndex.tsx +2 -2
  64. package/src/components/A11yIndex/A11yIndex.web.tsx +2 -2
  65. package/src/index.ts +0 -2
  66. package/src/index.web.ts +0 -43
  67. package/lib/commonjs/components/A11yOrder/A11yOrder.js +0 -40
  68. package/lib/commonjs/components/A11yOrder/A11yOrder.js.map +0 -1
  69. package/lib/commonjs/types/A11yOrder.types.js +0 -6
  70. package/lib/commonjs/types/A11yOrder.types.js.map +0 -1
  71. package/lib/module/components/A11yOrder/A11yOrder.js +0 -31
  72. package/lib/module/components/A11yOrder/A11yOrder.js.map +0 -1
  73. package/lib/module/types/A11yOrder.types.js +0 -2
  74. package/lib/module/types/A11yOrder.types.js.map +0 -1
  75. package/lib/typescript/components/A11yOrder/A11yOrder.d.ts +0 -8
  76. package/lib/typescript/components/A11yOrder/A11yOrder.d.ts.map +0 -1
  77. package/lib/typescript/types/A11yOrder.types.d.ts +0 -10
  78. package/lib/typescript/types/A11yOrder.types.d.ts.map +0 -1
  79. package/src/components/A11yOrder/A11yOrder.tsx +0 -38
  80. package/src/types/A11yOrder.types.ts +0 -9
@@ -1 +1 @@
1
- {"version":3,"names":["_codegenNativeComponent","_interopRequireDefault","require","obj","__esModule","default","_default","codegenNativeComponent","exports"],"sourceRoot":"../../../src","sources":["nativeSpecs/A11yOrderNativeComponent.ts"],"mappings":";;;;;;AACA,IAAAA,uBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA6F,SAAAD,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,IAAAG,QAAA,GAM9E,IAAAC,+BAAsB,EACnC,eACF,CAAC;AAAAC,OAAA,CAAAH,OAAA,GAAAC,QAAA"}
1
+ {"version":3,"names":["_codegenNativeComponent","_interopRequireDefault","require","e","__esModule","default","_default","exports","codegenNativeComponent"],"sourceRoot":"../../../src","sources":["nativeSpecs/A11yOrderNativeComponent.ts"],"mappings":";;;;;;AACA,IAAAA,uBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA6F,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,IAAAG,QAAA,GAAAC,OAAA,CAAAF,OAAA,GAM9E,IAAAG,+BAAsB,EACnC,eACF,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/A11yGroup.types.ts"],"mappings":""}
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/A11yGroup.types.ts"],"mappings":"","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/A11yIndex.types.ts"],"mappings":""}
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/A11yIndex.types.ts"],"mappings":"","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/A11yModule.types.ts"],"mappings":""}
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/A11yModule.types.ts"],"mappings":"","ignoreList":[]}
@@ -1,10 +1,9 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
- import React, { useId } from 'react';
1
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
+ import React from 'react';
3
3
  import { View } from 'react-native';
4
4
  export const A11yGroup = props => {
5
- const id = useId();
6
5
  return /*#__PURE__*/React.createElement(View, _extends({
7
- nativeID: id
6
+ collapsable: false
8
7
  }, props));
9
8
  };
10
9
  //# sourceMappingURL=A11yGroup.android.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","useId","View","A11yGroup","props","id","createElement","_extends","nativeID"],"sourceRoot":"../../../../src","sources":["components/A11yGroup/A11yGroup.android.tsx"],"mappings":";AAAA,OAAOA,KAAK,IAAIC,KAAK,QAAQ,OAAO;AACpC,SAASC,IAAI,QAAQ,cAAc;AAInC,OAAO,MAAMC,SAAS,GAAIC,KAAqB,IAAK;EAClD,MAAMC,EAAE,GAAGJ,KAAK,CAAC,CAAC;EAClB,oBAAOD,KAAA,CAAAM,aAAA,CAACJ,IAAI,EAAAK,QAAA;IAACC,QAAQ,EAAEH;EAAG,GAAKD,KAAK,CAAG,CAAC;AAC1C,CAAC"}
1
+ {"version":3,"names":["React","View","A11yGroup","props","createElement","_extends","collapsable"],"sourceRoot":"../../../../src","sources":["components/A11yGroup/A11yGroup.android.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,cAAc;AAInC,OAAO,MAAMC,SAAS,GAAIC,KAAqB,IAAK;EAClD,oBAAOH,KAAA,CAAAI,aAAA,CAACH,IAAI,EAAAI,QAAA;IAACC,WAAW,EAAE;EAAM,GAAKH,KAAK,CAAG,CAAC;AAChD,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["React","A11yDirectionView","A11yGroup","props","createElement"],"sourceRoot":"../../../../src","sources":["components/A11yGroup/A11yGroup.ios.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,iBAAiB,MAAM,4CAA4C;AAG1E,OAAO,MAAMC,SAAS,GAAIC,KAAqB,iBAC7CH,KAAA,CAAAI,aAAA,CAACH,iBAAiB,EAAKE,KAAQ,CAChC"}
1
+ {"version":3,"names":["React","A11yDirectionView","A11yGroup","props","createElement"],"sourceRoot":"../../../../src","sources":["components/A11yGroup/A11yGroup.ios.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,iBAAiB,MAAM,4CAA4C;AAG1E,OAAO,MAAMC,SAAS,GAAIC,KAAqB,iBAC7CH,KAAA,CAAAI,aAAA,CAACH,iBAAiB,EAAKE,KAAQ,CAChC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["View","A11yGroup"],"sourceRoot":"../../../../src","sources":["components/A11yGroup/A11yGroup.tsx"],"mappings":"AAAA,SAASA,IAAI,QAAQ,cAAc;AAEnC,OAAO,MAAMC,SAAS,GAAGD,IAAI"}
1
+ {"version":3,"names":["View","A11yGroup"],"sourceRoot":"../../../../src","sources":["components/A11yGroup/A11yGroup.tsx"],"mappings":"AAAA,SAASA,IAAI,QAAQ,cAAc;AAEnC,OAAO,MAAMC,SAAS,GAAGD,IAAI","ignoreList":[]}
@@ -1,17 +1,16 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
1
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
2
  import React, { useImperativeHandle, useRef } from 'react';
3
3
  import { View } from 'react-native';
4
4
  import { A11ySequenceOrderContext } from '../../context/A11ySequenceOrderContext';
5
5
  import A11yIndexView, { Commands } from '../../nativeSpecs/A11yIndexNativeComponent';
6
- export const A11yIndex = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef((_ref, ref) => {
7
- let {
8
- children,
9
- index,
10
- ...props
11
- } = _ref;
6
+ export const A11yIndex = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(({
7
+ children,
8
+ index,
9
+ ...props
10
+ }, ref) => {
12
11
  const orderKey = React.useContext(A11ySequenceOrderContext);
13
12
  if (!orderKey) {
14
- throw new Error('A11ySequence.Index should be used inside of A11ySequence.Container');
13
+ throw new Error('<A11y.Index> element should be used inside of <A11y.Order> container');
15
14
  }
16
15
  const indexRef = useRef(null);
17
16
  useImperativeHandle(ref, () => ({
@@ -27,7 +26,7 @@ export const A11yIndex = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(
27
26
  orderIndex: index,
28
27
  orderKey: orderKey
29
28
  }, props), isSingleChild && children, !isSingleChild && /*#__PURE__*/React.createElement(View, {
30
- nativeID: orderKey
29
+ collapsable: false
31
30
  }, children));
32
31
  }));
33
32
  //# sourceMappingURL=A11yIndex.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","useImperativeHandle","useRef","View","A11ySequenceOrderContext","A11yIndexView","Commands","A11yIndex","memo","forwardRef","_ref","ref","children","index","props","orderKey","useContext","Error","indexRef","focus","current","isSingleChild","Children","count","createElement","_extends","orderIndex","nativeID"],"sourceRoot":"../../../../src","sources":["components/A11yIndex/A11yIndex.tsx"],"mappings":";AAAA,OAAOA,KAAK,IAAIC,mBAAmB,EAAEC,MAAM,QAAQ,OAAO;AAC1D,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,wBAAwB,QAAQ,wCAAwC;AACjF,OAAOC,aAAa,IAClBC,QAAQ,QACH,4CAA4C;AAGnD,OAAO,MAAMC,SAAS,gBAAGP,KAAK,CAACQ,IAAI,eACjCR,KAAK,CAACS,UAAU,CACd,CAAAC,IAAA,EAAgCC,GAAG,KAAK;EAAA,IAAvC;IAAEC,QAAQ;IAAEC,KAAK;IAAE,GAAGC;EAAM,CAAC,GAAAJ,IAAA;EAC5B,MAAMK,QAAQ,GAAGf,KAAK,CAACgB,UAAU,CAACZ,wBAAwB,CAAC;EAC3D,IAAI,CAACW,QAAQ,EAAE;IACb,MAAM,IAAIE,KAAK,CACb,oEACF,CAAC;EACH;EAEA,MAAMC,QAAQ,GAAGhB,MAAM,CAAwC,IAAI,CAAC;EAEpED,mBAAmB,CAACU,GAAG,EAAE,OAAO;IAC9BQ,KAAK,EAAEA,CAAA,KAAM;MACX,IAAID,QAAQ,CAACE,OAAO,EAAE;QACpBd,QAAQ,CAACa,KAAK,CAACD,QAAQ,CAACE,OAAO,CAAC;MAClC;IACF;EACF,CAAC,CAAC,CAAC;EAEH,MAAMC,aAAa,GAAGrB,KAAK,CAACsB,QAAQ,CAACC,KAAK,CAACX,QAAQ,CAAC,KAAK,CAAC;EAE1D,oBACEZ,KAAA,CAAAwB,aAAA,CAACnB,aAAa,EAAAoB,QAAA;IACZd,GAAG,EAAEO,QAAS;IACdQ,UAAU,EAAEb,KAAM;IAClBE,QAAQ,EAAEA;EAAS,GACfD,KAAK,GAERO,aAAa,IAAIT,QAAQ,EACzB,CAACS,aAAa,iBAAIrB,KAAA,CAAAwB,aAAA,CAACrB,IAAI;IAACwB,QAAQ,EAAEZ;EAAS,GAAEH,QAAe,CAChD,CAAC;AAEpB,CACF,CACF,CAAC"}
1
+ {"version":3,"names":["React","useImperativeHandle","useRef","View","A11ySequenceOrderContext","A11yIndexView","Commands","A11yIndex","memo","forwardRef","children","index","props","ref","orderKey","useContext","Error","indexRef","focus","current","isSingleChild","Children","count","createElement","_extends","orderIndex","collapsable"],"sourceRoot":"../../../../src","sources":["components/A11yIndex/A11yIndex.tsx"],"mappings":";AAAA,OAAOA,KAAK,IAAIC,mBAAmB,EAAEC,MAAM,QAAQ,OAAO;AAC1D,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,wBAAwB,QAAQ,wCAAwC;AACjF,OAAOC,aAAa,IAClBC,QAAQ,QACH,4CAA4C;AAGnD,OAAO,MAAMC,SAAS,gBAAGP,KAAK,CAACQ,IAAI,cACjCR,KAAK,CAACS,UAAU,CACd,CAAC;EAAEC,QAAQ;EAAEC,KAAK;EAAE,GAAGC;AAAM,CAAC,EAAEC,GAAG,KAAK;EACtC,MAAMC,QAAQ,GAAGd,KAAK,CAACe,UAAU,CAACX,wBAAwB,CAAC;EAC3D,IAAI,CAACU,QAAQ,EAAE;IACb,MAAM,IAAIE,KAAK,CACb,sEACF,CAAC;EACH;EAEA,MAAMC,QAAQ,GAAGf,MAAM,CAAwC,IAAI,CAAC;EAEpED,mBAAmB,CAACY,GAAG,EAAE,OAAO;IAC9BK,KAAK,EAAEA,CAAA,KAAM;MACX,IAAID,QAAQ,CAACE,OAAO,EAAE;QACpBb,QAAQ,CAACY,KAAK,CAACD,QAAQ,CAACE,OAAO,CAAC;MAClC;IACF;EACF,CAAC,CAAC,CAAC;EAEH,MAAMC,aAAa,GAAGpB,KAAK,CAACqB,QAAQ,CAACC,KAAK,CAACZ,QAAQ,CAAC,KAAK,CAAC;EAE1D,oBACEV,KAAA,CAAAuB,aAAA,CAAClB,aAAa,EAAAmB,QAAA;IACZX,GAAG,EAAEI,QAAS;IACdQ,UAAU,EAAEd,KAAM;IAClBG,QAAQ,EAAEA;EAAS,GACfF,KAAK,GAERQ,aAAa,IAAIV,QAAQ,EACzB,CAACU,aAAa,iBAAIpB,KAAA,CAAAuB,aAAA,CAACpB,IAAI;IAACuB,WAAW,EAAE;EAAM,GAAEhB,QAAe,CAChD,CAAC;AAEpB,CACF,CACF,CAAC","ignoreList":[]}
@@ -1,15 +1,15 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
1
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
2
  import React from 'react';
3
3
  import { forwardRef, useImperativeHandle, useRef } from 'react';
4
4
  import { UIManager } from 'react-native';
5
5
  import { View } from 'react-native';
6
- const WebUiMeneger = UIManager;
6
+ const WebUiManager = UIManager;
7
7
  export const A11yIndex = /*#__PURE__*/forwardRef((props, ref) => {
8
8
  const viewRef = useRef(null);
9
9
  useImperativeHandle(ref, () => ({
10
10
  focus: () => {
11
11
  if (viewRef.current) {
12
- WebUiMeneger.focus(viewRef.current);
12
+ WebUiManager.focus(viewRef.current);
13
13
  }
14
14
  }
15
15
  }));
@@ -1 +1 @@
1
- {"version":3,"names":["React","forwardRef","useImperativeHandle","useRef","UIManager","View","WebUiMeneger","A11yIndex","props","ref","viewRef","focus","current","createElement","_extends"],"sourceRoot":"../../../../src","sources":["components/A11yIndex/A11yIndex.web.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,mBAAmB,EAAEC,MAAM,QAAQ,OAAO;AAE/D,SAASC,SAAS,QAAQ,cAAc;AACxC,SAASC,IAAI,QAAQ,cAAc;AAEnC,MAAMC,YAAY,GAAGF,SAEpB;AAED,OAAO,MAAMG,SAAS,gBAAGN,UAAU,CACjC,CAACO,KAAK,EAAEC,GAAG,KAAK;EACd,MAAMC,OAAO,GAAGP,MAAM,CAAO,IAAI,CAAC;EAClCD,mBAAmB,CAACO,GAAG,EAAE,OAAO;IAC9BE,KAAK,EAAEA,CAAA,KAAM;MACX,IAAID,OAAO,CAACE,OAAO,EAAE;QACnBN,YAAY,CAACK,KAAK,CAACD,OAAO,CAACE,OAAO,CAAC;MACrC;IACF;EACF,CAAC,CAAC,CAAC;EAEH,oBAAOZ,KAAA,CAAAa,aAAA,CAACR,IAAI,EAAAS,QAAA,KAAKN,KAAK;IAAEC,GAAG,EAAEC;EAAQ,EAAE,CAAC;AAC1C,CACF,CAAC"}
1
+ {"version":3,"names":["React","forwardRef","useImperativeHandle","useRef","UIManager","View","WebUiManager","A11yIndex","props","ref","viewRef","focus","current","createElement","_extends"],"sourceRoot":"../../../../src","sources":["components/A11yIndex/A11yIndex.web.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,mBAAmB,EAAEC,MAAM,QAAQ,OAAO;AAE/D,SAASC,SAAS,QAAQ,cAAc;AACxC,SAASC,IAAI,QAAQ,cAAc;AAEnC,MAAMC,YAAY,GAAGF,SAEpB;AAED,OAAO,MAAMG,SAAS,gBAAGN,UAAU,CACjC,CAACO,KAAK,EAAEC,GAAG,KAAK;EACd,MAAMC,OAAO,GAAGP,MAAM,CAAO,IAAI,CAAC;EAClCD,mBAAmB,CAACO,GAAG,EAAE,OAAO;IAC9BE,KAAK,EAAEA,CAAA,KAAM;MACX,IAAID,OAAO,CAACE,OAAO,EAAE;QACnBN,YAAY,CAACK,KAAK,CAACD,OAAO,CAACE,OAAO,CAAC;MACrC;IACF;EACF,CAAC,CAAC,CAAC;EAEH,oBAAOZ,KAAA,CAAAa,aAAA,CAACR,IAAI,EAAAS,QAAA,KAAKN,KAAK;IAAEC,GAAG,EAAEC;EAAQ,EAAE,CAAC;AAC1C,CACF,CAAC","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
1
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
2
  import React from 'react';
3
3
  import { A11ySequenceOrderContext } from '../../context/A11ySequenceOrderContext';
4
4
  import A11yOrderNativeComponent from '../../nativeSpecs/A11yOrderNativeComponent';
@@ -1 +1 @@
1
- {"version":3,"names":["React","A11ySequenceOrderContext","A11yOrderNativeComponent","A11yIndexSequence","memo","props","orderKey","useId","createElement","Provider","value","_extends"],"sourceRoot":"../../../../src","sources":["components/A11ySequence/A11ySequence.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,wBAAwB,QAAQ,wCAAwC;AACjF,OAAOC,wBAAwB,MAAM,4CAA4C;AAEjF,OAAO,MAAMC,iBAAiB,gBAAGH,KAAK,CAACI,IAAI,CAAaC,KAAK,IAAK;EAChE,MAAMC,QAAQ,GAAGN,KAAK,CAACO,KAAK,CAAC,CAAC;EAC9B,oBACEP,KAAA,CAAAQ,aAAA,CAACP,wBAAwB,CAACQ,QAAQ;IAACC,KAAK,EAAEJ;EAAS,gBACjDN,KAAA,CAAAQ,aAAA,CAACN,wBAAwB,EAAAS,QAAA,KAAKN,KAAK;IAAEC,QAAQ,EAAEA;EAAS,EAAE,CACzB,CAAC;AAExC,CAAC,CAAC"}
1
+ {"version":3,"names":["React","A11ySequenceOrderContext","A11yOrderNativeComponent","A11yIndexSequence","memo","props","orderKey","useId","createElement","Provider","value","_extends"],"sourceRoot":"../../../../src","sources":["components/A11ySequence/A11ySequence.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,wBAAwB,QAAQ,wCAAwC;AACjF,OAAOC,wBAAwB,MAAM,4CAA4C;AAEjF,OAAO,MAAMC,iBAAiB,gBAAGH,KAAK,CAACI,IAAI,CAAaC,KAAK,IAAK;EAChE,MAAMC,QAAQ,GAAGN,KAAK,CAACO,KAAK,CAAC,CAAC;EAC9B,oBACEP,KAAA,CAAAQ,aAAA,CAACP,wBAAwB,CAACQ,QAAQ;IAACC,KAAK,EAAEJ;EAAS,gBACjDN,KAAA,CAAAQ,aAAA,CAACN,wBAAwB,EAAAS,QAAA,KAAKN,KAAK;IAAEC,QAAQ,EAAEA;EAAS,EAAE,CACzB,CAAC;AAExC,CAAC,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["React","A11ySequenceOrderContext","createContext","undefined"],"sourceRoot":"../../../src","sources":["context/A11ySequenceOrderContext.ts"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,OAAO,MAAMC,wBAAwB,gBAAGD,KAAK,CAACE,aAAa,CACzDC,SACF,CAAC"}
1
+ {"version":3,"names":["React","A11ySequenceOrderContext","createContext","undefined"],"sourceRoot":"../../../src","sources":["context/A11ySequenceOrderContext.ts"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,OAAO,MAAMC,wBAAwB,gBAAGD,KAAK,CAACE,aAAa,CACzDC,SACF,CAAC","ignoreList":[]}
@@ -1,7 +1,6 @@
1
1
  import { A11yIndex } from './components/A11yIndex/A11yIndex';
2
2
  import { A11yIndexSequence } from './components/A11ySequence/A11ySequence';
3
3
  import { A11yGroup } from './components/A11yGroup/A11yGroup';
4
- export { A11yOrder } from './components/A11yOrder/A11yOrder';
5
4
  export const A11y = {
6
5
  Order: A11yIndexSequence,
7
6
  Index: A11yIndex,
@@ -1 +1 @@
1
- {"version":3,"names":["A11yIndex","A11yIndexSequence","A11yGroup","A11yOrder","A11y","Order","Index","Group"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":"AAAA,SAASA,SAAS,QAAQ,kCAAkC;AAC5D,SAASC,iBAAiB,QAAQ,wCAAwC;AAC1E,SAASC,SAAS,QAAQ,kCAAkC;AAE5D,SAASC,SAAS,QAAQ,kCAAkC;AAI5D,OAAO,MAAMC,IAAI,GAAG;EAClBC,KAAK,EAAEJ,iBAAiB;EACxBK,KAAK,EAAEN,SAAS;EAChBO,KAAK,EAAEL;AACT,CAAC"}
1
+ {"version":3,"names":["A11yIndex","A11yIndexSequence","A11yGroup","A11y","Order","Index","Group"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":"AAAA,SAASA,SAAS,QAAQ,kCAAkC;AAC5D,SAASC,iBAAiB,QAAQ,wCAAwC;AAC1E,SAASC,SAAS,QAAQ,kCAAkC;AAI5D,OAAO,MAAMC,IAAI,GAAG;EAClBC,KAAK,EAAEH,iBAAiB;EACxBI,KAAK,EAAEL,SAAS;EAChBM,KAAK,EAAEJ;AACT,CAAC","ignoreList":[]}
@@ -1,45 +1,5 @@
1
- import { createRef } from 'react';
2
1
  import { View } from 'react-native';
3
2
  import { A11yIndex } from './components/A11yIndex/A11yIndex.web';
4
-
5
- /**
6
- * @deprecated The method should not be used
7
- * This API is going to be removed in future releases, you can find migration instruction here: https://github.com/ArturKalach/react-native-a11y-order?tab=readme-ov-file#migration
8
- */
9
- export const useFocusOrder = () => ({
10
- a11yOrder: {
11
- ref: /*#__PURE__*/createRef(),
12
- onLayout: () => {}
13
- },
14
- refs: [],
15
- reset: () => {},
16
- setOrder: () => {}
17
- });
18
-
19
- /**
20
- * @deprecated The method should not be used
21
- * This API is going to be removed in future releases, you can find migration instruction here: https://github.com/ArturKalach/react-native-a11y-order?tab=readme-ov-file#migration
22
- */
23
- export const useDynamicFocusOrder = () => ({
24
- a11yOrder: {
25
- ref: /*#__PURE__*/createRef(),
26
- onLayout: () => {}
27
- },
28
- registerOrder: () => createRef,
29
- reset: () => {},
30
- setOrder: () => {}
31
- });
32
- export const useA11yOrderManager = () => ({
33
- registerOrderRef: () => () => {},
34
- updateRefList: () => {},
35
- reset: () => {},
36
- setOrder: () => {}
37
- });
38
- /**
39
- * @deprecated The method should not be used
40
- * This API is going to be removed in future releases, you can find migration instruction here: https://github.com/ArturKalach/react-native-a11y-order?tab=readme-ov-file#migration
41
- */
42
- export const A11yOrder = View;
43
3
  export const A11y = {
44
4
  Order: View,
45
5
  Group: View,
@@ -1 +1 @@
1
- {"version":3,"names":["createRef","View","A11yIndex","useFocusOrder","a11yOrder","ref","onLayout","refs","reset","setOrder","useDynamicFocusOrder","registerOrder","useA11yOrderManager","registerOrderRef","updateRefList","A11yOrder","A11y","Order","Group","Index"],"sourceRoot":"../../src","sources":["index.web.ts"],"mappings":"AAAA,SAASA,SAAS,QAAQ,OAAO;AACjC,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,SAAS,QAAQ,sCAAsC;;AAEhE;AACA;AACA;AACA;AACA,OAAO,MAAMC,aAAa,GAAGA,CAAA,MAAO;EAClCC,SAAS,EAAE;IACTC,GAAG,eAAEL,SAAS,CAAC,CAAC;IAChBM,QAAQ,EAAEA,CAAA,KAAM,CAAC;EACnB,CAAC;EACDC,IAAI,EAAE,EAAE;EACRC,KAAK,EAAEA,CAAA,KAAM,CAAC,CAAC;EACfC,QAAQ,EAAEA,CAAA,KAAM,CAAC;AACnB,CAAC,CAAC;;AAEF;AACA;AACA;AACA;AACA,OAAO,MAAMC,oBAAoB,GAAGA,CAAA,MAAO;EACzCN,SAAS,EAAE;IACTC,GAAG,eAAEL,SAAS,CAAC,CAAC;IAChBM,QAAQ,EAAEA,CAAA,KAAM,CAAC;EACnB,CAAC;EACDK,aAAa,EAAEA,CAAA,KAAMX,SAAS;EAC9BQ,KAAK,EAAEA,CAAA,KAAM,CAAC,CAAC;EACfC,QAAQ,EAAEA,CAAA,KAAM,CAAC;AACnB,CAAC,CAAC;AAEF,OAAO,MAAMG,mBAAmB,GAAGA,CAAA,MAAO;EACxCC,gBAAgB,EAAEA,CAAA,KAAM,MAAM,CAAC,CAAC;EAChCC,aAAa,EAAEA,CAAA,KAAM,CAAC,CAAC;EACvBN,KAAK,EAAEA,CAAA,KAAM,CAAC,CAAC;EACfC,QAAQ,EAAEA,CAAA,KAAM,CAAC;AACnB,CAAC,CAAC;AAKF;AACA;AACA;AACA;AACA,OAAO,MAAMM,SAAS,GAAGd,IAAI;AAE7B,OAAO,MAAMe,IAAI,GAAG;EAClBC,KAAK,EAAEhB,IAAI;EACXiB,KAAK,EAAEjB,IAAI;EACXkB,KAAK,EAAEjB;AACT,CAAC"}
1
+ {"version":3,"names":["View","A11yIndex","A11y","Order","Group","Index"],"sourceRoot":"../../src","sources":["index.web.ts"],"mappings":"AAAA,SAASA,IAAI,QAAQ,cAAc;AACnC,SAASC,SAAS,QAAQ,sCAAsC;AAIhE,OAAO,MAAMC,IAAI,GAAG;EAClBC,KAAK,EAAEH,IAAI;EACXI,KAAK,EAAEJ,IAAI;EACXK,KAAK,EAAEJ;AACT,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["codegenNativeComponent"],"sourceRoot":"../../../src","sources":["nativeSpecs/A11yGroupNativeComponent.ts"],"mappings":"AACA,OAAOA,sBAAsB,MAAM,yDAAyD;AAI5F,eAAeA,sBAAsB,CACnC,eACF,CAAC"}
1
+ {"version":3,"names":["codegenNativeComponent"],"sourceRoot":"../../../src","sources":["nativeSpecs/A11yGroupNativeComponent.ts"],"mappings":"AACA,OAAOA,sBAAsB,MAAM,yDAAyD;AAI5F,eAAeA,sBAAsB,CACnC,eACF,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["codegenNativeComponent","codegenNativeCommands","Commands","supportedCommands"],"sourceRoot":"../../../src","sources":["nativeSpecs/A11yIndexNativeComponent.ts"],"mappings":"AAGA,OAAOA,sBAAsB,MAAM,yDAAyD;AAC5F,OAAOC,qBAAqB,MAAM,wDAAwD;AAW1F,OAAO,MAAMC,QAAwB,GAAGD,qBAAqB,CAAiB;EAC5EE,iBAAiB,EAAE,CAAC,OAAO;AAC7B,CAAC,CAAC;AAEF,eAAeH,sBAAsB,CACnC,eACF,CAAC"}
1
+ {"version":3,"names":["codegenNativeComponent","codegenNativeCommands","Commands","supportedCommands"],"sourceRoot":"../../../src","sources":["nativeSpecs/A11yIndexNativeComponent.ts"],"mappings":"AAGA,OAAOA,sBAAsB,MAAM,yDAAyD;AAC5F,OAAOC,qBAAqB,MAAM,wDAAwD;AAW1F,OAAO,MAAMC,QAAwB,GAAGD,qBAAqB,CAAiB;EAC5EE,iBAAiB,EAAE,CAAC,OAAO;AAC7B,CAAC,CAAC;AAEF,eAAeH,sBAAsB,CACnC,eACF,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["codegenNativeComponent"],"sourceRoot":"../../../src","sources":["nativeSpecs/A11yOrderNativeComponent.ts"],"mappings":"AACA,OAAOA,sBAAsB,MAAM,yDAAyD;AAM5F,eAAeA,sBAAsB,CACnC,eACF,CAAC"}
1
+ {"version":3,"names":["codegenNativeComponent"],"sourceRoot":"../../../src","sources":["nativeSpecs/A11yOrderNativeComponent.ts"],"mappings":"AACA,OAAOA,sBAAsB,MAAM,yDAAyD;AAM5F,eAAeA,sBAAsB,CACnC,eACF,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/A11yGroup.types.ts"],"mappings":""}
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/A11yGroup.types.ts"],"mappings":"","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/A11yIndex.types.ts"],"mappings":""}
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/A11yIndex.types.ts"],"mappings":"","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/A11yModule.types.ts"],"mappings":""}
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/A11yModule.types.ts"],"mappings":"","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { A11yGroupProps } from '../../types/A11yGroup.types';
3
- export declare const A11yGroup: (props: A11yGroupProps) => JSX.Element;
3
+ export declare const A11yGroup: (props: A11yGroupProps) => React.JSX.Element;
4
4
  //# sourceMappingURL=A11yGroup.android.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"A11yGroup.android.d.ts","sourceRoot":"","sources":["../../../../src/components/A11yGroup/A11yGroup.android.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAE7D,eAAO,MAAM,SAAS,UAAW,cAAc,gBAG9C,CAAC"}
1
+ {"version":3,"file":"A11yGroup.android.d.ts","sourceRoot":"","sources":["../../../../src/components/A11yGroup/A11yGroup.android.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAE7D,eAAO,MAAM,SAAS,UAAW,cAAc,sBAE9C,CAAC"}
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { A11yGroupProps } from '../../types/A11yGroup.types';
3
- export declare const A11yGroup: (props: A11yGroupProps) => JSX.Element;
3
+ export declare const A11yGroup: (props: A11yGroupProps) => React.JSX.Element;
4
4
  //# sourceMappingURL=A11yGroup.ios.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"A11yGroup.ios.d.ts","sourceRoot":"","sources":["../../../../src/components/A11yGroup/A11yGroup.ios.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAE7D,eAAO,MAAM,SAAS,UAAW,cAAc,gBAE9C,CAAC"}
1
+ {"version":3,"file":"A11yGroup.ios.d.ts","sourceRoot":"","sources":["../../../../src/components/A11yGroup/A11yGroup.ios.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAE7D,eAAO,MAAM,SAAS,UAAW,cAAc,sBAE9C,CAAC"}
@@ -1,6 +1,4 @@
1
1
  /// <reference types="react" />
2
- export { A11yOrder } from './components/A11yOrder/A11yOrder';
3
- export type { A11yOrderProps } from './types/A11yOrder.types';
4
2
  export type { IndexCommands } from './types/A11yIndex.types';
5
3
  export declare const A11y: {
6
4
  Order: import("react").NamedExoticComponent<import("react-native").ViewProps>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,YAAY,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,YAAY,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE7D,eAAO,MAAM,IAAI;;;;;;;CAIhB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAIA,YAAY,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE7D,eAAO,MAAM,IAAI;;;;;;;CAIhB,CAAC"}
@@ -1,44 +1,6 @@
1
- import { createRef } from 'react';
1
+ /// <reference types="react" />
2
2
  import { View } from 'react-native';
3
- /**
4
- * @deprecated The method should not be used
5
- * This API is going to be removed in future releases, you can find migration instruction here: https://github.com/ArturKalach/react-native-a11y-order?tab=readme-ov-file#migration
6
- */
7
- export declare const useFocusOrder: () => {
8
- a11yOrder: {
9
- ref: import("react").RefObject<unknown>;
10
- onLayout: () => void;
11
- };
12
- refs: never[];
13
- reset: () => void;
14
- setOrder: () => void;
15
- };
16
- /**
17
- * @deprecated The method should not be used
18
- * This API is going to be removed in future releases, you can find migration instruction here: https://github.com/ArturKalach/react-native-a11y-order?tab=readme-ov-file#migration
19
- */
20
- export declare const useDynamicFocusOrder: () => {
21
- a11yOrder: {
22
- ref: import("react").RefObject<unknown>;
23
- onLayout: () => void;
24
- };
25
- registerOrder: () => typeof createRef;
26
- reset: () => void;
27
- setOrder: () => void;
28
- };
29
- export declare const useA11yOrderManager: () => {
30
- registerOrderRef: () => () => void;
31
- updateRefList: () => void;
32
- reset: () => void;
33
- setOrder: () => void;
34
- };
35
- export type { A11yOrderProps } from './types/A11yOrder.types';
36
3
  export type { IndexCommands } from './types/A11yIndex.types';
37
- /**
38
- * @deprecated The method should not be used
39
- * This API is going to be removed in future releases, you can find migration instruction here: https://github.com/ArturKalach/react-native-a11y-order?tab=readme-ov-file#migration
40
- */
41
- export declare const A11yOrder: typeof View;
42
4
  export declare const A11y: {
43
5
  Order: typeof View;
44
6
  Group: typeof View;
@@ -1 +1 @@
1
- {"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../src/index.web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAGpC;;;GAGG;AACH,eAAO,MAAM,aAAa;;;;;;;;CAQxB,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;CAQ/B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;CAK9B,CAAC;AAEH,YAAY,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,YAAY,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE7D;;;GAGG;AACH,eAAO,MAAM,SAAS,aAAO,CAAC;AAE9B,eAAO,MAAM,IAAI;;;;;;;CAIhB,CAAC"}
1
+ {"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../src/index.web.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAGpC,YAAY,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE7D,eAAO,MAAM,IAAI;;;;;;;CAIhB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-a11y-order",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "description": "ReactNative library for managing screen reader focus ordering",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -167,6 +167,14 @@
167
167
  "codegenConfig": {
168
168
  "name": "RNA11yOrderSpec",
169
169
  "type": "all",
170
- "jsSrcsDir": "src/nativeSpecs"
171
- }
170
+ "jsSrcsDir": "src/nativeSpecs",
171
+ "ios": {
172
+ "componentProvider": {
173
+ "A11yGroupView": "RNAOA11yGroupView",
174
+ "A11yIndexView": "RNAOA11yIndexView",
175
+ "A11yOrderView": "RNAOA11yOrderView"
176
+ }
177
+ }
178
+ },
179
+ "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
172
180
  }
@@ -1,9 +1,8 @@
1
- import React, { useId } from 'react';
1
+ import React from 'react';
2
2
  import { View } from 'react-native';
3
3
 
4
4
  import { A11yGroupProps } from '../../types/A11yGroup.types';
5
5
 
6
6
  export const A11yGroup = (props: A11yGroupProps) => {
7
- const id = useId();
8
- return <View nativeID={id} {...props} />;
7
+ return <View collapsable={false} {...props} />;
9
8
  };
@@ -12,7 +12,7 @@ export const A11yIndex = React.memo(
12
12
  const orderKey = React.useContext(A11ySequenceOrderContext);
13
13
  if (!orderKey) {
14
14
  throw new Error(
15
- 'A11ySequence.Index should be used inside of A11ySequence.Container'
15
+ '<A11y.Index> element should be used inside of <A11y.Order> container'
16
16
  );
17
17
  }
18
18
 
@@ -36,7 +36,7 @@ export const A11yIndex = React.memo(
36
36
  {...props}
37
37
  >
38
38
  {isSingleChild && children}
39
- {!isSingleChild && <View nativeID={orderKey}>{children}</View>}
39
+ {!isSingleChild && <View collapsable={false}>{children}</View>}
40
40
  </A11yIndexView>
41
41
  );
42
42
  }
@@ -4,7 +4,7 @@ import { IndexCommands, A11yIndexProps } from '../../types/A11yIndex.types';
4
4
  import { UIManager } from 'react-native';
5
5
  import { View } from 'react-native';
6
6
 
7
- const WebUiMeneger = UIManager as unknown as {
7
+ const WebUiManager = UIManager as unknown as {
8
8
  focus: (v: View) => void;
9
9
  };
10
10
 
@@ -14,7 +14,7 @@ export const A11yIndex = forwardRef<IndexCommands, A11yIndexProps>(
14
14
  useImperativeHandle(ref, () => ({
15
15
  focus: () => {
16
16
  if (viewRef.current) {
17
- WebUiMeneger.focus(viewRef.current);
17
+ WebUiManager.focus(viewRef.current);
18
18
  }
19
19
  },
20
20
  }));
package/src/index.ts CHANGED
@@ -2,8 +2,6 @@ import { A11yIndex } from './components/A11yIndex/A11yIndex';
2
2
  import { A11yIndexSequence } from './components/A11ySequence/A11ySequence';
3
3
  import { A11yGroup } from './components/A11yGroup/A11yGroup';
4
4
 
5
- export { A11yOrder } from './components/A11yOrder/A11yOrder';
6
- export type { A11yOrderProps } from './types/A11yOrder.types';
7
5
  export type { IndexCommands } from './types/A11yIndex.types';
8
6
 
9
7
  export const A11y = {
package/src/index.web.ts CHANGED
@@ -1,51 +1,8 @@
1
- import { createRef } from 'react';
2
1
  import { View } from 'react-native';
3
2
  import { A11yIndex } from './components/A11yIndex/A11yIndex.web';
4
3
 
5
- /**
6
- * @deprecated The method should not be used
7
- * This API is going to be removed in future releases, you can find migration instruction here: https://github.com/ArturKalach/react-native-a11y-order?tab=readme-ov-file#migration
8
- */
9
- export const useFocusOrder = () => ({
10
- a11yOrder: {
11
- ref: createRef(),
12
- onLayout: () => {},
13
- },
14
- refs: [],
15
- reset: () => {},
16
- setOrder: () => {},
17
- });
18
-
19
- /**
20
- * @deprecated The method should not be used
21
- * This API is going to be removed in future releases, you can find migration instruction here: https://github.com/ArturKalach/react-native-a11y-order?tab=readme-ov-file#migration
22
- */
23
- export const useDynamicFocusOrder = () => ({
24
- a11yOrder: {
25
- ref: createRef(),
26
- onLayout: () => {},
27
- },
28
- registerOrder: () => createRef,
29
- reset: () => {},
30
- setOrder: () => {},
31
- });
32
-
33
- export const useA11yOrderManager = () => ({
34
- registerOrderRef: () => () => {},
35
- updateRefList: () => {},
36
- reset: () => {},
37
- setOrder: () => {},
38
- });
39
-
40
- export type { A11yOrderProps } from './types/A11yOrder.types';
41
4
  export type { IndexCommands } from './types/A11yIndex.types';
42
5
 
43
- /**
44
- * @deprecated The method should not be used
45
- * This API is going to be removed in future releases, you can find migration instruction here: https://github.com/ArturKalach/react-native-a11y-order?tab=readme-ov-file#migration
46
- */
47
- export const A11yOrder = View;
48
-
49
6
  export const A11y = {
50
7
  Order: View,
51
8
  Group: View,
@@ -1,40 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.A11yOrder = void 0;
7
- var _react = _interopRequireWildcard(require("react"));
8
- var _reactNative = require("react-native");
9
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
10
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
11
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
12
- /**
13
- * @deprecated The method should not be used
14
- * This API is going to be removed in future releases, you can find migration instruction here: https://github.com/ArturKalach/react-native-a11y-order?tab=readme-ov-file#migration
15
- */
16
- const A11yOrder = _ref => {
17
- let {
18
- a11yOrder,
19
- onLayout,
20
- ignoreWarn,
21
- ...props
22
- } = _ref;
23
- if (!ignoreWarn) {
24
- console.warn('A11yOrder: This API is going to be removed in future releases, you can find migration instruction here: https://github.com/ArturKalach/react-native-a11y-order?tab=readme-ov-file#migration');
25
- }
26
- const onLayoutHandler = (0, _react.useCallback)(e => {
27
- onLayout === null || onLayout === void 0 ? void 0 : onLayout(e);
28
- a11yOrder.onLayout();
29
- }, [a11yOrder, onLayout]);
30
- const id = (_react.useId === null || _react.useId === void 0 ? void 0 : (0, _react.useId)()) || 'mock_id'; // ToDo: use native component with tag to nativeTag
31
-
32
- return /*#__PURE__*/_react.default.createElement(_reactNative.View, _extends({
33
- nativeID: id
34
- }, props, {
35
- onLayout: onLayoutHandler,
36
- ref: a11yOrder.ref
37
- }));
38
- };
39
- exports.A11yOrder = A11yOrder;
40
- //# sourceMappingURL=A11yOrder.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_extends","assign","bind","target","i","arguments","length","source","apply","A11yOrder","_ref","a11yOrder","onLayout","ignoreWarn","props","console","warn","onLayoutHandler","useCallback","e","id","useId","createElement","View","nativeID","ref","exports"],"sourceRoot":"../../../../src","sources":["components/A11yOrder/A11yOrder.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAAuD,SAAAE,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAJ,wBAAAQ,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,GAAA,IAAAX,GAAA,QAAAW,GAAA,kBAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAd,GAAA,EAAAW,GAAA,SAAAI,IAAA,GAAAR,qBAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAV,GAAA,EAAAW,GAAA,cAAAI,IAAA,KAAAA,IAAA,CAAAV,GAAA,IAAAU,IAAA,CAAAC,GAAA,KAAAR,MAAA,CAAAC,cAAA,CAAAH,MAAA,EAAAK,GAAA,EAAAI,IAAA,YAAAT,MAAA,CAAAK,GAAA,IAAAX,GAAA,CAAAW,GAAA,SAAAL,MAAA,CAAAJ,OAAA,GAAAF,GAAA,MAAAG,KAAA,IAAAA,KAAA,CAAAa,GAAA,CAAAhB,GAAA,EAAAM,MAAA,YAAAA,MAAA;AAAA,SAAAW,SAAA,IAAAA,QAAA,GAAAT,MAAA,CAAAU,MAAA,GAAAV,MAAA,CAAAU,MAAA,CAAAC,IAAA,eAAAC,MAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAF,CAAA,UAAAG,MAAA,GAAAF,SAAA,CAAAD,CAAA,YAAAV,GAAA,IAAAa,MAAA,QAAAhB,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAU,MAAA,EAAAb,GAAA,KAAAS,MAAA,CAAAT,GAAA,IAAAa,MAAA,CAAAb,GAAA,gBAAAS,MAAA,YAAAH,QAAA,CAAAQ,KAAA,OAAAH,SAAA;AAGvD;AACA;AACA;AACA;AACO,MAAMI,SAAmC,GAAGC,IAAA,IAK7C;EAAA,IAL8C;IAClDC,SAAS;IACTC,QAAQ;IACRC,UAAU;IACV,GAAGC;EACL,CAAC,GAAAJ,IAAA;EACC,IAAI,CAACG,UAAU,EAAE;IACfE,OAAO,CAACC,IAAI,CACV,6LACF,CAAC;EACH;EACA,MAAMC,eAAe,GAAG,IAAAC,kBAAW,EAChCC,CAAoB,IAAK;IACxBP,QAAQ,aAARA,QAAQ,uBAARA,QAAQ,CAAGO,CAAC,CAAC;IACbR,SAAS,CAACC,QAAQ,CAAC,CAAC;EACtB,CAAC,EACD,CAACD,SAAS,EAAEC,QAAQ,CACtB,CAAC;EAED,MAAMQ,EAAE,GAAG,CAAAC,YAAK,aAALA,YAAK,uBAAL,IAAAA,YAAK,EAAG,CAAC,KAAI,SAAS,CAAC,CAAC;;EAEnC,oBACE/C,MAAA,CAAAW,OAAA,CAAAqC,aAAA,CAAC7C,YAAA,CAAA8C,IAAI,EAAAvB,QAAA;IACHwB,QAAQ,EAAEJ;EAAG,GACTN,KAAK;IACTF,QAAQ,EAAEK,eAAgB;IAC1BQ,GAAG,EAAEd,SAAS,CAACc;EAAI,EACpB,CAAC;AAEN,CAAC;AAACC,OAAA,CAAAjB,SAAA,GAAAA,SAAA"}
@@ -1,6 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- //# sourceMappingURL=A11yOrder.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/A11yOrder.types.ts"],"mappings":""}
@@ -1,31 +0,0 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
- import React, { useCallback, useId } from 'react';
3
- import { View } from 'react-native';
4
- /**
5
- * @deprecated The method should not be used
6
- * This API is going to be removed in future releases, you can find migration instruction here: https://github.com/ArturKalach/react-native-a11y-order?tab=readme-ov-file#migration
7
- */
8
- export const A11yOrder = _ref => {
9
- let {
10
- a11yOrder,
11
- onLayout,
12
- ignoreWarn,
13
- ...props
14
- } = _ref;
15
- if (!ignoreWarn) {
16
- console.warn('A11yOrder: This API is going to be removed in future releases, you can find migration instruction here: https://github.com/ArturKalach/react-native-a11y-order?tab=readme-ov-file#migration');
17
- }
18
- const onLayoutHandler = useCallback(e => {
19
- onLayout === null || onLayout === void 0 ? void 0 : onLayout(e);
20
- a11yOrder.onLayout();
21
- }, [a11yOrder, onLayout]);
22
- const id = (useId === null || useId === void 0 ? void 0 : useId()) || 'mock_id'; // ToDo: use native component with tag to nativeTag
23
-
24
- return /*#__PURE__*/React.createElement(View, _extends({
25
- nativeID: id
26
- }, props, {
27
- onLayout: onLayoutHandler,
28
- ref: a11yOrder.ref
29
- }));
30
- };
31
- //# sourceMappingURL=A11yOrder.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","useCallback","useId","View","A11yOrder","_ref","a11yOrder","onLayout","ignoreWarn","props","console","warn","onLayoutHandler","e","id","createElement","_extends","nativeID","ref"],"sourceRoot":"../../../../src","sources":["components/A11yOrder/A11yOrder.tsx"],"mappings":";AAAA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,KAAK,QAAQ,OAAO;AACjD,SAASC,IAAI,QAA2B,cAAc;AAGtD;AACA;AACA;AACA;AACA,OAAO,MAAMC,SAAmC,GAAGC,IAAA,IAK7C;EAAA,IAL8C;IAClDC,SAAS;IACTC,QAAQ;IACRC,UAAU;IACV,GAAGC;EACL,CAAC,GAAAJ,IAAA;EACC,IAAI,CAACG,UAAU,EAAE;IACfE,OAAO,CAACC,IAAI,CACV,6LACF,CAAC;EACH;EACA,MAAMC,eAAe,GAAGX,WAAW,CAChCY,CAAoB,IAAK;IACxBN,QAAQ,aAARA,QAAQ,uBAARA,QAAQ,CAAGM,CAAC,CAAC;IACbP,SAAS,CAACC,QAAQ,CAAC,CAAC;EACtB,CAAC,EACD,CAACD,SAAS,EAAEC,QAAQ,CACtB,CAAC;EAED,MAAMO,EAAE,GAAG,CAAAZ,KAAK,aAALA,KAAK,uBAALA,KAAK,CAAG,CAAC,KAAI,SAAS,CAAC,CAAC;;EAEnC,oBACEF,KAAA,CAAAe,aAAA,CAACZ,IAAI,EAAAa,QAAA;IACHC,QAAQ,EAAEH;EAAG,GACTL,KAAK;IACTF,QAAQ,EAAEK,eAAgB;IAC1BM,GAAG,EAAEZ,SAAS,CAACY;EAAI,EACpB,CAAC;AAEN,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=A11yOrder.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/A11yOrder.types.ts"],"mappings":""}
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import type { A11yOrderProps } from '../../types/A11yOrder.types';
3
- /**
4
- * @deprecated The method should not be used
5
- * This API is going to be removed in future releases, you can find migration instruction here: https://github.com/ArturKalach/react-native-a11y-order?tab=readme-ov-file#migration
6
- */
7
- export declare const A11yOrder: React.FC<A11yOrderProps>;
8
- //# sourceMappingURL=A11yOrder.d.ts.map