@shell-shock/plugin-prompts 0.3.63 → 0.3.64

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.
@@ -1,5 +1,4 @@
1
- import { BuiltinFileProps } from "@powerlines/plugin-alloy/typescript/components/builtin-file";
2
-
1
+ import { BuiltinFileProps } from "@shell-shock/core/contexts/power-plant";
3
2
  //#region src/components/prompts-builtin.d.ts
4
3
  interface PromptsBuiltinProps extends Omit<BuiltinFileProps, "id" | "description"> {}
5
4
  /**
@@ -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;iBAoagB,yBAAA,6BAAyB,QAAA;AAAA,iBAmEzB,0BAAA,6BAA0B,QAAA;;AAveF;AA4OxC;iBAkTgB,cAAA,CAAe,KAAA,EAAO,mBAAmB,4BAAA,QAAA"}
1
+ {"version":3,"file":"prompts-builtin.d.cts","names":[],"sources":["../../src/components/prompts-builtin.tsx"],"mappings":";;UA6CiB,4BAA4B,KAC3C;;;;iBAOc,mDAAsB;;;;iBAs1BtB,mDAAsB;;;;iBAoPtB,qDAAwB;;;;iBAobxB,0DAA6B;;;;iBAiY7B,sDAAyB;;;;iBA6VzB,qDAAwB;;;;iBA4OxB,sDAAyB;;;;iBAwLzB,sDAAyB;iBAmEzB,uDAA0B;;;;iBAuD1B,eAAe,OAAO,+CAAmB"}
@@ -1,5 +1,4 @@
1
- import { BuiltinFileProps } from "@powerlines/plugin-alloy/typescript/components/builtin-file";
2
-
1
+ import { BuiltinFileProps } from "@shell-shock/core/contexts/power-plant";
3
2
  //#region src/components/prompts-builtin.d.ts
4
3
  interface PromptsBuiltinProps extends Omit<BuiltinFileProps, "id" | "description"> {}
5
4
  /**
@@ -1,14 +1,14 @@
1
1
  import { createComponent, createIntrinsic, mergeProps } from "@alloy-js/core/jsx-runtime";
2
2
  import { Show, code, splitProps } from "@alloy-js/core";
3
3
  import { FunctionDeclaration, VarDeclaration } from "@alloy-js/typescript";
4
- import { Spacing } from "@powerlines/plugin-alloy/core/components/spacing";
5
- import { BuiltinFile } from "@powerlines/plugin-alloy/typescript/components/builtin-file";
6
- import { ClassDeclaration, ClassField, ClassMethod, ClassPropertyGet } from "@powerlines/plugin-alloy/typescript/components/class-declaration";
7
- import { InterfaceDeclaration, InterfaceMember } from "@powerlines/plugin-alloy/typescript/components/interface-declaration";
8
- import { TSDoc, TSDocDefaultValue, TSDocExample, TSDocParam, TSDocRemarks, TSDocReturns } from "@powerlines/plugin-alloy/typescript/components/tsdoc";
9
- import { TypeDeclaration } from "@powerlines/plugin-alloy/typescript/components/type-declaration";
4
+ import { Spacing } from "@power-plant/alloy-js/core/components/spacing";
5
+ import { ClassDeclaration, ClassField, ClassMethod, ClassPropertyGet } from "@power-plant/alloy-js/typescript/components/class-declaration";
6
+ import { InterfaceDeclaration, InterfaceMember } from "@power-plant/alloy-js/typescript/components/interface-declaration";
7
+ import { TSDoc, TSDocDefaultValue, TSDocExample, TSDocParam, TSDocRemarks, TSDocReturns } from "@power-plant/alloy-js/typescript/components/tsdoc";
8
+ import { TypeDeclaration } from "@power-plant/alloy-js/typescript/components/type-declaration";
9
+ import { BuiltinFile } from "@shell-shock/core/contexts/power-plant";
10
10
  import { useTheme } from "@shell-shock/plugin-theme/contexts/theme";
11
- import defu from "defu";
11
+ import { defu } from "defu";
12
12
 
13
13
  //#region src/components/prompts-builtin.tsx
14
14
  /**
@@ -0,0 +1,32 @@
1
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
2
+ const require_components_prompts_builtin = require('./components/prompts-builtin.cjs');
3
+ require('./components/index.cjs');
4
+ let _shell_shock_core_helpers_power_plant = require("@shell-shock/core/helpers/power-plant");
5
+ let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
6
+
7
+ //#region src/generator.tsx
8
+ /**
9
+ * Power Plant generator for Shell Shock prompts builtins.
10
+ *
11
+ * @see https://github.com/storm-software/power-plant/tree/main/packages/generators/alloy-js
12
+ */
13
+ const promptsGenerator = (0, _shell_shock_core_helpers_power_plant.defineCommandGenerator)({
14
+ meta: {
15
+ name: "shell-shock-prompts",
16
+ title: "Shell Shock Prompts Generator",
17
+ description: "Generates the prompts built-in module from the Shell Shock command tree specification.",
18
+ version: "1.0",
19
+ tags: [
20
+ "shell-shock",
21
+ "prompts",
22
+ "alloy-js"
23
+ ]
24
+ },
25
+ generator: async (_commands, options) => {
26
+ await (0, _shell_shock_core_helpers_power_plant.renderCommandTemplate)(options, (0, _alloy_js_core_jsx_runtime.createComponent)(require_components_prompts_builtin.PromptsBuiltin, {}));
27
+ }
28
+ });
29
+
30
+ //#endregion
31
+ exports.default = promptsGenerator;
32
+ exports.promptsGenerator = promptsGenerator;
@@ -0,0 +1,10 @@
1
+ //#region src/generator.d.ts
2
+ /**
3
+ * Power Plant generator for Shell Shock prompts builtins.
4
+ *
5
+ * @see https://github.com/storm-software/power-plant/tree/main/packages/generators/alloy-js
6
+ */
7
+ declare const promptsGenerator: import("@power-plant/core").GeneratorConfigObject<Record<string, import("@shell-shock/schema").SerializedCommandTree>, import("@shell-shock/core/helpers/power-plant").CommandGeneratorOptions, void>;
8
+ //#endregion
9
+ export { promptsGenerator as default, promptsGenerator };
10
+ //# sourceMappingURL=generator.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generator.d.cts","names":[],"sources":["../src/generator.tsx"],"mappings":";;;;;;cA6Ba,8CAAgB,sBAAA,6CAAA,wEAAA"}
@@ -0,0 +1,10 @@
1
+ //#region src/generator.d.ts
2
+ /**
3
+ * Power Plant generator for Shell Shock prompts builtins.
4
+ *
5
+ * @see https://github.com/storm-software/power-plant/tree/main/packages/generators/alloy-js
6
+ */
7
+ declare const promptsGenerator: import("@power-plant/core").GeneratorConfigObject<Record<string, import("@shell-shock/schema").SerializedCommandTree>, import("@shell-shock/core/helpers/power-plant").CommandGeneratorOptions, void>;
8
+ //#endregion
9
+ export { promptsGenerator as default, promptsGenerator };
10
+ //# sourceMappingURL=generator.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generator.d.mts","names":[],"sources":["../src/generator.tsx"],"mappings":""}
@@ -0,0 +1,31 @@
1
+ import { PromptsBuiltin } from "./components/prompts-builtin.mjs";
2
+ import "./components/index.mjs";
3
+ import { defineCommandGenerator, renderCommandTemplate } from "@shell-shock/core/helpers/power-plant";
4
+ import { createComponent } from "@alloy-js/core/jsx-runtime";
5
+
6
+ //#region src/generator.tsx
7
+ /**
8
+ * Power Plant generator for Shell Shock prompts builtins.
9
+ *
10
+ * @see https://github.com/storm-software/power-plant/tree/main/packages/generators/alloy-js
11
+ */
12
+ const promptsGenerator = defineCommandGenerator({
13
+ meta: {
14
+ name: "shell-shock-prompts",
15
+ title: "Shell Shock Prompts Generator",
16
+ description: "Generates the prompts built-in module from the Shell Shock command tree specification.",
17
+ version: "1.0",
18
+ tags: [
19
+ "shell-shock",
20
+ "prompts",
21
+ "alloy-js"
22
+ ]
23
+ },
24
+ generator: async (_commands, options) => {
25
+ await renderCommandTemplate(options, createComponent(PromptsBuiltin, {}));
26
+ }
27
+ });
28
+
29
+ //#endregion
30
+ export { promptsGenerator as default, promptsGenerator };
31
+ //# sourceMappingURL=generator.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generator.mjs","names":[],"sources":[],"mappings":""}
package/dist/index.cjs CHANGED
@@ -1,30 +1,27 @@
1
1
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
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");
2
+ const require_generator = require('./generator.cjs');
3
+ let _shell_shock_core_helpers_power_plant = require("@shell-shock/core/helpers/power-plant");
7
4
  let _shell_shock_plugin_theme = require("@shell-shock/plugin-theme");
