@akiojin/gwt 9.0.4 → 9.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/README.ja.md +106 -146
  2. package/README.md +103 -143
  3. package/bin/gwt.cjs +1 -1
  4. package/package.json +5 -5
  5. package/rustfmt.toml +0 -2
  6. package/scripts/check-release-flow.sh +2 -8
  7. package/scripts/postinstall.js +17 -7
  8. package/scripts/run-local-backend-tests-on-commit.sh +6 -12
  9. package/scripts/test-all.sh +1 -5
  10. package/scripts/check-e2e-coverage-threshold.mjs +0 -238
  11. package/scripts/run-local-e2e-coverage-on-commit.sh +0 -69
  12. package/scripts/run-local-e2e-on-commit.sh +0 -60
  13. package/scripts/verify-ci-node-toolchain.sh +0 -76
  14. package/scripts/voice-eval.sh +0 -48
  15. package/vendor/ratatui-core/src/backend/test.rs +0 -1077
  16. package/vendor/ratatui-core/src/backend.rs +0 -405
  17. package/vendor/ratatui-core/src/buffer/assert.rs +0 -71
  18. package/vendor/ratatui-core/src/buffer/buffer.rs +0 -1388
  19. package/vendor/ratatui-core/src/buffer/cell.rs +0 -377
  20. package/vendor/ratatui-core/src/buffer.rs +0 -9
  21. package/vendor/ratatui-core/src/layout/alignment.rs +0 -89
  22. package/vendor/ratatui-core/src/layout/constraint.rs +0 -526
  23. package/vendor/ratatui-core/src/layout/direction.rs +0 -63
  24. package/vendor/ratatui-core/src/layout/flex.rs +0 -212
  25. package/vendor/ratatui-core/src/layout/layout.rs +0 -2838
  26. package/vendor/ratatui-core/src/layout/margin.rs +0 -79
  27. package/vendor/ratatui-core/src/layout/offset.rs +0 -66
  28. package/vendor/ratatui-core/src/layout/position.rs +0 -253
  29. package/vendor/ratatui-core/src/layout/rect/iter.rs +0 -356
  30. package/vendor/ratatui-core/src/layout/rect/ops.rs +0 -136
  31. package/vendor/ratatui-core/src/layout/rect.rs +0 -1114
  32. package/vendor/ratatui-core/src/layout/size.rs +0 -147
  33. package/vendor/ratatui-core/src/layout.rs +0 -333
  34. package/vendor/ratatui-core/src/lib.rs +0 -82
  35. package/vendor/ratatui-core/src/style/anstyle.rs +0 -348
  36. package/vendor/ratatui-core/src/style/color.rs +0 -788
  37. package/vendor/ratatui-core/src/style/palette/material.rs +0 -608
  38. package/vendor/ratatui-core/src/style/palette/tailwind.rs +0 -653
  39. package/vendor/ratatui-core/src/style/palette.rs +0 -6
  40. package/vendor/ratatui-core/src/style/palette_conversion.rs +0 -82
  41. package/vendor/ratatui-core/src/style/stylize.rs +0 -668
  42. package/vendor/ratatui-core/src/style.rs +0 -1069
  43. package/vendor/ratatui-core/src/symbols/bar.rs +0 -51
  44. package/vendor/ratatui-core/src/symbols/block.rs +0 -51
  45. package/vendor/ratatui-core/src/symbols/border.rs +0 -709
  46. package/vendor/ratatui-core/src/symbols/braille.rs +0 -21
  47. package/vendor/ratatui-core/src/symbols/half_block.rs +0 -3
  48. package/vendor/ratatui-core/src/symbols/line.rs +0 -259
  49. package/vendor/ratatui-core/src/symbols/marker.rs +0 -82
  50. package/vendor/ratatui-core/src/symbols/merge.rs +0 -748
  51. package/vendor/ratatui-core/src/symbols/pixel.rs +0 -30
  52. package/vendor/ratatui-core/src/symbols/scrollbar.rs +0 -46
  53. package/vendor/ratatui-core/src/symbols/shade.rs +0 -5
  54. package/vendor/ratatui-core/src/symbols.rs +0 -15
  55. package/vendor/ratatui-core/src/terminal/frame.rs +0 -192
  56. package/vendor/ratatui-core/src/terminal/terminal.rs +0 -926
  57. package/vendor/ratatui-core/src/terminal/viewport.rs +0 -58
  58. package/vendor/ratatui-core/src/terminal.rs +0 -40
  59. package/vendor/ratatui-core/src/text/grapheme.rs +0 -84
  60. package/vendor/ratatui-core/src/text/line.rs +0 -1678
  61. package/vendor/ratatui-core/src/text/masked.rs +0 -149
  62. package/vendor/ratatui-core/src/text/span.rs +0 -904
  63. package/vendor/ratatui-core/src/text/text.rs +0 -1434
  64. package/vendor/ratatui-core/src/text.rs +0 -64
  65. package/vendor/ratatui-core/src/widgets/stateful_widget.rs +0 -193
  66. package/vendor/ratatui-core/src/widgets/widget.rs +0 -174
  67. package/vendor/ratatui-core/src/widgets.rs +0 -9
