Skip to content

v0.2.0

Choose a tag to compare

@lbb00 lbb00 released this 04 Sep 09:47
· 34 commits to main since this release

Added

  • @devicekit/devices: DEVICE_NAMES — every device name as a constant, so DEVICE_NAMES.iPhone_16_Pro replaces the hand-typed 'iPhone 16 Pro' and the editor can autocomplete and check it. Keys are derived from the name by deviceNameKey (runs of characters outside [A-Za-z0-9] become one _, so 'iPhone 12/13 (Pro)' is iPhone_12_13_Pro); the table lives in a generated file kept in sync by pnpm --filter @devicekit/devices generate:device-names and guarded by a test.
  • @devicekit/devices: DeviceName, the union of every name in the table.
  • @devicekit/frame/react: the device prop accepts DeviceName for autocomplete while still taking any string.

Changed

  • @devicekit/frame now depends on @devicekit/devices with a caret range instead of an exact version.