@frontic/ui 0.8.0 → 0.8.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/README.md +1 -1
- package/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/dist/mcp/index.js +2 -2
- package/dist/{mcp-CrpA36mf.js → mcp-YYoOe4c2.js} +2 -2
- package/dist/{mcp-CrpA36mf.js.map → mcp-YYoOe4c2.js.map} +1 -1
- package/dist/registry/index.js +1 -1
- package/dist/{registry-B-cUULNn.js → registry-Clu-arot.js} +11 -11
- package/dist/registry-Clu-arot.js.map +1 -0
- package/package.json +1 -1
- package/dist/registry-B-cUULNn.js.map +0 -1
package/README.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { A as mergeEnvContent, B as DEFAULT_TAILWIND_CSS, C as configWithDefaults, D as ICON_LIBRARIES, E as transform, F as getProjectInfo, G as getConfig, H as createConfig, I as getProjectTailwindVersionFromConfig, K as getWorkspaceConfig, L as getPackageInfo, M as spinner, N as logger, O as findExistingEnvFile, P as getProjectConfig, R as DEFAULT_COMPONENTS, S as clearRegistryContext, T as updateFiles, U as findCommonRoot, V as DEFAULT_UTILS, W as findPackageRoot, _ as _createSourceFile, a as getRegistriesIndex, at as highlighter, b as handleError, c as getRegistryBaseColors, ct as DEPRECATED_COMPONENTS, d as getRegistryStyles, f as getShadcnRegistryIndex, g as resolveRegistryTree, h as fetchRegistryItems, i as getRegistriesConfig, j as parseRegistryAndItemFromString, k as getNewEnvKeys, l as getRegistryIcons, lt as REGISTRY_URL, m as resolveTree, n as fetchTree, o as getRegistry, ot as BASE_COLORS, p as resolveRegistryItems, q as resolveConfigPaths, r as getItemTargetPath, s as getRegistryBaseColor, st as BUILTIN_REGISTRIES, tt as RegistryNotConfiguredError, u as getRegistryItems, v as _getQuoteChar, w as isUniversalRegistryItem, x as buildUrlAndHeadersForRegistryItem, y as updateTailwindConfig, z as DEFAULT_TAILWIND_CONFIG } from "./registry-
|
|
2
|
+
import { A as mergeEnvContent, B as DEFAULT_TAILWIND_CSS, C as configWithDefaults, D as ICON_LIBRARIES, E as transform, F as getProjectInfo, G as getConfig, H as createConfig, I as getProjectTailwindVersionFromConfig, K as getWorkspaceConfig, L as getPackageInfo, M as spinner, N as logger, O as findExistingEnvFile, P as getProjectConfig, R as DEFAULT_COMPONENTS, S as clearRegistryContext, T as updateFiles, U as findCommonRoot, V as DEFAULT_UTILS, W as findPackageRoot, _ as _createSourceFile, a as getRegistriesIndex, at as highlighter, b as handleError, c as getRegistryBaseColors, ct as DEPRECATED_COMPONENTS, d as getRegistryStyles, f as getShadcnRegistryIndex, g as resolveRegistryTree, h as fetchRegistryItems, i as getRegistriesConfig, j as parseRegistryAndItemFromString, k as getNewEnvKeys, l as getRegistryIcons, lt as REGISTRY_URL, m as resolveTree, n as fetchTree, o as getRegistry, ot as BASE_COLORS, p as resolveRegistryItems, q as resolveConfigPaths, r as getItemTargetPath, s as getRegistryBaseColor, st as BUILTIN_REGISTRIES, tt as RegistryNotConfiguredError, u as getRegistryItems, v as _getQuoteChar, w as isUniversalRegistryItem, x as buildUrlAndHeadersForRegistryItem, y as updateTailwindConfig, z as DEFAULT_TAILWIND_CONFIG } from "./registry-Clu-arot.js";
|
|
3
3
|
import { _ as registrySchema, p as registryItemSchema, r as rawConfigSchema } from "./schema-DgHN-d0T.js";
|
|
4
|
-
import { t as server } from "./mcp-
|
|
4
|
+
import { t as server } from "./mcp-YYoOe4c2.js";
|
|
5
5
|
import { Command } from "commander";
|
|
6
6
|
import path, { isAbsolute, join, normalize, resolve, sep } from "pathe";
|
|
7
7
|
import prompts from "prompts";
|
|
@@ -1633,7 +1633,7 @@ async function promptForConfig(defaultConfig = null) {
|
|
|
1633
1633
|
const brandOklch = options.brandColor && isValidHex(options.brandColor) ? hexToOklch(options.brandColor) : void 0;
|
|
1634
1634
|
const brandForeground = brandOklch ? getForegroundColor(brandOklch) : void 0;
|
|
1635
1635
|
return rawConfigSchema.parse({
|
|
1636
|
-
$schema: "https://
|
|
1636
|
+
$schema: "https://ui.frontic.com/schema.json",
|
|
1637
1637
|
style: options.style,
|
|
1638
1638
|
tailwind: {
|
|
1639
1639
|
config: options.tailwindConfig,
|
|
@@ -1750,7 +1750,7 @@ async function preFlightAdd(options) {
|
|
|
1750
1750
|
} catch (_error) {
|
|
1751
1751
|
logger.break();
|
|
1752
1752
|
logger.error(`An invalid ${highlighter.info("components.json")} file was found at ${highlighter.info(options.cwd)}.\nBefore you can add components, you must create a valid ${highlighter.info("components.json")} file by running the ${highlighter.info("init")} command.`);
|
|
1753
|
-
logger.error(`Learn more at ${highlighter.info("https://frontic.
|
|
1753
|
+
logger.error(`Learn more at ${highlighter.info("https://ui.frontic.com/docs/components-json")}.`);
|
|
1754
1754
|
logger.break();
|
|
1755
1755
|
process.exit(1);
|
|
1756
1756
|
}
|
|
@@ -1955,7 +1955,7 @@ const build = new Command().name("build").description("Build components for a Fr
|
|
|
1955
1955
|
const buildSpinner = spinner("Building registry...");
|
|
1956
1956
|
for (const registryItem of result.data.items) {
|
|
1957
1957
|
buildSpinner.start(`Building ${registryItem.name}...`);
|
|
1958
|
-
registryItem.$schema = "https://
|
|
1958
|
+
registryItem.$schema = "https://ui.frontic.com/schema/registry-item.json";
|
|
1959
1959
|
for (const file of registryItem.files ?? []) file.content = (await fs.readFile(path$1.resolve(resolvePaths.cwd, file.path), "utf-8")).replace(/\r\n/g, "\n");
|
|
1960
1960
|
const result$1 = registryItemSchema.safeParse(registryItem);
|
|
1961
1961
|
if (!result$1.success) {
|
|
@@ -2101,7 +2101,7 @@ const info = new Command().name("info").description("get information about your
|
|
|
2101
2101
|
//#endregion
|
|
2102
2102
|
//#region src/commands/mcp.ts
|
|
2103
2103
|
const FRONTIC_MCP_VERSION = "latest";
|
|
2104
|
-
const REMOTE_MCP_URL = "https://ui.frontic.
|
|
2104
|
+
const REMOTE_MCP_URL = "https://mcp.ui.frontic.com/mcp";
|
|
2105
2105
|
const CLIENTS = [
|
|
2106
2106
|
{
|
|
2107
2107
|
name: "claude",
|
|
@@ -2166,7 +2166,7 @@ const REMOTE_CLIENTS = [
|
|
|
2166
2166
|
label: "Claude Code",
|
|
2167
2167
|
configPath: ".mcp.json",
|
|
2168
2168
|
config: { mcpServers: { "frontic-ui": {
|
|
2169
|
-
type: "
|
|
2169
|
+
type: "http",
|
|
2170
2170
|
url: REMOTE_MCP_URL
|
|
2171
2171
|
} } }
|
|
2172
2172
|
},
|
|
@@ -2475,7 +2475,7 @@ async function preFlightMigrate(options) {
|
|
|
2475
2475
|
} catch (_error) {
|
|
2476
2476
|
logger.break();
|
|
2477
2477
|
logger.error(`An invalid ${highlighter.info("components.json")} file was found at ${highlighter.info(options.cwd)}.\nBefore you can run a migration, you must create a valid ${highlighter.info("components.json")} file by running the ${highlighter.info("init")} command.`);
|
|
2478
|
-
logger.error(`Learn more at ${highlighter.info("https://frontic.
|
|
2478
|
+
logger.error(`Learn more at ${highlighter.info("https://ui.frontic.com/docs/components-json")}.`);
|
|
2479
2479
|
logger.break();
|
|
2480
2480
|
process.exit(1);
|
|
2481
2481
|
}
|
|
@@ -2519,7 +2519,7 @@ const migrate = new Command().name("migrate").description("run a migration.").ar
|
|
|
2519
2519
|
|
|
2520
2520
|
//#endregion
|
|
2521
2521
|
//#region package.json
|
|
2522
|
-
var version = "0.8.
|
|
2522
|
+
var version = "0.8.2";
|
|
2523
2523
|
|
|
2524
2524
|
//#endregion
|
|
2525
2525
|
//#region src/index.ts
|