Skip to content

feat(core): focus selection prompt inputs - #326

Merged
vamgan merged 1 commit into
mainfrom
feat/selection-affordance-wrapper-polish
Jun 6, 2026
Merged

vamgan merged 1 commit into
mainfrom
feat/selection-affordance-wrapper-polish

Conversation

@vamgan

@vamgan vamgan commented Jun 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add initialValue and autoFocus controls to region and text selection prompt affordances
  • focus and select prompt inputs by default after selected context is confirmed
  • use the owning document viewport for text prompt placement and document the suggested-question flow

Verification

  • npm test --workspace @askable-ui/core -- --run src/tests/capture.test.ts src/tests/selection.test.ts
  • npm run build --workspace @askable-ui/core
  • npm test --workspace @askable-ui/core -- --run
  • npm run build:versioned --prefix site/docs

@vercel

vercel Bot commented Jun 6, 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 6, 2026 11:47pm

@pkg-pr-new

pkg-pr-new Bot commented Jun 6, 2026

Copy link
Copy Markdown

Open in StackBlitz

@askable-ui/context

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

@askable-ui/core

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

@askable-ui/create-app

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

@askable-ui/mcp

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

@askable-ui/react

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

@askable-ui/react-native

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

@askable-ui/svelte

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

@askable-ui/vue

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

commit: 4428230

@vamgan
vamgan merged commit e8603fb into main Jun 6, 2026
9 checks passed
@vamgan
vamgan deleted the feat/selection-affordance-wrapper-polish branch June 6, 2026 23:49

This branch was successfully deployed

1 active deployment
Preview — 4428230c Deployed Jun 6, 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.

1 participant