summaryrefslogtreecommitdiff
path: root/packages/integrations/mdx/test/css-head-mdx.test.js (follow)
AgeCommit message (Collapse)AuthorFilesLines
2025-01-08fix: conditionally import image style (#12925)Gravatar Matt Kane 1-3/+3
* fix: conditionally import image style * Use wrapper component for conditional style import * changeset * Add tests * Fix tests * Update markdoc tests * Lint
2025-01-07fix(mdx): don't import image component when no images are used (#12921)Gravatar Matt Kane 1-3/+3
* fix(mdx): don't import image component when no images are used * Fix test * Fix test
2024-11-15feat: experimental responsive images (#12377)Gravatar Matt Kane 1-6/+6
* 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 f9ec6e2938ff291037234d56f8eec76a93be0c0d. * 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-09-19chore: remove outdate config from testGravatar Matt Kane 1-1/+0
2024-09-18Merge branch 'main' into nextGravatar Matt Kane 1-0/+1
2024-09-18[ci] formatGravatar Matt Kane 1-1/+1
2024-09-18fix: correctly handle head propagation in content layer deferred rendering ↵Gravatar Matt Kane 1-0/+1
(#12014) * chore: run MDX tests against content layer * Handle head propagation in deferred rendering * Add changeset * Update test
2024-08-28Make directRenderScript the default (#11791)Gravatar Bjorn Lu 1-3/+3
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-05-08Improve content collection styles and scripts build perf (#10959)Gravatar Bjorn Lu 1-1/+1
* Improve content collection styles and scripts build perf * Update test It was actually a bug. There was an empty module script injected. * Skip test * Fix test not matching non-ccc behaviour * Workaround bug to make test pass * Update .changeset/grumpy-pillows-develop.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> --------- Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-02-21chore: use biome to sort imports - only test files (#10180)Gravatar Emanuele Stoppa 1-3/+3
* chore: use biome to sort imports * do the sorting * Update package.json Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com> --------- Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2024-01-31migrate MDX tests (#9894)Gravatar Alex Nguyen 1-13/+14
2023-08-18Switch `build.inlineStylesheets` default to auto (#8118)Gravatar Arsh 1-0/+2
* switch inlineStylesheets default * use previous default for astro/test * use previous default for content-collections-render.test.js * integrations: node, deno, mdx, markdown * typedocs: switch inlineStylesheets default * Update example to show non-default * add changeset * reword changeset --------- Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-04-06 Prevent body head content injection in MDX when using layout (#6779)Gravatar Matthew Phillips 1-0/+13
2023-02-13Fix head injection in body with slots.render() and head buffering (#6216)Gravatar Matthew Phillips 1-0/+12
* Fix head injection in body with slots.render() and head buffering * Adding a changeset * An MDX test too
2023-02-09[ci] formatGravatar matthewp 1-1/+1
2023-02-09Fix head injection misplacement with Astro.slots.render() (#6196)Gravatar Matthew Phillips 1-0/+13
* Fix head injection misplacement with Astro.slots.render() * Adding a changeset * Fix case of JSX with no layout * missing break
2023-02-07Add additional scoping for head buffering (#6152)Gravatar Matthew Phillips 1-0/+27
* Add additional scoping for head buffering * Add test for direct usage of nested component * Add special scoping for Astro.scopes.render() * Generate propagation map during the build * Move to a maybeHead instruction * Properly serialize for SSR * More conservative scoping * Maybe had should honor result._metadata.hasRenderedHead * Properly type slots * Allow template result to be passed * Add changeset
2023-02-02Prevent eager rendering of head content in multi-level MDX layout (#6107)Gravatar Matthew Phillips 1-2/+2
* Prevent eager rendering of head content in multi-level MDX layout * Adding a changeset * Remove old comment * Keep track of slot position as well
2023-01-30Simplified head injection (#6034)Gravatar Matthew Phillips 1-0/+33
* Simplified head injection * Make renderHead also yield an instruction * Add changeset * Add mdx test