# starlight-image-zoom

## 0.16.3

### Patch Changes

- [#85](https://github.com/HiDeoo/starlight-image-zoom/pull/85) [`286f0b0`](https://github.com/HiDeoo/starlight-image-zoom/commit/286f0b0b6cc7b0feaf2afa6a39ddd081ed51cf59) Thanks [@HiDeoo](https://github.com/HiDeoo)! - Fixes an issue where code blocks lost their language and metadata when using Sätteri 0.11 or later, the default since Astro 7.4.7.

## 0.16.2

### Patch Changes

- [#82](https://github.com/HiDeoo/starlight-image-zoom/pull/82) [`81e72b7`](https://github.com/HiDeoo/starlight-image-zoom/commit/81e72b7ee502413584006f2f2399fe7a1150c6e2) Thanks [@HiDeoo](https://github.com/HiDeoo)! - Fixes a potential issue where zooming an image could be delayed when the browser is busy.

- [#83](https://github.com/HiDeoo/starlight-image-zoom/pull/83) [`e3f7c6b`](https://github.com/HiDeoo/starlight-image-zoom/commit/e3f7c6bed6a455d7d489b529231bde4ffbd9a50c) Thanks [@HiDeoo](https://github.com/HiDeoo)! - Fixes an issue where the search button could be hidden on narrow viewports after zooming an image.

- [#79](https://github.com/HiDeoo/starlight-image-zoom/pull/79) [`16dbfbc`](https://github.com/HiDeoo/starlight-image-zoom/commit/16dbfbc9e0d87169330ac8daa29a9169a9d6c413) Thanks [@HiDeoo](https://github.com/HiDeoo)! - Fixes invalid zoom button labels for `<picture>` elements in MDX files and for images using HTML syntax without an `alt` attribute.

- [#81](https://github.com/HiDeoo/starlight-image-zoom/pull/81) [`a427792`](https://github.com/HiDeoo/starlight-image-zoom/commit/a4277924a4930fa867b6caef67b4d165cb9bc12c) Thanks [@HiDeoo](https://github.com/HiDeoo)! - Fixes zoomed SVG images in a `<picture>` element not using the source selected by the browser.

## 0.16.1

### Patch Changes

- [#73](https://github.com/HiDeoo/starlight-image-zoom/pull/73) [`e3a87ab`](https://github.com/HiDeoo/starlight-image-zoom/commit/e3a87ab853658876cca340ee37a56af501348b49) Thanks [@EricAndrechek](https://github.com/EricAndrechek)! - Adds `astro` as a peer dependency to prevent errors in projects with dependency hoisting disabled.

## 0.16.0

### Minor Changes

- [#67](https://github.com/HiDeoo/starlight-image-zoom/pull/67) [`be1f4b3`](https://github.com/HiDeoo/starlight-image-zoom/commit/be1f4b3670906dbe974328e0356035b4567a16df) Thanks [@HiDeoo](https://github.com/HiDeoo)! - ⚠️ **BREAKING CHANGE:** The minimum supported version of Starlight is now version `0.42.0`.

  Please use the `@astrojs/upgrade` command to upgrade your project:

  ```sh
  npx @astrojs/upgrade
  ```

- [#67](https://github.com/HiDeoo/starlight-image-zoom/pull/67) [`be1f4b3`](https://github.com/HiDeoo/starlight-image-zoom/commit/be1f4b3670906dbe974328e0356035b4567a16df) Thanks [@HiDeoo](https://github.com/HiDeoo)! - Adds support for the Sätteri Markdown processor.

## 0.15.0

### Minor Changes

- [#65](https://github.com/HiDeoo/starlight-image-zoom/pull/65) [`90bf6c7`](https://github.com/HiDeoo/starlight-image-zoom/commit/90bf6c714fb732e80b2e147c6fed0f1f7a3bd8e8) Thanks [@HiDeoo](https://github.com/HiDeoo)! - Adds support for Astro v7, drops support for Astro v6.

  ⚠️ **BREAKING CHANGE:** The minimum supported version of Starlight is now `0.41.0`.

  Please follow the [upgrade guide](https://github.com/withastro/starlight/releases/tag/%40astrojs%2Fstarlight%400.41.0) to update your project.

  Note that the Sätteri Markdown processor is not yet supported and you must [use `unified()` from `@astrojs/markdown-remark`](https://docs.astro.build/en/guides/upgrade-to/v7/#what-should-i-do-3) instead. To follow the progress of Sätteri support, see [this issue](https://github.com/HiDeoo/starlight-image-zoom/issues/63).

## 0.14.2

### Patch Changes

- [#61](https://github.com/HiDeoo/starlight-image-zoom/pull/61) [`31fed13`](https://github.com/HiDeoo/starlight-image-zoom/commit/31fed13ed36d15229f7ea1196ab19b0b9fbc8bee) Thanks [@HiDeoo](https://github.com/HiDeoo)! - Fixes a zoomed SVG alignment issue for SVGs using non-default `preserveAspectRatio` values.

## 0.14.1

### Patch Changes

- [#54](https://github.com/HiDeoo/starlight-image-zoom/pull/54) [`d916f6d`](https://github.com/HiDeoo/starlight-image-zoom/commit/d916f6d16fc80b70ac2cc108ab229aac0a179444) Thanks [@HiDeoo](https://github.com/HiDeoo)! - Fixes the error message logged when the plugin configuration is invalid.

## 0.14.0

### Minor Changes

- [#52](https://github.com/HiDeoo/starlight-image-zoom/pull/52) [`293a528`](https://github.com/HiDeoo/starlight-image-zoom/commit/293a5280f1b84c1fbec333ab207e0ffa96e3a909) Thanks [@HiDeoo](https://github.com/HiDeoo)! - Adds support for Astro v6, drops support for Astro v5.

  ⚠️ **BREAKING CHANGE:** The minimum supported version of Starlight is now `0.38.0`.

  Please follow the [upgrade guide](https://github.com/withastro/starlight/releases/tag/%40astrojs%2Fstarlight%400.38.0) to update your project.

## 0.13.2

### Patch Changes

- [#49](https://github.com/HiDeoo/starlight-image-zoom/pull/49) [`8f2c2e1`](https://github.com/HiDeoo/starlight-image-zoom/commit/8f2c2e1c0a4c2af4aa07a730e77c32b92223d58c) Thanks [@HiDeoo](https://github.com/HiDeoo)! - Setups trusted publishing using OpenID Connect (OIDC) authentication — no code changes.

## 0.13.1

### Patch Changes

- [#47](https://github.com/HiDeoo/starlight-image-zoom/pull/47) [`c28782b`](https://github.com/HiDeoo/starlight-image-zoom/commit/c28782b5435ec6cda07541d37345b8edb809fa50) Thanks [@HiDeoo](https://github.com/HiDeoo)! - Fixes an animation glitch when zooming in/out SVG images.

## 0.13.0

### Minor Changes

- [#44](https://github.com/HiDeoo/starlight-image-zoom/pull/44) [`eba0382`](https://github.com/HiDeoo/starlight-image-zoom/commit/eba038299673d22a8ddd9c6d091a58e338e4104d) Thanks [@HiDeoo](https://github.com/HiDeoo)! - Adds a new `<Zoom>` component to wrap images or SVG components and make them zoomable.

  This can be useful for advanced use cases where the plugin cannot automatically apply zoom functionality, such as rendering images in a loop of an Astro component or using SVG components. Learn more in the [“Zoom component”](https://starlight-image-zoom.vercel.app/components/zoom/) guide.

## 0.12.0

### Minor Changes

- [#39](https://github.com/HiDeoo/starlight-image-zoom/pull/39) [`837e543`](https://github.com/HiDeoo/starlight-image-zoom/commit/837e5430e971345b1d6c737657d607dbef73948b) Thanks [@HiDeoo](https://github.com/HiDeoo)! - Adds a new `data-zoom-id` attribute to zoomed images matching the `id` of the original image if it exists.

  This can be useful if you are relying on the `id` attribute to customize the appearance of images using CSS and also want to apply the same styles to zoomed images.

## 0.11.1

### Patch Changes

- [#34](https://github.com/HiDeoo/starlight-image-zoom/pull/34) [`58dcce6`](https://github.com/HiDeoo/starlight-image-zoom/commit/58dcce681f52f0001c18adba15b4cb086cd14eb5) Thanks [@DaniFoldi](https://github.com/DaniFoldi)! - Moves `mdast-util-mdx-jsx` package to non-dev dependencies to prevent issues in monorepos with hoisting disabled.

## 0.11.0

### Minor Changes

- [#32](https://github.com/HiDeoo/starlight-image-zoom/pull/32) [`02a52df`](https://github.com/HiDeoo/starlight-image-zoom/commit/02a52df958e0bf814f9e51e92d4ed0ce46dff53a) Thanks [@HiDeoo](https://github.com/HiDeoo)! - ⚠️ **BREAKING CHANGE:** The minimum supported version of Starlight is now version `0.32.0`.

  Please use the `@astrojs/upgrade` command to upgrade your project:

  ```sh
  npx @astrojs/upgrade
  ```

## 0.10.1

### Patch Changes

- [#30](https://github.com/HiDeoo/starlight-image-zoom/pull/30) [`98ae50e`](https://github.com/HiDeoo/starlight-image-zoom/commit/98ae50e5c4d9102991f146570a76844e816602ed) Thanks [@HiDeoo](https://github.com/HiDeoo)! - Fixes an issue where SVG images were not being properly identified as SVGs when running in development mode.

## 0.10.0

### Minor Changes

- [#27](https://github.com/HiDeoo/starlight-image-zoom/pull/27) [`e716c66`](https://github.com/HiDeoo/starlight-image-zoom/commit/e716c66dd585fe2fd78432add8d9895c8110131f) Thanks [@HiDeoo](https://github.com/HiDeoo)! - Adds support for Astro v5, drops support for Astro v4.

  ⚠️ **BREAKING CHANGE:** The minimum supported version of Starlight is now `0.30.0`.

  Please follow the [upgrade guide](https://github.com/withastro/starlight/releases/tag/%40astrojs/starlight%400.30.0) to update your project.
