v0.18.1 #555
bitspittle
announced in
Announcements
v0.18.1
#555
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This release is a grab bag of miscellaneous features, including the addition of the long requested
spacedBy
arrangement method forRow
andColumn
layouts (which comes thanks to a contribution from the community via @rafaeltonholo!). This release also features a handful of Markdown and CSS API fixes.Important
Planning to upgrade? Review instructions in the README.
Note
Users are asking us when K2 support is going to land, but we are currently blocked due to a pretty major incremental compilation issue. You can learn more here and here. We are keeping a close eye on it and will support K2 as soon as we can!
Changes
Frontend
spacedBy
arrangement supportboxShadow
modifier can now take multiple shadow valuestransformBox
,transformOrigin
, andtransformStyle
modifiersoverscrollBehavior
modifier.Silk
Support for CSS layers
You can now pass in a callback letting you configure the look and feel of TOC header links
Added new
descendants
andchildren
utility methods for use insideCssStyle
CssStyle { children("div", "span") { /* ... */ } }
which is more expressive and easier to remember thancssRule(" > :is(div,span)")
Link
andAnchor
widgets now accept an optionalupdateHistoryMode
parameteronTextChanged
toonTextChange
andonValueChanged
toonValueChange
for relevant Silk widgestMarkdown
Backend
1.0.0
inhttps://site.com/path/to/1.0.0
as a file with a.0
extension.Notes
spacedBy
In HTML / CSS, the normal way to put space between elements in a row, column, or table layout is using the gap CSS style, which we have actually recommended for the last two years. However, with
spacedBy
, you can now use that instead:The
spacedBy
method can also take optional alignment parameters. Read the official Jetpack Compose documentation for more information about these new APIs.Constructing
Background
,Transition
, andAnimation
CSS style propertiesOver the past year, we have been building up a consistent vocabularly for how we want our CSS style classes to behave.
A very common pattern that has emerged is the
CssStyleClass.of(...)
helper method, which is a useful way to construct many CSS style classes that have complex parameters.For
Background
,Transition
, andAnimation
classes, however, since those classes already had (incomplete) definitions inside Compose HTML, we extended them by introducing our ownCSSBackground
,CSSTransition
, andCSSAnimation
data classes.We have since come to the conclusion that this is pretty inconsistent and confusing, so in this release, Kobweb has introduces its own
Background
,Transition
, andAnimation
classes. Constructing them is now consistent with all other CSS styles.This may result in you getting deprecation warnings to migrate code over. Fixing it should be relatively straightforward, as in the following code:
Gradle
We have been hard at work getting Kobweb tasks to play nicer with the Gradle configuration cache. Our changes so far have all been implementation fixes that will be invisible to users, but we may need to deprecate / migrate some APIs in near future releases.
Thanks
This release we enjoyed first-time submissions from user @rafaeltonholo 🎉
They provided excellent PRs for the
boxShadow
andspacedBy
changes. They also helped us identify inconsistencies in our codebase that we spent time tightening up.Thank you Rafael for your contributions!
Full Changelog: v0.18.0...v0.18.1
This discussion was created from the release v0.18.1.
Beta Was this translation helpful? Give feedback.
All reactions