@optique/inquirer 1.0.0-dev.1692 → 1.0.0-dev.1695

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
@@ -25,6 +25,7 @@ const __inquirer_prompts = __toESM(require("@inquirer/prompts"));
25
25
  const __optique_core_annotations = __toESM(require("@optique/core/annotations"));
26
26
  const __optique_core_parser = __toESM(require("@optique/core/parser"));
27
27
  const __optique_core_message = __toESM(require("@optique/core/message"));
28
+ const __optique_core_modifiers = __toESM(require("@optique/core/modifiers"));
28
29
 
29
30
  //#region src/index.ts
30
31
  const promptFunctionsOverrideSymbol = Symbol.for("@optique/inquirer/prompt-functions");
@@ -320,6 +321,7 @@ function prompt(parser, config) {
320
321
  $stateType: parser.$stateType,
321
322
  priority: parser.priority,
322
323
  [__optique_core_parser.inheritParentAnnotationsKey]: true,
324
+ [__optique_core_modifiers.optionalStyleWrapperKey]: true,
323
325
  usage: parser.usage.length === 1 && parser.usage[0].type === "optional" ? parser.usage : [{
324
326
  type: "optional",
325
327
  terms: parser.usage
@@ -353,6 +355,7 @@ function prompt(parser, config) {
353
355
  };
354
356
  return {
355
357
  success: true,
358
+ ...result$1.provisional ? { provisional: true } : {},
356
359
  next: {
357
360
  ...result$1.next,
358
361
  state: nextState$1
package/dist/index.js CHANGED
@@ -2,6 +2,7 @@ import { Separator, checkbox, confirm, editor, expand, input, number, password,
2
2
  import { annotationKey, getAnnotations, inheritAnnotations, injectAnnotations, unwrapInjectedAnnotationWrapper } from "@optique/core/annotations";
3
3
  import { annotationWrapperRequiresSourceBindingKey, composeWrappedSourceMetadata, defineInheritedAnnotationParser, getDelegatingSuggestRuntimeNodes, inheritParentAnnotationsKey } from "@optique/core/parser";
4
4
  import { message } from "@optique/core/message";
5
+ import { optionalStyleWrapperKey } from "@optique/core/modifiers";
5
6
 
6
7
  //#region src/index.ts
7
8
  const promptFunctionsOverrideSymbol = Symbol.for("@optique/inquirer/prompt-functions");
@@ -297,6 +298,7 @@ function prompt(parser, config) {
297
298
  $stateType: parser.$stateType,
298
299
  priority: parser.priority,
299
300
  [inheritParentAnnotationsKey]: true,
301
+ [optionalStyleWrapperKey]: true,
300
302
  usage: parser.usage.length === 1 && parser.usage[0].type === "optional" ? parser.usage : [{
301
303
  type: "optional",
302
304
  terms: parser.usage
@@ -330,6 +332,7 @@ function prompt(parser, config) {
330
332
  };
331
333
  return {
332
334
  success: true,
335
+ ...result$1.provisional ? { provisional: true } : {},
333
336
  next: {
334
337
  ...result$1.next,
335
338
  state: nextState$1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optique/inquirer",
3
- "version": "1.0.0-dev.1692+5c265bd4",
3
+ "version": "1.0.0-dev.1695+f0ab0347",
4
4
  "description": "Interactive prompt support for Optique via Inquirer.js",
5
5
  "keywords": [
6
6
  "CLI",
@@ -56,13 +56,13 @@
56
56
  "sideEffects": false,
57
57
  "dependencies": {
58
58
  "@inquirer/prompts": "^8.3.0",
59
- "@optique/core": "1.0.0-dev.1692+5c265bd4"
59
+ "@optique/core": "1.0.0-dev.1695+f0ab0347"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@types/node": "^20.19.9",
63
63
  "tsdown": "^0.13.0",
64
64
  "typescript": "^5.8.3",
65
- "@optique/env": "1.0.0-dev.1692+5c265bd4"
65
+ "@optique/env": "1.0.0-dev.1695+f0ab0347"
66
66
  },
67
67
  "scripts": {
68
68
  "build": "tsdown",