
Effortlessly build beautiful command-line apps
Repo bombshell-dev/clack, read from GitHub 1 d ago. bombshell-dev has not joined Take My Repo.
#596 cbeefcb Thanks @dreyfus92! - Add accessible mode to spinner: when enabled via the accessible option, the global setting, or the ACCESSIBLE env var, the spinner emits static, append-only, screen-reader friendly output, a plain start line, a "still working" heartbeat every 30 seconds, and a plain final line. Instead of animated in-place repaints.
#614 5ac9e73 Thanks @btea! - Allow multiselect to accept readonly option arrays, e.g. options declared with as const. The Value type parameter is now inferred as a literal union ('a' | 'b') from such arrays, and initialValues also accepts readonly arrays.
#622 1835f41 Thanks @btea! - Add support for disabled selectKey options: they are rendered dimmed, cannot be selected by keypress, and are ignored when set as the initial value.
#610 be35482 Thanks @43081j! - Update sisteransi to 2.x (ESM only).
#618 3e0bffd Thanks @btea! - Use an explicit undefined check when forwarding autocomplete initialValue so 0, false, and empty strings remain selectable instead of falling back to the first option.
#631 9053625 Thanks @43081j! - Account for escape sequences in prefixes during line wrapping. Very narrow outputs will now render correctly.
#616 f325a53 Thanks @btea! - Fix that isCancelled returned after calling cancel and start methods in progress does not refresh.
#627 34976a7 Thanks @b84330808! - Fix the path prompt in directory mode on Windows: typing a trailing \ after a directory now lists its children instead of showing no matches.
#628 85f6aff Thanks @imharjot! - Render falsy primitive options through the limitOptions style callback instead of leaving blank rows.
Updated dependencies [be35482, 9053625, f2bc46b, f325a53, 5ac9e73, e66ab12, 1835f41]:
1835f41 Thanks @btea! - Add support for disabled selectKey options: they are rendered dimmed, cannot be selected by keypress, and are ignored when set as the initial value.#610 be35482 Thanks @43081j! - Update sisteransi to 2.x (ESM only).
#631 9053625 Thanks @43081j! - Account for escape sequences in prefixes during line wrapping. Very narrow outputs will now render correctly.
#608 f2bc46b Thanks @kai-natori! - Treat an ideographic space (U+3000) committed by IMEs (e.g. Japanese or Chinese input) as space when toggling options in multi-select prompts.
#616 f325a53 Thanks @btea! - Fix that isCancelled returned after calling cancel and start methods in progress does not refresh.
#614 5ac9e73 Thanks @btea! - Allow multiselect to accept readonly option arrays, e.g. options declared with as const. The Value type parameter is now inferred as a literal union ('a' | 'b') from such arrays, and initialValues also accepts readonly arrays.
#630 e66ab12 Thanks @imharjot! - Use the configured output stream's width when wrapping and clearing prompt frames, including prompts written to stderr while stdout is redirected.
8bd9129 Thanks @gameroman! - Return type for prompts now correctly specifies CANCEL_SYMBOL instead of symbol8bd9129 Thanks @gameroman! - Return type for prompts now correctly specifies CANCEL_SYMBOL instead of symbol
Updated dependencies [8bd9129]:
#595 227583e Thanks @dreyfus92! - 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.
#592 caa32e8 Thanks @gameroman! - Export CANCEL_SYMBOL constant from @clack/core and @clack/prompts
#594 37fca4e Thanks @dreyfus92! - 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.
#583 ae636dd Thanks @43081j! - Add async validation support to prompts, and validation state rendering to text prompts.
#593 b20fa2b Thanks @dreyfus92! - 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).
#592 caa32e8 Thanks @gameroman! - Export CANCEL_SYMBOL constant from @clack/core and @clack/prompts
#594 37fca4e Thanks @dreyfus92! - 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.
#583 ae636dd Thanks @43081j! - Add async validation support to prompts, and validation state rendering to text prompts.
#588 6506135 Thanks @danielroe! - Style the guide bar rendered by box({ withGuide: true }) in grey so it matches the gutter drawn by log, note and the spinner
#599 0547d6f Thanks @43081j! - Fixes a withGuide rendering issue leaving extra spaces in text prompts.
Updated dependencies [227583e, caa32e8, 37fca4e, ae636dd, b20fa2b]: