@frontic/ui 0.5.1 → 0.6.0
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/{api-5jmG88HV.d.ts → api-DmrBFC4C.d.ts} +20 -20
- package/dist/api-DmrBFC4C.d.ts.map +1 -0
- package/dist/{index-H1YMti1k.d.ts → index-Cd5RBhtD.d.ts} +58 -58
- package/dist/index-Cd5RBhtD.d.ts.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/mcp/index.js +2 -2
- package/dist/{mcp-thK0j_gy.js → mcp-CrpA36mf.js} +9 -9
- package/dist/mcp-CrpA36mf.js.map +1 -0
- package/dist/registry/index.d.ts +8 -8
- package/dist/registry/index.d.ts.map +1 -1
- package/dist/registry/index.js +1 -1
- package/dist/{registry-CSfiKyuv.js → registry-B-cUULNn.js} +6 -6
- package/dist/registry-B-cUULNn.js.map +1 -0
- package/dist/schema/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/api-5jmG88HV.d.ts.map +0 -1
- package/dist/index-H1YMti1k.d.ts.map +0 -1
- package/dist/mcp-thK0j_gy.js.map +0 -1
- package/dist/registry-CSfiKyuv.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import "./index-
|
|
3
|
-
import { a as getRegistry, c as getRegistryIcons, d as getShadcnRegistryIndex, f as resolveRegistryItems, i as getRegistriesIndex, l as getRegistryItems, n as getItemTargetPath, o as getRegistryBaseColor, p as resolveTree, r as getRegistriesConfig, s as getRegistryBaseColors, t as fetchTree, u as getRegistryStyles } from "./api-
|
|
2
|
+
import "./index-Cd5RBhtD.js";
|
|
3
|
+
import { a as getRegistry, c as getRegistryIcons, d as getShadcnRegistryIndex, f as resolveRegistryItems, i as getRegistriesIndex, l as getRegistryItems, n as getItemTargetPath, o as getRegistryBaseColor, p as resolveTree, r as getRegistriesConfig, s as getRegistryBaseColors, t as fetchTree, u as getRegistryStyles } from "./api-DmrBFC4C.js";
|
|
4
4
|
export { fetchTree, getItemTargetPath, getRegistriesConfig, getRegistriesIndex, getRegistry, getRegistryBaseColor, getRegistryBaseColors, getRegistryIcons, getRegistryItems, getRegistryStyles, getShadcnRegistryIndex, resolveRegistryItems, resolveTree };
|
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-B-cUULNn.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-CrpA36mf.js";
|
|
5
5
|
import { Command } from "commander";
|
|
6
6
|
import path, { isAbsolute, join, normalize, resolve, sep } from "pathe";
|
|
7
7
|
import prompts from "prompts";
|
|
@@ -1643,7 +1643,7 @@ async function promptForConfig(defaultConfig = null) {
|
|
|
1643
1643
|
const brandOklch = options.brandColor && isValidHex(options.brandColor) ? hexToOklch(options.brandColor) : void 0;
|
|
1644
1644
|
const brandForeground = brandOklch ? getForegroundColor(brandOklch) : void 0;
|
|
1645
1645
|
return rawConfigSchema.parse({
|
|
1646
|
-
$schema: "https://
|
|
1646
|
+
$schema: "https://schema.frontic.io/schema.json",
|
|
1647
1647
|
style: options.style,
|
|
1648
1648
|
tailwind: {
|
|
1649
1649
|
config: options.tailwindConfig,
|
|
@@ -1965,7 +1965,7 @@ const build = new Command().name("build").description("Build components for a Fr
|
|
|
1965
1965
|
const buildSpinner = spinner("Building registry...");
|
|
1966
1966
|
for (const registryItem of result.data.items) {
|
|
1967
1967
|
buildSpinner.start(`Building ${registryItem.name}...`);
|
|
1968
|
-
registryItem.$schema = "https://
|
|
1968
|
+
registryItem.$schema = "https://schema.frontic.io/schema/registry-item.json";
|
|
1969
1969
|
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");
|
|
1970
1970
|
const result$1 = registryItemSchema.safeParse(registryItem);
|
|
1971
1971
|
if (!result$1.success) {
|
|
@@ -2427,7 +2427,7 @@ const migrate = new Command().name("migrate").description("run a migration.").ar
|
|
|
2427
2427
|
|
|
2428
2428
|
//#endregion
|
|
2429
2429
|
//#region package.json
|
|
2430
|
-
var version = "0.
|
|
2430
|
+
var version = "0.6.0";
|
|
2431
2431
|
|
|
2432
2432
|
//#endregion
|
|
2433
2433
|
//#region src/index.ts
|