react-native-a11y-order 1.0.0 → 2.0.0-rc
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 +1 -1
- package/android/build.gradle +33 -88
- package/android/src/main/AndroidManifest.xml +1 -2
- package/android/src/{newarch → main/java/com/a11yorder}/A11yIndexViewManagerSpec.java +0 -7
- package/android/src/{newarch → main/java/com/a11yorder}/A11yLockViewManagerSpec.java +0 -1
- package/android/src/main/java/com/a11yorder/A11yOrderPackage.java +1 -1
- package/android/src/{newarch → main/java/com/a11yorder}/A11yOrderViewManagerSpec.java +0 -5
- package/ios/extensions/RCTModalHostViewComponentView+RNAOA11yOrder.h +1 -10
- package/ios/extensions/RCTModalHostViewComponentView+RNAOA11yOrder.mm +0 -34
- package/ios/extensions/UIView+RNAOA11yOrder.mm +0 -8
- package/ios/helpers/RNAOFabricEventHelper/RNAOFabricEventHelper.h +0 -2
- package/ios/helpers/RNAOFabricEventHelper/RNAOFabricEventHelper.mm +0 -3
- package/ios/modules/RNAOA11yAnnounceModule.h +0 -20
- package/ios/modules/RNAOA11yAnnounceModule.mm +0 -18
- package/ios/views/RNAOA11yCardView/RNAOA11yCardView.h +0 -9
- package/ios/views/RNAOA11yCardView/RNAOA11yCardView.mm +11 -15
- package/ios/views/RNAOA11yIndexView/RNAOA11yIndexView.mm +1 -5
- package/ios/views/RNAOA11yLockView/RNAOA11yLockView.h +0 -12
- package/ios/views/RNAOA11yLockView/RNAOA11yLockView.mm +1 -11
- package/ios/views/RNAOA11yOrderView/RNAOA11yOrderView.h +0 -14
- package/ios/views/RNAOA11yOrderView/RNAOA11yOrderView.mm +2 -22
- package/ios/views/RNAOA11yPaneTitleView/RNAOA11yPaneTitleView.h +0 -16
- package/ios/views/RNAOA11yPaneTitleView/RNAOA11yPaneTitleView.mm +4 -11
- package/ios/views/base/RNAOA11yGroupChildrenView.h +0 -4
- package/ios/views/base/RNAOA11yManagedFocusView.h +0 -11
- package/ios/views/base/RNAOA11yManagedFocusView.mm +0 -43
- package/ios/views/base/RNAOA11yScreenReaderView.h +0 -7
- package/ios/views/base/RNAOA11yScreenReaderView.mm +0 -2
- package/ios/views/base/RNAOA11yViewGroup.h +0 -14
- package/ios/views/base/RNAOA11yViewOrder.h +0 -16
- package/ios/views/base/RNAOA11yViewOrder.mm +0 -26
- package/lib/module/components/A11yCard/A11yCard.ios.js +0 -1
- package/lib/module/components/A11yCard/A11yCard.ios.js.map +1 -1
- package/lib/module/components/A11yCard/A11yCard.js +0 -1
- package/lib/module/components/A11yCard/A11yCard.js.map +1 -1
- package/lib/module/components/A11yIndex/A11yIndex.js +2 -2
- package/lib/module/components/A11yIndex/A11yIndex.js.map +1 -1
- package/lib/module/components/A11yIndex/A11yIndex.web.js +0 -1
- package/lib/module/components/A11yIndex/A11yIndex.web.js.map +1 -1
- package/lib/module/components/A11yLock/A11yFocusFrame/A11yFocusFrame.android.js +2 -2
- package/lib/module/components/A11yLock/A11yFocusFrame/A11yFocusFrame.android.js.map +1 -1
- package/lib/module/components/A11yLock/A11yFocusFrame/A11yFocusFrame.js +1 -2
- package/lib/module/components/A11yLock/A11yFocusFrame/A11yFocusFrame.js.map +1 -1
- package/lib/module/components/A11yLock/A11yFocusTrap/A11yFocusTrap.android.js +2 -2
- package/lib/module/components/A11yLock/A11yFocusTrap/A11yFocusTrap.android.js.map +1 -1
- package/lib/module/components/A11yLock/A11yFocusTrap/A11yFocusTrap.js +2 -3
- package/lib/module/components/A11yLock/A11yFocusTrap/A11yFocusTrap.js.map +1 -1
- package/lib/module/components/A11yLock/A11yFocusTrap/A11yFocusTrapMountWrapper.js +1 -1
- package/lib/module/components/A11yLock/A11yFocusTrap/A11yFocusTrapMountWrapper.js.map +1 -1
- package/lib/module/components/A11yOrder/A11yOrder.js +1 -1
- package/lib/module/components/A11yOrder/A11yOrder.js.map +1 -1
- package/lib/module/components/A11yPaneTitle/A11yPaneTitle.js +0 -1
- package/lib/module/components/A11yPaneTitle/A11yPaneTitle.js.map +1 -1
- package/lib/module/index.js +4 -4
- package/lib/module/index.js.map +1 -1
- package/lib/module/index.web.js +1 -1
- package/lib/module/index.web.js.map +1 -1
- package/lib/module/modules/A11yAnnounceModule.js +4 -18
- package/lib/module/modules/A11yAnnounceModule.js.map +1 -1
- package/lib/module/nativeSpecs/A11yCardNativeComponent.ts +6 -2
- package/lib/module/nativeSpecs/A11yIndexNativeComponent.ts +10 -12
- package/lib/module/nativeSpecs/A11yLockNativeComponent.ts +10 -4
- package/lib/module/nativeSpecs/A11yOrderNativeComponent.ts +6 -2
- package/lib/module/nativeSpecs/A11yPaneTitleNativeComponent.ts +10 -4
- package/lib/module/nativeSpecs/NativeA11yAnnounceModule.js +1 -1
- package/lib/module/nativeSpecs/NativeA11yAnnounceModule.js.map +1 -1
- package/lib/module/package.json +1 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/src/components/A11yCard/A11yCard.d.ts +2 -3
- package/lib/typescript/src/components/A11yCard/A11yCard.d.ts.map +1 -1
- package/lib/typescript/src/components/A11yCard/A11yCard.ios.d.ts +2 -3
- package/lib/typescript/src/components/A11yCard/A11yCard.ios.d.ts.map +1 -1
- package/lib/typescript/src/components/A11yIndex/A11yIndex.d.ts +5 -127
- package/lib/typescript/src/components/A11yIndex/A11yIndex.d.ts.map +1 -1
- package/lib/typescript/src/components/A11yIndex/A11yIndex.web.d.ts +5 -129
- package/lib/typescript/src/components/A11yIndex/A11yIndex.web.d.ts.map +1 -1
- package/lib/typescript/src/components/A11yLock/A11yBaseLock/A11yBaseLock.d.ts +1 -1
- package/lib/typescript/src/components/A11yLock/A11yBaseLock/A11yBaseLock.d.ts.map +1 -1
- package/lib/typescript/src/components/A11yLock/A11yFocusFrame/A11yFocusFrame.android.d.ts +1 -1
- package/lib/typescript/src/components/A11yLock/A11yFocusFrame/A11yFocusFrame.android.d.ts.map +1 -1
- package/lib/typescript/src/components/A11yLock/A11yFocusFrame/A11yFocusFrame.d.ts +2 -3
- package/lib/typescript/src/components/A11yLock/A11yFocusFrame/A11yFocusFrame.d.ts.map +1 -1
- package/lib/typescript/src/components/A11yLock/A11yFocusTrap/A11yFocusTrap.android.d.ts +1 -1
- package/lib/typescript/src/components/A11yLock/A11yFocusTrap/A11yFocusTrap.android.d.ts.map +1 -1
- package/lib/typescript/src/components/A11yLock/A11yFocusTrap/A11yFocusTrap.d.ts +2 -3
- package/lib/typescript/src/components/A11yLock/A11yFocusTrap/A11yFocusTrap.d.ts.map +1 -1
- package/lib/typescript/src/components/A11yOrder/A11yOrder.d.ts +2 -125
- package/lib/typescript/src/components/A11yOrder/A11yOrder.d.ts.map +1 -1
- package/lib/typescript/src/components/A11yPaneTitle/A11yPaneTitle.d.ts +3 -4
- package/lib/typescript/src/components/A11yPaneTitle/A11yPaneTitle.d.ts.map +1 -1
- package/lib/typescript/src/components/A11yView/A11yView.d.ts +3 -126
- package/lib/typescript/src/components/A11yView/A11yView.d.ts.map +1 -1
- package/lib/typescript/src/components/A11yView/A11yView.types.d.ts +2 -2
- package/lib/typescript/src/components/A11yView/A11yView.types.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +17 -386
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/index.web.d.ts +20 -143
- package/lib/typescript/src/index.web.d.ts.map +1 -1
- package/lib/typescript/src/modules/A11yAnnounceModule.d.ts.map +1 -1
- package/lib/typescript/src/nativeSpecs/A11yCardNativeComponent.d.ts +2 -2
- package/lib/typescript/src/nativeSpecs/A11yCardNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/nativeSpecs/A11yIndexNativeComponent.d.ts +9 -10
- package/lib/typescript/src/nativeSpecs/A11yIndexNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/nativeSpecs/A11yLockNativeComponent.d.ts +3 -4
- package/lib/typescript/src/nativeSpecs/A11yLockNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/nativeSpecs/A11yOrderNativeComponent.d.ts +2 -2
- package/lib/typescript/src/nativeSpecs/A11yOrderNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/nativeSpecs/A11yPaneTitleNativeComponent.d.ts +3 -4
- package/lib/typescript/src/nativeSpecs/A11yPaneTitleNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/nativeSpecs/NativeA11yAnnounceModule.d.ts +1 -1
- package/lib/typescript/src/nativeSpecs/NativeA11yAnnounceModule.d.ts.map +1 -1
- package/package.json +54 -32
- package/react-native-a11y-order.podspec +2 -2
- package/react-native.config.js +12 -0
- package/src/components/A11yCard/A11yCard.ios.tsx +0 -1
- package/src/components/A11yCard/A11yCard.tsx +0 -1
- package/src/components/A11yIndex/A11yIndex.tsx +5 -5
- package/src/components/A11yIndex/A11yIndex.web.tsx +0 -1
- package/src/components/A11yLock/A11yFocusFrame/A11yFocusFrame.tsx +0 -1
- package/src/components/A11yLock/A11yFocusTrap/A11yFocusTrap.tsx +0 -1
- package/src/components/A11yPaneTitle/A11yPaneTitle.tsx +0 -1
- package/src/modules/A11yAnnounceModule.ts +3 -28
- package/src/nativeSpecs/A11yCardNativeComponent.ts +6 -2
- package/src/nativeSpecs/A11yIndexNativeComponent.ts +10 -12
- package/src/nativeSpecs/A11yLockNativeComponent.ts +10 -4
- package/src/nativeSpecs/A11yOrderNativeComponent.ts +6 -2
- package/src/nativeSpecs/A11yPaneTitleNativeComponent.ts +10 -4
- package/src/nativeSpecs/NativeA11yAnnounceModule.ts +1 -1
- package/android/gradle.properties +0 -5
- package/android/src/oldarch/A11yAnnounceModuleSpec.java +0 -19
- package/android/src/oldarch/A11yCardViewManagerSpec.java +0 -8
- package/android/src/oldarch/A11yIndexViewManagerSpec.java +0 -22
- package/android/src/oldarch/A11yLockViewManagerSpec.java +0 -15
- package/android/src/oldarch/A11yOrderViewManagerSpec.java +0 -8
- package/android/src/oldarch/A11yPaneTitleSpec.java +0 -15
- package/ios/views/RNAOA11yCardView/RNAOA11yCardViewManager.h +0 -14
- package/ios/views/RNAOA11yCardView/RNAOA11yCardViewManager.mm +0 -17
- package/ios/views/RNAOA11yIndexView/RNAOA11yIndexViewManager.h +0 -19
- package/ios/views/RNAOA11yIndexView/RNAOA11yIndexViewManager.mm +0 -75
- package/ios/views/RNAOA11yLockView/RNAOA11yLockViewManager.h +0 -14
- package/ios/views/RNAOA11yLockView/RNAOA11yLockViewManager.mm +0 -28
- package/ios/views/RNAOA11yOrderView/RNAOA11yOrderViewManager.h +0 -18
- package/ios/views/RNAOA11yOrderView/RNAOA11yOrderViewManager.mm +0 -31
- package/ios/views/RNAOA11yPaneTitleView/RNAOA11yPaneTitleViewManager.h +0 -15
- package/ios/views/RNAOA11yPaneTitleView/RNAOA11yPaneTitleViewManager.mm +0 -42
- package/lib/commonjs/components/A11yCard/A11yCard.ios.js +0 -56
- package/lib/commonjs/components/A11yCard/A11yCard.ios.js.map +0 -1
- package/lib/commonjs/components/A11yCard/A11yCard.js +0 -41
- package/lib/commonjs/components/A11yCard/A11yCard.js.map +0 -1
- package/lib/commonjs/components/A11yCard/A11yCard.types.js +0 -6
- package/lib/commonjs/components/A11yCard/A11yCard.types.js.map +0 -1
- package/lib/commonjs/components/A11yIndex/A11yIndex.js +0 -118
- package/lib/commonjs/components/A11yIndex/A11yIndex.js.map +0 -1
- package/lib/commonjs/components/A11yIndex/A11yIndex.types.js +0 -39
- package/lib/commonjs/components/A11yIndex/A11yIndex.types.js.map +0 -1
- package/lib/commonjs/components/A11yIndex/A11yIndex.web.js +0 -26
- package/lib/commonjs/components/A11yIndex/A11yIndex.web.js.map +0 -1
- package/lib/commonjs/components/A11yLock/A11yBaseLock/A11yBaseLock.js +0 -25
- package/lib/commonjs/components/A11yLock/A11yBaseLock/A11yBaseLock.js.map +0 -1
- package/lib/commonjs/components/A11yLock/A11yFocusFrame/A11yFocusFrame.android.js +0 -24
- package/lib/commonjs/components/A11yLock/A11yFocusFrame/A11yFocusFrame.android.js.map +0 -1
- package/lib/commonjs/components/A11yLock/A11yFocusFrame/A11yFocusFrame.js +0 -18
- package/lib/commonjs/components/A11yLock/A11yFocusFrame/A11yFocusFrame.js.map +0 -1
- package/lib/commonjs/components/A11yLock/A11yFocusTrap/A11yFocusTrap.android.js +0 -22
- package/lib/commonjs/components/A11yLock/A11yFocusTrap/A11yFocusTrap.android.js.map +0 -1
- package/lib/commonjs/components/A11yLock/A11yFocusTrap/A11yFocusTrap.js +0 -36
- package/lib/commonjs/components/A11yLock/A11yFocusTrap/A11yFocusTrap.js.map +0 -1
- package/lib/commonjs/components/A11yLock/A11yFocusTrap/A11yFocusTrapMountWrapper.js +0 -46
- package/lib/commonjs/components/A11yLock/A11yFocusTrap/A11yFocusTrapMountWrapper.js.map +0 -1
- package/lib/commonjs/components/A11yLock/A11yLock.types.js +0 -6
- package/lib/commonjs/components/A11yLock/A11yLock.types.js.map +0 -1
- package/lib/commonjs/components/A11yOrder/A11yOrder.js +0 -22
- package/lib/commonjs/components/A11yOrder/A11yOrder.js.map +0 -1
- package/lib/commonjs/components/A11yOrder/A11yOrder.types.js +0 -6
- package/lib/commonjs/components/A11yOrder/A11yOrder.types.js.map +0 -1
- package/lib/commonjs/components/A11yPaneTitle/A11yPaneTitle.js +0 -41
- package/lib/commonjs/components/A11yPaneTitle/A11yPaneTitle.js.map +0 -1
- package/lib/commonjs/components/A11yPaneTitle/A11yPaneTitle.types.js +0 -6
- package/lib/commonjs/components/A11yPaneTitle/A11yPaneTitle.types.js.map +0 -1
- package/lib/commonjs/components/A11yView/A11yView.js +0 -14
- package/lib/commonjs/components/A11yView/A11yView.js.map +0 -1
- package/lib/commonjs/components/A11yView/A11yView.types.js +0 -6
- package/lib/commonjs/components/A11yView/A11yView.types.js.map +0 -1
- package/lib/commonjs/context/A11yFocusFrameProviderContext.js +0 -30
- package/lib/commonjs/context/A11yFocusFrameProviderContext.js.map +0 -1
- package/lib/commonjs/context/A11ySequenceOrderContext.js +0 -10
- package/lib/commonjs/context/A11ySequenceOrderContext.js.map +0 -1
- package/lib/commonjs/index.js +0 -60
- package/lib/commonjs/index.js.map +0 -1
- package/lib/commonjs/index.web.js +0 -33
- package/lib/commonjs/index.web.js.map +0 -1
- package/lib/commonjs/modules/A11yAnnounceModule.android.js +0 -45
- package/lib/commonjs/modules/A11yAnnounceModule.android.js.map +0 -1
- package/lib/commonjs/modules/A11yAnnounceModule.js +0 -86
- package/lib/commonjs/modules/A11yAnnounceModule.js.map +0 -1
- package/lib/commonjs/nativeSpecs/A11yCardNativeComponent.ts +0 -7
- package/lib/commonjs/nativeSpecs/A11yIndexNativeComponent.ts +0 -47
- package/lib/commonjs/nativeSpecs/A11yLockNativeComponent.ts +0 -11
- package/lib/commonjs/nativeSpecs/A11yOrderNativeComponent.ts +0 -9
- package/lib/commonjs/nativeSpecs/A11yPaneTitleNativeComponent.ts +0 -11
- package/lib/commonjs/nativeSpecs/NativeA11yAnnounceModule.js +0 -11
- package/lib/commonjs/nativeSpecs/NativeA11yAnnounceModule.js.map +0 -1
- package/lib/commonjs/package.json +0 -1
- /package/android/src/{newarch → main/java/com/a11yorder}/A11yAnnounceModuleSpec.java +0 -0
- /package/android/src/{newarch → main/java/com/a11yorder}/A11yCardViewManagerSpec.java +0 -0
- /package/android/src/{newarch → main/java/com/a11yorder}/A11yPaneTitleSpec.java +0 -0
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.useFocusFrameContext = exports.A11yFrameProvider = void 0;
|
|
7
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
9
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
10
|
-
const A11yFocusFrameProviderContext = /*#__PURE__*/(0, _react.createContext)(undefined);
|
|
11
|
-
const useFocusFrameContext = () => (0, _react.useContext)(A11yFocusFrameProviderContext);
|
|
12
|
-
exports.useFocusFrameContext = useFocusFrameContext;
|
|
13
|
-
const A11yFrameProvider = ({
|
|
14
|
-
children
|
|
15
|
-
}) => {
|
|
16
|
-
const [hasFocusLock, setHasFocusLock] = (0, _react.useState)(false);
|
|
17
|
-
const [focusLockId, setFocusLockId] = (0, _react.useState)(null);
|
|
18
|
-
const state = (0, _react.useMemo)(() => ({
|
|
19
|
-
hasFocusLock,
|
|
20
|
-
focusLockId,
|
|
21
|
-
setHasFocusLock,
|
|
22
|
-
setFocusLockId
|
|
23
|
-
}), [hasFocusLock, focusLockId, setHasFocusLock, setFocusLockId]);
|
|
24
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(A11yFocusFrameProviderContext.Provider, {
|
|
25
|
-
value: state,
|
|
26
|
-
children: children
|
|
27
|
-
});
|
|
28
|
-
};
|
|
29
|
-
exports.A11yFrameProvider = A11yFrameProvider;
|
|
30
|
-
//# sourceMappingURL=A11yFocusFrameProviderContext.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","A11yFocusFrameProviderContext","createContext","undefined","useFocusFrameContext","useContext","exports","A11yFrameProvider","children","hasFocusLock","setHasFocusLock","useState","focusLockId","setFocusLockId","state","useMemo","jsx","Provider","value"],"sourceRoot":"../../../src","sources":["context/A11yFocusFrameProviderContext.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAAuC,IAAAC,WAAA,GAAAD,OAAA;AAAA,SAAAD,wBAAAG,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAL,uBAAA,YAAAA,CAAAG,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAP,CAAA,EAAAM,CAAA,IAAAC,CAAA,CAAAP,CAAA,IAAAD,CAAA,CAAAC,CAAA,WAAAO,CAAA,KAAAR,CAAA,EAAAC,CAAA;AAevC,MAAMkB,6BAA6B,gBAAG,IAAAC,oBAAa,EAEjDC,SAAS,CAAC;AAEL,MAAMC,oBAAoB,GAAGA,CAAA,KAClC,IAAAC,iBAAU,EAACJ,6BAA6B,CAAC;AAACK,OAAA,CAAAF,oBAAA,GAAAA,oBAAA;AAErC,MAAMG,iBAA8C,GAAGA,CAAC;EAC7DC;AACF,CAAC,KAAK;EACJ,MAAM,CAACC,YAAY,EAAEC,eAAe,CAAC,GAAG,IAAAC,eAAQ,EAAC,KAAK,CAAC;EACvD,MAAM,CAACC,WAAW,EAAEC,cAAc,CAAC,GAAG,IAAAF,eAAQ,EAAgB,IAAI,CAAC;EAEnE,MAAMG,KAAK,GAAG,IAAAC,cAAO,EACnB,OAAO;IAAEN,YAAY;IAAEG,WAAW;IAAEF,eAAe;IAAEG;EAAe,CAAC,CAAC,EACtE,CAACJ,YAAY,EAAEG,WAAW,EAAEF,eAAe,EAAEG,cAAc,CAC7D,CAAC;EAED,oBACE,IAAAhC,WAAA,CAAAmC,GAAA,EAACf,6BAA6B,CAACgB,QAAQ;IAACC,KAAK,EAAEJ,KAAM;IAAAN,QAAA,EAClDA;EAAQ,CAC6B,CAAC;AAE7C,CAAC;AAACF,OAAA,CAAAC,iBAAA,GAAAA,iBAAA","ignoreList":[]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.A11ySequenceOrderContext = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
-
const A11ySequenceOrderContext = exports.A11ySequenceOrderContext = /*#__PURE__*/_react.default.createContext(undefined);
|
|
10
|
-
//# sourceMappingURL=A11ySequenceOrderContext.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","e","__esModule","default","A11ySequenceOrderContext","exports","React","createContext","undefined"],"sourceRoot":"../../../src","sources":["context/A11ySequenceOrderContext.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA0B,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEnB,MAAMG,wBAAwB,GAAAC,OAAA,CAAAD,wBAAA,gBAAGE,cAAK,CAACC,aAAa,CACzDC,SACF,CAAC","ignoreList":[]}
|
package/lib/commonjs/index.js
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.A11y = void 0;
|
|
7
|
-
Object.defineProperty(exports, "A11yOrderTypeEnum", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function () {
|
|
10
|
-
return _A11yIndex2.A11yOrderTypeEnum;
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
Object.defineProperty(exports, "ScreenReader", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function () {
|
|
16
|
-
return _A11yAnnounceModule.ScreenReader;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
Object.defineProperty(exports, "announce", {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
get: function () {
|
|
22
|
-
return _A11yAnnounceModule.announce;
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
Object.defineProperty(exports, "cancel", {
|
|
26
|
-
enumerable: true,
|
|
27
|
-
get: function () {
|
|
28
|
-
return _A11yAnnounceModule.cancel;
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
Object.defineProperty(exports, "cancelAll", {
|
|
32
|
-
enumerable: true,
|
|
33
|
-
get: function () {
|
|
34
|
-
return _A11yAnnounceModule.cancelAll;
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
var _A11yIndex = require("./components/A11yIndex/A11yIndex");
|
|
38
|
-
var _A11yOrder = require("./components/A11yOrder/A11yOrder");
|
|
39
|
-
var _A11yPaneTitle = require("./components/A11yPaneTitle/A11yPaneTitle");
|
|
40
|
-
var _A11yView = require("./components/A11yView/A11yView");
|
|
41
|
-
var _A11yFocusFrame = require("./components/A11yLock/A11yFocusFrame/A11yFocusFrame");
|
|
42
|
-
var _A11yFocusTrap = require("./components/A11yLock/A11yFocusTrap/A11yFocusTrap");
|
|
43
|
-
var _A11yCard = require("./components/A11yCard/A11yCard");
|
|
44
|
-
var _A11yIndex2 = require("./components/A11yIndex/A11yIndex.types");
|
|
45
|
-
var _A11yAnnounceModule = require("./modules/A11yAnnounceModule");
|
|
46
|
-
// ─── Component props ──────────────────────────────────────────────────────────
|
|
47
|
-
|
|
48
|
-
// ─── Namespace ────────────────────────────────────────────────────────────────
|
|
49
|
-
|
|
50
|
-
const A11y = exports.A11y = {
|
|
51
|
-
Order: _A11yOrder.A11yOrder,
|
|
52
|
-
Index: _A11yIndex.A11yIndex,
|
|
53
|
-
View: _A11yView.A11yView,
|
|
54
|
-
PaneTitle: _A11yPaneTitle.A11yPaneTitle,
|
|
55
|
-
ScreenChange: _A11yPaneTitle.A11yScreenChange,
|
|
56
|
-
FocusFrame: _A11yFocusFrame.A11yFocusFrame,
|
|
57
|
-
FocusTrap: _A11yFocusTrap.A11yFocusTrap,
|
|
58
|
-
Card: _A11yCard.A11yCard
|
|
59
|
-
};
|
|
60
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_A11yIndex","require","_A11yOrder","_A11yPaneTitle","_A11yView","_A11yFocusFrame","_A11yFocusTrap","_A11yCard","_A11yIndex2","_A11yAnnounceModule","A11y","exports","Order","A11yOrder","Index","A11yIndex","View","A11yView","PaneTitle","A11yPaneTitle","ScreenChange","A11yScreenChange","FocusFrame","A11yFocusFrame","FocusTrap","A11yFocusTrap","Card","A11yCard"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AAIA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,eAAA,GAAAJ,OAAA;AACA,IAAAK,cAAA,GAAAL,OAAA;AACA,IAAAM,SAAA,GAAAN,OAAA;AAWA,IAAAO,WAAA,GAAAP,OAAA;AA4BA,IAAAQ,mBAAA,GAAAR,OAAA;AArCA;;AAwBA;;AAEO,MAAMS,IAAI,GAAAC,OAAA,CAAAD,IAAA,GAAG;EAClBE,KAAK,EAAEC,oBAAS;EAChBC,KAAK,EAAEC,oBAAS;EAChBC,IAAI,EAAEC,kBAAQ;EACdC,SAAS,EAAEC,4BAAa;EACxBC,YAAY,EAAEC,+BAAgB;EAC9BC,UAAU,EAAEC,8BAAc;EAC1BC,SAAS,EAAEC,4BAAa;EACxBC,IAAI,EAAEC;AACR,CAAC","ignoreList":[]}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.A11y = void 0;
|
|
7
|
-
Object.defineProperty(exports, "A11yOrderTypeEnum", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function () {
|
|
10
|
-
return _A11yIndex2.A11yOrderTypeEnum;
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
Object.defineProperty(exports, "ScreenReader", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function () {
|
|
16
|
-
return _A11yAnnounceModule.ScreenReader;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
var _A11yIndex = require("./components/A11yIndex/A11yIndex");
|
|
20
|
-
var _reactNative = require("react-native");
|
|
21
|
-
var _A11yIndex2 = require("./components/A11yIndex/A11yIndex.types");
|
|
22
|
-
var _A11yAnnounceModule = require("./modules/A11yAnnounceModule");
|
|
23
|
-
const A11y = exports.A11y = {
|
|
24
|
-
Order: _reactNative.View,
|
|
25
|
-
Index: _A11yIndex.A11yIndex,
|
|
26
|
-
View: _reactNative.View,
|
|
27
|
-
PaneTitle: _reactNative.View,
|
|
28
|
-
ScreenChange: _reactNative.View,
|
|
29
|
-
FocusFrame: _reactNative.View,
|
|
30
|
-
FocusTrap: _reactNative.View,
|
|
31
|
-
Card: _reactNative.View
|
|
32
|
-
};
|
|
33
|
-
//# sourceMappingURL=index.web.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_A11yIndex","require","_reactNative","_A11yIndex2","_A11yAnnounceModule","A11y","exports","Order","View","Index","A11yIndex","PaneTitle","ScreenChange","FocusFrame","FocusTrap","Card"],"sourceRoot":"../../src","sources":["index.web.ts"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAOA,IAAAE,WAAA,GAAAF,OAAA;AAiBA,IAAAG,mBAAA,GAAAH,OAAA;AAXO,MAAMI,IAAI,GAAAC,OAAA,CAAAD,IAAA,GAAG;EAClBE,KAAK,EAAEC,iBAAI;EACXC,KAAK,EAAEC,oBAAS;EAChBF,IAAI,EAAEA,iBAAI;EACVG,SAAS,EAAEH,iBAAI;EACfI,YAAY,EAAEJ,iBAAI;EAClBK,UAAU,EAAEL,iBAAI;EAChBM,SAAS,EAAEN,iBAAI;EACfO,IAAI,EAAEP;AACR,CAAC","ignoreList":[]}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.cancelAll = exports.cancel = exports.announce = exports.ScreenReader = void 0;
|
|
7
|
-
var _reactNative = require("react-native");
|
|
8
|
-
// Android stub — bypasses the native bridge, uses the built-in API directly.
|
|
9
|
-
|
|
10
|
-
const ScreenReader = exports.ScreenReader = {
|
|
11
|
-
announce: message => {
|
|
12
|
-
_reactNative.AccessibilityInfo.announceForAccessibility(message);
|
|
13
|
-
return Promise.resolve({
|
|
14
|
-
id: '',
|
|
15
|
-
status: 'fired'
|
|
16
|
-
});
|
|
17
|
-
},
|
|
18
|
-
cancel: () => Promise.resolve({
|
|
19
|
-
id: '',
|
|
20
|
-
status: 'cancelled'
|
|
21
|
-
}),
|
|
22
|
-
cancelAll: () => Promise.resolve({
|
|
23
|
-
id: '',
|
|
24
|
-
status: 'cancelled'
|
|
25
|
-
})
|
|
26
|
-
};
|
|
27
|
-
const announce = message => {
|
|
28
|
-
_reactNative.AccessibilityInfo.announceForAccessibility(message);
|
|
29
|
-
return Promise.resolve({
|
|
30
|
-
id: '',
|
|
31
|
-
status: 'fired'
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
|
-
exports.announce = announce;
|
|
35
|
-
const cancel = () => Promise.resolve({
|
|
36
|
-
id: '',
|
|
37
|
-
status: 'cancelled'
|
|
38
|
-
});
|
|
39
|
-
exports.cancel = cancel;
|
|
40
|
-
const cancelAll = () => Promise.resolve({
|
|
41
|
-
id: '',
|
|
42
|
-
status: 'cancelled'
|
|
43
|
-
});
|
|
44
|
-
exports.cancelAll = cancelAll;
|
|
45
|
-
//# sourceMappingURL=A11yAnnounceModule.android.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","ScreenReader","exports","announce","message","AccessibilityInfo","announceForAccessibility","Promise","resolve","id","status","cancel","cancelAll"],"sourceRoot":"../../../src","sources":["modules/A11yAnnounceModule.android.ts"],"mappings":";;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AADA;;AAGO,MAAMC,YAAY,GAAAC,OAAA,CAAAD,YAAA,GAAG;EAC1BE,QAAQ,EAAGC,OAAe,IAAK;IAC7BC,8BAAiB,CAACC,wBAAwB,CAACF,OAAO,CAAC;IACnD,OAAOG,OAAO,CAACC,OAAO,CAAC;MAAEC,EAAE,EAAE,EAAE;MAAEC,MAAM,EAAE;IAAiB,CAAC,CAAC;EAC9D,CAAC;EACDC,MAAM,EAAEA,CAAA,KAAMJ,OAAO,CAACC,OAAO,CAAC;IAAEC,EAAE,EAAE,EAAE;IAAEC,MAAM,EAAE;EAAqB,CAAC,CAAC;EACvEE,SAAS,EAAEA,CAAA,KAAML,OAAO,CAACC,OAAO,CAAC;IAAEC,EAAE,EAAE,EAAE;IAAEC,MAAM,EAAE;EAAqB,CAAC;AAC3E,CAAC;AAEM,MAAMP,QAAQ,GAAIC,OAAe,IAAK;EAC3CC,8BAAiB,CAACC,wBAAwB,CAACF,OAAO,CAAC;EACnD,OAAOG,OAAO,CAACC,OAAO,CAAC;IAAEC,EAAE,EAAE,EAAE;IAAEC,MAAM,EAAE;EAAiB,CAAC,CAAC;AAC9D,CAAC;AAACR,OAAA,CAAAC,QAAA,GAAAA,QAAA;AAEK,MAAMQ,MAAM,GAAGA,CAAA,KACpBJ,OAAO,CAACC,OAAO,CAAC;EAAEC,EAAE,EAAE,EAAE;EAAEC,MAAM,EAAE;AAAqB,CAAC,CAAC;AAACR,OAAA,CAAAS,MAAA,GAAAA,MAAA;AACrD,MAAMC,SAAS,GAAGA,CAAA,KACvBL,OAAO,CAACC,OAAO,CAAC;EAAEC,EAAE,EAAE,EAAE;EAAEC,MAAM,EAAE;AAAqB,CAAC,CAAC;AAACR,OAAA,CAAAU,SAAA,GAAAA,SAAA","ignoreList":[]}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.ScreenReader = void 0;
|
|
7
|
-
exports.announce = announce;
|
|
8
|
-
exports.cancel = cancel;
|
|
9
|
-
exports.cancelAll = cancelAll;
|
|
10
|
-
var _reactNative = require("react-native");
|
|
11
|
-
var _NativeA11yAnnounceModule = _interopRequireDefault(require("../nativeSpecs/NativeA11yAnnounceModule"));
|
|
12
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
-
const LINKING_ERROR = `The package 'react-native-a11y-order' doesn't seem to be linked. Make sure: \n\n${_reactNative.Platform.select({
|
|
14
|
-
ios: "- You have run 'pod install'\n",
|
|
15
|
-
default: ''
|
|
16
|
-
})}- You rebuilt the app after installing the package\n` + `- You are not using Expo Go\n`;
|
|
17
|
-
|
|
18
|
-
// @ts-expect-error
|
|
19
|
-
const isTurboModuleEnabled = global.__turboModuleProxy != null;
|
|
20
|
-
const A11yAnnounceNative = isTurboModuleEnabled ? _NativeA11yAnnounceModule.default : _reactNative.NativeModules.A11yAnnounceModule;
|
|
21
|
-
const A11yAnnounceProxy = A11yAnnounceNative ?? new Proxy({}, {
|
|
22
|
-
get() {
|
|
23
|
-
throw new Error(LINKING_ERROR);
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
// ─── Types ────────────────────────────────────────────────────────────────────
|
|
28
|
-
|
|
29
|
-
// ─── Core API ─────────────────────────────────────────────────────────────────
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Posts a screen reader announcement.
|
|
33
|
-
*
|
|
34
|
-
* **calm mode** (`calm: true`): navigation-aware — waits for transitions to
|
|
35
|
-
* settle and for VoiceOver/TalkBack to have a focused element. Promise
|
|
36
|
-
* resolves when the announcement is **actually fired** (not just enqueued).
|
|
37
|
-
*
|
|
38
|
-
* **direct mode** (`calm: false`, default): posts immediately with speech
|
|
39
|
-
* attributes. On iOS, Promise resolves when VoiceOver confirms speech finished
|
|
40
|
-
* (`status: 'spoken'`) or was interrupted (`status: 'fired'`).
|
|
41
|
-
* On Android, always resolves immediately with `status: 'fired'`.
|
|
42
|
-
*/
|
|
43
|
-
function announce(message, options) {
|
|
44
|
-
const {
|
|
45
|
-
speech,
|
|
46
|
-
...rest
|
|
47
|
-
} = options ?? {};
|
|
48
|
-
return A11yAnnounceProxy.announce(message, {
|
|
49
|
-
...rest,
|
|
50
|
-
...speech
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Cancels the announcement with the given `id`.
|
|
56
|
-
* In calm mode, removes it from the service queue if not yet fired.
|
|
57
|
-
* In direct mode, interrupts the active announcement if it matches.
|
|
58
|
-
*/
|
|
59
|
-
function cancel(id) {
|
|
60
|
-
return A11yAnnounceProxy.cancel(id);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* Cancels all pending and active announcements.
|
|
65
|
-
* Calm-mode promises resolve with `status: 'cancelled'`.
|
|
66
|
-
*/
|
|
67
|
-
function cancelAll() {
|
|
68
|
-
return A11yAnnounceProxy.cancelAll();
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
// ─── Namespace export (backward-compatible) ───────────────────────────────────
|
|
72
|
-
|
|
73
|
-
const ScreenReader = exports.ScreenReader = {
|
|
74
|
-
/**
|
|
75
|
-
* Posts a navigation-aware announcement (calm mode).
|
|
76
|
-
* Waits for transitions to finish before speaking.
|
|
77
|
-
* Promise resolves when the announcement is actually fired.
|
|
78
|
-
*/
|
|
79
|
-
announce: (message, options) => announce(message, {
|
|
80
|
-
calm: true,
|
|
81
|
-
...options
|
|
82
|
-
}),
|
|
83
|
-
cancel,
|
|
84
|
-
cancelAll
|
|
85
|
-
};
|
|
86
|
-
//# sourceMappingURL=A11yAnnounceModule.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_NativeA11yAnnounceModule","_interopRequireDefault","e","__esModule","default","LINKING_ERROR","Platform","select","ios","isTurboModuleEnabled","global","__turboModuleProxy","A11yAnnounceNative","NativeA11yAnnounceModule","NativeModules","A11yAnnounceModule","A11yAnnounceProxy","Proxy","get","Error","announce","message","options","speech","rest","cancel","id","cancelAll","ScreenReader","exports","calm"],"sourceRoot":"../../../src","sources":["modules/A11yAnnounceModule.ts"],"mappings":";;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,yBAAA,GAAAC,sBAAA,CAAAF,OAAA;AAA+E,SAAAE,uBAAAC,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE/E,MAAMG,aAAa,GACjB,mFAAmFC,qBAAQ,CAACC,MAAM,CAChG;EAAEC,GAAG,EAAE,gCAAgC;EAAEJ,OAAO,EAAE;AAAG,CACvD,CAAC,sDAAsD,GACvD,+BAA+B;;AAEjC;AACA,MAAMK,oBAAoB,GAAGC,MAAM,CAACC,kBAAkB,IAAI,IAAI;AAE9D,MAAMC,kBAAkB,GAAGH,oBAAoB,GAC3CI,iCAAwB,GACxBC,0BAAa,CAACC,kBAAkB;AAEpC,MAAMC,iBAAkD,GACtDJ,kBAAkB,IAClB,IAAIK,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACd,aAAa,CAAC;EAChC;AACF,CACF,CAAC;;AAEH;;AA6FA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASe,QAAQA,CACtBC,OAAe,EACfC,OAAyB,EACI;EAC7B,MAAM;IAAEC,MAAM;IAAE,GAAGC;EAAK,CAAC,GAAGF,OAAO,IAAI,CAAC,CAAC;EACzC,OAAON,iBAAiB,CAAEI,QAAQ,CAACC,OAAO,EAAE;IAC1C,GAAGG,IAAI;IACP,GAAGD;EACL,CAAC,CAAC;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACO,SAASE,MAAMA,CAACC,EAAU,EAA+B;EAC9D,OAAOV,iBAAiB,CAAES,MAAM,CAACC,EAAE,CAAC;AACtC;;AAEA;AACA;AACA;AACA;AACO,SAASC,SAASA,CAAA,EAAgC;EACvD,OAAOX,iBAAiB,CAAEW,SAAS,CAAC,CAAC;AACvC;;AAEA;;AAEO,MAAMC,YAAY,GAAAC,OAAA,CAAAD,YAAA,GAAG;EAC1B;AACF;AACA;AACA;AACA;EACER,QAAQ,EAAEA,CAACC,OAAe,EAAEC,OAAyB,KACnDF,QAAQ,CAACC,OAAO,EAAE;IAAES,IAAI,EAAE,IAAI;IAAE,GAAGR;EAAQ,CAAC,CAAC;EAE/CG,MAAM;EACNE;AACF,CAAC","ignoreList":[]}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import type { ComponentType } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
codegenNativeComponent,
|
|
4
|
-
codegenNativeCommands,
|
|
5
|
-
type ViewProps,
|
|
6
|
-
} from 'react-native';
|
|
7
|
-
import type {
|
|
8
|
-
DirectEventHandler,
|
|
9
|
-
Int32,
|
|
10
|
-
} from 'react-native/Libraries/Types/CodegenTypes';
|
|
11
|
-
|
|
12
|
-
export type ScreenReaderFocusChange = Readonly<{
|
|
13
|
-
isFocused: boolean;
|
|
14
|
-
}>;
|
|
15
|
-
|
|
16
|
-
export type ScreenReaderDescendantFocusChanged = Readonly<{
|
|
17
|
-
status: string;
|
|
18
|
-
nativeId?: string;
|
|
19
|
-
}>;
|
|
20
|
-
|
|
21
|
-
export interface A11yIndexNativeComponentProps extends ViewProps {
|
|
22
|
-
orderIndex?: Int32;
|
|
23
|
-
orderKey?: string;
|
|
24
|
-
orderFocusType?: Int32;
|
|
25
|
-
shouldGroupAccessibilityChildren?: Int32;
|
|
26
|
-
|
|
27
|
-
descendantFocusChangedEnabled?: boolean;
|
|
28
|
-
|
|
29
|
-
onScreenReaderFocused?: DirectEventHandler<{}>;
|
|
30
|
-
onScreenReaderDescendantFocusChanged?: DirectEventHandler<ScreenReaderDescendantFocusChanged>;
|
|
31
|
-
onScreenReaderFocusChange?: DirectEventHandler<ScreenReaderFocusChange>;
|
|
32
|
-
|
|
33
|
-
containerType?: Int32;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export interface NativeCommands {
|
|
37
|
-
// @ts-ignore
|
|
38
|
-
focus: (viewRef: React.ElementRef<ComponentType>) => void;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export const Commands: NativeCommands = codegenNativeCommands<NativeCommands>({
|
|
42
|
-
supportedCommands: ['focus'],
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
export default codegenNativeComponent<A11yIndexNativeComponentProps>(
|
|
46
|
-
'A11yIndexView'
|
|
47
|
-
);
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { codegenNativeComponent, type ViewProps } from 'react-native';
|
|
2
|
-
import type { Int32 } from 'react-native/Libraries/Types/CodegenTypes';
|
|
3
|
-
|
|
4
|
-
export interface A11yLockNativeComponentProps extends ViewProps {
|
|
5
|
-
componentType: Int32;
|
|
6
|
-
containerKey?: string;
|
|
7
|
-
lockDisabled?: boolean;
|
|
8
|
-
forceLock?: boolean;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export default codegenNativeComponent<A11yLockNativeComponentProps>('A11yLock');
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { codegenNativeComponent, type ViewProps } from 'react-native';
|
|
2
|
-
import type { Int32 } from 'react-native/Libraries/Types/CodegenTypes';
|
|
3
|
-
|
|
4
|
-
export interface A11yPaneTitleProps extends ViewProps {
|
|
5
|
-
title?: string;
|
|
6
|
-
detachMessage?: string;
|
|
7
|
-
type: Int32;
|
|
8
|
-
withFocusRestore?: boolean;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export default codegenNativeComponent<A11yPaneTitleProps>('A11yPaneTitle');
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _reactNative = require("react-native");
|
|
8
|
-
// Speech options are kept flat here (bridge contract).
|
|
9
|
-
// The JS API groups them under `speech: {}` and flattens before calling native.
|
|
10
|
-
var _default = exports.default = _reactNative.TurboModuleRegistry.get('A11yAnnounceModule');
|
|
11
|
-
//# sourceMappingURL=NativeA11yAnnounceModule.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_default","exports","default","TurboModuleRegistry","get"],"sourceRoot":"../../../src","sources":["nativeSpecs/NativeA11yAnnounceModule.ts"],"mappings":";;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AAEA;AACA;AAAA,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAiCeC,gCAAmB,CAACC,GAAG,CAAO,oBAAoB,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"type":"commonjs"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|