- #1006
affb374c
Thanks @RubenSandwich! - Update to modern clipboard API
- #991
534b6517
Thanks @zchsh! - Implements support for code wrapping, through an options.wrapCode boolean property.
- #834
3d138a8e
Thanks @BRKalow! - Only render HiddenCopyContent on the client to avoid hydration mismatches and duplicative markup
- #768
95c749ef
Thanks @zchsh! - Fixes issue where code-tabs in MDX would render blocks with a language-undefined className, even if the className was in fact defined.
- #736
702eb92a
Thanks @zchsh! - Support copy-button copying of shell-session snippets with multiple single-line commands. Support select-copy-paste copying of shell-session snippets by setting user-select none on shell-symbols.
- #735
0aa2389a
Thanks @zchsh! - Fixes an issue where code-block would throw an error and potentially break the consuming app if local storage is disabled.
- #604
a22f756f
Thanks @ashleemboyer! - Moves the invocation ofonCopyCallback
to after the copy button has been clicked, and only invokes the callback ifcopiedState
istrue
orfalse
.
- #605
c171ca8c
Thanks @ashleemboyer! - Fixing an issue where the copy button totally lost focus oncopiedState
change.
- #547
51d6ea42
Thanks @ashleemboyer! - Updated style and icons in CodeBlock copy button
- #600
8261ebcd
Thanks @zchsh! - Fixes an issue where use-overflow-ref did not work fully when code-tabs are nested in a tabpanel.
- #532
fb69b94d
Thanks @zchsh! - Changes alignment of CodeTabs tab elements from right-aligned to left-aligned. Note that if the heading prop is used, then tab elements remained right-aligned, matching previous behaviour. This release also fixes a bug in CodeTabs, where valid CodeBlock children would sometimes be incorrectly flagged as invalid.