@shell-shock/plugin-prompts 0.2.0 → 0.2.2
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/components/prompts-builtin.cjs +281 -281
- package/dist/components/prompts-builtin.d.cts.map +1 -1
- package/dist/components/prompts-builtin.d.mts.map +1 -1
- package/dist/components/prompts-builtin.mjs +280 -280
- package/dist/components/prompts-builtin.mjs.map +1 -1
- package/dist/index.cjs +4 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/dist/types/plugin.d.cts +2 -2
- package/dist/types/plugin.d.cts.map +1 -1
- package/dist/types/plugin.d.mts +2 -2
- package/dist/types/plugin.d.mts.map +1 -1
- package/package.json +5 -6
package/dist/index.cjs
CHANGED
|
@@ -4,13 +4,15 @@ const require_components_prompts_builtin = require('./components/prompts-builtin
|
|
|
4
4
|
require('./components/index.cjs');
|
|
5
5
|
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
6
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);
|
|
7
9
|
|
|
8
10
|
//#region src/index.tsx
|
|
9
11
|
/**
|
|
10
|
-
*
|
|
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.
|
|
11
13
|
*/
|
|
12
14
|
const plugin = (options = {}) => {
|
|
13
|
-
return [{
|
|
15
|
+
return [...(0, __shell_shock_plugin_theme.default)({ theme: options.theme }), {
|
|
14
16
|
name: "shell-shock:prompts",
|
|
15
17
|
config() {
|
|
16
18
|
this.debug("Providing default configuration for the Shell Shock `prompts` plugin.");
|
package/dist/index.d.cts
CHANGED
|
@@ -4,7 +4,7 @@ import { Plugin } from "powerlines";
|
|
|
4
4
|
//#region src/index.d.ts
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* 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
8
|
*/
|
|
9
9
|
declare const plugin: <TContext extends PromptsPluginContext = PromptsPluginContext>(options?: PromptsPluginOptions) => Plugin<TContext>[];
|
|
10
10
|
//#endregion
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.tsx"],"sourcesContent":[],"mappings":";;;;;;;
|
|
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"}
|
package/dist/index.d.mts
CHANGED
|
@@ -4,7 +4,7 @@ import { Plugin } from "powerlines";
|
|
|
4
4
|
//#region src/index.d.ts
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* 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
8
|
*/
|
|
9
9
|
declare const plugin: <TContext extends PromptsPluginContext = PromptsPluginContext>(options?: PromptsPluginOptions) => Plugin<TContext>[];
|
|
10
10
|
//#endregion
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.tsx"],"sourcesContent":[],"mappings":";;;;;;;
|
|
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"}
|
package/dist/index.mjs
CHANGED
|
@@ -2,13 +2,14 @@ import { PromptsBuiltin } from "./components/prompts-builtin.mjs";
|
|
|
2
2
|
import "./components/index.mjs";
|
|
3
3
|
import { createComponent } from "@alloy-js/core/jsx-runtime";
|
|
4
4
|
import { render } from "@powerlines/plugin-alloy/render";
|
|
5
|
+
import theme from "@shell-shock/plugin-theme";
|
|
5
6
|
|
|
6
7
|
//#region src/index.tsx
|
|
7
8
|
/**
|
|
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.
|
|
9
10
|
*/
|
|
10
11
|
const plugin = (options = {}) => {
|
|
11
|
-
return [{
|
|
12
|
+
return [...theme({ theme: options.theme }), {
|
|
12
13
|
name: "shell-shock:prompts",
|
|
13
14
|
config() {
|
|
14
15
|
this.debug("Providing default configuration for the Shell Shock `prompts` plugin.");
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["render","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 type { Plugin } from \"powerlines\";\nimport { PromptsBuiltin } from \"./components\";\nimport type {\n PromptsPluginContext,\n PromptsPluginOptions\n} from \"./types/plugin\";\n\n/**\n *
|
|
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"}
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { AlloyPluginContext } from "@powerlines/plugin-alloy/types";
|
|
2
2
|
import { ResolvedConfig } from "@shell-shock/core/types/config";
|
|
3
3
|
import { Context } from "@shell-shock/core/types/context";
|
|
4
|
-
import { ThemePluginContext, ThemePluginResolvedConfig, ThemePluginUserConfig } from "@shell-shock/plugin-theme/types/plugin";
|
|
4
|
+
import { ThemePluginContext, ThemePluginOptions, ThemePluginResolvedConfig, ThemePluginUserConfig } from "@shell-shock/plugin-theme/types/plugin";
|
|
5
5
|
|
|
6
6
|
//#region src/types/plugin.d.ts
|
|
7
|
-
interface PromptsPluginOptions {}
|
|
7
|
+
interface PromptsPluginOptions extends ThemePluginOptions {}
|
|
8
8
|
type PromptsPluginUserConfig = ThemePluginUserConfig & {};
|
|
9
9
|
type PromptsPluginResolvedConfig = ResolvedConfig & ThemePluginResolvedConfig;
|
|
10
10
|
type PromptsPluginContext<TResolvedConfig extends PromptsPluginResolvedConfig = PromptsPluginResolvedConfig> = AlloyPluginContext<TResolvedConfig> & ThemePluginContext<TResolvedConfig> & Context<TResolvedConfig>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;;
|
|
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"}
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { AlloyPluginContext } from "@powerlines/plugin-alloy/types";
|
|
2
2
|
import { ResolvedConfig } from "@shell-shock/core/types/config";
|
|
3
3
|
import { Context } from "@shell-shock/core/types/context";
|
|
4
|
-
import { ThemePluginContext, ThemePluginResolvedConfig, ThemePluginUserConfig } from "@shell-shock/plugin-theme/types/plugin";
|
|
4
|
+
import { ThemePluginContext, ThemePluginOptions, ThemePluginResolvedConfig, ThemePluginUserConfig } from "@shell-shock/plugin-theme/types/plugin";
|
|
5
5
|
|
|
6
6
|
//#region src/types/plugin.d.ts
|
|
7
|
-
interface PromptsPluginOptions {}
|
|
7
|
+
interface PromptsPluginOptions extends ThemePluginOptions {}
|
|
8
8
|
type PromptsPluginUserConfig = ThemePluginUserConfig & {};
|
|
9
9
|
type PromptsPluginResolvedConfig = ResolvedConfig & ThemePluginResolvedConfig;
|
|
10
10
|
type PromptsPluginContext<TResolvedConfig extends PromptsPluginResolvedConfig = PromptsPluginResolvedConfig> = AlloyPluginContext<TResolvedConfig> & ThemePluginContext<TResolvedConfig> & Context<TResolvedConfig>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;;
|
|
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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shell-shock/plugin-prompts",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Shell Shock plugin to generate the `prompts` built-in module.",
|
|
6
6
|
"repository": {
|
|
@@ -127,11 +127,10 @@
|
|
|
127
127
|
"@alloy-js/core": "0.23.0-dev.8",
|
|
128
128
|
"@alloy-js/typescript": "0.23.0-dev.4",
|
|
129
129
|
"@powerlines/deepkit": "^0.6.66",
|
|
130
|
-
"@powerlines/plugin-alloy": "
|
|
130
|
+
"@powerlines/plugin-alloy": "0.23.16",
|
|
131
131
|
"@powerlines/plugin-plugin": "^0.12.237",
|
|
132
|
-
"@shell-shock/core": "^0.8.
|
|
133
|
-
"@shell-shock/plugin-theme": "^0.
|
|
134
|
-
"@shell-shock/preset-script": "^0.6.10",
|
|
132
|
+
"@shell-shock/core": "^0.8.13",
|
|
133
|
+
"@shell-shock/plugin-theme": "^0.3.1",
|
|
135
134
|
"defu": "6.1.4",
|
|
136
135
|
"powerlines": "^0.38.53"
|
|
137
136
|
},
|
|
@@ -154,5 +153,5 @@
|
|
|
154
153
|
"./package.json": "./package.json"
|
|
155
154
|
}
|
|
156
155
|
},
|
|
157
|
-
"gitHead": "
|
|
156
|
+
"gitHead": "d46dde655ea60b655f62e25cf8faef356f30be6a"
|
|
158
157
|
}
|