Repository navigation
Mavis v0.1.0-rc.13
Pre-release
Pre-release
·
883 commits
to main
since this release
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 NuxtRebuild 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.--targetkeeps working. --example tasks: a small task manager written once inshared/and generated for the Web, iOS, Android and the Mac.- One versioned catalog behind the wizard, the flags,
--doctorand CI.--capabilitiesprints 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.jsonschema 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,
useStorestate, getters, actions,Showand keyedFor. - Forms (
MInput,MCheckbox,MSelect), list editing,MGrid,MCardand 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()andsurface.animate({ path, orient }): lines, quadratic and cubic curves with bounds and an end pose known up front.rotateXandrotateY, projected byMBox :perspectiveon the parent.- Shadow channels on a surface that has one shadow, where
supports('shadow')is true (Web and iOS), withelevationMotion()to move between theme elevations. Android keeps the static shadow. - A motion request is validated before the running motion is replaced.
pointerFollowreportspresenceandavailable, 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 elementswhen the message disappeared while its text changed. - A multiline Web
MInputin a container whose width changes logged aResizeObserverloop warning in Safari. - A labelled
MCardwith no action is read as one element. - An
MCardkeeps 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
translationYwhen 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.