Skip to content

Releases: zapier/formatic

2.0.1 Fix Choice Hovering

23 Feb 22:08
Compare
Choose a tag to compare
  • Pass isHovering through to renderTag, so it can be styled with the CSS plugin.

2.0.0: The slightly less crufty version

22 Feb 15:08
430a220
Compare
Choose a tag to compare

The main goal of this release was to get rid of the old docs and any other cruft that had built up around the edges. Along the way, a few things were changed here and there.

Docs / Development

  • Replace the custom docs build with a Next.js build with rewritten docs and docs components. Custom CSS using emotion instead of relying on Bootstrap.
  • Combine the demo and docs into the same Next.js build.
  • Add enzyme for testing components.
  • Add a test utility to easily mount some fields for testing.
  • Add snapshot testing for all fields in the demo.
  • Change the formatic.css file to use those new classes for styling the demo, making the demo slightly less ugly.
  • Change the rollup config to spit out dual builds, one for CommonJS and one for ES modules.
  • No gulp, just npm scripts now.

Formatic / Production

  • Add a FieldContainer to make it easier to plug in components for handling field types. No worrying about mixins, so we can begin deprecating them.
  • Add a new renderTag plugin method so field/helper components can pass rendering of all tags through the plugin method. This way, literally any part of a field/helper component can be overridden. The main reason to do this is to be able to override styling for the demo in a not-global-CSS-soup way.
  • Change all the field/helper components to render everything through the renderTag plugin method.
  • Add a CSS plugin that spits out some BEM-like (but not really BEM) class names. (Primarily meant to be used by the demo.)
  • Proper ESM build (see above) and sideEffects: false.
  • Export all plugins and mixins so that we can deprecate the non-tree-shakable things hanging off the default exported Formatic component.
  • Make it so CodeMirror can be used from a dependency vs having to hang off of window.
  • Swap the order of children rendered in array items to match object items and to better support flexbox styling. A renderTag plugin can be used to swap the order back to the original order.

v0.2.52

01 Jul 23:02
Compare
Choose a tag to compare
Release 0.2.52