Skip to content

feat(core): expose selection capture state - #329

Merged
vamgan merged 1 commit into
mainfrom
feat/selection-affordance-state
Jun 7, 2026
Merged

vamgan merged 1 commit into
mainfrom
feat/selection-affordance-state

Conversation

@vamgan

@vamgan vamgan commented Jun 7, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add getSelection() to region and text capture handles
  • expose the pinned packet, selection data, and rendered affordance element
  • pass the state API through React, Vue, and Svelte capture wrappers
  • document the selected-state lifecycle for core and framework APIs

Verification

  • npm run test -w @askable-ui/core -- capture.test.ts selection.test.ts
  • npm run test -w @askable-ui/react -- useAskableRegionCapture.test.tsx useAskableTextSelectionCapture.test.tsx
  • npm run build -w @askable-ui/core
  • npm run build -w @askable-ui/react
  • npm run build -w @askable-ui/vue
  • npm run build -w @askable-ui/svelte
  • npm run build --workspaces --if-present
  • npm run test --workspaces --if-present

@vercel

vercel Bot commented Jun 7, 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 7, 2026 12:17am

@pkg-pr-new

pkg-pr-new Bot commented Jun 7, 2026

Copy link
Copy Markdown

Open in StackBlitz

@askable-ui/context

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

@askable-ui/core

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

@askable-ui/create-app

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

@askable-ui/mcp

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

@askable-ui/react

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

@askable-ui/react-native

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

@askable-ui/svelte

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

@askable-ui/vue

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

commit: 1f6bc25

@vamgan
vamgan merged commit 4110ea8 into main Jun 7, 2026
9 checks passed
@vamgan
vamgan deleted the feat/selection-affordance-state branch June 7, 2026 00:20

This branch was successfully deployed

1 active deployment
Preview — 1f6bc25a Deployed Jun 7, 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