@shell-shock/plugin-prompts 0.3.55 → 0.3.57

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.
@@ -2957,8 +2957,10 @@ run(); ` }),
2957
2957
  type: "ConfirmConfig"
2958
2958
  }],
2959
2959
  returnType: "Promise<boolean | symbol>",
2960
- children: _alloy_js_core.code`return new Promise<boolean | symbol>((response, reject) => {
2961
- const prompt = new ConfirmPrompt(config);
2960
+ children: _alloy_js_core.code`return hasFlag("yes") || hasFlag("y")
2961
+ ? Promise.resolve(true)
2962
+ : new Promise<boolean | symbol>((response, reject) => {
2963
+ const prompt = new ConfirmPrompt(config);
2962
2964
 
2963
2965
  prompt.on("state", state => config.onState?.(state));
2964
2966
  prompt.on("submit", value => response(value));
@@ -1 +1 @@
1
- {"version":3,"file":"prompts-builtin.d.cts","names":[],"sources":["../../src/components/prompts-builtin.tsx"],"mappings":";;;UA6CiB,mBAAA,SAA4B,IAAI,CAC/C,gBAAA;AADF;;;AAAA,iBAQgB,sBAAA,6BAAsB,QAAA;AAPpB;AAOlB;;AAPkB,iBA61BF,sBAAA,6BAAsB,QAAA;;AAt1BA;AAs1BtC;iBAoPgB,wBAAA,6BAAwB,QAAA;;;AApPF;iBAwqBtB,6BAAA,6BAA6B,QAAA;;;;iBAiY7B,yBAAA,6BAAyB,QAAA;AAjYzC;;;AAAA,iBA8tBgB,wBAAA,6BAAwB,QAAA;AA9tBK;AAiY7C;;AAjY6C,iBA08B7B,yBAAA,6BAAyB,QAAA;;AAzkBA;AA6VzC;iBAkagB,yBAAA,6BAAyB,QAAA;AAAA,iBAmEzB,0BAAA,6BAA0B,QAAA;;AAreF;AA4OxC;iBAgTgB,cAAA,CAAe,KAAA,EAAO,mBAAmB,4BAAA,QAAA"}
1
+ {"version":3,"file":"prompts-builtin.d.cts","names":[],"sources":["../../src/components/prompts-builtin.tsx"],"mappings":";;;UA6CiB,mBAAA,SAA4B,IAAI,CAC/C,gBAAA;AADF;;;AAAA,iBAQgB,sBAAA,6BAAsB,QAAA;AAPpB;AAOlB;;AAPkB,iBA61BF,sBAAA,6BAAsB,QAAA;;AAt1BA;AAs1BtC;iBAoPgB,wBAAA,6BAAwB,QAAA;;;AApPF;iBAwqBtB,6BAAA,6BAA6B,QAAA;;;;iBAiY7B,yBAAA,6BAAyB,QAAA;AAjYzC;;;AAAA,iBA8tBgB,wBAAA,6BAAwB,QAAA;AA9tBK;AAiY7C;;AAjY6C,iBA08B7B,yBAAA,6BAAyB,QAAA;;AAzkBA;AA6VzC;iBAoagB,yBAAA,6BAAyB,QAAA;AAAA,iBAmEzB,0BAAA,6BAA0B,QAAA;;AAveF;AA4OxC;iBAkTgB,cAAA,CAAe,KAAA,EAAO,mBAAmB,4BAAA,QAAA"}
@@ -2954,8 +2954,10 @@ run(); ` }),
2954
2954
  type: "ConfirmConfig"
2955
2955
  }],
2956
2956
  returnType: "Promise<boolean | symbol>",
2957
- children: code`return new Promise<boolean | symbol>((response, reject) => {
2958
- const prompt = new ConfirmPrompt(config);
2957
+ children: code`return hasFlag("yes") || hasFlag("y")
2958
+ ? Promise.resolve(true)
2959
+ : new Promise<boolean | symbol>((response, reject) => {
2960
+ const prompt = new ConfirmPrompt(config);
2959
2961
 
2960
2962
  prompt.on("state", state => config.onState?.(state));
2961
2963
  prompt.on("submit", value => response(value));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shell-shock/plugin-prompts",
3
- "version": "0.3.55",
3
+ "version": "0.3.57",
4
4
  "type": "module",
5
5
  "description": "A package containing a Shell Shock plugin to generate the `prompts` built-in module.",
6
6
  "repository": {
@@ -129,14 +129,14 @@
129
129
  "@powerlines/deepkit": "^0.9.81",
130
130
  "@powerlines/plugin-alloy": "^0.26.220",
131
131
  "@powerlines/plugin-plugin": "^0.12.539",
132
- "@shell-shock/core": "0.17.14",
133
- "@shell-shock/plugin-theme": "0.4.27",
132
+ "@shell-shock/core": "0.17.16",
133
+ "@shell-shock/plugin-theme": "0.4.29",
134
134
  "defu": "^6.1.7",
135
135
  "powerlines": "^0.47.127"
136
136
  },
137
137
  "devDependencies": {
138
138
  "@powerlines/plugin-deepkit": "^0.11.470",
139
- "@types/node": "^25.9.1"
139
+ "@types/node": "^25.9.2"
140
140
  },
141
141
  "publishConfig": {
142
142
  "access": "public",
@@ -153,5 +153,5 @@
153
153
  "./package.json": "./package.json"
154
154
  }
155
155
  },
156
- "gitHead": "484e42bc94f3641bd1c2fdfd8c13ad22898be16d"
156
+ "gitHead": "fb690df8ec51cb881e90d3bb9b347f7f15b06e07"
157
157
  }