Releases: infinum/eightshift-frontend-libs-tailwind
Releases · infinum/eightshift-frontend-libs-tailwind
1.4.7
Changes:
- Fixed Image component "image" part tailwind class output if not set.
- Fix Image component responsive output Co-authored-by: [email protected]
- Add "Auto" width to wrapperContent and set is as defaults
- Add a buttonType attribute to Button component
- Implement a11y for Icon component either by setting aria-hidden to true (default) or using the existing iconName label from manifest options key
- Updated dependencies.
1.4.6
Changes:
Changed
- Tweaked webpack config to properly include font files from
@eightshfit
packages fromnode_modules
. - Added a new
buildWpRestUrl
helper for easily fetching WP REST URLs. (Similar tofetchFromWpRest
, but allows you control over how you fetch). - Updated dependencies.
1.4.5
Changed
BlockInserter
is now only visible when the block it's assigned to is selected. This behavior can be changed by settingalwaysVisible
.
Fixed
- Image responsive breakpoints render order in the frontend.
1.4.4
Added
- Support for
supports
key in block manifests during block registration.
Changed
- Built-in Paragraph block now uses the new block splitting logic from WP 6.6
- Updated dependencies
1.4.3
1.4.2
Fixed
- Fixed bug with
combinations
output intailwindClasses
helper. - Fixed CSS
url()
imports for images not working due to Webpack config.
1.4.1
Changed
tailwindClasses
check will now work even if noparts
are defined.
1.4.0
Added
- Introduced new, more flexible
tailwindClasses
function. - Added basic warnings for misconfigurations of parts and options.
- Updated block and component schemas with new Tailwind functionalities.
- Updated default blocks with new Tailwind functions.
Changed
- Potentially breaking:
twClassesEditor
is now appended totwClasses
. UsetwClassesEditorOnly
for editor-only classes. - Potentially breaking: The
parts
key in manifest now supports specifying multiple parts using a comma-separated string. - Classes can now be applied to multiple parts in one option or combination, including responsive options.
- Default Stylelint config will no longer report
@tailwind
rules. - Updated dependencies.