@shell-shock/plugin-prompts 0.3.8 → 0.3.12

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
@@ -1,18 +1,18 @@
1
- Object.defineProperty(exports, '__esModule', { value: true });
2
- const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
1
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
2
+ const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
3
3
  const require_components_prompts_builtin = require('./components/prompts-builtin.cjs');
4
4
  require('./components/index.cjs');
5
- let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
6
- let __powerlines_plugin_alloy_render = require("@powerlines/plugin-alloy/render");
7
- let __shell_shock_plugin_theme = require("@shell-shock/plugin-theme");
8
- __shell_shock_plugin_theme = require_rolldown_runtime.__toESM(__shell_shock_plugin_theme);
5
+ let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
6
+ let _powerlines_plugin_alloy_render = require("@powerlines/plugin-alloy/render");
7
+ let _shell_shock_plugin_theme = require("@shell-shock/plugin-theme");
8
+ _shell_shock_plugin_theme = require_runtime.__toESM(_shell_shock_plugin_theme);
9
9
 
10
10
  //#region src/index.tsx
11
11
  /**
12
12
  * A Shell Shock plugin to generate the `prompts` built-in module, which provides a set of commands for interacting with the user through prompts. This plugin is designed to be used in conjunction with the `script` preset, but can also be used independently in any Shell Shock application.
13
13
  */
