@stackable-labs/cli-app-extension 1.96.0 → 1.96.1
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 +26 -23
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -105,7 +105,7 @@ var Banner = ({ userId, orgId, appName, appId } = {}) => {
|
|
|
105
105
|
/* @__PURE__ */ jsx(Text, { dimColor: true, children: "\u2500".repeat(termWidth) }),
|
|
106
106
|
/* @__PURE__ */ jsxs(Box, { flexDirection: "column", paddingX: 1, paddingY: 1, children: [
|
|
107
107
|
WORDMARK.map((line, row) => /* @__PURE__ */ jsx(Box, { children: line.split("").map((ch, col) => /* @__PURE__ */ jsx(Text, { bold: true, color: ch === " " ? void 0 : gradientColor(row, col, WORDMARK.length, maxLen), children: ch }, col)) }, row)),
|
|
108
|
-
userId && orgId && /* @__PURE__ */ jsxs(Box, {
|
|
108
|
+
userId && orgId && /* @__PURE__ */ jsxs(Box, { flexDirection: "column", marginTop: 1, children: [
|
|
109
109
|
/* @__PURE__ */ jsxs(Box, { gap: 1, children: [
|
|
110
110
|
/* @__PURE__ */ jsx(Text, { dimColor: true, children: "User:" }),
|
|
111
111
|
/* @__PURE__ */ jsx(Text, { color: "cyan", children: userId })
|
|
@@ -114,12 +114,12 @@ var Banner = ({ userId, orgId, appName, appId } = {}) => {
|
|
|
114
114
|
/* @__PURE__ */ jsx(Text, { dimColor: true, children: "Org:" }),
|
|
115
115
|
/* @__PURE__ */ jsx(Text, { color: "cyan", children: orgId })
|
|
116
116
|
] }),
|
|
117
|
-
|
|
117
|
+
appId && /* @__PURE__ */ jsxs(Box, { gap: 1, children: [
|
|
118
118
|
/* @__PURE__ */ jsx(Text, { dimColor: true, children: "App:" }),
|
|
119
|
-
/* @__PURE__ */ jsx(Text, { color: "cyan", children:
|
|
120
|
-
|
|
119
|
+
/* @__PURE__ */ jsx(Text, { color: "cyan", children: appId }),
|
|
120
|
+
appName && /* @__PURE__ */ jsxs(Text, { dimColor: true, children: [
|
|
121
121
|
"(",
|
|
122
|
-
|
|
122
|
+
appName,
|
|
123
123
|
")"
|
|
124
124
|
] })
|
|
125
125
|
] })
|
|
@@ -1454,23 +1454,6 @@ var AppSelect = ({ token, userId, orgId, onSubmit }) => {
|
|
|
1454
1454
|
if (apps.length === 0) {
|
|
1455
1455
|
return /* @__PURE__ */ jsx(Text, { color: "yellow", children: "No Apps available. Contact your administrator." });
|
|
1456
1456
|
}
|
|
1457
|
-
if (defaultApp) {
|
|
1458
|
-
return /* @__PURE__ */ jsxs(Box, { flexDirection: "column", gap: 1, children: [
|
|
1459
|
-
/* @__PURE__ */ jsxs(Box, { gap: 1, children: [
|
|
1460
|
-
/* @__PURE__ */ jsx(Text, { color: "green", children: "\u2713" }),
|
|
1461
|
-
/* @__PURE__ */ jsxs(Text, { children: [
|
|
1462
|
-
"Using ",
|
|
1463
|
-
/* @__PURE__ */ jsx(Text, { bold: true, color: "cyan", children: defaultApp.name })
|
|
1464
|
-
] }),
|
|
1465
|
-
/* @__PURE__ */ jsxs(Text, { dimColor: true, children: [
|
|
1466
|
-
"(",
|
|
1467
|
-
defaultApp.id,
|
|
1468
|
-
")"
|
|
1469
|
-
] })
|
|
1470
|
-
] }),
|
|
1471
|
-
/* @__PURE__ */ jsx(Text, { dimColor: true, children: "Auto-selected \u2014 only one App available." })
|
|
1472
|
-
] });
|
|
1473
|
-
}
|
|
1474
1457
|
return /* @__PURE__ */ jsx(Box, { flexDirection: "column", children: apps.map((app, i) => {
|
|
1475
1458
|
const isCursor = i === cursor;
|
|
1476
1459
|
return /* @__PURE__ */ jsxs(Box, { gap: 1, children: [
|
|
@@ -1484,8 +1467,28 @@ var AppSelect = ({ token, userId, orgId, onSubmit }) => {
|
|
|
1484
1467
|
] }, app.id);
|
|
1485
1468
|
}) });
|
|
1486
1469
|
};
|
|
1470
|
+
if (defaultApp) {
|
|
1471
|
+
return /* @__PURE__ */ jsxs(Box, { flexDirection: "column", children: [
|
|
1472
|
+
/* @__PURE__ */ jsx(Banner, { userId, orgId, appName: defaultApp.name, appId: defaultApp.id }),
|
|
1473
|
+
/* @__PURE__ */ jsxs(Box, { flexDirection: "column", paddingX: 2, paddingY: 1, gap: 1, children: [
|
|
1474
|
+
/* @__PURE__ */ jsxs(Box, { gap: 1, children: [
|
|
1475
|
+
/* @__PURE__ */ jsx(Text, { color: "green", children: "\u2713" }),
|
|
1476
|
+
/* @__PURE__ */ jsxs(Text, { children: [
|
|
1477
|
+
"Using ",
|
|
1478
|
+
/* @__PURE__ */ jsx(Text, { bold: true, color: "cyan", children: defaultApp.name })
|
|
1479
|
+
] }),
|
|
1480
|
+
/* @__PURE__ */ jsxs(Text, { dimColor: true, children: [
|
|
1481
|
+
"(",
|
|
1482
|
+
defaultApp.id,
|
|
1483
|
+
")"
|
|
1484
|
+
] })
|
|
1485
|
+
] }),
|
|
1486
|
+
/* @__PURE__ */ jsx(Text, { dimColor: true, children: "Auto-selected \u2014 only one App available." })
|
|
1487
|
+
] })
|
|
1488
|
+
] });
|
|
1489
|
+
}
|
|
1487
1490
|
return /* @__PURE__ */ jsxs(Box, { flexDirection: "column", children: [
|
|
1488
|
-
/* @__PURE__ */ jsx(Banner, { userId, orgId
|
|
1491
|
+
/* @__PURE__ */ jsx(Banner, { userId, orgId }),
|
|
1489
1492
|
/* @__PURE__ */ jsx(StepShell, { title: "Select the App you are building an Extension for:", children: renderContent() })
|
|
1490
1493
|
] });
|
|
1491
1494
|
};
|