- a18ed66: Add
focusOnPresetKeyinit option (defaulttrue) to control whether a component is automatically focused when it is added and its focus key was already set as the current focus key (e.g.setFocuswas called before the component mounted). Set it tofalseto disable this implicit refocus on add.
-
0a867bd: Add accessibility labels on focusable components.
Introduces a new optional
onUtterTextcallback oninit()and anaccessibilityLabelprop onuseFocusable()(and the underlyingaddFocusable/updateFocusablepayloads). When focus lands on a focusable component, the library concatenates the labels of all newly-entered parent regions with the leaf node's own label and passes the resulting string toonUtterText. Parent region labels are only included when focus enters a region for the first time (similar to howaria-labelonrole="region"behaves), so subsequent focus moves within the same parent only utter the leaf label.This library does not implement Text-To-Speech itself — it only provides a unified way to declare accessibility labels and wire the callback to the platform's TTS engine, which is particularly useful for cross-platform TV apps where native
aria-*support is fragmented.
- 74b4165: - Fixed missing null checks for
getForcedFocusKeyinsmartNavigateandsetFocus - 98bef7c: - Deprecate
nativeModeoption - ed4186e: - Make
focusDetailsoptional innavigateByDirection
- 0b853ae: New package distribution structure
- 657d1f3: Added ESM bundle