shadcn 4.15.0 → 4.16.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/mcp/index.js CHANGED
@@ -1 +1 @@
1
- export{a as server}from'../chunk-7XENAQOF.js';import'../chunk-LRM3FM4U.js';import'../chunk-2XFBGS5K.js';import'../chunk-MTWZIHEW.js';import'../chunk-7SBJAAAY.js';import'../chunk-CHWMSXYA.js';
1
+ export{a as server}from'../chunk-WSDRTMUH.js';import'../chunk-OLTG3DPR.js';import'../chunk-2XFBGS5K.js';import'../chunk-MTWZIHEW.js';import'../chunk-7SBJAAAY.js';import'../chunk-CHWMSXYA.js';
@@ -1,118 +1,17 @@
1
- export { getRegistries, getRegistriesIndex, getRegistry, getRegistryItems, resolveRegistryItems } from '../index.js';
2
- import { registryItemSchema } from '../schema/index.js';
1
+ export { getRegistries, getRegistriesConfig, getRegistriesIndex, getRegistry, getRegistryItems, resolveRegistryItems } from '../index.js';
3
2
  import { C as Config } from '../get-config-D6gTsP_D.js';
4
- import { z } from 'zod';
3
+ import '../schema/index.js';
4
+ import 'zod';
5
5
 
6
- type RegistryFetchOptions = {
7
- requireUniversal?: boolean;
8
- useCache?: boolean;
9
- sourceCache?: Map<string, Promise<string>>;
10
- };
11
- declare function resolveRegistryTree(names: z.infer<typeof registryItemSchema>["name"][], config: Config, options?: RegistryFetchOptions): Promise<{
12
- tailwind?: {
13
- config?: {
14
- theme?: Record<string, any> | undefined;
15
- content?: string[] | undefined;
16
- plugins?: string[] | undefined;
17
- } | undefined;
18
- } | undefined;
19
- docs?: string | undefined;
20
- css?: Record<string, any> | undefined;
21
- dependencies?: string[] | undefined;
22
- devDependencies?: string[] | undefined;
23
- files?: ({
24
- path: string;
25
- type: "registry:page" | "registry:file";
26
- target: string;
27
- content?: string | undefined;
28
- } | {
29
- path: string;
30
- type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:base" | "registry:font" | "registry:example" | "registry:internal";
31
- content?: string | undefined;
32
- target?: string | undefined;
33
- })[] | undefined;
34
- cssVars?: {
35
- theme?: Record<string, string> | undefined;
36
- light?: Record<string, string> | undefined;
37
- dark?: Record<string, string> | undefined;
38
- } | undefined;
39
- envVars?: Record<string, string> | undefined;
40
- fonts?: {
41
- font: {
42
- family: string;
43
- provider: "google";
44
- import: string;
45
- variable: string;
46
- weight?: string[] | undefined;
47
- subsets?: string[] | undefined;
48
- selector?: string | undefined;
49
- dependency?: string | undefined;
50
- };
51
- type: "registry:font";
52
- name: string;
53
- tailwind?: {
54
- config?: {
55
- theme?: Record<string, any> | undefined;
56
- content?: string[] | undefined;
57
- plugins?: string[] | undefined;
58
- } | undefined;
59
- } | undefined;
60
- docs?: string | undefined;
61
- $schema?: string | undefined;
62
- css?: Record<string, any> | undefined;
63
- extends?: string | undefined;
64
- title?: string | undefined;
65
- author?: string | undefined;
66
- description?: string | undefined;
67
- dependencies?: string[] | undefined;
68
- devDependencies?: string[] | undefined;
69
- registryDependencies?: string[] | undefined;
70
- files?: ({
71
- path: string;
72
- type: "registry:page" | "registry:file";
73
- target: string;
74
- content?: string | undefined;
75
- } | {
76
- path: string;
77
- type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:base" | "registry:font" | "registry:example" | "registry:internal";
78
- content?: string | undefined;
79
- target?: string | undefined;
80
- })[] | undefined;
81
- cssVars?: {
82
- theme?: Record<string, string> | undefined;
83
- light?: Record<string, string> | undefined;
84
- dark?: Record<string, string> | undefined;
85
- } | undefined;
86
- envVars?: Record<string, string> | undefined;
87
- meta?: Record<string, any> | undefined;
88
- categories?: string[] | undefined;
89
- }[] | undefined;
90
- } | null>;
91
-
92
- interface AddComponentsOptions {
6
+ declare function addRegistryItems(items: string[], options?: {
7
+ cwd?: string;
8
+ config?: Partial<Config>;
93
9
  overwrite?: boolean;
94
10
  overwriteCssVars?: boolean;
95
11
  silent?: boolean;
96
- interactive?: boolean;
97
- resolvedTree?: NonNullable<Awaited<ReturnType<typeof resolveRegistryTree>>>;
98
- isNewProject?: boolean;
99
12
  skipFonts?: boolean;
100
- registryHeaders?: Record<string, Record<string, string>>;
101
13
  path?: string;
102
- }
103
-
104
- interface AddRegistryItemsOptions extends Pick<AddComponentsOptions, "overwrite" | "overwriteCssVars" | "silent" | "skipFonts" | "path"> {
105
- /** The project directory. Defaults to the current working directory. */
106
- cwd?: string;
107
- }
108
- /**
109
- * Resolve and install registry items into a project.
110
- *
111
- * This is the programmatic equivalent of `shadcn add` for an existing project.
112
- * Universal registry items with explicit file targets can also be installed
113
- * without a components.json file.
114
- */
115
- declare function addRegistryItems(items: string[], options?: AddRegistryItemsOptions): Promise<void>;
14
+ }): Promise<void>;
116
15
 
