@inquirer/checkbox
Advanced tools
Comparing version 1.0.2 to 1.1.0
@@ -14,5 +14,3 @@ "use strict"; | ||
const [status, setStatus] = (0, core_1.useState)('pending'); | ||
const [choices, setChoices] = (0, core_1.useState)([ | ||
...config.choices, | ||
]); | ||
const [choices, setChoices] = (0, core_1.useState)(config.choices.map((choice) => (Object.assign({}, choice)))); | ||
const [cursorPosition, setCursorPosition] = (0, core_1.useState)(0); | ||
@@ -19,0 +17,0 @@ const [showHelpTip, setShowHelpTip] = (0, core_1.useState)(true); |
{ | ||
"name": "@inquirer/checkbox", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"engines": { | ||
@@ -60,4 +60,4 @@ "node": ">=14.18.0" | ||
"dependencies": { | ||
"@inquirer/core": "^1.0.3", | ||
"@inquirer/type": "^1.0.2", | ||
"@inquirer/core": "^1.0.4", | ||
"@inquirer/type": "^1.0.3", | ||
"ansi-escapes": "^4.3.2", | ||
@@ -72,3 +72,3 @@ "chalk": "^4.1.2", | ||
"tsc:cjs": "tsc -p ./tsconfig.cjs.json && yarn run fix-ext", | ||
"fix-ext": "node --no-warnings=ExperimentalWarning --loader ts-node/esm ../../tools/rename-ext.mts" | ||
"fix-ext": "node --no-warnings=ExperimentalWarning --loader=ts-node/esm ../../tools/rename-ext.mts" | ||
}, | ||
@@ -90,3 +90,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "865c589ffbc4a66f328dc4e64a08646200c755f3" | ||
"gitHead": "12fecef5292da253564c845ef5be67b37441e381" | ||
} |
@@ -37,6 +37,6 @@ # `@inquirer/checkbox` | ||
| Property | Type | Required | Description | | ||
| -------- | ----------------------------------------------------------------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| message | `string` | yes | The question to ask | | ||
| choices | `Array<{ value: string, name?: string, disabled?: boolean \| string }>` | yes | List of the available choices. The `value` will be returned as the answer, and used as display if no `name` is defined. Choices who're `disabled` will be displayed, but not selectable. | | ||
| Property | Type | Required | Description | | ||
| -------- | ------------------------------------------------------------------------------------------ | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| message | `string` | yes | The question to ask | | ||
| choices | `Array<{ value: string, name?: string, disabled?: boolean \| string, checked?: boolean }>` | yes | List of the available choices. The `value` will be returned as the answer, and used as display if no `name` is defined. Choices who're `disabled` will be displayed, but not selectable. | | ||
@@ -43,0 +43,0 @@ # License |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15242
204
Updated@inquirer/core@^1.0.4
Updated@inquirer/type@^1.0.3