@deaquinodev/querky 0.4.16 → 0.4.18
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.js +41 -28
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1477,15 +1477,15 @@ function tokenizeSql(sql) {
|
|
|
1477
1477
|
|
|
1478
1478
|
// src/ui/theme.ts
|
|
1479
1479
|
var theme = {
|
|
1480
|
-
accent: "#
|
|
1481
|
-
insertMode: "#
|
|
1482
|
-
normalMode: "#
|
|
1483
|
-
shellMode: "#
|
|
1484
|
-
logo: "#
|
|
1485
|
-
success: "#
|
|
1486
|
-
error: "#
|
|
1487
|
-
warning: "#
|
|
1488
|
-
muted: "#
|
|
1480
|
+
accent: "#cba6f7",
|
|
1481
|
+
insertMode: "#89b4fa",
|
|
1482
|
+
normalMode: "#fab387",
|
|
1483
|
+
shellMode: "#a6e3a1",
|
|
1484
|
+
logo: "#cba6f7",
|
|
1485
|
+
success: "#a6e3a1",
|
|
1486
|
+
error: "#f38ba8",
|
|
1487
|
+
warning: "#f9e2af",
|
|
1488
|
+
muted: "#7f849c"
|
|
1489
1489
|
};
|
|
1490
1490
|
|
|
1491
1491
|
// src/ui/components/QueryInput.tsx
|
|
@@ -1508,10 +1508,10 @@ var BG = "#1e1e1e";
|
|
|
1508
1508
|
var ACCENT = theme.insertMode;
|
|
1509
1509
|
var PROMPT_MUTED = theme.muted;
|
|
1510
1510
|
var PLACEHOLDER = "#585858";
|
|
1511
|
-
var KW_COLOR = "#
|
|
1512
|
-
var STR_COLOR = "#
|
|
1513
|
-
var NUM_COLOR = "#
|
|
1514
|
-
var CMT_COLOR = "#
|
|
1511
|
+
var KW_COLOR = "#cba6f7";
|
|
1512
|
+
var STR_COLOR = "#a6e3a1";
|
|
1513
|
+
var NUM_COLOR = "#fab387";
|
|
1514
|
+
var CMT_COLOR = "#6c7086";
|
|
1515
1515
|
function sqlTokenColor(type) {
|
|
1516
1516
|
if (type === "keyword") return KW_COLOR;
|
|
1517
1517
|
if (type === "string") return STR_COLOR;
|
|
@@ -1769,14 +1769,14 @@ function ErrorBox({ message }) {
|
|
|
1769
1769
|
// src/ui/components/Banner.tsx
|
|
1770
1770
|
import { Box as Box4, Text as Text4 } from "ink";
|
|
1771
1771
|
import { Fragment as Fragment2, jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
1772
|
-
var version = true ? "0.4.
|
|
1772
|
+
var version = true ? "0.4.18" : process.env.npm_package_version ?? "unknown";
|
|
1773
1773
|
var WORDMARK = [
|
|
1774
1774
|
"\u2597\u2584\u2584\u2584\u2596 \u2597\u2596 \u2597\u2596\u2597\u2584\u2584\u2584\u2596\u2597\u2584\u2584\u2596 \u2597\u2596 \u2597\u2596\u2597\u2596 \u2597\u2596",
|
|
1775
1775
|
"\u2590\u258C \u2590\u258C \u2590\u258C \u2590\u258C\u2590\u258C \u2590\u258C \u2590\u258C\u2590\u258C\u2597\u259E\u2598 \u259D\u259A\u259E\u2598",
|
|
1776
1776
|
"\u2590\u258C \u2590\u258C \u2590\u258C \u2590\u258C\u2590\u259B\u2580\u2580\u2598\u2590\u259B\u2580\u259A\u2596\u2590\u259B\u259A\u2596 \u2590\u258C",
|
|
1777
1777
|
"\u2590\u2599\u2584\u259F\u2599\u2596\u259D\u259A\u2584\u259E\u2598\u2590\u2599\u2584\u2584\u2596\u2590\u258C \u2590\u258C\u2590\u258C \u2590\u258C \u2590\u258C \u2584\u2584\u2584"
|
|
1778
1778
|
];
|
|
1779
|
-
var WORDMARK_COLOR =
|
|
1779
|
+
var WORDMARK_COLOR = theme.logo;
|
|
1780
1780
|
function Banner({ connectionState }) {
|
|
1781
1781
|
const isConnected = connectionState.status === "connected";
|
|
1782
1782
|
return /* @__PURE__ */ jsxs4(Box4, { flexDirection: "column", marginTop: 2, marginBottom: 1, children: [
|
|
@@ -1812,10 +1812,23 @@ function Banner({ connectionState }) {
|
|
|
1812
1812
|
var R = "\x1B[0m";
|
|
1813
1813
|
var BOLD = "\x1B[1m";
|
|
1814
1814
|
var DIM = "\x1B[2m";
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1815
|
+
var ANSI_FG = {
|
|
1816
|
+
black: "\x1B[30m",
|
|
1817
|
+
red: "\x1B[31m",
|
|
1818
|
+
green: "\x1B[32m",
|
|
1819
|
+
yellow: "\x1B[33m",
|
|
1820
|
+
blue: "\x1B[34m",
|
|
1821
|
+
magenta: "\x1B[35m",
|
|
1822
|
+
cyan: "\x1B[36m",
|
|
1823
|
+
white: "\x1B[37m",
|
|
1824
|
+
grey: "\x1B[90m",
|
|
1825
|
+
gray: "\x1B[90m"
|
|
1826
|
+
};
|
|
1827
|
+
function fg(color) {
|
|
1828
|
+
if (color in ANSI_FG) return ANSI_FG[color];
|
|
1829
|
+
const r = parseInt(color.slice(1, 3), 16);
|
|
1830
|
+
const g = parseInt(color.slice(3, 5), 16);
|
|
1831
|
+
const b = parseInt(color.slice(5, 7), 16);
|
|
1819
1832
|
return `\x1B[38;2;${r};${g};${b}m`;
|
|
1820
1833
|
}
|
|
1821
1834
|
function c(hex, s) {
|
|
@@ -1841,16 +1854,16 @@ var AI_COL = theme.insertMode;
|
|
|
1841
1854
|
var ERROR_COL = theme.error;
|
|
1842
1855
|
var WARN_COL = theme.warning;
|
|
1843
1856
|
var SHELL_COL = theme.shellMode;
|
|
1844
|
-
var ERD_BORDER = "#
|
|
1857
|
+
var ERD_BORDER = "#585b70";
|
|
1845
1858
|
var ERD_PALETTE = [
|
|
1846
|
-
"#
|
|
1847
|
-
"#
|
|
1848
|
-
"#
|
|
1849
|
-
"#
|
|
1850
|
-
"#
|
|
1851
|
-
"#
|
|
1852
|
-
"#
|
|
1853
|
-
"#
|
|
1859
|
+
"#cba6f7",
|
|
1860
|
+
"#a6e3a1",
|
|
1861
|
+
"#89b4fa",
|
|
1862
|
+
"#f38ba8",
|
|
1863
|
+
"#fab387",
|
|
1864
|
+
"#94e2d5",
|
|
1865
|
+
"#f9e2af",
|
|
1866
|
+
"#f5c2e7"
|
|
1854
1867
|
];
|
|
1855
1868
|
var NULL_MARKER = "\u2205";
|
|
1856
1869
|
var COL_PAD = 1;
|