ratatui-org / crates-tui

A TUI for exploring crates.io using Ratatui
MIT License
59 stars 4 forks source link

chore(deps): bump ratatui from 0.26.1-alpha.1 to 0.26.1 #31

Closed dependabot[bot] closed 4 months ago

dependabot[bot] commented 4 months ago

Bumps ratatui from 0.26.1-alpha.1 to 0.26.1.

Release notes

Sourced from ratatui's releases.

v0.26.1

0.26.1 - 2024-02-12

This is a patch release that fixes bugs and adds enhancements, including new iterators, title options for blocks, and various rendering improvements. ✨

Features

  • 74a0511 (rect) Add Rect::positions iterator (#928)

    Useful for performing some action on all the cells in a particular area.
    E.g.,
    
    fn render(area: Rect, buf: &mut Buffer) {
       for position in area.positions() {
            buf.get_mut(position.x, position.y).set_symbol("x");
        }
    }
    

  • 9182f47 (uncategorized) Add Block::title_top and Block::title_top_bottom (#940)

    This adds the ability to add titles to the top and bottom of a block
    without having to use the `Title` struct (which will be removed in a
    future release - likely v0.28.0).
    

    Fixes a subtle bug if the title was created from a right aligned Line and was also right aligned. The title would be rendered one cell too far to the right.

    Block::bordered()
        .title_top(Line::raw("A").left_aligned())
        .title_top(Line::raw("B").centered())
        .title_top(Line::raw("C").right_aligned())
        .title_bottom(Line::raw("D").left_aligned())
        .title_bottom(Line::raw("E").centered())
        .title_bottom(Line::raw("F").right_aligned())
        .render(buffer.area, &mut buffer);
    // renders
    "┌A─────B─────C┐",
    "│             │",
    "└D─────E─────F┘",
    </code></pre>
    </li>
    </ul>
    <!-- raw HTML omitted -->
    </blockquote>
    <p>... (truncated)</p>
    </details>
    <details>
    <summary>Changelog</summary>
    
    <p><em>Sourced from <a href="https://github.com/ratatui-org/ratatui/blob/main/CHANGELOG.md">ratatui's changelog</a>.</em></p>
    <blockquote>
    <h2><a href="https://github.com/ratatui-org/ratatui/releases/tag/0.26.1">0.26.1</a> - 2024-02-12</h2>
    <p>This is a patch release that fixes bugs and adds enhancements, including new iterators, title options for blocks, and various rendering improvements. ✨</p>
    <h3>Features</h3>
    <ul>
    <li>
    <p><a href="https://github.com/ratatui-org/ratatui/commit/74a051147a4059990c31e08d96a8469d8220537b">74a0511</a>
    <em>(rect)</em> Add Rect::positions iterator (<a href="https://redirect.github.com/ratatui-org/ratatui/issues/928">#928</a>)</p>
    <pre lang="text"><code>Useful for performing some action on all the cells in a particular area.
    E.g.,
    
    ```rust
    fn render(area: Rect, buf: &amp;mut Buffer) {
       for position in area.positions() {
            buf.get_mut(position.x, position.y).set_symbol(&quot;x&quot;);
        }
    }
    

  • 9182f47 (uncategorized) Add Block::title_top and Block::title_top_bottom (#940)

    This adds the ability to add titles to the top and bottom of a block
    without having to use the `Title` struct (which will be removed in a
    future release - likely v0.28.0).
    

    Fixes a subtle bug if the title was created from a right aligned Line and was also right aligned. The title would be rendered one cell too far to the right.

    Block::bordered()
        .title_top(Line::raw(&quot;A&quot;).left_aligned())
        .title_top(Line::raw(&quot;B&quot;).centered())
        .title_top(Line::raw(&quot;C&quot;).right_aligned())
        .title_bottom(Line::raw(&quot;D&quot;).left_aligned())
        .title_bottom(Line::raw(&quot;E&quot;).centered())
        .title_bottom(Line::raw(&quot;F&quot;).right_aligned())
        .render(buffer.area, &amp;mut buffer);
    // renders
    &quot;┌A─────B─────C┐&quot;,
    &quot;│             │&quot;,
    &quot;└D─────E─────F┘&quot;,
    

    Addresses part of ratatui-org/ratatui#738

... (truncated)

Commits


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)