@taprootio/espalier 4.12.0 → 4.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,32 @@
1
+ # 4.13.0
2
+
3
+ Full-screen menu drawers keep long second-level labels on screen, and the font
4
+ picker offers device font stacks alongside the Google catalog.
5
+
6
+ - `esp-font-picker` gains `font-source="all"`: System Sans, System Serif, and
7
+ System Monospace lead the list, then the classic web-safe stacks, then the
8
+ Google catalog; every row carries a kind icon with a tooltip (a desktop for
9
+ a device font, Google's mark for a catalog font) and selecting a device
10
+ row fetches nothing. A stored device stack that differs from a
11
+ preset's text still shows as that preset, and one that matches no preset
12
+ shows as its own custom row; `value` is never rewritten by recognition.
13
+ - `extractWeights` accepts a web-safe font and reports the weights its device
14
+ faces carry (300–700 for the System text stacks, 400 and 700 elsewhere).
15
+ New `matchWebSafeFont`, `customWebSafeFont`, `isDeviceFontStack`,
16
+ `classifyFontStack`, `parseFontStack`, and `canonicalFontStack` helpers
17
+ expose the same recognition to consumers.
18
+
19
+ - Labels nested inside a group share one measured size in the full-screen
20
+ drawer: it starts at 90% of the top-level size and shrinks only as far as the
21
+ widest nested label needs to fit the viewport on one line. Top-level items
22
+ keep their size.
23
+ - Below the readable floor, nested labels wrap instead of clipping. The cap and
24
+ floor are tunable through `--esp-menu-drawer-nested-item-max-font-size` and
25
+ `--esp-menu-drawer-nested-item-min-font-size`; the floor defaults to
26
+ `max(14px, 0.875rem)`.
27
+ - The measurement runs from an idle callback after the page mounts, never on
28
+ the first paint, and repeats on resize, item changes, and font loading.
29
+
1
30
  # 4.12.0
2
31
 
3
32
  Image selections can now use a reusable, accessible image picker.