@shell-shock/plugin-console 0.2.11 → 0.2.12

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,21 +1 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_components_console_builtin = require('./console-builtin.cjs');
3
-
4
- exports.AnsiHelpersDeclarations = require_components_console_builtin.AnsiHelpersDeclarations;
5
- exports.AnsiStyleFunctionsDeclaration = require_components_console_builtin.AnsiStyleFunctionsDeclaration;
6
- exports.BlockquoteFunctionDeclaration = require_components_console_builtin.BlockquoteFunctionDeclaration;
7
- exports.CodeFunctionDeclaration = require_components_console_builtin.CodeFunctionDeclaration;
8
- exports.ConsoleBuiltin = require_components_console_builtin.ConsoleBuiltin;
9
- exports.DividerFunctionDeclaration = require_components_console_builtin.DividerFunctionDeclaration;
10
- exports.InlineCodeFunctionDeclaration = require_components_console_builtin.InlineCodeFunctionDeclaration;
11
- exports.LinkFunctionDeclaration = require_components_console_builtin.LinkFunctionDeclaration;
12
- exports.MessageFunctionDeclaration = require_components_console_builtin.MessageFunctionDeclaration;
13
- exports.SpinnerFunctionDeclaration = require_components_console_builtin.SpinnerFunctionDeclaration;
14
- exports.SplitTextFunctionDeclaration = require_components_console_builtin.SplitTextFunctionDeclaration;
15
- exports.StripAnsiFunctionDeclaration = require_components_console_builtin.StripAnsiFunctionDeclaration;
16
- exports.TableFunctionDeclaration = require_components_console_builtin.TableFunctionDeclaration;
17
- exports.ThemeColorObjectDefinition = require_components_console_builtin.ThemeColorObjectDefinition;
18
- exports.ThemeColorTypeDefinition = require_components_console_builtin.ThemeColorTypeDefinition;
19
- exports.WrapAnsiFunction = require_components_console_builtin.WrapAnsiFunction;
20
- exports.WriteFunctionDeclaration = require_components_console_builtin.WriteFunctionDeclaration;
21
- exports.WriteLineFunctionDeclaration = require_components_console_builtin.WriteLineFunctionDeclaration;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./console-builtin.cjs`);exports.AnsiHelpersDeclarations=e.AnsiHelpersDeclarations,exports.AnsiStyleFunctionsDeclaration=e.AnsiStyleFunctionsDeclaration,exports.BlockquoteFunctionDeclaration=e.BlockquoteFunctionDeclaration,exports.CodeFunctionDeclaration=e.CodeFunctionDeclaration,exports.ConsoleBuiltin=e.ConsoleBuiltin,exports.DividerFunctionDeclaration=e.DividerFunctionDeclaration,exports.InlineCodeFunctionDeclaration=e.InlineCodeFunctionDeclaration,exports.LinkFunctionDeclaration=e.LinkFunctionDeclaration,exports.MessageFunctionDeclaration=e.MessageFunctionDeclaration,exports.SpinnerFunctionDeclaration=e.SpinnerFunctionDeclaration,exports.SplitTextFunctionDeclaration=e.SplitTextFunctionDeclaration,exports.StripAnsiFunctionDeclaration=e.StripAnsiFunctionDeclaration,exports.TableFunctionDeclaration=e.TableFunctionDeclaration,exports.ThemeColorObjectDefinition=e.ThemeColorObjectDefinition,exports.ThemeColorTypeDefinition=e.ThemeColorTypeDefinition,exports.WrapAnsiFunction=e.WrapAnsiFunction,exports.WriteFunctionDeclaration=e.WriteFunctionDeclaration,exports.WriteLineFunctionDeclaration=e.WriteLineFunctionDeclaration;
@@ -1,3 +1 @@
1
- import { AnsiHelpersDeclarations, AnsiStyleFunctionsDeclaration, BlockquoteFunctionDeclaration, CodeFunctionDeclaration, ConsoleBuiltin, DividerFunctionDeclaration, InlineCodeFunctionDeclaration, LinkFunctionDeclaration, MessageFunctionDeclaration, SpinnerFunctionDeclaration, SplitTextFunctionDeclaration, StripAnsiFunctionDeclaration, TableFunctionDeclaration, ThemeColorObjectDefinition, ThemeColorTypeDefinition, WrapAnsiFunction, WriteFunctionDeclaration, WriteLineFunctionDeclaration } from "./console-builtin.mjs";
2
-
3
- export { AnsiHelpersDeclarations, AnsiStyleFunctionsDeclaration, BlockquoteFunctionDeclaration, CodeFunctionDeclaration, ConsoleBuiltin, DividerFunctionDeclaration, InlineCodeFunctionDeclaration, LinkFunctionDeclaration, MessageFunctionDeclaration, SpinnerFunctionDeclaration, SplitTextFunctionDeclaration, StripAnsiFunctionDeclaration, TableFunctionDeclaration, ThemeColorObjectDefinition, ThemeColorTypeDefinition, WrapAnsiFunction, WriteFunctionDeclaration, WriteLineFunctionDeclaration };
1
+ import{AnsiHelpersDeclarations as e,AnsiStyleFunctionsDeclaration as t,BlockquoteFunctionDeclaration as n,CodeFunctionDeclaration as r,ConsoleBuiltin as i,DividerFunctionDeclaration as a,InlineCodeFunctionDeclaration as o,LinkFunctionDeclaration as s,MessageFunctionDeclaration as c,SpinnerFunctionDeclaration as l,SplitTextFunctionDeclaration as u,StripAnsiFunctionDeclaration as d,TableFunctionDeclaration as f,ThemeColorObjectDefinition as p,ThemeColorTypeDefinition as m,WrapAnsiFunction as h,WriteFunctionDeclaration as g,WriteLineFunctionDeclaration as _}from"./console-builtin.mjs";export{e as AnsiHelpersDeclarations,t as AnsiStyleFunctionsDeclaration,n as BlockquoteFunctionDeclaration,r as CodeFunctionDeclaration,i as ConsoleBuiltin,a as DividerFunctionDeclaration,o as InlineCodeFunctionDeclaration,s as LinkFunctionDeclaration,c as MessageFunctionDeclaration,l as SpinnerFunctionDeclaration,u as SplitTextFunctionDeclaration,d as StripAnsiFunctionDeclaration,f as TableFunctionDeclaration,p as ThemeColorObjectDefinition,m as ThemeColorTypeDefinition,h as WrapAnsiFunction,g as WriteFunctionDeclaration,_ as WriteLineFunctionDeclaration};
package/dist/index.cjs CHANGED
@@ -1,30 +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_console_builtin = require('./components/console-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 `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
- */
14
- const plugin = (options = {}) => {
15
- return [...(0, _shell_shock_plugin_theme.default)(options), {
16
- name: "shell-shock:console",
17
- config() {
18
- this.debug("Providing default configuration for the Shell Shock `console` plugin.");
19
- return options;
20
- },
21
- async prepare() {
22
- this.debug("Rendering command handling modules for the Shell Shock `console` plugin.");
23
- return (0, _powerlines_plugin_alloy_render.render)(this, (0, _alloy_js_core_jsx_runtime.createComponent)(require_components_console_builtin.ConsoleBuiltin, {}));
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/console-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)(e),{name:`shell-shock:console`,config(){return this.debug("Providing default configuration for the Shell Shock `console` plugin."),e},async prepare(){return this.debug("Rendering command handling modules for the Shell Shock `console` plugin."),(0,r.render)(this,(0,n.createComponent)(t.ConsoleBuiltin,{}))}}];exports.default=a,exports.plugin=a;
package/dist/index.mjs CHANGED
@@ -1,27 +1,2 @@
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";
6
-
7
- //#region src/index.tsx
8
- /**
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
- */
11
- const plugin = (options = {}) => {
12
- return [...theme(options), {
13
- name: "shell-shock:console",
14
- config() {
15
- this.debug("Providing default configuration for the Shell Shock `console` plugin.");
16
- return options;
17
- },
18
- async prepare() {
19
- this.debug("Rendering command handling modules for the Shell Shock `console` plugin.");
20
- return render(this, createComponent(ConsoleBuiltin, {}));
21
- }
22
- }];
23
- };
24
-
25
- //#endregion
26
- export { plugin as default, plugin };
1
+ import{ConsoleBuiltin as e}from"./components/console-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(i),{name:`shell-shock:console`,config(){return this.debug("Providing default configuration for the Shell Shock `console` plugin."),i},async prepare(){return this.debug("Rendering command handling modules for the Shell Shock `console` plugin."),n(this,t(e,{}))}}];export{i as default,i as plugin};
27
2
  //# sourceMappingURL=index.mjs.map
@@ -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 { 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":";;;;;;;;;;AA6BA,MAAE,UAAA,UAAA,EAAA,KAAA;AACA,QAAG,CAAK,GAAC,MAAM,QAAU,EAAA;EACzB,MAAA;EACF,SAAa;AACX,QAAS,MAAA,wEAA+B;AACzC,UAAA;;EAEE,MAAO,UAAU;AAClB,QAAO,MAAA,2EAAA;AACH,UAAO,OAAO,MAAC,gBAAA,gBAAA,EAAA,CAAA,CAAA;;EAElB,CAAC"}
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 { 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":"gQAyBA,MAAU,GAAa,EAAA,EAAA,aAEvB,KAAO,+BAGF,OADH,KAAA,MAAA,wEAAA,CACS,GAEX,MAAO,SAAa,CAEnB,OADC,KAAS,MAAA,2EAA+B,CACzC,EAAA,KAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAEE,CAAA"}
@@ -1 +1 @@
1
- export { };
1
+ export{};
@@ -1 +1 @@
1
- export { };
1
+ export{};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shell-shock/plugin-console",
3
- "version": "0.2.11",
3
+ "version": "0.2.12",
4
4
  "private": false,
5
5
  "description": "A package containing a Shell Shock plugin to generate the `console` built-in module.",
6
6
  "keywords": [
@@ -125,18 +125,18 @@
125
125
  "dependencies": {
126
126
  "@alloy-js/core": "0.23.0-dev.8",
127
127
  "@alloy-js/typescript": "0.23.0-dev.4",
128
- "@powerlines/deepkit": "^0.8.2",
129
- "@powerlines/plugin-alloy": "^0.26.18",
130
- "@powerlines/plugin-plugin": "^0.12.350",
131
- "@shell-shock/core": "^0.17.7",
132
- "@shell-shock/plugin-theme": "^0.4.20",
133
- "@stryke/string-format": "^0.17.9",
134
- "@stryke/type-checks": "^0.6.1",
128
+ "@powerlines/deepkit": "^0.8.49",
129
+ "@powerlines/plugin-alloy": "^0.26.67",
130
+ "@powerlines/plugin-plugin": "^0.12.399",
131
+ "@shell-shock/core": "^0.17.8",
132
+ "@shell-shock/plugin-theme": "^0.4.21",
133
+ "@stryke/string-format": "^0.17.12",
134
+ "@stryke/type-checks": "^0.6.4",
135
135
  "defu": "^6.1.7",
136
- "powerlines": "^0.42.40"
136
+ "powerlines": "^0.44.12"
137
137
  },
138
138
  "devDependencies": {
139
- "@powerlines/plugin-deepkit": "^0.11.280",
139
+ "@powerlines/plugin-deepkit": "^0.11.330",
140
140
  "@types/node": "^25.6.0"
141
141
  },
142
142
  "publishConfig": {
@@ -154,5 +154,5 @@
154
154
  "./package.json": "./package.json"
155
155
  }
156
156
  },
157
- "gitHead": "dcc6ef2c66de17416af3242b25b977c49974b4a1"
157
+ "gitHead": "832c19e668deb4d29b5e0219a7708d111790f607"
158
158
  }