react-native-a11y-order 0.1.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.
- package/LICENSE +20 -0
- package/README.md +53 -0
- package/android/build.gradle +90 -0
- package/android/gradle.properties +5 -0
- package/android/src/main/AndroidManifest.xml +4 -0
- package/android/src/main/java/com/a11yorder/A11yOrderModule.java +83 -0
- package/android/src/main/java/com/a11yorder/A11yOrderPackage.java +45 -0
- package/android/src/newarch/A11yOrderSpec.java +9 -0
- package/android/src/oldarch/A11yOrderSpec.java +15 -0
- package/ios/A11yOrder-Bridging-Header.h +3 -0
- package/ios/A11yOrder.h +6 -0
- package/ios/A11yOrder.mm +72 -0
- package/ios/A11yOrder.xcodeproj/project.pbxproj +281 -0
- package/ios/A11yOrder.xcodeproj/project.xcworkspace/contents.xcworkspacedata +4 -0
- package/ios/A11yOrder.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/ios/A11yOrder.xcodeproj/project.xcworkspace/xcuserdata/Artur_Kalach.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/A11yOrder.xcodeproj/xcuserdata/Artur_Kalach.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist +40 -0
- package/ios/A11yOrder.xcodeproj/xcuserdata/Artur_Kalach.xcuserdatad/xcschemes/xcschememanagement.plist +14 -0
- package/lib/commonjs/A11yModule/helper.js +21 -0
- package/lib/commonjs/A11yModule/helper.js.map +1 -0
- package/lib/commonjs/A11yModule/index.js +20 -0
- package/lib/commonjs/A11yModule/index.js.map +1 -0
- package/lib/commonjs/A11yModule/module.js +24 -0
- package/lib/commonjs/A11yModule/module.js.map +1 -0
- package/lib/commonjs/components/A11yOrder/A11yOrder.js +32 -0
- package/lib/commonjs/components/A11yOrder/A11yOrder.js.map +1 -0
- package/lib/commonjs/components/A11yOrder/A11yOrder.types.js +6 -0
- package/lib/commonjs/components/A11yOrder/A11yOrder.types.js.map +1 -0
- package/lib/commonjs/components/A11yOrder/index.js +13 -0
- package/lib/commonjs/components/A11yOrder/index.js.map +1 -0
- package/lib/commonjs/components/index.js +13 -0
- package/lib/commonjs/components/index.js.map +1 -0
- package/lib/commonjs/hooks/index.js +27 -0
- package/lib/commonjs/hooks/index.js.map +1 -0
- package/lib/commonjs/hooks/useA11yOrderManager/index.js +13 -0
- package/lib/commonjs/hooks/useA11yOrderManager/index.js.map +1 -0
- package/lib/commonjs/hooks/useA11yOrderManager/useA11yOrderManager.js +66 -0
- package/lib/commonjs/hooks/useA11yOrderManager/useA11yOrderManager.js.map +1 -0
- package/lib/commonjs/hooks/useDynamicFocusOrder/index.js +20 -0
- package/lib/commonjs/hooks/useDynamicFocusOrder/index.js.map +1 -0
- package/lib/commonjs/hooks/useDynamicFocusOrder/useDynamicFocusOrder.js +29 -0
- package/lib/commonjs/hooks/useDynamicFocusOrder/useDynamicFocusOrder.js.map +1 -0
- package/lib/commonjs/hooks/useDynamicFocusOrder/useDynamicFocusOrder.types.js +6 -0
- package/lib/commonjs/hooks/useDynamicFocusOrder/useDynamicFocusOrder.types.js.map +1 -0
- package/lib/commonjs/hooks/useFocusOrder/index.js +13 -0
- package/lib/commonjs/hooks/useFocusOrder/index.js.map +1 -0
- package/lib/commonjs/hooks/useFocusOrder/useFocusOrder.js +25 -0
- package/lib/commonjs/hooks/useFocusOrder/useFocusOrder.js.map +1 -0
- package/lib/commonjs/hooks/useFocusOrder/useFocusOrder.types.js +6 -0
- package/lib/commonjs/hooks/useFocusOrder/useFocusOrder.types.js.map +1 -0
- package/lib/commonjs/index.js +32 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/nativeSpecs/NativeA11yOrder.js +10 -0
- package/lib/commonjs/nativeSpecs/NativeA11yOrder.js.map +1 -0
- package/lib/module/A11yModule/helper.js +14 -0
- package/lib/module/A11yModule/helper.js.map +1 -0
- package/lib/module/A11yModule/index.js +3 -0
- package/lib/module/A11yModule/index.js.map +1 -0
- package/lib/module/A11yModule/module.js +18 -0
- package/lib/module/A11yModule/module.js.map +1 -0
- package/lib/module/components/A11yOrder/A11yOrder.js +23 -0
- package/lib/module/components/A11yOrder/A11yOrder.js.map +1 -0
- package/lib/module/components/A11yOrder/A11yOrder.types.js +2 -0
- package/lib/module/components/A11yOrder/A11yOrder.types.js.map +1 -0
- package/lib/module/components/A11yOrder/index.js +2 -0
- package/lib/module/components/A11yOrder/index.js.map +1 -0
- package/lib/module/components/index.js +2 -0
- package/lib/module/components/index.js.map +1 -0
- package/lib/module/hooks/index.js +4 -0
- package/lib/module/hooks/index.js.map +1 -0
- package/lib/module/hooks/useA11yOrderManager/index.js +2 -0
- package/lib/module/hooks/useA11yOrderManager/index.js.map +1 -0
- package/lib/module/hooks/useA11yOrderManager/useA11yOrderManager.js +58 -0
- package/lib/module/hooks/useA11yOrderManager/useA11yOrderManager.js.map +1 -0
- package/lib/module/hooks/useDynamicFocusOrder/index.js +3 -0
- package/lib/module/hooks/useDynamicFocusOrder/index.js.map +1 -0
- package/lib/module/hooks/useDynamicFocusOrder/useDynamicFocusOrder.js +22 -0
- package/lib/module/hooks/useDynamicFocusOrder/useDynamicFocusOrder.js.map +1 -0
- package/lib/module/hooks/useDynamicFocusOrder/useDynamicFocusOrder.types.js +2 -0
- package/lib/module/hooks/useDynamicFocusOrder/useDynamicFocusOrder.types.js.map +1 -0
- package/lib/module/hooks/useFocusOrder/index.js +2 -0
- package/lib/module/hooks/useFocusOrder/index.js.map +1 -0
- package/lib/module/hooks/useFocusOrder/useFocusOrder.js +18 -0
- package/lib/module/hooks/useFocusOrder/useFocusOrder.js.map +1 -0
- package/lib/module/hooks/useFocusOrder/useFocusOrder.types.js +2 -0
- package/lib/module/hooks/useFocusOrder/useFocusOrder.types.js.map +1 -0
- package/lib/module/index.js +3 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/nativeSpecs/NativeA11yOrder.js +3 -0
- package/lib/module/nativeSpecs/NativeA11yOrder.js.map +1 -0
- package/lib/typescript/A11yModule/helper.d.ts +8 -0
- package/lib/typescript/A11yModule/helper.d.ts.map +1 -0
- package/lib/typescript/A11yModule/index.d.ts +3 -0
- package/lib/typescript/A11yModule/index.d.ts.map +1 -0
- package/lib/typescript/A11yModule/module.d.ts +2 -0
- package/lib/typescript/A11yModule/module.d.ts.map +1 -0
- package/lib/typescript/components/A11yOrder/A11yOrder.d.ts +4 -0
- package/lib/typescript/components/A11yOrder/A11yOrder.d.ts.map +1 -0
- package/lib/typescript/components/A11yOrder/A11yOrder.types.d.ts +9 -0
- package/lib/typescript/components/A11yOrder/A11yOrder.types.d.ts.map +1 -0
- package/lib/typescript/components/A11yOrder/index.d.ts +2 -0
- package/lib/typescript/components/A11yOrder/index.d.ts.map +1 -0
- package/lib/typescript/components/index.d.ts +2 -0
- package/lib/typescript/components/index.d.ts.map +1 -0
- package/lib/typescript/hooks/index.d.ts +4 -0
- package/lib/typescript/hooks/index.d.ts.map +1 -0
- package/lib/typescript/hooks/useA11yOrderManager/index.d.ts +2 -0
- package/lib/typescript/hooks/useA11yOrderManager/index.d.ts.map +1 -0
- package/lib/typescript/hooks/useA11yOrderManager/useA11yOrderManager.d.ts +11 -0
- package/lib/typescript/hooks/useA11yOrderManager/useA11yOrderManager.d.ts.map +1 -0
- package/lib/typescript/hooks/useDynamicFocusOrder/index.d.ts +3 -0
- package/lib/typescript/hooks/useDynamicFocusOrder/index.d.ts.map +1 -0
- package/lib/typescript/hooks/useDynamicFocusOrder/useDynamicFocusOrder.d.ts +5 -0
- package/lib/typescript/hooks/useDynamicFocusOrder/useDynamicFocusOrder.d.ts.map +1 -0
- package/lib/typescript/hooks/useDynamicFocusOrder/useDynamicFocusOrder.types.d.ts +12 -0
- package/lib/typescript/hooks/useDynamicFocusOrder/useDynamicFocusOrder.types.d.ts.map +1 -0
- package/lib/typescript/hooks/useFocusOrder/index.d.ts +2 -0
- package/lib/typescript/hooks/useFocusOrder/index.d.ts.map +1 -0
- package/lib/typescript/hooks/useFocusOrder/useFocusOrder.d.ts +5 -0
- package/lib/typescript/hooks/useFocusOrder/useFocusOrder.d.ts.map +1 -0
- package/lib/typescript/hooks/useFocusOrder/useFocusOrder.types.d.ts +6 -0
- package/lib/typescript/hooks/useFocusOrder/useFocusOrder.types.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +3 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/nativeSpecs/NativeA11yOrder.d.ts +7 -0
- package/lib/typescript/nativeSpecs/NativeA11yOrder.d.ts.map +1 -0
- package/package.json +165 -0
- package/react-native-a11y-order.podspec +35 -0
- package/src/A11yModule/helper.ts +26 -0
- package/src/A11yModule/index.tsx +2 -0
- package/src/A11yModule/module.ts +32 -0
- package/src/components/A11yOrder/A11yOrder.tsx +28 -0
- package/src/components/A11yOrder/A11yOrder.types.ts +8 -0
- package/src/components/A11yOrder/index.ts +1 -0
- package/src/components/index.ts +1 -0
- package/src/hooks/index.ts +3 -0
- package/src/hooks/useA11yOrderManager/index.ts +1 -0
- package/src/hooks/useA11yOrderManager/useA11yOrderManager.ts +78 -0
- package/src/hooks/useDynamicFocusOrder/index.ts +2 -0
- package/src/hooks/useDynamicFocusOrder/useDynamicFocusOrder.ts +30 -0
- package/src/hooks/useDynamicFocusOrder/useDynamicFocusOrder.types.ts +12 -0
- package/src/hooks/useFocusOrder/index.ts +1 -0
- package/src/hooks/useFocusOrder/useFocusOrder.ts +25 -0
- package/src/hooks/useFocusOrder/useFocusOrder.types.ts +9 -0
- package/src/index.ts +7 -0
- package/src/nativeSpecs/NativeA11yOrder.ts +8 -0
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
export const A11yOrder = _ref => {
|
|
5
|
+
let {
|
|
6
|
+
a11yOrder,
|
|
7
|
+
onLayout,
|
|
8
|
+
...props
|
|
9
|
+
} = _ref;
|
|
10
|
+
const onLayoutHandler = useCallback(e => {
|
|
11
|
+
onLayout === null || onLayout === void 0 ? void 0 : onLayout(e);
|
|
12
|
+
a11yOrder.onLayout();
|
|
13
|
+
}, [a11yOrder, onLayout]);
|
|
14
|
+
const id = (useId === null || useId === void 0 ? void 0 : useId()) || 'mock_id'; // ToDo: use native component with tag to nativeTag
|
|
15
|
+
|
|
16
|
+
return /*#__PURE__*/React.createElement(View, _extends({
|
|
17
|
+
nativeID: id
|
|
18
|
+
}, props, {
|
|
19
|
+
onLayout: onLayoutHandler,
|
|
20
|
+
ref: a11yOrder.ref
|
|
21
|
+
}));
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=A11yOrder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useCallback","useId","View","A11yOrder","_ref","a11yOrder","onLayout","props","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,OAAO,MAAMC,SAAmC,GAAGC,IAAA,IAI7C;EAAA,IAJ8C;IAClDC,SAAS;IACTC,QAAQ;IACR,GAAGC;EACL,CAAC,GAAAH,IAAA;EACC,MAAMI,eAAe,GAAGR,WAAW,CAChCS,CAAoB,IAAK;IACxBH,QAAQ,aAARA,QAAQ,uBAARA,QAAQ,CAAGG,CAAC,CAAC;IACbJ,SAAS,CAACC,QAAQ,CAAC,CAAC;EACtB,CAAC,EACD,CAACD,SAAS,EAAEC,QAAQ,CACtB,CAAC;EAED,MAAMI,EAAE,GAAG,CAAAT,KAAK,aAALA,KAAK,uBAALA,KAAK,CAAG,CAAC,KAAI,SAAS,CAAC,CAAC;;EAEnC,oBACEF,KAAA,CAAAY,aAAA,CAACT,IAAI,EAAAU,QAAA;IACHC,QAAQ,EAAEH;EAAG,GACTH,KAAK;IACTD,QAAQ,EAAEE,eAAgB;IAC1BM,GAAG,EAAET,SAAS,CAACS;EAAI,EACpB,CAAC;AAEN,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/A11yOrder/A11yOrder.types.ts"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["A11yOrder"],"sourceRoot":"../../../../src","sources":["components/A11yOrder/index.ts"],"mappings":"AAAA,SAASA,SAAS,QAAQ,aAAa"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["A11yOrder"],"sourceRoot":"../../../src","sources":["components/index.ts"],"mappings":"AAAA,SAASA,SAAS,QAAQ,aAAa"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useA11yOrderManager","useFocusOrder","useDynamicFocusOrder"],"sourceRoot":"../../../src","sources":["hooks/index.ts"],"mappings":"AAAA,SAASA,mBAAmB,QAAQ,uBAAuB;AAC3D,SAASC,aAAa,QAAQ,iBAAiB;AAC/C,SAASC,oBAAoB,QAAQ,wBAAwB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useA11yOrderManager"],"sourceRoot":"../../../../src","sources":["hooks/useA11yOrderManager/index.ts"],"mappings":"AAAA,SAASA,mBAAmB,QAAQ,uBAAuB"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { useRef, useCallback, useMemo } from 'react';
|
|
2
|
+
import { Platform } from 'react-native';
|
|
3
|
+
import { setA11yElementsOrder } from '../../A11yModule';
|
|
4
|
+
export const debounce = function (callback) {
|
|
5
|
+
let timeout = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 100;
|
|
6
|
+
let timer;
|
|
7
|
+
return function () {
|
|
8
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
9
|
+
args[_key] = arguments[_key];
|
|
10
|
+
}
|
|
11
|
+
if (timer) {
|
|
12
|
+
clearTimeout(timer);
|
|
13
|
+
timer = null;
|
|
14
|
+
}
|
|
15
|
+
timer = setTimeout(() => callback(args), timeout);
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
const SECONDS_PER_FRAME = 16;
|
|
19
|
+
const COUNT_OF_FRAMES = 1;
|
|
20
|
+
const DEBOUNCE_DELAY = SECONDS_PER_FRAME * COUNT_OF_FRAMES;
|
|
21
|
+
export const useA11yOrderManager = (orderRef, onlyFor) => {
|
|
22
|
+
const currentRef = useRef([]);
|
|
23
|
+
const registeredRefs = useRef([]);
|
|
24
|
+
const refWasUpdated = useRef(false);
|
|
25
|
+
const setOrder = useCallback(() => {
|
|
26
|
+
if (!onlyFor || onlyFor === Platform.OS) {
|
|
27
|
+
setA11yElementsOrder({
|
|
28
|
+
tag: orderRef,
|
|
29
|
+
views: registeredRefs.current
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
}, [onlyFor, orderRef]);
|
|
33
|
+
const debounceOrder = useMemo(() => debounce(setOrder, DEBOUNCE_DELAY), [setOrder]);
|
|
34
|
+
const registerOrderRef = useCallback(order => ref => {
|
|
35
|
+
refWasUpdated.current = true;
|
|
36
|
+
registeredRefs.current[order] = ref;
|
|
37
|
+
}, []);
|
|
38
|
+
const updateRefList = useCallback(() => {
|
|
39
|
+
if (!refWasUpdated.current) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
refWasUpdated.current = false;
|
|
43
|
+
currentRef.current = registeredRefs.current.filter(v => v);
|
|
44
|
+
debounceOrder();
|
|
45
|
+
}, [debounceOrder]);
|
|
46
|
+
const reset = useCallback(() => {
|
|
47
|
+
currentRef.current = [];
|
|
48
|
+
registeredRefs.current = [];
|
|
49
|
+
refWasUpdated.current = false;
|
|
50
|
+
}, []);
|
|
51
|
+
return {
|
|
52
|
+
registerOrderRef,
|
|
53
|
+
updateRefList,
|
|
54
|
+
reset,
|
|
55
|
+
setOrder
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
//# sourceMappingURL=useA11yOrderManager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useRef","useCallback","useMemo","Platform","setA11yElementsOrder","debounce","callback","timeout","arguments","length","undefined","timer","_len","args","Array","_key","clearTimeout","setTimeout","SECONDS_PER_FRAME","COUNT_OF_FRAMES","DEBOUNCE_DELAY","useA11yOrderManager","orderRef","onlyFor","currentRef","registeredRefs","refWasUpdated","setOrder","OS","tag","views","current","debounceOrder","registerOrderRef","order","ref","updateRefList","filter","v","reset"],"sourceRoot":"../../../../src","sources":["hooks/useA11yOrderManager/useA11yOrderManager.ts"],"mappings":"AAAA,SAASA,MAAM,EAAEC,WAAW,EAAaC,OAAO,QAAQ,OAAO;AAC/D,SAASC,QAAQ,QAAQ,cAAc;AAEvC,SAASC,oBAAoB,QAAQ,kBAAkB;AAEvD,OAAO,MAAMC,QAAQ,GAAG,SAAAA,CAAqBC,QAAW,EAAoB;EAAA,IAAlBC,OAAO,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,GAAG;EACrE,IAAIG,KAA4B;EAEhC,OAAO,YAAkB;IAAA,SAAAC,IAAA,GAAAJ,SAAA,CAAAC,MAAA,EAAdI,IAAI,OAAAC,KAAA,CAAAF,IAAA,GAAAG,IAAA,MAAAA,IAAA,GAAAH,IAAA,EAAAG,IAAA;MAAJF,IAAI,CAAAE,IAAA,IAAAP,SAAA,CAAAO,IAAA;IAAA;IACb,IAAIJ,KAAK,EAAE;MACTK,YAAY,CAACL,KAAK,CAAC;MACnBA,KAAK,GAAG,IAAI;IACd;IACAA,KAAK,GAAGM,UAAU,CAAC,MAAMX,QAAQ,CAACO,IAAI,CAAC,EAAEN,OAAO,CAAC;EACnD,CAAC;AACH,CAAC;AAED,MAAMW,iBAAiB,GAAG,EAAE;AAC5B,MAAMC,eAAe,GAAG,CAAC;AAEzB,MAAMC,cAAc,GAAGF,iBAAiB,GAAGC,eAAe;AAE1D,OAAO,MAAME,mBAAmB,GAAGA,CACjCC,QAAyB,EACzBC,OAAwB,KACrB;EACH,MAAMC,UAAU,GAAGxB,MAAM,CAAe,EAAE,CAAC;EAC3C,MAAMyB,cAAc,GAAGzB,MAAM,CAAe,EAAE,CAAC;EAE/C,MAAM0B,aAAa,GAAG1B,MAAM,CAAU,KAAK,CAAC;EAE5C,MAAM2B,QAAQ,GAAG1B,WAAW,CAAC,MAAM;IACjC,IAAI,CAACsB,OAAO,IAAIA,OAAO,KAAKpB,QAAQ,CAACyB,EAAE,EAAE;MACvCxB,oBAAoB,CAAC;QACnByB,GAAG,EAAEP,QAAQ;QACbQ,KAAK,EAAEL,cAAc,CAACM;MACxB,CAAC,CAAC;IACJ;EACF,CAAC,EAAE,CAACR,OAAO,EAAED,QAAQ,CAAC,CAAC;EAEvB,MAAMU,aAAa,GAAG9B,OAAO,CAC3B,MAAMG,QAAQ,CAACsB,QAAQ,EAAEP,cAAc,CAAC,EACxC,CAACO,QAAQ,CACX,CAAC;EAED,MAAMM,gBAAgB,GAAGhC,WAAW,CACjCiC,KAAa,IACXC,GAAa,IAAW;IACvBT,aAAa,CAACK,OAAO,GAAG,IAAI;IAC5BN,cAAc,CAACM,OAAO,CAACG,KAAK,CAAC,GAAGC,GAAG;EACrC,CAAC,EACH,EACF,CAAC;EAED,MAAMC,aAAa,GAAGnC,WAAW,CAAC,MAAM;IACtC,IAAI,CAACyB,aAAa,CAACK,OAAO,EAAE;MAC1B;IACF;IAEAL,aAAa,CAACK,OAAO,GAAG,KAAK;IAC7BP,UAAU,CAACO,OAAO,GAAGN,cAAc,CAACM,OAAO,CAACM,MAAM,CAAEC,CAAC,IAAKA,CAAC,CAAC;IAE5DN,aAAa,CAAC,CAAC;EACjB,CAAC,EAAE,CAACA,aAAa,CAAC,CAAC;EAEnB,MAAMO,KAAK,GAAGtC,WAAW,CAAC,MAAM;IAC9BuB,UAAU,CAACO,OAAO,GAAG,EAAE;IACvBN,cAAc,CAACM,OAAO,GAAG,EAAE;IAC3BL,aAAa,CAACK,OAAO,GAAG,KAAK;EAC/B,CAAC,EAAE,EAAE,CAAC;EAEN,OAAO;IACLE,gBAAgB;IAChBG,aAAa;IACbG,KAAK;IACLZ;EACF,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useDynamicFocusOrder","UseDynamicFocusOrder"],"sourceRoot":"../../../../src","sources":["hooks/useDynamicFocusOrder/index.ts"],"mappings":"AAAA,SAASA,oBAAoB,QAAQ,wBAAwB;AAC7D,SAASC,oBAAoB,QAAQ,8BAA8B"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { useRef, useLayoutEffect } from 'react';
|
|
2
|
+
import { useA11yOrderManager } from '../useA11yOrderManager';
|
|
3
|
+
export const useDynamicFocusOrder = onlyFor => {
|
|
4
|
+
const a11yOrderRef = useRef(null);
|
|
5
|
+
const {
|
|
6
|
+
registerOrderRef: registerOrder,
|
|
7
|
+
updateRefList,
|
|
8
|
+
reset,
|
|
9
|
+
setOrder
|
|
10
|
+
} = useA11yOrderManager(a11yOrderRef, onlyFor);
|
|
11
|
+
useLayoutEffect(updateRefList);
|
|
12
|
+
return {
|
|
13
|
+
a11yOrder: {
|
|
14
|
+
ref: a11yOrderRef,
|
|
15
|
+
onLayout: updateRefList
|
|
16
|
+
},
|
|
17
|
+
registerOrder,
|
|
18
|
+
reset,
|
|
19
|
+
setOrder
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=useDynamicFocusOrder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useRef","useLayoutEffect","useA11yOrderManager","useDynamicFocusOrder","onlyFor","a11yOrderRef","registerOrderRef","registerOrder","updateRefList","reset","setOrder","a11yOrder","ref","onLayout"],"sourceRoot":"../../../../src","sources":["hooks/useDynamicFocusOrder/useDynamicFocusOrder.ts"],"mappings":"AAAA,SAASA,MAAM,EAAEC,eAAe,QAAQ,OAAO;AAG/C,SAASC,mBAAmB,QAAQ,wBAAwB;AAG5D,OAAO,MAAMC,oBAAoB,GAC/BC,OAAwB,IACI;EAC5B,MAAMC,YAAY,GAAGL,MAAM,CAAO,IAAI,CAAC;EAEvC,MAAM;IACJM,gBAAgB,EAAEC,aAAa;IAC/BC,aAAa;IACbC,KAAK;IACLC;EACF,CAAC,GAAGR,mBAAmB,CAACG,YAAY,EAAED,OAAO,CAAC;EAE9CH,eAAe,CAACO,aAAa,CAAC;EAE9B,OAAO;IACLG,SAAS,EAAE;MACTC,GAAG,EAAEP,YAAY;MACjBQ,QAAQ,EAAEL;IACZ,CAAC;IACDD,aAAa;IACbE,KAAK;IACLC;EACF,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["hooks/useDynamicFocusOrder/useDynamicFocusOrder.types.ts"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useFocusOrder"],"sourceRoot":"../../../../src","sources":["hooks/useFocusOrder/index.ts"],"mappings":"AAAA,SAASA,aAAa,QAAQ,iBAAiB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { useRef } from 'react';
|
|
2
|
+
import { useDynamicFocusOrder } from '../useDynamicFocusOrder';
|
|
3
|
+
export const useFocusOrder = (size, onlyFor) => {
|
|
4
|
+
const {
|
|
5
|
+
a11yOrder,
|
|
6
|
+
registerOrder,
|
|
7
|
+
reset,
|
|
8
|
+
setOrder
|
|
9
|
+
} = useDynamicFocusOrder(onlyFor);
|
|
10
|
+
const refs = useRef(Array(size).fill(null).map((_, i) => registerOrder(i))).current;
|
|
11
|
+
return {
|
|
12
|
+
a11yOrder,
|
|
13
|
+
refs,
|
|
14
|
+
reset,
|
|
15
|
+
setOrder
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=useFocusOrder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useRef","useDynamicFocusOrder","useFocusOrder","size","onlyFor","a11yOrder","registerOrder","reset","setOrder","refs","Array","fill","map","_","i","current"],"sourceRoot":"../../../../src","sources":["hooks/useFocusOrder/useFocusOrder.ts"],"mappings":"AAAA,SAASA,MAAM,QAAQ,OAAO;AAE9B,SAASC,oBAAoB,QAAQ,yBAAyB;AAG9D,OAAO,MAAMC,aAAa,GAAGA,CAC3BC,IAAY,EACZC,OAAwB,KACF;EACtB,MAAM;IAAEC,SAAS;IAAEC,aAAa;IAAEC,KAAK;IAAEC;EAAS,CAAC,GACjDP,oBAAoB,CAACG,OAAO,CAAC;EAE/B,MAAMK,IAAI,GAAGT,MAAM,CACjBU,KAAK,CAACP,IAAI,CAAC,CACRQ,IAAI,CAAC,IAAI,CAAC,CACVC,GAAG,CAAC,CAACC,CAAC,EAAEC,CAAC,KAAKR,aAAa,CAACQ,CAAC,CAAC,CACnC,CAAC,CAACC,OAAO;EAET,OAAO;IACLV,SAAS;IACTI,IAAI;IACJF,KAAK;IACLC;EACF,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["hooks/useFocusOrder/useFocusOrder.types.ts"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useFocusOrder","useDynamicFocusOrder","useA11yOrderManager","A11yOrder"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":"AAAA,SACEA,aAAa,EACbC,oBAAoB,EACpBC,mBAAmB,QACd,SAAS;AAEhB,SAASC,SAAS,QAAQ,cAAc"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../../src","sources":["nativeSpecs/NativeA11yOrder.ts"],"mappings":"AACA,SAASA,mBAAmB,QAAQ,cAAc;AAMlD,eAAeA,mBAAmB,CAACC,YAAY,CAAO,WAAW,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { RefObject } from 'react';
|
|
2
|
+
import type { View } from 'react-native';
|
|
3
|
+
export type A11yOrderInfo<T> = {
|
|
4
|
+
tag?: RefObject<View>;
|
|
5
|
+
views: (T | null)[];
|
|
6
|
+
};
|
|
7
|
+
export declare const setA11yElementsOrder: <T extends import("react").Component<{}, {}, any>>({ tag, views, }: A11yOrderInfo<T>) => void;
|
|
8
|
+
//# sourceMappingURL=helper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../../src/A11yModule/helper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAKzC,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI;IAC7B,GAAG,CAAC,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC;IACtB,KAAK,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,oBAAoB,+FAchC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/A11yModule/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../src/A11yModule/module.ts"],"names":[],"mappings":"AA0BA,wBAAgB,YAAY,CAC1B,IAAI,EAAE,MAAM,EAAE,EACd,UAAU,CAAC,EAAE,MAAM,GAClB,OAAO,CAAC,MAAM,CAAC,CAEjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"A11yOrder.d.ts","sourceRoot":"","sources":["../../../../src/components/A11yOrder/A11yOrder.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAElD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAuB9C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"A11yOrder.types.d.ts","sourceRoot":"","sources":["../../../../src/components/A11yOrder/A11yOrder.types.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpD,MAAM,MAAM,cAAc,GAAG;IAC3B,SAAS,EAAE;QACT,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QAC3B,QAAQ,EAAE,MAAM,IAAI,CAAC;KACtB,CAAC;CACH,GAAG,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/A11yOrder/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useA11yOrderManager/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
import { Platform } from 'react-native';
|
|
3
|
+
import type { View } from 'react-native';
|
|
4
|
+
export declare const debounce: <T extends Function>(callback: T, timeout?: number) => (...args: any) => void;
|
|
5
|
+
export declare const useA11yOrderManager: <T extends import("react").Component<{}, {}, any>>(orderRef: RefObject<View>, onlyFor?: Platform['OS']) => {
|
|
6
|
+
registerOrderRef: (order: number) => (ref: T | null) => void;
|
|
7
|
+
updateRefList: () => void;
|
|
8
|
+
reset: () => void;
|
|
9
|
+
setOrder: () => void;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=useA11yOrderManager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useA11yOrderManager.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useA11yOrderManager/useA11yOrderManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,SAAS,EAAW,MAAM,OAAO,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAGzC,eAAO,MAAM,QAAQ,mEAGF,GAAG,SAOrB,CAAC;AAOF,eAAO,MAAM,mBAAmB,+DACpB,UAAU,IAAI,CAAC,YACf,QAAQ,CAAC,IAAI,CAAC;8BAsBd,MAAM,wBACK,IAAI;;;;CA8B1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useDynamicFocusOrder/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { Platform } from 'react-native';
|
|
3
|
+
import type { UseDynamicFocusOrder } from './useDynamicFocusOrder.types';
|
|
4
|
+
export declare const useDynamicFocusOrder: <T extends import("react").Component<{}, {}, any>>(onlyFor?: Platform['OS']) => UseDynamicFocusOrder<T>;
|
|
5
|
+
//# sourceMappingURL=useDynamicFocusOrder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDynamicFocusOrder.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useDynamicFocusOrder/useDynamicFocusOrder.ts"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGnD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAEzE,eAAO,MAAM,oBAAoB,+DACrB,QAAQ,CAAC,IAAI,CAAC,4BAsBzB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { RefObject, RefCallback } from 'react';
|
|
2
|
+
import type { View } from 'react-native';
|
|
3
|
+
export type UseDynamicFocusOrder<T extends React.Component> = {
|
|
4
|
+
a11yOrder: {
|
|
5
|
+
ref: RefObject<View>;
|
|
6
|
+
onLayout: () => void;
|
|
7
|
+
};
|
|
8
|
+
registerOrder: (order: number) => RefCallback<T>;
|
|
9
|
+
reset: () => void;
|
|
10
|
+
setOrder: () => void;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=useDynamicFocusOrder.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDynamicFocusOrder.types.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useDynamicFocusOrder/useDynamicFocusOrder.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEzC,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,KAAK,CAAC,SAAS,IAAI;IAC5D,SAAS,EAAE;QACT,GAAG,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC;QACrB,QAAQ,EAAE,MAAM,IAAI,CAAC;KACtB,CAAC;IACF,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,CAAC;IACjD,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useFocusOrder/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { Platform } from 'react-native';
|
|
3
|
+
import type { FocusOrderInfo } from './useFocusOrder.types';
|
|
4
|
+
export declare const useFocusOrder: <T extends import("react").Component<{}, {}, any>>(size: number, onlyFor?: Platform['OS']) => FocusOrderInfo<T>;
|
|
5
|
+
//# sourceMappingURL=useFocusOrder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFocusOrder.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useFocusOrder/useFocusOrder.ts"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE7C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAE5D,eAAO,MAAM,aAAa,2DAClB,MAAM,YACF,QAAQ,CAAC,IAAI,CAAC,sBAiBzB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { RefCallback } from 'react';
|
|
2
|
+
import type { UseDynamicFocusOrder } from '../useDynamicFocusOrder';
|
|
3
|
+
export type FocusOrderInfo<T extends React.Component> = Pick<UseDynamicFocusOrder<T>, 'a11yOrder' | 'reset' | 'setOrder'> & {
|
|
4
|
+
refs: RefCallback<T>[];
|
|
5
|
+
};
|
|
6
|
+
//# sourceMappingURL=useFocusOrder.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFocusOrder.types.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useFocusOrder/useFocusOrder.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAEpE,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,KAAK,CAAC,SAAS,IAAI,IAAI,CAC1D,oBAAoB,CAAC,CAAC,CAAC,EACvB,WAAW,GAAG,OAAO,GAAG,UAAU,CACnC,GAAG;IACF,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC;CACxB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NativeA11yOrder.d.ts","sourceRoot":"","sources":["../../../src/nativeSpecs/NativeA11yOrder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,SAAS,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5D;;AAED,wBAAmE"}
|
package/package.json
ADDED
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "react-native-a11y-order",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "test",
|
|
5
|
+
"main": "lib/commonjs/index",
|
|
6
|
+
"module": "lib/module/index",
|
|
7
|
+
"types": "lib/typescript/index.d.ts",
|
|
8
|
+
"react-native": "src/index",
|
|
9
|
+
"source": "src/index",
|
|
10
|
+
"files": [
|
|
11
|
+
"src",
|
|
12
|
+
"lib",
|
|
13
|
+
"android",
|
|
14
|
+
"ios",
|
|
15
|
+
"cpp",
|
|
16
|
+
"*.podspec",
|
|
17
|
+
"!lib/typescript/example",
|
|
18
|
+
"!ios/build",
|
|
19
|
+
"!android/build",
|
|
20
|
+
"!android/gradle",
|
|
21
|
+
"!android/gradlew",
|
|
22
|
+
"!android/gradlew.bat",
|
|
23
|
+
"!android/local.properties",
|
|
24
|
+
"!**/__tests__",
|
|
25
|
+
"!**/__fixtures__",
|
|
26
|
+
"!**/__mocks__",
|
|
27
|
+
"!**/.*"
|
|
28
|
+
],
|
|
29
|
+
"scripts": {
|
|
30
|
+
"test": "jest",
|
|
31
|
+
"typecheck": "tsc --noEmit",
|
|
32
|
+
"lint": "eslint \"**/*.{js,ts,tsx}\"",
|
|
33
|
+
"prepack": "bob build",
|
|
34
|
+
"release": "release-it",
|
|
35
|
+
"example": "yarn --cwd example",
|
|
36
|
+
"bootstrap": "yarn example && yarn install && yarn example pods",
|
|
37
|
+
"clean": "del-cli android/build example/android/build example/android/app/build example/ios/build"
|
|
38
|
+
},
|
|
39
|
+
"keywords": [
|
|
40
|
+
"react-native",
|
|
41
|
+
"ios",
|
|
42
|
+
"android"
|
|
43
|
+
],
|
|
44
|
+
"repository": "https://github.com/ArturKalach/react-native-a11y-order",
|
|
45
|
+
"author": "Artur Kalach <artur.kalach.andreevich@gmail.com> (https://github.com/ArturKalach)",
|
|
46
|
+
"license": "MIT",
|
|
47
|
+
"bugs": {
|
|
48
|
+
"url": "https://github.com/ArturKalach/react-native-a11y-order/issues"
|
|
49
|
+
},
|
|
50
|
+
"homepage": "https://github.com/ArturKalach/react-native-a11y-order#readme",
|
|
51
|
+
"publishConfig": {
|
|
52
|
+
"registry": "https://registry.npmjs.org/"
|
|
53
|
+
},
|
|
54
|
+
"devDependencies": {
|
|
55
|
+
"@evilmartians/lefthook": "^1.2.2",
|
|
56
|
+
"@commitlint/config-conventional": "^17.0.2",
|
|
57
|
+
"@react-native-community/eslint-config": "^3.0.2",
|
|
58
|
+
"@release-it/conventional-changelog": "^5.0.0",
|
|
59
|
+
"@types/jest": "^28.1.2",
|
|
60
|
+
"@types/react": "~17.0.21",
|
|
61
|
+
"@types/react-native": "0.70.0",
|
|
62
|
+
"commitlint": "^17.0.2",
|
|
63
|
+
"del-cli": "^5.0.0",
|
|
64
|
+
"eslint": "^8.4.1",
|
|
65
|
+
"eslint-config-prettier": "^8.5.0",
|
|
66
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
67
|
+
"jest": "^28.1.1",
|
|
68
|
+
"pod-install": "^0.1.0",
|
|
69
|
+
"prettier": "^2.0.5",
|
|
70
|
+
"react": "18.2.0",
|
|
71
|
+
"react-native": "0.71.8",
|
|
72
|
+
"react-native-builder-bob": "^0.20.0",
|
|
73
|
+
"release-it": "^15.0.0",
|
|
74
|
+
"typescript": "^4.5.2"
|
|
75
|
+
},
|
|
76
|
+
"resolutions": {
|
|
77
|
+
"@types/react": "17.0.21"
|
|
78
|
+
},
|
|
79
|
+
"peerDependencies": {
|
|
80
|
+
"react": "*",
|
|
81
|
+
"react-native": "*"
|
|
82
|
+
},
|
|
83
|
+
"engines": {
|
|
84
|
+
"node": ">= 16.0.0"
|
|
85
|
+
},
|
|
86
|
+
"packageManager": "^yarn@1.22.15",
|
|
87
|
+
"jest": {
|
|
88
|
+
"preset": "react-native",
|
|
89
|
+
"modulePathIgnorePatterns": [
|
|
90
|
+
"<rootDir>/example/node_modules",
|
|
91
|
+
"<rootDir>/lib/"
|
|
92
|
+
]
|
|
93
|
+
},
|
|
94
|
+
"commitlint": {
|
|
95
|
+
"extends": [
|
|
96
|
+
"@commitlint/config-conventional"
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
"release-it": {
|
|
100
|
+
"git": {
|
|
101
|
+
"commitMessage": "chore: release ${version}",
|
|
102
|
+
"tagName": "v${version}"
|
|
103
|
+
},
|
|
104
|
+
"npm": {
|
|
105
|
+
"publish": true
|
|
106
|
+
},
|
|
107
|
+
"github": {
|
|
108
|
+
"release": true
|
|
109
|
+
},
|
|
110
|
+
"plugins": {
|
|
111
|
+
"@release-it/conventional-changelog": {
|
|
112
|
+
"preset": "angular"
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"eslintConfig": {
|
|
117
|
+
"root": true,
|
|
118
|
+
"extends": [
|
|
119
|
+
"@react-native-community",
|
|
120
|
+
"prettier"
|
|
121
|
+
],
|
|
122
|
+
"rules": {
|
|
123
|
+
"prettier/prettier": [
|
|
124
|
+
"error",
|
|
125
|
+
{
|
|
126
|
+
"quoteProps": "consistent",
|
|
127
|
+
"singleQuote": true,
|
|
128
|
+
"tabWidth": 2,
|
|
129
|
+
"trailingComma": "es5",
|
|
130
|
+
"useTabs": false
|
|
131
|
+
}
|
|
132
|
+
]
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"eslintIgnore": [
|
|
136
|
+
"node_modules/",
|
|
137
|
+
"lib/"
|
|
138
|
+
],
|
|
139
|
+
"prettier": {
|
|
140
|
+
"quoteProps": "consistent",
|
|
141
|
+
"singleQuote": true,
|
|
142
|
+
"tabWidth": 2,
|
|
143
|
+
"trailingComma": "es5",
|
|
144
|
+
"useTabs": false
|
|
145
|
+
},
|
|
146
|
+
"react-native-builder-bob": {
|
|
147
|
+
"source": "src",
|
|
148
|
+
"output": "lib",
|
|
149
|
+
"targets": [
|
|
150
|
+
"commonjs",
|
|
151
|
+
"module",
|
|
152
|
+
[
|
|
153
|
+
"typescript",
|
|
154
|
+
{
|
|
155
|
+
"project": "tsconfig.build.json"
|
|
156
|
+
}
|
|
157
|
+
]
|
|
158
|
+
]
|
|
159
|
+
},
|
|
160
|
+
"codegenConfig": {
|
|
161
|
+
"name": "RNA11yOrderSpec",
|
|
162
|
+
"type": "modules",
|
|
163
|
+
"jsSrcsDir": "src/nativeSpecs"
|
|
164
|
+
}
|
|
165
|
+
}
|