8
- _shell_shock_plugin_theme = require_runtime.__toESM(_shell_shock_plugin_theme, 1);
9
5
 
10
6
  //#region src/index.tsx
11
7
  /**
12
8
  * 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
9
  */
14
10
  const plugin = (options = {}) => {
15
- return [...(0, _shell_shock_plugin_theme.default)({ theme: options.theme }), {
11
+ return [...(0, _shell_shock_plugin_theme.plugin)({ theme: options.theme }), {
16
12
  name: "shell-shock/prompts",
17
13
  config() {
18
14
  this.debug("Providing default configuration for the Shell Shock `prompts` plugin.");
19
15
  return options;
20
16
  },
21
17
  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, {}));
18
+ this.debug("Rendering command handling modules via Power Plant for the Shell Shock `prompts` plugin.");
19
+ return (0, _shell_shock_core_helpers_power_plant.executeCommandGenerator)(this, require_generator.default);
24
20
  }
25
21
  }];
26
22
  };
27
23
 
28
24
  //#endregion
29
25
  exports.default = plugin;
30
- exports.plugin = plugin;
26
+ exports.plugin = plugin;
27
+ exports.promptsGenerator = require_generator.default;
package/dist/index.d.cts CHANGED
@@ -1,11 +1,11 @@
1
+ import promptsGenerator from "./generator.cjs";
1
2
  import { PromptsPluginContext, PromptsPluginOptions } from "./types/plugin.cjs";
