2 Commits
Author SHA1 Message Date
CatoandClaude fd7031ea04 feat(composer, field): one box — Composer and DictationField are two shapes of one implementation (0.43.0) (#111)
The four steps 0.41 left in the README are done:
- One frame: TypingBox (typing.tsx) draws the voice bar, box, strip, text,
  tools row and the take's problem for both. The field's tools row is the
  composer's ck-tools, so its paperclip and microphone are bare icons like
  the composer's (they were bordered circles). Frame and text share one set
  of rules in styles.css; each shape keeps only its differences.
- One text hookup: useTypingText (dictation + appendTranscript +
  clipToMaxLength + the latest-text ref).
- One submit-key rule: submitKeyAction in composer.ts, exported.
- Same controls on both: Composer `attachments`; DictationField
  `handleRef` (DictationFieldHandle) and `attachExtras`.

Public APIs are additive. All existing tests unchanged; new unit, render
and browser checks (390px, 320px dark, desktop).


Claude-Session: https://claude.ai/code/session_019MDtmv1SAs6YZn4FrewbXR

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-15 16:50:56 +01:00
CatoandClaude f7401fc7fa release: v0.40.0 (DictationField gets the composer's paperclip; one way a person types) (#109)
DictationField takes `attach?: boolean | AttachOptions` and an app-owned
`attachments?: AttachmentsController`: the same paperclip sheet, paste,
drop, staged previews with Remove and limits as Composer. Off by default.

The paperclip wiring, staged strip, mic button and the shared voice and
attach labels move into one internal module (src/react/typing.tsx) used by
both Composer and DictationField. Composer's behaviour and API unchanged.
README gains the Composer-vs-DictationField rule and the plan for the rest
of the unification.


Claude-Session: https://claude.ai/code/session_019MDtmv1SAs6YZn4FrewbXR

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-15 14:23:48 +01:00