0.2.12 never reached npm (a GitHub Actions outage stopped its release), so these notes cover everything since 0.2.11.
Native UI: what widgets of your own need (#85)
The bases now cover what component libraries on ui, as MujicaUI, could not do through the public API.
Accessibility
- States for widgets of your own, as ARIA's:
Checked,Mixed,Expanded,Value,Range,Step,LevelandActiveDescendant, on macOS, Linux and Windows. - Roles for menus drawn in the window and headings:
RoleMenu,RoleMenuBar,RoleMenuItem,RoleMenuItemCheckBox,RoleMenuItemRadio,RoleHeading. - Ranges tell how far the keys move them: UI Automation's
SmallChangeandLargeChange, ATK's minimum increment.
Overlays
AttachTo(target, at, self)places an element beside another on any side, flips and moves it to stay in the window, and follows the target as it scrolls.PressedOutside,OverlayShortcutandModal, whatPopoverBaseandDialogBaseare made of, build drawers, hover cards and menus of your own.- A press outside a popover closes it and goes on to what is under the pointer, as with the web's popovers; a select's popup still takes it.
- Escape goes to the overlay built last, on top, and an overlay gives the focus back as it closes.
Inputs
- Text inputs take
ReadOnly, andComposingreports an input method composing. On macOS, Enter choosing a candidate or Escape giving a composition up no longer submits the input or closes a dialog. SliderBasetakesStep,Vertical, and Page Up and Down;SelectPartstakesHighlight.- Disabled elements take no presses or keys (a disabled stepper stepped), and steps snap to their own decimals.
Context.OpenURLreports what came of opening the link, with an error when no app could.
Breaking: Context.OpenURL takes a second argument in this release. 0.2.14 undoes that: OpenURL(url) is as it was, and OpenURLThen(url, done) reports the outcome. Upgrade to 0.2.14 rather than changing your calls.
Native UI
- While the pointer presses an element, the elements it was over as the press began stay hovered, as CSS's
:hoverdoes: a close button that shows on a hovered tab takes its click, and a toast stays paused while its action is pressed (#78). - Paths look the same whatever drew first (#85).
- The docs say that a border takes room within the element's size, as
box-sizing: border-boxdoes, and thatAbsoluteelements are placed from just inside the parent's border (#88).
macOS
- Resizing a window or going full screen no longer crashes with a stack overflow once key-value observing has subclassed its view (#80).
Linux
- Native UI windows under a title bar or a menu bar repaint what changed where it changed. Since 0.2.9 the bottom and right of a change stayed stale, as a row left partly selected (#87, reported in #82).
- Frameless windows no longer get a title bar from Wayland compositors that decorate windows, as KWin, COSMIC and Sway (#84).
Releases
- mygo-runtime and the plugins' packages publish while the CLI's binaries build, and each platform package once its binary is built, so npm serves them sooner.
New Contributors
- @Adelodunpeter25 made their first contribution in #80
- @andrewbrey made their first contribution in #84
Full Changelog: v0.2.11...v0.2.13