2
3
  import { Plugin } from "powerlines";
3
-
4
4
  //#region src/index.d.ts
5
5
  /**
6
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.
7
7
  */
8
8
  declare const plugin: <TContext extends PromptsPluginContext = PromptsPluginContext>(options?: PromptsPluginOptions) => Plugin<TContext>[];
9
9
  //#endregion
10
- export { plugin as default, plugin };
10
+ export { plugin as default, plugin, promptsGenerator };
11
11
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.tsx"],"mappings":";;;;;;;cAgCa,SACX,iBAAiB,uBAAuB,sBAExC,UAAS,yBACR,OAAO"}
package/dist/index.d.mts CHANGED
@@ -1,11 +1,11 @@
1
+ import promptsGenerator from "./generator.mjs";
1
2
  import { PromptsPluginContext, PromptsPluginOptions } from "./types/plugin.mjs";
2
3
  import { Plugin } from "powerlines";
3
-
4
4
  //#region src/index.d.ts
5
5
  /**
6
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.
7
7
  */
8
8
  declare const plugin: <TContext extends PromptsPluginContext = PromptsPluginContext>(options?: PromptsPluginOptions) => Plugin<TContext>[];
9
9
  //#endregion
10
- export { plugin as default, plugin };
10
+ export { plugin as default, plugin, promptsGenerator };
11
11
  //# sourceMappingURL=index.d.mts.map
package/dist/index.mjs CHANGED
@@ -1,27 +1,25 @@
1
- import { PromptsBuiltin } from "./components/prompts-builtin.mjs";
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";
1
+ import promptsGenerator from "./generator.mjs";
2
+ import { executeCommandGenerator } from "@shell-shock/core/helpers/power-plant";
3
+ import { plugin as plugin$1 } from "@shell-shock/plugin-theme";
6
4
 
7
5
  //#region src/index.tsx
8
6
  /**
9
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.
10
8
  */
