@shell-shock/plugin-console 0.1.8 → 0.1.11
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/components/console-builtin.cjs +567 -563
- package/dist/components/console-builtin.d.cts +5 -1
- package/dist/components/console-builtin.d.cts.map +1 -1
- package/dist/components/console-builtin.d.mts +5 -1
- package/dist/components/console-builtin.d.mts.map +1 -1
- package/dist/components/console-builtin.mjs +17 -15
- package/dist/components/console-builtin.mjs.map +1 -1
- package/dist/components/index.cjs +2 -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/index.cjs +9 -10
- package/dist/index.d.cts +0 -2
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +0 -2
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -2
- package/dist/index.mjs.map +1 -1
- package/dist/types/plugin.d.cts +2 -2
- package/dist/types/plugin.d.cts.map +1 -1
- package/dist/types/plugin.d.mts +2 -2
- package/dist/types/plugin.d.mts.map +1 -1
- package/package.json +12 -12
|
@@ -1,34 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
let
|
|
4
|
-
let
|
|
5
|
-
let
|
|
6
|
-
let
|
|
7
|
-
let
|
|
8
|
-
let
|
|
9
|
-
let
|
|
10
|
-
let
|
|
11
|
-
let
|
|
12
|
-
let
|
|
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");
|
|
4
|
+
let _alloy_js_core = require("@alloy-js/core");
|
|
5
|
+
let _alloy_js_typescript = require("@alloy-js/typescript");
|
|
6
|
+
let _powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
|
|
7
|
+
let _powerlines_plugin_alloy_core_components_spacing = require("@powerlines/plugin-alloy/core/components/spacing");
|
|
8
|
+
let _powerlines_plugin_alloy_typescript = require("@powerlines/plugin-alloy/typescript");
|
|
9
|
+
let _powerlines_plugin_alloy_typescript_components_builtin_file = require("@powerlines/plugin-alloy/typescript/components/builtin-file");
|
|
10
|
+
let _powerlines_plugin_alloy_typescript_components_tsdoc = require("@powerlines/plugin-alloy/typescript/components/tsdoc");
|
|
11
|
+
let _shell_shock_core_components_helpers = require("@shell-shock/core/components/helpers");
|
|
12
|
+
let _shell_shock_plugin_theme_contexts_theme = require("@shell-shock/plugin-theme/contexts/theme");
|
|
13
|
+
let _stryke_string_format_vowels = require("@stryke/string-format/vowels");
|
|
13
14
|
let defu = require("defu");
|
|
14
15
|
|
|
15
16
|
//#region src/components/console-builtin.tsx
|
|
16
17
|
function AnsiHelpersDeclarations() {
|
|
17
18
|
return [
|
|
18
|
-
(0,
|
|
19
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.VarDeclaration, {
|
|
19
20
|
"const": true,
|
|
20
21
|
"export": true,
|
|
21
22
|
name: "beep",
|
|
22
23
|
doc: "The ASCII Bell character, which can be used to trigger a beep sound in the console.",
|
|
23
|
-
children:
|
|
24
|
+
children: _alloy_js_core.code` "\\u0007"; `
|
|
24
25
|
}),
|
|
25
|
-
(0,
|
|
26
|
-
(0,
|
|
26
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
27
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.VarDeclaration, {
|
|
27
28
|
"const": true,
|
|
28
29
|
"export": true,
|
|
29
30
|
name: "cursor",
|
|
30
31
|
doc: "An object containing ANSI escape codes for controlling the console cursor.",
|
|
31
|
-
children:
|
|
32
|
+
children: _alloy_js_core.code` {
|
|
32
33
|
to(x: number, y?: number) {
|
|
33
34
|
if (!y) {
|
|
34
35
|
return \`\\x1B[\${x + 1}G\`;
|
|
@@ -66,20 +67,20 @@ function AnsiHelpersDeclarations() {
|
|
|
66
67
|
restore: "\\x1B8"
|
|
67
68
|
} `
|
|
68
69
|
}),
|
|
69
|
-
(0,
|
|
70
|
-
(0,
|
|
70
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
71
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.VarDeclaration, {
|
|
71
72
|
"const": true,
|
|
72
73
|
"export": true,
|
|
73
74
|
name: "erase",
|
|
74
75
|
doc: "An object containing ANSI escape codes for erasing parts of the console.",
|
|
75
|
-
children:
|
|
76
|
+
children: _alloy_js_core.code` {
|
|
76
77
|
screen: "\\x1B[2J",
|
|
77
78
|
up: (count = 1) => "\\x1B[1J".repeat(count),
|
|
78
79
|
down: (count = 1) => "\\x1B[J".repeat(count),
|
|
79
80
|
line: "\\x1B[2K",
|
|
80
81
|
lineEnd: "\\x1B[K",
|
|
81
82
|
lineStart: "\\x1B[1K",
|
|
82
|
-
lines(count) {
|
|
83
|
+
lines(count: number) {
|
|
83
84
|
let lineClear = "";
|
|
84
85
|
for (let i = 0; i < count; i++) {
|
|
85
86
|
lineClear += this.line + (i < count - 1 ? cursor.up() : "");
|
|
@@ -93,19 +94,19 @@ function AnsiHelpersDeclarations() {
|
|
|
93
94
|
}
|
|
94
95
|
} `
|
|
95
96
|
}),
|
|
96
|
-
(0,
|
|
97
|
-
(0,
|
|
97
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
98
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.VarDeclaration, {
|
|
98
99
|
"const": true,
|
|
99
100
|
"export": true,
|
|
100
101
|
name: "scroll",
|
|
101
102
|
doc: "An object containing ANSI escape codes for scrolling the console.",
|
|
102
|
-
children:
|
|
103
|
+
children: _alloy_js_core.code` {
|
|
103
104
|
up: (count = 1) => "\\x1B[S".repeat(count),
|
|
104
105
|
down: (count = 1) => "\\x1B[T".repeat(count)
|
|
105
106
|
} `
|
|
106
107
|
}),
|
|
107
|
-
(0,
|
|
108
|
-
(0,
|
|
108
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
109
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.FunctionDeclaration, {
|
|
109
110
|
"export": true,
|
|
110
111
|
name: "clear",
|
|
111
112
|
doc: "A helper function to clear the console based on a count of lines",
|
|
@@ -118,7 +119,7 @@ function AnsiHelpersDeclarations() {
|
|
|
118
119
|
type: "number",
|
|
119
120
|
doc: "The number of characters per line in the console"
|
|
120
121
|
}],
|
|
121
|
-
children:
|
|
122
|
+
children: _alloy_js_core.code`if (!consoleWidth) {
|
|
122
123
|
return erase.line + cursor.to(0);
|
|
123
124
|
}
|
|
124
125
|
|
|
@@ -130,14 +131,14 @@ function AnsiHelpersDeclarations() {
|
|
|
130
131
|
|
|
131
132
|
return erase.lines(rows); `
|
|
132
133
|
}),
|
|
133
|
-
(0,
|
|
134
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {})
|
|
134
135
|
];
|
|
135
136
|
}
|
|
136
137
|
/**
|
|
137
138
|
* A component to generate a console message function in a Shell Shock project.
|
|
138
139
|
*/
|
|
139
140
|
function ColorFunction({ ansi16, ansi256, ansi16m }) {
|
|
140
|
-
return
|
|
141
|
+
return _alloy_js_core.code` (text: string) => {
|
|
141
142
|
try {
|
|
142
143
|
if (!isColorSupported) {
|
|
143
144
|
return String(text);
|
|
@@ -160,14 +161,14 @@ function ColorFunction({ ansi16, ansi256, ansi16m }) {
|
|
|
160
161
|
* A component to generate an object containing functions for coloring text in a Shell Shock project.
|
|
161
162
|
*/
|
|
162
163
|
function ColorsDeclaration() {
|
|
163
|
-
const colors = (0,
|
|
164
|
+
const colors = (0, _shell_shock_plugin_theme_contexts_theme.useColors)();
|
|
164
165
|
return [
|
|
165
|
-
(0,
|
|
166
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.TypeDeclaration, {
|
|
166
167
|
"export": true,
|
|
167
168
|
name: "AnsiColor",
|
|
168
169
|
doc: "The available ANSI colors for console text.",
|
|
169
170
|
get children() {
|
|
170
|
-
return (0,
|
|
171
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.For, {
|
|
171
172
|
get each() {
|
|
172
173
|
return Object.keys(colors.ansi16).filter((color) => color !== "theme");
|
|
173
174
|
},
|
|
@@ -175,9 +176,9 @@ function ColorsDeclaration() {
|
|
|
175
176
|
});
|
|
176
177
|
}
|
|
177
178
|
}),
|
|
178
|
-
(0,
|
|
179
|
-
(0,
|
|
180
|
-
|
|
179
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
180
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
181
|
+
_alloy_js_core.code`
|
|
181
182
|
/**
|
|
182
183
|
* A recursive type that defines theme colors for console text.
|
|
183
184
|
*
|
|
@@ -185,33 +186,33 @@ function ColorsDeclaration() {
|
|
|
185
186
|
* This type allows for nested theme color definitions, enabling complex theming structures for console applications.
|
|
186
187
|
*/
|
|
187
188
|
export type ThemeColors<T> = T extends object ? { [K in keyof T]: ThemeColors<T[K]>; } : ((text: string) => string); `,
|
|
188
|
-
(0,
|
|
189
|
-
(0,
|
|
189
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
190
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.TypeDeclaration, {
|
|
190
191
|
"export": true,
|
|
191
192
|
name: "Colors",
|
|
192
193
|
doc: "An object containing functions for coloring console applications. Each function corresponds to a terminal color. See {@link AnsiColor} for available colors.",
|
|
193
|
-
children:
|
|
194
|
+
children: _alloy_js_core.code`Record<AnsiColor, (text: string) => string> & ThemeColors<ThemeColorsResolvedConfig>`
|
|
194
195
|
}),
|
|
195
|
-
(0,
|
|
196
|
-
(0,
|
|
197
|
-
(0,
|
|
196
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
197
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, { heading: "An object containing functions for coloring console applications. Each function corresponds to a terminal color. See {@link Colors} for available colors." }),
|
|
198
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.VarDeclaration, {
|
|
198
199
|
"const": true,
|
|
199
200
|
"export": true,
|
|
200
201
|
name: "colors",
|
|
201
202
|
type: "Colors",
|
|
202
203
|
get initializer() {
|
|
203
204
|
return [
|
|
204
|
-
|
|
205
|
+
_alloy_js_core.code` {
|
|
205
206
|
`,
|
|
206
|
-
(0,
|
|
207
|
-
(0,
|
|
207
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
208
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.For, {
|
|
208
209
|
get each() {
|
|
209
210
|
return Object.keys(colors.ansi16).filter((color) => color !== "theme");
|
|
210
211
|
},
|
|
211
212
|
comma: true,
|
|
212
213
|
doubleHardline: true,
|
|
213
214
|
enderPunctuation: true,
|
|
214
|
-
children: (color) => [
|
|
215
|
+
children: (color) => [_alloy_js_core.code`${color}: `, (0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
215
216
|
get ansi16() {
|
|
216
217
|
return colors.ansi16[color];
|
|
217
218
|
},
|
|
@@ -223,11 +224,11 @@ function ColorsDeclaration() {
|
|
|
223
224
|
}
|
|
224
225
|
})]
|
|
225
226
|
}),
|
|
226
|
-
(0,
|
|
227
|
-
|
|
227
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
228
|
+
_alloy_js_core.code`text: {
|
|
228
229
|
banner: {
|
|
229
230
|
header: {
|
|
230
|
-
primary: ${(0,
|
|
231
|
+
primary: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
231
232
|
get ansi16() {
|
|
232
233
|
return colors.ansi16.theme.text.banner.header.primary;
|
|
233
234
|
},
|
|
@@ -238,7 +239,7 @@ function ColorsDeclaration() {
|
|
|
238
239
|
return colors.ansi16m.theme.text.banner.header.primary;
|
|
239
240
|
}
|
|
240
241
|
})},
|
|
241
|
-
secondary: ${(0,
|
|
242
|
+
secondary: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
242
243
|
get ansi16() {
|
|
243
244
|
return colors.ansi16.theme.text.banner.header.secondary;
|
|
244
245
|
},
|
|
@@ -249,7 +250,7 @@ function ColorsDeclaration() {
|
|
|
249
250
|
return colors.ansi16m.theme.text.banner.header.secondary;
|
|
250
251
|
}
|
|
251
252
|
})},
|
|
252
|
-
tertiary: ${(0,
|
|
253
|
+
tertiary: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
253
254
|
get ansi16() {
|
|
254
255
|
return colors.ansi16.theme.text.banner.header.tertiary;
|
|
255
256
|
},
|
|
@@ -262,7 +263,7 @@ function ColorsDeclaration() {
|
|
|
262
263
|
})}
|
|
263
264
|
},
|
|
264
265
|
footer: {
|
|
265
|
-
primary: ${(0,
|
|
266
|
+
primary: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
266
267
|
get ansi16() {
|
|
267
268
|
return colors.ansi16.theme.text.banner.footer.primary;
|
|
268
269
|
},
|
|
@@ -273,7 +274,7 @@ function ColorsDeclaration() {
|
|
|
273
274
|
return colors.ansi16m.theme.text.banner.footer.primary;
|
|
274
275
|
}
|
|
275
276
|
})},
|
|
276
|
-
secondary: ${(0,
|
|
277
|
+
secondary: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
277
278
|
get ansi16() {
|
|
278
279
|
return colors.ansi16.theme.text.banner.footer.secondary;
|
|
279
280
|
},
|
|
@@ -284,7 +285,7 @@ function ColorsDeclaration() {
|
|
|
284
285
|
return colors.ansi16m.theme.text.banner.footer.secondary;
|
|
285
286
|
}
|
|
286
287
|
})},
|
|
287
|
-
tertiary: ${(0,
|
|
288
|
+
tertiary: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
288
289
|
get ansi16() {
|
|
289
290
|
return colors.ansi16.theme.text.banner.footer.tertiary;
|
|
290
291
|
},
|
|
@@ -297,7 +298,7 @@ function ColorsDeclaration() {
|
|
|
297
298
|
})}
|
|
298
299
|
},
|
|
299
300
|
command: {
|
|
300
|
-
primary: ${(0,
|
|
301
|
+
primary: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
301
302
|
get ansi16() {
|
|
302
303
|
return colors.ansi16.theme.text.banner.command.primary;
|
|
303
304
|
},
|
|
@@ -308,7 +309,7 @@ function ColorsDeclaration() {
|
|
|
308
309
|
return colors.ansi16m.theme.text.banner.command.primary;
|
|
309
310
|
}
|
|
310
311
|
})},
|
|
311
|
-
secondary: ${(0,
|
|
312
|
+
secondary: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
312
313
|
get ansi16() {
|
|
313
314
|
return colors.ansi16.theme.text.banner.command.secondary;
|
|
314
315
|
},
|
|
@@ -319,7 +320,7 @@ function ColorsDeclaration() {
|
|
|
319
320
|
return colors.ansi16m.theme.text.banner.command.secondary;
|
|
320
321
|
}
|
|
321
322
|
})},
|
|
322
|
-
tertiary: ${(0,
|
|
323
|
+
tertiary: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
323
324
|
get ansi16() {
|
|
324
325
|
return colors.ansi16.theme.text.banner.command.tertiary;
|
|
325
326
|
},
|
|
@@ -332,7 +333,7 @@ function ColorsDeclaration() {
|
|
|
332
333
|
})},
|
|
333
334
|
},
|
|
334
335
|
title: {
|
|
335
|
-
primary: ${(0,
|
|
336
|
+
primary: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
336
337
|
get ansi16() {
|
|
337
338
|
return colors.ansi16.theme.text.banner.title.primary;
|
|
338
339
|
},
|
|
@@ -343,7 +344,7 @@ function ColorsDeclaration() {
|
|
|
343
344
|
return colors.ansi16m.theme.text.banner.title.primary;
|
|
344
345
|
}
|
|
345
346
|
})},
|
|
346
|
-
secondary: ${(0,
|
|
347
|
+
secondary: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
347
348
|
get ansi16() {
|
|
348
349
|
return colors.ansi16.theme.text.banner.title.secondary;
|
|
349
350
|
},
|
|
@@ -354,7 +355,7 @@ function ColorsDeclaration() {
|
|
|
354
355
|
return colors.ansi16m.theme.text.banner.title.secondary;
|
|
355
356
|
}
|
|
356
357
|
})},
|
|
357
|
-
tertiary: ${(0,
|
|
358
|
+
tertiary: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
358
359
|
get ansi16() {
|
|
359
360
|
return colors.ansi16.theme.text.banner.title.tertiary;
|
|
360
361
|
},
|
|
@@ -367,7 +368,7 @@ function ColorsDeclaration() {
|
|
|
367
368
|
})},
|
|
368
369
|
},
|
|
369
370
|
link: {
|
|
370
|
-
primary: ${(0,
|
|
371
|
+
primary: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
371
372
|
get ansi16() {
|
|
372
373
|
return colors.ansi16.theme.text.banner.link.primary;
|
|
373
374
|
},
|
|
@@ -378,7 +379,7 @@ function ColorsDeclaration() {
|
|
|
378
379
|
return colors.ansi16m.theme.text.banner.link.primary;
|
|
379
380
|
}
|
|
380
381
|
})},
|
|
381
|
-
secondary: ${(0,
|
|
382
|
+
secondary: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
382
383
|
get ansi16() {
|
|
383
384
|
return colors.ansi16.theme.text.banner.link.secondary;
|
|
384
385
|
},
|
|
@@ -389,7 +390,7 @@ function ColorsDeclaration() {
|
|
|
389
390
|
return colors.ansi16m.theme.text.banner.link.secondary;
|
|
390
391
|
}
|
|
391
392
|
})},
|
|
392
|
-
tertiary: ${(0,
|
|
393
|
+
tertiary: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
393
394
|
get ansi16() {
|
|
394
395
|
return colors.ansi16.theme.text.banner.link.tertiary;
|
|
395
396
|
},
|
|
@@ -402,7 +403,7 @@ function ColorsDeclaration() {
|
|
|
402
403
|
})},
|
|
403
404
|
},
|
|
404
405
|
description: {
|
|
405
|
-
primary: ${(0,
|
|
406
|
+
primary: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
406
407
|
get ansi16() {
|
|
407
408
|
return colors.ansi16.theme.text.banner.description.primary;
|
|
408
409
|
},
|
|
@@ -413,7 +414,7 @@ function ColorsDeclaration() {
|
|
|
413
414
|
return colors.ansi16m.theme.text.banner.description.primary;
|
|
414
415
|
}
|
|
415
416
|
})},
|
|
416
|
-
secondary: ${(0,
|
|
417
|
+
secondary: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
417
418
|
get ansi16() {
|
|
418
419
|
return colors.ansi16.theme.text.banner.description.secondary;
|
|
419
420
|
},
|
|
@@ -424,7 +425,7 @@ function ColorsDeclaration() {
|
|
|
424
425
|
return colors.ansi16m.theme.text.banner.description.secondary;
|
|
425
426
|
}
|
|
426
427
|
})},
|
|
427
|
-
tertiary: ${(0,
|
|
428
|
+
tertiary: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
428
429
|
get ansi16() {
|
|
429
430
|
return colors.ansi16.theme.text.banner.description.tertiary;
|
|
430
431
|
},
|
|
@@ -438,7 +439,7 @@ function ColorsDeclaration() {
|
|
|
438
439
|
}
|
|
439
440
|
},
|
|
440
441
|
heading: {
|
|
441
|
-
primary: ${(0,
|
|
442
|
+
primary: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
442
443
|
get ansi16() {
|
|
443
444
|
return colors.ansi16.theme.text.heading.primary;
|
|
444
445
|
},
|
|
@@ -449,7 +450,7 @@ function ColorsDeclaration() {
|
|
|
449
450
|
return colors.ansi16m.theme.text.heading.primary;
|
|
450
451
|
}
|
|
451
452
|
})},
|
|
452
|
-
secondary: ${(0,
|
|
453
|
+
secondary: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
453
454
|
get ansi16() {
|
|
454
455
|
return colors.ansi16.theme.text.heading.secondary;
|
|
455
456
|
},
|
|
@@ -460,7 +461,7 @@ function ColorsDeclaration() {
|
|
|
460
461
|
return colors.ansi16m.theme.text.heading.secondary;
|
|
461
462
|
}
|
|
462
463
|
})},
|
|
463
|
-
tertiary: ${(0,
|
|
464
|
+
tertiary: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
464
465
|
get ansi16() {
|
|
465
466
|
return colors.ansi16.theme.text.heading.tertiary;
|
|
466
467
|
},
|
|
@@ -473,7 +474,7 @@ function ColorsDeclaration() {
|
|
|
473
474
|
})},
|
|
474
475
|
},
|
|
475
476
|
body: {
|
|
476
|
-
primary: ${(0,
|
|
477
|
+
primary: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
477
478
|
get ansi16() {
|
|
478
479
|
return colors.ansi16.theme.text.body.primary;
|
|
479
480
|
},
|
|
@@ -484,7 +485,7 @@ function ColorsDeclaration() {
|
|
|
484
485
|
return colors.ansi16m.theme.text.body.primary;
|
|
485
486
|
}
|
|
486
487
|
})},
|
|
487
|
-
secondary: ${(0,
|
|
488
|
+
secondary: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
488
489
|
get ansi16() {
|
|
489
490
|
return colors.ansi16.theme.text.body.secondary;
|
|
490
491
|
},
|
|
@@ -495,7 +496,7 @@ function ColorsDeclaration() {
|
|
|
495
496
|
return colors.ansi16m.theme.text.body.secondary;
|
|
496
497
|
}
|
|
497
498
|
})},
|
|
498
|
-
tertiary: ${(0,
|
|
499
|
+
tertiary: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
499
500
|
get ansi16() {
|
|
500
501
|
return colors.ansi16.theme.text.body.tertiary;
|
|
501
502
|
},
|
|
@@ -506,7 +507,7 @@ function ColorsDeclaration() {
|
|
|
506
507
|
return colors.ansi16m.theme.text.body.tertiary;
|
|
507
508
|
}
|
|
508
509
|
})},
|
|
509
|
-
link: ${(0,
|
|
510
|
+
link: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
510
511
|
get ansi16() {
|
|
511
512
|
return colors.ansi16.theme.text.body.link;
|
|
512
513
|
},
|
|
@@ -520,7 +521,7 @@ function ColorsDeclaration() {
|
|
|
520
521
|
},
|
|
521
522
|
message: {
|
|
522
523
|
link: {
|
|
523
|
-
help: ${(0,
|
|
524
|
+
help: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
524
525
|
get ansi16() {
|
|
525
526
|
return colors.ansi16.theme.text.message.link.help;
|
|
526
527
|
},
|
|
@@ -531,7 +532,7 @@ function ColorsDeclaration() {
|
|
|
531
532
|
return colors.ansi16m.theme.text.message.link.help;
|
|
532
533
|
}
|
|
533
534
|
})},
|
|
534
|
-
success: ${(0,
|
|
535
|
+
success: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
535
536
|
get ansi16() {
|
|
536
537
|
return colors.ansi16.theme.text.message.link.success;
|
|
537
538
|
},
|
|
@@ -542,7 +543,7 @@ function ColorsDeclaration() {
|
|
|
542
543
|
return colors.ansi16m.theme.text.message.link.success;
|
|
543
544
|
}
|
|
544
545
|
})},
|
|
545
|
-
info: ${(0,
|
|
546
|
+
info: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
546
547
|
get ansi16() {
|
|
547
548
|
return colors.ansi16.theme.text.message.link.info;
|
|
548
549
|
},
|
|
@@ -553,7 +554,7 @@ function ColorsDeclaration() {
|
|
|
553
554
|
return colors.ansi16m.theme.text.message.link.info;
|
|
554
555
|
}
|
|
555
556
|
})},
|
|
556
|
-
debug: ${(0,
|
|
557
|
+
debug: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
557
558
|
get ansi16() {
|
|
558
559
|
return colors.ansi16.theme.text.message.link.debug;
|
|
559
560
|
},
|
|
@@ -564,7 +565,7 @@ function ColorsDeclaration() {
|
|
|
564
565
|
return colors.ansi16m.theme.text.message.link.debug;
|
|
565
566
|
}
|
|
566
567
|
})},
|
|
567
|
-
warning: ${(0,
|
|
568
|
+
warning: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
568
569
|
get ansi16() {
|
|
569
570
|
return colors.ansi16.theme.text.message.link.warning;
|
|
570
571
|
},
|
|
@@ -575,7 +576,7 @@ function ColorsDeclaration() {
|
|
|
575
576
|
return colors.ansi16m.theme.text.message.link.warning;
|
|
576
577
|
}
|
|
577
578
|
})},
|
|
578
|
-
danger: ${(0,
|
|
579
|
+
danger: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
579
580
|
get ansi16() {
|
|
580
581
|
return colors.ansi16.theme.text.message.link.danger;
|
|
581
582
|
},
|
|
@@ -586,7 +587,7 @@ function ColorsDeclaration() {
|
|
|
586
587
|
return colors.ansi16m.theme.text.message.link.danger;
|
|
587
588
|
}
|
|
588
589
|
})},
|
|
589
|
-
error: ${(0,
|
|
590
|
+
error: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
590
591
|
get ansi16() {
|
|
591
592
|
return colors.ansi16.theme.text.message.link.error;
|
|
592
593
|
},
|
|
@@ -599,7 +600,7 @@ function ColorsDeclaration() {
|
|
|
599
600
|
})}
|
|
600
601
|
},
|
|
601
602
|
header: {
|
|
602
|
-
help: ${(0,
|
|
603
|
+
help: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
603
604
|
get ansi16() {
|
|
604
605
|
return colors.ansi16.theme.text.message.header.help;
|
|
605
606
|
},
|
|
@@ -610,7 +611,7 @@ function ColorsDeclaration() {
|
|
|
610
611
|
return colors.ansi16m.theme.text.message.header.help;
|
|
611
612
|
}
|
|
612
613
|
})},
|
|
613
|
-
success: ${(0,
|
|
614
|
+
success: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
614
615
|
get ansi16() {
|
|
615
616
|
return colors.ansi16.theme.text.message.header.success;
|
|
616
617
|
},
|
|
@@ -621,7 +622,7 @@ function ColorsDeclaration() {
|
|
|
621
622
|
return colors.ansi16m.theme.text.message.header.success;
|
|
622
623
|
}
|
|
623
624
|
})},
|
|
624
|
-
info: ${(0,
|
|
625
|
+
info: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
625
626
|
get ansi16() {
|
|
626
627
|
return colors.ansi16.theme.text.message.header.info;
|
|
627
628
|
},
|
|
@@ -632,7 +633,7 @@ function ColorsDeclaration() {
|
|
|
632
633
|
return colors.ansi16m.theme.text.message.header.info;
|
|
633
634
|
}
|
|
634
635
|
})},
|
|
635
|
-
debug: ${(0,
|
|
636
|
+
debug: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
636
637
|
get ansi16() {
|
|
637
638
|
return colors.ansi16.theme.text.message.header.debug;
|
|
638
639
|
},
|
|
@@ -643,7 +644,7 @@ function ColorsDeclaration() {
|
|
|
643
644
|
return colors.ansi16m.theme.text.message.header.debug;
|
|
644
645
|
}
|
|
645
646
|
})},
|
|
646
|
-
warning: ${(0,
|
|
647
|
+
warning: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
647
648
|
get ansi16() {
|
|
648
649
|
return colors.ansi16.theme.text.message.header.warning;
|
|
649
650
|
},
|
|
@@ -654,7 +655,7 @@ function ColorsDeclaration() {
|
|
|
654
655
|
return colors.ansi16m.theme.text.message.header.warning;
|
|
655
656
|
}
|
|
656
657
|
})},
|
|
657
|
-
danger: ${(0,
|
|
658
|
+
danger: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
658
659
|
get ansi16() {
|
|
659
660
|
return colors.ansi16.theme.text.message.header.danger;
|
|
660
661
|
},
|
|
@@ -665,7 +666,7 @@ function ColorsDeclaration() {
|
|
|
665
666
|
return colors.ansi16m.theme.text.message.header.danger;
|
|
666
667
|
}
|
|
667
668
|
})},
|
|
668
|
-
error: ${(0,
|
|
669
|
+
error: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
669
670
|
get ansi16() {
|
|
670
671
|
return colors.ansi16.theme.text.message.header.error;
|
|
671
672
|
},
|
|
@@ -678,7 +679,7 @@ function ColorsDeclaration() {
|
|
|
678
679
|
})}
|
|
679
680
|
},
|
|
680
681
|
footer: {
|
|
681
|
-
help: ${(0,
|
|
682
|
+
help: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
682
683
|
get ansi16() {
|
|
683
684
|
return colors.ansi16.theme.text.message.footer.help;
|
|
684
685
|
},
|
|
@@ -689,7 +690,7 @@ function ColorsDeclaration() {
|
|
|
689
690
|
return colors.ansi16m.theme.text.message.footer.help;
|
|
690
691
|
}
|
|
691
692
|
})},
|
|
692
|
-
success: ${(0,
|
|
693
|
+
success: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
693
694
|
get ansi16() {
|
|
694
695
|
return colors.ansi16.theme.text.message.footer.success;
|
|
695
696
|
},
|
|
@@ -700,7 +701,7 @@ function ColorsDeclaration() {
|
|
|
700
701
|
return colors.ansi16m.theme.text.message.footer.success;
|
|
701
702
|
}
|
|
702
703
|
})},
|
|
703
|
-
info: ${(0,
|
|
704
|
+
info: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
704
705
|
get ansi16() {
|
|
705
706
|
return colors.ansi16.theme.text.message.footer.info;
|
|
706
707
|
},
|
|
@@ -711,7 +712,7 @@ function ColorsDeclaration() {
|
|
|
711
712
|
return colors.ansi16m.theme.text.message.footer.info;
|
|
712
713
|
}
|
|
713
714
|
})},
|
|
714
|
-
debug: ${(0,
|
|
715
|
+
debug: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
715
716
|
get ansi16() {
|
|
716
717
|
return colors.ansi16.theme.text.message.footer.debug;
|
|
717
718
|
},
|
|
@@ -722,7 +723,7 @@ function ColorsDeclaration() {
|
|
|
722
723
|
return colors.ansi16m.theme.text.message.footer.debug;
|
|
723
724
|
}
|
|
724
725
|
})},
|
|
725
|
-
warning: ${(0,
|
|
726
|
+
warning: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
726
727
|
get ansi16() {
|
|
727
728
|
return colors.ansi16.theme.text.message.footer.warning;
|
|
728
729
|
},
|
|
@@ -733,7 +734,7 @@ function ColorsDeclaration() {
|
|
|
733
734
|
return colors.ansi16m.theme.text.message.footer.warning;
|
|
734
735
|
}
|
|
735
736
|
})},
|
|
736
|
-
danger: ${(0,
|
|
737
|
+
danger: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
737
738
|
get ansi16() {
|
|
738
739
|
return colors.ansi16.theme.text.message.footer.danger;
|
|
739
740
|
},
|
|
@@ -744,7 +745,7 @@ function ColorsDeclaration() {
|
|
|
744
745
|
return colors.ansi16m.theme.text.message.footer.danger;
|
|
745
746
|
}
|
|
746
747
|
})},
|
|
747
|
-
error: ${(0,
|
|
748
|
+
error: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
748
749
|
get ansi16() {
|
|
749
750
|
return colors.ansi16.theme.text.message.footer.error;
|
|
750
751
|
},
|
|
@@ -757,7 +758,7 @@ function ColorsDeclaration() {
|
|
|
757
758
|
})}
|
|
758
759
|
},
|
|
759
760
|
description: {
|
|
760
|
-
help: ${(0,
|
|
761
|
+
help: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
761
762
|
get ansi16() {
|
|
762
763
|
return colors.ansi16.theme.text.message.description.help;
|
|
763
764
|
},
|
|
@@ -768,7 +769,7 @@ function ColorsDeclaration() {
|
|
|
768
769
|
return colors.ansi16m.theme.text.message.description.help;
|
|
769
770
|
}
|
|
770
771
|
})},
|
|
771
|
-
success: ${(0,
|
|
772
|
+
success: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
772
773
|
get ansi16() {
|
|
773
774
|
return colors.ansi16.theme.text.message.description.success;
|
|
774
775
|
},
|
|
@@ -779,7 +780,7 @@ function ColorsDeclaration() {
|
|
|
779
780
|
return colors.ansi16m.theme.text.message.description.success;
|
|
780
781
|
}
|
|
781
782
|
})},
|
|
782
|
-
info: ${(0,
|
|
783
|
+
info: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
783
784
|
get ansi16() {
|
|
784
785
|
return colors.ansi16.theme.text.message.description.info;
|
|
785
786
|
},
|
|
@@ -790,7 +791,7 @@ function ColorsDeclaration() {
|
|
|
790
791
|
return colors.ansi16m.theme.text.message.description.info;
|
|
791
792
|
}
|
|
792
793
|
})},
|
|
793
|
-
debug: ${(0,
|
|
794
|
+
debug: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
794
795
|
get ansi16() {
|
|
795
796
|
return colors.ansi16.theme.text.message.description.debug;
|
|
796
797
|
},
|
|
@@ -801,7 +802,7 @@ function ColorsDeclaration() {
|
|
|
801
802
|
return colors.ansi16m.theme.text.message.description.debug;
|
|
802
803
|
}
|
|
803
804
|
})},
|
|
804
|
-
warning: ${(0,
|
|
805
|
+
warning: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
805
806
|
get ansi16() {
|
|
806
807
|
return colors.ansi16.theme.text.message.description.warning;
|
|
807
808
|
},
|
|
@@ -812,7 +813,7 @@ function ColorsDeclaration() {
|
|
|
812
813
|
return colors.ansi16m.theme.text.message.description.warning;
|
|
813
814
|
}
|
|
814
815
|
})},
|
|
815
|
-
danger: ${(0,
|
|
816
|
+
danger: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
816
817
|
get ansi16() {
|
|
817
818
|
return colors.ansi16.theme.text.message.description.danger;
|
|
818
819
|
},
|
|
@@ -823,7 +824,7 @@ function ColorsDeclaration() {
|
|
|
823
824
|
return colors.ansi16m.theme.text.message.description.danger;
|
|
824
825
|
}
|
|
825
826
|
})},
|
|
826
|
-
error: ${(0,
|
|
827
|
+
error: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
827
828
|
get ansi16() {
|
|
828
829
|
return colors.ansi16.theme.text.message.description.error;
|
|
829
830
|
},
|
|
@@ -837,7 +838,7 @@ function ColorsDeclaration() {
|
|
|
837
838
|
}
|
|
838
839
|
},
|
|
839
840
|
usage: {
|
|
840
|
-
bin: ${(0,
|
|
841
|
+
bin: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
841
842
|
get ansi16() {
|
|
842
843
|
return colors.ansi16.theme.text.usage.bin;
|
|
843
844
|
},
|
|
@@ -848,7 +849,7 @@ function ColorsDeclaration() {
|
|
|
848
849
|
return colors.ansi16m.theme.text.usage.bin;
|
|
849
850
|
}
|
|
850
851
|
})},
|
|
851
|
-
command: ${(0,
|
|
852
|
+
command: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
852
853
|
get ansi16() {
|
|
853
854
|
return colors.ansi16.theme.text.usage.command;
|
|
854
855
|
},
|
|
@@ -859,7 +860,7 @@ function ColorsDeclaration() {
|
|
|
859
860
|
return colors.ansi16m.theme.text.usage.command;
|
|
860
861
|
}
|
|
861
862
|
})},
|
|
862
|
-
dynamic: ${(0,
|
|
863
|
+
dynamic: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
863
864
|
get ansi16() {
|
|
864
865
|
return colors.ansi16.theme.text.usage.dynamic;
|
|
865
866
|
},
|
|
@@ -870,7 +871,7 @@ function ColorsDeclaration() {
|
|
|
870
871
|
return colors.ansi16m.theme.text.usage.dynamic;
|
|
871
872
|
}
|
|
872
873
|
})},
|
|
873
|
-
options: ${(0,
|
|
874
|
+
options: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
874
875
|
get ansi16() {
|
|
875
876
|
return colors.ansi16.theme.text.usage.options;
|
|
876
877
|
},
|
|
@@ -881,7 +882,7 @@ function ColorsDeclaration() {
|
|
|
881
882
|
return colors.ansi16m.theme.text.usage.options;
|
|
882
883
|
}
|
|
883
884
|
})},
|
|
884
|
-
args: ${(0,
|
|
885
|
+
args: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
885
886
|
get ansi16() {
|
|
886
887
|
return colors.ansi16.theme.text.usage.args;
|
|
887
888
|
},
|
|
@@ -892,7 +893,7 @@ function ColorsDeclaration() {
|
|
|
892
893
|
return colors.ansi16m.theme.text.usage.args;
|
|
893
894
|
}
|
|
894
895
|
})},
|
|
895
|
-
description: ${(0,
|
|
896
|
+
description: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
896
897
|
get ansi16() {
|
|
897
898
|
return colors.ansi16.theme.text.usage.description;
|
|
898
899
|
},
|
|
@@ -906,7 +907,7 @@ function ColorsDeclaration() {
|
|
|
906
907
|
},
|
|
907
908
|
prompt: {
|
|
908
909
|
icon: {
|
|
909
|
-
active: ${(0,
|
|
910
|
+
active: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
910
911
|
get ansi16() {
|
|
911
912
|
return colors.ansi16.theme.text.prompt.icon.active;
|
|
912
913
|
},
|
|
@@ -917,7 +918,7 @@ function ColorsDeclaration() {
|
|
|
917
918
|
return colors.ansi16m.theme.text.prompt.icon.active;
|
|
918
919
|
}
|
|
919
920
|
})},
|
|
920
|
-
warning: ${(0,
|
|
921
|
+
warning: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
921
922
|
get ansi16() {
|
|
922
923
|
return colors.ansi16.theme.text.prompt.icon.warning;
|
|
923
924
|
},
|
|
@@ -928,7 +929,7 @@ function ColorsDeclaration() {
|
|
|
928
929
|
return colors.ansi16m.theme.text.prompt.icon.warning;
|
|
929
930
|
}
|
|
930
931
|
})},
|
|
931
|
-
error: ${(0,
|
|
932
|
+
error: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
932
933
|
get ansi16() {
|
|
933
934
|
return colors.ansi16.theme.text.prompt.icon.error;
|
|
934
935
|
},
|
|
@@ -939,7 +940,7 @@ function ColorsDeclaration() {
|
|
|
939
940
|
return colors.ansi16m.theme.text.prompt.icon.error;
|
|
940
941
|
}
|
|
941
942
|
})},
|
|
942
|
-
submitted: ${(0,
|
|
943
|
+
submitted: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
943
944
|
get ansi16() {
|
|
944
945
|
return colors.ansi16.theme.text.prompt.icon.submitted;
|
|
945
946
|
},
|
|
@@ -950,7 +951,7 @@ function ColorsDeclaration() {
|
|
|
950
951
|
return colors.ansi16m.theme.text.prompt.icon.submitted;
|
|
951
952
|
}
|
|
952
953
|
})},
|
|
953
|
-
cancelled: ${(0,
|
|
954
|
+
cancelled: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
954
955
|
get ansi16() {
|
|
955
956
|
return colors.ansi16.theme.text.prompt.icon.cancelled;
|
|
956
957
|
},
|
|
@@ -961,7 +962,7 @@ function ColorsDeclaration() {
|
|
|
961
962
|
return colors.ansi16m.theme.text.prompt.icon.cancelled;
|
|
962
963
|
}
|
|
963
964
|
})},
|
|
964
|
-
disabled: ${(0,
|
|
965
|
+
disabled: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
965
966
|
get ansi16() {
|
|
966
967
|
return colors.ansi16.theme.text.prompt.icon.disabled;
|
|
967
968
|
},
|
|
@@ -974,7 +975,7 @@ function ColorsDeclaration() {
|
|
|
974
975
|
})}
|
|
975
976
|
},
|
|
976
977
|
message: {
|
|
977
|
-
active: ${(0,
|
|
978
|
+
active: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
978
979
|
get ansi16() {
|
|
979
980
|
return colors.ansi16.theme.text.prompt.message.active;
|
|
980
981
|
},
|
|
@@ -985,7 +986,7 @@ function ColorsDeclaration() {
|
|
|
985
986
|
return colors.ansi16m.theme.text.prompt.message.active;
|
|
986
987
|
}
|
|
987
988
|
})},
|
|
988
|
-
warning: ${(0,
|
|
989
|
+
warning: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
989
990
|
get ansi16() {
|
|
990
991
|
return colors.ansi16.theme.text.prompt.message.warning;
|
|
991
992
|
},
|
|
@@ -996,7 +997,7 @@ function ColorsDeclaration() {
|
|
|
996
997
|
return colors.ansi16m.theme.text.prompt.message.warning;
|
|
997
998
|
}
|
|
998
999
|
})},
|
|
999
|
-
error: ${(0,
|
|
1000
|
+
error: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1000
1001
|
get ansi16() {
|
|
1001
1002
|
return colors.ansi16.theme.text.prompt.message.error;
|
|
1002
1003
|
},
|
|
@@ -1007,7 +1008,7 @@ function ColorsDeclaration() {
|
|
|
1007
1008
|
return colors.ansi16m.theme.text.prompt.message.error;
|
|
1008
1009
|
}
|
|
1009
1010
|
})},
|
|
1010
|
-
submitted: ${(0,
|
|
1011
|
+
submitted: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1011
1012
|
get ansi16() {
|
|
1012
1013
|
return colors.ansi16.theme.text.prompt.message.submitted;
|
|
1013
1014
|
},
|
|
@@ -1018,7 +1019,7 @@ function ColorsDeclaration() {
|
|
|
1018
1019
|
return colors.ansi16m.theme.text.prompt.message.submitted;
|
|
1019
1020
|
}
|
|
1020
1021
|
})},
|
|
1021
|
-
cancelled: ${(0,
|
|
1022
|
+
cancelled: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1022
1023
|
get ansi16() {
|
|
1023
1024
|
return colors.ansi16.theme.text.prompt.message.cancelled;
|
|
1024
1025
|
},
|
|
@@ -1029,7 +1030,7 @@ function ColorsDeclaration() {
|
|
|
1029
1030
|
return colors.ansi16m.theme.text.prompt.message.cancelled;
|
|
1030
1031
|
}
|
|
1031
1032
|
})},
|
|
1032
|
-
disabled: ${(0,
|
|
1033
|
+
disabled: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1033
1034
|
get ansi16() {
|
|
1034
1035
|
return colors.ansi16.theme.text.prompt.message.disabled;
|
|
1035
1036
|
},
|
|
@@ -1042,7 +1043,7 @@ function ColorsDeclaration() {
|
|
|
1042
1043
|
})}
|
|
1043
1044
|
},
|
|
1044
1045
|
input: {
|
|
1045
|
-
active: ${(0,
|
|
1046
|
+
active: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1046
1047
|
get ansi16() {
|
|
1047
1048
|
return colors.ansi16.theme.text.prompt.input.active;
|
|
1048
1049
|
},
|
|
@@ -1053,7 +1054,7 @@ function ColorsDeclaration() {
|
|
|
1053
1054
|
return colors.ansi16m.theme.text.prompt.input.active;
|
|
1054
1055
|
}
|
|
1055
1056
|
})},
|
|
1056
|
-
inactive: ${(0,
|
|
1057
|
+
inactive: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1057
1058
|
get ansi16() {
|
|
1058
1059
|
return colors.ansi16.theme.text.prompt.input.inactive;
|
|
1059
1060
|
},
|
|
@@ -1064,7 +1065,7 @@ function ColorsDeclaration() {
|
|
|
1064
1065
|
return colors.ansi16m.theme.text.prompt.input.inactive;
|
|
1065
1066
|
}
|
|
1066
1067
|
})},
|
|
1067
|
-
warning: ${(0,
|
|
1068
|
+
warning: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1068
1069
|
get ansi16() {
|
|
1069
1070
|
return colors.ansi16.theme.text.prompt.input.warning;
|
|
1070
1071
|
},
|
|
@@ -1075,7 +1076,7 @@ function ColorsDeclaration() {
|
|
|
1075
1076
|
return colors.ansi16m.theme.text.prompt.input.warning;
|
|
1076
1077
|
}
|
|
1077
1078
|
})},
|
|
1078
|
-
error: ${(0,
|
|
1079
|
+
error: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1079
1080
|
get ansi16() {
|
|
1080
1081
|
return colors.ansi16.theme.text.prompt.input.error;
|
|
1081
1082
|
},
|
|
@@ -1086,7 +1087,7 @@ function ColorsDeclaration() {
|
|
|
1086
1087
|
return colors.ansi16m.theme.text.prompt.input.error;
|
|
1087
1088
|
}
|
|
1088
1089
|
})},
|
|
1089
|
-
submitted: ${(0,
|
|
1090
|
+
submitted: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1090
1091
|
get ansi16() {
|
|
1091
1092
|
return colors.ansi16.theme.text.prompt.input.submitted;
|
|
1092
1093
|
},
|
|
@@ -1097,7 +1098,7 @@ function ColorsDeclaration() {
|
|
|
1097
1098
|
return colors.ansi16m.theme.text.prompt.input.submitted;
|
|
1098
1099
|
}
|
|
1099
1100
|
})},
|
|
1100
|
-
cancelled: ${(0,
|
|
1101
|
+
cancelled: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1101
1102
|
get ansi16() {
|
|
1102
1103
|
return colors.ansi16.theme.text.prompt.input.cancelled;
|
|
1103
1104
|
},
|
|
@@ -1108,7 +1109,7 @@ function ColorsDeclaration() {
|
|
|
1108
1109
|
return colors.ansi16m.theme.text.prompt.input.cancelled;
|
|
1109
1110
|
}
|
|
1110
1111
|
})},
|
|
1111
|
-
disabled: ${(0,
|
|
1112
|
+
disabled: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1112
1113
|
get ansi16() {
|
|
1113
1114
|
return colors.ansi16.theme.text.prompt.input.disabled;
|
|
1114
1115
|
},
|
|
@@ -1119,7 +1120,7 @@ function ColorsDeclaration() {
|
|
|
1119
1120
|
return colors.ansi16m.theme.text.prompt.input.disabled;
|
|
1120
1121
|
}
|
|
1121
1122
|
})},
|
|
1122
|
-
placeholder: ${(0,
|
|
1123
|
+
placeholder: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1123
1124
|
get ansi16() {
|
|
1124
1125
|
return colors.ansi16.theme.text.prompt.input.placeholder;
|
|
1125
1126
|
},
|
|
@@ -1132,7 +1133,7 @@ function ColorsDeclaration() {
|
|
|
1132
1133
|
})}
|
|
1133
1134
|
},
|
|
1134
1135
|
description: {
|
|
1135
|
-
active: ${(0,
|
|
1136
|
+
active: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1136
1137
|
get ansi16() {
|
|
1137
1138
|
return colors.ansi16.theme.text.prompt.description.active;
|
|
1138
1139
|
},
|
|
@@ -1143,7 +1144,7 @@ function ColorsDeclaration() {
|
|
|
1143
1144
|
return colors.ansi16m.theme.text.prompt.description.active;
|
|
1144
1145
|
}
|
|
1145
1146
|
})},
|
|
1146
|
-
inactive: ${(0,
|
|
1147
|
+
inactive: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1147
1148
|
get ansi16() {
|
|
1148
1149
|
return colors.ansi16.theme.text.prompt.description.inactive;
|
|
1149
1150
|
},
|
|
@@ -1154,7 +1155,7 @@ function ColorsDeclaration() {
|
|
|
1154
1155
|
return colors.ansi16m.theme.text.prompt.description.inactive;
|
|
1155
1156
|
}
|
|
1156
1157
|
})},
|
|
1157
|
-
warning: ${(0,
|
|
1158
|
+
warning: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1158
1159
|
get ansi16() {
|
|
1159
1160
|
return colors.ansi16.theme.text.prompt.description.warning;
|
|
1160
1161
|
},
|
|
@@ -1165,7 +1166,7 @@ function ColorsDeclaration() {
|
|
|
1165
1166
|
return colors.ansi16m.theme.text.prompt.description.warning;
|
|
1166
1167
|
}
|
|
1167
1168
|
})},
|
|
1168
|
-
error: ${(0,
|
|
1169
|
+
error: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1169
1170
|
get ansi16() {
|
|
1170
1171
|
return colors.ansi16.theme.text.prompt.description.error;
|
|
1171
1172
|
},
|
|
@@ -1176,7 +1177,7 @@ function ColorsDeclaration() {
|
|
|
1176
1177
|
return colors.ansi16m.theme.text.prompt.description.error;
|
|
1177
1178
|
}
|
|
1178
1179
|
})},
|
|
1179
|
-
submitted: ${(0,
|
|
1180
|
+
submitted: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1180
1181
|
get ansi16() {
|
|
1181
1182
|
return colors.ansi16.theme.text.prompt.description.submitted;
|
|
1182
1183
|
},
|
|
@@ -1187,7 +1188,7 @@ function ColorsDeclaration() {
|
|
|
1187
1188
|
return colors.ansi16m.theme.text.prompt.description.submitted;
|
|
1188
1189
|
}
|
|
1189
1190
|
})},
|
|
1190
|
-
cancelled: ${(0,
|
|
1191
|
+
cancelled: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1191
1192
|
get ansi16() {
|
|
1192
1193
|
return colors.ansi16.theme.text.prompt.description.cancelled;
|
|
1193
1194
|
},
|
|
@@ -1198,7 +1199,7 @@ function ColorsDeclaration() {
|
|
|
1198
1199
|
return colors.ansi16m.theme.text.prompt.description.cancelled;
|
|
1199
1200
|
}
|
|
1200
1201
|
})},
|
|
1201
|
-
disabled: ${(0,
|
|
1202
|
+
disabled: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1202
1203
|
get ansi16() {
|
|
1203
1204
|
return colors.ansi16.theme.text.prompt.description.disabled;
|
|
1204
1205
|
},
|
|
@@ -1213,7 +1214,7 @@ function ColorsDeclaration() {
|
|
|
1213
1214
|
},
|
|
1214
1215
|
spinner: {
|
|
1215
1216
|
icon: {
|
|
1216
|
-
active: ${(0,
|
|
1217
|
+
active: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1217
1218
|
get ansi16() {
|
|
1218
1219
|
return colors.ansi16.theme.text.spinner.icon.active;
|
|
1219
1220
|
},
|
|
@@ -1224,7 +1225,7 @@ function ColorsDeclaration() {
|
|
|
1224
1225
|
return colors.ansi16m.theme.text.spinner.icon.active;
|
|
1225
1226
|
}
|
|
1226
1227
|
})},
|
|
1227
|
-
warning: ${(0,
|
|
1228
|
+
warning: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1228
1229
|
get ansi16() {
|
|
1229
1230
|
return colors.ansi16.theme.text.spinner.icon.warning;
|
|
1230
1231
|
},
|
|
@@ -1235,7 +1236,7 @@ function ColorsDeclaration() {
|
|
|
1235
1236
|
return colors.ansi16m.theme.text.spinner.icon.warning;
|
|
1236
1237
|
}
|
|
1237
1238
|
})},
|
|
1238
|
-
error: ${(0,
|
|
1239
|
+
error: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1239
1240
|
get ansi16() {
|
|
1240
1241
|
return colors.ansi16.theme.text.spinner.icon.error;
|
|
1241
1242
|
},
|
|
@@ -1246,7 +1247,7 @@ function ColorsDeclaration() {
|
|
|
1246
1247
|
return colors.ansi16m.theme.text.spinner.icon.error;
|
|
1247
1248
|
}
|
|
1248
1249
|
})},
|
|
1249
|
-
success: ${(0,
|
|
1250
|
+
success: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1250
1251
|
get ansi16() {
|
|
1251
1252
|
return colors.ansi16.theme.text.spinner.icon.success;
|
|
1252
1253
|
},
|
|
@@ -1257,7 +1258,7 @@ function ColorsDeclaration() {
|
|
|
1257
1258
|
return colors.ansi16m.theme.text.spinner.icon.success;
|
|
1258
1259
|
}
|
|
1259
1260
|
})},
|
|
1260
|
-
info: ${(0,
|
|
1261
|
+
info: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1261
1262
|
get ansi16() {
|
|
1262
1263
|
return colors.ansi16.theme.text.spinner.icon.info;
|
|
1263
1264
|
},
|
|
@@ -1268,7 +1269,7 @@ function ColorsDeclaration() {
|
|
|
1268
1269
|
return colors.ansi16m.theme.text.spinner.icon.info;
|
|
1269
1270
|
}
|
|
1270
1271
|
})},
|
|
1271
|
-
help: ${(0,
|
|
1272
|
+
help: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1272
1273
|
get ansi16() {
|
|
1273
1274
|
return colors.ansi16.theme.text.spinner.icon.help;
|
|
1274
1275
|
},
|
|
@@ -1281,7 +1282,7 @@ function ColorsDeclaration() {
|
|
|
1281
1282
|
})}
|
|
1282
1283
|
},
|
|
1283
1284
|
message: {
|
|
1284
|
-
active: ${(0,
|
|
1285
|
+
active: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1285
1286
|
get ansi16() {
|
|
1286
1287
|
return colors.ansi16.theme.text.spinner.message.active;
|
|
1287
1288
|
},
|
|
@@ -1292,7 +1293,7 @@ function ColorsDeclaration() {
|
|
|
1292
1293
|
return colors.ansi16m.theme.text.spinner.message.active;
|
|
1293
1294
|
}
|
|
1294
1295
|
})},
|
|
1295
|
-
warning: ${(0,
|
|
1296
|
+
warning: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1296
1297
|
get ansi16() {
|
|
1297
1298
|
return colors.ansi16.theme.text.spinner.message.warning;
|
|
1298
1299
|
},
|
|
@@ -1303,7 +1304,7 @@ function ColorsDeclaration() {
|
|
|
1303
1304
|
return colors.ansi16m.theme.text.spinner.message.warning;
|
|
1304
1305
|
}
|
|
1305
1306
|
})},
|
|
1306
|
-
error: ${(0,
|
|
1307
|
+
error: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1307
1308
|
get ansi16() {
|
|
1308
1309
|
return colors.ansi16.theme.text.spinner.message.error;
|
|
1309
1310
|
},
|
|
@@ -1314,7 +1315,7 @@ function ColorsDeclaration() {
|
|
|
1314
1315
|
return colors.ansi16m.theme.text.spinner.message.error;
|
|
1315
1316
|
}
|
|
1316
1317
|
})},
|
|
1317
|
-
success: ${(0,
|
|
1318
|
+
success: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1318
1319
|
get ansi16() {
|
|
1319
1320
|
return colors.ansi16.theme.text.spinner.message.success;
|
|
1320
1321
|
},
|
|
@@ -1325,7 +1326,7 @@ function ColorsDeclaration() {
|
|
|
1325
1326
|
return colors.ansi16m.theme.text.spinner.message.success;
|
|
1326
1327
|
}
|
|
1327
1328
|
})},
|
|
1328
|
-
info: ${(0,
|
|
1329
|
+
info: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1329
1330
|
get ansi16() {
|
|
1330
1331
|
return colors.ansi16.theme.text.spinner.message.info;
|
|
1331
1332
|
},
|
|
@@ -1336,7 +1337,7 @@ function ColorsDeclaration() {
|
|
|
1336
1337
|
return colors.ansi16m.theme.text.spinner.message.info;
|
|
1337
1338
|
}
|
|
1338
1339
|
})},
|
|
1339
|
-
help: ${(0,
|
|
1340
|
+
help: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1340
1341
|
get ansi16() {
|
|
1341
1342
|
return colors.ansi16.theme.text.spinner.message.help;
|
|
1342
1343
|
},
|
|
@@ -1353,7 +1354,7 @@ function ColorsDeclaration() {
|
|
|
1353
1354
|
border: {
|
|
1354
1355
|
banner: {
|
|
1355
1356
|
outline: {
|
|
1356
|
-
primary: ${(0,
|
|
1357
|
+
primary: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1357
1358
|
get ansi16() {
|
|
1358
1359
|
return colors.ansi16.theme.border.banner.outline.primary;
|
|
1359
1360
|
},
|
|
@@ -1364,7 +1365,7 @@ function ColorsDeclaration() {
|
|
|
1364
1365
|
return colors.ansi16m.theme.border.banner.outline.primary;
|
|
1365
1366
|
}
|
|
1366
1367
|
})},
|
|
1367
|
-
secondary: ${(0,
|
|
1368
|
+
secondary: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1368
1369
|
get ansi16() {
|
|
1369
1370
|
return colors.ansi16.theme.border.banner.outline.secondary;
|
|
1370
1371
|
},
|
|
@@ -1375,7 +1376,7 @@ function ColorsDeclaration() {
|
|
|
1375
1376
|
return colors.ansi16m.theme.border.banner.outline.secondary;
|
|
1376
1377
|
}
|
|
1377
1378
|
})},
|
|
1378
|
-
tertiary: ${(0,
|
|
1379
|
+
tertiary: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1379
1380
|
get ansi16() {
|
|
1380
1381
|
return colors.ansi16.theme.border.banner.outline.tertiary;
|
|
1381
1382
|
},
|
|
@@ -1388,7 +1389,7 @@ function ColorsDeclaration() {
|
|
|
1388
1389
|
})}
|
|
1389
1390
|
},
|
|
1390
1391
|
divider: {
|
|
1391
|
-
primary: ${(0,
|
|
1392
|
+
primary: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1392
1393
|
get ansi16() {
|
|
1393
1394
|
return colors.ansi16.theme.border.banner.divider.primary;
|
|
1394
1395
|
},
|
|
@@ -1399,7 +1400,7 @@ function ColorsDeclaration() {
|
|
|
1399
1400
|
return colors.ansi16m.theme.border.banner.divider.primary;
|
|
1400
1401
|
}
|
|
1401
1402
|
})},
|
|
1402
|
-
secondary: ${(0,
|
|
1403
|
+
secondary: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1403
1404
|
get ansi16() {
|
|
1404
1405
|
return colors.ansi16.theme.border.banner.divider.secondary;
|
|
1405
1406
|
},
|
|
@@ -1410,7 +1411,7 @@ function ColorsDeclaration() {
|
|
|
1410
1411
|
return colors.ansi16m.theme.border.banner.divider.secondary;
|
|
1411
1412
|
}
|
|
1412
1413
|
})},
|
|
1413
|
-
tertiary: ${(0,
|
|
1414
|
+
tertiary: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1414
1415
|
get ansi16() {
|
|
1415
1416
|
return colors.ansi16.theme.border.banner.divider.tertiary;
|
|
1416
1417
|
},
|
|
@@ -1425,7 +1426,7 @@ function ColorsDeclaration() {
|
|
|
1425
1426
|
},
|
|
1426
1427
|
app: {
|
|
1427
1428
|
table: {
|
|
1428
|
-
primary: ${(0,
|
|
1429
|
+
primary: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1429
1430
|
get ansi16() {
|
|
1430
1431
|
return colors.ansi16.theme.border.app.table.primary;
|
|
1431
1432
|
},
|
|
@@ -1436,7 +1437,7 @@ function ColorsDeclaration() {
|
|
|
1436
1437
|
return colors.ansi16m.theme.border.app.table.primary;
|
|
1437
1438
|
}
|
|
1438
1439
|
})},
|
|
1439
|
-
secondary: ${(0,
|
|
1440
|
+
secondary: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1440
1441
|
get ansi16() {
|
|
1441
1442
|
return colors.ansi16.theme.border.app.table.secondary;
|
|
1442
1443
|
},
|
|
@@ -1447,7 +1448,7 @@ function ColorsDeclaration() {
|
|
|
1447
1448
|
return colors.ansi16m.theme.border.app.table.secondary;
|
|
1448
1449
|
}
|
|
1449
1450
|
})},
|
|
1450
|
-
tertiary: ${(0,
|
|
1451
|
+
tertiary: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1451
1452
|
get ansi16() {
|
|
1452
1453
|
return colors.ansi16.theme.border.app.table.tertiary;
|
|
1453
1454
|
},
|
|
@@ -1460,7 +1461,7 @@ function ColorsDeclaration() {
|
|
|
1460
1461
|
})}
|
|
1461
1462
|
},
|
|
1462
1463
|
divider: {
|
|
1463
|
-
primary: ${(0,
|
|
1464
|
+
primary: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1464
1465
|
get ansi16() {
|
|
1465
1466
|
return colors.ansi16.theme.border.app.divider.primary;
|
|
1466
1467
|
},
|
|
@@ -1471,7 +1472,7 @@ function ColorsDeclaration() {
|
|
|
1471
1472
|
return colors.ansi16m.theme.border.app.divider.primary;
|
|
1472
1473
|
}
|
|
1473
1474
|
})},
|
|
1474
|
-
secondary: ${(0,
|
|
1475
|
+
secondary: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1475
1476
|
get ansi16() {
|
|
1476
1477
|
return colors.ansi16.theme.border.app.divider.secondary;
|
|
1477
1478
|
},
|
|
@@ -1482,7 +1483,7 @@ function ColorsDeclaration() {
|
|
|
1482
1483
|
return colors.ansi16m.theme.border.app.divider.secondary;
|
|
1483
1484
|
}
|
|
1484
1485
|
})},
|
|
1485
|
-
tertiary: ${(0,
|
|
1486
|
+
tertiary: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1486
1487
|
get ansi16() {
|
|
1487
1488
|
return colors.ansi16.theme.border.app.divider.tertiary;
|
|
1488
1489
|
},
|
|
@@ -1497,7 +1498,7 @@ function ColorsDeclaration() {
|
|
|
1497
1498
|
},
|
|
1498
1499
|
message: {
|
|
1499
1500
|
outline: {
|
|
1500
|
-
help: ${(0,
|
|
1501
|
+
help: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1501
1502
|
get ansi16() {
|
|
1502
1503
|
return colors.ansi16.theme.border.message.outline.help;
|
|
1503
1504
|
},
|
|
@@ -1508,7 +1509,7 @@ function ColorsDeclaration() {
|
|
|
1508
1509
|
return colors.ansi16m.theme.border.message.outline.help;
|
|
1509
1510
|
}
|
|
1510
1511
|
})},
|
|
1511
|
-
success: ${(0,
|
|
1512
|
+
success: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1512
1513
|
get ansi16() {
|
|
1513
1514
|
return colors.ansi16.theme.border.message.outline.success;
|
|
1514
1515
|
},
|
|
@@ -1519,7 +1520,7 @@ function ColorsDeclaration() {
|
|
|
1519
1520
|
return colors.ansi16m.theme.border.message.outline.success;
|
|
1520
1521
|
}
|
|
1521
1522
|
})},
|
|
1522
|
-
info: ${(0,
|
|
1523
|
+
info: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1523
1524
|
get ansi16() {
|
|
1524
1525
|
return colors.ansi16.theme.border.message.outline.info;
|
|
1525
1526
|
},
|
|
@@ -1530,7 +1531,7 @@ function ColorsDeclaration() {
|
|
|
1530
1531
|
return colors.ansi16m.theme.border.message.outline.info;
|
|
1531
1532
|
}
|
|
1532
1533
|
})},
|
|
1533
|
-
debug: ${(0,
|
|
1534
|
+
debug: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1534
1535
|
get ansi16() {
|
|
1535
1536
|
return colors.ansi16.theme.border.message.outline.debug;
|
|
1536
1537
|
},
|
|
@@ -1541,7 +1542,7 @@ function ColorsDeclaration() {
|
|
|
1541
1542
|
return colors.ansi16m.theme.border.message.outline.debug;
|
|
1542
1543
|
}
|
|
1543
1544
|
})},
|
|
1544
|
-
warning: ${(0,
|
|
1545
|
+
warning: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1545
1546
|
get ansi16() {
|
|
1546
1547
|
return colors.ansi16.theme.border.message.outline.warning;
|
|
1547
1548
|
},
|
|
@@ -1552,7 +1553,7 @@ function ColorsDeclaration() {
|
|
|
1552
1553
|
return colors.ansi16m.theme.border.message.outline.warning;
|
|
1553
1554
|
}
|
|
1554
1555
|
})},
|
|
1555
|
-
danger: ${(0,
|
|
1556
|
+
danger: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1556
1557
|
get ansi16() {
|
|
1557
1558
|
return colors.ansi16.theme.border.message.outline.danger;
|
|
1558
1559
|
},
|
|
@@ -1563,7 +1564,7 @@ function ColorsDeclaration() {
|
|
|
1563
1564
|
return colors.ansi16m.theme.border.message.outline.danger;
|
|
1564
1565
|
}
|
|
1565
1566
|
})},
|
|
1566
|
-
error: ${(0,
|
|
1567
|
+
error: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1567
1568
|
get ansi16() {
|
|
1568
1569
|
return colors.ansi16.theme.border.message.outline.error;
|
|
1569
1570
|
},
|
|
@@ -1576,7 +1577,7 @@ function ColorsDeclaration() {
|
|
|
1576
1577
|
})}
|
|
1577
1578
|
},
|
|
1578
1579
|
divider: {
|
|
1579
|
-
help: ${(0,
|
|
1580
|
+
help: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1580
1581
|
get ansi16() {
|
|
1581
1582
|
return colors.ansi16.theme.border.message.divider.help;
|
|
1582
1583
|
},
|
|
@@ -1587,7 +1588,7 @@ function ColorsDeclaration() {
|
|
|
1587
1588
|
return colors.ansi16m.theme.border.message.divider.help;
|
|
1588
1589
|
}
|
|
1589
1590
|
})},
|
|
1590
|
-
success: ${(0,
|
|
1591
|
+
success: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1591
1592
|
get ansi16() {
|
|
1592
1593
|
return colors.ansi16.theme.border.message.divider.success;
|
|
1593
1594
|
},
|
|
@@ -1598,7 +1599,7 @@ function ColorsDeclaration() {
|
|
|
1598
1599
|
return colors.ansi16m.theme.border.message.divider.success;
|
|
1599
1600
|
}
|
|
1600
1601
|
})},
|
|
1601
|
-
info: ${(0,
|
|
1602
|
+
info: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1602
1603
|
get ansi16() {
|
|
1603
1604
|
return colors.ansi16.theme.border.message.divider.info;
|
|
1604
1605
|
},
|
|
@@ -1609,7 +1610,7 @@ function ColorsDeclaration() {
|
|
|
1609
1610
|
return colors.ansi16m.theme.border.message.divider.info;
|
|
1610
1611
|
}
|
|
1611
1612
|
})},
|
|
1612
|
-
debug: ${(0,
|
|
1613
|
+
debug: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1613
1614
|
get ansi16() {
|
|
1614
1615
|
return colors.ansi16.theme.border.message.divider.debug;
|
|
1615
1616
|
},
|
|
@@ -1620,7 +1621,7 @@ function ColorsDeclaration() {
|
|
|
1620
1621
|
return colors.ansi16m.theme.border.message.divider.debug;
|
|
1621
1622
|
}
|
|
1622
1623
|
})},
|
|
1623
|
-
warning: ${(0,
|
|
1624
|
+
warning: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1624
1625
|
get ansi16() {
|
|
1625
1626
|
return colors.ansi16.theme.border.message.divider.warning;
|
|
1626
1627
|
},
|
|
@@ -1631,7 +1632,7 @@ function ColorsDeclaration() {
|
|
|
1631
1632
|
return colors.ansi16m.theme.border.message.divider.warning;
|
|
1632
1633
|
}
|
|
1633
1634
|
})},
|
|
1634
|
-
danger: ${(0,
|
|
1635
|
+
danger: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1635
1636
|
get ansi16() {
|
|
1636
1637
|
return colors.ansi16.theme.border.message.divider.danger;
|
|
1637
1638
|
},
|
|
@@ -1642,7 +1643,7 @@ function ColorsDeclaration() {
|
|
|
1642
1643
|
return colors.ansi16m.theme.border.message.divider.danger;
|
|
1643
1644
|
}
|
|
1644
1645
|
})},
|
|
1645
|
-
error: ${(0,
|
|
1646
|
+
error: ${(0, _alloy_js_core_jsx_runtime.createComponent)(ColorFunction, {
|
|
1646
1647
|
get ansi16() {
|
|
1647
1648
|
return colors.ansi16.theme.border.message.divider.error;
|
|
1648
1649
|
},
|
|
@@ -1664,12 +1665,11 @@ function ColorsDeclaration() {
|
|
|
1664
1665
|
];
|
|
1665
1666
|
}
|
|
1666
1667
|
/**
|
|
1667
|
-
* A component to generate the `
|
|
1668
|
+
* A component to generate the `splitText` function in the `shell-shock:console` builtin module.
|
|
1668
1669
|
*/
|
|
1669
|
-
function
|
|
1670
|
-
const theme = (0, __shell_shock_plugin_theme_contexts_theme.useTheme)();
|
|
1670
|
+
function SplitTextFunctionDeclaration() {
|
|
1671
1671
|
return [
|
|
1672
|
-
(0,
|
|
1672
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.FunctionDeclaration, {
|
|
1673
1673
|
name: "adjustIndex",
|
|
1674
1674
|
parameters: [{
|
|
1675
1675
|
name: "line",
|
|
@@ -1679,7 +1679,7 @@ function WriteLineFunctionDeclaration() {
|
|
|
1679
1679
|
type: "number"
|
|
1680
1680
|
}],
|
|
1681
1681
|
returnType: "number",
|
|
1682
|
-
children:
|
|
1682
|
+
children: _alloy_js_core.code`let adjustedIndex = 0;
|
|
1683
1683
|
|
|
1684
1684
|
const segments = line.match(/\\x1b\\[(\\d|;)+m.*\\x1b\\[(\\d|;)+m/gi);
|
|
1685
1685
|
if (segments && segments.length > 0) {
|
|
@@ -1703,8 +1703,8 @@ function WriteLineFunctionDeclaration() {
|
|
|
1703
1703
|
|
|
1704
1704
|
return adjustedIndex - (line.slice(0, adjustedIndex).match(/\\x1b\\[/g)?.length ?? 0); `
|
|
1705
1705
|
}),
|
|
1706
|
-
(0,
|
|
1707
|
-
(0,
|
|
1706
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
1707
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.FunctionDeclaration, {
|
|
1708
1708
|
name: "breakLine",
|
|
1709
1709
|
parameters: [{
|
|
1710
1710
|
name: "line",
|
|
@@ -1714,7 +1714,7 @@ function WriteLineFunctionDeclaration() {
|
|
|
1714
1714
|
type: "number"
|
|
1715
1715
|
}],
|
|
1716
1716
|
returnType: "[string, string]",
|
|
1717
|
-
children:
|
|
1717
|
+
children: _alloy_js_core.code`const first = line.slice(0, index);
|
|
1718
1718
|
const second = line.slice(index);
|
|
1719
1719
|
|
|
1720
1720
|
// Match all ANSI escape sequences in the first string
|
|
@@ -1764,25 +1764,25 @@ function WriteLineFunctionDeclaration() {
|
|
|
1764
1764
|
|
|
1765
1765
|
return [first.replace(/^\\s+/, "").replace(/\\s+$/, "") + closeSequence, openSequence + second.replace(/^\\s+/, "").replace(/\\s+$/, "")]; `
|
|
1766
1766
|
}),
|
|
1767
|
-
(0,
|
|
1768
|
-
(0,
|
|
1767
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
1768
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
|
|
1769
1769
|
heading: "Split text into multiple lines based on a maximum length.",
|
|
1770
1770
|
get children() {
|
|
1771
1771
|
return [
|
|
1772
|
-
(0,
|
|
1773
|
-
(0,
|
|
1774
|
-
(0,
|
|
1772
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocRemarks, { children: `This function splits the provided text into multiple lines based on the specified maximum length, ensuring that words are not broken in the middle.` }),
|
|
1773
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
1774
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocParam, {
|
|
1775
1775
|
name: "text",
|
|
1776
1776
|
children: `The text to split into multiple lines.`
|
|
1777
1777
|
}),
|
|
1778
|
-
(0,
|
|
1778
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocParam, {
|
|
1779
1779
|
name: "maxLength",
|
|
1780
1780
|
children: `The maximum length of each line.`
|
|
1781
1781
|
})
|
|
1782
1782
|
];
|
|
1783
1783
|
}
|
|
1784
1784
|
}),
|
|
1785
|
-
(0,
|
|
1785
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.FunctionDeclaration, {
|
|
1786
1786
|
"export": true,
|
|
1787
1787
|
name: "splitText",
|
|
1788
1788
|
parameters: [{
|
|
@@ -1792,7 +1792,7 @@ function WriteLineFunctionDeclaration() {
|
|
|
1792
1792
|
name: "maxLength",
|
|
1793
1793
|
type: "number | SizeToken"
|
|
1794
1794
|
}],
|
|
1795
|
-
children:
|
|
1795
|
+
children: _alloy_js_core.code`
|
|
1796
1796
|
let line = text;
|
|
1797
1797
|
let result = [] as string[];
|
|
1798
1798
|
|
|
@@ -1831,54 +1831,61 @@ function WriteLineFunctionDeclaration() {
|
|
|
1831
1831
|
result.push(line);
|
|
1832
1832
|
return result;
|
|
1833
1833
|
`
|
|
1834
|
-
})
|
|
1835
|
-
|
|
1836
|
-
|
|
1834
|
+
})
|
|
1835
|
+
];
|
|
1836
|
+
}
|
|
1837
|
+
/**
|
|
1838
|
+
* A component to generate the `writeLine` function in the `shell-shock:console` builtin module.
|
|
1839
|
+
*/
|
|
1840
|
+
function WriteLineFunctionDeclaration() {
|
|
1841
|
+
const theme = (0, _shell_shock_plugin_theme_contexts_theme.useTheme)();
|
|
1842
|
+
return [
|
|
1843
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceDeclaration, {
|
|
1837
1844
|
"export": true,
|
|
1838
1845
|
name: "WriteLineOptions",
|
|
1839
1846
|
doc: "Options for writing a line to the console.",
|
|
1840
1847
|
get children() {
|
|
1841
1848
|
return [
|
|
1842
|
-
(0,
|
|
1849
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
|
|
1843
1850
|
heading: "Padding to apply to the line",
|
|
1844
1851
|
get children() {
|
|
1845
|
-
return (0,
|
|
1852
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocRemarks, { children: `The amount of padding (in spaces) to apply to the line when writing to the console. This value is applied to both the left and right sides of the line. If not specified, the default padding defined in the current theme configuration will be used.` });
|
|
1846
1853
|
}
|
|
1847
1854
|
}),
|
|
1848
|
-
(0,
|
|
1855
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceMember, {
|
|
1849
1856
|
name: "padding",
|
|
1850
1857
|
optional: true,
|
|
1851
1858
|
type: "number"
|
|
1852
1859
|
}),
|
|
1853
|
-
(0,
|
|
1854
|
-
(0,
|
|
1860
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
1861
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
|
|
1855
1862
|
heading: "Console function to use for writing the line",
|
|
1856
1863
|
get children() {
|
|
1857
1864
|
return [
|
|
1858
|
-
(0,
|
|
1859
|
-
(0,
|
|
1860
|
-
(0,
|
|
1865
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocRemarks, { children: `The console function to use for writing the line. If not specified, the default console function \`console.log\` will be used.` }),
|
|
1866
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
1867
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocDefaultValue, {
|
|
1861
1868
|
get type() {
|
|
1862
|
-
return
|
|
1869
|
+
return _powerlines_deepkit_vendor_type.ReflectionKind.method;
|
|
1863
1870
|
},
|
|
1864
1871
|
defaultValue: `\`console.log\``
|
|
1865
1872
|
})
|
|
1866
1873
|
];
|
|
1867
1874
|
}
|
|
1868
1875
|
}),
|
|
1869
|
-
(0,
|
|
1876
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceMember, {
|
|
1870
1877
|
name: "consoleFn",
|
|
1871
1878
|
optional: true,
|
|
1872
1879
|
type: "(text: string) => void"
|
|
1873
1880
|
}),
|
|
1874
|
-
(0,
|
|
1875
|
-
(0,
|
|
1881
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
1882
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
|
|
1876
1883
|
heading: "Color of the line text",
|
|
1877
1884
|
get children() {
|
|
1878
|
-
return [(0,
|
|
1885
|
+
return [(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocRemarks, { children: `The color to apply to the line text when writing to the console. This can be one of the predefined color themes: "primary", "secondary", or "tertiary". If not specified, no specific coloring will be applied to the text (the default/system terminal text color will likely be used).` }), (0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
|
|
1879
1886
|
}
|
|
1880
1887
|
}),
|
|
1881
|
-
(0,
|
|
1888
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceMember, {
|
|
1882
1889
|
name: "color",
|
|
1883
1890
|
optional: true,
|
|
1884
1891
|
type: "\"primary\" | \"secondary\" | \"tertiary\""
|
|
@@ -1886,25 +1893,25 @@ function WriteLineFunctionDeclaration() {
|
|
|
1886
1893
|
];
|
|
1887
1894
|
}
|
|
1888
1895
|
}),
|
|
1889
|
-
(0,
|
|
1890
|
-
(0,
|
|
1896
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
1897
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
|
|
1891
1898
|
heading: "Write a line to the console.",
|
|
1892
1899
|
get children() {
|
|
1893
1900
|
return [
|
|
1894
|
-
(0,
|
|
1895
|
-
(0,
|
|
1896
|
-
(0,
|
|
1901
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocRemarks, { children: `This function writes a line to the console, applying the appropriate padding as defined in the current theme configuration and wrapping as needed.` }),
|
|
1902
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
1903
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocParam, {
|
|
1897
1904
|
name: "text",
|
|
1898
1905
|
children: `The line text to write to the console.`
|
|
1899
1906
|
}),
|
|
1900
|
-
(0,
|
|
1907
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocParam, {
|
|
1901
1908
|
name: "options",
|
|
1902
1909
|
children: `The options to apply when writing the line to the console.`
|
|
1903
1910
|
})
|
|
1904
1911
|
];
|
|
1905
1912
|
}
|
|
1906
1913
|
}),
|
|
1907
|
-
(0,
|
|
1914
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.FunctionDeclaration, {
|
|
1908
1915
|
"export": true,
|
|
1909
1916
|
name: "writeLine",
|
|
1910
1917
|
parameters: [{
|
|
@@ -1917,7 +1924,7 @@ function WriteLineFunctionDeclaration() {
|
|
|
1917
1924
|
default: "{}"
|
|
1918
1925
|
}],
|
|
1919
1926
|
get children() {
|
|
1920
|
-
return
|
|
1927
|
+
return _alloy_js_core.code`const consoleFn = options.consoleFn ?? console.log;
|
|
1921
1928
|
const color = options.color;
|
|
1922
1929
|
if (text === undefined || text === null || text === "") {
|
|
1923
1930
|
consoleFn("");
|
|
@@ -1935,22 +1942,22 @@ consoleFn(\`\${" ".repeat(Math.max(options.padding ?? ${theme.padding.app}, 0))}
|
|
|
1935
1942
|
*/
|
|
1936
1943
|
function MessageFunctionDeclaration(props) {
|
|
1937
1944
|
const { type, variant, consoleFnName, description, prefix, parameters, timestamp, color = variant } = props;
|
|
1938
|
-
const theme = (0,
|
|
1939
|
-
return [(0,
|
|
1945
|
+
const theme = (0, _shell_shock_plugin_theme_contexts_theme.useTheme)();
|
|
1946
|
+
return [(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
|
|
1940
1947
|
get heading() {
|
|
1941
|
-
return `Write ${(0,
|
|
1948
|
+
return `Write ${(0, _stryke_string_format_vowels.getIndefiniteArticle)(description)} ${description} message to the console.`;
|
|
1942
1949
|
},
|
|
1943
1950
|
get children() {
|
|
1944
1951
|
return [
|
|
1945
|
-
(0,
|
|
1946
|
-
(0,
|
|
1947
|
-
(0,
|
|
1952
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocRemarks, { children: `This function initializes the Powerlines environment configuration object.` }),
|
|
1953
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
1954
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocParam, {
|
|
1948
1955
|
name: "message",
|
|
1949
1956
|
children: `The message to write to the console.`
|
|
1950
1957
|
})
|
|
1951
1958
|
];
|
|
1952
1959
|
}
|
|
1953
|
-
}), (0,
|
|
1960
|
+
}), (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.FunctionDeclaration, {
|
|
1954
1961
|
"export": true,
|
|
1955
1962
|
name: type,
|
|
1956
1963
|
parameters: parameters ?? [{
|
|
@@ -1959,25 +1966,24 @@ function MessageFunctionDeclaration(props) {
|
|
|
1959
1966
|
optional: false
|
|
1960
1967
|
}],
|
|
1961
1968
|
get children() {
|
|
1962
|
-
return [(0,
|
|
1969
|
+
return [(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
|
|
1963
1970
|
get when() {
|
|
1964
1971
|
return Boolean(prefix);
|
|
1965
1972
|
},
|
|
1966
1973
|
get children() {
|
|
1967
1974
|
return [
|
|
1968
1975
|
prefix,
|
|
1969
|
-
(0,
|
|
1970
|
-
(0,
|
|
1976
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
1977
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})
|
|
1971
1978
|
];
|
|
1972
1979
|
}
|
|
1973
|
-
}), (0,
|
|
1980
|
+
}), (0, _alloy_js_core_jsx_runtime.memo)(() => _alloy_js_core.code`
|
|
1974
1981
|
if (!message) {
|
|
1975
1982
|
return;
|
|
1976
1983
|
}
|
|
1977
1984
|
|
|
1978
1985
|
${!theme.labels.message.footer[variant] && timestamp ? `const timestamp = \`\${colors.text.message.footer.${color}(new Date().toLocaleDateString())} \${colors.border.message.outline.${color}("${theme.borderStyles.message.outline[variant].bottom}")} \${colors.text.message.footer.${color}(new Date().toLocaleTimeString())}\`; ` : ""}
|
|
1979
1986
|
|
|
1980
|
-
writeLine("");
|
|
1981
1987
|
writeLine(colors.border.message.outline.${color}("${theme.borderStyles.message.outline[variant].topLeft}") + ${theme.labels.message.header[variant] || theme.icons.message.header[variant] ? `colors.border.message.outline.${color}("${theme.borderStyles.message.outline[variant].top}".repeat(4)) + " " + ${theme.icons.message.header[variant] ? `colors.border.message.outline.${color}("${theme.icons.message.header[variant]}") + " " +` : ""} colors.bold(colors.text.message.header.${color}("${theme.labels.message.header[variant]}")) + " " + colors.border.message.outline.${color}("${theme.borderStyles.message.outline[variant].top}".repeat(Math.max(process.stdout.columns - ${Math.max(theme.padding.app, 0) * 2 + theme.borderStyles.message.outline[variant].topLeft.length + 4 + (theme.icons.message.header[variant] ? 2 + (theme.labels.message.header[variant] ? 0 : 1) : 0) + (theme.labels.message.header[variant] ? theme.labels.message.header[variant].length + 2 : 0) + theme.borderStyles.message.outline[variant].topRight.length}, 0)))` : `colors.border.message.outline.${color}("${theme.borderStyles.message.outline[variant].top}".repeat(Math.max(process.stdout.columns - ${Math.max(theme.padding.app, 0) * 2 + theme.borderStyles.message.outline[variant].topLeft.length + theme.borderStyles.message.outline[variant].topRight.length}, 0)))`} + colors.border.message.outline.${color}("${theme.borderStyles.message.outline[variant].topRight}"), { consoleFn: console.${consoleFnName} });
|
|
1982
1988
|
splitText(
|
|
1983
1989
|
message,
|
|
@@ -1994,28 +2000,28 @@ function MessageFunctionDeclaration(props) {
|
|
|
1994
2000
|
* A component to generate the `wrapAnsi` function in the `shell-shock:console` builtin module.
|
|
1995
2001
|
*/
|
|
1996
2002
|
function WrapAnsiFunction() {
|
|
1997
|
-
return [(0,
|
|
2003
|
+
return [(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
|
|
1998
2004
|
heading: "Applies ANSI escape codes to a string.",
|
|
1999
2005
|
get children() {
|
|
2000
2006
|
return [
|
|
2001
|
-
(0,
|
|
2002
|
-
(0,
|
|
2003
|
-
(0,
|
|
2007
|
+
(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.` }),
|
|
2008
|
+
(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"` }),
|
|
2009
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocParam, {
|
|
2004
2010
|
name: "text",
|
|
2005
2011
|
children: `The text to apply ANSI codes to.`
|
|
2006
2012
|
}),
|
|
2007
|
-
(0,
|
|
2013
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocParam, {
|
|
2008
2014
|
name: "open",
|
|
2009
2015
|
children: `The opening ANSI code.`
|
|
2010
2016
|
}),
|
|
2011
|
-
(0,
|
|
2017
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocParam, {
|
|
2012
2018
|
name: "close",
|
|
2013
2019
|
children: `The closing ANSI code.`
|
|
2014
2020
|
}),
|
|
2015
|
-
(0,
|
|
2021
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocReturns, { children: `The text with ANSI codes applied.` })
|
|
2016
2022
|
];
|
|
2017
2023
|
}
|
|
2018
|
-
}), (0,
|
|
2024
|
+
}), (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.FunctionDeclaration, {
|
|
2019
2025
|
name: "wrapAnsi",
|
|
2020
2026
|
parameters: [
|
|
2021
2027
|
{
|
|
@@ -2034,7 +2040,7 @@ function WrapAnsiFunction() {
|
|
|
2034
2040
|
optional: false
|
|
2035
2041
|
}
|
|
2036
2042
|
],
|
|
2037
|
-
children:
|
|
2043
|
+
children: _alloy_js_core.code`const str = String(text);
|
|
2038
2044
|
const tokens = [] as string[];
|
|
2039
2045
|
|
|
2040
2046
|
let last = 0;
|
|
@@ -2074,19 +2080,19 @@ function WrapAnsiFunction() {
|
|
|
2074
2080
|
* A component to generate the `stripAnsi` function in the `shell-shock:console` builtin module.
|
|
2075
2081
|
*/
|
|
2076
2082
|
function StripAnsiFunctionDeclaration() {
|
|
2077
|
-
return [(0,
|
|
2083
|
+
return [(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
|
|
2078
2084
|
heading: "Removes ANSI escape codes from a string.",
|
|
2079
2085
|
get children() {
|
|
2080
2086
|
return [
|
|
2081
|
-
(0,
|
|
2082
|
-
(0,
|
|
2087
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocExample, { children: `const result = stripAnsi("Hello\\\\x1b[31mWorld\\\\x1b[0mAgain"); // "HelloWorldAgain"` }),
|
|
2088
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocParam, {
|
|
2083
2089
|
name: "text",
|
|
2084
2090
|
children: `The text to strip ANSI codes from.`
|
|
2085
2091
|
}),
|
|
2086
|
-
(0,
|
|
2092
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocReturns, { children: `The text with ANSI codes removed.` })
|
|
2087
2093
|
];
|
|
2088
2094
|
}
|
|
2089
|
-
}), (0,
|
|
2095
|
+
}), (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.FunctionDeclaration, {
|
|
2090
2096
|
"export": true,
|
|
2091
2097
|
name: "stripAnsi",
|
|
2092
2098
|
parameters: [{
|
|
@@ -2094,7 +2100,7 @@ function StripAnsiFunctionDeclaration() {
|
|
|
2094
2100
|
type: "string | number",
|
|
2095
2101
|
optional: false
|
|
2096
2102
|
}],
|
|
2097
|
-
children:
|
|
2103
|
+
children: _alloy_js_core.code`return String(text).replace(new RegExp([
|
|
2098
2104
|
String.raw\`[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)\`,
|
|
2099
2105
|
String.raw\`(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))\`
|
|
2100
2106
|
].join("|"), "g"), "");`
|
|
@@ -2104,45 +2110,45 @@ function StripAnsiFunctionDeclaration() {
|
|
|
2104
2110
|
* A component to generate the `stripAnsi` function in the `shell-shock:console` builtin module.
|
|
2105
2111
|
*/
|
|
2106
2112
|
function DividerFunctionDeclaration() {
|
|
2107
|
-
const theme = (0,
|
|
2113
|
+
const theme = (0, _shell_shock_plugin_theme_contexts_theme.useTheme)();
|
|
2108
2114
|
return [
|
|
2109
|
-
(0,
|
|
2115
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceDeclaration, {
|
|
2110
2116
|
"export": true,
|
|
2111
2117
|
name: "DividerOptions",
|
|
2112
2118
|
doc: "Options for formatting the divider line written to console.",
|
|
2113
2119
|
get children() {
|
|
2114
2120
|
return [
|
|
2115
|
-
(0,
|
|
2121
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceMember, {
|
|
2116
2122
|
name: "width",
|
|
2117
2123
|
optional: true,
|
|
2118
2124
|
type: "number",
|
|
2119
2125
|
doc: "The width of the divider line. If not specified, the divider will span the full width of the console, minus the padding."
|
|
2120
2126
|
}),
|
|
2121
|
-
(0,
|
|
2122
|
-
(0,
|
|
2127
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
2128
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
|
|
2123
2129
|
heading: "The border of the divider line. Can be 'primary', 'secondary', 'tertiary', or 'none'. If not specified, the default border style will be used.",
|
|
2124
2130
|
get children() {
|
|
2125
|
-
return [(0,
|
|
2131
|
+
return [(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocRemarks, { children: `The value provided will determine the border style and color based on the current theme configuration.` }), (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocDefaultValue, {
|
|
2126
2132
|
get type() {
|
|
2127
|
-
return
|
|
2133
|
+
return _powerlines_deepkit_vendor_type.ReflectionKind.string;
|
|
2128
2134
|
},
|
|
2129
2135
|
defaultValue: "primary"
|
|
2130
2136
|
})];
|
|
2131
2137
|
}
|
|
2132
2138
|
}),
|
|
2133
|
-
(0,
|
|
2139
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceMember, {
|
|
2134
2140
|
name: "border",
|
|
2135
2141
|
optional: true,
|
|
2136
2142
|
type: "\"primary\" | \"secondary\" | \"tertiary\"",
|
|
2137
2143
|
doc: "The border style/color of the divider line. Can be 'primary', 'secondary', 'tertiary', or 'none'. If not specified, the default border style will be used."
|
|
2138
2144
|
}),
|
|
2139
|
-
(0,
|
|
2140
|
-
(0,
|
|
2145
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
2146
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
|
|
2141
2147
|
heading: "Padding to apply to the line",
|
|
2142
2148
|
get children() {
|
|
2143
|
-
return [(0,
|
|
2149
|
+
return [(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocRemarks, { children: `The amount of padding (in spaces) to apply to the line when writing to the console. This value is applied to both the left and right sides of the line. If not specified, the default padding defined in the current theme configuration will be used.` }), (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocDefaultValue, {
|
|
2144
2150
|
get type() {
|
|
2145
|
-
return
|
|
2151
|
+
return _powerlines_deepkit_vendor_type.ReflectionKind.number;
|
|
2146
2152
|
},
|
|
2147
2153
|
get defaultValue() {
|
|
2148
2154
|
return theme.padding.app * 4;
|
|
@@ -2150,7 +2156,7 @@ function DividerFunctionDeclaration() {
|
|
|
2150
2156
|
})];
|
|
2151
2157
|
}
|
|
2152
2158
|
}),
|
|
2153
|
-
(0,
|
|
2159
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceMember, {
|
|
2154
2160
|
name: "padding",
|
|
2155
2161
|
optional: true,
|
|
2156
2162
|
type: "number"
|
|
@@ -2158,17 +2164,17 @@ function DividerFunctionDeclaration() {
|
|
|
2158
2164
|
];
|
|
2159
2165
|
}
|
|
2160
2166
|
}),
|
|
2161
|
-
(0,
|
|
2162
|
-
(0,
|
|
2167
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
2168
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
|
|
2163
2169
|
heading: "Write a divider line to the console.",
|
|
2164
2170
|
get children() {
|
|
2165
|
-
return [(0,
|
|
2171
|
+
return [(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocExample, { children: `divider({ width: 50, border: "primary" }); // Writes a divider line of width 50 with primary border.` }), (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocParam, {
|
|
2166
2172
|
name: "options",
|
|
2167
2173
|
children: `Options for formatting the divider line.`
|
|
2168
2174
|
})];
|
|
2169
2175
|
}
|
|
2170
2176
|
}),
|
|
2171
|
-
(0,
|
|
2177
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.FunctionDeclaration, {
|
|
2172
2178
|
"export": true,
|
|
2173
2179
|
name: "divider",
|
|
2174
2180
|
parameters: [{
|
|
@@ -2177,7 +2183,7 @@ function DividerFunctionDeclaration() {
|
|
|
2177
2183
|
optional: false
|
|
2178
2184
|
}],
|
|
2179
2185
|
get children() {
|
|
2180
|
-
return
|
|
2186
|
+
return _alloy_js_core.code`const padding = options.padding ?? ${Math.max(theme.padding.app, 1) * 4};
|
|
2181
2187
|
const width = options.width ?? (process.stdout.columns - (Math.max(padding, 0) * 2));
|
|
2182
2188
|
const border = options.border === "tertiary" ? colors.border.app.divider.tertiary("${theme.borderStyles.app.divider.tertiary.top}") : options.border === "secondary" ? colors.border.app.divider.secondary("${theme.borderStyles.app.divider.secondary.top}") : colors.border.app.divider.primary("${theme.borderStyles.app.divider.primary.top}");
|
|
2183
2189
|
|
|
@@ -2191,22 +2197,22 @@ function DividerFunctionDeclaration() {
|
|
|
2191
2197
|
* A component to generate the `link` function in the `shell-shock:console` builtin module.
|
|
2192
2198
|
*/
|
|
2193
2199
|
function LinkFunctionDeclaration() {
|
|
2194
|
-
return [(0,
|
|
2200
|
+
return [(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
|
|
2195
2201
|
heading: "Render a hyperlink in the console.",
|
|
2196
2202
|
get children() {
|
|
2197
2203
|
return [
|
|
2198
|
-
(0,
|
|
2204
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocParam, {
|
|
2199
2205
|
name: "url",
|
|
2200
2206
|
children: `The URL to render as a hyperlink.`
|
|
2201
2207
|
}),
|
|
2202
|
-
(0,
|
|
2208
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocParam, {
|
|
2203
2209
|
name: "text",
|
|
2204
2210
|
children: `The text to display for the link. If not provided, the URL will be used as the text.`
|
|
2205
2211
|
}),
|
|
2206
|
-
(0,
|
|
2212
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocReturns, { children: `The formatted hyperlink string.` })
|
|
2207
2213
|
];
|
|
2208
2214
|
}
|
|
2209
|
-
}), (0,
|
|
2215
|
+
}), (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.FunctionDeclaration, {
|
|
2210
2216
|
"export": true,
|
|
2211
2217
|
name: "link",
|
|
2212
2218
|
parameters: [{
|
|
@@ -2220,17 +2226,17 @@ function LinkFunctionDeclaration() {
|
|
|
2220
2226
|
}],
|
|
2221
2227
|
get children() {
|
|
2222
2228
|
return [
|
|
2223
|
-
(0,
|
|
2224
|
-
condition:
|
|
2225
|
-
children:
|
|
2229
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.IfStatement, {
|
|
2230
|
+
condition: _alloy_js_core.code`isHyperlinkSupported()`,
|
|
2231
|
+
children: _alloy_js_core.code`return \`\\x1b]8;;\${url}\\u0007\${text ?? url}\\x1b]8;;\\u0007\`;`
|
|
2226
2232
|
}),
|
|
2227
|
-
(0,
|
|
2228
|
-
(0,
|
|
2229
|
-
condition:
|
|
2230
|
-
children:
|
|
2233
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
2234
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.IfStatement, {
|
|
2235
|
+
condition: _alloy_js_core.code`isColorSupported`,
|
|
2236
|
+
children: _alloy_js_core.code`return colors.underline(colors.text.body.link(\`$\{text ?? url\} $\{url\}\`));`
|
|
2231
2237
|
}),
|
|
2232
|
-
(0,
|
|
2233
|
-
|
|
2238
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
2239
|
+
_alloy_js_core.code`return \`$\{text ?? url\} $\{url\}\`;`
|
|
2234
2240
|
];
|
|
2235
2241
|
}
|
|
2236
2242
|
})];
|
|
@@ -2239,40 +2245,40 @@ function LinkFunctionDeclaration() {
|
|
|
2239
2245
|
* A component to generate the `spinner` function in the `shell-shock:console` builtin module.
|
|
2240
2246
|
*/
|
|
2241
2247
|
function SpinnerFunctionDeclaration() {
|
|
2242
|
-
const theme = (0,
|
|
2248
|
+
const theme = (0, _shell_shock_plugin_theme_contexts_theme.useTheme)();
|
|
2243
2249
|
return [
|
|
2244
|
-
(0,
|
|
2250
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.TypeDeclaration, {
|
|
2245
2251
|
name: "WriteStream",
|
|
2246
2252
|
children: `NodeJS.WriteStream;`
|
|
2247
2253
|
}),
|
|
2248
|
-
(0,
|
|
2249
|
-
(0,
|
|
2254
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
2255
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.VarDeclaration, {
|
|
2250
2256
|
"const": true,
|
|
2251
2257
|
name: "activeHooksPerStream",
|
|
2252
2258
|
initializer: "new Set();"
|
|
2253
2259
|
}),
|
|
2254
|
-
(0,
|
|
2255
|
-
(0,
|
|
2260
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
2261
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceDeclaration, {
|
|
2256
2262
|
"export": true,
|
|
2257
2263
|
name: "SpinnerOptions",
|
|
2258
2264
|
doc: "Options for configuring the spinner.",
|
|
2259
2265
|
get children() {
|
|
2260
2266
|
return [
|
|
2261
|
-
(0,
|
|
2267
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceMember, {
|
|
2262
2268
|
name: "message",
|
|
2263
2269
|
optional: true,
|
|
2264
2270
|
type: "string",
|
|
2265
2271
|
doc: "The message text to display next to the spinner. Defaults to an empty string."
|
|
2266
2272
|
}),
|
|
2267
|
-
(0,
|
|
2268
|
-
(0,
|
|
2273
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
2274
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceMember, {
|
|
2269
2275
|
name: "stream",
|
|
2270
2276
|
optional: true,
|
|
2271
2277
|
type: "WriteStream",
|
|
2272
2278
|
doc: "The output stream to write the spinner to. Defaults to process.stderr."
|
|
2273
2279
|
}),
|
|
2274
|
-
(0,
|
|
2275
|
-
(0,
|
|
2280
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
2281
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceMember, {
|
|
2276
2282
|
name: "spinner",
|
|
2277
2283
|
optional: true,
|
|
2278
2284
|
type: "ThemeSpinnerResolvedConfig | SpinnerPreset",
|
|
@@ -2281,101 +2287,101 @@ function SpinnerFunctionDeclaration() {
|
|
|
2281
2287
|
];
|
|
2282
2288
|
}
|
|
2283
2289
|
}),
|
|
2284
|
-
(0,
|
|
2285
|
-
(0,
|
|
2290
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
2291
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript.ClassDeclaration, {
|
|
2286
2292
|
name: "Spinner",
|
|
2287
2293
|
get children() {
|
|
2288
2294
|
return [
|
|
2289
|
-
(0,
|
|
2295
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript.ClassField, {
|
|
2290
2296
|
name: "frames",
|
|
2291
2297
|
isPrivateMember: true,
|
|
2292
2298
|
type: "string[]"
|
|
2293
2299
|
}),
|
|
2294
|
-
(0,
|
|
2295
|
-
(0,
|
|
2300
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
2301
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript.ClassField, {
|
|
2296
2302
|
name: "interval",
|
|
2297
2303
|
isPrivateMember: true,
|
|
2298
2304
|
type: "number"
|
|
2299
2305
|
}),
|
|
2300
|
-
(0,
|
|
2301
|
-
(0,
|
|
2306
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
2307
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript.ClassField, {
|
|
2302
2308
|
name: "currentFrame",
|
|
2303
2309
|
isPrivateMember: true,
|
|
2304
2310
|
type: "number",
|
|
2305
|
-
children:
|
|
2311
|
+
children: _alloy_js_core.code`-1`
|
|
2306
2312
|
}),
|
|
2307
|
-
(0,
|
|
2308
|
-
(0,
|
|
2313
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
2314
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript.ClassField, {
|
|
2309
2315
|
name: "timer",
|
|
2310
2316
|
isPrivateMember: true,
|
|
2311
2317
|
optional: true,
|
|
2312
2318
|
type: "NodeJS.Timeout"
|
|
2313
2319
|
}),
|
|
2314
|
-
(0,
|
|
2315
|
-
(0,
|
|
2320
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
2321
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript.ClassField, {
|
|
2316
2322
|
name: "message",
|
|
2317
2323
|
isPrivateMember: true,
|
|
2318
2324
|
type: "string",
|
|
2319
|
-
children:
|
|
2325
|
+
children: _alloy_js_core.code`""`
|
|
2320
2326
|
}),
|
|
2321
|
-
(0,
|
|
2322
|
-
(0,
|
|
2327
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
2328
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript.ClassField, {
|
|
2323
2329
|
name: "stream",
|
|
2324
2330
|
isPrivateMember: true,
|
|
2325
2331
|
type: "WriteStream",
|
|
2326
|
-
children:
|
|
2332
|
+
children: _alloy_js_core.code`process.stderr`
|
|
2327
2333
|
}),
|
|
2328
|
-
(0,
|
|
2329
|
-
(0,
|
|
2334
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
2335
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript.ClassField, {
|
|
2330
2336
|
name: "lines",
|
|
2331
2337
|
isPrivateMember: true,
|
|
2332
2338
|
type: "number",
|
|
2333
|
-
children:
|
|
2339
|
+
children: _alloy_js_core.code`0`
|
|
2334
2340
|
}),
|
|
2335
|
-
(0,
|
|
2336
|
-
(0,
|
|
2341
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
2342
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript.ClassField, {
|
|
2337
2343
|
name: "exitHandlerBound",
|
|
2338
2344
|
isPrivateMember: true,
|
|
2339
2345
|
type: "(signal: any) => void",
|
|
2340
|
-
children:
|
|
2346
|
+
children: _alloy_js_core.code`() => {}`
|
|
2341
2347
|
}),
|
|
2342
|
-
(0,
|
|
2343
|
-
(0,
|
|
2348
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
2349
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript.ClassField, {
|
|
2344
2350
|
name: "lastSpinnerFrameTime",
|
|
2345
2351
|
isPrivateMember: true,
|
|
2346
2352
|
type: "number",
|
|
2347
|
-
children:
|
|
2353
|
+
children: _alloy_js_core.code`0`
|
|
2348
2354
|
}),
|
|
2349
|
-
(0,
|
|
2350
|
-
(0,
|
|
2355
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
2356
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript.ClassField, {
|
|
2351
2357
|
name: "isSpinning",
|
|
2352
2358
|
isPrivateMember: true,
|
|
2353
2359
|
type: "boolean",
|
|
2354
|
-
children:
|
|
2360
|
+
children: _alloy_js_core.code`false`
|
|
2355
2361
|
}),
|
|
2356
|
-
(0,
|
|
2357
|
-
(0,
|
|
2362
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
2363
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript.ClassField, {
|
|
2358
2364
|
name: "hookedStreams",
|
|
2359
2365
|
isPrivateMember: true,
|
|
2360
2366
|
type: "Map<WriteStream, { write?: WriteStream[\"write\"]; originalWrite: WriteStream[\"write\"]; hookedWrite: WriteStream[\"write\"] }>",
|
|
2361
|
-
children:
|
|
2367
|
+
children: _alloy_js_core.code`new Map()`
|
|
2362
2368
|
}),
|
|
2363
|
-
(0,
|
|
2364
|
-
(0,
|
|
2369
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
2370
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript.ClassField, {
|
|
2365
2371
|
name: "isInternalWrite",
|
|
2366
2372
|
isPrivateMember: true,
|
|
2367
2373
|
type: "boolean",
|
|
2368
|
-
children:
|
|
2374
|
+
children: _alloy_js_core.code`false`
|
|
2369
2375
|
}),
|
|
2370
|
-
(0,
|
|
2371
|
-
(0,
|
|
2376
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
2377
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript.ClassField, {
|
|
2372
2378
|
name: "isDeferringRender",
|
|
2373
2379
|
isPrivateMember: true,
|
|
2374
2380
|
type: "boolean",
|
|
2375
|
-
children:
|
|
2381
|
+
children: _alloy_js_core.code`false`
|
|
2376
2382
|
}),
|
|
2377
|
-
(0,
|
|
2378
|
-
(0,
|
|
2383
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
2384
|
+
(0, _alloy_js_core_jsx_runtime.memo)(() => _alloy_js_core.code`constructor(options: SpinnerOptions = {}) {
|
|
2379
2385
|
const spinner = (typeof options.spinner === "string" ? resolveSpinner(options.spinner as SpinnerPreset) : options.spinner) ?? ${JSON.stringify(theme.spinner)};
|
|
2380
2386
|
this.#frames = spinner.frames;
|
|
2381
2387
|
this.#interval = spinner.interval;
|
|
@@ -2581,31 +2587,31 @@ function SpinnerFunctionDeclaration() {
|
|
|
2581
2587
|
|
|
2582
2588
|
process.exit(signal === "SIGINT" ? 130 : (signal === "SIGTERM" ? 143 : 1));
|
|
2583
2589
|
} `),
|
|
2584
|
-
(0,
|
|
2590
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript.ClassPropertyGet, {
|
|
2585
2591
|
"public": true,
|
|
2586
2592
|
name: "isSpinning",
|
|
2587
2593
|
type: "boolean",
|
|
2588
2594
|
doc: "Whether the spinner is currently active and spinning.",
|
|
2589
|
-
children:
|
|
2595
|
+
children: _alloy_js_core.code`return this.#isSpinning;`
|
|
2590
2596
|
}),
|
|
2591
|
-
(0,
|
|
2592
|
-
(0,
|
|
2597
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
2598
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript.ClassPropertySet, {
|
|
2593
2599
|
"public": true,
|
|
2594
2600
|
name: "message",
|
|
2595
2601
|
type: "string",
|
|
2596
2602
|
doc: "Set the message displayed by the spinner.",
|
|
2597
|
-
children:
|
|
2603
|
+
children: _alloy_js_core.code`this.#message = value;`
|
|
2598
2604
|
}),
|
|
2599
|
-
(0,
|
|
2600
|
-
(0,
|
|
2605
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
2606
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript.ClassPropertyGet, {
|
|
2601
2607
|
"public": true,
|
|
2602
2608
|
name: "message",
|
|
2603
2609
|
type: "string",
|
|
2604
2610
|
doc: "Get the message displayed by the spinner.",
|
|
2605
|
-
children:
|
|
2611
|
+
children: _alloy_js_core.code`return this.#message;`
|
|
2606
2612
|
}),
|
|
2607
|
-
(0,
|
|
2608
|
-
(0,
|
|
2613
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
2614
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript.ClassMethod, {
|
|
2609
2615
|
name: "start",
|
|
2610
2616
|
doc: "Start the spinner animation.",
|
|
2611
2617
|
parameters: [{
|
|
@@ -2614,15 +2620,15 @@ function SpinnerFunctionDeclaration() {
|
|
|
2614
2620
|
}],
|
|
2615
2621
|
get children() {
|
|
2616
2622
|
return [
|
|
2617
|
-
(0,
|
|
2618
|
-
condition:
|
|
2619
|
-
children:
|
|
2623
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.IfStatement, {
|
|
2624
|
+
condition: _alloy_js_core.code`message !== undefined`,
|
|
2625
|
+
children: _alloy_js_core.code`this.#message = message;`
|
|
2620
2626
|
}),
|
|
2621
|
-
(0,
|
|
2622
|
-
condition:
|
|
2623
|
-
children:
|
|
2627
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.IfStatement, {
|
|
2628
|
+
condition: _alloy_js_core.code`this.isSpinning`,
|
|
2629
|
+
children: _alloy_js_core.code`return this;`
|
|
2624
2630
|
}),
|
|
2625
|
-
|
|
2631
|
+
_alloy_js_core.code`this.#isSpinning = true;
|
|
2626
2632
|
this.#hideCursor();
|
|
2627
2633
|
this.#installHook();
|
|
2628
2634
|
this.#render();
|
|
@@ -2639,8 +2645,8 @@ function SpinnerFunctionDeclaration() {
|
|
|
2639
2645
|
];
|
|
2640
2646
|
}
|
|
2641
2647
|
}),
|
|
2642
|
-
(0,
|
|
2643
|
-
(0,
|
|
2648
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
2649
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript.ClassMethod, {
|
|
2644
2650
|
name: "stop",
|
|
2645
2651
|
doc: "Stop the spinner animation.",
|
|
2646
2652
|
parameters: [{
|
|
@@ -2648,7 +2654,7 @@ function SpinnerFunctionDeclaration() {
|
|
|
2648
2654
|
optional: true,
|
|
2649
2655
|
type: "string"
|
|
2650
2656
|
}],
|
|
2651
|
-
children:
|
|
2657
|
+
children: _alloy_js_core.code`if (!this.isSpinning) {
|
|
2652
2658
|
return this;
|
|
2653
2659
|
}
|
|
2654
2660
|
|
|
@@ -2674,11 +2680,11 @@ function SpinnerFunctionDeclaration() {
|
|
|
2674
2680
|
|
|
2675
2681
|
`
|
|
2676
2682
|
}),
|
|
2677
|
-
(0,
|
|
2678
|
-
(0,
|
|
2683
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
2684
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript.ClassMethod, {
|
|
2679
2685
|
name: "clear",
|
|
2680
2686
|
doc: "Clear the spinner animation.",
|
|
2681
|
-
children:
|
|
2687
|
+
children: _alloy_js_core.code`if (!isInteractive) {
|
|
2682
2688
|
return this;
|
|
2683
2689
|
}
|
|
2684
2690
|
|
|
@@ -2701,8 +2707,8 @@ function SpinnerFunctionDeclaration() {
|
|
|
2701
2707
|
this.#lines = 0;
|
|
2702
2708
|
return this; `
|
|
2703
2709
|
}),
|
|
2704
|
-
(0,
|
|
2705
|
-
(0,
|
|
2710
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
2711
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript.ClassMethod, {
|
|
2706
2712
|
name: "success",
|
|
2707
2713
|
doc: "Mark the spinner as successful.",
|
|
2708
2714
|
parameters: [{
|
|
@@ -2710,11 +2716,11 @@ function SpinnerFunctionDeclaration() {
|
|
|
2710
2716
|
type: "string"
|
|
2711
2717
|
}],
|
|
2712
2718
|
get children() {
|
|
2713
|
-
return
|
|
2719
|
+
return _alloy_js_core.code`return this.#stopWithIcon(colors.text.spinner.icon.success("${theme.icons.spinner.success}"), colors.text.spinner.message.success(message)); `;
|
|
2714
2720
|
}
|
|
2715
2721
|
}),
|
|
2716
|
-
(0,
|
|
2717
|
-
(0,
|
|
2722
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
2723
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript.ClassMethod, {
|
|
2718
2724
|
name: "error",
|
|
2719
2725
|
doc: "Mark the spinner as failed.",
|
|
2720
2726
|
parameters: [{
|
|
@@ -2722,11 +2728,11 @@ function SpinnerFunctionDeclaration() {
|
|
|
2722
2728
|
type: "string"
|
|
2723
2729
|
}],
|
|
2724
2730
|
get children() {
|
|
2725
|
-
return
|
|
2731
|
+
return _alloy_js_core.code`return this.#stopWithIcon(colors.text.spinner.icon.error("${theme.icons.spinner.error}"), colors.text.spinner.message.error(message)); `;
|
|
2726
2732
|
}
|
|
2727
2733
|
}),
|
|
2728
|
-
(0,
|
|
2729
|
-
(0,
|
|
2734
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
2735
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript.ClassMethod, {
|
|
2730
2736
|
name: "warning",
|
|
2731
2737
|
doc: "Mark the spinner as warning.",
|
|
2732
2738
|
parameters: [{
|
|
@@ -2734,11 +2740,11 @@ function SpinnerFunctionDeclaration() {
|
|
|
2734
2740
|
type: "string"
|
|
2735
2741
|
}],
|
|
2736
2742
|
get children() {
|
|
2737
|
-
return
|
|
2743
|
+
return _alloy_js_core.code`return this.#stopWithIcon(colors.text.spinner.icon.warning("${theme.icons.spinner.warning}"), colors.text.spinner.message.warning(message)); `;
|
|
2738
2744
|
}
|
|
2739
2745
|
}),
|
|
2740
|
-
(0,
|
|
2741
|
-
(0,
|
|
2746
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
2747
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript.ClassMethod, {
|
|
2742
2748
|
name: "info",
|
|
2743
2749
|
doc: "Mark the spinner as informational.",
|
|
2744
2750
|
parameters: [{
|
|
@@ -2746,11 +2752,11 @@ function SpinnerFunctionDeclaration() {
|
|
|
2746
2752
|
type: "string"
|
|
2747
2753
|
}],
|
|
2748
2754
|
get children() {
|
|
2749
|
-
return
|
|
2755
|
+
return _alloy_js_core.code`return this.#stopWithIcon(colors.text.spinner.icon.info("${theme.icons.spinner.info}"), colors.text.spinner.message.info(message)); `;
|
|
2750
2756
|
}
|
|
2751
2757
|
}),
|
|
2752
|
-
(0,
|
|
2753
|
-
(0,
|
|
2758
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
2759
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript.ClassMethod, {
|
|
2754
2760
|
name: "help",
|
|
2755
2761
|
doc: "Mark the spinner as help.",
|
|
2756
2762
|
parameters: [{
|
|
@@ -2758,24 +2764,24 @@ function SpinnerFunctionDeclaration() {
|
|
|
2758
2764
|
type: "string"
|
|
2759
2765
|
}],
|
|
2760
2766
|
get children() {
|
|
2761
|
-
return
|
|
2767
|
+
return _alloy_js_core.code`return this.#stopWithIcon(colors.text.spinner.icon.help("${theme.icons.spinner.help}"), colors.text.spinner.message.help(message)); `;
|
|
2762
2768
|
}
|
|
2763
2769
|
}),
|
|
2764
|
-
(0,
|
|
2770
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {})
|
|
2765
2771
|
];
|
|
2766
2772
|
}
|
|
2767
2773
|
}),
|
|
2768
|
-
(0,
|
|
2769
|
-
(0,
|
|
2774
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
2775
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
|
|
2770
2776
|
heading: "Render a spinner in the console.",
|
|
2771
2777
|
get children() {
|
|
2772
|
-
return [(0,
|
|
2778
|
+
return [(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocParam, {
|
|
2773
2779
|
name: "options",
|
|
2774
2780
|
children: `Options for configuring the spinner, including the message to display, the output stream to write to, and the spinner animation to use.`
|
|
2775
|
-
}), (0,
|
|
2781
|
+
}), (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocReturns, { children: `An instance of the Spinner class, which can be used to control the spinner animation (e.g., start, stop, mark as success/error, etc.).` })];
|
|
2776
2782
|
}
|
|
2777
2783
|
}),
|
|
2778
|
-
(0,
|
|
2784
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.FunctionDeclaration, {
|
|
2779
2785
|
"export": true,
|
|
2780
2786
|
name: "createSpinner",
|
|
2781
2787
|
parameters: [{
|
|
@@ -2783,7 +2789,7 @@ function SpinnerFunctionDeclaration() {
|
|
|
2783
2789
|
type: "SpinnerOptions",
|
|
2784
2790
|
optional: true
|
|
2785
2791
|
}],
|
|
2786
|
-
children:
|
|
2792
|
+
children: _alloy_js_core.code`return new Spinner(options);`
|
|
2787
2793
|
})
|
|
2788
2794
|
];
|
|
2789
2795
|
}
|
|
@@ -2794,35 +2800,32 @@ function extractBorderOptionsString(direction, theme) {
|
|
|
2794
2800
|
return `borderOptions === "primary" ? colors.border.app.table.primary("${theme.borderStyles.app.table.primary[direction]}") : borderOptions === "secondary" ? colors.border.app.table.secondary("${theme.borderStyles.app.table.secondary[direction]}") : borderOptions === "tertiary" ? colors.border.app.table.tertiary("${theme.borderStyles.app.table.tertiary[direction]}") : !borderOptions || borderOptions === "none" ? "" : borderOptions`;
|
|
2795
2801
|
}
|
|
2796
2802
|
/**
|
|
2797
|
-
* Props for the TableFunctionDeclaration component.
|
|
2798
|
-
*/
|
|
2799
|
-
/**
|
|
2800
2803
|
* A component to generate the table functions in the `shell-shock:console` builtin module.
|
|
2801
2804
|
*/
|
|
2802
2805
|
function TableFunctionDeclaration(props) {
|
|
2803
|
-
const theme = (0,
|
|
2806
|
+
const theme = (0, _shell_shock_plugin_theme_contexts_theme.useTheme)();
|
|
2804
2807
|
return [
|
|
2805
|
-
(0,
|
|
2808
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.TypeDeclaration, {
|
|
2806
2809
|
"export": true,
|
|
2807
2810
|
name: "SizeToken",
|
|
2808
2811
|
doc: "A type representing the width size of an item in the console.",
|
|
2809
|
-
children:
|
|
2812
|
+
children: _alloy_js_core.code`"full" | "1/1" | "1/2" | "1/3" | "1/4" | "1/5" | "1/6" | "1/12" | "1/24" | "100%" | "50%" | "33.33%" | "25%" | "20%" | "10%" | "5%" | "2.5%"`
|
|
2810
2813
|
}),
|
|
2811
|
-
(0,
|
|
2812
|
-
(0,
|
|
2814
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
2815
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
|
|
2813
2816
|
heading: "Determine if a value is a valid size token.",
|
|
2814
2817
|
get children() {
|
|
2815
2818
|
return [
|
|
2816
|
-
(0,
|
|
2817
|
-
(0,
|
|
2819
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocRemarks, { children: `This function checks if the provided value is a valid size token, which can be one of the predefined strings representing common width sizes (e.g., "full", "1/2", "1/3", etc.) or percentage strings (e.g., "50%").` }),
|
|
2820
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocParam, {
|
|
2818
2821
|
name: "value",
|
|
2819
2822
|
children: `The value to check for being a valid size token.`
|
|
2820
2823
|
}),
|
|
2821
|
-
(0,
|
|
2824
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocReturns, { children: `True if the value is a valid size token, false otherwise.` })
|
|
2822
2825
|
];
|
|
2823
2826
|
}
|
|
2824
2827
|
}),
|
|
2825
|
-
(0,
|
|
2828
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.FunctionDeclaration, {
|
|
2826
2829
|
"export": true,
|
|
2827
2830
|
doc: "Determines if the provided value is a valid size token.",
|
|
2828
2831
|
name: "isSizeToken",
|
|
@@ -2832,27 +2835,27 @@ function TableFunctionDeclaration(props) {
|
|
|
2832
2835
|
}],
|
|
2833
2836
|
returnType: "value is SizeToken",
|
|
2834
2837
|
get children() {
|
|
2835
|
-
return [(0,
|
|
2836
|
-
condition:
|
|
2837
|
-
children:
|
|
2838
|
-
}),
|
|
2838
|
+
return [(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.IfStatement, {
|
|
2839
|
+
condition: _alloy_js_core.code`["full", "1/1", "1/2", "1/3", "1/4", "1/5", "1/6", "1/12", "1/24", "100%", "50%", "33.33%", "25%", "20%", "10%", "5%", "2.5%"].includes(value)`,
|
|
2840
|
+
children: _alloy_js_core.code`return true; `
|
|
2841
|
+
}), _alloy_js_core.code`return false; `];
|
|
2839
2842
|
}
|
|
2840
2843
|
}),
|
|
2841
|
-
(0,
|
|
2842
|
-
(0,
|
|
2844
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
2845
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
|
|
2843
2846
|
heading: "Calculate the width in characters based on the provided width size.",
|
|
2844
2847
|
get children() {
|
|
2845
2848
|
return [
|
|
2846
|
-
(0,
|
|
2847
|
-
(0,
|
|
2849
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocRemarks, { children: `This function calculates the width in characters based on the provided width size, which can be a predefined string (e.g., "full", "1/2", "1/3", etc.) or a percentage string (e.g., "50%"). The calculation is based on the current width of the console (process.stdout.columns).` }),
|
|
2850
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocParam, {
|
|
2848
2851
|
name: "size",
|
|
2849
2852
|
children: `The width size to calculate. This can be a predefined string (e.g., "full", "1/2", "1/3", etc.) or a percentage string (e.g., "50%").`
|
|
2850
2853
|
}),
|
|
2851
|
-
(0,
|
|
2854
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocReturns, { children: `The calculated width in characters.` })
|
|
2852
2855
|
];
|
|
2853
2856
|
}
|
|
2854
2857
|
}),
|
|
2855
|
-
(0,
|
|
2858
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.FunctionDeclaration, {
|
|
2856
2859
|
"export": true,
|
|
2857
2860
|
name: "calculateWidth",
|
|
2858
2861
|
parameters: [{
|
|
@@ -2863,39 +2866,39 @@ function TableFunctionDeclaration(props) {
|
|
|
2863
2866
|
returnType: "number",
|
|
2864
2867
|
get children() {
|
|
2865
2868
|
return [
|
|
2866
|
-
(0,
|
|
2867
|
-
condition:
|
|
2868
|
-
children:
|
|
2869
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.IfStatement, {
|
|
2870
|
+
condition: _alloy_js_core.code`["full", "100%", "1/1"]. includes(size)`,
|
|
2871
|
+
children: _alloy_js_core.code`return process.stdout.columns;`
|
|
2869
2872
|
}),
|
|
2870
|
-
(0,
|
|
2871
|
-
condition:
|
|
2872
|
-
children:
|
|
2873
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.ElseIfClause, {
|
|
2874
|
+
condition: _alloy_js_core.code`["1/2", "50%"].includes(size)`,
|
|
2875
|
+
children: _alloy_js_core.code`return Math.round(process.stdout.columns / 2);`
|
|
2873
2876
|
}),
|
|
2874
|
-
(0,
|
|
2875
|
-
condition:
|
|
2876
|
-
children:
|
|
2877
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.ElseIfClause, {
|
|
2878
|
+
condition: _alloy_js_core.code`["1/3", "33.33%"].includes(size)`,
|
|
2879
|
+
children: _alloy_js_core.code`return Math.round(process.stdout.columns / 3);`
|
|
2877
2880
|
}),
|
|
2878
|
-
(0,
|
|
2879
|
-
condition:
|
|
2880
|
-
children:
|
|
2881
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.ElseIfClause, {
|
|
2882
|
+
condition: _alloy_js_core.code`["1/4", "25%"].includes(size)`,
|
|
2883
|
+
children: _alloy_js_core.code`return Math.round(process.stdout.columns / 4);`
|
|
2881
2884
|
}),
|
|
2882
|
-
(0,
|
|
2883
|
-
condition:
|
|
2884
|
-
children:
|
|
2885
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.ElseIfClause, {
|
|
2886
|
+
condition: _alloy_js_core.code`["1/5", "20%"].includes(size)`,
|
|
2887
|
+
children: _alloy_js_core.code`return Math.round(process.stdout.columns / 5);`
|
|
2885
2888
|
}),
|
|
2886
|
-
(0,
|
|
2887
|
-
condition:
|
|
2888
|
-
children:
|
|
2889
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.ElseIfClause, {
|
|
2890
|
+
condition: _alloy_js_core.code`["1/6", "10%"].includes(size)`,
|
|
2891
|
+
children: _alloy_js_core.code`return Math.round(process.stdout.columns / 6);`
|
|
2889
2892
|
}),
|
|
2890
|
-
(0,
|
|
2891
|
-
condition:
|
|
2892
|
-
children:
|
|
2893
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.ElseIfClause, {
|
|
2894
|
+
condition: _alloy_js_core.code`["1/12", "5%"].includes(size)`,
|
|
2895
|
+
children: _alloy_js_core.code`return Math.round(process.stdout.columns / 12);`
|
|
2893
2896
|
}),
|
|
2894
|
-
(0,
|
|
2895
|
-
condition:
|
|
2896
|
-
children:
|
|
2897
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.ElseIfClause, {
|
|
2898
|
+
condition: _alloy_js_core.code`["1/24", "2.5%"].includes(size)`,
|
|
2899
|
+
children: _alloy_js_core.code`return Math.round(process.stdout.columns / 24);`
|
|
2897
2900
|
}),
|
|
2898
|
-
(0,
|
|
2901
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.ElseClause, { children: _alloy_js_core.code`
|
|
2899
2902
|
const match = size.match(/(\\d+(\\.\\d+)?)%/);
|
|
2900
2903
|
if (match) {
|
|
2901
2904
|
return Math.round((process.stdout.columns * parseFloat(match[1])) / 100);
|
|
@@ -2903,54 +2906,53 @@ function TableFunctionDeclaration(props) {
|
|
|
2903
2906
|
|
|
2904
2907
|
throw new Error(\`Invalid width size: \${size}\`);
|
|
2905
2908
|
` }),
|
|
2906
|
-
(0,
|
|
2907
|
-
(0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})
|
|
2909
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {})
|
|
2908
2910
|
];
|
|
2909
2911
|
}
|
|
2910
2912
|
}),
|
|
2911
|
-
(0,
|
|
2913
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.TypeDeclaration, {
|
|
2912
2914
|
"export": true,
|
|
2913
2915
|
name: "BorderOption",
|
|
2914
2916
|
doc: "The border options applied to table cells.",
|
|
2915
|
-
children:
|
|
2917
|
+
children: _alloy_js_core.code`"primary" | "secondary" | "tertiary" | "none" | string; `
|
|
2916
2918
|
}),
|
|
2917
|
-
(0,
|
|
2918
|
-
(0,
|
|
2919
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
2920
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceDeclaration, {
|
|
2919
2921
|
"export": true,
|
|
2920
2922
|
name: "TableOutputOptions",
|
|
2921
2923
|
doc: "Options to customize the output of the {@link table} function.",
|
|
2922
2924
|
get children() {
|
|
2923
2925
|
return [
|
|
2924
|
-
(0,
|
|
2926
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
|
|
2925
2927
|
heading: "Border variant for the table cell.",
|
|
2926
2928
|
get children() {
|
|
2927
2929
|
return [
|
|
2928
|
-
(0,
|
|
2929
|
-
(0,
|
|
2930
|
-
(0,
|
|
2930
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocRemarks, { children: `The border variant to use for the table cell. This determines the color and style of the border around the cell.` }),
|
|
2931
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
2932
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocDefaultValue, {
|
|
2931
2933
|
get type() {
|
|
2932
|
-
return
|
|
2934
|
+
return _powerlines_deepkit_vendor_type.ReflectionKind.property;
|
|
2933
2935
|
},
|
|
2934
2936
|
defaultValue: "primary"
|
|
2935
2937
|
})
|
|
2936
2938
|
];
|
|
2937
2939
|
}
|
|
2938
2940
|
}),
|
|
2939
|
-
(0,
|
|
2941
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceMember, {
|
|
2940
2942
|
name: "border",
|
|
2941
2943
|
optional: true,
|
|
2942
2944
|
type: "BorderOption | { top?: BorderOption; right?: BorderOption; bottom?: BorderOption; left?: BorderOption; topLeft?: BorderOption; topRight?: BorderOption; bottomLeft?: BorderOption; bottomRight?: BorderOption; }"
|
|
2943
2945
|
}),
|
|
2944
|
-
(0,
|
|
2945
|
-
(0,
|
|
2946
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
2947
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
|
|
2946
2948
|
heading: "Padding for the table cell.",
|
|
2947
2949
|
get children() {
|
|
2948
2950
|
return [
|
|
2949
|
-
(0,
|
|
2950
|
-
(0,
|
|
2951
|
-
(0,
|
|
2951
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocRemarks, { children: `The amount of padding (in spaces) to apply to the table cell. This value is applied to both the left and right sides of the cell. If not specified, the default table padding defined in the current theme configuration will be used.` }),
|
|
2952
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
2953
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocDefaultValue, {
|
|
2952
2954
|
get type() {
|
|
2953
|
-
return
|
|
2955
|
+
return _powerlines_deepkit_vendor_type.ReflectionKind.property;
|
|
2954
2956
|
},
|
|
2955
2957
|
get defaultValue() {
|
|
2956
2958
|
return `\`${theme.padding.table}\``;
|
|
@@ -2959,198 +2961,198 @@ function TableFunctionDeclaration(props) {
|
|
|
2959
2961
|
];
|
|
2960
2962
|
}
|
|
2961
2963
|
}),
|
|
2962
|
-
(0,
|
|
2964
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceMember, {
|
|
2963
2965
|
name: "padding",
|
|
2964
2966
|
optional: true,
|
|
2965
2967
|
type: "number"
|
|
2966
2968
|
}),
|
|
2967
|
-
(0,
|
|
2968
|
-
(0,
|
|
2969
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
2970
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
|
|
2969
2971
|
heading: "Alignment for the table cell.",
|
|
2970
2972
|
get children() {
|
|
2971
2973
|
return [
|
|
2972
|
-
(0,
|
|
2973
|
-
(0,
|
|
2974
|
-
(0,
|
|
2974
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocRemarks, { children: `The alignment for the table cell. This determines how the text within the cell is aligned. If not specified, the default alignment is "left".` }),
|
|
2975
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
2976
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocDefaultValue, {
|
|
2975
2977
|
get type() {
|
|
2976
|
-
return
|
|
2978
|
+
return _powerlines_deepkit_vendor_type.ReflectionKind.property;
|
|
2977
2979
|
},
|
|
2978
2980
|
defaultValue: "left"
|
|
2979
2981
|
})
|
|
2980
2982
|
];
|
|
2981
2983
|
}
|
|
2982
2984
|
}),
|
|
2983
|
-
(0,
|
|
2985
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceMember, {
|
|
2984
2986
|
name: "align",
|
|
2985
2987
|
optional: true,
|
|
2986
2988
|
type: "\"left\" | \"right\" | \"center\""
|
|
2987
2989
|
}),
|
|
2988
|
-
(0,
|
|
2990
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})
|
|
2989
2991
|
];
|
|
2990
2992
|
}
|
|
2991
2993
|
}),
|
|
2992
|
-
(0,
|
|
2993
|
-
(0,
|
|
2994
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
2995
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceDeclaration, {
|
|
2994
2996
|
"export": true,
|
|
2995
2997
|
name: "TableCellOptions",
|
|
2996
2998
|
"extends": "TableOutputOptions",
|
|
2997
2999
|
doc: "Options for a specific table cell provided to the {@link table} function.",
|
|
2998
3000
|
get children() {
|
|
2999
3001
|
return [
|
|
3000
|
-
(0,
|
|
3002
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceMember, {
|
|
3001
3003
|
name: "value",
|
|
3002
3004
|
optional: true,
|
|
3003
3005
|
type: "string",
|
|
3004
3006
|
doc: "The actual string value of the table cell."
|
|
3005
3007
|
}),
|
|
3006
|
-
(0,
|
|
3007
|
-
(0,
|
|
3008
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
3009
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
|
|
3008
3010
|
heading: "Width of the table cell.",
|
|
3009
3011
|
get children() {
|
|
3010
|
-
return (0,
|
|
3012
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocRemarks, { children: `The width of the table cell (where 1 is a single character in the terminal). If not specified, the width will be determined based on the content of the cell and the available space in the console.` });
|
|
3011
3013
|
}
|
|
3012
3014
|
}),
|
|
3013
|
-
(0,
|
|
3015
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceMember, {
|
|
3014
3016
|
name: "maxWidth",
|
|
3015
3017
|
type: "number | SizeToken | undefined"
|
|
3016
3018
|
}),
|
|
3017
|
-
(0,
|
|
3019
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})
|
|
3018
3020
|
];
|
|
3019
3021
|
}
|
|
3020
3022
|
}),
|
|
3021
|
-
(0,
|
|
3022
|
-
(0,
|
|
3023
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
3024
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceDeclaration, {
|
|
3023
3025
|
"export": true,
|
|
3024
3026
|
name: "TableRowOptions",
|
|
3025
3027
|
"extends": "TableOutputOptions",
|
|
3026
3028
|
doc: "Options for a specific table row provided to the {@link table} function.",
|
|
3027
3029
|
get children() {
|
|
3028
|
-
return [(0,
|
|
3030
|
+
return [(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceMember, {
|
|
3029
3031
|
name: "values",
|
|
3030
3032
|
optional: true,
|
|
3031
3033
|
type: "(string | TableCellOptions)[]",
|
|
3032
3034
|
doc: "The actual string values of the table row's cells."
|
|
3033
|
-
}), (0,
|
|
3035
|
+
}), (0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
|
|
3034
3036
|
}
|
|
3035
3037
|
}),
|
|
3036
|
-
(0,
|
|
3037
|
-
(0,
|
|
3038
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
3039
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceDeclaration, {
|
|
3038
3040
|
"export": true,
|
|
3039
3041
|
name: "TableOptions",
|
|
3040
3042
|
"extends": "TableOutputOptions",
|
|
3041
3043
|
doc: "Options for a specific table cell provided to the {@link table} function.",
|
|
3042
3044
|
get children() {
|
|
3043
|
-
return [(0,
|
|
3045
|
+
return [(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceMember, {
|
|
3044
3046
|
name: "values",
|
|
3045
3047
|
optional: true,
|
|
3046
3048
|
type: "(string | TableCellOptions)[][]",
|
|
3047
3049
|
doc: "The actual string values of the table's rows' cells."
|
|
3048
|
-
}), (0,
|
|
3050
|
+
}), (0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
|
|
3049
3051
|
}
|
|
3050
3052
|
}),
|
|
3051
|
-
(0,
|
|
3052
|
-
(0,
|
|
3053
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
3054
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceDeclaration, {
|
|
3053
3055
|
name: "Dimensions",
|
|
3054
3056
|
doc: "The height and width for a specific table/cell used internally in the {@link table} function.",
|
|
3055
3057
|
get children() {
|
|
3056
3058
|
return [
|
|
3057
|
-
(0,
|
|
3059
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceMember, {
|
|
3058
3060
|
name: "height",
|
|
3059
3061
|
type: "number",
|
|
3060
3062
|
doc: "The height of the row/cell (where 1 is a single line in the terminal)."
|
|
3061
3063
|
}),
|
|
3062
|
-
(0,
|
|
3063
|
-
(0,
|
|
3064
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
3065
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceMember, {
|
|
3064
3066
|
name: "width",
|
|
3065
3067
|
type: "number",
|
|
3066
3068
|
doc: "The width of the row/cell (where 1 is a single character in the terminal)."
|
|
3067
3069
|
}),
|
|
3068
|
-
(0,
|
|
3070
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})
|
|
3069
3071
|
];
|
|
3070
3072
|
}
|
|
3071
3073
|
}),
|
|
3072
|
-
(0,
|
|
3073
|
-
(0,
|
|
3074
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
3075
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceDeclaration, {
|
|
3074
3076
|
name: "TableCellBorder",
|
|
3075
3077
|
doc: "The resolved complete border styles for a table cell.",
|
|
3076
3078
|
get children() {
|
|
3077
3079
|
return [
|
|
3078
|
-
(0,
|
|
3080
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceMember, {
|
|
3079
3081
|
name: "top",
|
|
3080
3082
|
type: "string",
|
|
3081
3083
|
doc: "The top border style of the table cell."
|
|
3082
3084
|
}),
|
|
3083
|
-
(0,
|
|
3084
|
-
(0,
|
|
3085
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
3086
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceMember, {
|
|
3085
3087
|
name: "bottom",
|
|
3086
3088
|
type: "string",
|
|
3087
3089
|
doc: "The bottom border style of the table cell."
|
|
3088
3090
|
}),
|
|
3089
|
-
(0,
|
|
3090
|
-
(0,
|
|
3091
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
3092
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceMember, {
|
|
3091
3093
|
name: "right",
|
|
3092
3094
|
type: "string",
|
|
3093
3095
|
doc: "The right border style of the table cell."
|
|
3094
3096
|
}),
|
|
3095
|
-
(0,
|
|
3096
|
-
(0,
|
|
3097
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
3098
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceMember, {
|
|
3097
3099
|
name: "left",
|
|
3098
3100
|
type: "string",
|
|
3099
3101
|
doc: "The left border style of the table cell."
|
|
3100
3102
|
}),
|
|
3101
|
-
(0,
|
|
3102
|
-
(0,
|
|
3103
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
3104
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceMember, {
|
|
3103
3105
|
name: "topLeft",
|
|
3104
3106
|
type: "string",
|
|
3105
3107
|
doc: "The top-left border style of the table cell."
|
|
3106
3108
|
}),
|
|
3107
|
-
(0,
|
|
3108
|
-
(0,
|
|
3109
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
3110
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceMember, {
|
|
3109
3111
|
name: "topRight",
|
|
3110
3112
|
type: "string",
|
|
3111
3113
|
doc: "The top-right border style of the table cell."
|
|
3112
3114
|
}),
|
|
3113
|
-
(0,
|
|
3114
|
-
(0,
|
|
3115
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
3116
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceMember, {
|
|
3115
3117
|
name: "bottomLeft",
|
|
3116
3118
|
type: "string",
|
|
3117
3119
|
doc: "The bottom-left border style of the table cell."
|
|
3118
3120
|
}),
|
|
3119
|
-
(0,
|
|
3120
|
-
(0,
|
|
3121
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
3122
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceMember, {
|
|
3121
3123
|
name: "bottomRight",
|
|
3122
3124
|
type: "string",
|
|
3123
3125
|
doc: "The bottom-right border style of the table cell."
|
|
3124
3126
|
}),
|
|
3125
|
-
(0,
|
|
3127
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})
|
|
3126
3128
|
];
|
|
3127
3129
|
}
|
|
3128
3130
|
}),
|
|
3129
|
-
(0,
|
|
3130
|
-
(0,
|
|
3131
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
3132
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.TypeDeclaration, {
|
|
3131
3133
|
name: "TableCell",
|
|
3132
3134
|
doc: "The internal state of a formatted table cell in the {@link table} function.",
|
|
3133
|
-
children:
|
|
3135
|
+
children: _alloy_js_core.code`Required<Omit<TableCellOptions, "maxWidth" | "border">> & Dimensions & {
|
|
3134
3136
|
border: TableCellBorder;
|
|
3135
3137
|
maxWidth?: number;
|
|
3136
3138
|
};
|
|
3137
3139
|
`
|
|
3138
3140
|
}),
|
|
3139
|
-
(0,
|
|
3140
|
-
(0,
|
|
3141
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
3142
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
|
|
3141
3143
|
heading: "Write a table to the console.",
|
|
3142
3144
|
get children() {
|
|
3143
3145
|
return [
|
|
3144
|
-
(0,
|
|
3145
|
-
(0,
|
|
3146
|
-
(0,
|
|
3146
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocRemarks, { children: `This function writes a table to the console, applying the appropriate padding as defined in the current theme configuration and wrapping as needed.` }),
|
|
3147
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
3148
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocParam, {
|
|
3147
3149
|
name: "options",
|
|
3148
3150
|
children: `Options to customize the table output.`
|
|
3149
3151
|
})
|
|
3150
3152
|
];
|
|
3151
3153
|
}
|
|
3152
3154
|
}),
|
|
3153
|
-
(0,
|
|
3155
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.FunctionDeclaration, (0, _alloy_js_core_jsx_runtime.mergeProps)({ "export": true }, props, {
|
|
3154
3156
|
name: "table",
|
|
3155
3157
|
parameters: [{
|
|
3156
3158
|
name: "options",
|
|
@@ -3159,22 +3161,21 @@ function TableFunctionDeclaration(props) {
|
|
|
3159
3161
|
}],
|
|
3160
3162
|
get children() {
|
|
3161
3163
|
return [
|
|
3162
|
-
(0,
|
|
3163
|
-
condition:
|
|
3164
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.IfStatement, {
|
|
3165
|
+
condition: _alloy_js_core.code`!options ||
|
|
3164
3166
|
(!Array.isArray(options) && (typeof options !== "object" || !options.values || !Array.isArray(options.values) || options.values.length === 0)) ||
|
|
3165
3167
|
(Array.isArray(options) && !options.every(item => typeof item === "object" || typeof item === "string" || Array.isArray(item))) `,
|
|
3166
|
-
children:
|
|
3168
|
+
children: _alloy_js_core.code`return;`
|
|
3167
3169
|
}),
|
|
3168
|
-
(0,
|
|
3169
|
-
(0,
|
|
3170
|
-
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.VarDeclaration, {
|
|
3170
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
3171
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.VarDeclaration, {
|
|
3171
3172
|
"let": true,
|
|
3172
3173
|
name: "cells",
|
|
3173
3174
|
type: `TableCell[][]`,
|
|
3174
|
-
initializer:
|
|
3175
|
+
initializer: _alloy_js_core.code`[];`
|
|
3175
3176
|
}),
|
|
3176
|
-
(0,
|
|
3177
|
-
(0,
|
|
3177
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
3178
|
+
(0, _alloy_js_core_jsx_runtime.memo)(() => _alloy_js_core.code`
|
|
3178
3179
|
const extractTableCell = (cell: string | TableCellOptions, columnIndex: number, rowLength: number, opts?: TableOutputOptions): TableCell => {
|
|
3179
3180
|
if (typeof cell === "string") {
|
|
3180
3181
|
const borderOptions = opts?.border || "primary";
|
|
@@ -3259,14 +3260,14 @@ function TableFunctionDeclaration(props) {
|
|
|
3259
3260
|
|
|
3260
3261
|
let colMaxWidths = [] as (number | undefined)[];
|
|
3261
3262
|
`),
|
|
3262
|
-
(0,
|
|
3263
|
-
(0,
|
|
3264
|
-
condition:
|
|
3263
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
3264
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.IfStatement, {
|
|
3265
|
+
condition: _alloy_js_core.code`Array.isArray(options)`,
|
|
3265
3266
|
get children() {
|
|
3266
|
-
return [(0,
|
|
3267
|
-
condition:
|
|
3268
|
-
children:
|
|
3269
|
-
}), (0,
|
|
3267
|
+
return [(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.IfStatement, {
|
|
3268
|
+
condition: _alloy_js_core.code`options.every(row => typeof row === "string" || (typeof row === "object" && !Array.isArray(row) && !("values" in row)))`,
|
|
3269
|
+
children: _alloy_js_core.code`cells.push(options.map((cell, index) => extractTableCell(cell as string | TableCellOptions, index, options.length)));`
|
|
3270
|
+
}), (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.ElseClause, { children: _alloy_js_core.code`
|
|
3270
3271
|
cells.push(
|
|
3271
3272
|
...options.map(row => Array.isArray(row)
|
|
3272
3273
|
? row.reduce((cellRow, cell, index) => {
|
|
@@ -3296,7 +3297,7 @@ function TableFunctionDeclaration(props) {
|
|
|
3296
3297
|
` })];
|
|
3297
3298
|
}
|
|
3298
3299
|
}),
|
|
3299
|
-
(0,
|
|
3300
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.ElseClause, { children: _alloy_js_core.code`
|
|
3300
3301
|
cells.push(
|
|
3301
3302
|
...options.values!.map(row => Array.isArray(row)
|
|
3302
3303
|
? row.reduce((cellRow, cell, index) => {
|
|
@@ -3325,8 +3326,8 @@ function TableFunctionDeclaration(props) {
|
|
|
3325
3326
|
);
|
|
3326
3327
|
|
|
3327
3328
|
` }),
|
|
3328
|
-
(0,
|
|
3329
|
-
(0,
|
|
3329
|
+
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
3330
|
+
(0, _alloy_js_core_jsx_runtime.memo)(() => _alloy_js_core.code`
|
|
3330
3331
|
cells = cells.filter(row => row.length > 0);
|
|
3331
3332
|
if (cells.length === 0) {
|
|
3332
3333
|
return;
|
|
@@ -3484,7 +3485,7 @@ cells.forEach((row, rowIndex) => {
|
|
|
3484
3485
|
*/
|
|
3485
3486
|
function ConsoleBuiltin(props) {
|
|
3486
3487
|
const { children, imports, builtinImports } = props;
|
|
3487
|
-
return (0,
|
|
3488
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_builtin_file.BuiltinFile, {
|
|
3488
3489
|
id: "console",
|
|
3489
3490
|
description: "A collection of helper utilities to assist in generating content meant for display in the console.",
|
|
3490
3491
|
get imports() {
|
|
@@ -3523,60 +3524,62 @@ function ConsoleBuiltin(props) {
|
|
|
3523
3524
|
},
|
|
3524
3525
|
get children() {
|
|
3525
3526
|
return [
|
|
3526
|
-
(0,
|
|
3527
|
-
(0,
|
|
3528
|
-
(0,
|
|
3529
|
-
(0,
|
|
3530
|
-
(0,
|
|
3531
|
-
(0,
|
|
3532
|
-
(0,
|
|
3533
|
-
(0,
|
|
3534
|
-
(0,
|
|
3535
|
-
(0,
|
|
3536
|
-
(0,
|
|
3537
|
-
(0,
|
|
3538
|
-
(0,
|
|
3539
|
-
(0,
|
|
3540
|
-
(0,
|
|
3541
|
-
(0,
|
|
3542
|
-
(0,
|
|
3527
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(AnsiHelpersDeclarations, {}),
|
|
3528
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
3529
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(StripAnsiFunctionDeclaration, {}),
|
|
3530
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
3531
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(WrapAnsiFunction, {}),
|
|
3532
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
3533
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(ColorsDeclaration, {}),
|
|
3534
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
3535
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(WriteLineFunctionDeclaration, {}),
|
|
3536
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
3537
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(SplitTextFunctionDeclaration, {}),
|
|
3538
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
3539
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(LinkFunctionDeclaration, {}),
|
|
3540
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
3541
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(DividerFunctionDeclaration, {}),
|
|
3542
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
3543
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(SpinnerFunctionDeclaration, {}),
|
|
3544
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
3545
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(MessageFunctionDeclaration, {
|
|
3543
3546
|
type: "help",
|
|
3544
3547
|
variant: "help",
|
|
3545
3548
|
consoleFnName: "log",
|
|
3546
3549
|
description: "help"
|
|
3547
3550
|
}),
|
|
3548
|
-
(0,
|
|
3549
|
-
(0,
|
|
3551
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
3552
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(MessageFunctionDeclaration, {
|
|
3550
3553
|
type: "success",
|
|
3551
3554
|
variant: "success",
|
|
3552
3555
|
consoleFnName: "info",
|
|
3553
3556
|
description: "success"
|
|
3554
3557
|
}),
|
|
3555
|
-
(0,
|
|
3556
|
-
(0,
|
|
3558
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
3559
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(MessageFunctionDeclaration, {
|
|
3557
3560
|
type: "info",
|
|
3558
3561
|
variant: "info",
|
|
3559
3562
|
consoleFnName: "info",
|
|
3560
3563
|
description: "informational"
|
|
3561
3564
|
}),
|
|
3562
|
-
(0,
|
|
3563
|
-
(0,
|
|
3565
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
3566
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(MessageFunctionDeclaration, {
|
|
3564
3567
|
type: "debug",
|
|
3565
3568
|
variant: "debug",
|
|
3566
3569
|
consoleFnName: "debug",
|
|
3567
3570
|
description: "debug",
|
|
3568
3571
|
timestamp: true,
|
|
3569
3572
|
get prefix() {
|
|
3570
|
-
return (0,
|
|
3573
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.IfStatement, {
|
|
3571
3574
|
get condition() {
|
|
3572
|
-
return (0,
|
|
3575
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(_shell_shock_core_components_helpers.IsNotDebug, {});
|
|
3573
3576
|
},
|
|
3574
|
-
children:
|
|
3577
|
+
children: _alloy_js_core.code`return; `
|
|
3575
3578
|
});
|
|
3576
3579
|
}
|
|
3577
3580
|
}),
|
|
3578
|
-
(0,
|
|
3579
|
-
(0,
|
|
3581
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
3582
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(MessageFunctionDeclaration, {
|
|
3580
3583
|
type: "verbose",
|
|
3581
3584
|
variant: "info",
|
|
3582
3585
|
color: "debug",
|
|
@@ -3584,30 +3587,30 @@ function ConsoleBuiltin(props) {
|
|
|
3584
3587
|
description: "verbose",
|
|
3585
3588
|
timestamp: true,
|
|
3586
3589
|
get prefix() {
|
|
3587
|
-
return (0,
|
|
3590
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.IfStatement, {
|
|
3588
3591
|
get condition() {
|
|
3589
|
-
return (0,
|
|
3592
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(_shell_shock_core_components_helpers.IsNotVerbose, {});
|
|
3590
3593
|
},
|
|
3591
|
-
children:
|
|
3594
|
+
children: _alloy_js_core.code`return; `
|
|
3592
3595
|
});
|
|
3593
3596
|
}
|
|
3594
3597
|
}),
|
|
3595
|
-
(0,
|
|
3596
|
-
(0,
|
|
3598
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
3599
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(MessageFunctionDeclaration, {
|
|
3597
3600
|
type: "warn",
|
|
3598
3601
|
variant: "warning",
|
|
3599
3602
|
consoleFnName: "warn",
|
|
3600
3603
|
description: "warning"
|
|
3601
3604
|
}),
|
|
3602
|
-
(0,
|
|
3603
|
-
(0,
|
|
3605
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
3606
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(MessageFunctionDeclaration, {
|
|
3604
3607
|
type: "danger",
|
|
3605
3608
|
variant: "danger",
|
|
3606
3609
|
consoleFnName: "error",
|
|
3607
3610
|
description: "destructive/danger"
|
|
3608
3611
|
}),
|
|
3609
|
-
(0,
|
|
3610
|
-
(0,
|
|
3612
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
3613
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(MessageFunctionDeclaration, {
|
|
3611
3614
|
type: "error",
|
|
3612
3615
|
variant: "error",
|
|
3613
3616
|
consoleFnName: "error",
|
|
@@ -3620,35 +3623,35 @@ function ConsoleBuiltin(props) {
|
|
|
3620
3623
|
}],
|
|
3621
3624
|
get prefix() {
|
|
3622
3625
|
return [
|
|
3623
|
-
(0,
|
|
3626
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.VarDeclaration, {
|
|
3624
3627
|
"let": true,
|
|
3625
3628
|
name: "message",
|
|
3626
3629
|
type: "string | undefined"
|
|
3627
3630
|
}),
|
|
3628
|
-
(0,
|
|
3629
|
-
(0,
|
|
3630
|
-
condition:
|
|
3631
|
-
children:
|
|
3631
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
3632
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.IfStatement, {
|
|
3633
|
+
condition: _alloy_js_core.code`(err as Error)?.message`,
|
|
3634
|
+
children: _alloy_js_core.code`message = (err as Error).message;`
|
|
3632
3635
|
}),
|
|
3633
|
-
(0,
|
|
3634
|
-
(0,
|
|
3635
|
-
(0,
|
|
3636
|
-
condition:
|
|
3636
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.ElseClause, { children: _alloy_js_core.code`message = String(err);` }),
|
|
3637
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
3638
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.IfStatement, {
|
|
3639
|
+
condition: _alloy_js_core.code`env.STACKTRACE`,
|
|
3637
3640
|
get children() {
|
|
3638
|
-
return [(0,
|
|
3639
|
-
condition:
|
|
3640
|
-
children:
|
|
3641
|
-
}), (0,
|
|
3641
|
+
return [(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.IfStatement, {
|
|
3642
|
+
condition: _alloy_js_core.code`(err as Error)?.stack`,
|
|
3643
|
+
children: _alloy_js_core.code`message += " \\n\\n" + ((err as Error).stack || "");`
|
|
3644
|
+
}), (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.ElseClause, { children: _alloy_js_core.code`message += " \\n\\n" + ((new Error(" ")).stack || "").split("\\n").slice(2).map(line => line.trim()).join("\\n");` })];
|
|
3642
3645
|
}
|
|
3643
3646
|
})
|
|
3644
3647
|
];
|
|
3645
3648
|
}
|
|
3646
3649
|
}),
|
|
3647
|
-
(0,
|
|
3648
|
-
(0,
|
|
3649
|
-
(0,
|
|
3650
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
3651
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(TableFunctionDeclaration, {}),
|
|
3652
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
|
|
3650
3653
|
children,
|
|
3651
|
-
(0,
|
|
3654
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {})
|
|
3652
3655
|
];
|
|
3653
3656
|
}
|
|
3654
3657
|
});
|
|
@@ -3662,6 +3665,7 @@ exports.DividerFunctionDeclaration = DividerFunctionDeclaration;
|
|
|
3662
3665
|
exports.LinkFunctionDeclaration = LinkFunctionDeclaration;
|
|
3663
3666
|
exports.MessageFunctionDeclaration = MessageFunctionDeclaration;
|
|
3664
3667
|
exports.SpinnerFunctionDeclaration = SpinnerFunctionDeclaration;
|
|
3668
|
+
exports.SplitTextFunctionDeclaration = SplitTextFunctionDeclaration;
|
|
3665
3669
|
exports.StripAnsiFunctionDeclaration = StripAnsiFunctionDeclaration;
|
|
3666
3670
|
exports.TableFunctionDeclaration = TableFunctionDeclaration;
|
|
3667
3671
|
exports.WrapAnsiFunction = WrapAnsiFunction;
|