Skip to content

v0.4.0

Compare
Choose a tag to compare
@lpotthast lpotthast released this 19 Feb 11:56
· 186 commits to main since this release

Leptonic now supports server-side-rendering (SSR). This book is now deployed with SSR enabled.
The leptonic-template-ssr and leptonic-template-csr templates were created. Use them to get started quickly.

Changed

  • Getting started instructions were consolidated.
  • Installation instructions are now much more straight-forward.
  • Modals are now SSR compatible. The ModalFn component was dropped. If you used it, just rename all occurrences to Modal. If you previously used Modal, you might see some 'requires Fn but is FnOnce error's. Storing values moved into Modals children through store_value should be a quick fix.
  • Tabs are now SSR compatible. Rendering order changed to make this possible. This should not affect anyone.
  • Toggles are now SSR compatible. Rendering of the (optional) icons changed. This should only affect you if custom styling is in play.
  • Tables are now SSR compatible. Components were renamed to TableHeader, TableBody, TableRow, TableHeaderCell and TableCell.
  • The build.rs script, which previously had to be create by the consumer is now longer required. It was moved into leptonic itself and will automatically take care of copying files required for a build.
  • The Code block component now has a Copy to clipboard button (thanks to https://github.com/wt).
  • A SelectOption no longer requires to be Eq.
  • The uuid dependency was bumped to version 1.6.
  • A RwSignal can act as an Out type
  • Modals now support the on_escape prop, letting you handle escape key presses.
  • The Tiptap-Editor functionality is now gated through the new tiptap feature. Enabling it will alter the build to automatically include required JS files.

Fixed

  • Fixed a bug which led to buttons not getting disabled properly.

What's Changed

  • Allow converting RwSignal to Out by @Jobarion in #21
  • Add a clipboard copy button to the block code component. by @wt in #23
  • docs: Remove (ignored) parameter from "title" closure of Alert by @ja-he in #31
  • Add search_filter_provider to select components by @tordynnar in #24
  • Fix nesting of multiple tabs by @mondeja in #28

New Contributors

Cmpare: v0.3.0...v0.4.0