Releases: code4rena-dev/components-library
Bug Fix - Contest Tile container height
This version includes changes to address the following issue: #33
Major Version - Icons + minor optimizations
This version adds support for icons commonly used in the main Code4rena website as well as some minor optimizations https://components-library-wine.vercel.app/
Bug Fix - fix logic for bot race indicator on ContestTile
Some public contests do not have bot races, so we use the presence of a bot race findings repo as a signal for whether or not the contest has a bot race.
Bug Fix - Container Queries
This version adds container query support for older browsers.
Currently, the contest tile uses container queries instead of media queries; while it is already widely supported at this point, this properly implements the container-query-polyfill to make sure that container queries work in older browsers that do not support it. This ensures that our component looks exactly as intended in older browsers.
Bug Fix - Stopping event propagation (ContestTile)
This version contains a bug fix to stop event propagation on click of anchors contained within the ContestTile.
This is important in case the ContestTile
is wrapped in an anchor tag; in cases like these, anchor clicks were previously ignored for the preferred parent anchor.
Minor Version - Bug Bounty Option For Contest Tiles
This version includes styling changes for the ContestTile
as well as support for bug bounties.
Now, if a tile for contests is desired, contest data should be passed through the contestData
prop.
If a bounty tile is desired, bounty information should be passed through the bountyData
prop.
Major Version - Avatar Component + Optimizations
This release includes a new Avatar component as well as some minor bug fixes and reduced bundle size.
Minor Version - Contest Tile component updates
Patch - Fixes CSS bug in Card component
This release includes a CSS bug fix for images in the Card component
Minor Version - Library Bundling Changes
This release includes changes to facilitate library imports and resolve typescript issues on applications importing the library's components and types.
Changes included:
- App bundling setup and code export structure (now importing components and types separately)
- Component import remains the same through named imports:
import { Button} from "@code4rena/components-library;
- Prop Type imports can now also be done through named imports:
import { ButtonSize, ButtonType, ButtonVariant } from "@code4rena/components-library/types"
- Styles import now has an updated import path:
/* In CSS/SCSS file: */
@import "@code4rena/components-library/styles"
// Or, in wrapping layout/page/component:
import "@code4rena/components-library/styles"