14
14
  const plugin = (options = {}) => {
15
- return [...(0, __shell_shock_plugin_theme.default)({ theme: options.theme }), {
15
+ return [...(0, _shell_shock_plugin_theme.default)({ theme: options.theme }), {
16
16
  name: "shell-shock:prompts",
17
17
  config() {
18
18
  this.debug("Providing default configuration for the Shell Shock `prompts` plugin.");
@@ -20,12 +20,11 @@ const plugin = (options = {}) => {
20
20
  },
21
21
  async prepare() {
22
22
  this.debug("Rendering command handling modules for the Shell Shock `prompts` plugin.");
23
- return (0, __powerlines_plugin_alloy_render.render)(this, (0, __alloy_js_core_jsx_runtime.createComponent)(require_components_prompts_builtin.PromptsBuiltin, {}));
23
+ return (0, _powerlines_plugin_alloy_render.render)(this, (0, _alloy_js_core_jsx_runtime.createComponent)(require_components_prompts_builtin.PromptsBuiltin, {}));
24
24
  }
25
25
  }];
26
26
  };
27
- var src_default = plugin;
28
27
 
29
28
  //#endregion
30
- exports.default = src_default;
29
+ exports.default = plugin;
31
30
  exports.plugin = plugin;
package/dist/index.d.cts CHANGED
@@ -2,7 +2,6 @@ import { PromptsPluginContext, PromptsPluginOptions } from "./types/plugin.cjs";
2
2
  import { Plugin } from "powerlines";
3
3
 
4
4
  //#region src/index.d.ts
5
-
6
5
  /**
7
6
  * A Shell Shock plugin to generate the `prompts` built-in module, which provides a set of commands for interacting with the user through prompts. This plugin is designed to be used in conjunction with the `script` preset, but can also be used independently in any Shell Shock application.
8
7
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.tsx"],"sourcesContent":[],"mappings":";;;;;;;AA8BA;AACmB,cADN,MACM,EAAA,CAAA,iBAAA,oBAAA,GAAuB,oBAAvB,CAAA,CAAA,OAAA,CAAA,EAER,oBAFQ,EAAA,GAGhB,MAHgB,CAGT,QAHS,CAAA,EAAA"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.tsx"],"mappings":";;;;;;AA8BA;cAAa,MAAA,oBACM,oBAAA,GAAuB,oBAAA,EAExC,OAAA,GAAS,oBAAA,KACR,MAAA,CAAO,QAAA"}
package/dist/index.d.mts CHANGED
@@ -2,7 +2,6 @@ import { PromptsPluginContext, PromptsPluginOptions } from "./types/plugin.mjs";
2
2
  import { Plugin } from "powerlines";
3
3
 
4
4
  //#region src/index.d.ts
5
-
6
5
  /**
7
6
  * A Shell Shock plugin to generate the `prompts` built-in module, which provides a set of commands for interacting with the user through prompts. This plugin is designed to be used in conjunction with the `script` preset, but can also be used independently in any Shell Shock application.
8
7
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.tsx"],"sourcesContent":[],"mappings":";;;;;;;AA8BA;AACmB,cADN,MACM,EAAA,CAAA,iBAAA,oBAAA,GAAuB,oBAAvB,CAAA,CAAA,OAAA,CAAA,EAER,oBAFQ,EAAA,GAGhB,MAHgB,CAGT,QAHS,CAAA,EAAA"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.tsx"],"mappings":";;;;;;AA8BA;cAAa,MAAA,oBACM,oBAAA,GAAuB,oBAAA,EAExC,OAAA,GAAS,oBAAA,KACR,MAAA,CAAO,QAAA"}
package/dist/index.mjs CHANGED
@@ -21,8 +21,7 @@ const plugin = (options = {}) => {
21
21
  }
22
22
  }];
23
23
  };
24
- var src_default = plugin;
25
24
 
26
25
  //#endregion
27
- export { src_default as default, plugin };
26
+ export { plugin as default, plugin };
28
27
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":["render","theme","PromptsBuiltin","plugin","options","name","config","debug","prepare","_$createComponent"],"sources":["../src/index.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { render } from \"@powerlines/plugin-alloy/render\";\nimport theme from \"@shell-shock/plugin-theme\";\nimport type { Plugin } from \"powerlines\";\nimport { PromptsBuiltin } from \"./components\";\nimport type {\n PromptsPluginContext,\n PromptsPluginOptions\n} from \"./types/plugin\";\n\n/**\n * A Shell Shock plugin to generate the `prompts` built-in module, which provides a set of commands for interacting with the user through prompts. This plugin is designed to be used in conjunction with the `script` preset, but can also be used independently in any Shell Shock application.\n */\nexport const plugin = <\n TContext extends PromptsPluginContext = PromptsPluginContext\n>(\n options: PromptsPluginOptions = {}\n): Plugin<TContext>[] => {\n return [\n ...theme({\n theme: options.theme\n }),\n {\n name: \"shell-shock:prompts\",\n config() {\n this.debug(\n \"Providing default configuration for the Shell Shock `prompts` plugin.\"\n );\n\n return options;\n },\n async prepare() {\n this.debug(\n \"Rendering command handling modules for the Shell Shock `prompts` plugin.\"\n );\n\n return render(this, <PromptsBuiltin />);\n }\n }\n ] as Plugin<TContext>[];\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;AA8BA,MAAaG,UAGXC,UAAgC,EAAE,KACX;AACvB,QAAO,CACL,GAAGH,MAAM,EACPA,OAAOG,QAAQH,OAChB,CAAC,EACF;EACEI,MAAM;EACNC,SAAS;AACP,QAAKC,MACH,wEACD;AAED,UAAOH;;EAET,MAAMI,UAAU;AACd,QAAKD,MACH,2EACD;AAED,UAAOP,OAAO,MAAIS,gBAAGP,gBAAc,EAAA,CAAG,CAAC;;EAE1C,CACF;;AAGH,kBAAeC"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../src/index.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { render } from \"@powerlines/plugin-alloy/render\";\nimport theme from \"@shell-shock/plugin-theme\";\nimport type { Plugin } from \"powerlines\";\nimport { PromptsBuiltin } from \"./components\";\nimport type {\n PromptsPluginContext,\n PromptsPluginOptions\n} from \"./types/plugin\";\n\n/**\n * A Shell Shock plugin to generate the `prompts` built-in module, which provides a set of commands for interacting with the user through prompts. This plugin is designed to be used in conjunction with the `script` preset, but can also be used independently in any Shell Shock application.\n */\nexport const plugin = <\n TContext extends PromptsPluginContext = PromptsPluginContext\n>(\n options: PromptsPluginOptions = {}\n): Plugin<TContext>[] => {\n return [\n ...theme({\n theme: options.theme\n }),\n {\n name: \"shell-shock:prompts\",\n config() {\n this.debug(\n \"Providing default configuration for the Shell Shock `prompts` plugin.\"\n );\n\n return options;\n },\n async prepare() {\n this.debug(\n \"Rendering command handling modules for the Shell Shock `prompts` plugin.\"\n );\n\n return render(this, <PromptsBuiltin />);\n }\n }\n ] as Plugin<TContext>[];\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;AA4BA,MAAW,UAAyE,UAAgC,EAAI,KAAyB;AAC/I,QAAA,CAAA,GAAA,MAAA,EACF,OAAO,QAAY,OACjB,CAAA,EAAA;EACD,MAAA;EACC,SAAS;AACR,QAAO,MAAA,wEAAe;AACvB,UAAO;;EAEL,MAAE,UAAc;AACd,QAAA,MAAA,2EAAA;AACF,UAAA,OAAA,MAAA,gBAAA,gBAAA,EAAA,CAAA,CAAA;;EAED,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;;UA4BiB,oBAAA,SAA6B;AAA7B,KAEL,uBAAA,GAA0B,qBAF0B,GAAA,CAAA,CAAA;AAEpD,KAEA,2BAAA,GAA8B,cAFJ,GAGpC,yBAHyD;AAE/C,KAGA,oBAHA,CAAA,wBAIc,2BAHxB,GAIE,2BAJuB,CAAA,GAKvB,kBALuB,CAKJ,eALI,CAAA,GAMzB,kBANyB,CAMN,eANM,CAAA,GAOzB,OAPyB,CAOjB,eAPiB,CAAA"}
1
+ {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;;;UA4BiB,oBAAA,SAA6B,kBAAA;AAAA,KAElC,uBAAA,GAA0B,qBAAA;AAAA,KAE1B,2BAAA,GAA8B,cAAA,GACxC,yBAAA;AAAA,KAEU,oBAAA,yBACc,2BAAA,GACtB,2BAAA,IACA,kBAAA,CAAmB,eAAA,IACrB,kBAAA,CAAmB,eAAA,IACnB,OAAA,CAAQ,eAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;;UA4BiB,oBAAA,SAA6B;AAA7B,KAEL,uBAAA,GAA0B,qBAF0B,GAAA,CAAA,CAAA;AAEpD,KAEA,2BAAA,GAA8B,cAFJ,GAGpC,yBAHyD;AAE/C,KAGA,oBAHA,CAAA,wBAIc,2BAHxB,GAIE,2BAJuB,CAAA,GAKvB,kBALuB,CAKJ,eALI,CAAA,GAMzB,kBANyB,CAMN,eANM,CAAA,GAOzB,OAPyB,CAOjB,eAPiB,CAAA"}
1
+ {"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;;;UA4BiB,oBAAA,SAA6B,kBAAA;AAAA,KAElC,uBAAA,GAA0B,qBAAA;AAAA,KAE1B,2BAAA,GAA8B,cAAA,GACxC,yBAAA;AAAA,KAEU,oBAAA,yBACc,2BAAA,GACtB,2BAAA,IACA,kBAAA,CAAmB,eAAA,IACrB,kBAAA,CAAmB,eAAA,IACnB,OAAA,CAAQ,eAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shell-shock/plugin-prompts",
3
- "version": "0.3.8",
3
+ "version": "0.3.12",
4
4
  "type": "module",
5
5
  "description": "A package containing a Shell Shock plugin to generate the `prompts` built-in module.",
6
6
  "repository": {
@@ -55,7 +55,6 @@
55
55
  "default": "./dist/index.mjs"
56
56
  }
57
57
  },
58
- "./*": "./*",
59
58
  "./components": {
60
59
  "require": {
61
60
  "types": "./dist/components/index.d.cts",
@@ -84,6 +83,7 @@
84
83
  "default": "./dist/components/prompts-builtin.mjs"
85
84
  }
86
85
  },
86
+ "./package.json": "./package.json",
87
87
  "./types": {
88
88
  "require": {
89
89
  "types": "./dist/types/index.d.cts",
@@ -126,17 +126,17 @@
126
126
  "dependencies": {
127
127
  "@alloy-js/core": "0.23.0-dev.8",
128
128
  "@alloy-js/typescript": "0.23.0-dev.4",
129
- "@powerlines/deepkit": "^0.6.90",
130
- "@powerlines/plugin-alloy": "^0.24.2",
131
- "@powerlines/plugin-plugin": "^0.12.262",
132
- "@shell-shock/core": "^0.11.0",
133
- "@shell-shock/plugin-theme": "^0.3.11",
129
+ "@powerlines/deepkit": "^0.6.134",
130
+ "@powerlines/plugin-alloy": "^0.25.41",
131
+ "@powerlines/plugin-plugin": "^0.12.306",
132
+ "@shell-shock/core": "^0.13.0",
133
+ "@shell-shock/plugin-theme": "^0.3.15",
134
134
  "defu": "^6.1.4",
135
- "powerlines": "^0.39.19"
135
+ "powerlines": "^0.41.20"
136
136
  },
137
137
  "devDependencies": {
138
- "@powerlines/plugin-deepkit": "^0.11.190",
139
- "@types/node": "^25.3.3"
138
+ "@powerlines/plugin-deepkit": "^0.11.234",
139
+ "@types/node": "^25.5.0"
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": "6fbda1ffc234bdd12b5d0fd0a32e59727b369c5c"
156
+ "gitHead": "d9365dd86c8fd0958486dfb1cef4822da5798464"
157
157
  }