# Changelog All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] ### Changed [unreleased]: https://github.com/PoOnesNerfect/bevy_bsml/compare/v0.14.10...main ## [0.14.10] - 2024-08-31 - **Added**: Added class `TextValue` and function `text(value: impl ToString)` to update text value for `(text)` element. - **Updated**: Updated README for added `text` class function. [0.14.10]: https://github.com/PoOnesNerfect/bevy_bsml/compare/v0.14.9...v0.14.10 ## [0.14.9] - 2024-08-29 - **BREAKING**: class function `font(px)` is not renamed to `font_size(px)`. - **Added**: Added class `FontHandle` and function `font(handle: Handle)` to apply font to text. [0.14.9]: https://github.com/PoOnesNerfect/bevy_bsml/compare/v0.14.8...v0.14.9 ## [0.14.8] - 2024-08-19 - **Fixed**: Visibility and Focus Policy was not being applied. - **BREAKING**: All class functions (ex. `h_fract`, `h_vmax`, etc.) that used to take percentage (0. ~ 100.) now takes fraction (0. ~ 1.). [0.14.8]: https://github.com/PoOnesNerfect/bevy_bsml/compare/v0.14.7...v0.14.8 ## [0.14.7] - 2024-08-12 - **Fixed**: Fix bug in how classes were being applied when changed. [0.14.7]: https://github.com/PoOnesNerfect/bevy_bsml/compare/v0.14.6...v0.14.7 ## [0.14.6] - 2024-08-07 - **Fixed**: When interacting with the element, other systems that updated the classes were not being applied. [0.14.6]: https://github.com/PoOnesNerfect/bevy_bsml/compare/v0.14.5...v0.14.6 ## [0.14.5] - 2024-08-07 - Directly depend on bevy's individual libraries in hopes of trimming down dependency size. [0.14.5]: https://github.com/PoOnesNerfect/bevy_bsml/compare/v0.14.4...v0.14.5 ## [0.14.4] - 2024-08-07 - **Fixed**: `BorderRadius` was not being applied. [0.14.4]: https://github.com/PoOnesNerfect/bevy_bsml/compare/v0.14.3...v0.14.4 ## [0.14.3] - 2024-08-07 - Added elements: - `(img)`: `(img) { expr_returning_UiImage }` - `(material)`: `(material) { expr_returning_Handle }` - I haven't actually tested these, but they should work?? [0.14.3]: https://github.com/PoOnesNerfect/bevy_bsml/compare/v0.14.2...v0.14.3 ## [0.14.2] - 2024-08-07 - Minor update on `BsmlClass` - Refactor `BsmlClass` to be more maintainable - Add more classes: - margin - padding - min height - max height - overflow - display - justify items - align self - direction - flex basis, grow, shrink - border width - border radius - grid auto columns - grid auto rows - grid auto flow - grid col - grid row - grid template columns - grid template rows - **BREAKING**: rename `*_px` into just `*`; for example, `w_px` into `w` and `top_px` into `top` - **BREAKING**: rename `*_perc` into `*_fract` - **BREAKING**: rename `*_FLEX_*` into `*_*`; for example, `ITEMS_FLEX_START` into `ITEMS_START` [0.14.2]: https://github.com/PoOnesNerfect/bevy_bsml/compare/v0.14.1...v0.14.2 ## [0.14.1] - 2024-08-06 ### Changed - Add more classes + Commit Cargo.lock ([#5]) - Reorganized bsml macro for better readability - Renamed all instances of `Color::rgba` to `Color::Srgba`. - Renamed `ClassEnum` into a more fitting name, `BsmlClass`. - `fn apply_class_system`, which applies any change in interaction and classes will now run in `PostUpdate` instead of `Update`. - Add more tailwind classes: - MaxWidth - AlignItems - Position (Absolute, Relative) - Bottom, Top, Left, Right - JustifyText - **BREAKING**: Renamed struct `BsmlNode` to just `Bsml`. - **BREAKING**: Renamed trait `Bsml` to `BsmlElement`. - **BREAKING**: Renamed module `class::text::color` to `class::text::text_color`. - **BREAKING**: Refactored class applying system. - Instead of querying different components for `background color`, `styles`, `text`, etc., you can just query `&mut BsmlClasses` and insert/remove the classes you want. - See [examples directory] for more information. [#5]: https://github.com/PoOnesNerfect/bevy_bsml/pull/5 [examples directory]: https://github.com/PoOnesNerfect/bevy_bsml/tree/main/examples [0.14.1]: https://github.com/PoOnesNerfect/bevy_bsml/compare/v0.14.0...v0.14.1 ## [0.14.0] - 2024-07-17 Starting this version, this project will keep the same minor version as Bevy. This allows me to pushing new features while still supporting each versions of Bevy. [0.14.0]: https://github.com/PoOnesNerfect/bevy_bsml/compare/v0.0.8...v0.14.0 ### Added - Starting a changelog - I love reading through other projects' changelogs for added features and bugfixes, so I hope this will be useful to others as well. ### Changed - Updated Bevy version to 0.14 ([#3]) [#3]: https://github.com/PoOnesNerfect/bevy_bsml/pull/3 ## [0.0.8] ### Changed - Updated Bevy version to 0.13 ([#1]) [#1]: https://github.com/PoOnesNerfect/bevy_bsml/pull/1 [0.0.8]: https://github.com/PoOnesNerfect/bevy_bsml/compare/v0.0.7...v0.0.8