boardui 0.5.2 → 0.5.4
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 +7 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -143,7 +143,7 @@ async function installPackages(pm, packages, cwd) {
|
|
|
143
143
|
import { existsSync as existsSync2, mkdirSync, readFileSync as readFileSync2, rmSync, writeFileSync } from "fs";
|
|
144
144
|
import { homedir, hostname } from "os";
|
|
145
145
|
import path2 from "path";
|
|
146
|
-
var LICENSE_API = "https://
|
|
146
|
+
var LICENSE_API = process.env.BOARDUI_LICENSE_API ?? "https://www.boardui.com/api/licenses";
|
|
147
147
|
var PRO_PRODUCT_IDS = /* @__PURE__ */ new Set([1220683, 1268490]);
|
|
148
148
|
function configRoot() {
|
|
149
149
|
if (process.env.XDG_CONFIG_HOME) return process.env.XDG_CONFIG_HOME;
|
|
@@ -1031,6 +1031,10 @@ function editDistance(a, b) {
|
|
|
1031
1031
|
}
|
|
1032
1032
|
return d[rows - 1][cols - 1];
|
|
1033
1033
|
}
|
|
1034
|
+
var UNRELEASED = {
|
|
1035
|
+
"agent-orb": '"agent-orb" is not available yet. It is still in progress and not open to public use.',
|
|
1036
|
+
orb: "The BoardUI orb component is not available yet. It is still in progress and not open to public use."
|
|
1037
|
+
};
|
|
1034
1038
|
var CURATED_SUGGESTIONS = {
|
|
1035
1039
|
textarea: ["input"],
|
|
1036
1040
|
"text-area": ["input"],
|
|
@@ -1059,6 +1063,8 @@ function resolveName(raw, universe) {
|
|
|
1059
1063
|
if (universe.all.has(n)) return { name: n };
|
|
1060
1064
|
const alias = universe.aliases.get(n);
|
|
1061
1065
|
if (alias) return { name: alias };
|
|
1066
|
+
const unreleased = UNRELEASED[n];
|
|
1067
|
+
if (unreleased) return { error: unreleased };
|
|
1062
1068
|
const suggestions = new Set(CURATED_SUGGESTIONS[n] ?? []);
|
|
1063
1069
|
const scored = [];
|
|
1064
1070
|
for (const name of universe.all) {
|