@inquirer/expand 5.0.11 → 5.0.12

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.
package/dist/index.d.ts CHANGED
@@ -9,15 +9,16 @@ type Choice<Value> = {
9
9
  name: string;
10
10
  value: Value;
11
11
  };
12
- declare const _default: <Value>(config: {
12
+ declare const expand: <Value>(config: {
13
13
  message: string;
14
14
  choices: readonly (Separator | {
15
15
  key: Key;
16
- name: string;
16
+ name: Value & string;
17
+ value?: never;
17
18
  } | Choice<Value>)[];
18
19
  default?: (Key | "h") | undefined;
19
20
  expanded?: boolean | undefined;
20
21
  theme?: PartialDeep<Theme> | undefined;
21
22
  }, context?: import("@inquirer/type").Context) => Promise<Value>;
22
- export default _default;
23
+ export default expand;
23
24
  export { Separator } from '@inquirer/core';
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@ const helpChoice = {
20
20
  name: 'Help, list all options',
21
21
  value: undefined,
22
22
  };
23
- export default createPrompt((config, done) => {
23
+ const expand = createPrompt((config, done) => {
24
24
  const { default: defaultKey = 'h' } = config;
25
25
  const choices = useMemo(() => normalizeChoices(config.choices), [config.choices]);
26
26
  const [status, setStatus] = useState('idle');
@@ -106,4 +106,5 @@ export default createPrompt((config, done) => {
106
106
  [longChoices, helpTip, error].filter(Boolean).join('\n'),
107
107
  ];
108
108
  });
109
+ export default expand;
109
110
  export { Separator } from '@inquirer/core';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inquirer/expand",
3
- "version": "5.0.11",
3
+ "version": "5.0.12",
4
4
  "description": "Inquirer checkbox prompt",
5
5
  "keywords": [
6
6
  "answer",
@@ -86,5 +86,5 @@
86
86
  },
87
87
  "main": "./dist/index.js",
88
88
  "types": "./dist/index.d.ts",
89
- "gitHead": "e68fe01d65359e083581c48c4a18cd8f97d88842"
89
+ "gitHead": "979b130330e8c6f4d51f5b9915c8beae26c7e2df"
90
90
  }