@@ -57701,7 +57701,7 @@ function usePrefix({ status = "idle", theme }) {
5770157701 return spinner.frames[tick];
5770257702 }
5770357703 const iconName = status === "loading" ? "idle" : status;
57704- return typeof prefix === "string" ? prefix : prefix[iconName];
57704+ return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"] ;
5770557705}
5770657706
5770757707//
@@ -58395,7 +58395,7 @@ ${page}${helpTipBottom}${choiceDescription}${error2}${import_ansi_escapes2.defau
5839558395var import_external_editor = __toESM(require_main2(), 1);
5839658396import { AsyncResource as AsyncResource4 } from "node:async_hooks";
5839758397var esm_default3 = createPrompt((config, done) => {
58398- const { waitForUseInput = true, postfix = ".txt", validate = () => true } = config;
58398+ const { waitForUseInput = true, file: { postfix = config.postfix ?? ".txt", ...fileProps } = {} , validate = () => true } = config;
5839958399 const theme = makeTheme(config.theme);
5840058400 const [status, setStatus] = useState("idle");
5840158401 const [value, setValue] = useState(config.default || "");
@@ -58421,7 +58421,10 @@ var esm_default3 = createPrompt((config, done) => {
5842158421 }
5842258422 }
5842358423 });
58424- (0, import_external_editor.editAsync)(value, (error3, answer) => void editCallback(error3, answer), { postfix });
58424+ (0, import_external_editor.editAsync)(value, (error3, answer) => void editCallback(error3, answer), {
58425+ postfix,
58426+ ...fileProps
58427+ });
5842558428 }
5842658429 useEffect((rl) => {
5842758430 if (!waitForUseInput) {
0 commit comments