Skip to content

Latest commit

 

History

History
125 lines (63 loc) · 7.01 KB

CHANGELOG.md

File metadata and controls

125 lines (63 loc) · 7.01 KB

@hashicorp/react-code-block

6.5.0

Minor Changes

6.4.0

Minor Changes

  • #991 534b6517 Thanks @zchsh! - Implements support for code wrapping, through an options.wrapCode boolean property.

6.3.0

Minor Changes

6.2.2

Patch Changes

  • #834 3d138a8e Thanks @BRKalow! - Only render HiddenCopyContent on the client to avoid hydration mismatches and duplicative markup

6.2.1

Patch Changes

  • #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.

6.2.0

Minor Changes

  • #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.

6.1.1

Patch Changes

  • #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.

6.1.0

Minor Changes

6.0.1

Patch Changes

  • #612 baacf69c Thanks @zchsh! - Fixes alignment of code-tabs dropdown when no heading is present

6.0.0

Major Changes

  • #604 a22f756f Thanks @ashleemboyer! - Moves the invocation of onCopyCallback to after the copy button has been clicked, and only invokes the callback if copiedState is true or false.

Patch Changes

5.2.0

Minor Changes

5.1.1

Patch Changes

  • #600 8261ebcd Thanks @zchsh! - Fixes an issue where use-overflow-ref did not work fully when code-tabs are nested in a tabpanel.

5.1.0

Minor Changes

5.0.0

Major Changes

4.5.0

Minor Changes

  • #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.

4.4.2

Patch Changes

  • #503 ce0ddaf Thanks @zchsh! - Fixes a Firefox-specific issue where manually selected and then copied code does not contain the newlines it should.

4.4.1

Patch Changes

4.4.0

Minor Changes

4.3.0

Minor Changes

4.2.0

Minor Changes