@shell-shock/plugin-console 0.2.26 → 0.2.28

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.mjs CHANGED
@@ -1,27 +1,25 @@
1
- import { ConsoleBuiltin } from "./components/console-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 { t as consoleGenerator } from "./generator-CI1BFzOW.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 `console` built-in module, which provides a set of commands for logging messages to the console and inspecting values. 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(options), {
10
+ return [...plugin$1(options), {
13
11
  name: "shell-shock/console",
14
12
  config() {
15
13
  this.debug("Providing default configuration for the Shell Shock `console` plugin.");
16
14
  return options;
17
15
  },
18
16
  async prepare() {
19
- this.debug("Rendering command handling modules for the Shell Shock `console` plugin.");
20
- return render(this, createComponent(ConsoleBuiltin, {}));
17
+ this.debug("Rendering command handling modules via Power Plant for the Shell Shock `console` plugin.");
18
+ return executeCommandGenerator(this, consoleGenerator);
21
19
  }
22
20
  }];
23
21
  };
24
22
 
25
23
  //#endregion
26
- export { plugin as default, plugin };
24
+ export { consoleGenerator, plugin as default, plugin };
27
25
  //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ require('./plugin.cjs');
@@ -1 +1,3 @@
1
+ import "./plugin.mjs";
2
+
1
3
  export { };
@@ -1,7 +1,6 @@
1
1
  import { ThemePluginContext, ThemePluginOptions, ThemePluginResolvedConfig, ThemePluginUserConfig } from "@shell-shock/plugin-theme";
2
2
  import { AlloyPluginContext } from "@powerlines/plugin-alloy/types";
3
3
  import { Context, ResolvedConfig, UserConfig } from "@shell-shock/core";
4
-
5
4
  //#region src/types/plugin.d.ts
6
5
  interface ConsolePluginOptions extends ThemePluginOptions {}
7
6
  type ConsolePluginUserConfig = ThemePluginUserConfig & UserConfig;
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;;UA2BiB,oBAAA,SAA6B,kBAAkB;AAAA,KAEpD,uBAAA,GAA0B,qBAAA,GAAwB,UAAU;AAAA,KAE5D,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":";;;;UA2BiB,6BAA6B;KAElC,0BAA0B,wBAAwB;KAElD,8BAA8B,iBACxC;KAEU,qBACV,wBAAwB,8BACtB,+BACA,mBAAmB,mBACrB,mBAAmB,mBACnB,QAAQ"}
@@ -1,7 +1,6 @@
1
1
  import { ThemePluginContext, ThemePluginOptions, ThemePluginResolvedConfig, ThemePluginUserConfig } from "@shell-shock/plugin-theme";
2
2
  import { AlloyPluginContext } from "@powerlines/plugin-alloy/types";
3
3
  import { Context, ResolvedConfig, UserConfig } from "@shell-shock/core";
4
-
5
4
  //#region src/types/plugin.d.ts
6
5
  interface ConsolePluginOptions extends ThemePluginOptions {}
7
6
  type ConsolePluginUserConfig = ThemePluginUserConfig & UserConfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shell-shock/plugin-console",
3
- "version": "0.2.26",
3
+ "version": "0.2.28",
4
4
  "private": false,
5
5
  "description": "A package containing a Shell Shock plugin to generate the `console` built-in module.",
6
6
  "keywords": [
@@ -87,6 +87,20 @@
87
87
  "default": "./dist/components/console-builtin.mjs"
88
88
  }
89
89
  },
90
+ "./generator": {
91
+ "require": {
92
+ "types": "./dist/generator.d.cts",
93
+ "default": "./dist/generator.cjs"
94
+ },
95
+ "import": {
96
+ "types": "./dist/generator.d.mts",
97
+ "default": "./dist/generator.mjs"
98
+ },
99
+ "default": {
100
+ "types": "./dist/generator.d.mts",
101
+ "default": "./dist/generator.mjs"
102
+ }
103
+ },
90
104
  "./package.json": "./package.json",
91
105
  "./types": {
92
106
  "require": {
@@ -121,24 +135,22 @@
121
135
  "module": "./dist/index.mjs",
122
136
  "types": "./dist/index.d.cts",
123
137
  "typings": "dist/index.d.mts",
124
- "files": ["dist/**/*"],
138
+ "files": ["dist"],
125
139
  "dependencies": {
126
- "@alloy-js/core": "^0.23.1",
127
- "@alloy-js/typescript": "^0.23.0",
128
- "@powerlines/deepkit": "^0.9.91",
129
- "@powerlines/plugin-alloy": "^0.26.230",
130
- "@powerlines/plugin-plugin": "^0.12.549",
131
- "@shell-shock/core": "0.17.22",
132
- "@shell-shock/plugin-theme": "0.4.35",
133
- "@stryke/string-format": "^0.17.26",
134
- "@stryke/type-checks": "^0.6.17",
140
+ "@alloy-js/core": "^0.24.1",
141
+ "@alloy-js/typescript": "^0.24.0",
142
+ "@power-plant/alloy-js": "^0.0.87",
143
+ "@power-plant/core": "^0.0.90",
144
+ "@powerlines/plugin-alloy": "^0.26.309",
145
+ "@powerlines/plugin-plugin": "^0.12.624",
146
+ "@shell-shock/core": "0.17.24",
147
+ "@shell-shock/plugin-theme": "0.4.37",
148
+ "@stryke/string-format": "^0.17.50",
149
+ "@stryke/type-checks": "^0.6.41",
135
150
  "defu": "^6.1.7",
136
- "powerlines": "^0.47.137"
137
- },
138
- "devDependencies": {
139
- "@powerlines/plugin-deepkit": "^0.11.480",
140
- "@types/node": "^25.9.3"
151
+ "powerlines": "^0.47.211"
141
152
  },
153
+ "devDependencies": { "@types/node": "^25.9.5" },
142
154
  "publishConfig": {
143
155
  "access": "public",
144
156
  "exports": {
@@ -154,5 +166,5 @@
154
166
  "./package.json": "./package.json"
155
167
  }
156
168
  },
157
- "gitHead": "a6c69ec8211e244444893231fe37d7cfbe518fb1"
169
+ "gitHead": "06592cb0cccc2c7e9297af4c5138550e86fa4eec"
158
170
  }
@@ -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;