11
9
  const plugin = (options = {}) => {
12
- return [...theme({ theme: options.theme }), {
10
+ return [...plugin$1({ theme: options.theme }), {
13
11
  name: "shell-shock/prompts",
14
12
  config() {
15
13
  this.debug("Providing default configuration for the Shell Shock `prompts` plugin.");
16
14
  return options;
17
15
  },
18
16
  async prepare() {
19
- this.debug("Rendering command handling modules for the Shell Shock `prompts` plugin.");
20
- return render(this, createComponent(PromptsBuiltin, {}));
17
+ this.debug("Rendering command handling modules via Power Plant for the Shell Shock `prompts` plugin.");
18
+ return executeCommandGenerator(this, promptsGenerator);
21
19
  }
22
20
  }];
23
21
  };
24
22
 
25
23
  //#endregion
26
- export { plugin as default, plugin };
24
+ export { plugin as default, plugin, promptsGenerator };
27
25
  //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ require('./plugin.cjs');
@@ -1 +1,3 @@
1
+ import "./plugin.mjs";
2
+
1
3
  export { };
@@ -2,7 +2,6 @@ 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
4
  import { ThemePluginContext, ThemePluginOptions, ThemePluginResolvedConfig, ThemePluginUserConfig } from "@shell-shock/plugin-theme/types/plugin";
5
-
6
5
  //#region src/types/plugin.d.ts
7
6
  interface PromptsPluginOptions extends ThemePluginOptions {}
8
7
  type PromptsPluginUserConfig = ThemePluginUserConfig & {};
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;;;UA4BiB,oBAAA,SAA6B,kBAAkB;AAAA,KAEpD,uBAAA,GAA0B,qBAAqB;AAAA,KAE/C,2BAAA,GAA8B,cAAA,GACxC,yBAAyB;AAAA,KAEf,oBAAA,yBACc,2BAAA,GACtB,2BAAA,IACA,kBAAA,CAAmB,eAAA,IACrB,kBAAA,CAAmB,eAAA,IACnB,OAAA,CAAQ,eAAA"}
1
+ {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;;UA4BiB,6BAA6B;KAElC,0BAA0B;KAE1B,8BAA8B,iBACxC;KAEU,qBACV,wBAAwB,8BACtB,+BACA,mBAAmB,mBACrB,mBAAmB,mBACnB,QAAQ"}
@@ -2,7 +2,6 @@ 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
4
  import { ThemePluginContext, ThemePluginOptions, ThemePluginResolvedConfig, ThemePluginUserConfig } from "@shell-shock/plugin-theme/types/plugin";
5
-
6
5
  //#region src/types/plugin.d.ts
7
6
  interface PromptsPluginOptions extends ThemePluginOptions {}
8
7
  type PromptsPluginUserConfig = ThemePluginUserConfig & {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shell-shock/plugin-prompts",
3
- "version": "0.3.63",
3
+ "version": "0.3.64",
4
4
  "type": "module",
5
5
  "description": "A package containing a Shell Shock plugin to generate the `prompts` built-in module.",
6
6
  "repository": {
@@ -83,6 +83,20 @@
83
83
  "default": "./dist/components/prompts-builtin.mjs"
84
84
  }
85
85
  },
86
+ "./generator": {
87
+ "require": {
88
+ "types": "./dist/generator.d.cts",
89
+ "default": "./dist/generator.cjs"
90
+ },
91
+ "import": {
92
+ "types": "./dist/generator.d.mts",
93
+ "default": "./dist/generator.mjs"
94
+ },
95
+ "default": {
96
+ "types": "./dist/generator.d.mts",
97
+ "default": "./dist/generator.mjs"
98
+ }
99
+ },
86
100
  "./package.json": "./package.json",
87
101
  "./types": {
88
102
  "require": {
@@ -115,7 +129,7 @@
115
129
  },
116
130
  "types": "./dist/index.d.cts",
117
131
  "typings": "dist/index.d.mts",
118
- "files": ["dist/**/*"],
132
+ "files": ["dist"],
119
133
  "keywords": [
120
134
  "style-dictionary",
121
135
  "shell-shock",
@@ -124,19 +138,19 @@
124
138
  "storm-software"
125
139
  ],
126
140
  "dependencies": {
127
- "@alloy-js/core": "^0.23.1",
128
- "@alloy-js/typescript": "^0.23.0",
129
- "@powerlines/deepkit": "^0.9.91",
130
- "@powerlines/plugin-alloy": "^0.26.230",
131
- "@powerlines/plugin-plugin": "^0.12.549",
132
- "@shell-shock/core": "0.17.22",
133
- "@shell-shock/plugin-theme": "0.4.35",
141
+ "@alloy-js/core": "^0.24.1",
142
+ "@alloy-js/typescript": "^0.24.0",
143
+ "@power-plant/alloy-js": "^0.0.87",
144
+ "@powerlines/plugin-alloy": "^0.26.308",
145
+ "@powerlines/plugin-plugin": "^0.12.623",
146
+ "@shell-shock/core": "0.17.23",
147
+ "@shell-shock/plugin-theme": "0.4.36",
134
148
  "defu": "^6.1.7",
135
- "powerlines": "^0.47.137"
149
+ "powerlines": "^0.47.210"
136
150
  },
137
151
  "devDependencies": {
138
- "@powerlines/plugin-deepkit": "^0.11.480",
139
- "@types/node": "^25.9.3"
152
+ "@powerlines/plugin-deepkit": "^0.11.554",
153
+ "@types/node": "^25.9.5"
140
154
  },
141
155
  "publishConfig": {
142
156
  "access": "public",
@@ -153,5 +167,5 @@
153
167
  "./package.json": "./package.json"
154
168
  }
155
169
  },
156
- "gitHead": "a6c69ec8211e244444893231fe37d7cfbe518fb1"
170
+ "gitHead": "3227e8ed7b3e816987d4d4f270dfdfceb963c022"
157
171
  }
@@ -1,29 +0,0 @@
1
- //#region \0rolldown/runtime.js
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from === "object" || typeof from === "function") {
10
- for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
11
- key = keys[i];
12
- if (!__hasOwnProp.call(to, key) && key !== except) {
13
- __defProp(to, key, {
14
- get: ((k) => from[k]).bind(null, key),
15
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
- });
17
- }
18
- }
19
- }
20
- return to;
21
- };
22
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
23
- value: mod,
24
- enumerable: true
25
- }) : target, mod));
26
-
27
- //#endregion
28
-
29
- exports.__toESM = __toESM;