diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ffc41a..869e70d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,23 @@ # Changelog +## [2.0.1](https://github.com/rtCamp/rt-carousel/compare/v2.0.0...v2.0.1) (2026-05-04) + + +### Features + +* add a11y announcements for carousel slide changes ([#125](https://github.com/rtCamp/rt-carousel/issues/125)) ([b7a2240](https://github.com/rtCamp/rt-carousel/commit/b7a2240)) + + +### Bug Fixes + +* carousel dot focus loss with VoiceOver activation ([#127](https://github.com/rtCamp/rt-carousel/issues/127)) ([366031e](https://github.com/rtCamp/rt-carousel/commit/366031e)) + + +### Refactors + +* replace automatic plugin deactivation with admin notice ([#129](https://github.com/rtCamp/rt-carousel/issues/129)) ([279a464](https://github.com/rtCamp/rt-carousel/commit/279a464)) + + ## [2.0.0](https://github.com/rtCamp/rt-carousel/compare/v1.0.4...v2.0.0) (2026-04-13) diff --git a/docs/CONTRIBUTING.md b/docs/CONTRIBUTING.md index 02f0b17..1215ead 100644 --- a/docs/CONTRIBUTING.md +++ b/docs/CONTRIBUTING.md @@ -30,6 +30,18 @@ Thank you for your interest in contributing! We welcome all contributions, from - **JavaScript/TypeScript**: We use the standard WordPress ESLint config. Run `npm run lint:js` to check. - **CSS/SCSS**: We use Stylelint. Run `npm run lint:css` to check. +## Block `save()` Changes + +If your changes modify a block's `save()` output — including `data-wp-context`, HTML structure, class names, or new elements — you **must** add a deprecation entry in the block's `deprecated.tsx`. + +1. Copy the previous `save()` function into the `deprecated` array. +2. Include the `attributes` and `supports` from the old version (copy the full `supports` from `block.json` — don't simplify it, or alignment/color classes will fail validation). +3. For blocks with inner blocks, use `useInnerBlocksProps.save()` in the deprecated `save()` function, just like the current save does. + +Without this, existing content will show "Block contains unexpected or invalid content" errors in the editor. + +See the [Block Deprecation API](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-deprecation/) for details. + ## Building the Plugin To create a production-ready ZIP file: diff --git a/examples/patterns/hero-carousel.php b/examples/patterns/hero-carousel.php index e250f59..2bcce46 100644 --- a/examples/patterns/hero-carousel.php +++ b/examples/patterns/hero-carousel.php @@ -11,18 +11,18 @@ exit; } -$pattern_images_url = trailingslashit( RT_CAROUSEL_URL . '/examples/data/images' ); -$hero_slide_one = $pattern_images_url . 'slide-autoplay-1.webp'; -$hero_slide_two = $pattern_images_url . 'slide-autoplay-2.webp'; -$hero_slide_three = $pattern_images_url . 'slide-autoplay-3.webp'; +$rt_carousel_images_url = trailingslashit( RT_CAROUSEL_URL . '/examples/data/images' ); +$rt_carousel_slide_one = $rt_carousel_images_url . 'slide-autoplay-1.webp'; +$rt_carousel_slide_two = $rt_carousel_images_url . 'slide-autoplay-2.webp'; +$rt_carousel_slide_three = $rt_carousel_images_url . 'slide-autoplay-3.webp'; ?>