Skip to content

Commit f6c9fa3

Browse files
committed
Merge branch 'main' into good-spinner
2 parents 6ff6b63 + 37fca4e commit f6c9fa3

67 files changed

Lines changed: 2753 additions & 780 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.changeset/box-guide-colour.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+
Style the guide bar rendered by `box({ withGuide: true })` in grey so it matches the gutter drawn by `log`, `note` and the spinner

‎.changeset/dirty-forks-study.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clack/core': minor
3+
---
4+
5+
Add an `accessible` option to the shared `PromptOptions` and a resolved `accessible` getter on the base `Prompt`, so any prompt can opt into accessible mode individually. Resolution order: per-prompt option > `updateSettings({ accessible })` > the `ACCESSIBLE` environment variable.

‎.changeset/export-cancel-symbol.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@clack/core": minor
3+
"@clack/prompts": minor
4+
---
5+
6+
Export `CANCEL_SYMBOL` constant from `@clack/core` and `@clack/prompts`

‎.changeset/modern-views-stay.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+
Add tab-completion to the `path` prompt: pressing Tab fills the input with the focused suggestion, so you can quickly descend into deep directories (type `/` and Tab again). Powered by a new opt-in `completeOnTab` option on `autocomplete`, which also shows a `Tab: complete` hint in the instructions footer. Default `autocomplete` behavior is unchanged.

‎.changeset/tall-doors-smile.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clack/core': minor
3+
---
4+
5+
Add `isAccessible()` and an `accessible` setting as the foundation for accessible mode. Resolution order: per-call option > `updateSettings({ accessible })` > the `ACCESSIBLE` environment variable (any non-empty value enables it, except `0` and `false`).

‎build.preset.ts‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@ import { definePreset } from 'unbuild';
44
export default definePreset({
55
clean: true,
66
declaration: 'node16',
7-
sourcemap: true,
7+
sourcemap: false,
88
rollup: {
99
emitCJS: false,
1010
inlineDependencies: true,
1111
esbuild: {
12-
minify: true,
12+
minifySyntax: true,
13+
minifyIdentifiers: true,
14+
minifyWhitespace: false,
1315
},
1416
},
1517
});

‎packages/core/CHANGELOG.md‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,30 @@
11
# @clack/core
22

3+
## 1.4.3
4+
5+
### Patch Changes
6+
7+
- [#582](https://github.com/bombshell-dev/clack/pull/582) [`4b24953`](https://github.com/bombshell-dev/clack/commit/4b249539e28eecc16c13b3a1bd0ba447e9f38d06) Thanks [@43081j](https://github.com/43081j)! - Handle empty arrays in various prompts and utilities.
8+
9+
## 1.4.2
10+
11+
### Patch Changes
12+
13+
- [#561](https://github.com/bombshell-dev/clack/pull/561) [`2f2b52f`](https://github.com/bombshell-dev/clack/commit/2f2b52f77cbfa9af618c6d929249ab8395fc37a1) Thanks [@avallete](https://github.com/avallete)! - Fix `password` prompt resolving to `undefined` on empty submit. It now normalizes an empty submission to `""`, matching the `text` prompt behavior and the documented `Promise<string | symbol>` return type.
14+
15+
- [#569](https://github.com/bombshell-dev/clack/pull/569) [`e1b6ee7`](https://github.com/bombshell-dev/clack/commit/e1b6ee71a76e17a3c33ba7ee6e5fb34e886233bb) Thanks [@43081j](https://github.com/43081j)! - fix: only submit multi-line prompt when double-return happens at end of input.
16+
17+
Also fixes two minor things:
18+
19+
- Initial value is used as initial user input for multi-line prompts
20+
- Cursor is placed at the end when there is initial input
21+
22+
## 1.4.1
23+
24+
### Patch Changes
25+
26+
- [#548](https://github.com/bombshell-dev/clack/pull/548) [`2356e97`](https://github.com/bombshell-dev/clack/commit/2356e97c1f46007ead55133c3a26910404ef1cfb) Thanks [@43081j](https://github.com/43081j)! - Remove sourcemaps and enable pretty-ish build output.
27+
328
## 1.4.0
429

530
### Minor Changes

‎packages/core/LICENSE‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) Nate Moore
3+
MIT License Copyright (c) 2025-Present [Bombshell contributors](https://bomb.sh/team)
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
66

‎packages/core/package.json‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@clack/core",
3-
"version": "1.4.0",
3+
"version": "1.4.3",
44
"type": "module",
55
"main": "./dist/index.mjs",
66
"module": "./dist/index.mjs",
@@ -22,8 +22,7 @@
2222
},
2323
"homepage": "https://github.com/bombshell-dev/clack/tree/main/packages/core#readme",
2424
"files": [
25-
"dist",
26-
"CHANGELOG.md"
25+
"dist"
2726
],
2827
"keywords": [
2928
"ask",

‎packages/core/src/index.ts‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,15 @@ export { default as SpinnerPrompt } from './prompts/spinner.js';
2323
export type { TextOptions } from './prompts/text.js';
2424
export { default as TextPrompt } from './prompts/text.js';
2525
export type { ClackState as State } from './types.js';
26-
export { block, getColumns, getRows, isCancel, wrapTextWithPrefix } from './utils/index.js';
26+
export {
27+
block,
28+
CANCEL_SYMBOL,
29+
getColumns,
30+
getRows,
31+
isCancel,
32+
wrapTextWithPrefix,
33+
} from './utils/index.js';
2734
export type { ClackSettings } from './utils/settings.js';
28-
export { settings, updateSettings } from './utils/settings.js';
35+
export { isAccessible, settings, updateSettings } from './utils/settings.js';
2936
export type { Validate } from './utils/validation.js';
3037
export { runValidation } from './utils/validation.js';

0 commit comments

Comments
 (0)