@shell-shock/plugin-console 0.1.35 → 0.2.1
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 +541 -1567
- package/dist/components/console-builtin.d.cts +31 -2
- package/dist/components/console-builtin.d.cts.map +1 -1
- package/dist/components/console-builtin.d.mts +31 -2
- package/dist/components/console-builtin.d.mts.map +1 -1
- package/dist/components/console-builtin.mjs +536 -1568
- package/dist/components/console-builtin.mjs.map +1 -1
- package/dist/components/index.cjs +7 -1
- package/dist/components/index.d.cts +2 -2
- package/dist/components/index.d.mts +2 -2
- package/dist/components/index.mjs +2 -2
- package/package.json +31 -31
|
@@ -2,17 +2,34 @@ 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
4
|
import { ThemeMessageVariant } from "@shell-shock/plugin-theme";
|
|
5
|
+
import { AnsiColorWrappers } from "@shell-shock/plugin-theme/helpers/ansi-utils";
|
|
5
6
|
|
|
6
7
|
//#region src/components/console-builtin.d.ts
|
|
7
8
|
declare function AnsiHelpersDeclarations(): Children;
|
|
9
|
+
interface ThemeColorNode {
|
|
10
|
+
[key: string]: AnsiColorWrappers | ThemeColorNode;
|
|
11
|
+
}
|
|
12
|
+
interface ThemeColorDefinitionProps {
|
|
13
|
+
type: string;
|
|
14
|
+
subType?: string;
|
|
15
|
+
ansi16: ThemeColorNode;
|
|
16
|
+
ansi256: ThemeColorNode;
|
|
17
|
+
ansi16m: ThemeColorNode;
|
|
18
|
+
}
|
|
19
|
+
declare function ThemeColorTypeDefinition(props: ThemeColorDefinitionProps): Children;
|
|
20
|
+
declare function ThemeColorObjectDefinition(props: ThemeColorDefinitionProps): Children;
|
|
8
21
|
/**
|
|
9
22
|
* A component to generate an object containing functions for coloring text in a Shell Shock project.
|
|
10
23
|
*/
|
|
11
|
-
declare function
|
|
24
|
+
declare function AnsiStyleFunctionsDeclaration(): Children;
|
|
12
25
|
/**
|
|
13
26
|
* A component to generate the `splitText` function in the `shell-shock:console` builtin module.
|
|
14
27
|
*/
|
|
15
28
|
declare function SplitTextFunctionDeclaration(): Children;
|
|
29
|
+
/**
|
|
30
|
+
* A component to generate the `write` function in the `shell-shock:console` builtin module.
|
|
31
|
+
*/
|
|
32
|
+
declare function WriteFunctionDeclaration(): Children;
|
|
16
33
|
/**
|
|
17
34
|
* A component to generate the `writeLine` function in the `shell-shock:console` builtin module.
|
|
18
35
|
*/
|
|
@@ -46,6 +63,18 @@ declare function DividerFunctionDeclaration(): Children;
|
|
|
46
63
|
* A component to generate the `link` function in the `shell-shock:console` builtin module.
|
|
47
64
|
*/
|
|
48
65
|
declare function LinkFunctionDeclaration(): Children;
|
|
66
|
+
/**
|
|
67
|
+
* A component to generate the `blockquote` function declaration
|
|
68
|
+
*/
|
|
69
|
+
declare function BlockquoteFunctionDeclaration(): Children;
|
|
70
|
+
/**
|
|
71
|
+
* A component to generate the `code` function declaration
|
|
72
|
+
*/
|
|
73
|
+
declare function CodeFunctionDeclaration(): Children;
|
|
74
|
+
/**
|
|
75
|
+
* A component to generate the `inlineCode` function declaration
|
|
76
|
+
*/
|
|
77
|
+
declare function InlineCodeFunctionDeclaration(): Children;
|
|
49
78
|
/**
|
|
50
79
|
* A component to generate the `spinner` function in the `shell-shock:console` builtin module.
|
|
51
80
|
*/
|
|
@@ -64,5 +93,5 @@ type ConsoleBuiltinProps = Pick<BuiltinFileProps, "children" | "imports" | "buil
|
|
|
64
93
|
*/
|
|
65
94
|
declare function ConsoleBuiltin(props: ConsoleBuiltinProps): Children;
|
|
66
95
|
//#endregion
|
|
67
|
-
export { AnsiHelpersDeclarations,
|
|
96
|
+
export { AnsiHelpersDeclarations, AnsiStyleFunctionsDeclaration, BlockquoteFunctionDeclaration, CodeFunctionDeclaration, ConsoleBuiltin, ConsoleBuiltinProps, DividerFunctionDeclaration, InlineCodeFunctionDeclaration, LinkFunctionDeclaration, MessageFunctionDeclaration, MessageFunctionDeclarationProps, SpinnerFunctionDeclaration, SplitTextFunctionDeclaration, StripAnsiFunctionDeclaration, TableFunctionDeclaration, TableFunctionDeclarationProps, ThemeColorObjectDefinition, ThemeColorTypeDefinition, WrapAnsiFunction, WriteFunctionDeclaration, WriteLineFunctionDeclaration };
|
|
68
97
|
//# sourceMappingURL=console-builtin.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"console-builtin.d.cts","names":[],"sources":["../../src/components/console-builtin.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"console-builtin.d.cts","names":[],"sources":["../../src/components/console-builtin.tsx"],"mappings":";;;;;;;iBAkEgB,uBAAA,CAAA,GAAuB,QAAA;AAAA,UA8L7B,cAAA;EAAA,CACP,GAAA,WAAc,iBAAA,GAAoB,cAAA;AAAA;AAAA,UAG3B,yBAAA;EACR,IAAA;EACA,OAAA;EACA,MAAA,EAAQ,cAAA;EACR,OAAA,EAAS,cAAA;EACT,OAAA,EAAS,cAAA;AAAA;AAAA,iBAGK,wBAAA,CAAyB,KAAA,EAAO,yBAAA,GAAyB,QAAA;AAAA,iBA0EzD,0BAAA,CAA2B,KAAA,EAAO,yBAAA,GAAyB,QAAA;;;;iBA8E3D,6BAAA,CAAA,GAA6B,QAAA;;;;iBAgM7B,4BAAA,CAAA,GAA4B,QAAA;;;;iBAiL5B,wBAAA,CAAA,GAAwB,QAAA;;;;iBAgExB,4BAAA,CAAA,GAA4B,QAAA;AAAA,KAqEhC,+BAAA,GAAkC,OAAA,CAC5C,IAAA,CAAK,wBAAA;EAEL,IAAA;EASA,OAAA,EAAS,mBAAA;EACT,KAAA,GAAQ,mBAAA;EACR,aAAA;EACA,WAAA;EACA,MAAA,GAAS,QAAA;EACT,SAAA;AAAA;;;;iBAMc,0BAAA,CACd,KAAA,EAAO,+BAAA,GAA+B,QAAA;;AA5lBxC;;iBA8wBgB,gBAAA,CAAA,GAAgB,QAAA;;;;iBA4EhB,4BAAA,CAAA,GAA4B,QAAA;;;AA5wB5C;iBA+yBgB,0BAAA,CAAA,GAA0B,QAAA;;;;iBAoF1B,uBAAA,CAAA,GAAuB,QAAA;;;;iBAwCvB,6BAAA,CAAA,GAA6B,QAAA;AA1jB7C;;;AAAA,iBAkmBgB,uBAAA,CAAA,GAAuB,QAAA;;AAliBvC;;iBAolBgB,6BAAA,CAAA,GAA6B,QAAA;;;AA/gB7C;iBAkjBgB,0BAAA,CAAA,GAA0B,QAAA;;;;KA0hB9B,6BAAA,GAAgC,IAAA,CAC1C,wBAAA;;;;iBAOc,wBAAA,CAAyB,KAAA,EAAO,6BAAA,GAA6B,QAAA;AAAA,KA0nBjE,mBAAA,GAAsB,IAAA,CAChC,gBAAA;;;;iBAOc,cAAA,CAAe,KAAA,EAAO,mBAAA,GAAmB,QAAA"}
|
|
@@ -2,17 +2,34 @@ import { ThemeMessageVariant } from "@shell-shock/plugin-theme";
|
|
|
2
2
|
import { Children } from "@alloy-js/core";
|
|
3
3
|
import { FunctionDeclarationProps } from "@alloy-js/typescript";
|
|
4
4
|
import { BuiltinFileProps } from "@powerlines/plugin-alloy/typescript/components/builtin-file";
|
|
5
|
+
import { AnsiColorWrappers } from "@shell-shock/plugin-theme/helpers/ansi-utils";
|
|
5
6
|
|
|
6
7
|
//#region src/components/console-builtin.d.ts
|
|
7
8
|
declare function AnsiHelpersDeclarations(): Children;
|
|
9
|
+
interface ThemeColorNode {
|
|
10
|
+
[key: string]: AnsiColorWrappers | ThemeColorNode;
|
|
11
|
+
}
|
|
12
|
+
interface ThemeColorDefinitionProps {
|
|
13
|
+
type: string;
|
|
14
|
+
subType?: string;
|
|
15
|
+
ansi16: ThemeColorNode;
|
|
16
|
+
ansi256: ThemeColorNode;
|
|
17
|
+
ansi16m: ThemeColorNode;
|
|
18
|
+
}
|
|
19
|
+
declare function ThemeColorTypeDefinition(props: ThemeColorDefinitionProps): Children;
|
|
20
|
+
declare function ThemeColorObjectDefinition(props: ThemeColorDefinitionProps): Children;
|
|
8
21
|
/**
|
|
9
22
|
* A component to generate an object containing functions for coloring text in a Shell Shock project.
|
|
10
23
|
*/
|
|
11
|
-
declare function
|
|
24
|
+
declare function AnsiStyleFunctionsDeclaration(): Children;
|
|
12
25
|
/**
|
|
13
26
|
* A component to generate the `splitText` function in the `shell-shock:console` builtin module.
|
|
14
27
|
*/
|
|
15
28
|
declare function SplitTextFunctionDeclaration(): Children;
|
|
29
|
+
/**
|
|
30
|
+
* A component to generate the `write` function in the `shell-shock:console` builtin module.
|
|
31
|
+
*/
|
|
32
|
+
declare function WriteFunctionDeclaration(): Children;
|
|
16
33
|
/**
|
|
17
34
|
* A component to generate the `writeLine` function in the `shell-shock:console` builtin module.
|
|
18
35
|
*/
|
|
@@ -46,6 +63,18 @@ declare function DividerFunctionDeclaration(): Children;
|
|
|
46
63
|
* A component to generate the `link` function in the `shell-shock:console` builtin module.
|
|
47
64
|
*/
|
|
48
65
|
declare function LinkFunctionDeclaration(): Children;
|
|
66
|
+
/**
|
|
67
|
+
* A component to generate the `blockquote` function declaration
|
|
68
|
+
*/
|
|
69
|
+
declare function BlockquoteFunctionDeclaration(): Children;
|
|
70
|
+
/**
|
|
71
|
+
* A component to generate the `code` function declaration
|
|
72
|
+
*/
|
|
73
|
+
declare function CodeFunctionDeclaration(): Children;
|
|
74
|
+
/**
|
|
75
|
+
* A component to generate the `inlineCode` function declaration
|
|
76
|
+
*/
|
|
77
|
+
declare function InlineCodeFunctionDeclaration(): Children;
|
|
49
78
|
/**
|
|
50
79
|
* A component to generate the `spinner` function in the `shell-shock:console` builtin module.
|
|
51
80
|
*/
|
|
@@ -64,5 +93,5 @@ type ConsoleBuiltinProps = Pick<BuiltinFileProps, "children" | "imports" | "buil
|
|
|
64
93
|
*/
|
|
65
94
|
declare function ConsoleBuiltin(props: ConsoleBuiltinProps): Children;
|
|
66
95
|
//#endregion
|
|
67
|
-
export { AnsiHelpersDeclarations,
|
|
96
|
+
export { AnsiHelpersDeclarations, AnsiStyleFunctionsDeclaration, BlockquoteFunctionDeclaration, CodeFunctionDeclaration, ConsoleBuiltin, ConsoleBuiltinProps, DividerFunctionDeclaration, InlineCodeFunctionDeclaration, LinkFunctionDeclaration, MessageFunctionDeclaration, MessageFunctionDeclarationProps, SpinnerFunctionDeclaration, SplitTextFunctionDeclaration, StripAnsiFunctionDeclaration, TableFunctionDeclaration, TableFunctionDeclarationProps, ThemeColorObjectDefinition, ThemeColorTypeDefinition, WrapAnsiFunction, WriteFunctionDeclaration, WriteLineFunctionDeclaration };
|
|
68
97
|
//# sourceMappingURL=console-builtin.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"console-builtin.d.mts","names":[],"sources":["../../src/components/console-builtin.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"console-builtin.d.mts","names":[],"sources":["../../src/components/console-builtin.tsx"],"mappings":";;;;;;;iBAkEgB,uBAAA,CAAA,GAAuB,QAAA;AAAA,UA8L7B,cAAA;EAAA,CACP,GAAA,WAAc,iBAAA,GAAoB,cAAA;AAAA;AAAA,UAG3B,yBAAA;EACR,IAAA;EACA,OAAA;EACA,MAAA,EAAQ,cAAA;EACR,OAAA,EAAS,cAAA;EACT,OAAA,EAAS,cAAA;AAAA;AAAA,iBAGK,wBAAA,CAAyB,KAAA,EAAO,yBAAA,GAAyB,QAAA;AAAA,iBA0EzD,0BAAA,CAA2B,KAAA,EAAO,yBAAA,GAAyB,QAAA;;;;iBA8E3D,6BAAA,CAAA,GAA6B,QAAA;;;;iBAgM7B,4BAAA,CAAA,GAA4B,QAAA;;;;iBAiL5B,wBAAA,CAAA,GAAwB,QAAA;;;;iBAgExB,4BAAA,CAAA,GAA4B,QAAA;AAAA,KAqEhC,+BAAA,GAAkC,OAAA,CAC5C,IAAA,CAAK,wBAAA;EAEL,IAAA;EASA,OAAA,EAAS,mBAAA;EACT,KAAA,GAAQ,mBAAA;EACR,aAAA;EACA,WAAA;EACA,MAAA,GAAS,QAAA;EACT,SAAA;AAAA;;;;iBAMc,0BAAA,CACd,KAAA,EAAO,+BAAA,GAA+B,QAAA;;AA5lBxC;;iBA8wBgB,gBAAA,CAAA,GAAgB,QAAA;;;;iBA4EhB,4BAAA,CAAA,GAA4B,QAAA;;;AA5wB5C;iBA+yBgB,0BAAA,CAAA,GAA0B,QAAA;;;;iBAoF1B,uBAAA,CAAA,GAAuB,QAAA;;;;iBAwCvB,6BAAA,CAAA,GAA6B,QAAA;AA1jB7C;;;AAAA,iBAkmBgB,uBAAA,CAAA,GAAuB,QAAA;;AAliBvC;;iBAolBgB,6BAAA,CAAA,GAA6B,QAAA;;;AA/gB7C;iBAkjBgB,0BAAA,CAAA,GAA0B,QAAA;;;;KA0hB9B,6BAAA,GAAgC,IAAA,CAC1C,wBAAA;;;;iBAOc,wBAAA,CAAyB,KAAA,EAAO,6BAAA,GAA6B,QAAA;AAAA,KA0nBjE,mBAAA,GAAsB,IAAA,CAChC,gBAAA;;;;iBAOc,cAAA,CAAe,KAAA,EAAO,mBAAA,GAAmB,QAAA"}
|