From 58cf3d8653a028566fd2728938906680d1de0f8e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 25 Jun 2024 10:18:19 +0000 Subject: [PATCH] chore(deps): bump ratatui from 0.26.3 to 0.27.0 Update snapshots to reflect ratatui bugfix. Bumps [ratatui](https://github.com/ratatui-org/ratatui) from 0.26.3 to 0.27.0. - [Release notes](https://github.com/ratatui-org/ratatui/releases) - [Changelog](https://github.com/ratatui-org/ratatui/blob/main/CHANGELOG.md) - [Commits](https://github.com/ratatui-org/ratatui/compare/v0.26.3...v0.27.0) --- Cargo.lock | 28 +++++++++++++------ Cargo.toml | 4 +-- ...rm__widget__tests__overlapping_cursor.snap | 4 ++- ...s__overlapping_cursor_alternate_style.snap | 4 ++- ...tests__simple_cursor_alternate_symbol.snap | 4 ++- ...rm__widget__tests__simple_cursor_hide.snap | 4 ++- ...widget__tests__simple_cursor_hide_alt.snap | 4 ++- ...__widget__tests__simple_cursor_styled.snap | 4 ++- .../tui_term__widget__tests__simple_ls.snap | 4 ++- ..._tests__simple_ls_no_style_from_block.snap | 4 ++- ...__widget__tests__simple_ls_with_block.snap | 4 ++- 11 files changed, 48 insertions(+), 20 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 9e0105a..c2b247d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -414,9 +414,9 @@ dependencies = [ [[package]] name = "heck" -version = "0.4.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" +checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" [[package]] name = "hermit-abi" @@ -482,6 +482,15 @@ dependencies = [ "either", ] +[[package]] +name = "itertools" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186" +dependencies = [ + "either", +] + [[package]] name = "itoa" version = "1.0.11" @@ -762,19 +771,20 @@ dependencies = [ [[package]] name = "ratatui" -version = "0.26.3" +version = "0.27.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f44c9e68fd46eda15c646fbb85e1040b657a58cdc8c98db1d97a55930d991eef" +checksum = "d16546c5b5962abf8ce6e2881e722b4e0ae3b6f1a08a26ae3573c55853ca68d3" dependencies = [ "bitflags 2.5.0", "cassowary", "compact_str", "crossterm", - "itertools 0.12.1", + "itertools 0.13.0", "lru", "paste", "stability", "strum", + "strum_macros", "unicode-segmentation", "unicode-truncate", "unicode-width", @@ -1067,9 +1077,9 @@ dependencies = [ [[package]] name = "strum_macros" -version = "0.26.2" +version = "0.26.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c6cf59daf282c0a494ba14fd21610a0325f9f90ec9d1231dea26bcb1d696c946" +checksum = "4c6bee85a5a24955dc440386795aa378cd9cf82acd5f764469152d2270e581be" dependencies = [ "heck", "proc-macro2", @@ -1278,9 +1288,9 @@ dependencies = [ [[package]] name = "unicode-width" -version = "0.1.11" +version = "0.1.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e51733f11c9c4f72aa0c160008246859e340b00807569a0da0e7a1079b27ba85" +checksum = "0336d538f7abc86d282a4189614dfaa90810dfc2c6f6427eaf88e16311dd225d" [[package]] name = "utf8parse" diff --git a/Cargo.toml b/Cargo.toml index 2d2b8ab..501a8e4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -31,7 +31,7 @@ default = ["vt100"] unstable = ["dep:portable-pty"] [dependencies] -ratatui = { version = "0.26.3", default-features = false } +ratatui = { version = "0.27.0", default-features = false } vt100 = { version = "0.15.2", optional = true } portable-pty = { version = "0.8.1", optional = true } @@ -48,7 +48,7 @@ once_cell = "1.19.0" # for examples # enable the features used in tests -ratatui = { version = "0.26.3", default-features = true } +ratatui = { version = "0.27.0", default-features = true } crossterm = "0.27" portable-pty = "0.8.1" tokio = { version = "1", features = ["full"] } diff --git a/src/snapshots/tui_term__widget__tests__overlapping_cursor.snap b/src/snapshots/tui_term__widget__tests__overlapping_cursor.snap index 4c90628..0b2bc78 100644 --- a/src/snapshots/tui_term__widget__tests__overlapping_cursor.snap +++ b/src/snapshots/tui_term__widget__tests__overlapping_cursor.snap @@ -5,7 +5,7 @@ expression: view Buffer { area: Rect { x: 0, y: 0, width: 80, height: 24 }, content: [ - "tui-term on  main [$!?] via ❄️ pure (tui-term-env) ", + "tui-term on  main [$!?] via ❄️pure (tui-term-env) ", // hidden by multi-width symbols: [(30, " ")] "❯ This is a test for an overlapping cursor ", " ", " ", @@ -38,6 +38,8 @@ Buffer { x: 19, y: 0, fg: Indexed(1), bg: Reset, underline: Reset, modifier: BOLD, x: 24, y: 0, fg: Reset, bg: Reset, underline: Reset, modifier: NONE, x: 29, y: 0, fg: Indexed(4), bg: Reset, underline: Reset, modifier: BOLD, + x: 30, y: 0, fg: Reset, bg: Reset, underline: Reset, modifier: NONE, + x: 31, y: 0, fg: Indexed(4), bg: Reset, underline: Reset, modifier: BOLD, x: 50, y: 0, fg: Reset, bg: Reset, underline: Reset, modifier: NONE, x: 0, y: 1, fg: Indexed(2), bg: Reset, underline: Reset, modifier: BOLD | REVERSED, x: 1, y: 1, fg: Reset, bg: Reset, underline: Reset, modifier: NONE, diff --git a/src/snapshots/tui_term__widget__tests__overlapping_cursor_alternate_style.snap b/src/snapshots/tui_term__widget__tests__overlapping_cursor_alternate_style.snap index 37af993..4794037 100644 --- a/src/snapshots/tui_term__widget__tests__overlapping_cursor_alternate_style.snap +++ b/src/snapshots/tui_term__widget__tests__overlapping_cursor_alternate_style.snap @@ -5,7 +5,7 @@ expression: view Buffer { area: Rect { x: 0, y: 0, width: 80, height: 24 }, content: [ - "tui-term on  main [$!?] via ❄️ pure (tui-term-env) ", + "tui-term on  main [$!?] via ❄️pure (tui-term-env) ", // hidden by multi-width symbols: [(30, " ")] "❯ This is a test for an overlapping cursor ", " ", " ", @@ -38,6 +38,8 @@ Buffer { x: 19, y: 0, fg: Indexed(1), bg: Reset, underline: Reset, modifier: BOLD, x: 24, y: 0, fg: Reset, bg: Reset, underline: Reset, modifier: NONE, x: 29, y: 0, fg: Indexed(4), bg: Reset, underline: Reset, modifier: BOLD, + x: 30, y: 0, fg: Reset, bg: Reset, underline: Reset, modifier: NONE, + x: 31, y: 0, fg: Indexed(4), bg: Reset, underline: Reset, modifier: BOLD, x: 50, y: 0, fg: Reset, bg: Reset, underline: Reset, modifier: NONE, x: 0, y: 1, fg: LightRed, bg: Cyan, underline: Reset, modifier: BOLD, x: 1, y: 1, fg: Reset, bg: Reset, underline: Reset, modifier: NONE, diff --git a/src/snapshots/tui_term__widget__tests__simple_cursor_alternate_symbol.snap b/src/snapshots/tui_term__widget__tests__simple_cursor_alternate_symbol.snap index 1b60a08..806804e 100644 --- a/src/snapshots/tui_term__widget__tests__simple_cursor_alternate_symbol.snap +++ b/src/snapshots/tui_term__widget__tests__simple_cursor_alternate_symbol.snap @@ -10,7 +10,7 @@ Buffer { " CHANGELOG.md  flake.lock  rust-toolchain.toml  wezterm ", " cliff.toml  flake.nix  src ", " committed.toml  justfile  target ", - "tui-term on  main [!?⇡] via ❄️ pure (tui-term-env) ", + "tui-term on  main [!?⇡] via ❄️pure (tui-term-env) ", // hidden by multi-width symbols: [(30, " ")] "❯ ", " ", "| ", @@ -51,6 +51,8 @@ Buffer { x: 19, y: 5, fg: Indexed(1), bg: Reset, underline: Reset, modifier: BOLD, x: 24, y: 5, fg: Reset, bg: Reset, underline: Reset, modifier: NONE, x: 29, y: 5, fg: Indexed(4), bg: Reset, underline: Reset, modifier: BOLD, + x: 30, y: 5, fg: Reset, bg: Reset, underline: Reset, modifier: NONE, + x: 31, y: 5, fg: Indexed(4), bg: Reset, underline: Reset, modifier: BOLD, x: 50, y: 5, fg: Reset, bg: Reset, underline: Reset, modifier: NONE, x: 0, y: 6, fg: Indexed(2), bg: Reset, underline: Reset, modifier: BOLD, x: 1, y: 6, fg: Reset, bg: Reset, underline: Reset, modifier: NONE, diff --git a/src/snapshots/tui_term__widget__tests__simple_cursor_hide.snap b/src/snapshots/tui_term__widget__tests__simple_cursor_hide.snap index a60d302..7cc21c8 100644 --- a/src/snapshots/tui_term__widget__tests__simple_cursor_hide.snap +++ b/src/snapshots/tui_term__widget__tests__simple_cursor_hide.snap @@ -10,7 +10,7 @@ Buffer { " CHANGELOG.md  flake.lock  rust-toolchain.toml  wezterm ", " cliff.toml  flake.nix  src ", " committed.toml  justfile  target ", - "tui-term on  main [!?⇡] via ❄️ pure (tui-term-env) ", + "tui-term on  main [!?⇡] via ❄️pure (tui-term-env) ", // hidden by multi-width symbols: [(30, " ")] "❯ ", " ", " ", @@ -51,6 +51,8 @@ Buffer { x: 19, y: 5, fg: Indexed(1), bg: Reset, underline: Reset, modifier: BOLD, x: 24, y: 5, fg: Reset, bg: Reset, underline: Reset, modifier: NONE, x: 29, y: 5, fg: Indexed(4), bg: Reset, underline: Reset, modifier: BOLD, + x: 30, y: 5, fg: Reset, bg: Reset, underline: Reset, modifier: NONE, + x: 31, y: 5, fg: Indexed(4), bg: Reset, underline: Reset, modifier: BOLD, x: 50, y: 5, fg: Reset, bg: Reset, underline: Reset, modifier: NONE, x: 0, y: 6, fg: Indexed(2), bg: Reset, underline: Reset, modifier: BOLD, x: 1, y: 6, fg: Reset, bg: Reset, underline: Reset, modifier: NONE, diff --git a/src/snapshots/tui_term__widget__tests__simple_cursor_hide_alt.snap b/src/snapshots/tui_term__widget__tests__simple_cursor_hide_alt.snap index a60d302..7cc21c8 100644 --- a/src/snapshots/tui_term__widget__tests__simple_cursor_hide_alt.snap +++ b/src/snapshots/tui_term__widget__tests__simple_cursor_hide_alt.snap @@ -10,7 +10,7 @@ Buffer { " CHANGELOG.md  flake.lock  rust-toolchain.toml  wezterm ", " cliff.toml  flake.nix  src ", " committed.toml  justfile  target ", - "tui-term on  main [!?⇡] via ❄️ pure (tui-term-env) ", + "tui-term on  main [!?⇡] via ❄️pure (tui-term-env) ", // hidden by multi-width symbols: [(30, " ")] "❯ ", " ", " ", @@ -51,6 +51,8 @@ Buffer { x: 19, y: 5, fg: Indexed(1), bg: Reset, underline: Reset, modifier: BOLD, x: 24, y: 5, fg: Reset, bg: Reset, underline: Reset, modifier: NONE, x: 29, y: 5, fg: Indexed(4), bg: Reset, underline: Reset, modifier: BOLD, + x: 30, y: 5, fg: Reset, bg: Reset, underline: Reset, modifier: NONE, + x: 31, y: 5, fg: Indexed(4), bg: Reset, underline: Reset, modifier: BOLD, x: 50, y: 5, fg: Reset, bg: Reset, underline: Reset, modifier: NONE, x: 0, y: 6, fg: Indexed(2), bg: Reset, underline: Reset, modifier: BOLD, x: 1, y: 6, fg: Reset, bg: Reset, underline: Reset, modifier: NONE, diff --git a/src/snapshots/tui_term__widget__tests__simple_cursor_styled.snap b/src/snapshots/tui_term__widget__tests__simple_cursor_styled.snap index f90c5b8..adbc66c 100644 --- a/src/snapshots/tui_term__widget__tests__simple_cursor_styled.snap +++ b/src/snapshots/tui_term__widget__tests__simple_cursor_styled.snap @@ -10,7 +10,7 @@ Buffer { " CHANGELOG.md  flake.lock  rust-toolchain.toml  wezterm ", " cliff.toml  flake.nix  src ", " committed.toml  justfile  target ", - "tui-term on  main [!?⇡] via ❄️ pure (tui-term-env) ", + "tui-term on  main [!?⇡] via ❄️pure (tui-term-env) ", // hidden by multi-width symbols: [(30, " ")] "❯ ", " ", "| ", @@ -51,6 +51,8 @@ Buffer { x: 19, y: 5, fg: Indexed(1), bg: Reset, underline: Reset, modifier: BOLD, x: 24, y: 5, fg: Reset, bg: Reset, underline: Reset, modifier: NONE, x: 29, y: 5, fg: Indexed(4), bg: Reset, underline: Reset, modifier: BOLD, + x: 30, y: 5, fg: Reset, bg: Reset, underline: Reset, modifier: NONE, + x: 31, y: 5, fg: Indexed(4), bg: Reset, underline: Reset, modifier: BOLD, x: 50, y: 5, fg: Reset, bg: Reset, underline: Reset, modifier: NONE, x: 0, y: 6, fg: Indexed(2), bg: Reset, underline: Reset, modifier: BOLD, x: 1, y: 6, fg: Reset, bg: Reset, underline: Reset, modifier: NONE, diff --git a/src/snapshots/tui_term__widget__tests__simple_ls.snap b/src/snapshots/tui_term__widget__tests__simple_ls.snap index 203893e..29d8c72 100644 --- a/src/snapshots/tui_term__widget__tests__simple_ls.snap +++ b/src/snapshots/tui_term__widget__tests__simple_ls.snap @@ -10,7 +10,7 @@ Buffer { " CHANGELOG.md  flake.lock  rust-toolchain.toml  wezterm ", " cliff.toml  flake.nix  src ", " committed.toml  justfile  target ", - "tui-term on  main [!?⇡] via ❄️ pure (tui-term-env) ", + "tui-term on  main [!?⇡] via ❄️pure (tui-term-env) ", // hidden by multi-width symbols: [(30, " ")] "❯ ", " ", "█ ", @@ -51,6 +51,8 @@ Buffer { x: 19, y: 5, fg: Indexed(1), bg: Reset, underline: Reset, modifier: BOLD, x: 24, y: 5, fg: Reset, bg: Reset, underline: Reset, modifier: NONE, x: 29, y: 5, fg: Indexed(4), bg: Reset, underline: Reset, modifier: BOLD, + x: 30, y: 5, fg: Reset, bg: Reset, underline: Reset, modifier: NONE, + x: 31, y: 5, fg: Indexed(4), bg: Reset, underline: Reset, modifier: BOLD, x: 50, y: 5, fg: Reset, bg: Reset, underline: Reset, modifier: NONE, x: 0, y: 6, fg: Indexed(2), bg: Reset, underline: Reset, modifier: BOLD, x: 1, y: 6, fg: Reset, bg: Reset, underline: Reset, modifier: NONE, diff --git a/src/snapshots/tui_term__widget__tests__simple_ls_no_style_from_block.snap b/src/snapshots/tui_term__widget__tests__simple_ls_no_style_from_block.snap index cf37c2a..4c79200 100644 --- a/src/snapshots/tui_term__widget__tests__simple_ls_no_style_from_block.snap +++ b/src/snapshots/tui_term__widget__tests__simple_ls_no_style_from_block.snap @@ -11,7 +11,7 @@ Buffer { "│ CHANGELOG.md  flake.lock  rust-toolchain.toml  wezterm │", "│ cliff.toml  flake.nix  src │", "│ committed.toml  justfile  target │", - "│tui-term on  main [!?⇡] via ❄️ pure (tui-term-env) │", + "│tui-term on  main [!?⇡] via ❄️pure (tui-term-env) │", // hidden by multi-width symbols: [(31, " ")] "│❯ │", "│ │", "│█ │", @@ -61,6 +61,8 @@ Buffer { x: 20, y: 6, fg: Indexed(1), bg: Reset, underline: Reset, modifier: BOLD, x: 25, y: 6, fg: Reset, bg: Reset, underline: Reset, modifier: NONE, x: 30, y: 6, fg: Indexed(4), bg: Reset, underline: Reset, modifier: BOLD, + x: 31, y: 6, fg: Reset, bg: Reset, underline: Reset, modifier: NONE, + x: 32, y: 6, fg: Indexed(4), bg: Reset, underline: Reset, modifier: BOLD, x: 51, y: 6, fg: Reset, bg: Reset, underline: Reset, modifier: NONE, x: 81, y: 6, fg: Reset, bg: Reset, underline: Reset, modifier: BOLD, x: 1, y: 7, fg: Indexed(2), bg: Reset, underline: Reset, modifier: BOLD, diff --git a/src/snapshots/tui_term__widget__tests__simple_ls_with_block.snap b/src/snapshots/tui_term__widget__tests__simple_ls_with_block.snap index aed5682..f937304 100644 --- a/src/snapshots/tui_term__widget__tests__simple_ls_with_block.snap +++ b/src/snapshots/tui_term__widget__tests__simple_ls_with_block.snap @@ -11,7 +11,7 @@ Buffer { "│ CHANGELOG.md  flake.lock  rust-toolchain.toml  wezterm │", "│ cliff.toml  flake.nix  src │", "│ committed.toml  justfile  target │", - "│tui-term on  main [!?⇡] via ❄️ pure (tui-term-env) │", + "│tui-term on  main [!?⇡] via ❄️pure (tui-term-env) │", // hidden by multi-width symbols: [(31, " ")] "│❯ │", "│ │", "│█ │", @@ -51,6 +51,8 @@ Buffer { x: 20, y: 6, fg: Indexed(1), bg: Reset, underline: Reset, modifier: BOLD, x: 25, y: 6, fg: Reset, bg: Reset, underline: Reset, modifier: NONE, x: 30, y: 6, fg: Indexed(4), bg: Reset, underline: Reset, modifier: BOLD, + x: 31, y: 6, fg: Reset, bg: Reset, underline: Reset, modifier: NONE, + x: 32, y: 6, fg: Indexed(4), bg: Reset, underline: Reset, modifier: BOLD, x: 51, y: 6, fg: Reset, bg: Reset, underline: Reset, modifier: NONE, x: 1, y: 7, fg: Indexed(2), bg: Reset, underline: Reset, modifier: BOLD, x: 2, y: 7, fg: Reset, bg: Reset, underline: Reset, modifier: NONE,