Skip to content

Mavis UI 0.1.0-rc.19

Pre-release
Pre-release

Choose a tag to compare

@rafaelaugustos rafaelaugustos released this 03 Dec 06:32
· 67 commits to main since this release
f7fe803

Changes

  • New package @getcortexlabs/mavis-desktop: the Mavis components on the NativeScript Mac (AppKit) and Windows (XAML) hosts. Each component is written once for both systems over a shared layout engine and takes the properties of its published contract. It covers layout, media, feedback, choices and fields, overlays, dates, charts, lists, motion and navigation. The themes and system appearance are the same as on the other hosts. Desktop components · Native Mac and Windows.
  • The desktop works from the keyboard:
    • Grouped controls are one Tab stop moved by the arrow keys.
    • Dialogs keep Tab inside themselves, Escape closes them, and the keyboard goes back to the control that opened them.
    • Menus take type-ahead.
    • The command palette opens with Command-K on the Mac and Control-K on Windows.
    • createDesktopNavigation wraps a Vue Router with Back and Forward shortcuts.
    • Commands join the Mac menu bar.
  • On the Mac, VoiceOver reads the checked, mixed and selected state of checkboxes, switches, radios, segments, tabs, list options and table rows.
  • A desktop press reports focus and blur. The marquee, particles and gradient pause while the window can't be seen: minimized or covered on the Mac, hidden on Windows.
  • create-mavis creates desktop hosts that depend on the package. --capabilities --json lists desktop support per component and property.
  • --add-macos and --add-windows check the entry and what it imports, and report each refusal with the property to use instead. --starter writes an entry that fits the desktop contract, and --write adds the host to an existing project. Classes and <style> blocks in a shared file are ignored on the desktop, with a note. The Mac host runs with no window on screen with MAVIS_DESKTOP_OFFSCREEN=1.
  • maxLines on MText, columnSpan on a child of MGrid and the escape event of MInput now work on every renderer. shortcut, selectable and testId stay on the desktop, for the reasons in the desktop guide. Font families accept macos and windows names. Text · Grid · Input.
  • With Jolt 0.1.0-rc.20:
    • On Android 14 and later, a NativeScript MSheet follows the system back gesture before it commits and returns if it is cancelled. Each close reports its real reason: back, backdrop, swipe or program.
    • On the Web, viewportEnter staggers surfaces by the order they arrive, as NativeScript does.
    • Desktop entrances start in the same turn as their pose.
    • Sheet · Motion regions.
  • NativeScript:
    • Shimmer, the loaders and the circular reveal now run on Android.
    • Effects pause and resume, and a KeepAlive screen suspends them while it is inactive.
    • motion.haptic() and region viewport entrances go through Jolt.
    • Spring followers gain stop() and jump().
    • MRefreshControl shows one indicator and announces a refresh as it starts, succeeds or fails.

Known gaps:

  • The Windows host draws no elevation shadow and does not announce alerts yet (#478).
  • On Windows, checked and selected state does not reach assistive technology yet (#489), and a minimized window is not detected yet (#490).
  • The remaining desktop work is tracked in #461.

Upgrade

All nine Mavis packages share this version, including the new @getcortexlabs/mavis-desktop. Install Jolt 0.1.0-rc.20 with any renderer, then rebuild native apps. The NativeScript, Web and desktop renderers declare ^0.1.0-rc.20. A desktop host made by an earlier creator keeps its own copy of the host; regenerate apps/<target> to move it to the package. Full changelog.