@shell-shock/plugin-console 0.2.12 → 0.2.14
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/_virtual/_rolldown/runtime.cjs +29 -1
- package/dist/components/console-builtin.cjs +1906 -80
- package/dist/components/console-builtin.mjs +1887 -80
- package/dist/components/console-builtin.mjs.map +1 -1
- package/dist/components/index.cjs +21 -1
- package/dist/components/index.mjs +3 -1
- package/dist/index.cjs +30 -1
- package/dist/index.mjs +26 -1
- package/dist/index.mjs.map +1 -1
- package/dist/types/index.mjs +1 -1
- package/dist/types/plugin.mjs +1 -1
- package/package.json +11 -11
|
@@ -1 +1,21 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value
|
|
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 +1,3 @@
|
|
|
1
|
-
import
|
|
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 };
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1,30 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value
|
|
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;
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,27 @@
|
|
|
1
|
-
import{ConsoleBuiltin
|
|
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 };
|
|
2
27
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -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":"
|
|
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":";;;;;;;;;;AAyBA,MAAU,UAAa,UAAA,EAAA,KAAA;;EAEvB,MAAO;;AAEL,QAAA,MAAA,wEAAA;AACG,UAAM;;EAEX,MAAO,UAAa;AAClB,QAAS,MAAA,2EAA+B;AACzC,UAAA,OAAA,MAAA,gBAAA,gBAAA,EAAA,CAAA,CAAA;;EAEE,CAAA"}
|
package/dist/types/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{};
|
|
1
|
+
export { };
|
package/dist/types/plugin.mjs
CHANGED
|
@@ -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.
|
|
3
|
+
"version": "0.2.14",
|
|
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.
|
|
129
|
-
"@powerlines/plugin-alloy": "^0.26.
|
|
130
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
131
|
-
"@shell-shock/core": "^0.17.
|
|
132
|
-
"@shell-shock/plugin-theme": "^0.4.
|
|
133
|
-
"@stryke/string-format": "^0.17.
|
|
134
|
-
"@stryke/type-checks": "^0.6.
|
|
128
|
+
"@powerlines/deepkit": "^0.8.64",
|
|
129
|
+
"@powerlines/plugin-alloy": "^0.26.84",
|
|
130
|
+
"@powerlines/plugin-plugin": "^0.12.416",
|
|
131
|
+
"@shell-shock/core": "^0.17.10",
|
|
132
|
+
"@shell-shock/plugin-theme": "^0.4.23",
|
|
133
|
+
"@stryke/string-format": "^0.17.13",
|
|
134
|
+
"@stryke/type-checks": "^0.6.5",
|
|
135
135
|
"defu": "^6.1.7",
|
|
136
|
-
"powerlines": "^0.
|
|
136
|
+
"powerlines": "^0.47.4"
|
|
137
137
|
},
|
|
138
138
|
"devDependencies": {
|
|
139
|
-
"@powerlines/plugin-deepkit": "^0.11.
|
|
139
|
+
"@powerlines/plugin-deepkit": "^0.11.347",
|
|
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": "
|
|
157
|
+
"gitHead": "7b4030fd6be000c960e8cc4c4f7b4db205054e69"
|
|
158
158
|
}
|