Skip to content
Design System
GitHub

0.69 migration

0.69 gives the digit keys back to your page: a focused annotated-image fits with Shift+1 and shows 1:1 with Shift+0.

Who has to change something

Only a screen with zoom on. Where your own help text tells people to press 0 or 1 on the picture, say Shift+1 (fit) and Shift+0 (1:1); the component's own key hint, zoomKeys, already does. If you stopped digits from reaching the picture so your answers keep them (a capture-phase handler that re-dispatches them), remove it: the picture leaves the bare digits alone. The buttons are unchanged.

annotated-image keys
// Before 0.69, with zoom and the picture focused: 0 fit, 1 showed 1:1.
// 0.69: Shift+1 fits, Shift+0 shows 1:1. The bare digits reach your page.
<AnnotatedImage zoom ... />

// A review screen that answers with digits needs no workaround any more:
useEffect(() => {
  const onKey = (e: KeyboardEvent) => { if (e.key === "1") pick(answers[0]) }
  window.addEventListener("keydown", onKey)
  return () => window.removeEventListener("keydown", onKey)
}, [answers])
Find what to change
# Run from your project's root: help text or workarounds that still name 0 and 1 for the picture's zoom.
grep -rnE 'fit|1:1|actual (size|pixels)' src | grep -E '"0"|"1"|\b0\b|\b1\b'