@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/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import "./index-H1YMti1k.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-5jmG88HV.js";
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-CSfiKyuv.js";
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-thK0j_gy.js";
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://shadcn-vue.com/schema.json",
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://shadcn-vue.com/schema/registry-item.json";
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.5.1";
2430
+ var version = "0.6.0";
2431
2431
 
2432
2432
  //#endregion
2433
2433
  //#region src/index.ts