react-native-a11y-order 0.2.2 → 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.
- package/README.md +50 -70
- package/android/src/main/java/com/a11yorder/A11yOrderPackage.java +21 -45
- package/ios/A11yOrder.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- package/ios/A11yOrder.xcodeproj/project.xcworkspace/xcuserdata/Artur_Kalach.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/A11yOrder.xcodeproj/xcuserdata/Artur_Kalach.xcuserdatad/xcschemes/xcschememanagement.plist +14 -0
- package/lib/commonjs/components/A11yGroup/A11yGroup.android.js +4 -6
- package/lib/commonjs/components/A11yGroup/A11yGroup.android.js.map +1 -1
- package/lib/commonjs/components/A11yGroup/A11yGroup.ios.js +1 -1
- package/lib/commonjs/components/A11yGroup/A11yGroup.ios.js.map +1 -1
- package/lib/commonjs/components/A11yGroup/A11yGroup.js +1 -2
- package/lib/commonjs/components/A11yGroup/A11yGroup.js.map +1 -1
- package/lib/commonjs/components/A11yIndex/A11yIndex.js +9 -12
- package/lib/commonjs/components/A11yIndex/A11yIndex.js.map +1 -1
- package/lib/commonjs/components/A11yIndex/A11yIndex.web.js +5 -7
- package/lib/commonjs/components/A11yIndex/A11yIndex.web.js.map +1 -1
- package/lib/commonjs/components/A11ySequence/A11ySequence.js +3 -4
- package/lib/commonjs/components/A11ySequence/A11ySequence.js.map +1 -1
- package/lib/commonjs/context/A11ySequenceOrderContext.js +2 -3
- package/lib/commonjs/context/A11ySequenceOrderContext.js.map +1 -1
- package/lib/commonjs/index.js +1 -28
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/index.web.js +2 -46
- package/lib/commonjs/index.web.js.map +1 -1
- package/lib/commonjs/nativeSpecs/A11yGroupNativeComponent.js +2 -3
- package/lib/commonjs/nativeSpecs/A11yGroupNativeComponent.js.map +1 -1
- package/lib/commonjs/nativeSpecs/A11yIndexNativeComponent.js +3 -5
- package/lib/commonjs/nativeSpecs/A11yIndexNativeComponent.js.map +1 -1
- package/lib/commonjs/nativeSpecs/A11yOrderNativeComponent.js +2 -3
- package/lib/commonjs/nativeSpecs/A11yOrderNativeComponent.js.map +1 -1
- package/lib/commonjs/types/A11yGroup.types.js.map +1 -1
- package/lib/commonjs/types/A11yIndex.types.js.map +1 -1
- package/lib/commonjs/types/A11yModule.types.js.map +1 -1
- package/lib/module/components/A11yGroup/A11yGroup.android.js +3 -4
- package/lib/module/components/A11yGroup/A11yGroup.android.js.map +1 -1
- package/lib/module/components/A11yGroup/A11yGroup.ios.js.map +1 -1
- package/lib/module/components/A11yGroup/A11yGroup.js.map +1 -1
- package/lib/module/components/A11yIndex/A11yIndex.js +8 -9
- package/lib/module/components/A11yIndex/A11yIndex.js.map +1 -1
- package/lib/module/components/A11yIndex/A11yIndex.web.js +3 -3
- package/lib/module/components/A11yIndex/A11yIndex.web.js.map +1 -1
- package/lib/module/components/A11ySequence/A11ySequence.js +1 -1
- package/lib/module/components/A11ySequence/A11ySequence.js.map +1 -1
- package/lib/module/context/A11ySequenceOrderContext.js.map +1 -1
- package/lib/module/index.js +0 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/index.web.js +0 -40
- package/lib/module/index.web.js.map +1 -1
- package/lib/module/nativeSpecs/A11yGroupNativeComponent.js.map +1 -1
- package/lib/module/nativeSpecs/A11yIndexNativeComponent.js.map +1 -1
- package/lib/module/nativeSpecs/A11yOrderNativeComponent.js.map +1 -1
- package/lib/module/types/A11yGroup.types.js.map +1 -1
- package/lib/module/types/A11yIndex.types.js.map +1 -1
- package/lib/module/types/A11yModule.types.js.map +1 -1
- package/lib/typescript/components/A11yGroup/A11yGroup.android.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +0 -3
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/index.web.d.ts +1 -39
- package/lib/typescript/index.web.d.ts.map +1 -1
- package/package.json +12 -4
- package/src/components/A11yGroup/A11yGroup.android.tsx +2 -3
- package/src/components/A11yIndex/A11yIndex.tsx +2 -2
- package/src/components/A11yIndex/A11yIndex.web.tsx +2 -2
- package/src/index.ts +0 -8
- package/src/index.web.ts +0 -43
- package/android/src/main/java/com/a11yorder/A11yOrderModule.java +0 -84
- package/android/src/newarch/A11yOrderSpec.java +0 -9
- package/android/src/oldarch/A11yOrderSpec.java +0 -15
- package/ios/A11yOrder.h +0 -6
- package/ios/A11yOrder.mm +0 -72
- package/lib/commonjs/A11yModule/helper.js +0 -21
- package/lib/commonjs/A11yModule/helper.js.map +0 -1
- package/lib/commonjs/A11yModule/index.js +0 -20
- package/lib/commonjs/A11yModule/index.js.map +0 -1
- package/lib/commonjs/A11yModule/module.js +0 -24
- package/lib/commonjs/A11yModule/module.js.map +0 -1
- package/lib/commonjs/components/A11yOrder/A11yOrder.js +0 -40
- package/lib/commonjs/components/A11yOrder/A11yOrder.js.map +0 -1
- package/lib/commonjs/hooks/index.js +0 -27
- package/lib/commonjs/hooks/index.js.map +0 -1
- package/lib/commonjs/hooks/useA11yOrderManager/index.js +0 -13
- package/lib/commonjs/hooks/useA11yOrderManager/index.js.map +0 -1
- package/lib/commonjs/hooks/useA11yOrderManager/useA11yOrderManager.js +0 -74
- package/lib/commonjs/hooks/useA11yOrderManager/useA11yOrderManager.js.map +0 -1
- package/lib/commonjs/hooks/useDynamicFocusOrder/index.js +0 -20
- package/lib/commonjs/hooks/useDynamicFocusOrder/index.js.map +0 -1
- package/lib/commonjs/hooks/useDynamicFocusOrder/useDynamicFocusOrder.js +0 -36
- package/lib/commonjs/hooks/useDynamicFocusOrder/useDynamicFocusOrder.js.map +0 -1
- package/lib/commonjs/hooks/useDynamicFocusOrder/useDynamicFocusOrder.types.js +0 -6
- package/lib/commonjs/hooks/useDynamicFocusOrder/useDynamicFocusOrder.types.js.map +0 -1
- package/lib/commonjs/hooks/useFocusOrder/index.js +0 -13
- package/lib/commonjs/hooks/useFocusOrder/index.js.map +0 -1
- package/lib/commonjs/hooks/useFocusOrder/useFocusOrder.js +0 -32
- package/lib/commonjs/hooks/useFocusOrder/useFocusOrder.js.map +0 -1
- package/lib/commonjs/hooks/useFocusOrder/useFocusOrder.types.js +0 -6
- package/lib/commonjs/hooks/useFocusOrder/useFocusOrder.types.js.map +0 -1
- package/lib/commonjs/nativeSpecs/NativeA11yOrder.js +0 -10
- package/lib/commonjs/nativeSpecs/NativeA11yOrder.js.map +0 -1
- package/lib/commonjs/types/A11yOrder.types.js +0 -6
- package/lib/commonjs/types/A11yOrder.types.js.map +0 -1
- package/lib/module/A11yModule/helper.js +0 -14
- package/lib/module/A11yModule/helper.js.map +0 -1
- package/lib/module/A11yModule/index.js +0 -3
- package/lib/module/A11yModule/index.js.map +0 -1
- package/lib/module/A11yModule/module.js +0 -18
- package/lib/module/A11yModule/module.js.map +0 -1
- package/lib/module/components/A11yOrder/A11yOrder.js +0 -31
- package/lib/module/components/A11yOrder/A11yOrder.js.map +0 -1
- package/lib/module/hooks/index.js +0 -4
- package/lib/module/hooks/index.js.map +0 -1
- package/lib/module/hooks/useA11yOrderManager/index.js +0 -2
- package/lib/module/hooks/useA11yOrderManager/index.js.map +0 -1
- package/lib/module/hooks/useA11yOrderManager/useA11yOrderManager.js +0 -66
- package/lib/module/hooks/useA11yOrderManager/useA11yOrderManager.js.map +0 -1
- package/lib/module/hooks/useDynamicFocusOrder/index.js +0 -3
- package/lib/module/hooks/useDynamicFocusOrder/index.js.map +0 -1
- package/lib/module/hooks/useDynamicFocusOrder/useDynamicFocusOrder.js +0 -29
- package/lib/module/hooks/useDynamicFocusOrder/useDynamicFocusOrder.js.map +0 -1
- package/lib/module/hooks/useDynamicFocusOrder/useDynamicFocusOrder.types.js +0 -2
- package/lib/module/hooks/useDynamicFocusOrder/useDynamicFocusOrder.types.js.map +0 -1
- package/lib/module/hooks/useFocusOrder/index.js +0 -2
- package/lib/module/hooks/useFocusOrder/index.js.map +0 -1
- package/lib/module/hooks/useFocusOrder/useFocusOrder.js +0 -25
- package/lib/module/hooks/useFocusOrder/useFocusOrder.js.map +0 -1
- package/lib/module/hooks/useFocusOrder/useFocusOrder.types.js +0 -2
- package/lib/module/hooks/useFocusOrder/useFocusOrder.types.js.map +0 -1
- package/lib/module/nativeSpecs/NativeA11yOrder.js +0 -3
- package/lib/module/nativeSpecs/NativeA11yOrder.js.map +0 -1
- package/lib/module/types/A11yOrder.types.js +0 -2
- package/lib/module/types/A11yOrder.types.js.map +0 -1
- package/lib/typescript/A11yModule/helper.d.ts +0 -4
- package/lib/typescript/A11yModule/helper.d.ts.map +0 -1
- package/lib/typescript/A11yModule/index.d.ts +0 -3
- package/lib/typescript/A11yModule/index.d.ts.map +0 -1
- package/lib/typescript/A11yModule/module.d.ts +0 -2
- package/lib/typescript/A11yModule/module.d.ts.map +0 -1
- package/lib/typescript/components/A11yOrder/A11yOrder.d.ts +0 -8
- package/lib/typescript/components/A11yOrder/A11yOrder.d.ts.map +0 -1
- package/lib/typescript/hooks/index.d.ts +0 -4
- package/lib/typescript/hooks/index.d.ts.map +0 -1
- package/lib/typescript/hooks/useA11yOrderManager/index.d.ts +0 -2
- package/lib/typescript/hooks/useA11yOrderManager/index.d.ts.map +0 -1
- package/lib/typescript/hooks/useA11yOrderManager/useA11yOrderManager.d.ts +0 -15
- package/lib/typescript/hooks/useA11yOrderManager/useA11yOrderManager.d.ts.map +0 -1
- package/lib/typescript/hooks/useDynamicFocusOrder/index.d.ts +0 -3
- package/lib/typescript/hooks/useDynamicFocusOrder/index.d.ts.map +0 -1
- package/lib/typescript/hooks/useDynamicFocusOrder/useDynamicFocusOrder.d.ts +0 -9
- package/lib/typescript/hooks/useDynamicFocusOrder/useDynamicFocusOrder.d.ts.map +0 -1
- package/lib/typescript/hooks/useDynamicFocusOrder/useDynamicFocusOrder.types.d.ts +0 -12
- package/lib/typescript/hooks/useDynamicFocusOrder/useDynamicFocusOrder.types.d.ts.map +0 -1
- package/lib/typescript/hooks/useFocusOrder/index.d.ts +0 -2
- package/lib/typescript/hooks/useFocusOrder/index.d.ts.map +0 -1
- package/lib/typescript/hooks/useFocusOrder/useFocusOrder.d.ts +0 -9
- package/lib/typescript/hooks/useFocusOrder/useFocusOrder.d.ts.map +0 -1
- package/lib/typescript/hooks/useFocusOrder/useFocusOrder.types.d.ts +0 -6
- package/lib/typescript/hooks/useFocusOrder/useFocusOrder.types.d.ts.map +0 -1
- package/lib/typescript/nativeSpecs/NativeA11yOrder.d.ts +0 -7
- package/lib/typescript/nativeSpecs/NativeA11yOrder.d.ts.map +0 -1
- package/lib/typescript/types/A11yOrder.types.d.ts +0 -10
- package/lib/typescript/types/A11yOrder.types.d.ts.map +0 -1
- package/src/A11yModule/helper.ts +0 -20
- package/src/A11yModule/index.tsx +0 -2
- package/src/A11yModule/module.ts +0 -32
- package/src/components/A11yOrder/A11yOrder.tsx +0 -38
- package/src/hooks/index.ts +0 -3
- package/src/hooks/useA11yOrderManager/index.ts +0 -1
- package/src/hooks/useA11yOrderManager/useA11yOrderManager.ts +0 -88
- package/src/hooks/useDynamicFocusOrder/index.ts +0 -2
- package/src/hooks/useDynamicFocusOrder/useDynamicFocusOrder.ts +0 -41
- package/src/hooks/useDynamicFocusOrder/useDynamicFocusOrder.types.ts +0 -12
- package/src/hooks/useFocusOrder/index.ts +0 -1
- package/src/hooks/useFocusOrder/useFocusOrder.ts +0 -36
- package/src/hooks/useFocusOrder/useFocusOrder.types.ts +0 -9
- package/src/nativeSpecs/NativeA11yOrder.ts +0 -7
- package/src/types/A11yOrder.types.ts +0 -9
|
@@ -3,56 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
7
|
-
var _react = require("react");
|
|
6
|
+
exports.A11y = void 0;
|
|
8
7
|
var _reactNative = require("react-native");
|
|
9
8
|
var _A11yIndex = require("./components/A11yIndex/A11yIndex.web");
|
|
10
|
-
|
|
11
|
-
* @deprecated The method should not be used
|
|
12
|
-
* 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
|
|
13
|
-
*/
|
|
14
|
-
const useFocusOrder = () => ({
|
|
15
|
-
a11yOrder: {
|
|
16
|
-
ref: /*#__PURE__*/(0, _react.createRef)(),
|
|
17
|
-
onLayout: () => {}
|
|
18
|
-
},
|
|
19
|
-
refs: [],
|
|
20
|
-
reset: () => {},
|
|
21
|
-
setOrder: () => {}
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* @deprecated The method should not be used
|
|
26
|
-
* 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
|
|
27
|
-
*/
|
|
28
|
-
exports.useFocusOrder = useFocusOrder;
|
|
29
|
-
const useDynamicFocusOrder = () => ({
|
|
30
|
-
a11yOrder: {
|
|
31
|
-
ref: /*#__PURE__*/(0, _react.createRef)(),
|
|
32
|
-
onLayout: () => {}
|
|
33
|
-
},
|
|
34
|
-
registerOrder: () => _react.createRef,
|
|
35
|
-
reset: () => {},
|
|
36
|
-
setOrder: () => {}
|
|
37
|
-
});
|
|
38
|
-
exports.useDynamicFocusOrder = useDynamicFocusOrder;
|
|
39
|
-
const useA11yOrderManager = () => ({
|
|
40
|
-
registerOrderRef: () => () => {},
|
|
41
|
-
updateRefList: () => {},
|
|
42
|
-
reset: () => {},
|
|
43
|
-
setOrder: () => {}
|
|
44
|
-
});
|
|
45
|
-
exports.useA11yOrderManager = useA11yOrderManager;
|
|
46
|
-
/**
|
|
47
|
-
* @deprecated The method should not be used
|
|
48
|
-
* 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
|
|
49
|
-
*/
|
|
50
|
-
const A11yOrder = _reactNative.View;
|
|
51
|
-
exports.A11yOrder = A11yOrder;
|
|
52
|
-
const A11y = {
|
|
9
|
+
const A11y = exports.A11y = {
|
|
53
10
|
Order: _reactNative.View,
|
|
54
11
|
Group: _reactNative.View,
|
|
55
12
|
Index: _A11yIndex.A11yIndex
|
|
56
13
|
};
|
|
57
|
-
exports.A11y = A11y;
|
|
58
14
|
//# sourceMappingURL=index.web.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_A11yIndex","A11y","exports","Order","View","Group","Index","A11yIndex"],"sourceRoot":"../../src","sources":["index.web.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAIO,MAAME,IAAI,GAAAC,OAAA,CAAAD,IAAA,GAAG;EAClBE,KAAK,EAAEC,iBAAI;EACXC,KAAK,EAAED,iBAAI;EACXE,KAAK,EAAEC;AACT,CAAC","ignoreList":[]}
|
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _codegenNativeComponent = _interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));
|
|
8
|
-
function _interopRequireDefault(
|
|
9
|
-
var _default = (0, _codegenNativeComponent.default)('A11yGroupView');
|
|
10
|
-
exports.default = _default;
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
+
var _default = exports.default = (0, _codegenNativeComponent.default)('A11yGroupView');
|
|
11
10
|
//# sourceMappingURL=A11yGroupNativeComponent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_codegenNativeComponent","_interopRequireDefault","require","
|
|
1
|
+
{"version":3,"names":["_codegenNativeComponent","_interopRequireDefault","require","e","__esModule","default","_default","exports","codegenNativeComponent"],"sourceRoot":"../../../src","sources":["nativeSpecs/A11yGroupNativeComponent.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,GAI9E,IAAAG,+BAAsB,EACnC,eACF,CAAC","ignoreList":[]}
|
|
@@ -6,11 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = exports.Commands = void 0;
|
|
7
7
|
var _codegenNativeComponent = _interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));
|
|
8
8
|
var _codegenNativeCommands = _interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeCommands"));
|
|
9
|
-
function _interopRequireDefault(
|
|
10
|
-
const Commands = (0, _codegenNativeCommands.default)({
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
+
const Commands = exports.Commands = (0, _codegenNativeCommands.default)({
|
|
11
11
|
supportedCommands: ['focus']
|
|
12
12
|
});
|
|
13
|
-
exports.
|
|
14
|
-
var _default = (0, _codegenNativeComponent.default)('A11yIndexView');
|
|
15
|
-
exports.default = _default;
|
|
13
|
+
var _default = exports.default = (0, _codegenNativeComponent.default)('A11yIndexView');
|
|
16
14
|
//# sourceMappingURL=A11yIndexNativeComponent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_codegenNativeComponent","_interopRequireDefault","require","_codegenNativeCommands","
|
|
1
|
+
{"version":3,"names":["_codegenNativeComponent","_interopRequireDefault","require","_codegenNativeCommands","e","__esModule","default","Commands","exports","codegenNativeCommands","supportedCommands","_default","codegenNativeComponent"],"sourceRoot":"../../../src","sources":["nativeSpecs/A11yIndexNativeComponent.ts"],"mappings":";;;;;;AAGA,IAAAA,uBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAF,sBAAA,CAAAC,OAAA;AAA2F,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAWpF,MAAMG,QAAwB,GAAAC,OAAA,CAAAD,QAAA,GAAG,IAAAE,8BAAqB,EAAiB;EAC5EC,iBAAiB,EAAE,CAAC,OAAO;AAC7B,CAAC,CAAC;AAAC,IAAAC,QAAA,GAAAH,OAAA,CAAAF,OAAA,GAEY,IAAAM,+BAAsB,EACnC,eACF,CAAC","ignoreList":[]}
|
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _codegenNativeComponent = _interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));
|
|
8
|
-
function _interopRequireDefault(
|
|
9
|
-
var _default = (0, _codegenNativeComponent.default)('A11yOrderView');
|
|
10
|
-
exports.default = _default;
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
+
var _default = exports.default = (0, _codegenNativeComponent.default)('A11yOrderView');
|
|
11
10
|
//# sourceMappingURL=A11yOrderNativeComponent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_codegenNativeComponent","_interopRequireDefault","require","
|
|
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 (
|
|
2
|
-
import 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
|
-
|
|
6
|
+
collapsable: false
|
|
8
7
|
}, props));
|
|
9
8
|
};
|
|
10
9
|
//# sourceMappingURL=A11yGroup.android.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","
|
|
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 (
|
|
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(
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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('
|
|
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
|
-
|
|
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","
|
|
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 (
|
|
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
|
|
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
|
-
|
|
12
|
+
WebUiManager.focus(viewRef.current);
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","forwardRef","useImperativeHandle","useRef","UIManager","View","
|
|
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 (
|
|
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":[]}
|
package/lib/module/index.js
CHANGED
|
@@ -1,8 +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 { useFocusOrder, useDynamicFocusOrder, useA11yOrderManager } from './hooks';
|
|
5
|
-
export { A11yOrder } from './components/A11yOrder/A11yOrder';
|
|
6
4
|
export const A11y = {
|
|
7
5
|
Order: A11yIndexSequence,
|
|
8
6
|
Index: A11yIndex,
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["A11yIndex","A11yIndexSequence","A11yGroup","
|
|
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":[]}
|
package/lib/module/index.web.js
CHANGED
|
@@ -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":["
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"A11yGroup.android.d.ts","sourceRoot":"","sources":["../../../../src/components/A11yGroup/A11yGroup.android.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
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,7 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export { useFocusOrder, useDynamicFocusOrder, useA11yOrderManager, } from './hooks';
|
|
3
|
-
export { A11yOrder } from './components/A11yOrder/A11yOrder';
|
|
4
|
-
export type { A11yOrderProps } from './types/A11yOrder.types';
|
|
5
2
|
export type { IndexCommands } from './types/A11yIndex.types';
|
|
6
3
|
export declare const A11y: {
|
|
7
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,
|
|
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
|
-
|
|
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,
|
|
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
|
+
"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",
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
"registry": "https://registry.npmjs.org/"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@evilmartians/lefthook": "^1.2.2",
|
|
64
63
|
"@commitlint/config-conventional": "^17.0.2",
|
|
64
|
+
"@evilmartians/lefthook": "^1.2.2",
|
|
65
65
|
"@react-native-community/eslint-config": "^3.0.2",
|
|
66
66
|
"@release-it/conventional-changelog": "^5.0.0",
|
|
67
67
|
"@types/jest": "^28.1.2",
|
|
@@ -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
|
|
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
|
-
|
|
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
|
-
'
|
|
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
|
|
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
|
|
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
|
-
|
|
17
|
+
WebUiManager.focus(viewRef.current);
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
}));
|
package/src/index.ts
CHANGED
|
@@ -2,14 +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 {
|
|
6
|
-
useFocusOrder,
|
|
7
|
-
useDynamicFocusOrder,
|
|
8
|
-
useA11yOrderManager,
|
|
9
|
-
} from './hooks';
|
|
10
|
-
|
|
11
|
-
export { A11yOrder } from './components/A11yOrder/A11yOrder';
|
|
12
|
-
export type { A11yOrderProps } from './types/A11yOrder.types';
|
|
13
5
|
export type { IndexCommands } from './types/A11yIndex.types';
|
|
14
6
|
|
|
15
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,
|