postboy-tui 1.3.1 → 1.3.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/cli.js +51 -11
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -67881,7 +67881,7 @@ var FormField = ({ label, value, onChange, placeholder, theme, suggestions = []
|
|
|
67881
67881
|
}, undefined, true, undefined, this)
|
|
67882
67882
|
}, undefined, false, undefined, this),
|
|
67883
67883
|
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(Box_default, {
|
|
67884
|
-
borderStyle: "
|
|
67884
|
+
borderStyle: "round",
|
|
67885
67885
|
borderColor: isFocused ? theme.primary : theme.muted,
|
|
67886
67886
|
paddingX: 1,
|
|
67887
67887
|
flexGrow: 1,
|
|
@@ -67898,7 +67898,7 @@ var FormField = ({ label, value, onChange, placeholder, theme, suggestions = []
|
|
|
67898
67898
|
showSuggestions && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(Box_default, {
|
|
67899
67899
|
flexDirection: "column",
|
|
67900
67900
|
marginLeft: 8,
|
|
67901
|
-
borderStyle: "
|
|
67901
|
+
borderStyle: "round",
|
|
67902
67902
|
borderColor: theme.muted,
|
|
67903
67903
|
children: filteredSuggestions.filter((s) => typeof s === "string" && s.trim().length > 0).map((s, idx) => /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(Box_default, {
|
|
67904
67904
|
children: /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(Text, {
|
|
@@ -67920,7 +67920,7 @@ var TabItem = ({ name, label, isActive, onChange, theme }) => {
|
|
|
67920
67920
|
onChange(name);
|
|
67921
67921
|
});
|
|
67922
67922
|
return /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Box_default, {
|
|
67923
|
-
borderStyle: "
|
|
67923
|
+
borderStyle: "round",
|
|
67924
67924
|
borderTopColor: "grey",
|
|
67925
67925
|
borderColor: isActive ? theme.colors.accent : isFocused ? theme.colors.primary : "transparent",
|
|
67926
67926
|
paddingX: 1,
|
|
@@ -68072,7 +68072,7 @@ var import_react26 = __toESM(require_react(), 1);
|
|
|
68072
68072
|
var jsx_dev_runtime5 = __toESM(require_jsx_dev_runtime(), 1);
|
|
68073
68073
|
var Footer = import_react26.default.memo(({ theme }) => {
|
|
68074
68074
|
return /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(Box_default, {
|
|
68075
|
-
borderStyle: "
|
|
68075
|
+
borderStyle: "round",
|
|
68076
68076
|
borderTopColor: theme.muted,
|
|
68077
68077
|
marginTop: 1,
|
|
68078
68078
|
paddingX: 1,
|
|
@@ -68162,7 +68162,7 @@ var ThemeSelector = ({ onThemeChange, theme }) => {
|
|
|
68162
68162
|
return /* @__PURE__ */ jsx_dev_runtime6.jsxDEV(Box_default, {
|
|
68163
68163
|
flexDirection: "column",
|
|
68164
68164
|
padding: 1,
|
|
68165
|
-
borderStyle: "
|
|
68165
|
+
borderStyle: "round",
|
|
68166
68166
|
borderColor: theme.colors.accent,
|
|
68167
68167
|
width: "50%",
|
|
68168
68168
|
alignSelf: "center",
|
|
@@ -68540,8 +68540,9 @@ var SendButton = ({ onPress, loading, theme }) => {
|
|
|
68540
68540
|
onPress();
|
|
68541
68541
|
});
|
|
68542
68542
|
return /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(Box_default, {
|
|
68543
|
-
borderStyle: "
|
|
68543
|
+
borderStyle: "round",
|
|
68544
68544
|
paddingX: 2,
|
|
68545
|
+
borderTopDimColor: true,
|
|
68545
68546
|
borderColor: isFocused ? theme.accent : theme.primary,
|
|
68546
68547
|
children: loading ? /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(Spinner, {
|
|
68547
68548
|
theme
|
|
@@ -68740,13 +68741,20 @@ var UI = () => {
|
|
|
68740
68741
|
children: [
|
|
68741
68742
|
/* @__PURE__ */ jsx_dev_runtime10.jsxDEV(Box_default, {
|
|
68742
68743
|
width: "40%",
|
|
68743
|
-
borderStyle: "classic",
|
|
68744
68744
|
borderColor: theme.colors.muted,
|
|
68745
68745
|
flexDirection: "column",
|
|
68746
68746
|
marginRight: 1,
|
|
68747
68747
|
children: [
|
|
68748
68748
|
/* @__PURE__ */ jsx_dev_runtime10.jsxDEV(Box_default, {
|
|
68749
|
-
|
|
68749
|
+
alignSelf: "center",
|
|
68750
|
+
marginBottom: 1,
|
|
68751
|
+
children: /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(Text, {
|
|
68752
|
+
color: theme.colors.accent,
|
|
68753
|
+
bold: true,
|
|
68754
|
+
children: `┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓`
|
|
68755
|
+
}, undefined, false, undefined, this)
|
|
68756
|
+
}, undefined, false, undefined, this),
|
|
68757
|
+
/* @__PURE__ */ jsx_dev_runtime10.jsxDEV(Box_default, {
|
|
68750
68758
|
borderTopColor: "grey",
|
|
68751
68759
|
borderColor: theme.colors.secondary,
|
|
68752
68760
|
paddingX: 1,
|
|
@@ -68760,6 +68768,12 @@ var UI = () => {
|
|
|
68760
68768
|
/* @__PURE__ */ jsx_dev_runtime10.jsxDEV(Box_default, {
|
|
68761
68769
|
flexDirection: "column",
|
|
68762
68770
|
flexGrow: 1,
|
|
68771
|
+
borderRightColor: "grey",
|
|
68772
|
+
borderTop: false,
|
|
68773
|
+
borderStyle: "round",
|
|
68774
|
+
borderLeft: false,
|
|
68775
|
+
borderBottom: false,
|
|
68776
|
+
paddingY: 1,
|
|
68763
68777
|
children: history.length === 0 ? /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(Box_default, {
|
|
68764
68778
|
padding: 1,
|
|
68765
68779
|
children: /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(Text, {
|
|
@@ -68771,16 +68785,33 @@ var UI = () => {
|
|
|
68771
68785
|
onItemClick: handleHistoryClick,
|
|
68772
68786
|
theme
|
|
68773
68787
|
}, undefined, false, undefined, this)
|
|
68788
|
+
}, undefined, false, undefined, this),
|
|
68789
|
+
/* @__PURE__ */ jsx_dev_runtime10.jsxDEV(Box_default, {
|
|
68790
|
+
alignSelf: "center",
|
|
68791
|
+
marginBottom: 1,
|
|
68792
|
+
children: /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(Text, {
|
|
68793
|
+
color: theme.colors.accent,
|
|
68794
|
+
bold: true,
|
|
68795
|
+
children: `┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛`
|
|
68796
|
+
}, undefined, false, undefined, this)
|
|
68774
68797
|
}, undefined, false, undefined, this)
|
|
68775
68798
|
]
|
|
68776
68799
|
}, undefined, true, undefined, this),
|
|
68777
68800
|
/* @__PURE__ */ jsx_dev_runtime10.jsxDEV(Box_default, {
|
|
68778
68801
|
width: "60%",
|
|
68779
|
-
borderStyle: "classic",
|
|
68780
68802
|
borderColor: theme.colors.muted,
|
|
68781
68803
|
padding: 1,
|
|
68782
68804
|
flexDirection: "column",
|
|
68783
68805
|
children: [
|
|
68806
|
+
/* @__PURE__ */ jsx_dev_runtime10.jsxDEV(Box_default, {
|
|
68807
|
+
alignSelf: "center",
|
|
68808
|
+
marginBottom: 1,
|
|
68809
|
+
children: /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(Text, {
|
|
68810
|
+
color: theme.colors.accent,
|
|
68811
|
+
bold: true,
|
|
68812
|
+
children: `┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓`
|
|
68813
|
+
}, undefined, false, undefined, this)
|
|
68814
|
+
}, undefined, false, undefined, this),
|
|
68784
68815
|
/* @__PURE__ */ jsx_dev_runtime10.jsxDEV(Tabs, {
|
|
68785
68816
|
tabs,
|
|
68786
68817
|
activeTab,
|
|
@@ -68816,7 +68847,16 @@ var UI = () => {
|
|
|
68816
68847
|
}, undefined, false, undefined, this)
|
|
68817
68848
|
}, undefined, false, undefined, this)
|
|
68818
68849
|
]
|
|
68819
|
-
}, undefined, true, undefined, this)
|
|
68850
|
+
}, undefined, true, undefined, this),
|
|
68851
|
+
/* @__PURE__ */ jsx_dev_runtime10.jsxDEV(Box_default, {
|
|
68852
|
+
alignSelf: "center",
|
|
68853
|
+
marginBottom: 1,
|
|
68854
|
+
children: /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(Text, {
|
|
68855
|
+
color: theme.colors.accent,
|
|
68856
|
+
bold: true,
|
|
68857
|
+
children: `┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛`
|
|
68858
|
+
}, undefined, false, undefined, this)
|
|
68859
|
+
}, undefined, false, undefined, this)
|
|
68820
68860
|
]
|
|
68821
68861
|
}, undefined, true, undefined, this)
|
|
68822
68862
|
]
|
|
@@ -69025,7 +69065,7 @@ async function mockApis() {
|
|
|
69025
69065
|
|
|
69026
69066
|
// src/index.ts
|
|
69027
69067
|
var program2 = new Command;
|
|
69028
|
-
program2.version("1.3.
|
|
69068
|
+
program2.version("1.3.2").description(import_chalk8.default.yellow("PostBoy CLI - Test your APIs with ease"));
|
|
69029
69069
|
program2.command("run").description("Run a test API request").action(testCommand);
|
|
69030
69070
|
program2.command("mock-list").description("List the mock API servers").action(mockApis);
|
|
69031
69071
|
program2.command("ui").description("UI for PostBoy").action(uiCommand);
|