Skip to content

Mavis v0.1.0-rc.13

Pre-release
Pre-release

Choose a tag to compare

@rafaelaugustos rafaelaugustos released this 11 Nov 11:15
· 883 commits to main since this release
165caa5

Mavis UI 0.1.0-rc.13 is a prerelease for trying Mavis in real apps. The four packages are published together and require Jolt 0.1.0-rc.13. The API can change between prereleases.

npx @getcortexlabs/create-mavis@0.1.0-rc.13 my-app
# or, in an existing app
npm install @getcortexlabs/mavis@0.1.0-rc.13 @rafaelaugusto/jolt@0.1.0-rc.13        # NativeScript-Vue
npm install @getcortexlabs/mavis-web@0.1.0-rc.13 @rafaelaugusto/jolt@0.1.0-rc.13    # Vue Web and Nuxt

Rebuild native applications after upgrading Jolt.

Project creator

  • Web, Native (iOS and Android through NativeScript) and Mac in any combination: --targets web,native,macos, and a multi-select in the wizard. --target keeps working.
  • --example tasks: a small task manager written once in shared/ and generated for the Web, iOS, Android and the Mac.
  • One versioned catalog behind the wizard, the flags, --doctor and CI. --capabilities prints it, with how far each combination has been taken; a choice that cannot be created is refused with the reason and the alternatives before any file is written.
  • mavis.config.json schema 2 records each app's toolkit, framework, host and rendering. Earlier configurations are migrated when read.

Shared sources with Mac (experimental)

Screens written once as TSX generate Vue on the Web, Vue for NativeScript and SwiftUI on macOS, with a Mavis-owned emitter.

  • Components with typed props and callbacks, useStore state, getters, actions, Show and keyed For.
  • Forms (MInput, MCheckbox, MSelect), list editing, MGrid, MCard and button shortcuts.
  • Motion through Jolt on every target, with JoltSwiftUI on the Mac.

This is a compiler experiment. It does not bring the 92-component catalog to macOS or convert existing .vue screens.

Motion

  • motionPath() and surface.animate({ path, orient }): lines, quadratic and cubic curves with bounds and an end pose known up front.
  • rotateX and rotateY, projected by MBox :perspective on the parent.
  • Shadow channels on a surface that has one shadow, where supports('shadow') is true (Web and iOS), with elevationMotion() to move between theme elevations. Android keeps the static shadow.
  • A motion request is validated before the running motion is replaced.
  • pointerFollow reports presence and available, and follows a hovering pointer on NativeScript.
  • Web: components read the effective reduced-motion preference of their region's Jolt runtime, and configureMavisWebMotion(region, { reducedMotion }) gives a region its own policy.

Fixes

  • Web Combobox, Popover, Tooltip, Dialog and Toast left their closing element in the page when the component unmounted during its exit.
  • Web components that animate their message logged Targets must be mounted HTML elements when the message disappeared while its text changed.
  • A multiline Web MInput in a container whose width changes logged a ResizeObserver loop warning in Safari.
  • A labelled MCard with no action is read as one element.
  • An MCard keeps a shadow that application motion animated when it renders again.

Known limits

  • The Mac target and the shared-source compiler are experimental.
  • Checked on simulators, emulators and browsers; no physical device.
  • On Android, Jolt keeps a path's translationY when a path in flight is replaced by a zero-duration set (rafaelaugustos/jolt#479). Mavis works around it.
  • Reduced motion by region is Web-only and was not validated on NativeScript, where the preference stays Jolt's own (#306).
  • Deep native layouts can still be slow (#56).

The full list is in CHANGELOG.md.