0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-06 22:10:10 -05:00
astro/packages/integrations/mdx/test
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
..
fixtures Unset charset=utf-8 content-type for md/mdx pages (#12231) 2024-10-24 17:13:22 +08:00
units update formatter config (#11640) 2024-08-08 12:12:50 +02:00
css-head-mdx.test.js feat: experimental responsive images (#12377) 2024-11-15 13:29:52 +00:00
invalid-mdx-component.test.js update formatter config (#11640) 2024-08-08 12:12:50 +02:00
mdx-astro-markdown-remarkRehype.test.js update formatter config (#11640) 2024-08-08 12:12:50 +02:00
mdx-component.test.js chore: use biome to sort imports - only test files (#10180) 2024-02-21 14:08:19 +00:00
mdx-escape.test.js chore: use biome to sort imports - only test files (#10180) 2024-02-21 14:08:19 +00:00
mdx-frontmatter-injection.test.js update formatter config (#11640) 2024-08-08 12:12:50 +02:00
mdx-frontmatter.test.js update formatter config (#11640) 2024-08-08 12:12:50 +02:00
mdx-get-headings.test.js update formatter config (#11640) 2024-08-08 12:12:50 +02:00
mdx-get-static-paths.test.js update formatter config (#11640) 2024-08-08 12:12:50 +02:00
mdx-images.test.js fix: MDX cannot find relative image path without leading ./ (#10754) 2024-04-16 22:13:52 +08:00
mdx-infinite-loop.test.js chore: use biome to sort imports - only test files (#10180) 2024-02-21 14:08:19 +00:00
mdx-math.test.js feat: experimental responsive images (#12377) 2024-11-15 13:29:52 +00:00
mdx-namespace.test.js chore: use biome to sort imports - only test files (#10180) 2024-02-21 14:08:19 +00:00
mdx-optimize.test.js Handle MDX optimize for root hast node (#11975) 2024-09-12 18:47:55 +08:00
mdx-page.test.js Unset charset=utf-8 content-type for md/mdx pages (#12231) 2024-10-24 17:13:22 +08:00
mdx-plugins.test.js update formatter config (#11640) 2024-08-08 12:12:50 +02:00
mdx-plus-react-errors.test.js fix(renderer): omitting internal symbol from mdx props (#10813) 2024-05-21 17:48:19 +02:00
mdx-plus-react.test.js chore: use biome to sort imports - only test files (#10180) 2024-02-21 14:08:19 +00:00
mdx-script-style-raw.test.js update formatter config (#11640) 2024-08-08 12:12:50 +02:00
mdx-slots.test.js chore: use biome to sort imports - only test files (#10180) 2024-02-21 14:08:19 +00:00
mdx-syntax-highlighting.test.js chore: use biome to sort imports - only test files (#10180) 2024-02-21 14:08:19 +00:00
mdx-url-export.test.js chore: use biome to sort imports - only test files (#10180) 2024-02-21 14:08:19 +00:00
mdx-vite-env-vars.test.js Fix attribute rendering for boolean values (take 2) (#11660) 2024-08-13 22:33:13 +08:00
remark-imgattr.test.js chore: use biome to sort imports - only test files (#10180) 2024-02-21 14:08:19 +00:00