@shell-shock/preset-script 0.5.0 → 0.6.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/README.md +1 -1
- package/dist/components/command-entry.cjs +168 -4
- package/dist/components/command-entry.cjs.map +1 -1
- package/dist/components/command-entry.d.cts +8 -1
- package/dist/components/command-entry.d.cts.map +1 -1
- package/dist/components/command-entry.d.mts +8 -1
- package/dist/components/command-entry.d.mts.map +1 -1
- package/dist/components/command-entry.mjs +169 -6
- package/dist/components/command-entry.mjs.map +1 -1
- package/dist/components/console-builtin.cjs +28 -19
- package/dist/components/console-builtin.cjs.map +1 -1
- package/dist/components/console-builtin.d.cts +4 -2
- package/dist/components/console-builtin.d.cts.map +1 -1
- package/dist/components/console-builtin.d.mts +4 -2
- package/dist/components/console-builtin.d.mts.map +1 -1
- package/dist/components/console-builtin.mjs +28 -19
- package/dist/components/console-builtin.mjs.map +1 -1
- package/dist/components/help.cjs +1 -1
- package/dist/components/help.d.cts +7 -7
- package/dist/components/help.d.cts.map +1 -1
- package/dist/components/help.mjs +1 -1
- package/dist/components/helpers.d.mts +5 -5
- package/dist/components/index.cjs +1 -0
- package/dist/components/index.d.cts +3 -3
- package/dist/components/index.d.mts +3 -3
- package/dist/components/index.mjs +2 -2
- package/dist/components/utils-builtin.cjs +10 -87
- package/dist/components/utils-builtin.cjs.map +1 -1
- package/dist/components/utils-builtin.d.cts +8 -8
- package/dist/components/utils-builtin.d.cts.map +1 -1
- package/dist/components/utils-builtin.d.mts +8 -8
- package/dist/components/utils-builtin.d.mts.map +1 -1
- package/dist/components/utils-builtin.mjs +10 -87
- package/dist/components/utils-builtin.mjs.map +1 -1
- package/dist/types/plugin.d.cts.map +1 -1
- package/package.json +8 -8
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Children } from "@alloy-js/core";
|
|
2
2
|
import { ThemeMessageVariant } from "@shell-shock/plugin-theme/types/theme";
|
|
3
3
|
import { FunctionDeclarationProps } from "@alloy-js/typescript";
|
|
4
|
+
import { BuiltinFileProps } from "@powerlines/plugin-alloy/typescript/components/builtin-file";
|
|
4
5
|
|
|
5
6
|
//#region src/components/console-builtin.d.ts
|
|
6
7
|
|
|
@@ -49,10 +50,11 @@ type TableFunctionDeclarationProps = Omit<FunctionDeclarationProps, "parameters"
|
|
|
49
50
|
* A component to generate the table functions in the `shell-shock:console` builtin module.
|
|
50
51
|
*/
|
|
51
52
|
declare function TableFunctionDeclaration(props: TableFunctionDeclarationProps): Children;
|
|
53
|
+
type ConsoleBuiltinProps = Pick<BuiltinFileProps, "children" | "imports" | "builtinImports">;
|
|
52
54
|
/**
|
|
53
55
|
* A built-in console utilities module for Shell Shock.
|
|
54
56
|
*/
|
|
55
|
-
declare function ConsoleBuiltin(): Children;
|
|
57
|
+
declare function ConsoleBuiltin(props: ConsoleBuiltinProps): Children;
|
|
56
58
|
//#endregion
|
|
57
|
-
export { ColorsDeclaration, ConsoleBuiltin, DividerFunctionDeclaration, LinkFunctionDeclaration, MessageFunctionDeclaration, MessageFunctionDeclarationProps, StripAnsiFunctionDeclaration, TableFunctionDeclaration, TableFunctionDeclarationProps, WrapAnsiFunction, WriteLineFunctionDeclaration };
|
|
59
|
+
export { ColorsDeclaration, ConsoleBuiltin, ConsoleBuiltinProps, DividerFunctionDeclaration, LinkFunctionDeclaration, MessageFunctionDeclaration, MessageFunctionDeclarationProps, StripAnsiFunctionDeclaration, TableFunctionDeclaration, TableFunctionDeclarationProps, WrapAnsiFunction, WriteLineFunctionDeclaration };
|
|
58
60
|
//# sourceMappingURL=console-builtin.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"console-builtin.d.cts","names":[],"sources":["../../src/components/console-builtin.tsx"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"console-builtin.d.cts","names":[],"sources":["../../src/components/console-builtin.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;AAkFA;AAwpCgB,iBAxpCA,iBAAA,CAAA,CAwpC4B,EAxpCX,QAwpCW;AAuJ5C;;;AAA8C,iBAvJ9B,4BAAA,CAAA,CAuJ8B,EAvJF,QAuJE;AAYnC,KAZC,+BAAA,GAAkC,OAYnC,CAXT,IAWS,CAXJ,wBAWI,EAAA,YAAA,CAAA,CAAA,GAAA;EACD,IAAA,EAAA,SAAA,GAAA,MAAA,GAAA,MAAA,GAAA,OAAA,GAAA,SAAA,GAAA,MAAA,GAAA,QAAA,GAAA,OAAA;EAGC,OAAA,EAJA,mBAIA;EAAQ,KAAA,CAAA,EAHT,mBAGS;EAOH,aAAA,EAAA,KAAA,GAAA,MAA0B,GAAA,MAAA,GACjC,OAAA,GAAA,OAAA;EAyKO,WAAA,EAAA,MAAgB;EA4EhB,MAAA,CAAA,EA7PL,QA6PK;EAmCA,SAAA,CAAA,EAAA,OAAA;AAsFhB,CAAA;AA0FA;AAQA;AAmeA;AAQgB,iBA57BA,0BAAA,CA47BsB,KAAmB,EA37BhD,+BA27BgD,CAAA,EA37BjB,QA27BiB;;;;iBAlxBzC,gBAAA,CAAA,GAAgB;;;;iBA4EhB,4BAAA,CAAA,GAA4B;;;;iBAmC5B,0BAAA,CAAA,GAA0B;;;;iBAsF1B,uBAAA,CAAA,GAAuB;;;;KA0F3B,6BAAA,GAAgC,KAC1C;;;;iBAOc,wBAAA,QAAgC,gCAA6B;KAmejE,mBAAA,GAAsB,KAChC;;;;iBAOc,cAAA,QAAsB,sBAAmB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Children } from "@alloy-js/core";
|
|
2
2
|
import { FunctionDeclarationProps } from "@alloy-js/typescript";
|
|
3
|
+
import { BuiltinFileProps } from "@powerlines/plugin-alloy/typescript/components/builtin-file";
|
|
3
4
|
import { ThemeMessageVariant } from "@shell-shock/plugin-theme/types/theme";
|
|
4
5
|
|
|
5
6
|
//#region src/components/console-builtin.d.ts
|
|
@@ -49,10 +50,11 @@ type TableFunctionDeclarationProps = Omit<FunctionDeclarationProps, "parameters"
|
|
|
49
50
|
* A component to generate the table functions in the `shell-shock:console` builtin module.
|
|
50
51
|
*/
|
|
51
52
|
declare function TableFunctionDeclaration(props: TableFunctionDeclarationProps): Children;
|
|
53
|
+
type ConsoleBuiltinProps = Pick<BuiltinFileProps, "children" | "imports" | "builtinImports">;
|
|
52
54
|
/**
|
|
53
55
|
* A built-in console utilities module for Shell Shock.
|
|
54
56
|
*/
|
|
55
|
-
declare function ConsoleBuiltin(): Children;
|
|
57
|
+
declare function ConsoleBuiltin(props: ConsoleBuiltinProps): Children;
|
|
56
58
|
//#endregion
|
|
57
|
-
export { ColorsDeclaration, ConsoleBuiltin, DividerFunctionDeclaration, LinkFunctionDeclaration, MessageFunctionDeclaration, MessageFunctionDeclarationProps, StripAnsiFunctionDeclaration, TableFunctionDeclaration, TableFunctionDeclarationProps, WrapAnsiFunction, WriteLineFunctionDeclaration };
|
|
59
|
+
export { ColorsDeclaration, ConsoleBuiltin, ConsoleBuiltinProps, DividerFunctionDeclaration, LinkFunctionDeclaration, MessageFunctionDeclaration, MessageFunctionDeclarationProps, StripAnsiFunctionDeclaration, TableFunctionDeclaration, TableFunctionDeclarationProps, WrapAnsiFunction, WriteLineFunctionDeclaration };
|
|
58
60
|
//# sourceMappingURL=console-builtin.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"console-builtin.d.mts","names":[],"sources":["../../src/components/console-builtin.tsx"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"console-builtin.d.mts","names":[],"sources":["../../src/components/console-builtin.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;AAkFA;AAwpCgB,iBAxpCA,iBAAA,CAAA,CAwpC4B,EAxpCX,QAwpCW;AAuJ5C;;;AAA8C,iBAvJ9B,4BAAA,CAAA,CAuJ8B,EAvJF,QAuJE;AAYnC,KAZC,+BAAA,GAAkC,OAYnC,CAXT,IAWS,CAXJ,wBAWI,EAAA,YAAA,CAAA,CAAA,GAAA;EACD,IAAA,EAAA,SAAA,GAAA,MAAA,GAAA,MAAA,GAAA,OAAA,GAAA,SAAA,GAAA,MAAA,GAAA,QAAA,GAAA,OAAA;EAGC,OAAA,EAJA,mBAIA;EAAQ,KAAA,CAAA,EAHT,mBAGS;EAOH,aAAA,EAAA,KAAA,GAAA,MAA0B,GAAA,MAAA,GACjC,OAAA,GAAA,OAAA;EAyKO,WAAA,EAAA,MAAgB;EA4EhB,MAAA,CAAA,EA7PL,QA6PK;EAmCA,SAAA,CAAA,EAAA,OAAA;AAsFhB,CAAA;AA0FA;AAQA;AAmeA;AAQgB,iBA57BA,0BAAA,CA47BsB,KAAmB,EA37BhD,+BA27BgD,CAAA,EA37BjB,QA27BiB;;;;iBAlxBzC,gBAAA,CAAA,GAAgB;;;;iBA4EhB,4BAAA,CAAA,GAA4B;;;;iBAmC5B,0BAAA,CAAA,GAA0B;;;;iBAsF1B,uBAAA,CAAA,GAAuB;;;;KA0F3B,6BAAA,GAAgC,KAC1C;;;;iBAOc,wBAAA,QAAgC,gCAA6B;KAmejE,mBAAA,GAAsB,KAChC;;;;iBAOc,cAAA,QAAsB,sBAAmB"}
|
|
@@ -4,6 +4,7 @@ import { createComponent, createIntrinsic, memo, mergeProps } from "@alloy-js/co
|
|
|
4
4
|
import { For, Show, code } from "@alloy-js/core";
|
|
5
5
|
import { ElseClause, FunctionDeclaration, IfStatement, InterfaceDeclaration, InterfaceMember, TypeDeclaration, VarDeclaration } from "@alloy-js/typescript";
|
|
6
6
|
import { TSDoc, TSDocDefaultValue, TSDocExample, TSDocParam, TSDocRemarks, TSDocReturns } from "@powerlines/plugin-alloy/typescript/components/tsdoc";
|
|
7
|
+
import { defu as defu$1 } from "defu";
|
|
7
8
|
import { ReflectionKind } from "@powerlines/deepkit/vendor/type";
|
|
8
9
|
import { BuiltinFile } from "@powerlines/plugin-alloy/typescript/components/builtin-file";
|
|
9
10
|
import { getIndefiniteArticle } from "@stryke/string-format/vowels";
|
|
@@ -2093,28 +2094,33 @@ cells.forEach((row, rowIndex) => {
|
|
|
2093
2094
|
/**
|
|
2094
2095
|
* A built-in console utilities module for Shell Shock.
|
|
2095
2096
|
*/
|
|
2096
|
-
function ConsoleBuiltin() {
|
|
2097
|
+
function ConsoleBuiltin(props) {
|
|
2098
|
+
const { children, imports, builtinImports } = props;
|
|
2097
2099
|
return createComponent(BuiltinFile, {
|
|
2098
2100
|
id: "console",
|
|
2099
2101
|
description: "A collection of helper utilities to assist in generating content meant for display in the console.",
|
|
2100
|
-
imports
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2102
|
+
get imports() {
|
|
2103
|
+
return defu$1(imports, { "@shell-shock/plugin-theme/types/theme": [{
|
|
2104
|
+
name: "ThemeColorsResolvedConfig",
|
|
2105
|
+
type: true
|
|
2106
|
+
}] });
|
|
2107
|
+
},
|
|
2108
|
+
get builtinImports() {
|
|
2109
|
+
return defu$1(builtinImports, {
|
|
2110
|
+
utils: [
|
|
2111
|
+
"hasFlag",
|
|
2112
|
+
"isMinimal",
|
|
2113
|
+
"isColorSupported",
|
|
2114
|
+
"colorSupportLevels",
|
|
2115
|
+
"isHyperlinkSupported"
|
|
2116
|
+
],
|
|
2117
|
+
env: [
|
|
2118
|
+
"env",
|
|
2119
|
+
"isDevelopment",
|
|
2120
|
+
"isDebug",
|
|
2121
|
+
"isCI"
|
|
2122
|
+
]
|
|
2123
|
+
});
|
|
2118
2124
|
},
|
|
2119
2125
|
get children() {
|
|
2120
2126
|
return [
|
|
@@ -2248,6 +2254,9 @@ function ConsoleBuiltin() {
|
|
|
2248
2254
|
createIntrinsic("hbr", {}),
|
|
2249
2255
|
createComponent(TableFunctionDeclaration, {}),
|
|
2250
2256
|
createIntrinsic("hbr", {}),
|
|
2257
|
+
createIntrinsic("hbr", {}),
|
|
2258
|
+
children,
|
|
2259
|
+
createIntrinsic("hbr", {}),
|
|
2251
2260
|
createIntrinsic("hbr", {})
|
|
2252
2261
|
];
|
|
2253
2262
|
}
|