@shell-shock/plugin-console 0.1.6 → 0.1.8

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
@@ -12,7 +12,7 @@ __shell_shock_plugin_theme = require_rolldown_runtime.__toESM(__shell_shock_plug
12
12
  * 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.
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)(options), {
16
16
  name: "shell-shock:console",
17
17
  config() {
18
18
  this.debug("Providing default configuration for the Shell Shock `console` plugin.");
package/dist/index.d.cts CHANGED
@@ -1,4 +1,5 @@
1
- import { ConsolePluginContext, ConsolePluginOptions } from "./types/plugin.cjs";
1
+ import { ConsolePluginContext, ConsolePluginOptions, ConsolePluginResolvedConfig, ConsolePluginUserConfig } from "./types/plugin.cjs";
2
+ import "./types/index.cjs";
2
3
  import { Plugin } from "powerlines";
3
4
 
4
5
  //#region src/index.d.ts
@@ -8,5 +9,5 @@ import { Plugin } from "powerlines";
8
9
  */
9
10
  declare const plugin: <TContext extends ConsolePluginContext = ConsolePluginContext>(options?: ConsolePluginOptions) => Plugin<TContext>[];
10
11
  //#endregion
11
- export { plugin as default, plugin };
12
+ export { ConsolePluginContext, ConsolePluginOptions, ConsolePluginResolvedConfig, ConsolePluginUserConfig, plugin as default, plugin };
12
13
  //# sourceMappingURL=index.d.cts.map
@@ -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"],"sourcesContent":[],"mappings":";;;;;;;;AAgCA;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
@@ -1,4 +1,5 @@
1
- import { ConsolePluginContext, ConsolePluginOptions } from "./types/plugin.mjs";
1
+ import { ConsolePluginContext, ConsolePluginOptions, ConsolePluginResolvedConfig, ConsolePluginUserConfig } from "./types/plugin.mjs";
2
+ import "./types/index.mjs";
2
3
  import { Plugin } from "powerlines";
3
4
 
4
5
  //#region src/index.d.ts
@@ -8,5 +9,5 @@ import { Plugin } from "powerlines";
8
9
  */
9
10
  declare const plugin: <TContext extends ConsolePluginContext = ConsolePluginContext>(options?: ConsolePluginOptions) => Plugin<TContext>[];
10
11
  //#endregion
11
- export { plugin as default, plugin };
12
+ export { ConsolePluginContext, ConsolePluginOptions, ConsolePluginResolvedConfig, ConsolePluginUserConfig, plugin as default, plugin };
12
13
  //# sourceMappingURL=index.d.mts.map
@@ -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"],"sourcesContent":[],"mappings":";;;;;;;;AAgCA;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
@@ -9,7 +9,7 @@ import theme from "@shell-shock/plugin-theme";
9
9
  * 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
10
  */
11
11
  const plugin = (options = {}) => {
12
- return [...theme({ theme: options.theme }), {
12
+ return [...theme(options), {
13
13
  name: "shell-shock:console",
14
14
  config() {
15
15
  this.debug("Providing default configuration for the Shell Shock `console` plugin.");
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":["render","theme","ConsoleBuiltin","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 { ConsoleBuiltin } from \"./components\";\nimport type {\n ConsolePluginContext,\n ConsolePluginOptions\n} from \"./types/plugin\";\n\n/**\n * 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.\n */\nexport const plugin = <\n TContext extends ConsolePluginContext = ConsolePluginContext\n>(\n options: ConsolePluginOptions = {}\n): Plugin<TContext>[] => {\n return [\n ...theme({\n theme: options.theme\n }),\n {\n name: \"shell-shock:console\",\n config() {\n this.debug(\n \"Providing default configuration for the Shell Shock `console` plugin.\"\n );\n\n return options;\n },\n async prepare() {\n this.debug(\n \"Rendering command handling modules for the Shell Shock `console` plugin.\"\n );\n\n return render(this, <ConsoleBuiltin />);\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":["render","theme","ConsoleBuiltin","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 { ConsoleBuiltin } from \"./components\";\nimport type {\n ConsolePluginContext,\n ConsolePluginOptions\n} from \"./types/plugin\";\n\nexport type * from \"./types\";\n\n/**\n * 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.\n */\nexport const plugin = <\n TContext extends ConsolePluginContext = ConsolePluginContext\n>(\n options: ConsolePluginOptions = {}\n): Plugin<TContext>[] => {\n return [\n ...theme(options),\n {\n name: \"shell-shock:console\",\n config() {\n this.debug(\n \"Providing default configuration for the Shell Shock `console` plugin.\"\n );\n\n return options;\n },\n async prepare() {\n this.debug(\n \"Rendering command handling modules for the Shell Shock `console` plugin.\"\n );\n\n return render(this, <ConsoleBuiltin />);\n }\n }\n ] as Plugin<TContext>[];\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;AAgCA,MAAaG,UAGXC,UAAgC,EAAE,KACX;AACvB,QAAO,CACL,GAAGH,MAAMG,QAAQ,EACjB;EACEC,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,6 +1,6 @@
1
+ import { ThemePluginContext, ThemePluginOptions, ThemePluginResolvedConfig, ThemePluginUserConfig } from "@shell-shock/plugin-theme";
1
2
  import { AlloyPluginContext } from "@powerlines/plugin-alloy/types";
2
3
  import { Context, ResolvedConfig } from "@shell-shock/core";
3
- import { ThemePluginContext, ThemePluginOptions, ThemePluginResolvedConfig, ThemePluginUserConfig } from "@shell-shock/plugin-theme/types/plugin";
4
4
 
5
5
  //#region src/types/plugin.d.ts
6
6
  interface ConsolePluginOptions extends ThemePluginOptions {}
@@ -1,6 +1,6 @@
1
+ import { ThemePluginContext, ThemePluginOptions, ThemePluginResolvedConfig, ThemePluginUserConfig } from "@shell-shock/plugin-theme";
1
2
  import { AlloyPluginContext } from "@powerlines/plugin-alloy/types";
2
3
  import { Context, ResolvedConfig } from "@shell-shock/core";
3
- import { ThemePluginContext, ThemePluginOptions, ThemePluginResolvedConfig, ThemePluginUserConfig } from "@shell-shock/plugin-theme/types/plugin";
4
4
 
5
5
  //#region src/types/plugin.d.ts
6
6
  interface ConsolePluginOptions extends ThemePluginOptions {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shell-shock/plugin-console",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "type": "module",
5
5
  "description": "A package containing a Shell Shock plugin to generate the `console` built-in module.",
6
6
  "repository": {
@@ -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.88",
130
- "@powerlines/plugin-alloy": "^0.23.40",
131
- "@powerlines/plugin-plugin": "^0.12.260",
132
- "@shell-shock/core": "^0.10.0",
133
- "@shell-shock/plugin-theme": "^0.3.10",
134
- "@stryke/string-format": "^0.14.2",
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.12.0",
133
+ "@shell-shock/plugin-theme": "^0.3.12",
134
+ "@stryke/string-format": "^0.14.8",
135
135
  "defu": "^6.1.4",
136
- "powerlines": "^0.39.17"
136
+ "powerlines": "^0.39.19"
137
137
  },
138
138
  "devDependencies": {
139
- "@powerlines/plugin-deepkit": "^0.11.188",
139
+ "@powerlines/plugin-deepkit": "^0.11.190",
140
140
  "@types/node": "^25.3.3"
141
141
  },
142
142
  "publishConfig": {
@@ -154,5 +154,5 @@
154
154
  "./package.json": "./package.json"
155
155
  }
156
156
  },
157
- "gitHead": "d0abdaa95b5e40df2157d393f0ba8499589140ca"
157
+ "gitHead": "c38d304433a296936fb8ca58aa138a0039918931"
158
158
  }