@reliverse/rempts 1.7.36 → 1.7.37
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.
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const log: typeof relinka;
|
|
1
|
+
export declare const log: import("@reliverse/relinka").RelinkaFunction;
|
|
@@ -97,7 +97,7 @@ export async function multiselectPrompt(params) {
|
|
|
97
97
|
content = "",
|
|
98
98
|
options,
|
|
99
99
|
defaultValue = [],
|
|
100
|
-
|
|
100
|
+
initialValues,
|
|
101
101
|
borderColor = "dim",
|
|
102
102
|
titleColor = "cyan",
|
|
103
103
|
titleTypography = "none",
|
|
@@ -116,7 +116,7 @@ export async function multiselectPrompt(params) {
|
|
|
116
116
|
selectAll = false
|
|
117
117
|
} = params;
|
|
118
118
|
const finalTitle = message && title ? `${title}: ${message}` : message ?? title ?? "Select options";
|
|
119
|
-
const finalDefaultValue = defaultValue ??
|
|
119
|
+
const finalDefaultValue = defaultValue ?? initialValues;
|
|
120
120
|
const effectiveMinSelect = required ? Math.max(1, minSelect) : minSelect;
|
|
121
121
|
let pointer = finalDefaultValue.length > 0 ? options.findIndex(
|
|
122
122
|
(opt) => opt && isSelectOption(opt) && finalDefaultValue.includes(opt.value) && !opt.disabled
|
package/bin/mod.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export type { EmptyArgs, BaseArgProps, BaseArgDefinition, PositionalArgDefinitio
|
|
|
19
19
|
export { loadCommand } from "./libs/launcher/run-command.js";
|
|
20
20
|
export { addCompletions } from "./libs/launcher/trpc-orpc-support/completions.js";
|
|
21
21
|
export { CliValidationError, FailedToExitError, } from "./libs/launcher/trpc-orpc-support/errors.js";
|
|
22
|
-
export { TrpcCommand, parseRouter, createRpcCli, z, } from "./libs/launcher/trpc-orpc-support/index.js";
|
|
22
|
+
export { TrpcCommand, parseRouter, createRpcCli, z, trpcServer, zod, } from "./libs/launcher/trpc-orpc-support/index.js";
|
|
23
23
|
export { flattenedProperties, incompatiblePropertyPairs, getDescription, getSchemaTypes, getEnumChoices, } from "./libs/launcher/trpc-orpc-support/json-schema.js";
|
|
24
24
|
export type { CommandJSON } from "./libs/launcher/trpc-orpc-support/json.js";
|
|
25
25
|
export { commandToJSON } from "./libs/launcher/trpc-orpc-support/json.js";
|
package/bin/mod.js
CHANGED
package/bin/types.d.ts
CHANGED
|
@@ -342,7 +342,7 @@ export interface MultiselectPromptParams<T extends string> {
|
|
|
342
342
|
content?: string;
|
|
343
343
|
options: (SelectOption<T> | SeparatorOption)[];
|
|
344
344
|
defaultValue?: T[];
|
|
345
|
-
|
|
345
|
+
initialValues?: T[];
|
|
346
346
|
borderColor?: BorderColorName;
|
|
347
347
|
titleColor?: ColorName;
|
|
348
348
|
titleTypography?: TypographyName;
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"@reliverse/reliarg": "^1.0.3",
|
|
9
9
|
"@reliverse/relico": "^1.1.2",
|
|
10
10
|
"@reliverse/relifso": "^1.4.5",
|
|
11
|
-
"@reliverse/relinka": "^1.
|
|
11
|
+
"@reliverse/relinka": "^1.5.0",
|
|
12
12
|
"@reliverse/runtime": "^1.0.3",
|
|
13
13
|
"@trpc/server": "^11.4.2",
|
|
14
14
|
"ansi-escapes": "^7.0.0",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"license": "MIT",
|
|
45
45
|
"name": "@reliverse/rempts",
|
|
46
46
|
"type": "module",
|
|
47
|
-
"version": "1.7.
|
|
47
|
+
"version": "1.7.37",
|
|
48
48
|
"author": "reliverse",
|
|
49
49
|
"bugs": {
|
|
50
50
|
"email": "blefnk@gmail.com",
|