All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
No unreleased changes 🔥
- Use applitool's
layoutBreakpoint
config to properly test mobile viewports
- Fix error when carousel had no meaningful children (affected multiple hooks including:
useCarousel
,usePages
,useTargetZone
)
- Update
node-notifier
(nested dependency)
- Add missing
selected
field touseCarouselTile
return type - Fix
usePages
to return updated pages on immediately after an update
- Add tests for all of the exported hooks (using cypress)
- Rename carousel list props returned from
useCarousel
fromscrollContainer
tolist
- Rename
onLayoutUpdate
toonLayoutChange
(inuseTargetZone
andusePages
) - Separate
pages
from other dom props in return ofusePages
- Rename attribute used to ignore elements (eg margin divs) from
data-carousel-skip
todata-lwc-ignore
- Add
lwc-hide
class name toCarouselArrow
when it is being hidden - Enable tree-shaking for Webpack 4 (using the (
sideEffects
flag)[https://webpack.js.org/configuration/optimization/#optimizationsideeffects])
- Make
onClick
prop onCarouselArrow
optional - Fix non-dom props being passed to
PageIndicator
insideCarousel
- Stop producing source maps on build (and stop publishing them)
- Add story for
PageIndicator
- Add static classnames to every dom node rendered by a carousel component
- Update
SingleCarousel
to forward dom attributes to the base dom node - Fix
pageByVisibility
strategy to directly check if scroll snapping is enabled on the element when paging (checking forscroll-snap-type
)
- Fix relative path links & images in README on NPM
- Add visual tests (and included them in the
validate
script) - Expose hooks in the index file so they can be imported directly
- Allow components & hooks to be imported through
@lifeway-carousel/lib/components
and@lifeway-carousel/lib/hooks
respectively
- Allow running
npm install
without setting up an npm auth token
- Update README with info on publishing a new package version
- Update README to include visual test script
- Add visual tests to pipeline
- Move all logic to reusable hooks
Get README up to date
- Fix Carousel's
onSelect
prop type. - Include the README's screenshot in the npm package
- Update the README to include installation & usage info (and also get other info up to date)
- Fix version check in pipeline so that package actually gets deployed 😁
Initial Release; includes several prebuilt react components: Carousel
, SingleCarousel
, CarouselArrow
, and ImageTile
.