@shell-shock/core 0.12.2 → 0.13.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/_virtual/{rolldown_runtime.cjs → _rolldown/runtime.cjs} +1 -1
- package/dist/_virtual/_rolldown/runtime.mjs +3 -0
- package/dist/api.cjs +3 -2
- package/dist/api.cjs.map +1 -1
- package/dist/api.d.cts +0 -1
- package/dist/api.d.cts.map +1 -1
- package/dist/api.d.mts +0 -1
- package/dist/api.d.mts.map +1 -1
- package/dist/api.mjs +1 -1
- package/dist/api.mjs.map +1 -1
- package/dist/components/command-validation-logic.cjs +54 -53
- package/dist/components/command-validation-logic.cjs.map +1 -1
- package/dist/components/command-validation-logic.d.cts +2 -3
- package/dist/components/command-validation-logic.d.cts.map +1 -1
- package/dist/components/command-validation-logic.d.mts +2 -3
- package/dist/components/command-validation-logic.d.mts.map +1 -1
- package/dist/components/command-validation-logic.mjs +1 -1
- package/dist/components/command-validation-logic.mjs.map +1 -1
- package/dist/components/docs.cjs +45 -44
- package/dist/components/docs.cjs.map +1 -1
- package/dist/components/docs.d.cts +5 -5
- package/dist/components/docs.d.cts.map +1 -1
- package/dist/components/docs.d.mts +5 -5
- package/dist/components/docs.d.mts.map +1 -1
- package/dist/components/docs.mjs.map +1 -1
- package/dist/components/helpers.cjs +16 -15
- package/dist/components/helpers.cjs.map +1 -1
- package/dist/components/helpers.d.cts +7 -8
- package/dist/components/helpers.d.cts.map +1 -1
- package/dist/components/helpers.d.mts +7 -8
- package/dist/components/helpers.d.mts.map +1 -1
- package/dist/components/helpers.mjs.map +1 -1
- package/dist/components/index.cjs +1 -0
- package/dist/components/options-parser-logic.cjs +187 -186
- package/dist/components/options-parser-logic.cjs.map +1 -1
- package/dist/components/options-parser-logic.d.cts +9 -9
- package/dist/components/options-parser-logic.d.cts.map +1 -1
- package/dist/components/options-parser-logic.d.mts +9 -9
- package/dist/components/options-parser-logic.d.mts.map +1 -1
- package/dist/components/options-parser-logic.mjs.map +1 -1
- package/dist/components/usage.cjs +21 -20
- package/dist/components/usage.cjs.map +1 -1
- package/dist/components/usage.d.cts +2 -2
- package/dist/components/usage.d.cts.map +1 -1
- package/dist/components/usage.d.mts.map +1 -1
- package/dist/components/usage.mjs.map +1 -1
- package/dist/components/utils-builtin.cjs +128 -127
- package/dist/components/utils-builtin.cjs.map +1 -1
- package/dist/components/utils-builtin.d.cts.map +1 -1
- package/dist/components/utils-builtin.d.mts.map +1 -1
- package/dist/components/utils-builtin.mjs +4 -4
- package/dist/components/utils-builtin.mjs.map +1 -1
- package/dist/config.cjs +1 -0
- package/dist/config.cjs.map +1 -1
- package/dist/config.d.cts +0 -1
- package/dist/config.d.cts.map +1 -1
- package/dist/config.d.mts +0 -1
- package/dist/config.d.mts.map +1 -1
- package/dist/config.mjs.map +1 -1
- package/dist/contexts/command.cjs +5 -4
- package/dist/contexts/command.cjs.map +1 -1
- package/dist/contexts/command.d.cts +0 -1
- package/dist/contexts/command.d.cts.map +1 -1
- package/dist/contexts/command.d.mts +0 -1
- package/dist/contexts/command.d.mts.map +1 -1
- package/dist/contexts/index.cjs +1 -0
- package/dist/contexts/options.cjs +12 -11
- package/dist/contexts/options.cjs.map +1 -1
- package/dist/contexts/options.d.cts +0 -1
- package/dist/contexts/options.d.cts.map +1 -1
- package/dist/contexts/options.d.mts +0 -1
- package/dist/contexts/options.d.mts.map +1 -1
- package/dist/contexts/options.mjs +3 -3
- package/dist/contexts/options.mjs.map +1 -1
- package/dist/helpers/automd.cjs +16 -16
- package/dist/helpers/automd.cjs.map +1 -1
- package/dist/helpers/automd.mjs.map +1 -1
- package/dist/helpers/docs-helpers.cjs +3 -3
- package/dist/helpers/docs-helpers.cjs.map +1 -1
- package/dist/helpers/docs-helpers.mjs.map +1 -1
- package/dist/helpers/paths.cjs +26 -26
- package/dist/helpers/paths.cjs.map +1 -1
- package/dist/helpers/paths.mjs +1 -1
- package/dist/helpers/paths.mjs.map +1 -1
- package/dist/helpers/persistence.cjs +3 -3
- package/dist/helpers/persistence.cjs.map +1 -1
- package/dist/helpers/persistence.mjs.map +1 -1
- package/dist/helpers/update-package-json.cjs +16 -16
- package/dist/helpers/update-package-json.cjs.map +1 -1
- package/dist/helpers/update-package-json.mjs.map +1 -1
- package/dist/helpers/utilities.cjs +9 -9
- package/dist/helpers/utilities.cjs.map +1 -1
- package/dist/helpers/utilities.mjs.map +1 -1
- package/dist/helpers/validations.cjs.map +1 -1
- package/dist/helpers/validations.mjs.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +0 -1
- package/dist/index.d.mts +0 -1
- package/dist/plugin-utils/context-helpers.cjs +10 -10
- package/dist/plugin-utils/context-helpers.cjs.map +1 -1
- package/dist/plugin-utils/context-helpers.d.cts +0 -3
- package/dist/plugin-utils/context-helpers.d.cts.map +1 -1
- package/dist/plugin-utils/context-helpers.d.mts +0 -3
- package/dist/plugin-utils/context-helpers.d.mts.map +1 -1
- package/dist/plugin-utils/context-helpers.mjs +1 -1
- package/dist/plugin-utils/context-helpers.mjs.map +1 -1
- package/dist/plugin-utils/deepkit.cjs +18 -18
- package/dist/plugin-utils/deepkit.cjs.map +1 -1
- package/dist/plugin-utils/deepkit.d.cts +0 -1
- package/dist/plugin-utils/deepkit.d.cts.map +1 -1
- package/dist/plugin-utils/deepkit.d.mts +0 -1
- package/dist/plugin-utils/deepkit.d.mts.map +1 -1
- package/dist/plugin-utils/deepkit.mjs.map +1 -1
- package/dist/plugin-utils/description-helpers.cjs.map +1 -1
- package/dist/plugin-utils/description-helpers.d.cts.map +1 -1
- package/dist/plugin-utils/description-helpers.d.mts.map +1 -1
- package/dist/plugin-utils/description-helpers.mjs.map +1 -1
- package/dist/plugin-utils/get-command-tree.cjs.map +1 -1
- package/dist/plugin-utils/get-command-tree.d.cts +0 -1
- package/dist/plugin-utils/get-command-tree.d.cts.map +1 -1
- package/dist/plugin-utils/get-command-tree.d.mts +0 -1
- package/dist/plugin-utils/get-command-tree.d.mts.map +1 -1
- package/dist/plugin-utils/get-command-tree.mjs.map +1 -1
- package/dist/plugin-utils/index.cjs +1 -0
- package/dist/plugin-utils/reflect.cjs.map +1 -1
- package/dist/plugin-utils/reflect.d.cts +0 -1
- package/dist/plugin-utils/reflect.d.cts.map +1 -1
- package/dist/plugin-utils/reflect.d.mts +0 -1
- package/dist/plugin-utils/reflect.d.mts.map +1 -1
- package/dist/plugin-utils/reflect.mjs.map +1 -1
- package/dist/plugin-utils/traverse-command-tree.cjs.map +1 -1
- package/dist/plugin-utils/traverse-command-tree.d.cts +0 -1
- package/dist/plugin-utils/traverse-command-tree.d.cts.map +1 -1
- package/dist/plugin-utils/traverse-command-tree.d.mts +0 -1
- package/dist/plugin-utils/traverse-command-tree.d.mts.map +1 -1
- package/dist/plugin-utils/traverse-command-tree.mjs.map +1 -1
- package/dist/plugin-utils/type-checks.cjs +7 -7
- package/dist/plugin-utils/type-checks.cjs.map +1 -1
- package/dist/plugin-utils/type-checks.d.cts +0 -1
- package/dist/plugin-utils/type-checks.d.cts.map +1 -1
- package/dist/plugin-utils/type-checks.d.mts +0 -1
- package/dist/plugin-utils/type-checks.d.mts.map +1 -1
- package/dist/plugin-utils/type-checks.mjs +1 -1
- package/dist/plugin-utils/type-checks.mjs.map +1 -1
- package/dist/plugin.cjs +68 -75
- package/dist/plugin.cjs.map +1 -1
- package/dist/plugin.d.cts +0 -1
- package/dist/plugin.d.cts.map +1 -1
- package/dist/plugin.d.mts +0 -1
- package/dist/plugin.d.mts.map +1 -1
- package/dist/plugin.mjs +23 -30
- package/dist/plugin.mjs.map +1 -1
- package/dist/resolver/deepkit.cjs +29 -29
- package/dist/resolver/deepkit.cjs.map +1 -1
- package/dist/resolver/deepkit.mjs.map +1 -1
- package/dist/resolver/helpers.cjs +17 -17
- package/dist/resolver/helpers.cjs.map +1 -1
- package/dist/resolver/helpers.mjs.map +1 -1
- package/dist/resolver/module.cjs +29 -29
- package/dist/resolver/module.cjs.map +1 -1
- package/dist/resolver/module.mjs +1 -1
- package/dist/resolver/module.mjs.map +1 -1
- package/dist/resolver/resolve.cjs +17 -17
- package/dist/resolver/resolve.cjs.map +1 -1
- package/dist/resolver/resolve.mjs +3 -3
- package/dist/resolver/resolve.mjs.map +1 -1
- package/dist/types/command.cjs +1 -0
- package/dist/types/command.cjs.map +1 -1
- package/dist/types/command.d.cts.map +1 -1
- package/dist/types/command.d.mts.map +1 -1
- package/dist/types/command.mjs.map +1 -1
- package/dist/types/config.cjs +1 -0
- package/dist/types/config.cjs.map +1 -1
- package/dist/types/config.d.cts.map +1 -1
- package/dist/types/config.d.mts.map +1 -1
- package/dist/types/config.mjs.map +1 -1
- package/dist/types/context.cjs +1 -0
- package/dist/types/context.cjs.map +1 -1
- package/dist/types/context.d.cts.map +1 -1
- package/dist/types/context.d.mts.map +1 -1
- package/dist/types/env.cjs +1 -0
- package/dist/types/env.d.cts.map +1 -1
- package/dist/types/env.d.mts.map +1 -1
- package/dist/types/index.cjs +1 -0
- package/dist/types/options.cjs +1 -0
- package/dist/types/options.d.cts.map +1 -1
- package/dist/types/options.d.mts.map +1 -1
- package/dist/types/runtime.cjs +1 -0
- package/dist/types/runtime.d.cts.map +1 -1
- package/dist/types/runtime.d.mts.map +1 -1
- package/package.json +23 -23
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
|
|
3
|
+
let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
3
4
|
let defu = require("defu");
|
|
4
|
-
defu =
|
|
5
|
-
let
|
|
6
|
-
let
|
|
7
|
-
let
|
|
8
|
-
let
|
|
9
|
-
let
|
|
10
|
-
let
|
|
5
|
+
defu = require_runtime.__toESM(defu);
|
|
6
|
+
let _alloy_js_core = require("@alloy-js/core");
|
|
7
|
+
let _powerlines_plugin_alloy_core_components_spacing = require("@powerlines/plugin-alloy/core/components/spacing");
|
|
8
|
+
let _powerlines_plugin_alloy_core_contexts_context = require("@powerlines/plugin-alloy/core/contexts/context");
|
|
9
|
+
let _alloy_js_typescript = require("@alloy-js/typescript");
|
|
10
|
+
let _powerlines_plugin_alloy_typescript_components_builtin_file = require("@powerlines/plugin-alloy/typescript/components/builtin-file");
|
|
11
|
+
let _powerlines_plugin_alloy_typescript_components_tsdoc = require("@powerlines/plugin-alloy/typescript/components/tsdoc");
|
|
11
12
|
|
|
12
13
|
//#region src/components/utils-builtin.tsx
|
|
13
14
|
/**
|
|
14
15
|
* Generates the `findSuggestions` function for suggesting corrections for potentially misspelled options or commands.
|
|
15
16
|
*/
|
|
16
17
|
function FindSuggestionsDeclaration() {
|
|
17
|
-
const context = (0,
|
|
18
|
+
const context = (0, _powerlines_plugin_alloy_core_contexts_context.usePowerlines)();
|
|
18
19
|
return [
|
|
19
|
-
(0,
|
|
20
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.VarDeclaration, {
|
|
20
21
|
"const": true,
|
|
21
22
|
name: "deburred",
|
|
22
|
-
initializer:
|
|
23
|
+
initializer: _alloy_js_core.code` {
|
|
23
24
|
"\\xc0": "A", "\\xc1": "A", "\\xc2": "A", "\\xc3": "A", "\\xc4": "A", "\\xc5": "A",
|
|
24
25
|
"\\xe0": "a", "\\xe1": "a", "\\xe2": "a", "\\xe3": "a", "\\xe4": "a", "\\xe5": "a",
|
|
25
26
|
"\\xc7": "C", "\\xe7": "c",
|
|
@@ -74,28 +75,28 @@ function FindSuggestionsDeclaration() {
|
|
|
74
75
|
"\\u0149": "n", "\\u017f": "s"
|
|
75
76
|
} as Record<string, string>; `
|
|
76
77
|
}),
|
|
77
|
-
(0,
|
|
78
|
-
(0,
|
|
78
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
79
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
|
|
79
80
|
heading: "A utility function that takes an input string and a list of possible matches, and returns a list of suggested matches based on the Levenshtein distance between the input and the possible matches.",
|
|
80
81
|
get children() {
|
|
81
82
|
return [
|
|
82
|
-
(0,
|
|
83
|
-
(0,
|
|
84
|
-
(0,
|
|
85
|
-
(0,
|
|
86
|
-
(0,
|
|
83
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocRemarks, { children: "This function is intended to be used to suggest corrections for potentially misspelled options or commands." }),
|
|
84
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
85
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocInternal, {}),
|
|
86
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
87
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocParam, {
|
|
87
88
|
name: "input",
|
|
88
89
|
children: "The input string to check for potential matches."
|
|
89
90
|
}),
|
|
90
|
-
(0,
|
|
91
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocParam, {
|
|
91
92
|
name: "options",
|
|
92
93
|
children: "A list of possible matches to compare against the input."
|
|
93
94
|
}),
|
|
94
|
-
(0,
|
|
95
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocReturns, { children: "A list of suggested matches based on the Levenshtein distance." })
|
|
95
96
|
];
|
|
96
97
|
}
|
|
97
98
|
}),
|
|
98
|
-
(0,
|
|
99
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.FunctionDeclaration, {
|
|
99
100
|
"export": true,
|
|
100
101
|
name: "findSuggestions",
|
|
101
102
|
parameters: [{
|
|
@@ -108,15 +109,15 @@ function FindSuggestionsDeclaration() {
|
|
|
108
109
|
returnType: "string[]",
|
|
109
110
|
get children() {
|
|
110
111
|
return [
|
|
111
|
-
(0,
|
|
112
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.VarDeclaration, {
|
|
112
113
|
"const": true,
|
|
113
114
|
name: "normalizedInput",
|
|
114
115
|
get initializer() {
|
|
115
|
-
return
|
|
116
|
+
return _alloy_js_core.code`String(input ?? "")${context.config.isCaseSensitive ? "" : ".toLowerCase()"}.trim().replaceAll(/[\\s\\-_\\.]+/gu, " ").replace(/[\\\\xc0-\\\\xd6\\\\xd8-\\\\xf6\\\\xf8-\\\\xff\\\\u0100-\\\\u017f]/g, key => deburred[key]).replace(/[\\\\u0300-\\\\u036f\\\\ufe20-\\\\ufe2f\\\\u20d0-\\\\u20ff]/g, ""); `;
|
|
116
117
|
}
|
|
117
118
|
}),
|
|
118
|
-
(0,
|
|
119
|
-
(0,
|
|
119
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
120
|
+
(0, _alloy_js_core_jsx_runtime.memo)(() => _alloy_js_core.code`
|
|
120
121
|
if (!normalizedInput || options.length === 0) {
|
|
121
122
|
return [];
|
|
122
123
|
}
|
|
@@ -213,28 +214,28 @@ function FindSuggestionsDeclaration() {
|
|
|
213
214
|
*/
|
|
214
215
|
function EnvSupportUtilities() {
|
|
215
216
|
return [
|
|
216
|
-
(0,
|
|
217
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.VarDeclaration, {
|
|
217
218
|
"export": true,
|
|
218
219
|
"const": true,
|
|
219
220
|
name: "isTTY",
|
|
220
221
|
doc: "Detect if stdout.TTY is available",
|
|
221
|
-
initializer:
|
|
222
|
+
initializer: _alloy_js_core.code`Boolean(process.stdout && process.stdout.isTTY);`
|
|
222
223
|
}),
|
|
223
|
-
(0,
|
|
224
|
-
(0,
|
|
224
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
225
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.VarDeclaration, {
|
|
225
226
|
"export": true,
|
|
226
227
|
"const": true,
|
|
227
228
|
name: "isMinimal",
|
|
228
229
|
doc: "Detect if the current environment is minimal (CI, non-TTY, etc.)",
|
|
229
|
-
initializer:
|
|
230
|
+
initializer: _alloy_js_core.code` env.MINIMAL || isCI || isTest || !isTTY; `
|
|
230
231
|
}),
|
|
231
|
-
(0,
|
|
232
|
-
(0,
|
|
232
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
233
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.VarDeclaration, {
|
|
233
234
|
"export": true,
|
|
234
235
|
"const": true,
|
|
235
236
|
name: "isInteractive",
|
|
236
237
|
doc: "Detect if the current environment is interactive",
|
|
237
|
-
initializer:
|
|
238
|
+
initializer: _alloy_js_core.code` !isMinimal && process.stdin?.isTTY && env.TERM !== "dumb" && !hasFlag(["no-interactive", "non-interactive", "no-interact"]); `
|
|
238
239
|
})
|
|
239
240
|
];
|
|
240
241
|
}
|
|
@@ -243,37 +244,37 @@ function EnvSupportUtilities() {
|
|
|
243
244
|
*/
|
|
244
245
|
function ColorSupportUtilities() {
|
|
245
246
|
return [
|
|
246
|
-
(0,
|
|
247
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceDeclaration, {
|
|
247
248
|
"export": true,
|
|
248
249
|
name: "GetColorSupportLevelOptions",
|
|
249
250
|
doc: "Options for the getColorSupportLevel function",
|
|
250
251
|
get children() {
|
|
251
|
-
return (0,
|
|
252
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceMember, {
|
|
252
253
|
name: "ignoreFlags",
|
|
253
254
|
type: "boolean",
|
|
254
255
|
doc: "Indicates if the function should skip checking command-line flags for color support"
|
|
255
256
|
});
|
|
256
257
|
}
|
|
257
258
|
}),
|
|
258
|
-
(0,
|
|
259
|
-
(0,
|
|
259
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
260
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
|
|
260
261
|
heading: "Checks if a specific flag is present in the command-line arguments.",
|
|
261
262
|
get children() {
|
|
262
263
|
return [
|
|
263
|
-
(0,
|
|
264
|
-
(0,
|
|
264
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocLink, { children: "https://github.com/sindresorhus/has-flag/blob/main/index.js" }),
|
|
265
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocParam, {
|
|
265
266
|
name: "flag",
|
|
266
267
|
children: "The flag to check for, e.g., \"color\", \"no-color\"."
|
|
267
268
|
}),
|
|
268
|
-
(0,
|
|
269
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocParam, {
|
|
269
270
|
name: "argv",
|
|
270
271
|
children: "The command-line arguments to check against. Defaults to global Deno args or process args."
|
|
271
272
|
}),
|
|
272
|
-
(0,
|
|
273
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocReturns, { children: "True if the flag is present, false otherwise." })
|
|
273
274
|
];
|
|
274
275
|
}
|
|
275
276
|
}),
|
|
276
|
-
(0,
|
|
277
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.FunctionDeclaration, {
|
|
277
278
|
"export": true,
|
|
278
279
|
name: "getColorSupportLevel",
|
|
279
280
|
parameters: [{
|
|
@@ -284,7 +285,7 @@ function ColorSupportUtilities() {
|
|
|
284
285
|
type: "GetColorSupportLevelOptions",
|
|
285
286
|
default: "{ ignoreFlags: false }"
|
|
286
287
|
}],
|
|
287
|
-
children:
|
|
288
|
+
children: _alloy_js_core.code`const { ignoreFlags } = options;
|
|
288
289
|
|
|
289
290
|
let forceColor: number | undefined;
|
|
290
291
|
if (env.FORCE_COLOR !== undefined) {
|
|
@@ -395,32 +396,32 @@ function ColorSupportUtilities() {
|
|
|
395
396
|
|
|
396
397
|
`
|
|
397
398
|
}),
|
|
398
|
-
(0,
|
|
399
|
-
(0,
|
|
399
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
400
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.VarDeclaration, {
|
|
400
401
|
"export": true,
|
|
401
402
|
"const": true,
|
|
402
403
|
name: "colorSupportLevels",
|
|
403
404
|
doc: "Detect the terminal color support level in the current environment",
|
|
404
|
-
initializer:
|
|
405
|
+
initializer: _alloy_js_core.code` {
|
|
405
406
|
stdout: getColorSupportLevel(process.stdout),
|
|
406
407
|
stderr: getColorSupportLevel(process.stderr),
|
|
407
408
|
}; `
|
|
408
409
|
}),
|
|
409
|
-
(0,
|
|
410
|
-
(0,
|
|
410
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
411
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.VarDeclaration, {
|
|
411
412
|
"export": true,
|
|
412
413
|
"const": true,
|
|
413
414
|
name: "isColorSupported",
|
|
414
415
|
doc: "Detect if terminal color is supported in the current environment",
|
|
415
|
-
initializer:
|
|
416
|
+
initializer: _alloy_js_core.code` Boolean(colorSupportLevels.stdout); `
|
|
416
417
|
}),
|
|
417
|
-
(0,
|
|
418
|
-
(0,
|
|
418
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
419
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.VarDeclaration, {
|
|
419
420
|
"export": true,
|
|
420
421
|
"const": true,
|
|
421
422
|
name: "isUnicodeSupported",
|
|
422
423
|
doc: "Detect if Unicode characters are supported in the current environment",
|
|
423
|
-
initializer:
|
|
424
|
+
initializer: _alloy_js_core.code` !isWindows
|
|
424
425
|
? env.TERM !== "linux"
|
|
425
426
|
: Boolean(env.WT_SESSION) ||
|
|
426
427
|
Boolean(env.TERMINUS_SUBLIME) ||
|
|
@@ -440,14 +441,14 @@ function ColorSupportUtilities() {
|
|
|
440
441
|
*/
|
|
441
442
|
function HyperlinkSupportUtilities() {
|
|
442
443
|
return [
|
|
443
|
-
(0,
|
|
444
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.FunctionDeclaration, {
|
|
444
445
|
name: "parseVersion",
|
|
445
446
|
parameters: [{
|
|
446
447
|
name: "version",
|
|
447
448
|
type: "string",
|
|
448
449
|
default: "\"\""
|
|
449
450
|
}],
|
|
450
|
-
children:
|
|
451
|
+
children: _alloy_js_core.code`if (/^\d{3,4}$/.test(version)) {
|
|
451
452
|
const match = /(\d{1,2})(\d{2})/.exec(version) ?? [];
|
|
452
453
|
|
|
453
454
|
return {
|
|
@@ -467,18 +468,18 @@ function HyperlinkSupportUtilities() {
|
|
|
467
468
|
patch: versionParts[2]
|
|
468
469
|
}; `
|
|
469
470
|
}),
|
|
470
|
-
(0,
|
|
471
|
-
(0,
|
|
471
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
472
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
|
|
472
473
|
heading: "Check if the current environment/terminal supports hyperlinks in the terminal.",
|
|
473
474
|
get children() {
|
|
474
|
-
return (0,
|
|
475
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocReturns, { children: "True if the current environment/terminal supports hyperlinks." });
|
|
475
476
|
}
|
|
476
477
|
}),
|
|
477
|
-
(0,
|
|
478
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.FunctionDeclaration, {
|
|
478
479
|
"export": true,
|
|
479
480
|
name: "isHyperlinkSupported",
|
|
480
481
|
returnType: "boolean",
|
|
481
|
-
children:
|
|
482
|
+
children: _alloy_js_core.code`if (Boolean(env.FORCE_HYPERLINK)) {
|
|
482
483
|
return true;
|
|
483
484
|
}
|
|
484
485
|
|
|
@@ -548,43 +549,43 @@ function HyperlinkSupportUtilities() {
|
|
|
548
549
|
*/
|
|
549
550
|
function ArgsUtilities() {
|
|
550
551
|
return [
|
|
551
|
-
(0,
|
|
552
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
|
|
552
553
|
heading: "Retrieves the command-line arguments from Deno or Node.js environments.",
|
|
553
554
|
get children() {
|
|
554
555
|
return [
|
|
555
|
-
(0,
|
|
556
|
-
(0,
|
|
557
|
-
(0,
|
|
558
|
-
(0,
|
|
559
|
-
(0,
|
|
556
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocRemarks, { children: "This function is only intended for internal use. Please use `useArgs()` instead." }),
|
|
557
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
558
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocInternal, {}),
|
|
559
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
560
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocReturns, { children: "An array of command-line arguments from Deno or Node.js environments." })
|
|
560
561
|
];
|
|
561
562
|
}
|
|
562
563
|
}),
|
|
563
|
-
(0,
|
|
564
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.FunctionDeclaration, {
|
|
564
565
|
"export": true,
|
|
565
566
|
name: "getArgs",
|
|
566
567
|
returnType: "string[]",
|
|
567
|
-
children:
|
|
568
|
+
children: _alloy_js_core.code`return ((globalThis as { Deno?: { args: string[] } })?.Deno?.args ?? process.argv ?? []) as string[];`
|
|
568
569
|
}),
|
|
569
|
-
(0,
|
|
570
|
-
(0,
|
|
570
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
571
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
|
|
571
572
|
heading: "Checks if a specific flag is present in the command-line arguments.",
|
|
572
573
|
get children() {
|
|
573
574
|
return [
|
|
574
|
-
(0,
|
|
575
|
-
(0,
|
|
575
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocLink, { children: "https://github.com/sindresorhus/has-flag/blob/main/index.js" }),
|
|
576
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocParam, {
|
|
576
577
|
name: "flag",
|
|
577
578
|
children: "The flag (or an array of flags/aliases) to check for, e.g., \"color\", \"no-color\"."
|
|
578
579
|
}),
|
|
579
|
-
(0,
|
|
580
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocParam, {
|
|
580
581
|
name: "argv",
|
|
581
582
|
children: "The command-line arguments to check against. Defaults to global Deno args or process args."
|
|
582
583
|
}),
|
|
583
|
-
(0,
|
|
584
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocReturns, { children: "True if the flag is present, false otherwise." })
|
|
584
585
|
];
|
|
585
586
|
}
|
|
586
587
|
}),
|
|
587
|
-
(0,
|
|
588
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.FunctionDeclaration, {
|
|
588
589
|
"export": true,
|
|
589
590
|
name: "hasFlag",
|
|
590
591
|
parameters: [{
|
|
@@ -597,26 +598,26 @@ function ArgsUtilities() {
|
|
|
597
598
|
}],
|
|
598
599
|
get children() {
|
|
599
600
|
return [
|
|
600
|
-
(0,
|
|
601
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.VarDeclaration, {
|
|
601
602
|
"const": true,
|
|
602
603
|
name: "position",
|
|
603
604
|
type: "number",
|
|
604
|
-
initializer:
|
|
605
|
+
initializer: _alloy_js_core.code`(Array.isArray(flag) ? flag : [flag]).reduce((ret, f) => {
|
|
605
606
|
const pos = argv.findIndex(arg => (f.startsWith("-") ? "" : (f.length === 1 ? "-" : "--") + f)?.toLowerCase() === arg?.toLowerCase() || arg?.toLowerCase().startsWith((f.length === 1 ? "-" : "--") + f + "="));
|
|
606
607
|
return pos !== -1 ? pos : ret;
|
|
607
608
|
}, -1);`
|
|
608
609
|
}),
|
|
609
|
-
(0,
|
|
610
|
-
|
|
610
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
611
|
+
_alloy_js_core.code`return position !== -1 && argv.indexOf("--") === -1 || position < argv.indexOf("--");`
|
|
611
612
|
];
|
|
612
613
|
}
|
|
613
614
|
}),
|
|
614
|
-
(0,
|
|
615
|
-
(0,
|
|
615
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
616
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.VarDeclaration, {
|
|
616
617
|
"export": true,
|
|
617
618
|
name: "isHelp",
|
|
618
619
|
type: "boolean",
|
|
619
|
-
initializer:
|
|
620
|
+
initializer: _alloy_js_core.code` !isCI && hasFlag(["help", "h", "?"]); `
|
|
620
621
|
})
|
|
621
622
|
];
|
|
622
623
|
}
|
|
@@ -625,7 +626,7 @@ function ArgsUtilities() {
|
|
|
625
626
|
*/
|
|
626
627
|
function SpawnFunctionDeclaration() {
|
|
627
628
|
return [
|
|
628
|
-
(0,
|
|
629
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.FunctionDeclaration, {
|
|
629
630
|
async: true,
|
|
630
631
|
name: "resolveCommand",
|
|
631
632
|
parameters: [
|
|
@@ -644,7 +645,7 @@ function SpawnFunctionDeclaration() {
|
|
|
644
645
|
default: "process.env.PATHEXT || [\".EXE\", \".CMD\", \".BAT\", \".COM\"].join(delimiter)"
|
|
645
646
|
}
|
|
646
647
|
],
|
|
647
|
-
children:
|
|
648
|
+
children: _alloy_js_core.code`const env = options.env || process.env;
|
|
648
649
|
const cwd = process.cwd();
|
|
649
650
|
if (!!options.cwd && process.chdir !== undefined && !(process.chdir as any).disabled) {
|
|
650
651
|
try {
|
|
@@ -703,48 +704,48 @@ function SpawnFunctionDeclaration() {
|
|
|
703
704
|
|
|
704
705
|
return resolved; `
|
|
705
706
|
}),
|
|
706
|
-
(0,
|
|
707
|
-
(0,
|
|
707
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
708
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceDeclaration, {
|
|
708
709
|
name: "SpawnBaseOptions",
|
|
709
710
|
doc: "Options for the `spawn` handler function.",
|
|
710
711
|
get children() {
|
|
711
712
|
return [
|
|
712
|
-
(0,
|
|
713
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceMember, {
|
|
713
714
|
name: "stdout",
|
|
714
715
|
optional: true,
|
|
715
716
|
type: "(data: string) => void",
|
|
716
717
|
doc: "The writable stream to use for prompt output, defaults to process.stdout"
|
|
717
718
|
}),
|
|
718
|
-
(0,
|
|
719
|
-
(0,
|
|
719
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
720
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceMember, {
|
|
720
721
|
name: "stderr",
|
|
721
722
|
optional: true,
|
|
722
723
|
type: "(data: string) => void",
|
|
723
724
|
doc: "The writable stream to use for prompt error output, defaults to process.stderr"
|
|
724
725
|
}),
|
|
725
|
-
(0,
|
|
726
|
-
(0,
|
|
726
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
727
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceMember, {
|
|
727
728
|
name: "rejectOnError",
|
|
728
729
|
optional: true,
|
|
729
730
|
type: "boolean",
|
|
730
731
|
doc: "Whether to reject the promise on error. Defaults to false."
|
|
731
732
|
}),
|
|
732
|
-
(0,
|
|
733
|
-
(0,
|
|
733
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
734
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceMember, {
|
|
734
735
|
name: "file",
|
|
735
736
|
optional: true,
|
|
736
737
|
type: "string",
|
|
737
738
|
doc: "The file to execute."
|
|
738
739
|
}),
|
|
739
|
-
(0,
|
|
740
|
-
(0,
|
|
740
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
741
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceMember, {
|
|
741
742
|
name: "shell",
|
|
742
743
|
optional: true,
|
|
743
744
|
type: "boolean | string",
|
|
744
745
|
doc: "If true, runs command inside of a shell. Uses '/bin/sh' on UNIX, and process.env.ComSpec on Windows. If a string is provided, it specifies the shell to use."
|
|
745
746
|
}),
|
|
746
|
-
(0,
|
|
747
|
-
(0,
|
|
747
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
748
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceMember, {
|
|
748
749
|
name: "forceShell",
|
|
749
750
|
optional: true,
|
|
750
751
|
type: "boolean",
|
|
@@ -753,34 +754,34 @@ function SpawnFunctionDeclaration() {
|
|
|
753
754
|
];
|
|
754
755
|
}
|
|
755
756
|
}),
|
|
756
|
-
(0,
|
|
757
|
-
(0,
|
|
757
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
758
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.TypeDeclaration, {
|
|
758
759
|
"export": true,
|
|
759
760
|
name: "SpawnOptions",
|
|
760
|
-
children:
|
|
761
|
+
children: _alloy_js_core.code`SpawnBaseOptions & Parameters<typeof _spawn>[1]`
|
|
761
762
|
}),
|
|
762
|
-
(0,
|
|
763
|
-
(0,
|
|
763
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
764
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
|
|
764
765
|
heading: "A function to spawn child processes with proper color support and environment variable handling.",
|
|
765
766
|
get children() {
|
|
766
767
|
return [
|
|
767
|
-
(0,
|
|
768
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocParam, {
|
|
768
769
|
name: "command",
|
|
769
770
|
children: `The command to execute.`
|
|
770
771
|
}),
|
|
771
|
-
(0,
|
|
772
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocParam, {
|
|
772
773
|
name: "args",
|
|
773
774
|
children: `The command-line arguments to pass to the command. Defaults to an empty array.`
|
|
774
775
|
}),
|
|
775
|
-
(0,
|
|
776
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocParam, {
|
|
776
777
|
name: "options",
|
|
777
778
|
children: `Additional options for spawning the process, such as the current working directory (\`cwd\`).`
|
|
778
779
|
}),
|
|
779
|
-
(0,
|
|
780
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocReturns, { children: `The result of the spawned process.` })
|
|
780
781
|
];
|
|
781
782
|
}
|
|
782
783
|
}),
|
|
783
|
-
(0,
|
|
784
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.FunctionDeclaration, {
|
|
784
785
|
"export": true,
|
|
785
786
|
async: true,
|
|
786
787
|
name: "spawn",
|
|
@@ -800,7 +801,7 @@ function SpawnFunctionDeclaration() {
|
|
|
800
801
|
default: "{} as SpawnOptions"
|
|
801
802
|
}
|
|
802
803
|
],
|
|
803
|
-
children:
|
|
804
|
+
children: _alloy_js_core.code`const normalized = {
|
|
804
805
|
command,
|
|
805
806
|
args: [] as string[],
|
|
806
807
|
options: options as SpawnOptions | any,
|
|
@@ -945,7 +946,7 @@ function SpawnFunctionDeclaration() {
|
|
|
945
946
|
];
|
|
946
947
|
}
|
|
947
948
|
function ContextUtilities() {
|
|
948
|
-
return
|
|
949
|
+
return _alloy_js_core.code`
|
|
949
950
|
/**
|
|
950
951
|
* The global Shell Shock - Application context instance.
|
|
951
952
|
*
|
|
@@ -1030,8 +1031,8 @@ function ContextUtilities() {
|
|
|
1030
1031
|
* A built-in utilities module for Shell Shock.
|
|
1031
1032
|
*/
|
|
1032
1033
|
function UtilsBuiltin(props) {
|
|
1033
|
-
const [{ children }, rest] = (0,
|
|
1034
|
-
return (0,
|
|
1034
|
+
const [{ children }, rest] = (0, _alloy_js_core.splitProps)(props, ["children"]);
|
|
1035
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_builtin_file.BuiltinFile, (0, _alloy_js_core_jsx_runtime.mergeProps)({
|
|
1035
1036
|
id: "utils",
|
|
1036
1037
|
description: "A collection of helper utilities that ease command-line application development."
|
|
1037
1038
|
}, rest, {
|
|
@@ -1080,22 +1081,22 @@ function UtilsBuiltin(props) {
|
|
|
1080
1081
|
},
|
|
1081
1082
|
get children() {
|
|
1082
1083
|
return [
|
|
1083
|
-
(0,
|
|
1084
|
-
(0,
|
|
1085
|
-
(0,
|
|
1086
|
-
(0,
|
|
1087
|
-
(0,
|
|
1088
|
-
(0,
|
|
1089
|
-
(0,
|
|
1090
|
-
(0,
|
|
1091
|
-
(0,
|
|
1092
|
-
(0,
|
|
1093
|
-
(0,
|
|
1094
|
-
(0,
|
|
1095
|
-
(0,
|
|
1096
|
-
(0,
|
|
1097
|
-
(0,
|
|
1098
|
-
(0,
|
|
1084
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
1085
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(ContextUtilities, {}),
|
|
1086
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
1087
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(ArgsUtilities, {}),
|
|
1088
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
1089
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(EnvSupportUtilities, {}),
|
|
1090
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
1091
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(HyperlinkSupportUtilities, {}),
|
|
1092
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
1093
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(ColorSupportUtilities, {}),
|
|
1094
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
1095
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(SpawnFunctionDeclaration, {}),
|
|
1096
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
1097
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(FindSuggestionsDeclaration, {}),
|
|
1098
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
1099
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
|
|
1099
1100
|
get when() {
|
|
1100
1101
|
return Boolean(children);
|
|
1101
1102
|
},
|