Skip to content

feat(frameworks): re-export a11yTextExtractor for discoverability - #356

Merged
vamgan merged 1 commit into
mainfrom
claude/surface-a11y-extractor
Jun 29, 2026
Merged

vamgan merged 1 commit into
mainfrom
claude/surface-a11y-extractor

Conversation

@vamgan

@vamgan vamgan commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

Summary

a11yTextExtractor — the accessibility-aware text extractor (prefers aria-label → aria-labelledby → title → alt → placeholder → textContent) — was only exported from @askable-ui/core. To use it, framework consumers had to add a second import from core just to pass it as the textExtractor option. For a content-extraction-for-AI library, accessible-name quality is a correctness/a11y concern, so this should be easy to reach.

What's included

  • Re-export a11yTextExtractor from react, vue, solid, svelte, qwik (alongside the existing asMeta re-export), so it sits next to useAskable:

    import { useAskable, a11yTextExtractor } from '@askable-ui/react';
    const { promptContext } = useAskable({ textExtractor: a11yTextExtractor });
  • Documented the framework-hook usage in the Annotating Elements guide's existing "Accessibility-aware text extraction" section.

No new dependencies; the textExtractor option already existed on every framework's useAskable options (they extend AskableContextOptions). React Native is intentionally excluded — it's press-driven and has no HTMLElement to extract from.

Test plan

  • full workspace tsc build clean (all 5 packages)
  • docs build clean
  • CI green

🤖 Generated with Claude Code


Generated by Claude Code

a11yTextExtractor (accessible-name text extraction — aria-label, aria-labelledby,
title, alt, placeholder, then textContent) was only exported from core, so users
had to import it separately to pass as the textExtractor option. Re-export it
from react/vue/solid/svelte/qwik so it sits alongside useAskable, and document
the framework-hook usage in the annotating guide. No new dependencies.
@vercel

vercel Bot commented Jun 29, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
askable Ready Ready Preview, Comment Jun 29, 2026 4:51am

@pkg-pr-new

pkg-pr-new Bot commented Jun 29, 2026

Copy link
Copy Markdown

Open in StackBlitz

@askable-ui/angular

npm i https://pkg.pr.new/@askable-ui/angular@356

@askable-ui/context

npm i https://pkg.pr.new/@askable-ui/context@356

@askable-ui/core

npm i https://pkg.pr.new/@askable-ui/core@356

@askable-ui/create-app

npm i https://pkg.pr.new/@askable-ui/create-app@356

@askable-ui/mcp

npm i https://pkg.pr.new/@askable-ui/mcp@356

@askable-ui/qwik

npm i https://pkg.pr.new/@askable-ui/qwik@356

@askable-ui/react

npm i https://pkg.pr.new/@askable-ui/react@356

@askable-ui/react-native

npm i https://pkg.pr.new/@askable-ui/react-native@356

@askable-ui/solid

npm i https://pkg.pr.new/@askable-ui/solid@356

@askable-ui/svelte

npm i https://pkg.pr.new/@askable-ui/svelte@356

@askable-ui/vue

npm i https://pkg.pr.new/@askable-ui/vue@356

@askable-ui/web-component

npm i https://pkg.pr.new/@askable-ui/web-component@356

commit: e91d5a9

@vamgan
vamgan merged commit 2e5132a into main Jun 29, 2026
9 checks passed
@vamgan
vamgan deleted the claude/surface-a11y-extractor branch June 29, 2026 04:56

This branch was successfully deployed

1 active deployment
Preview — e91d5a9c Deployed Jun 29, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants