react-native-a11y-order 0.11.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 +19 -25
- 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 -3
- 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 -4
- package/lib/module/nativeSpecs/A11yIndexNativeComponent.ts +15 -17
- package/lib/module/nativeSpecs/A11yLockNativeComponent.ts +10 -6
- package/lib/module/nativeSpecs/A11yOrderNativeComponent.ts +6 -4
- package/lib/module/nativeSpecs/A11yPaneTitleNativeComponent.ts +10 -6
- 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 -5
- package/lib/typescript/src/components/A11yIndex/A11yIndex.d.ts.map +1 -1
- package/lib/typescript/src/components/A11yIndex/A11yIndex.web.d.ts +5 -6
- 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 +1 -1
- 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 +4 -4
- 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 +18 -18
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/index.web.d.ts +42 -15
- 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 -35
- 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 +8 -7
- 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 -4
- package/src/nativeSpecs/A11yIndexNativeComponent.ts +15 -17
- package/src/nativeSpecs/A11yLockNativeComponent.ts +10 -6
- package/src/nativeSpecs/A11yOrderNativeComponent.ts +6 -4
- package/src/nativeSpecs/A11yPaneTitleNativeComponent.ts +10 -6
- 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 -119
- 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 -9
- package/lib/commonjs/nativeSpecs/A11yIndexNativeComponent.ts +0 -47
- package/lib/commonjs/nativeSpecs/A11yLockNativeComponent.ts +0 -13
- package/lib/commonjs/nativeSpecs/A11yOrderNativeComponent.ts +0 -11
- package/lib/commonjs/nativeSpecs/A11yPaneTitleNativeComponent.ts +0 -13
- 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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAaA,YAAY,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAaA,YAAY,EAAE,aAAa,EAAE,MAAM,yCAAsC,CAAC;AAC1E,YAAY,EAAE,cAAc,EAAE,MAAM,2CAAwC,CAAC;AAC7E,YAAY,EACV,cAAc,EACd,aAAa,EACb,aAAa,GACd,MAAM,2CAAwC,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAAwC,CAAC;AAC3E,YAAY,EACV,aAAa,EACb,uCAAuC,GACxC,MAAM,yCAAsC,CAAC;AAC9C,YAAY,EACV,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,yCAAsC,CAAC;AAC9C,YAAY,EACV,kBAAkB,EAClB,qBAAqB,EACrB,YAAY,GACb,MAAM,mDAAgD,CAAC;AAIxD,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAShB,CAAC;AAEF,OAAO,EACL,YAAY,EACZ,QAAQ,EACR,MAAM,EACN,SAAS,GACV,MAAM,8BAA8B,CAAC;AACtC,YAAY,EACV,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,kBAAkB,GACnB,MAAM,8BAA8B,CAAC"}
|
|
@@ -1,28 +1,55 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
export {
|
|
4
|
-
export type {
|
|
5
|
-
export type { A11yViewProps } from './components/A11yView/A11yView.types';
|
|
1
|
+
export type { IndexCommands, A11yOrderType, A11yIndexProps, } from './components/A11yIndex/A11yIndex.types.js';
|
|
2
|
+
export { A11yOrderTypeEnum } from './components/A11yIndex/A11yIndex.types.js';
|
|
3
|
+
export type { ScreenReaderDescendantFocusChangedEvent } from './components/A11yView/A11yView.types.js';
|
|
4
|
+
export type { A11yViewProps } from './components/A11yView/A11yView.types.js';
|
|
6
5
|
export declare const A11y: {
|
|
7
|
-
Order:
|
|
8
|
-
|
|
6
|
+
Order: (props: Omit<import("react-native").ViewProps, keyof {
|
|
7
|
+
ref?: React.Ref<import("react-native").ViewInstance> | undefined;
|
|
8
|
+
}> & {
|
|
9
|
+
ref?: React.Ref<import("react-native").ViewInstance> | undefined;
|
|
10
|
+
}) => React.ReactNode;
|
|
11
|
+
Index: import("react").NamedExoticComponent<import("react-native").ViewProps & {
|
|
9
12
|
children: React.ReactNode;
|
|
10
13
|
index?: number;
|
|
11
14
|
orderType?: import(".").A11yOrderType;
|
|
12
|
-
a11yUIContainer?: import("./components/A11yIndex/A11yIndex.types").A11yUIContainerType;
|
|
15
|
+
a11yUIContainer?: import("./components/A11yIndex/A11yIndex.types.js").A11yUIContainerType;
|
|
13
16
|
shouldGroupAccessibilityChildren?: boolean;
|
|
14
17
|
onScreenReaderFocused?: () => void;
|
|
15
18
|
onScreenReaderSubViewFocusChange?: (isFocused: boolean) => void;
|
|
16
19
|
onScreenReaderSubViewFocused?: () => void;
|
|
17
20
|
onScreenReaderSubViewBlurred?: () => void;
|
|
18
21
|
onScreenReaderDescendantFocusChanged?: (e: import(".").ScreenReaderDescendantFocusChangedEvent) => void;
|
|
19
|
-
} & import("react").RefAttributes<import(".").IndexCommands
|
|
20
|
-
View:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
} & import("react").RefAttributes<import(".").IndexCommands>>;
|
|
23
|
+
View: (props: Omit<import("react-native").ViewProps, keyof {
|
|
24
|
+
ref?: React.Ref<import("react-native").ViewInstance> | undefined;
|
|
25
|
+
}> & {
|
|
26
|
+
ref?: React.Ref<import("react-native").ViewInstance> | undefined;
|
|
27
|
+
}) => React.ReactNode;
|
|
28
|
+
PaneTitle: (props: Omit<import("react-native").ViewProps, keyof {
|
|
29
|
+
ref?: React.Ref<import("react-native").ViewInstance> | undefined;
|
|
30
|
+
}> & {
|
|
31
|
+
ref?: React.Ref<import("react-native").ViewInstance> | undefined;
|
|
32
|
+
}) => React.ReactNode;
|
|
33
|
+
ScreenChange: (props: Omit<import("react-native").ViewProps, keyof {
|
|
34
|
+
ref?: React.Ref<import("react-native").ViewInstance> | undefined;
|
|
35
|
+
}> & {
|
|
36
|
+
ref?: React.Ref<import("react-native").ViewInstance> | undefined;
|
|
37
|
+
}) => React.ReactNode;
|
|
38
|
+
FocusFrame: (props: Omit<import("react-native").ViewProps, keyof {
|
|
39
|
+
ref?: React.Ref<import("react-native").ViewInstance> | undefined;
|
|
40
|
+
}> & {
|
|
41
|
+
ref?: React.Ref<import("react-native").ViewInstance> | undefined;
|
|
42
|
+
}) => React.ReactNode;
|
|
43
|
+
FocusTrap: (props: Omit<import("react-native").ViewProps, keyof {
|
|
44
|
+
ref?: React.Ref<import("react-native").ViewInstance> | undefined;
|
|
45
|
+
}> & {
|
|
46
|
+
ref?: React.Ref<import("react-native").ViewInstance> | undefined;
|
|
47
|
+
}) => React.ReactNode;
|
|
48
|
+
Card: (props: Omit<import("react-native").ViewProps, keyof {
|
|
49
|
+
ref?: React.Ref<import("react-native").ViewInstance> | undefined;
|
|
50
|
+
}> & {
|
|
51
|
+
ref?: React.Ref<import("react-native").ViewInstance> | undefined;
|
|
52
|
+
}) => React.ReactNode;
|
|
26
53
|
};
|
|
27
54
|
export { ScreenReader } from './modules/A11yAnnounceModule';
|
|
28
55
|
//# sourceMappingURL=index.web.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../../src/index.web.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../../src/index.web.ts"],"names":[],"mappings":"AAGA,YAAY,EACV,aAAa,EACb,aAAa,EACb,cAAc,GACf,MAAM,2CAAwC,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAAwC,CAAC;AAE3E,YAAY,EAAE,uCAAuC,EAAE,MAAM,yCAAsC,CAAC;AAEpG,YAAY,EAAE,aAAa,EAAE,MAAM,yCAAsC,CAAC;AAE1E,eAAO,MAAM,IAAI;;WAWe,CAAC;;WACV,CAAC;;;;;;;;;;;;;;;WADQ,CAAC;;WACV,CAAC;;;WADQ,CAAC;;WACV,CAAC;;;WADQ,CAAC;;WACV,CAAC;;;WADQ,CAAC;;WACV,CAAC;;;WADQ,CAAC;;WACV,CAAC;;;WADQ,CAAC;;WACV,CAAC;;CAHvB,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"A11yAnnounceModule.d.ts","sourceRoot":"","sources":["../../../../src/modules/A11yAnnounceModule.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"A11yAnnounceModule.d.ts","sourceRoot":"","sources":["../../../../src/modules/A11yAnnounceModule.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,gBAAgB,GAAG,KAAK,GAAG,SAAS,GAAG,MAAM,CAAC;AAE1D,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,OAAO,GAAG,WAAW,CAAC;AAE9D,MAAM,MAAM,eAAe,GAAG;IAC5B;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAE5B;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;;;;;;;;OASG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,MAAM,CAAC,EAAE;QACP;;;WAGG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC;QAElB;;;WAGG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf;;;;WAIG;QACH,QAAQ,CAAC,EAAE,OAAO,CAAC;QAEnB;;;WAGG;QACH,WAAW,CAAC,EAAE,OAAO,CAAC;QAEtB;;;WAGG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,qCAAqC;IACrC,EAAE,EAAE,MAAM,CAAC;IACX;;;;;;OAMG;IACH,MAAM,EAAE,cAAc,CAAC;CACxB,CAAC;AAIF;;;;;;;;;;;GAWG;AACH,wBAAgB,QAAQ,CACtB,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,eAAe,GACxB,OAAO,CAAC,kBAAkB,CAAC,CAM7B;AAED;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAE9D;AAED;;;GAGG;AACH,wBAAgB,SAAS,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAEvD;AAID,eAAO,MAAM,YAAY;IACvB;;;;OAIG;wBACiB,MAAM,YAAY,eAAe;;;CAKtD,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type ViewProps, type HostComponent } from 'react-native';
|
|
2
2
|
export interface A11yCardNativeComponentProps extends ViewProps {
|
|
3
3
|
}
|
|
4
|
-
declare const _default:
|
|
4
|
+
declare const _default: HostComponent<A11yCardNativeComponentProps>;
|
|
5
5
|
export default _default;
|
|
6
6
|
//# sourceMappingURL=A11yCardNativeComponent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"A11yCardNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/nativeSpecs/A11yCardNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"A11yCardNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/nativeSpecs/A11yCardNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,SAAS,EACd,KAAK,aAAa,EACnB,MAAM,cAAc,CAAC;AAEtB,MAAM,WAAW,4BAA6B,SAAQ,SAAS;CAAG;wBAI7D,aAAa,CAAC,4BAA4B,CAAC;AAFhD,wBAEiD"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { ComponentType } from 'react';
|
|
2
|
-
import type
|
|
3
|
-
import type { DirectEventHandler, Int32 } from 'react-native/Libraries/Types/CodegenTypes';
|
|
2
|
+
import { type ViewProps, type CodegenTypes, type HostComponent } from 'react-native';
|
|
4
3
|
export type ScreenReaderFocusChange = Readonly<{
|
|
5
4
|
isFocused: boolean;
|
|
6
5
|
}>;
|
|
@@ -9,20 +8,20 @@ export type ScreenReaderDescendantFocusChanged = Readonly<{
|
|
|
9
8
|
nativeId?: string;
|
|
10
9
|
}>;
|
|
11
10
|
export interface A11yIndexNativeComponentProps extends ViewProps {
|
|
12
|
-
orderIndex?: Int32;
|
|
11
|
+
orderIndex?: CodegenTypes.Int32;
|
|
13
12
|
orderKey?: string;
|
|
14
|
-
orderFocusType?: Int32;
|
|
15
|
-
shouldGroupAccessibilityChildren?: Int32;
|
|
13
|
+
orderFocusType?: CodegenTypes.Int32;
|
|
14
|
+
shouldGroupAccessibilityChildren?: CodegenTypes.Int32;
|
|
16
15
|
descendantFocusChangedEnabled?: boolean;
|
|
17
|
-
onScreenReaderFocused?: DirectEventHandler<{}>;
|
|
18
|
-
onScreenReaderDescendantFocusChanged?: DirectEventHandler<ScreenReaderDescendantFocusChanged>;
|
|
19
|
-
onScreenReaderFocusChange?: DirectEventHandler<ScreenReaderFocusChange>;
|
|
20
|
-
containerType?: Int32;
|
|
16
|
+
onScreenReaderFocused?: CodegenTypes.DirectEventHandler<{}>;
|
|
17
|
+
onScreenReaderDescendantFocusChanged?: CodegenTypes.DirectEventHandler<ScreenReaderDescendantFocusChanged>;
|
|
18
|
+
onScreenReaderFocusChange?: CodegenTypes.DirectEventHandler<ScreenReaderFocusChange>;
|
|
19
|
+
containerType?: CodegenTypes.Int32;
|
|
21
20
|
}
|
|
22
21
|
export interface NativeCommands {
|
|
23
22
|
focus: (viewRef: React.ElementRef<ComponentType>) => void;
|
|
24
23
|
}
|
|
25
24
|
export declare const Commands: NativeCommands;
|
|
26
|
-
declare const _default:
|
|
25
|
+
declare const _default: HostComponent<A11yIndexNativeComponentProps>;
|
|
27
26
|
export default _default;
|
|
28
27
|
//# sourceMappingURL=A11yIndexNativeComponent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"A11yIndexNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/nativeSpecs/A11yIndexNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"A11yIndexNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/nativeSpecs/A11yIndexNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAGL,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,aAAa,EACnB,MAAM,cAAc,CAAC;AAEtB,MAAM,MAAM,uBAAuB,GAAG,QAAQ,CAAC;IAC7C,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC,CAAC;AAEH,MAAM,MAAM,kCAAkC,GAAG,QAAQ,CAAC;IACxD,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC,CAAC;AAEH,MAAM,WAAW,6BAA8B,SAAQ,SAAS;IAC9D,UAAU,CAAC,EAAE,YAAY,CAAC,KAAK,CAAC;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,YAAY,CAAC,KAAK,CAAC;IACpC,gCAAgC,CAAC,EAAE,YAAY,CAAC,KAAK,CAAC;IAEtD,6BAA6B,CAAC,EAAE,OAAO,CAAC;IAExC,qBAAqB,CAAC,EAAE,YAAY,CAAC,kBAAkB,CAAC,EAAE,CAAC,CAAC;IAC5D,oCAAoC,CAAC,EAAE,YAAY,CAAC,kBAAkB,CAAC,kCAAkC,CAAC,CAAC;IAC3G,yBAAyB,CAAC,EAAE,YAAY,CAAC,kBAAkB,CAAC,uBAAuB,CAAC,CAAC;IAErF,aAAa,CAAC,EAAE,YAAY,CAAC,KAAK,CAAC;CACpC;AAED,MAAM,WAAW,cAAc;IAE7B,KAAK,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,KAAK,IAAI,CAAC;CAC3D;AAED,eAAO,MAAM,QAAQ,EAAE,cAErB,CAAC;wBAIE,aAAa,CAAC,6BAA6B,CAAC;AAFjD,wBAEkD"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type { Int32 } from 'react-native/Libraries/Types/CodegenTypes';
|
|
1
|
+
import { type HostComponent, type ViewProps, type CodegenTypes } from 'react-native';
|
|
3
2
|
export interface A11yLockNativeComponentProps extends ViewProps {
|
|
4
|
-
componentType: Int32;
|
|
3
|
+
componentType: CodegenTypes.Int32;
|
|
5
4
|
containerKey?: string;
|
|
6
5
|
lockDisabled?: boolean;
|
|
7
6
|
forceLock?: boolean;
|
|
8
7
|
}
|
|
9
|
-
declare const _default:
|
|
8
|
+
declare const _default: HostComponent<A11yLockNativeComponentProps>;
|
|
10
9
|
export default _default;
|
|
11
10
|
//# sourceMappingURL=A11yLockNativeComponent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"A11yLockNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/nativeSpecs/A11yLockNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"A11yLockNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/nativeSpecs/A11yLockNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,YAAY,EAClB,MAAM,cAAc,CAAC;AAEtB,MAAM,WAAW,4BAA6B,SAAQ,SAAS;IAC7D,aAAa,EAAE,YAAY,CAAC,KAAK,CAAC;IAClC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;wBAII,aAAa,CAAC,4BAA4B,CAAC;AAFhD,wBAEiD"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type HostComponent, type ViewProps } from 'react-native';
|
|
2
2
|
export interface A11yOrderNativeComponentProps extends ViewProps {
|
|
3
3
|
orderKey: string;
|
|
4
4
|
}
|
|
5
|
-
declare const _default:
|
|
5
|
+
declare const _default: HostComponent<A11yOrderNativeComponentProps>;
|
|
6
6
|
export default _default;
|
|
7
7
|
//# sourceMappingURL=A11yOrderNativeComponent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"A11yOrderNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/nativeSpecs/A11yOrderNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"A11yOrderNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/nativeSpecs/A11yOrderNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAEtB,MAAM,WAAW,6BAA8B,SAAQ,SAAS;IAC9D,QAAQ,EAAE,MAAM,CAAC;CAClB;wBAII,aAAa,CAAC,6BAA6B,CAAC;AAFjD,wBAEkD"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type { Int32 } from 'react-native/Libraries/Types/CodegenTypes';
|
|
1
|
+
import { type ViewProps, type CodegenTypes, type HostComponent } from 'react-native';
|
|
3
2
|
export interface A11yPaneTitleProps extends ViewProps {
|
|
4
3
|
title?: string;
|
|
5
4
|
detachMessage?: string;
|
|
6
|
-
type: Int32;
|
|
5
|
+
type: CodegenTypes.Int32;
|
|
7
6
|
withFocusRestore?: boolean;
|
|
8
7
|
}
|
|
9
|
-
declare const _default:
|
|
8
|
+
declare const _default: HostComponent<A11yPaneTitleProps>;
|
|
10
9
|
export default _default;
|
|
11
10
|
//# sourceMappingURL=A11yPaneTitleNativeComponent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"A11yPaneTitleNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/nativeSpecs/A11yPaneTitleNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"A11yPaneTitleNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/nativeSpecs/A11yPaneTitleNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,aAAa,EACnB,MAAM,cAAc,CAAC;AAEtB,MAAM,WAAW,kBAAmB,SAAQ,SAAS;IACnD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,YAAY,CAAC,KAAK,CAAC;IACzB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;wBAII,aAAa,CAAC,kBAAkB,CAAC;AAFtC,wBAEuC"}
|
|
@@ -22,6 +22,6 @@ export interface Spec extends TurboModule {
|
|
|
22
22
|
/** Drains the queue and interrupts current speech. */
|
|
23
23
|
cancelAll(): Promise<AnnouncementResult>;
|
|
24
24
|
}
|
|
25
|
-
declare const _default: Spec
|
|
25
|
+
declare const _default: Spec;
|
|
26
26
|
export default _default;
|
|
27
27
|
//# sourceMappingURL=NativeA11yAnnounceModule.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NativeA11yAnnounceModule.d.ts","sourceRoot":"","sources":["../../../../src/nativeSpecs/NativeA11yAnnounceModule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAKhD,KAAK,eAAe,GAAG,QAAQ,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC,CAAC;AAEH,KAAK,kBAAkB,GAAG,QAAQ,CAAC;IACjC,EAAE,EAAE,MAAM,CAAC;IAIX,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC,CAAC;AAEH,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,+EAA+E;IAC/E,QAAQ,CACN,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,eAAe,GACxB,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAC/B,4FAA4F;IAC5F,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAChD,sDAAsD;IACtD,SAAS,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAAC;CAC1C;;AAED,
|
|
1
|
+
{"version":3,"file":"NativeA11yAnnounceModule.d.ts","sourceRoot":"","sources":["../../../../src/nativeSpecs/NativeA11yAnnounceModule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAKhD,KAAK,eAAe,GAAG,QAAQ,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC,CAAC;AAEH,KAAK,kBAAkB,GAAG,QAAQ,CAAC;IACjC,EAAE,EAAE,MAAM,CAAC;IAIX,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC,CAAC;AAEH,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,+EAA+E;IAC/E,QAAQ,CACN,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,eAAe,GACxB,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAC/B,4FAA4F;IAC5F,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAChD,sDAAsD;IACtD,SAAS,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAAC;CAC1C;;AAED,wBAA4E"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-a11y-order",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "2.0.0-rc",
|
|
4
4
|
"description": "ReactNative library for managing screen reader focus ordering",
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
"types": "./lib/typescript/src/index.d.ts",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"react-native-external-keyboard-source": "./src/index.tsx",
|
|
9
|
+
"types": "./lib/typescript/src/index.d.ts",
|
|
10
|
+
"default": "./lib/module/index.js"
|
|
11
|
+
},
|
|
12
|
+
"./package.json": "./package.json"
|
|
13
|
+
},
|
|
10
14
|
"files": [
|
|
11
15
|
"src",
|
|
12
16
|
"lib",
|
|
@@ -15,6 +19,7 @@
|
|
|
15
19
|
"cpp",
|
|
16
20
|
"*.podspec",
|
|
17
21
|
"react-native.config.js",
|
|
22
|
+
"!lib/typescript/example",
|
|
18
23
|
"!ios/build",
|
|
19
24
|
"!android/build",
|
|
20
25
|
"!android/gradle",
|
|
@@ -30,7 +35,6 @@
|
|
|
30
35
|
],
|
|
31
36
|
"scripts": {
|
|
32
37
|
"example": "yarn workspace a11y-order-example",
|
|
33
|
-
"example-legacy": "yarn workspace A11yOrderExample",
|
|
34
38
|
"clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib",
|
|
35
39
|
"prepare": "bob build",
|
|
36
40
|
"typecheck": "tsc",
|
|
@@ -62,45 +66,50 @@
|
|
|
62
66
|
"registry": "https://registry.npmjs.org/"
|
|
63
67
|
},
|
|
64
68
|
"devDependencies": {
|
|
65
|
-
"@commitlint/config-conventional": "^
|
|
66
|
-
"@eslint/compat": "^1.
|
|
67
|
-
"@eslint/eslintrc": "^3.3.
|
|
68
|
-
"@eslint/js": "^9.
|
|
69
|
-
"@
|
|
70
|
-
"@react-native/
|
|
71
|
-
"@
|
|
72
|
-
"@
|
|
73
|
-
"@
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
69
|
+
"@commitlint/config-conventional": "^21.2.0",
|
|
70
|
+
"@eslint/compat": "^2.1.0",
|
|
71
|
+
"@eslint/eslintrc": "^3.3.6",
|
|
72
|
+
"@eslint/js": "^9.39.5",
|
|
73
|
+
"@jest/globals": "^29.7.0",
|
|
74
|
+
"@react-native/babel-preset": "0.86.2",
|
|
75
|
+
"@react-native/eslint-config": "0.86.2",
|
|
76
|
+
"@react-native/jest-preset": "0.86.2",
|
|
77
|
+
"@release-it/conventional-changelog": "^12.0.0",
|
|
78
|
+
"@types/react": "^19.2.0",
|
|
79
|
+
"commitlint": "^21.2.1",
|
|
80
|
+
"del-cli": "^7.0.0",
|
|
81
|
+
"eslint": "^9.39.5",
|
|
77
82
|
"eslint-config-prettier": "^10.1.8",
|
|
78
|
-
"eslint-plugin-
|
|
83
|
+
"eslint-plugin-ft-flow": "^3.0.11",
|
|
84
|
+
"eslint-plugin-prettier": "^5.5.6",
|
|
79
85
|
"jest": "^29.7.0",
|
|
80
|
-
"lefthook": "^2.
|
|
81
|
-
"prettier": "^
|
|
82
|
-
"react": "
|
|
83
|
-
"react-native": "0.
|
|
84
|
-
"react-native-builder-bob": "^0.
|
|
85
|
-
"release-it": "^
|
|
86
|
-
"turbo": "^2.
|
|
87
|
-
"typescript": "^
|
|
86
|
+
"lefthook": "^2.1.10",
|
|
87
|
+
"prettier": "^3.9.6",
|
|
88
|
+
"react": "19.2.3",
|
|
89
|
+
"react-native": "0.87.1",
|
|
90
|
+
"react-native-builder-bob": "^0.43.1",
|
|
91
|
+
"release-it": "^21.0.1",
|
|
92
|
+
"turbo": "^2.10.8",
|
|
93
|
+
"typescript": "^6.0.3"
|
|
88
94
|
},
|
|
89
95
|
"peerDependencies": {
|
|
90
|
-
"react": "
|
|
91
|
-
"react-native": "
|
|
96
|
+
"react": ">=19.2.0",
|
|
97
|
+
"react-native": ">=0.87.0"
|
|
92
98
|
},
|
|
93
99
|
"workspaces": [
|
|
94
|
-
"example"
|
|
95
|
-
"A11yOrderExample"
|
|
100
|
+
"example"
|
|
96
101
|
],
|
|
97
102
|
"packageManager": "yarn@4.11.0",
|
|
98
103
|
"react-native-builder-bob": {
|
|
99
104
|
"source": "src",
|
|
100
105
|
"output": "lib",
|
|
101
106
|
"targets": [
|
|
102
|
-
|
|
103
|
-
|
|
107
|
+
[
|
|
108
|
+
"module",
|
|
109
|
+
{
|
|
110
|
+
"esm": true
|
|
111
|
+
}
|
|
112
|
+
],
|
|
104
113
|
[
|
|
105
114
|
"typescript",
|
|
106
115
|
{
|
|
@@ -113,6 +122,9 @@
|
|
|
113
122
|
"name": "RNA11yOrderSpec",
|
|
114
123
|
"type": "all",
|
|
115
124
|
"jsSrcsDir": "src",
|
|
125
|
+
"android": {
|
|
126
|
+
"javaPackageName": "com.a11yorder"
|
|
127
|
+
},
|
|
116
128
|
"ios": {
|
|
117
129
|
"componentProvider": {
|
|
118
130
|
"A11yCardView": "RNAOA11yCardView",
|
|
@@ -134,7 +146,14 @@
|
|
|
134
146
|
"useTabs": false
|
|
135
147
|
},
|
|
136
148
|
"jest": {
|
|
137
|
-
"preset": "react-native",
|
|
149
|
+
"preset": "@react-native/jest-preset",
|
|
150
|
+
"testEnvironmentOptions": {
|
|
151
|
+
"customExportConditions": [
|
|
152
|
+
"require",
|
|
153
|
+
"react-native",
|
|
154
|
+
"react-native-a11y-order-source"
|
|
155
|
+
]
|
|
156
|
+
},
|
|
138
157
|
"modulePathIgnorePatterns": [
|
|
139
158
|
"<rootDir>/example/node_modules",
|
|
140
159
|
"<rootDir>/lib/"
|
|
@@ -13,8 +13,8 @@ Pod::Spec.new do |s|
|
|
|
13
13
|
s.platforms = { :ios => min_ios_version_supported }
|
|
14
14
|
s.source = { :git => "https://github.com/ArturKalach/react-native-a11y-order.git", :tag => "#{s.version}" }
|
|
15
15
|
|
|
16
|
-
s.source_files = "ios/**/*.{h,m,mm,cpp}"
|
|
17
|
-
s.private_header_files = "ios
|
|
16
|
+
s.source_files = "ios/**/*.{h,m,mm,swift,cpp}"
|
|
17
|
+
s.private_header_files = "ios/**/*.h"
|
|
18
18
|
|
|
19
19
|
install_modules_dependencies(s)
|
|
20
20
|
end
|
|
@@ -30,8 +30,8 @@ function useScreenReaderProps({
|
|
|
30
30
|
}: ScreenReaderCallbacks) {
|
|
31
31
|
const hasHandler = Boolean(
|
|
32
32
|
onScreenReaderSubViewBlurred ||
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
onScreenReaderSubViewFocused ||
|
|
34
|
+
onScreenReaderSubViewFocusChange
|
|
35
35
|
);
|
|
36
36
|
|
|
37
37
|
const onScreenReaderFocusChange = React.useCallback(
|
|
@@ -74,8 +74,9 @@ function useFocusRef(ref: React.ForwardedRef<IndexCommands>) {
|
|
|
74
74
|
if (prop === 'focus') {
|
|
75
75
|
return () => {
|
|
76
76
|
if (localRef.current) {
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
Commands.focus(
|
|
78
|
+
localRef.current as unknown as React.Component<{}, any, any>
|
|
79
|
+
);
|
|
79
80
|
}
|
|
80
81
|
};
|
|
81
82
|
}
|
|
@@ -147,8 +148,8 @@ export const A11yIndex = React.memo(
|
|
|
147
148
|
shouldGroupAccessibilityChildren === undefined
|
|
148
149
|
? -1
|
|
149
150
|
: shouldGroupAccessibilityChildren
|
|
150
|
-
|
|
151
|
-
|
|
151
|
+
? 1
|
|
152
|
+
: 0;
|
|
152
153
|
|
|
153
154
|
const screenReaderNativeProps = useScreenReaderProps({
|
|
154
155
|
onScreenReaderFocused,
|
|
@@ -165,7 +166,7 @@ export const A11yIndex = React.memo(
|
|
|
165
166
|
|
|
166
167
|
return (
|
|
167
168
|
<A11yIndexView
|
|
168
|
-
ref={localRef
|
|
169
|
+
ref={localRef}
|
|
169
170
|
{...viewProps}
|
|
170
171
|
containerType={containerTypeValue}
|
|
171
172
|
shouldGroupAccessibilityChildren={shouldGroupChildrenValue}
|
|
@@ -1,30 +1,5 @@
|
|
|
1
|
-
import { NativeModules, Platform } from 'react-native';
|
|
2
1
|
import NativeA11yAnnounceModule from '../nativeSpecs/NativeA11yAnnounceModule';
|
|
3
2
|
|
|
4
|
-
const LINKING_ERROR =
|
|
5
|
-
`The package 'react-native-a11y-order' doesn't seem to be linked. Make sure: \n\n${Platform.select(
|
|
6
|
-
{ ios: "- You have run 'pod install'\n", default: '' }
|
|
7
|
-
)}- You rebuilt the app after installing the package\n` +
|
|
8
|
-
`- You are not using Expo Go\n`;
|
|
9
|
-
|
|
10
|
-
// @ts-expect-error
|
|
11
|
-
const isTurboModuleEnabled = global.__turboModuleProxy != null;
|
|
12
|
-
|
|
13
|
-
const A11yAnnounceNative = isTurboModuleEnabled
|
|
14
|
-
? NativeA11yAnnounceModule
|
|
15
|
-
: NativeModules.A11yAnnounceModule;
|
|
16
|
-
|
|
17
|
-
const A11yAnnounceProxy: typeof NativeA11yAnnounceModule =
|
|
18
|
-
A11yAnnounceNative ??
|
|
19
|
-
new Proxy(
|
|
20
|
-
{},
|
|
21
|
-
{
|
|
22
|
-
get() {
|
|
23
|
-
throw new Error(LINKING_ERROR);
|
|
24
|
-
},
|
|
25
|
-
}
|
|
26
|
-
);
|
|
27
|
-
|
|
28
3
|
// ─── Types ────────────────────────────────────────────────────────────────────
|
|
29
4
|
|
|
30
5
|
export type AnnouncePriority = 'low' | 'default' | 'high';
|
|
@@ -137,7 +112,7 @@ export function announce(
|
|
|
137
112
|
options?: AnnounceOptions
|
|
138
113
|
): Promise<AnnouncementResult> {
|
|
139
114
|
const { speech, ...rest } = options ?? {};
|
|
140
|
-
return
|
|
115
|
+
return NativeA11yAnnounceModule.announce(message, {
|
|
141
116
|
...rest,
|
|
142
117
|
...speech,
|
|
143
118
|
}) as Promise<AnnouncementResult>;
|
|
@@ -149,7 +124,7 @@ export function announce(
|
|
|
149
124
|
* In direct mode, interrupts the active announcement if it matches.
|
|
150
125
|
*/
|
|
151
126
|
export function cancel(id: string): Promise<AnnouncementResult> {
|
|
152
|
-
return
|
|
127
|
+
return NativeA11yAnnounceModule.cancel(id) as Promise<AnnouncementResult>;
|
|
153
128
|
}
|
|
154
129
|
|
|
155
130
|
/**
|
|
@@ -157,7 +132,7 @@ export function cancel(id: string): Promise<AnnouncementResult> {
|
|
|
157
132
|
* Calm-mode promises resolve with `status: 'cancelled'`.
|
|
158
133
|
*/
|
|
159
134
|
export function cancelAll(): Promise<AnnouncementResult> {
|
|
160
|
-
return
|
|
135
|
+
return NativeA11yAnnounceModule.cancelAll() as Promise<AnnouncementResult>;
|
|
161
136
|
}
|
|
162
137
|
|
|
163
138
|
// ─── Namespace export (backward-compatible) ───────────────────────────────────
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import {
|
|
2
|
+
codegenNativeComponent,
|
|
3
|
+
type ViewProps,
|
|
4
|
+
type HostComponent,
|
|
5
|
+
} from 'react-native';
|
|
4
6
|
|
|
5
7
|
export interface A11yCardNativeComponentProps extends ViewProps {}
|
|
6
8
|
|
|
7
9
|
export default codegenNativeComponent<A11yCardNativeComponentProps>(
|
|
8
10
|
'A11yCardView'
|
|
9
|
-
)
|
|
11
|
+
) as HostComponent<A11yCardNativeComponentProps>;
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import type { ComponentType } from 'react';
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
// eslint-disable-next-line @react-native/no-deep-imports
|
|
10
|
-
import codegenNativeCommands from 'react-native/Libraries/Utilities/codegenNativeCommands';
|
|
2
|
+
import {
|
|
3
|
+
codegenNativeComponent,
|
|
4
|
+
codegenNativeCommands,
|
|
5
|
+
type ViewProps,
|
|
6
|
+
type CodegenTypes,
|
|
7
|
+
type HostComponent,
|
|
8
|
+
} from 'react-native';
|
|
11
9
|
|
|
12
10
|
export type ScreenReaderFocusChange = Readonly<{
|
|
13
11
|
isFocused: boolean;
|
|
@@ -19,18 +17,18 @@ export type ScreenReaderDescendantFocusChanged = Readonly<{
|
|
|
19
17
|
}>;
|
|
20
18
|
|
|
21
19
|
export interface A11yIndexNativeComponentProps extends ViewProps {
|
|
22
|
-
orderIndex?: Int32;
|
|
20
|
+
orderIndex?: CodegenTypes.Int32;
|
|
23
21
|
orderKey?: string;
|
|
24
|
-
orderFocusType?: Int32;
|
|
25
|
-
shouldGroupAccessibilityChildren?: Int32;
|
|
22
|
+
orderFocusType?: CodegenTypes.Int32;
|
|
23
|
+
shouldGroupAccessibilityChildren?: CodegenTypes.Int32;
|
|
26
24
|
|
|
27
25
|
descendantFocusChangedEnabled?: boolean;
|
|
28
26
|
|
|
29
|
-
onScreenReaderFocused?: DirectEventHandler<{}>;
|
|
30
|
-
onScreenReaderDescendantFocusChanged?: DirectEventHandler<ScreenReaderDescendantFocusChanged>;
|
|
31
|
-
onScreenReaderFocusChange?: DirectEventHandler<ScreenReaderFocusChange>;
|
|
27
|
+
onScreenReaderFocused?: CodegenTypes.DirectEventHandler<{}>;
|
|
28
|
+
onScreenReaderDescendantFocusChanged?: CodegenTypes.DirectEventHandler<ScreenReaderDescendantFocusChanged>;
|
|
29
|
+
onScreenReaderFocusChange?: CodegenTypes.DirectEventHandler<ScreenReaderFocusChange>;
|
|
32
30
|
|
|
33
|
-
containerType?: Int32;
|
|
31
|
+
containerType?: CodegenTypes.Int32;
|
|
34
32
|
}
|
|
35
33
|
|
|
36
34
|
export interface NativeCommands {
|
|
@@ -44,4 +42,4 @@ export const Commands: NativeCommands = codegenNativeCommands<NativeCommands>({
|
|
|
44
42
|
|
|
45
43
|
export default codegenNativeComponent<A11yIndexNativeComponentProps>(
|
|
46
44
|
'A11yIndexView'
|
|
47
|
-
)
|
|
45
|
+
) as HostComponent<A11yIndexNativeComponentProps>;
|