@shell-shock/plugin-prompts 0.3.48 → 0.3.49
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/_virtual/_rolldown/runtime.cjs +1 -29
- package/dist/components/index.cjs +1 -12
- package/dist/components/index.mjs +1 -3
- package/dist/components/prompts-builtin.cjs +80 -2042
- package/dist/components/prompts-builtin.mjs +80 -2031
- package/dist/components/prompts-builtin.mjs.map +1 -1
- package/dist/index.cjs +1 -30
- package/dist/index.mjs +1 -26
- package/dist/index.mjs.map +1 -1
- package/dist/types/index.mjs +1 -1
- package/dist/types/plugin.mjs +1 -1
- package/package.json +9 -9
package/dist/index.cjs
CHANGED
|
@@ -1,30 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,
|
|
2
|
-
const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
|
|
3
|
-
const require_components_prompts_builtin = require('./components/prompts-builtin.cjs');
|
|
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_runtime.__toESM(_shell_shock_plugin_theme);
|
|
9
|
-
|
|
10
|
-
//#region src/index.tsx
|
|
11
|
-
/**
|
|
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
|
-
*/
|
|
14
|
-
const plugin = (options = {}) => {
|
|
15
|
-
return [...(0, _shell_shock_plugin_theme.default)({ theme: options.theme }), {
|
|
16
|
-
name: "shell-shock:prompts",
|
|
17
|
-
config() {
|
|
18
|
-
this.debug("Providing default configuration for the Shell Shock `prompts` plugin.");
|
|
19
|
-
return options;
|
|
20
|
-
},
|
|
21
|
-
async prepare() {
|
|
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, {}));
|
|
24
|
-
}
|
|
25
|
-
}];
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
//#endregion
|
|
29
|
-
exports.default = plugin;
|
|
30
|
-
exports.plugin = plugin;
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require(`./_virtual/_rolldown/runtime.cjs`),t=require(`./components/prompts-builtin.cjs`);require(`./components/index.cjs`);let n=require(`@alloy-js/core/jsx-runtime`),r=require(`@powerlines/plugin-alloy/render`),i=require(`@shell-shock/plugin-theme`);i=e.__toESM(i);const a=(e={})=>[...(0,i.default)({theme:e.theme}),{name:`shell-shock:prompts`,config(){return this.debug("Providing default configuration for the Shell Shock `prompts` plugin."),e},async prepare(){return this.debug("Rendering command handling modules for the Shell Shock `prompts` plugin."),(0,r.render)(this,(0,n.createComponent)(t.PromptsBuiltin,{}))}}];exports.default=a,exports.plugin=a;
|
package/dist/index.mjs
CHANGED
|
@@ -1,27 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "./components/index.mjs";
|
|
3
|
-
import { createComponent } from "@alloy-js/core/jsx-runtime";
|
|
4
|
-
import { render } from "@powerlines/plugin-alloy/render";
|
|
5
|
-
import theme from "@shell-shock/plugin-theme";
|
|
6
|
-
|
|
7
|
-
//#region src/index.tsx
|
|
8
|
-
/**
|
|
9
|
-
* 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.
|
|
10
|
-
*/
|
|
11
|
-
const plugin = (options = {}) => {
|
|
12
|
-
return [...theme({ theme: options.theme }), {
|
|
13
|
-
name: "shell-shock:prompts",
|
|
14
|
-
config() {
|
|
15
|
-
this.debug("Providing default configuration for the Shell Shock `prompts` plugin.");
|
|
16
|
-
return options;
|
|
17
|
-
},
|
|
18
|
-
async prepare() {
|
|
19
|
-
this.debug("Rendering command handling modules for the Shell Shock `prompts` plugin.");
|
|
20
|
-
return render(this, createComponent(PromptsBuiltin, {}));
|
|
21
|
-
}
|
|
22
|
-
}];
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
//#endregion
|
|
26
|
-
export { plugin as default, plugin };
|
|
1
|
+
import{PromptsBuiltin as e}from"./components/prompts-builtin.mjs";import"./components/index.mjs";import{createComponent as t}from"@alloy-js/core/jsx-runtime";import{render as n}from"@powerlines/plugin-alloy/render";import r from"@shell-shock/plugin-theme";const i=(i={})=>[...r({theme:i.theme}),{name:`shell-shock:prompts`,config(){return this.debug("Providing default configuration for the Shell Shock `prompts` plugin."),i},async prepare(){return this.debug("Rendering command handling modules for the Shell Shock `prompts` plugin."),n(this,t(e,{}))}}];export{i as default,i as plugin};
|
|
27
2
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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":"
|
|
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":"gQAyBA,MAAU,GAAa,EAAA,EAAA,UAErB,MAAA,EAAA,MACC,CAAC,CAAC,CACH,KAAA,sBACF,QAAa,CAEZ,OADC,KAAS,MAAA,wEAA+B,CACzC,GAEE,MAAO,SAAU,CAEd,OADJ,KAAO,MAAA,2EAAA,CACI,EAAA,KAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAEV,CAAC"}
|
package/dist/types/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{};
|
package/dist/types/plugin.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shell-shock/plugin-prompts",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.49",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Shell Shock plugin to generate the `prompts` built-in module.",
|
|
6
6
|
"repository": {
|
|
@@ -126,16 +126,16 @@
|
|
|
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.8.
|
|
130
|
-
"@powerlines/plugin-alloy": "^0.26.
|
|
131
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
132
|
-
"@shell-shock/core": "^0.17.
|
|
133
|
-
"@shell-shock/plugin-theme": "^0.4.
|
|
129
|
+
"@powerlines/deepkit": "^0.8.49",
|
|
130
|
+
"@powerlines/plugin-alloy": "^0.26.67",
|
|
131
|
+
"@powerlines/plugin-plugin": "^0.12.399",
|
|
132
|
+
"@shell-shock/core": "^0.17.8",
|
|
133
|
+
"@shell-shock/plugin-theme": "^0.4.21",
|
|
134
134
|
"defu": "^6.1.7",
|
|
135
|
-
"powerlines": "^0.
|
|
135
|
+
"powerlines": "^0.44.12"
|
|
136
136
|
},
|
|
137
137
|
"devDependencies": {
|
|
138
|
-
"@powerlines/plugin-deepkit": "^0.11.
|
|
138
|
+
"@powerlines/plugin-deepkit": "^0.11.330",
|
|
139
139
|
"@types/node": "^25.6.0"
|
|
140
140
|
},
|
|
141
141
|
"publishConfig": {
|
|
@@ -153,5 +153,5 @@
|
|
|
153
153
|
"./package.json": "./package.json"
|
|
154
154
|
}
|
|
155
155
|
},
|
|
156
|
-
"gitHead": "
|
|
156
|
+
"gitHead": "832c19e668deb4d29b5e0219a7708d111790f607"
|
|
157
157
|
}
|