117
16
  type SearchRegistriesOptions = {
118
17
  query?: string;
@@ -567,4 +466,4 @@ declare class RegistriesIndexParseError extends RegistryError {
567
466
  constructor(parseError: unknown);
568
467
  }
569
468
 
570
- export { type AddRegistryItemsOptions, type LoadRegistryOptions, RegistriesIndexParseError, RegistryError, RegistryErrorCode, RegistryFetchError, RegistryForbiddenError, RegistryInvalidNamespaceError, RegistryItemNotFoundError, RegistryLocalFileError, RegistryMissingEnvironmentVariablesError, RegistryNotConfiguredError, RegistryNotFoundError, RegistryParseError, RegistryUnauthorizedError, RegistryValidationError, addRegistryItems, loadRegistry, loadRegistryItem, searchRegistries };
469
+ export { type LoadRegistryOptions, RegistriesIndexParseError, RegistryError, RegistryErrorCode, RegistryFetchError, RegistryForbiddenError, RegistryInvalidNamespaceError, RegistryItemNotFoundError, RegistryLocalFileError, RegistryMissingEnvironmentVariablesError, RegistryNotConfiguredError, RegistryNotFoundError, RegistryParseError, RegistryUnauthorizedError, RegistryValidationError, addRegistryItems, loadRegistry, loadRegistryItem, searchRegistries };
@@ -1 +1 @@
1
- export{x as RegistriesIndexParseError,l as RegistryError,k as RegistryErrorCode,p as RegistryFetchError,o as RegistryForbiddenError,w as RegistryInvalidNamespaceError,u as RegistryItemNotFoundError,r as RegistryLocalFileError,v as RegistryMissingEnvironmentVariablesError,q as RegistryNotConfiguredError,m as RegistryNotFoundError,s as RegistryParseError,n as RegistryUnauthorizedError,t as RegistryValidationError,Ra as addRegistryItems,ta as getRegistries,ua as getRegistriesIndex,ha as getRegistry,ia as getRegistryItems,Ma as loadRegistry,Na as loadRegistryItem,ja as resolveRegistryItems,Ta as searchRegistries}from'../chunk-LRM3FM4U.js';import'../chunk-2XFBGS5K.js';import'../chunk-MTWZIHEW.js';import'../chunk-7SBJAAAY.js';import'../chunk-CHWMSXYA.js';
1
+ export{x as RegistriesIndexParseError,l as RegistryError,k as RegistryErrorCode,p as RegistryFetchError,o as RegistryForbiddenError,w as RegistryInvalidNamespaceError,u as RegistryItemNotFoundError,r as RegistryLocalFileError,v as RegistryMissingEnvironmentVariablesError,q as RegistryNotConfiguredError,m as RegistryNotFoundError,s as RegistryParseError,n as RegistryUnauthorizedError,t as RegistryValidationError,Sa as addRegistryItems,va as getRegistries,ma as getRegistriesConfig,wa as getRegistriesIndex,ja as getRegistry,ka as getRegistryItems,Na as loadRegistry,Oa as loadRegistryItem,la as resolveRegistryItems,Ua as searchRegistries}from'../chunk-OLTG3DPR.js';import'../chunk-2XFBGS5K.js';import'../chunk-MTWZIHEW.js';import'../chunk-7SBJAAAY.js';import'../chunk-CHWMSXYA.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shadcn",
3
- "version": "4.15.0",
3
+ "version": "4.16.0",
4
4
  "description": "Add components to your apps.",
5
5
  "publishConfig": {
6
6
  "access": "public"