@shell-shock/plugin-console 0.1.5 → 0.1.7
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/components/console-builtin.cjs +4 -4
- package/dist/components/console-builtin.d.cts +1 -1
- package/dist/components/console-builtin.d.mts +1 -1
- package/dist/components/console-builtin.mjs +4 -4
- package/dist/components/console-builtin.mjs.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +3 -2
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +3 -2
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/types/plugin.d.cts +2 -3
- package/dist/types/plugin.d.cts.map +1 -1
- package/dist/types/plugin.d.mts +2 -3
- package/dist/types/plugin.d.mts.map +1 -1
- package/package.json +13 -13
|
@@ -883,13 +883,13 @@ function ColorsDeclaration() {
|
|
|
883
883
|
})},
|
|
884
884
|
arguments: ${(0, __alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
885
885
|
get ansi16() {
|
|
886
|
-
return colors.ansi16.theme.text.usage.
|
|
886
|
+
return colors.ansi16.theme.text.usage.args;
|
|
887
887
|
},
|
|
888
888
|
get ansi256() {
|
|
889
|
-
return colors.ansi256.theme.text.usage.
|
|
889
|
+
return colors.ansi256.theme.text.usage.args;
|
|
890
890
|
},
|
|
891
891
|
get ansi16m() {
|
|
892
|
-
return colors.ansi16m.theme.text.usage.
|
|
892
|
+
return colors.ansi16m.theme.text.usage.args;
|
|
893
893
|
}
|
|
894
894
|
})},
|
|
895
895
|
description: ${(0, __alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
@@ -1998,7 +1998,7 @@ function WrapAnsiFunction() {
|
|
|
1998
1998
|
heading: "Applies ANSI escape codes to a string.",
|
|
1999
1999
|
get children() {
|
|
2000
2000
|
return [
|
|
2001
|
-
(0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDocRemarks, { children: `Split text by /\\\\x1b[\\[|\\]][0-9;]*m/ and wrap non-ANSI parts with open/
|
|
2001
|
+
(0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDocRemarks, { children: `Split text by /\\\\x1b[\\[|\\]][0-9;]*m/ and wrap non-ANSI parts with open/closing tags.` }),
|
|
2002
2002
|
(0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDocExample, { children: `const result = wrapAnsi("Hello\\\\x1b[31mWorld\\\\x1b[0mAgain", "\\\\x1b[36m", "\\\\x1b[39");\nconsole.log(result); // "\\\\x1b[36mHello\\\\x1b[39\\\\x1b[31mWorld\\\\x1b[0m\\\\x1b[36mAgain\\\\x1b[39"` }),
|
|
2003
2003
|
(0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDocParam, {
|
|
2004
2004
|
name: "text",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Children } from "@alloy-js/core";
|
|
2
2
|
import { FunctionDeclarationProps } from "@alloy-js/typescript";
|
|
3
3
|
import { BuiltinFileProps } from "@powerlines/plugin-alloy/typescript/components/builtin-file";
|
|
4
|
-
import { ThemeMessageVariant } from "@shell-shock/plugin-theme
|
|
4
|
+
import { ThemeMessageVariant } from "@shell-shock/plugin-theme";
|
|
5
5
|
|
|
6
6
|
//#region src/components/console-builtin.d.ts
|
|
7
7
|
declare function AnsiHelpersDeclarations(): Children;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { ThemeMessageVariant } from "@shell-shock/plugin-theme";
|
|
1
2
|
import { Children } from "@alloy-js/core";
|
|
2
3
|
import { FunctionDeclarationProps } from "@alloy-js/typescript";
|
|
3
4
|
import { BuiltinFileProps } from "@powerlines/plugin-alloy/typescript/components/builtin-file";
|
|
4
|
-
import { ThemeMessageVariant } from "@shell-shock/plugin-theme/types/theme";
|
|
5
5
|
|
|
6
6
|
//#region src/components/console-builtin.d.ts
|
|
7
7
|
declare function AnsiHelpersDeclarations(): Children;
|
|
@@ -882,13 +882,13 @@ function ColorsDeclaration() {
|
|
|
882
882
|
})},
|
|
883
883
|
arguments: ${createComponent(ColorFunction, {
|
|
884
884
|
get ansi16() {
|
|
885
|
-
return colors.ansi16.theme.text.usage.
|
|
885
|
+
return colors.ansi16.theme.text.usage.args;
|
|
886
886
|
},
|
|
887
887
|
get ansi256() {
|
|
888
|
-
return colors.ansi256.theme.text.usage.
|
|
888
|
+
return colors.ansi256.theme.text.usage.args;
|
|
889
889
|
},
|
|
890
890
|
get ansi16m() {
|
|
891
|
-
return colors.ansi16m.theme.text.usage.
|
|
891
|
+
return colors.ansi16m.theme.text.usage.args;
|
|
892
892
|
}
|
|
893
893
|
})},
|
|
894
894
|
description: ${createComponent(ColorFunction, {
|
|
@@ -1997,7 +1997,7 @@ function WrapAnsiFunction() {
|
|
|
1997
1997
|
heading: "Applies ANSI escape codes to a string.",
|
|
1998
1998
|
get children() {
|
|
1999
1999
|
return [
|
|
2000
|
-
createComponent(TSDocRemarks, { children: `Split text by /\\\\x1b[\\[|\\]][0-9;]*m/ and wrap non-ANSI parts with open/
|
|
2000
|
+
createComponent(TSDocRemarks, { children: `Split text by /\\\\x1b[\\[|\\]][0-9;]*m/ and wrap non-ANSI parts with open/closing tags.` }),
|
|
2001
2001
|
createComponent(TSDocExample, { children: `const result = wrapAnsi("Hello\\\\x1b[31mWorld\\\\x1b[0mAgain", "\\\\x1b[36m", "\\\\x1b[39");\nconsole.log(result); // "\\\\x1b[36mHello\\\\x1b[39\\\\x1b[31mWorld\\\\x1b[0m\\\\x1b[36mAgain\\\\x1b[39"` }),
|
|
2002
2002
|
createComponent(TSDocParam, {
|
|
2003
2003
|
name: "text",
|