@inquirer/expand 2.1.12 → 2.1.14

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/README.md CHANGED
@@ -7,12 +7,29 @@ Compact single select prompt. Every option is assigned a shortcut key, and selec
7
7
 
8
8
  # Installation
9
9
 
10
+ <table>
11
+ <tr>
12
+ <th>npm</th>
13
+ <th>yarn</th>
14
+ </tr>
15
+ <tr>
16
+ <td>
17
+
10
18
  ```sh
11
19
  npm install @inquirer/expand
20
+ ```
21
+
22
+ </td>
23
+ <td>
12
24
 
25
+ ```sh
13
26
  yarn add @inquirer/expand
14
27
  ```
15
28
 
29
+ </td>
30
+ </tr>
31
+ </table>
32
+
16
33
  # Usage
17
34
 
18
35
  ```js
@@ -0,0 +1,22 @@
1
+ import { type Theme } from '@inquirer/core';
2
+ import type { PartialDeep } from '@inquirer/type';
3
+ type ExpandChoice = {
4
+ key: string;
5
+ name: string;
6
+ } | {
7
+ key: string;
8
+ value: string;
9
+ } | {
10
+ key: string;
11
+ name: string;
12
+ value: string;
13
+ };
14
+ type ExpandConfig = {
15
+ message: string;
16
+ choices: ReadonlyArray<ExpandChoice>;
17
+ default?: string;
18
+ expanded?: boolean;
19
+ theme?: PartialDeep<Theme>;
20
+ };
21
+ declare const _default: import("@inquirer/type").Prompt<string, ExpandConfig>;
22
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inquirer/expand",
3
- "version": "2.1.12",
3
+ "version": "2.1.14",
4
4
  "description": "Inquirer checkbox prompt",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "typings": "./dist/cjs/types/index.d.ts",
@@ -54,12 +54,12 @@
54
54
  "license": "MIT",
55
55
  "homepage": "https://github.com/SBoudrias/Inquirer.js/blob/master/packages/expand/README.md",
56
56
  "dependencies": {
57
- "@inquirer/core": "^9.0.0",
57
+ "@inquirer/core": "^9.0.2",
58
58
  "@inquirer/type": "^1.4.0",
59
- "yoctocolors-cjs": "^2.1.1"
59
+ "yoctocolors-cjs": "^2.1.2"
60
60
  },
61
61
  "devDependencies": {
62
- "@inquirer/testing": "^2.1.24"
62
+ "@inquirer/testing": "^2.1.25"
63
63
  },
64
64
  "scripts": {
65
65
  "tsc": "yarn run tsc:esm && yarn run tsc:cjs",
@@ -87,5 +87,5 @@
87
87
  }
88
88
  },
89
89
  "sideEffects": false,
90
- "gitHead": "fc27d575bceb96466cb8da8524c26d4eb2a77df0"
90
+ "gitHead": "95d2d65d3aca2c0fab66c7fd40b5dc413dfc894f"
91
91
  }