@algolia/wizard 0.21.0 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +8 -9
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -500,7 +500,7 @@ function Table({ columns, rows }) {
|
|
|
500
500
|
}, [termCols, columns, rows]);
|
|
501
501
|
if (rows.length === 0) return null;
|
|
502
502
|
const lines = formatTable(columns, rows, width || void 0);
|
|
503
|
-
return /* @__PURE__ */ jsx(Box2, { flexDirection: "column", ref, children: lines.map((line, i) => /* @__PURE__ */ jsx(Text2, { wrap: "truncate", children: line }, `tbl-${i}`)) });
|
|
503
|
+
return /* @__PURE__ */ jsx(Box2, { flexDirection: "column", ref, children: lines.map((line, i) => /* @__PURE__ */ jsx(Text2, { color: COLORS.primary, wrap: "truncate", children: line }, `tbl-${i}`)) });
|
|
504
504
|
}
|
|
505
505
|
function formatTable(columns, rows, width) {
|
|
506
506
|
const natural = columns.map(
|
|
@@ -932,7 +932,7 @@ function SelectPrompt({
|
|
|
932
932
|
`row-${i}`
|
|
933
933
|
);
|
|
934
934
|
}) }),
|
|
935
|
-
/* @__PURE__ */ jsx5(Box7, { flexShrink: 0, children: /* @__PURE__ */ jsx5(Text7, { children: hints.map(({ key, label }, i) => /* @__PURE__ */ jsxs6(Text7, { children: [
|
|
935
|
+
/* @__PURE__ */ jsx5(Box7, { flexShrink: 0, children: /* @__PURE__ */ jsx5(Text7, { color: COLORS.dim, children: hints.map(({ key, label }, i) => /* @__PURE__ */ jsxs6(Text7, { color: COLORS.dim, children: [
|
|
936
936
|
i > 0 ? " " : "",
|
|
937
937
|
/* @__PURE__ */ jsx5(Text7, { color: COLORS.primary, children: key }),
|
|
938
938
|
/* @__PURE__ */ jsxs6(Text7, { color: COLORS.dim, children: [
|
|
@@ -1246,7 +1246,7 @@ function NeverLine({
|
|
|
1246
1246
|
}) {
|
|
1247
1247
|
const used = segments.reduce((n, s) => n + s.text.length, 0);
|
|
1248
1248
|
const rightPad = Math.max(0, width - 2 - NEVER_BOX_PAD_X - used);
|
|
1249
|
-
return /* @__PURE__ */ jsxs9(Text10, { children: [
|
|
1249
|
+
return /* @__PURE__ */ jsxs9(Text10, { color: COLORS.primary, children: [
|
|
1250
1250
|
/* @__PURE__ */ jsx8(Text10, { color: COLORS.danger, children: "\u2502" }),
|
|
1251
1251
|
" ".repeat(NEVER_BOX_PAD_X),
|
|
1252
1252
|
segments.map((s, i) => /* @__PURE__ */ jsx8(Text10, { color: s.color, bold: s.bold, children: s.text }, i)),
|
|
@@ -1278,7 +1278,7 @@ function LearnMore() {
|
|
|
1278
1278
|
/* @__PURE__ */ jsx8(Text10, { color: COLORS.border, children: "\u2500".repeat(dividerWidth) }),
|
|
1279
1279
|
/* @__PURE__ */ jsxs9(Box10, { flexDirection: "row", gap: 1, marginTop: 1, children: [
|
|
1280
1280
|
/* @__PURE__ */ jsx8(Box10, { width: TAG_COLUMN_WIDTH, flexShrink: 0, children: /* @__PURE__ */ jsx8(Text10, { color: TAG_COLORS[item.tag], bold: true, children: `[${item.tag}]` }) }),
|
|
1281
|
-
/* @__PURE__ */ jsx8(Box10, { flexDirection: "column", children: /* @__PURE__ */ jsxs9(Text10, { children: [
|
|
1281
|
+
/* @__PURE__ */ jsx8(Box10, { flexDirection: "column", children: /* @__PURE__ */ jsxs9(Text10, { color: COLORS.primary, children: [
|
|
1282
1282
|
/* @__PURE__ */ jsx8(Text10, { color: COLORS.strong, bold: true, children: item.title }),
|
|
1283
1283
|
/* @__PURE__ */ jsx8(Text10, { color: COLORS.muted, children: ` \u2014 ${item.description}` })
|
|
1284
1284
|
] }) })
|
|
@@ -1398,9 +1398,9 @@ function Progress() {
|
|
|
1398
1398
|
const activeStepNumber = Math.max(1, visibleCountThroughCurrent);
|
|
1399
1399
|
return /* @__PURE__ */ jsxs11(Box12, { flexDirection: "row", gap: 1, children: [
|
|
1400
1400
|
/* @__PURE__ */ jsx10(Text12, { color: COLORS.muted, children: "STEP" }),
|
|
1401
|
-
/* @__PURE__ */ jsx10(Text12, { bold: true, children: activeStepNumber }),
|
|
1402
|
-
/* @__PURE__ */ jsx10(Text12, { bold: true, children: "/" }),
|
|
1403
|
-
/* @__PURE__ */ jsx10(Text12, { bold: true, children: visibleSteps.length })
|
|
1401
|
+
/* @__PURE__ */ jsx10(Text12, { color: COLORS.strong, bold: true, children: activeStepNumber }),
|
|
1402
|
+
/* @__PURE__ */ jsx10(Text12, { color: COLORS.strong, bold: true, children: "/" }),
|
|
1403
|
+
/* @__PURE__ */ jsx10(Text12, { color: COLORS.strong, bold: true, children: visibleSteps.length })
|
|
1404
1404
|
] });
|
|
1405
1405
|
}
|
|
1406
1406
|
|
|
@@ -1798,7 +1798,6 @@ function App() {
|
|
|
1798
1798
|
/* @__PURE__ */ jsx14(CliOutput, {}),
|
|
1799
1799
|
/* @__PURE__ */ jsx14(Notices, {}),
|
|
1800
1800
|
/* @__PURE__ */ jsx14(PromptInput, {}),
|
|
1801
|
-
phase === "running" && showSidebar && /* @__PURE__ */ jsx14(Box16, { marginTop: 1, children: /* @__PURE__ */ jsx14(CurrentStep, {}) }),
|
|
1802
1801
|
phase === "error" && error && /* @__PURE__ */ jsx14(Box16, { marginTop: 1, children: /* @__PURE__ */ jsxs15(Text16, { color: COLORS.status.error, children: [
|
|
1803
1802
|
"\u2716 ",
|
|
1804
1803
|
error
|
|
@@ -3642,7 +3641,7 @@ async function runAnalysis(mode, extraInstructions = []) {
|
|
|
3642
3641
|
// package.json
|
|
3643
3642
|
var package_default = {
|
|
3644
3643
|
name: "@algolia/wizard",
|
|
3645
|
-
version: "0.
|
|
3644
|
+
version: "0.22.0",
|
|
3646
3645
|
description: "Magically implement Algolia functionality in your codebase",
|
|
3647
3646
|
type: "module",
|
|
3648
3647
|
engines: {
|