PatternFly components for Yew
Full Changelog: https://github.com/patternfly-yew/patternfly-yew/compare/v0.4.1...v0.5.0
Full Changelog: https://github.com/patternfly-yew/patternfly-yew/compare/v0.5.0-alpha.2...v0.5.0-rc.1
This is a major, breaking, feature release. The main focus is on migrating to PatternFly 5 and drop some old stuff.
It is a preview release which might help you prepare for the migration upfront. There are definitely some rough edges, but most of it should be in good shape. Also see: https://github.com/ctron/patternfly-yew/blob/main/docs/MIGRATION-0_5.md
Many thanks to @phill-85 who did most of the work of the PF5 migration!
Full Changelog: https://github.com/ctron/patternfly-yew/compare/v0.4.0...v0.5.0-alpha.2
This release did focus a lot on ironing things out, and aligning components and naming quite a bit. Most components should now also have basic documentation at least.
A lot of refactoring has happened. In many cases existing patterns and APIs should have been stable, some of them have been marked as deprecated though, and may go away any time after the 0.4.x cycle.
Most notably, although not covered by a deprecation flag, is the fact that you could import most of the types using use patternfly::*;
. This has been changed to the more common use paternfly::prelude::*;
The old import will still work, for now.
Most of the properties have been renamed (from Props
) to a more descriptive name (like ButtonProperties
). This shouldn't have an impact in most cases, as properties are hidden behind the html!
macro anyway. But it solves a naming clash when importing multiple properties from different component (like through use patternfly::prelude::*;
).
The Icons
enum is now generated through code generation, which means that finally all icons are available. Some icon groups can be enabled through Rust features, to control the dependency on FontAwesome.
There is also now a "tree view", though it is marked as "experimental" and needs to be enabled explicitly. It will not be covered by SemVer, and might just go away in a next release without prior warning. However, if you are curious, you may try it out and help stabilize is, so that it might live on.
I probably forgot something important, maybe check the list of changes below. Or just browse through the code :wink:
For a more complete list of changes see the following sections.
Divider
component and renames the existing one into ListDivider
.Type
to AlertType
(4cc780d)This is a feature release, mainly upgrading to Yew 0.20 and the https://github.com/ctron/yew-nested-router
update popperjs to 2.11.0 abf8734
Upgrade to yew 0.19 0023380
shared table model sync issue after yew upgrade a77e5e2
stale clipboard value issue with yew 0.19 82ff4cb