@@ -1,21 +0,0 @@
1
- //! Braille symbols.
2
- //!
3
- //! Note that the symbols are not listed according to their unicode codepoint but according to the
4
- //! corresponding bit pattern in row-major order.
5
-
6
- pub const BRAILLE: [char; 256] = [
7
- '⠀', '⠁', '⠈', '⠉', '⠂', '⠃', '⠊', '⠋', '⠐', '⠑', '⠘', '⠙', '⠒', '⠓', '⠚', '⠛', '⠄', '⠅', '⠌',
8
- '⠍', '⠆', '⠇', '⠎', '⠏', '⠔', '⠕', '⠜', '⠝', '⠖', '⠗', '⠞', '⠟', '⠠', '⠡', '⠨', '⠩', '⠢', '⠣',
9
- '⠪', '⠫', '⠰', '⠱', '⠸', '⠹', '⠲', '⠳', '⠺', '⠻', '⠤', '⠥', '⠬', '⠭', '⠦', '⠧', '⠮', '⠯', '⠴',
10
- '⠵', '⠼', '⠽', '⠶', '⠷', '⠾', '⠿', '⡀', '⡁', '⡈', '⡉', '⡂', '⡃', '⡊', '⡋', '⡐', '⡑', '⡘', '⡙',
11
- '⡒', '⡓', '⡚', '⡛', '⡄', '⡅', '⡌', '⡍', '⡆', '⡇', '⡎', '⡏', '⡔', '⡕', '⡜', '⡝', '⡖', '⡗', '⡞',
12
- '⡟', '⡠', '⡡', '⡨', '⡩', '⡢', '⡣', '⡪', '⡫', '⡰', '⡱', '⡸', '⡹', '⡲', '⡳', '⡺', '⡻', '⡤', '⡥',
13
- '⡬', '⡭', '⡦', '⡧', '⡮', '⡯', '⡴', '⡵', '⡼', '⡽', '⡶', '⡷', '⡾', '⡿', '⢀', '⢁', '⢈', '⢉', '⢂',
14
- '⢃', '⢊', '⢋', '⢐', '⢑', '⢘', '⢙', '⢒', '⢓', '⢚', '⢛', '⢄', '⢅', '⢌', '⢍', '⢆', '⢇', '⢎', '⢏',
15
- '⢔', '⢕', '⢜', '⢝', '⢖', '⢗', '⢞', '⢟', '⢠', '⢡', '⢨', '⢩', '⢢', '⢣', '⢪', '⢫', '⢰', '⢱', '⢸',
16
- '⢹', '⢲', '⢳', '⢺', '⢻', '⢤', '⢥', '⢬', '⢭', '⢦', '⢧', '⢮', '⢯', '⢴', '⢵', '⢼', '⢽', '⢶', '⢷',
17
- '⢾', '⢿', '⣀', '⣁', '⣈', '⣉', '⣂', '⣃', '⣊', '⣋', '⣐', '⣑', '⣘', '⣙', '⣒', '⣓', '⣚', '⣛', '⣄',
18
- '⣅', '⣌', '⣍', '⣆', '⣇', '⣎', '⣏', '⣔', '⣕', '⣜', '⣝', '⣖', '⣗', '⣞', '⣟', '⣠', '⣡', '⣨', '⣩',
19
- '⣢', '⣣', '⣪', '⣫', '⣰', '⣱', '⣸', '⣹', '⣲', '⣳', '⣺', '⣻', '⣤', '⣥', '⣬', '⣭', '⣦', '⣧', '⣮',
20
- '⣯', '⣴', '⣵', '⣼', '⣽', '⣶', '⣷', '⣾', '⣿',
21
- ];
@@ -1,3 +0,0 @@
1
- pub const UPPER: char = '▀';
2
- pub const LOWER: char = '▄';
3
- pub const FULL: char = '█';
@@ -1,259 +0,0 @@
1
- pub const VERTICAL: &str = "│";
2
- pub const DOUBLE_VERTICAL: &str = "║";
3
- pub const THICK_VERTICAL: &str = "┃";
4
- pub const LIGHT_DOUBLE_DASH_VERTICAL: &str = "╎";
5
- pub const HEAVY_DOUBLE_DASH_VERTICAL: &str = "╏";
6
- pub const LIGHT_TRIPLE_DASH_VERTICAL: &str = "┆";
7
- pub const HEAVY_TRIPLE_DASH_VERTICAL: &str = "┇";
8
- pub const LIGHT_QUADRUPLE_DASH_VERTICAL: &str = "┊";
9
- pub const HEAVY_QUADRUPLE_DASH_VERTICAL: &str = "┋";
10
-
11
- pub const HORIZONTAL: &str = "─";
12
- pub const DOUBLE_HORIZONTAL: &str = "═";
13
- pub const THICK_HORIZONTAL: &str = "━";
14
- pub const LIGHT_DOUBLE_DASH_HORIZONTAL: &str = "╌";
15
- pub const HEAVY_DOUBLE_DASH_HORIZONTAL: &str = "╍";
16
- pub const LIGHT_TRIPLE_DASH_HORIZONTAL: &str = "┄";
17
- pub const HEAVY_TRIPLE_DASH_HORIZONTAL: &str = "┅";
18
- pub const LIGHT_QUADRUPLE_DASH_HORIZONTAL: &str = "┈";
19
- pub const HEAVY_QUADRUPLE_DASH_HORIZONTAL: &str = "┉";
20
-
21
- pub const TOP_RIGHT: &str = "┐";
22
- pub const ROUNDED_TOP_RIGHT: &str = "╮";
23
- pub const DOUBLE_TOP_RIGHT: &str = "╗";
24
- pub const THICK_TOP_RIGHT: &str = "┓";
25
-
26
- pub const TOP_LEFT: &str = "┌";
27
- pub const ROUNDED_TOP_LEFT: &str = "╭";
28
- pub const DOUBLE_TOP_LEFT: &str = "╔";
29
- pub const THICK_TOP_LEFT: &str = "┏";
30
-
31
- pub const BOTTOM_RIGHT: &str = "┘";
32
- pub const ROUNDED_BOTTOM_RIGHT: &str = "╯";
33
- pub const DOUBLE_BOTTOM_RIGHT: &str = "╝";
34
- pub const THICK_BOTTOM_RIGHT: &str = "┛";
35
-
36
- pub const BOTTOM_LEFT: &str = "└";
37
- pub const ROUNDED_BOTTOM_LEFT: &str = "╰";
38
- pub const DOUBLE_BOTTOM_LEFT: &str = "╚";
39
- pub const THICK_BOTTOM_LEFT: &str = "┗";
40
-
41
- pub const VERTICAL_LEFT: &str = "┤";
42
- pub const DOUBLE_VERTICAL_LEFT: &str = "╣";
43
- pub const THICK_VERTICAL_LEFT: &str = "┫";
44
-
45
- pub const VERTICAL_RIGHT: &str = "├";
46
- pub const DOUBLE_VERTICAL_RIGHT: &str = "╠";
47
- pub const THICK_VERTICAL_RIGHT: &str = "┣";
48
-
49
- pub const HORIZONTAL_DOWN: &str = "┬";
50
- pub const DOUBLE_HORIZONTAL_DOWN: &str = "╦";
51
- pub const THICK_HORIZONTAL_DOWN: &str = "┳";
52
-
53
- pub const HORIZONTAL_UP: &str = "┴";
54
- pub const DOUBLE_HORIZONTAL_UP: &str = "╩";
55
- pub const THICK_HORIZONTAL_UP: &str = "┻";
56
-
57
- pub const CROSS: &str = "┼";
58
- pub const DOUBLE_CROSS: &str = "╬";
59
- pub const THICK_CROSS: &str = "╋";
60
-
61
- #[derive(Debug, Clone, Copy, Eq, PartialEq, Hash)]
62
- pub struct Set<'a> {
63
- pub vertical: &'a str,
64
- pub horizontal: &'a str,
65
- pub top_right: &'a str,
66
- pub top_left: &'a str,
67
- pub bottom_right: &'a str,
68
- pub bottom_left: &'a str,
69
- pub vertical_left: &'a str,
70
- pub vertical_right: &'a str,
71
- pub horizontal_down: &'a str,
72
- pub horizontal_up: &'a str,
73
- pub cross: &'a str,
74
- }
75
-
76
- impl Default for Set<'_> {
77
- fn default() -> Self {
78
- NORMAL
79
- }
80
- }
81
-
82
- pub const NORMAL: Set = Set {
83
- vertical: VERTICAL,
84
- horizontal: HORIZONTAL,
85
- top_right: TOP_RIGHT,
86
- top_left: TOP_LEFT,
87
- bottom_right: BOTTOM_RIGHT,
88
- bottom_left: BOTTOM_LEFT,
89
- vertical_left: VERTICAL_LEFT,
90
- vertical_right: VERTICAL_RIGHT,
91
- horizontal_down: HORIZONTAL_DOWN,
92
- horizontal_up: HORIZONTAL_UP,
93
- cross: CROSS,
94
- };
95
-
96
- pub const ROUNDED: Set = Set {
97
- top_right: ROUNDED_TOP_RIGHT,
98
- top_left: ROUNDED_TOP_LEFT,
99
- bottom_right: ROUNDED_BOTTOM_RIGHT,
100
- bottom_left: ROUNDED_BOTTOM_LEFT,
101
- ..NORMAL
102
- };
103
-
104
- pub const DOUBLE: Set = Set {
105
- vertical: DOUBLE_VERTICAL,
106
- horizontal: DOUBLE_HORIZONTAL,
107
- top_right: DOUBLE_TOP_RIGHT,
108
- top_left: DOUBLE_TOP_LEFT,
109
- bottom_right: DOUBLE_BOTTOM_RIGHT,
110
- bottom_left: DOUBLE_BOTTOM_LEFT,
111
- vertical_left: DOUBLE_VERTICAL_LEFT,
112
- vertical_right: DOUBLE_VERTICAL_RIGHT,
113
- horizontal_down: DOUBLE_HORIZONTAL_DOWN,
114
- horizontal_up: DOUBLE_HORIZONTAL_UP,
115
- cross: DOUBLE_CROSS,
116
- };
117
-
118
- pub const THICK: Set = Set {
119
- vertical: THICK_VERTICAL,
120
- horizontal: THICK_HORIZONTAL,
121
- top_right: THICK_TOP_RIGHT,
122
- top_left: THICK_TOP_LEFT,
123
- bottom_right: THICK_BOTTOM_RIGHT,
124
- bottom_left: THICK_BOTTOM_LEFT,
125
- vertical_left: THICK_VERTICAL_LEFT,
126
- vertical_right: THICK_VERTICAL_RIGHT,
127
- horizontal_down: THICK_HORIZONTAL_DOWN,
128
- horizontal_up: THICK_HORIZONTAL_UP,
129
- cross: THICK_CROSS,
130
- };
131
-
132
- pub const LIGHT_DOUBLE_DASHED: Set = Set {
133
- vertical: LIGHT_DOUBLE_DASH_VERTICAL,
134
- horizontal: LIGHT_DOUBLE_DASH_HORIZONTAL,
135
- ..NORMAL
136
- };
137
-
138
- pub const HEAVY_DOUBLE_DASHED: Set = Set {
139
- vertical: HEAVY_DOUBLE_DASH_VERTICAL,
140
- horizontal: HEAVY_DOUBLE_DASH_HORIZONTAL,
141
- ..THICK
142
- };
143
-
144
- pub const LIGHT_TRIPLE_DASHED: Set = Set {
145
- vertical: LIGHT_TRIPLE_DASH_VERTICAL,
146
- horizontal: LIGHT_TRIPLE_DASH_HORIZONTAL,
147
- ..NORMAL
148
- };
149
-
150
- pub const HEAVY_TRIPLE_DASHED: Set = Set {
151
- vertical: HEAVY_TRIPLE_DASH_VERTICAL,
152
- horizontal: HEAVY_TRIPLE_DASH_HORIZONTAL,
153
- ..THICK
154
- };
155
-
156
- pub const LIGHT_QUADRUPLE_DASHED: Set = Set {
157
- vertical: LIGHT_QUADRUPLE_DASH_VERTICAL,
158
- horizontal: LIGHT_QUADRUPLE_DASH_HORIZONTAL,
159
- ..NORMAL
160
- };
161
-
162
- pub const HEAVY_QUADRUPLE_DASHED: Set = Set {
163
- vertical: HEAVY_QUADRUPLE_DASH_VERTICAL,
164
- horizontal: HEAVY_QUADRUPLE_DASH_HORIZONTAL,
165
- ..THICK
166
- };
167
-
168
- #[cfg(test)]
169
- mod tests {
170
- use alloc::format;
171
- use alloc::string::String;
172
-
173
- use indoc::{formatdoc, indoc};
174
-
175
- use super::*;
176
-
177
- #[test]
178
- fn default() {
179
- assert_eq!(Set::default(), NORMAL);
180
- }
181
-
182
- /// A helper function to render a set of symbols.
183
- fn render(set: Set) -> String {
184
- formatdoc!(
185
- "{}{}{}{}
186
- {}{}{}{}
187
- {}{}{}{}
188
- {}{}{}{}",
189
- set.top_left,
190
- set.horizontal,
191
- set.horizontal_down,
192
- set.top_right,
193
- set.vertical,
194
- " ",
195
- set.vertical,
196
- set.vertical,
197
- set.vertical_right,
198
- set.horizontal,
199
- set.cross,
200
- set.vertical_left,
201
- set.bottom_left,
202
- set.horizontal,
203
- set.horizontal_up,
204
- set.bottom_right
205
- )
206
- }
207
-
208
- #[test]
209
- fn normal() {
210
- assert_eq!(
211
- render(NORMAL),
212
- indoc!(
213
- "┌─┬┐
214
- │ ││
215
- ├─┼┤
216
- └─┴┘"
217
- )
218
- );
219
- }
220
-
221
- #[test]
222
- fn rounded() {
223
- assert_eq!(
224
- render(ROUNDED),
225
- indoc!(
226
- "╭─┬╮
227
- │ ││
228
- ├─┼┤
229
- ╰─┴╯"
230
- )
231
- );
232
- }
233
-
234
- #[test]
235
- fn double() {
236
- assert_eq!(
237
- render(DOUBLE),
238
- indoc!(
239
- "╔═╦╗
240
- ║ ║║
241
- ╠═╬╣
242
- ╚═╩╝"
243
- )
244
- );
245
- }
246
-
247
- #[test]
248
- fn thick() {
249
- assert_eq!(
250
- render(THICK),
251
- indoc!(
252
- "┏━┳┓
253
- ┃ ┃┃
254
- ┣━╋┫
255
- ┗━┻┛"
256
- )
257
- );
258
- }
259
- }
@@ -1,82 +0,0 @@
1
- use strum::{Display, EnumString};
2
-
3
- pub const DOT: &str = "•";
4
-
5
- /// Marker to use when plotting data points
6
- #[derive(Debug, Default, Display, EnumString, Clone, Copy, Eq, PartialEq, Hash)]
7
- #[non_exhaustive]
8
- pub enum Marker {
9
- /// One point per cell in shape of dot (`•`)
10
- #[default]
11
- Dot,
12
- /// One point per cell in shape of a block (`█`)
13
- Block,
14
- /// One point per cell in the shape of a bar (`▄`)
15
- Bar,
16
- /// Use the [Unicode Braille Patterns](https://en.wikipedia.org/wiki/Braille_Patterns) block to
17
- /// represent data points.
18
- ///
19
- /// This is a 2x4 grid of dots, where each dot can be either on or off.
20
- ///
21
- /// Note: Support for this marker is limited to terminals and fonts that support Unicode
22
- /// Braille Patterns. If your terminal does not support this, you will see unicode replacement
23
- /// characters (`�`) instead of Braille dots (`⠓`, `⣇`, `⣿`).
24
- Braille,
25
- /// Use the unicode block and half block characters (`█`, `▄`, and `▀`) to represent points in
26
- /// a grid that is double the resolution of the terminal. Because each terminal cell is
27
- /// generally about twice as tall as it is wide, this allows for a square grid of pixels.
28
- HalfBlock,
29
- /// Use quadrant characters to represent data points.
30
- ///
31
- /// Quadrant characters display densely packed and regularly spaced pseudo-pixels with a 2x2
32
- /// resolution per character, without visible bands between cells.
33
- Quadrant,
34
- /// Use sextant characters from the [Unicode Symbols for Legacy Computing
35
- /// Supplement](https://en.wikipedia.org/wiki/Symbols_for_Legacy_Computing_Supplement) to
36
- /// represent data points.
37
- ///
38
- /// Sextant characters display densely packed and regularly spaced pseudo-pixels with a 2x3
39
- /// resolution per character, without visible bands between cells.
40
- ///
41
- /// Note: the Symbols for Legacy Computing Supplement block is a relatively recent addition to
42
- /// unicode that is less broadly supported than Braille dots. If your terminal does not support
43
- /// this, you will see unicode replacement characters (`�`) instead of sextants (`🬌`, `🬲`, `🬑`).
44
- Sextant,
45
- /// Use octant characters from the [Unicode Symbols for Legacy Computing
46
- /// Supplement](https://en.wikipedia.org/wiki/Symbols_for_Legacy_Computing_Supplement) to
47
- /// represent data points.
48
- ///
49
- /// Octant characters have the same 2x4 resolution as Braille characters but display densely
50
- /// packed and regularly spaced pseudo-pixels, without visible bands between cells.
51
- ///
52
- /// Note: the Symbols for Legacy Computing Supplement block is a relatively recent addition to
53
- /// unicode that is less broadly supported than Braille dots. If your terminal does not support
54
- /// this, you will see unicode replacement characters (`�`) instead of octants (`𜴇`, `𜷀`, `𜴷`).
55
- Octant,
56
- }
57
-
58
- #[cfg(test)]
59
- mod tests {
60
- use alloc::string::ToString;
61
-
62
- use strum::ParseError;
63
-
64
- use super::*;
65
-
66
- #[test]
67
- fn marker_tostring() {
68
- assert_eq!(Marker::Dot.to_string(), "Dot");
69
- assert_eq!(Marker::Block.to_string(), "Block");
70
- assert_eq!(Marker::Bar.to_string(), "Bar");
71
- assert_eq!(Marker::Braille.to_string(), "Braille");
72
- }
73
-
74
- #[test]
75
- fn marker_from_str() {
76
- assert_eq!("Dot".parse::<Marker>(), Ok(Marker::Dot));
77
- assert_eq!("Block".parse::<Marker>(), Ok(Marker::Block));
78
- assert_eq!("Bar".parse::<Marker>(), Ok(Marker::Bar));
79
- assert_eq!("Braille".parse::<Marker>(), Ok(Marker::Braille));
80
- assert_eq!("".parse::<Marker>(), Err(ParseError::VariantNotFound));
81
- }
82
- }