Skip to content

feat(core): add text selection affordances#310

Merged
vamgan merged 1 commit into
mainfrom
feat/text-selection-affordance
Jun 2, 2026
Merged

feat(core): add text selection affordances#310
vamgan merged 1 commit into
mainfrom
feat/text-selection-affordance

Conversation

@vamgan
Copy link
Copy Markdown
Collaborator

@vamgan vamgan commented Jun 2, 2026

Summary

  • add opt-in selected-text affordances with persisted text marks and anchored prompt submit hooks
  • expose selected text theme and option types from the core entrypoint
  • keep selection handles available after once captures so persisted affordances can be cleared in React, Vue, and Svelte wrappers
  • update the website demo and docs for highlighted-text prompts

Validation

  • npm test -w @askable-ui/core -- selection.test.ts
  • npm run build
  • npm test -w @askable-ui/react -- useAskableRegionCapture.test.tsx useAskableTextSelectionCapture.test.tsx
  • npm test -w @askable-ui/vue -- useAskableRegionCapture.test.ts useAskableTextSelectionCapture.test.ts
  • npm test -w @askable-ui/svelte -- store.test.ts
  • npm run build:versioned --prefix site/docs
  • git diff --check
  • browser interaction check against http://localhost:4186 for highlighted text prompt submit and region prompt clearing

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 2, 2026

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

Project Deployment Actions Updated (UTC)
askable Ready Ready Preview, Comment Jun 2, 2026 6:15am

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Jun 2, 2026

Open in StackBlitz

@askable-ui/context

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

@askable-ui/core

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

@askable-ui/create-app

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

@askable-ui/mcp

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

@askable-ui/react

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

@askable-ui/react-native

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

@askable-ui/svelte

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

@askable-ui/vue

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

commit: 7f54c8c

@vamgan vamgan merged commit 81c9846 into main Jun 2, 2026
9 checks passed
@vamgan vamgan deleted the feat/text-selection-affordance branch June 2, 2026 06:17
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