@optique/inquirer 1.2.0-dev.2180 → 1.2.0-dev.2188

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.cjs CHANGED
@@ -24,6 +24,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
24
24
  const __inquirer_prompts = __toESM(require("@inquirer/prompts"));
25
25
  const __optique_core_annotations = __toESM(require("@optique/core/annotations"));
26
26
  const __optique_core_extension = __toESM(require("@optique/core/extension"));
27
+ const __optique_core_fluent = __toESM(require("@optique/core/fluent"));
27
28
  const __optique_core_message = __toESM(require("@optique/core/message"));
28
29
 
29
30
  //#region src/index.ts
@@ -469,7 +470,7 @@ function prompt(parser, config) {
469
470
  configurable: true,
470
471
  enumerable: false
471
472
  });
472
- return promptedParser;
473
+ return (0, __optique_core_fluent.fluent)(promptedParser);
473
474
  }
474
475
  /** Normalize choices to the format Inquirer.js expects. */
475
476
  function normalizeChoices(choices) {
package/dist/index.d.cts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { Separator } from "@inquirer/prompts";
2
+ import { FluentParser } from "@optique/core/fluent";
2
3
  import { Mode, Parser } from "@optique/core/parser";
3
4
 
4
5
  //#region src/index.d.ts
@@ -351,6 +352,6 @@ type BasePromptConfig<T> = T extends boolean ? ConfirmConfig : T extends number
351
352
  * the inner parser throws while parsing or completing.
352
353
  * @since 1.0.0
353
354
  */
354
- declare function prompt<M extends Mode, TValue, TState>(parser: Parser<M, TValue, TState>, config: PromptConfig<TValue>): Parser<"async", TValue, TState>;
355
+ declare function prompt<M extends Mode, TValue, TState>(parser: Parser<M, TValue, TState>, config: PromptConfig<TValue>): FluentParser<"async", TValue, TState>;
355
356
  //#endregion
356
357
  export { CheckboxConfig, Choice, ConfirmConfig, EditorConfig, ExpandChoice, ExpandConfig, InputConfig, NumberPromptConfig, PasswordConfig, PromptConfig, RawlistConfig, SelectConfig, Separator, StringPromptConfig, prompt };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { Separator } from "@inquirer/prompts";
2
+ import { FluentParser } from "@optique/core/fluent";
2
3
  import { Mode, Parser } from "@optique/core/parser";
3
4
 
4
5
  //#region src/index.d.ts
@@ -351,6 +352,6 @@ type BasePromptConfig<T> = T extends boolean ? ConfirmConfig : T extends number
351
352
  * the inner parser throws while parsing or completing.
352
353
  * @since 1.0.0
353
354
  */
354
- declare function prompt<M extends Mode, TValue, TState>(parser: Parser<M, TValue, TState>, config: PromptConfig<TValue>): Parser<"async", TValue, TState>;
355
+ declare function prompt<M extends Mode, TValue, TState>(parser: Parser<M, TValue, TState>, config: PromptConfig<TValue>): FluentParser<"async", TValue, TState>;
355
356
  //#endregion
356
357
  export { CheckboxConfig, Choice, ConfirmConfig, EditorConfig, ExpandChoice, ExpandConfig, InputConfig, NumberPromptConfig, PasswordConfig, PromptConfig, RawlistConfig, SelectConfig, Separator, StringPromptConfig, prompt };
package/dist/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import { Separator, checkbox, confirm, editor, expand, input, number, password, rawlist, select } from "@inquirer/prompts";
2
2
  import { getAnnotations } from "@optique/core/annotations";
3
3
  import { defineTraits, delegateSuggestNodes, getTraits, inheritAnnotations, injectAnnotations, mapSourceMetadata, unwrapInjectedAnnotationState, withAnnotationView } from "@optique/core/extension";
4
+ import { fluent } from "@optique/core/fluent";
4
5
  import { message } from "@optique/core/message";
5
6
 
6
7
  //#region src/index.ts
@@ -446,7 +447,7 @@ function prompt(parser, config) {
446
447
  configurable: true,
447
448
  enumerable: false
448
449
  });
449
- return promptedParser;
450
+ return fluent(promptedParser);
450
451
  }
451
452
  /** Normalize choices to the format Inquirer.js expects. */
452
453
  function normalizeChoices(choices) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optique/inquirer",
3
- "version": "1.2.0-dev.2180",
3
+ "version": "1.2.0-dev.2188",
4
4
  "description": "Interactive prompt support for Optique via Inquirer.js",
5
5
  "keywords": [
6
6
  "CLI",
@@ -62,16 +62,16 @@
62
62
  "sideEffects": false,
63
63
  "dependencies": {
64
64
  "@inquirer/prompts": "^8.3.0",
65
- "@optique/core": "1.2.0-dev.2180+f59f99d2"
65
+ "@optique/core": "1.2.0-dev.2188+dd035768"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@types/node": "^24.0.0",
69
69
  "fast-check": "^4.7.0",
70
70
  "tsdown": "^0.13.0",
71
71
  "typescript": "^5.8.3",
72
- "@optique/env": "1.2.0-dev.2180+f59f99d2",
73
- "@optique/config": "1.2.0-dev.2180+f59f99d2",
74
- "@optique/run": "1.2.0-dev.2180+f59f99d2"
72
+ "@optique/config": "1.2.0-dev.2188+dd035768",
73
+ "@optique/env": "1.2.0-dev.2188+dd035768",
74
+ "@optique/run": "1.2.0-dev.2188+dd035768"
75
75
  },
76
76
  "scripts": {
77
77
  "build": "tsdown",