0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-06 22:10:10 -05:00
astro/packages/integrations
Matt Kane af867f3910
feat: experimental responsive images (#12377)
* chore: changeset

* feat: add experimental responsive images config option (#12378)

* feat: add experimental responsive images config option

* Apply suggestions from code review

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* Update config types

* Move config into `images`

* Move jsdocs

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* feat: add responsive image component (#12381)

* feat: add experimental responsive images config option

* Apply suggestions from code review

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* Update config types

* Move config into `images`

* Move jsdocs

* wip: responsive image component

* Improve srcset logic

* Improve fixture

* Lock

* Update styling

* Fix style prop handling

* Update test (there's an extra style for images now)

* Safely access the src props

* Remove unused export

* Handle priority images

* Consolidate styles

* Update tests

* Comment

* Refactor srcset

* Avoid dupes of original image

* Calculate missing dimensions

* Bugfixes

* Add tests

* Fix test

* Correct order

* Lint

* Fix fspath

* Update test

* Fix test

* Conditional component per flag

* Fix class concatenation

* Remove logger

* Rename helper

* Add comments

* Format

* Fix markdoc tests

* Add test for style tag

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* feat: add crop support to image services (#12414)

* wip: add crop support to image services

* Add tests

* Strip crop attributes

* Don't upscale

* Format

* Get build working properly

* Changes from review

* Fix jsdoc

* feat: add responsive support to picture component (#12423)

* feat: add responsive support to picture component

* Add picture tests

* Fix test

* Implement own define vars

* Share logic

* Prevent extra astro-* class

* Use dataset scoping

* Revert unit test

* Revert "Fix test"

This reverts commit f9ec6e2938.

* Changes from review

* docs: add docs for responsive images (#12429)

* docs: add responsive images flag docs

* docs: adds jsdoc for image components

* chore: updates from review

* Fix jsdoc

* Changes from review

* Add breakpoints option

* typo

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-11-15 13:29:52 +00:00
..
alpinejs Update to Vite 6.0.0-beta.6 (#12323) 2024-11-06 22:51:55 +08:00
cloudflare
deno
markdoc feat: experimental responsive images (#12377) 2024-11-15 13:29:52 +00:00
mdx feat: experimental responsive images (#12377) 2024-11-15 13:29:52 +00:00
netlify
node
partytown chore: move lint rules to Biome (#12145) 2024-10-08 10:12:40 +01:00
preact fix(deps): update all non-major dependencies (#12316) 2024-10-28 22:00:15 +08:00
react Update to Vite 6.0.0-beta.6 (#12323) 2024-11-06 22:51:55 +08:00
sitemap [ci] release (#12225) 2024-10-15 15:37:22 +08:00
solid Merge branch 'main' into next 2024-11-15 19:37:28 +08:00
svelte Merge branch 'main' into next 2024-11-15 19:37:28 +08:00
tailwind Update to Vite 6.0.0-beta.6 (#12323) 2024-11-06 22:51:55 +08:00
vercel
vue Merge branch 'main' into next 2024-11-06 23:17:39 +08:00
web-vitals Merge branch 'main' into next 2024-10-31 16:16:00 +08:00