@shell-shock/preset-script 0.4.2 → 0.6.0
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/banner-function-declaration.cjs +1 -1
- package/dist/components/banner-function-declaration.cjs.map +1 -1
- package/dist/components/banner-function-declaration.mjs +1 -1
- package/dist/components/banner-function-declaration.mjs.map +1 -1
- package/dist/components/bin-entry.cjs +1 -2
- package/dist/components/bin-entry.cjs.map +1 -1
- package/dist/components/bin-entry.d.cts.map +1 -1
- package/dist/components/bin-entry.d.mts.map +1 -1
- package/dist/components/bin-entry.mjs +1 -2
- package/dist/components/bin-entry.mjs.map +1 -1
- package/dist/components/command-entry.cjs +205 -7
- package/dist/components/command-entry.cjs.map +1 -1
- package/dist/components/command-entry.d.cts.map +1 -1
- package/dist/components/command-entry.d.mts.map +1 -1
- package/dist/components/command-entry.mjs +206 -8
- package/dist/components/command-entry.mjs.map +1 -1
- package/dist/components/command-router.cjs +5 -5
- package/dist/components/command-router.cjs.map +1 -1
- package/dist/components/command-router.d.cts +1 -1
- package/dist/components/command-router.d.cts.map +1 -1
- package/dist/components/command-router.d.mts +1 -1
- package/dist/components/command-router.d.mts.map +1 -1
- package/dist/components/command-router.mjs +5 -5
- package/dist/components/command-router.mjs.map +1 -1
- package/dist/components/console-builtin.cjs +15 -10
- package/dist/components/console-builtin.cjs.map +1 -1
- package/dist/components/console-builtin.d.cts.map +1 -1
- package/dist/components/console-builtin.d.mts.map +1 -1
- package/dist/components/console-builtin.mjs +15 -10
- package/dist/components/console-builtin.mjs.map +1 -1
- package/dist/components/help.cjs +25 -18
- package/dist/components/help.cjs.map +1 -1
- package/dist/components/help.d.cts +9 -9
- package/dist/components/help.d.cts.map +1 -1
- package/dist/components/help.d.mts +9 -9
- package/dist/components/help.d.mts.map +1 -1
- package/dist/components/help.mjs +26 -19
- package/dist/components/help.mjs.map +1 -1
- package/dist/components/helpers.cjs +54 -0
- package/dist/components/helpers.cjs.map +1 -0
- package/dist/components/helpers.d.cts +29 -0
- package/dist/components/helpers.d.cts.map +1 -0
- package/dist/components/helpers.d.mts +29 -0
- package/dist/components/helpers.d.mts.map +1 -0
- package/dist/components/helpers.mjs +50 -0
- package/dist/components/helpers.mjs.map +1 -0
- package/dist/components/index.cjs +1 -0
- package/dist/components/index.d.cts +2 -2
- package/dist/components/index.d.mts +2 -2
- package/dist/components/index.mjs +2 -2
- package/dist/components/utils-builtin.cjs +160 -6
- package/dist/components/utils-builtin.cjs.map +1 -1
- package/dist/components/utils-builtin.d.cts +9 -8
- package/dist/components/utils-builtin.d.cts.map +1 -1
- package/dist/components/utils-builtin.d.mts +9 -8
- package/dist/components/utils-builtin.d.mts.map +1 -1
- package/dist/components/utils-builtin.mjs +161 -8
- package/dist/components/utils-builtin.mjs.map +1 -1
- package/dist/components/virtual-command-entry.cjs +10 -7
- package/dist/components/virtual-command-entry.cjs.map +1 -1
- package/dist/components/virtual-command-entry.mjs +10 -7
- package/dist/components/virtual-command-entry.mjs.map +1 -1
- package/dist/helpers/ansi-utils.cjs +4 -4
- package/dist/helpers/ansi-utils.cjs.map +1 -1
- package/dist/helpers/ansi-utils.mjs +4 -4
- package/dist/helpers/ansi-utils.mjs.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +23 -9
|
@@ -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":";;;;;;;;AAgFA;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;AAseA;iBAv7BgB,0BAAA,QACP,kCAA+B;;;;iBAyKxB,gBAAA,CAAA,GAAgB;;;;iBA4EhB,4BAAA,CAAA,GAA4B;;;;iBAmC5B,0BAAA,CAAA,GAA0B;;;;iBAsF1B,uBAAA,CAAA,GAAuB;;;;KA0F3B,6BAAA,GAAgC,KAC1C;;;;iBAOc,wBAAA,QAAgC,gCAA6B;;;;iBAse7D,cAAA,CAAA,GAAc"}
|
|
@@ -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":";;;;;;;;AAgFA;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;AAseA;iBAv7BgB,0BAAA,QACP,kCAA+B;;;;iBAyKxB,gBAAA,CAAA,GAAgB;;;;iBA4EhB,4BAAA,CAAA,GAA4B;;;;iBAmC5B,0BAAA,CAAA,GAA0B;;;;iBAsF1B,uBAAA,CAAA,GAAuB;;;;KA0F3B,6BAAA,GAAgC,KAC1C;;;;iBAOc,wBAAA,QAAgC,gCAA6B;;;;iBAse7D,cAAA,CAAA,GAAc"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { useColors, useTheme } from "../contexts/theme.mjs";
|
|
2
|
+
import { IsNotDebug, IsNotVerbose } from "./helpers.mjs";
|
|
2
3
|
import { createComponent, createIntrinsic, memo, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
3
4
|
import { For, Show, code } from "@alloy-js/core";
|
|
4
5
|
import { ElseClause, FunctionDeclaration, IfStatement, InterfaceDeclaration, InterfaceMember, TypeDeclaration, VarDeclaration } from "@alloy-js/typescript";
|
|
@@ -737,15 +738,15 @@ function ColorsDeclaration() {
|
|
|
737
738
|
return colors.ansi16m.theme.text.usage.command;
|
|
738
739
|
}
|
|
739
740
|
})},
|
|
740
|
-
|
|
741
|
+
dynamic: ${createComponent(ColorFunction, {
|
|
741
742
|
get ansi16() {
|
|
742
|
-
return colors.ansi16.theme.text.usage.
|
|
743
|
+
return colors.ansi16.theme.text.usage.dynamic;
|
|
743
744
|
},
|
|
744
745
|
get ansi256() {
|
|
745
|
-
return colors.ansi256.theme.text.usage.
|
|
746
|
+
return colors.ansi256.theme.text.usage.dynamic;
|
|
746
747
|
},
|
|
747
748
|
get ansi16m() {
|
|
748
|
-
return colors.ansi16m.theme.text.usage.
|
|
749
|
+
return colors.ansi16m.theme.text.usage.dynamic;
|
|
749
750
|
}
|
|
750
751
|
})},
|
|
751
752
|
options: ${createComponent(ColorFunction, {
|
|
@@ -759,15 +760,15 @@ function ColorsDeclaration() {
|
|
|
759
760
|
return colors.ansi16m.theme.text.usage.options;
|
|
760
761
|
}
|
|
761
762
|
})},
|
|
762
|
-
|
|
763
|
+
arguments: ${createComponent(ColorFunction, {
|
|
763
764
|
get ansi16() {
|
|
764
|
-
return colors.ansi16.theme.text.usage.
|
|
765
|
+
return colors.ansi16.theme.text.usage.arguments;
|
|
765
766
|
},
|
|
766
767
|
get ansi256() {
|
|
767
|
-
return colors.ansi256.theme.text.usage.
|
|
768
|
+
return colors.ansi256.theme.text.usage.arguments;
|
|
768
769
|
},
|
|
769
770
|
get ansi16m() {
|
|
770
|
-
return colors.ansi16m.theme.text.usage.
|
|
771
|
+
return colors.ansi16m.theme.text.usage.arguments;
|
|
771
772
|
}
|
|
772
773
|
})},
|
|
773
774
|
description: ${createComponent(ColorFunction, {
|
|
@@ -2167,7 +2168,9 @@ function ConsoleBuiltin() {
|
|
|
2167
2168
|
timestamp: true,
|
|
2168
2169
|
get prefix() {
|
|
2169
2170
|
return createComponent(IfStatement, {
|
|
2170
|
-
condition
|
|
2171
|
+
get condition() {
|
|
2172
|
+
return createComponent(IsNotDebug, {});
|
|
2173
|
+
},
|
|
2171
2174
|
children: code`return; `
|
|
2172
2175
|
});
|
|
2173
2176
|
}
|
|
@@ -2183,7 +2186,9 @@ function ConsoleBuiltin() {
|
|
|
2183
2186
|
timestamp: true,
|
|
2184
2187
|
get prefix() {
|
|
2185
2188
|
return createComponent(IfStatement, {
|
|
2186
|
-
condition
|
|
2189
|
+
get condition() {
|
|
2190
|
+
return createComponent(IsNotVerbose, {});
|
|
2191
|
+
},
|
|
2187
2192
|
children: code`return; `
|
|
2188
2193
|
});
|
|
2189
2194
|
}
|