grimoire-wizard 0.5.1 → 0.5.2

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/index.d.ts CHANGED
@@ -58,6 +58,7 @@ interface SelectOption {
58
58
  label: string;
59
59
  hint?: string;
60
60
  disabled?: boolean | string;
61
+ checked?: boolean;
61
62
  }
62
63
  interface SeparatorOption {
63
64
  separator: string;
package/dist/index.js CHANGED
@@ -1199,10 +1199,14 @@ function renderBanner(name, theme, options) {
1199
1199
  font: "Small",
1200
1200
  horizontalLayout: "default"
1201
1201
  });
1202
- const lines = art.split("\n").map((line) => ` ${line}`).join("\n");
1203
- const banner = GRIMOIRE_GRADIENT(lines);
1204
- return icon ? ` ${icon}
1205
- ${banner}` : banner;
1202
+ const artLines = art.split("\n");
1203
+ const lines = artLines.map((line, i) => {
1204
+ if (icon && i === Math.floor(artLines.length / 2)) {
1205
+ return ` ${icon} ${line}`;
1206
+ }
1207
+ return icon ? ` ${line}` : ` ${line}`;
1208
+ }).join("\n");
1209
+ return GRIMOIRE_GRADIENT(lines);
1206
1210
  } catch {
1207
1211
  return ` ${prefix}${theme.bold(name)}`;
1208
1212
  }