Skip to content

Commit 2aa0c03

Browse files
committed
Merge branch 'main' into feat-select-disabled
2 parents ef8ed7e + 8409f2c commit 2aa0c03

35 files changed

+1030
-190
lines changed

.changeset/better-hotels-fall.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@clack/prompts": patch
3+
---
4+
5+
Clamp scrolling windows to 5 rows.

.changeset/crazy-ducks-shine.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@clack/prompts": minor
3+
---
4+
5+
feat: add styleFrame option for spinner

.changeset/great-lies-dance.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@clack/prompts": patch
3+
---
4+
5+
fix(note): hard wrap text to column limit

.changeset/late-squids-obey.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@clack/prompts": minor
3+
"@clack/core": minor
4+
---
5+
6+
Support wrapping autocomplete and select prompts.

.changeset/lucky-dragons-think.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@clack/prompts": patch
3+
---
4+
5+
fix(note, box): handle CJK correctly

.changeset/pre.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,21 @@
1818
"empty-buses-wonder",
1919
"famous-turkeys-burn",
2020
"five-chairs-poke",
21+
"floppy-laws-tan",
2122
"free-wasps-decide",
2223
"giant-dryers-serve",
24+
"great-lies-dance",
2325
"happy-parents-explain",
2426
"healthy-candles-admire",
2527
"healthy-kings-play",
2628
"honest-singers-cough",
2729
"hot-turkeys-knock",
30+
"kind-yaks-clean",
31+
"late-squids-obey",
2832
"legal-bags-tie",
2933
"lemon-monkeys-help",
3034
"light-waves-jog",
35+
"lucky-dragons-think",
3136
"mean-mice-train",
3237
"mean-turkeys-help",
3338
"mean-years-remain",
@@ -36,6 +41,7 @@
3641
"orange-deers-battle",
3742
"rich-plants-call",
3843
"sharp-lemons-build",
44+
"short-squids-battle",
3945
"short-taxis-cross",
4046
"shy-ideas-shout",
4147
"slimy-roses-own",
@@ -44,6 +50,8 @@
4450
"sweet-deers-smell",
4551
"tall-cows-fold",
4652
"thin-socks-travel",
53+
"three-ideas-refuse",
54+
"tough-crews-flow",
4755
"upset-showers-grow",
4856
"violet-hornets-turn"
4957
]

.changeset/three-ideas-refuse.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@clack/prompts": patch
3+
---
4+
5+
refactor(progress): remove unnecessary return statement in start function

.changeset/tough-crews-flow.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@clack/prompts": patch
3+
"@clack/core": patch
4+
---
5+
6+
Allow custom writables as output stream.

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ The `examples/` directory contains sample projects that demonstrate how to use C
200200
pnpm lint
201201

202202
# Verify type correctness
203-
pnpm type-check
203+
pnpm types
204204

205205
# Run tests
206206
pnpm test

examples/basic/text-validation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ async function main() {
99
message: 'Enter your name (letters and spaces only)',
1010
initialValue: 'John123', // Invalid initial value with numbers
1111
validate: (value) => {
12-
if (!/^[a-zA-Z\s]+$/.test(value)) return 'Name can only contain letters and spaces';
12+
if (!value || !/^[a-zA-Z\s]+$/.test(value)) return 'Name can only contain letters and spaces';
1313
return undefined;
1414
},
1515
});
@@ -25,7 +25,7 @@ async function main() {
2525
message: 'Enter another name (letters and spaces only)',
2626
initialValue: 'John Doe', // Valid initial value
2727
validate: (value) => {
28-
if (!/^[a-zA-Z\s]+$/.test(value)) return 'Name can only contain letters and spaces';
28+
if (!value || !/^[a-zA-Z\s]+$/.test(value)) return 'Name can only contain letters and spaces';
2929
return undefined;
3030
},
3131
});

0 commit comments

Comments
 (0)