@dermoptera/handoff-ui
v0.1.0
Published
Optional QR and replace-confirmation helpers for Dermoptera Handoff.
Maintainers
Readme
@dermoptera/handoff-ui
Optional browser UI helpers for @dermoptera/handoff: render a continuation URL
as a QR code and create an explicit replace-or-cancel prompt. The core SDK does
not depend on this package.
npm install @dermoptera/[email protected] @dermoptera/[email protected]import { renderQrToCanvas, createReplacePrompt } from "@dermoptera/handoff-ui";
await renderQrToCanvas(document.querySelector("canvas")!, transfer.url);
const confirmReplace = createReplacePrompt();License: MIT. See THIRD_PARTY_NOTICES.md for the QR dependency notices.
0.1.0 is the first non-prerelease SDK version. It remains a 0.x API: pin
both packages to the exact version and review release notes before upgrading.
The hosted service remains a Limited Free Developer Beta.
renderQrToCanvas() requires browser Canvas support. Always expose the same
one-time URL as an accessible link fallback; Android QR acquisition was not
exercised in the Dermoptera physical matrix. Never place the URL or QR image in
analytics, logs, screenshots, or support messages. createReplacePrompt() is a
minimal default; applications may provide an accessible product-specific
replace/cancel flow instead.
