@inquirer/prompts 5.0.0 → 5.0.2
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 +24 -0
- package/dist/cjs/index.js +18 -17
- package/dist/cjs/types/index.d.ts +8 -9
- package/dist/esm/index.mjs +8 -9
- package/dist/esm/types/index.d.mts +8 -9
- package/package.json +11 -11
package/README.md
CHANGED
|
@@ -277,6 +277,30 @@ Choose an item from a list and choose an action to take by pressing a key.
|
|
|
277
277
|
code.py
|
|
278
278
|
```
|
|
279
279
|
|
|
280
|
+
[**Table Multiple Prompt**](https://github.com/Bartheleway/inquirer-table-multiple)<br/>
|
|
281
|
+
Select multiple answer from a table display.
|
|
282
|
+
|
|
283
|
+
```sh
|
|
284
|
+
Choose between choices? (Press <space> to select, <Up and Down> to move rows,
|
|
285
|
+
<Left and Right> to move columns)
|
|
286
|
+
|
|
287
|
+
┌──────────┬───────┬───────┐
|
|
288
|
+
│ 1-2 of 2 │ Yes? │ No? |
|
|
289
|
+
├──────────┼───────┼───────┤
|
|
290
|
+
│ Choice 1 │ [ ◯ ] │ ◯ |
|
|
291
|
+
├──────────┼───────┼───────┤
|
|
292
|
+
│ Choice 2 │ ◯ │ ◯ |
|
|
293
|
+
└──────────┴───────┴───────┘
|
|
294
|
+
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
[**Toggle Prompt**](https://github.com/skarahoda/inquirer-toggle)<br/>
|
|
298
|
+
Confirm with a toggle. Select a choice with arrow keys + Enter.
|
|
299
|
+
|
|
300
|
+
```
|
|
301
|
+
? Do you want to continue? no / yes
|
|
302
|
+
```
|
|
303
|
+
|
|
280
304
|
# License
|
|
281
305
|
|
|
282
306
|
Copyright (c) 2023 Simon Boudrias (twitter: [@vaxilart](https://twitter.com/Vaxilart))<br/>
|
package/dist/cjs/index.js
CHANGED
|
@@ -3,20 +3,21 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.select = exports.rawlist = exports.
|
|
7
|
-
|
|
8
|
-
exports
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
6
|
+
exports.select = exports.password = exports.rawlist = exports.expand = exports.input = exports.confirm = exports.editor = exports.Separator = exports.checkbox = void 0;
|
|
7
|
+
var checkbox_1 = require("@inquirer/checkbox");
|
|
8
|
+
Object.defineProperty(exports, "checkbox", { enumerable: true, get: function () { return __importDefault(checkbox_1).default; } });
|
|
9
|
+
Object.defineProperty(exports, "Separator", { enumerable: true, get: function () { return checkbox_1.Separator; } });
|
|
10
|
+
var editor_1 = require("@inquirer/editor");
|
|
11
|
+
Object.defineProperty(exports, "editor", { enumerable: true, get: function () { return __importDefault(editor_1).default; } });
|
|
12
|
+
var confirm_1 = require("@inquirer/confirm");
|
|
13
|
+
Object.defineProperty(exports, "confirm", { enumerable: true, get: function () { return __importDefault(confirm_1).default; } });
|
|
14
|
+
var input_1 = require("@inquirer/input");
|
|
15
|
+
Object.defineProperty(exports, "input", { enumerable: true, get: function () { return __importDefault(input_1).default; } });
|
|
16
|
+
var expand_1 = require("@inquirer/expand");
|
|
17
|
+
Object.defineProperty(exports, "expand", { enumerable: true, get: function () { return __importDefault(expand_1).default; } });
|
|
18
|
+
var rawlist_1 = require("@inquirer/rawlist");
|
|
19
|
+
Object.defineProperty(exports, "rawlist", { enumerable: true, get: function () { return __importDefault(rawlist_1).default; } });
|
|
20
|
+
var password_1 = require("@inquirer/password");
|
|
21
|
+
Object.defineProperty(exports, "password", { enumerable: true, get: function () { return __importDefault(password_1).default; } });
|
|
22
|
+
var select_1 = require("@inquirer/select");
|
|
23
|
+
Object.defineProperty(exports, "select", { enumerable: true, get: function () { return __importDefault(select_1).default; } });
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export { checkbox, confirm, editor, expand, input, password, rawlist, select };
|
|
1
|
+
export { default as checkbox, Separator } from '@inquirer/checkbox';
|
|
2
|
+
export { default as editor } from '@inquirer/editor';
|
|
3
|
+
export { default as confirm } from '@inquirer/confirm';
|
|
4
|
+
export { default as input } from '@inquirer/input';
|
|
5
|
+
export { default as expand } from '@inquirer/expand';
|
|
6
|
+
export { default as rawlist } from '@inquirer/rawlist';
|
|
7
|
+
export { default as password } from '@inquirer/password';
|
|
8
|
+
export { default as select } from '@inquirer/select';
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export { checkbox, confirm, editor, expand, input, password, rawlist, select };
|
|
1
|
+
export { default as checkbox, Separator } from '@inquirer/checkbox';
|
|
2
|
+
export { default as editor } from '@inquirer/editor';
|
|
3
|
+
export { default as confirm } from '@inquirer/confirm';
|
|
4
|
+
export { default as input } from '@inquirer/input';
|
|
5
|
+
export { default as expand } from '@inquirer/expand';
|
|
6
|
+
export { default as rawlist } from '@inquirer/rawlist';
|
|
7
|
+
export { default as password } from '@inquirer/password';
|
|
8
|
+
export { default as select } from '@inquirer/select';
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export { checkbox, confirm, editor, expand, input, password, rawlist, select };
|
|
1
|
+
export { default as checkbox, Separator } from '@inquirer/checkbox';
|
|
2
|
+
export { default as editor } from '@inquirer/editor';
|
|
3
|
+
export { default as confirm } from '@inquirer/confirm';
|
|
4
|
+
export { default as input } from '@inquirer/input';
|
|
5
|
+
export { default as expand } from '@inquirer/expand';
|
|
6
|
+
export { default as rawlist } from '@inquirer/rawlist';
|
|
7
|
+
export { default as password } from '@inquirer/password';
|
|
8
|
+
export { default as select } from '@inquirer/select';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inquirer/prompts",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.2",
|
|
4
4
|
"description": "Inquirer prompts, combined in a single package",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"typings": "./dist/cjs/types/index.d.ts",
|
|
@@ -76,18 +76,18 @@
|
|
|
76
76
|
}
|
|
77
77
|
},
|
|
78
78
|
"dependencies": {
|
|
79
|
-
"@inquirer/checkbox": "^2.3.
|
|
80
|
-
"@inquirer/confirm": "^3.1.
|
|
81
|
-
"@inquirer/editor": "^2.1.
|
|
82
|
-
"@inquirer/expand": "^2.1.
|
|
83
|
-
"@inquirer/input": "^2.1.
|
|
84
|
-
"@inquirer/password": "^2.1.
|
|
85
|
-
"@inquirer/rawlist": "^2.1.
|
|
86
|
-
"@inquirer/select": "^2.3.
|
|
79
|
+
"@inquirer/checkbox": "^2.3.2",
|
|
80
|
+
"@inquirer/confirm": "^3.1.6",
|
|
81
|
+
"@inquirer/editor": "^2.1.6",
|
|
82
|
+
"@inquirer/expand": "^2.1.6",
|
|
83
|
+
"@inquirer/input": "^2.1.6",
|
|
84
|
+
"@inquirer/password": "^2.1.6",
|
|
85
|
+
"@inquirer/rawlist": "^2.1.6",
|
|
86
|
+
"@inquirer/select": "^2.3.2"
|
|
87
87
|
},
|
|
88
88
|
"devDependencies": {
|
|
89
|
-
"@inquirer/type": "^1.3.
|
|
89
|
+
"@inquirer/type": "^1.3.1"
|
|
90
90
|
},
|
|
91
91
|
"homepage": "https://github.com/SBoudrias/Inquirer.js/blob/master/packages/prompts/README.md",
|
|
92
|
-
"gitHead": "
|
|
92
|
+
"gitHead": "d0e92901ebb7eb77d027786a2e1ac41fc15326b6"
|
|
93
93
|
}
|