shadcn 0.0.0-beta.01b72a3
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/LICENSE.md +21 -0
- package/README.md +61 -0
- package/dist/chunk-7SBJAAAY.js +2 -0
- package/dist/chunk-CHWMSXYA.js +2 -0
- package/dist/chunk-FL6Z3T5X.js +75 -0
- package/dist/chunk-MTWZIHEW.js +1 -0
- package/dist/chunk-NPBIPAZH.js +109 -0
- package/dist/chunk-NUMOKWW5.js +1 -0
- package/dist/get-config-D6gTsP_D.d.ts +6 -0
- package/dist/icons/index.d.ts +47 -0
- package/dist/icons/index.js +1 -0
- package/dist/index.d.ts +1155 -0
- package/dist/index.js +171 -0
- package/dist/mcp/index.d.ts +38 -0
- package/dist/mcp/index.js +1 -0
- package/dist/preset/index.d.ts +35 -0
- package/dist/preset/index.js +1 -0
- package/dist/registry/index.d.ts +458 -0
- package/dist/registry/index.js +1 -0
- package/dist/schema/index.d.ts +7444 -0
- package/dist/schema/index.js +1 -0
- package/dist/tailwind.css +95 -0
- package/dist/utils/index.d.ts +42 -0
- package/dist/utils/index.js +1 -0
- package/package.json +132 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as server}from'../chunk-FL6Z3T5X.js';import'../chunk-NPBIPAZH.js';import'../chunk-MTWZIHEW.js';import'../chunk-7SBJAAAY.js';import'../chunk-CHWMSXYA.js';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
declare const PRESET_BASES: readonly ["radix", "base"];
|
|
2
|
+
declare const PRESET_STYLES: readonly ["nova", "vega", "maia", "lyra", "mira", "luma", "sera", "rhea"];
|
|
3
|
+
declare const PRESET_BASE_COLORS: readonly ["neutral", "stone", "zinc", "gray", "mauve", "olive", "mist", "taupe"];
|
|
4
|
+
declare const PRESET_THEMES: readonly ["neutral", "stone", "zinc", "gray", "amber", "blue", "cyan", "emerald", "fuchsia", "green", "indigo", "lime", "orange", "pink", "purple", "red", "rose", "sky", "teal", "violet", "yellow", "mauve", "olive", "mist", "taupe"];
|
|
5
|
+
declare const PRESET_CHART_COLORS: readonly ["neutral", "stone", "zinc", "gray", "amber", "blue", "cyan", "emerald", "fuchsia", "green", "indigo", "lime", "orange", "pink", "purple", "red", "rose", "sky", "teal", "violet", "yellow", "mauve", "olive", "mist", "taupe"];
|
|
6
|
+
declare const V1_CHART_COLOR_MAP: Record<string, string>;
|
|
7
|
+
declare const PRESET_ICON_LIBRARIES: readonly ["lucide", "hugeicons", "tabler", "phosphor", "remixicon"];
|
|
8
|
+
declare const PRESET_FONTS: readonly ["inter", "noto-sans", "nunito-sans", "figtree", "roboto", "raleway", "dm-sans", "public-sans", "outfit", "jetbrains-mono", "geist", "geist-mono", "lora", "merriweather", "playfair-display", "noto-serif", "roboto-slab", "oxanium", "manrope", "space-grotesk", "montserrat", "ibm-plex-sans", "source-sans-3", "instrument-sans", "eb-garamond", "instrument-serif"];
|
|
9
|
+
declare const PRESET_FONT_HEADINGS: readonly ["inherit", "inter", "noto-sans", "nunito-sans", "figtree", "roboto", "raleway", "dm-sans", "public-sans", "outfit", "jetbrains-mono", "geist", "geist-mono", "lora", "merriweather", "playfair-display", "noto-serif", "roboto-slab", "oxanium", "manrope", "space-grotesk", "montserrat", "ibm-plex-sans", "source-sans-3", "instrument-sans", "eb-garamond", "instrument-serif"];
|
|
10
|
+
declare const PRESET_RADII: readonly ["default", "none", "small", "medium", "large"];
|
|
11
|
+
declare const PRESET_MENU_ACCENTS: readonly ["subtle", "bold"];
|
|
12
|
+
declare const PRESET_MENU_COLORS: readonly ["default", "inverted", "default-translucent", "inverted-translucent"];
|
|
13
|
+
type PresetConfig = {
|
|
14
|
+
style: (typeof PRESET_STYLES)[number];
|
|
15
|
+
baseColor: (typeof PRESET_BASE_COLORS)[number];
|
|
16
|
+
theme: (typeof PRESET_THEMES)[number];
|
|
17
|
+
chartColor?: (typeof PRESET_CHART_COLORS)[number];
|
|
18
|
+
iconLibrary: (typeof PRESET_ICON_LIBRARIES)[number];
|
|
19
|
+
font: (typeof PRESET_FONTS)[number];
|
|
20
|
+
fontHeading: (typeof PRESET_FONT_HEADINGS)[number];
|
|
21
|
+
radius: (typeof PRESET_RADII)[number];
|
|
22
|
+
menuAccent: (typeof PRESET_MENU_ACCENTS)[number];
|
|
23
|
+
menuColor: (typeof PRESET_MENU_COLORS)[number];
|
|
24
|
+
};
|
|
25
|
+
declare const DEFAULT_PRESET_CONFIG: PresetConfig;
|
|
26
|
+
declare function toBase62(num: number): string;
|
|
27
|
+
declare function fromBase62(str: string): number;
|
|
28
|
+
declare function encodePreset(config: Partial<PresetConfig>): string;
|
|
29
|
+
declare function decodePreset(code: string): PresetConfig | null;
|
|
30
|
+
declare function isPresetCode(value: string): boolean;
|
|
31
|
+
declare function isValidPreset(code: string): boolean;
|
|
32
|
+
declare function generateRandomConfig(): PresetConfig;
|
|
33
|
+
declare function generateRandomPreset(): string;
|
|
34
|
+
|
|
35
|
+
export { DEFAULT_PRESET_CONFIG, PRESET_BASES, PRESET_BASE_COLORS, PRESET_CHART_COLORS, PRESET_FONTS, PRESET_FONT_HEADINGS, PRESET_ICON_LIBRARIES, PRESET_MENU_ACCENTS, PRESET_MENU_COLORS, PRESET_RADII, PRESET_STYLES, PRESET_THEMES, type PresetConfig, V1_CHART_COLOR_MAP, decodePreset, encodePreset, fromBase62, generateRandomConfig, generateRandomPreset, isPresetCode, isValidPreset, toBase62 };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{m as DEFAULT_PRESET_CONFIG,a as PRESET_BASES,c as PRESET_BASE_COLORS,e as PRESET_CHART_COLORS,h as PRESET_FONTS,i as PRESET_FONT_HEADINGS,g as PRESET_ICON_LIBRARIES,k as PRESET_MENU_ACCENTS,l as PRESET_MENU_COLORS,j as PRESET_RADII,b as PRESET_STYLES,d as PRESET_THEMES,f as V1_CHART_COLOR_MAP,q as decodePreset,p as encodePreset,o as fromBase62,t as generateRandomConfig,u as generateRandomPreset,r as isPresetCode,s as isValidPreset,n as toBase62}from'../chunk-NUMOKWW5.js';
|
|
@@ -0,0 +1,458 @@
|
|
|
1
|
+
export { getRegistries, getRegistriesIndex, getRegistry, getRegistryItems, resolveRegistryItems } from '../index.js';
|
|
2
|
+
import { C as Config } from '../get-config-D6gTsP_D.js';
|
|
3
|
+
import '../schema/index.js';
|
|
4
|
+
import 'zod';
|
|
5
|
+
|
|
6
|
+
declare function searchRegistries(registries: string[], options?: {
|
|
7
|
+
query?: string;
|
|
8
|
+
types?: string[];
|
|
9
|
+
limit?: number;
|
|
10
|
+
offset?: number;
|
|
11
|
+
config?: Partial<Config>;
|
|
12
|
+
useCache?: boolean;
|
|
13
|
+
continueOnError?: boolean;
|
|
14
|
+
}): Promise<{
|
|
15
|
+
items: {
|
|
16
|
+
registry: string;
|
|
17
|
+
name: string;
|
|
18
|
+
addCommandArgument: string;
|
|
19
|
+
type?: string | undefined;
|
|
20
|
+
description?: string | undefined;
|
|
21
|
+
}[];
|
|
22
|
+
pagination: {
|
|
23
|
+
total: number;
|
|
24
|
+
offset: number;
|
|
25
|
+
limit: number;
|
|
26
|
+
hasMore: boolean;
|
|
27
|
+
};
|
|
28
|
+
errors?: {
|
|
29
|
+
message: string;
|
|
30
|
+
registry: string;
|
|
31
|
+
}[] | undefined;
|
|
32
|
+
}>;
|
|
33
|
+
|
|
34
|
+
type LoadRegistryOptions = {
|
|
35
|
+
cwd?: string;
|
|
36
|
+
registryFile?: string;
|
|
37
|
+
};
|
|
38
|
+
declare function loadRegistry(options?: LoadRegistryOptions): Promise<{
|
|
39
|
+
items: ({
|
|
40
|
+
files: ({
|
|
41
|
+
path: string;
|
|
42
|
+
type: "registry:page" | "registry:file";
|
|
43
|
+
target: string;
|
|
44
|
+
} | {
|
|
45
|
+
path: string;
|
|
46
|
+
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";
|
|
47
|
+
target?: string | undefined;
|
|
48
|
+
})[] | undefined;
|
|
49
|
+
type: "registry:base";
|
|
50
|
+
name: string;
|
|
51
|
+
tailwind?: {
|
|
52
|
+
config?: {
|
|
53
|
+
content?: string[] | undefined;
|
|
54
|
+
theme?: Record<string, any> | undefined;
|
|
55
|
+
plugins?: string[] | undefined;
|
|
56
|
+
} | undefined;
|
|
57
|
+
} | undefined;
|
|
58
|
+
docs?: string | undefined;
|
|
59
|
+
$schema?: string | undefined;
|
|
60
|
+
config?: {
|
|
61
|
+
tailwind?: {
|
|
62
|
+
config?: string | undefined;
|
|
63
|
+
css?: string | undefined;
|
|
64
|
+
baseColor?: string | undefined;
|
|
65
|
+
cssVariables?: boolean | undefined;
|
|
66
|
+
prefix?: string | undefined;
|
|
67
|
+
} | undefined;
|
|
68
|
+
$schema?: string | undefined;
|
|
69
|
+
style?: string | undefined;
|
|
70
|
+
rsc?: boolean | undefined;
|
|
71
|
+
tsx?: boolean | undefined;
|
|
72
|
+
iconLibrary?: string | undefined;
|
|
73
|
+
rtl?: boolean | undefined;
|
|
74
|
+
menuColor?: "default" | "inverted" | "default-translucent" | "inverted-translucent" | undefined;
|
|
75
|
+
menuAccent?: "subtle" | "bold" | undefined;
|
|
76
|
+
aliases?: {
|
|
77
|
+
components?: string | undefined;
|
|
78
|
+
ui?: string | undefined;
|
|
79
|
+
utils?: string | undefined;
|
|
80
|
+
lib?: string | undefined;
|
|
81
|
+
hooks?: string | undefined;
|
|
82
|
+
} | undefined;
|
|
83
|
+
registries?: Record<string, string | {
|
|
84
|
+
url: string;
|
|
85
|
+
params?: Record<string, string> | undefined;
|
|
86
|
+
headers?: Record<string, string> | undefined;
|
|
87
|
+
}> | undefined;
|
|
88
|
+
} | undefined;
|
|
89
|
+
css?: Record<string, any> | undefined;
|
|
90
|
+
extends?: string | undefined;
|
|
91
|
+
title?: string | undefined;
|
|
92
|
+
author?: string | undefined;
|
|
93
|
+
description?: string | undefined;
|
|
94
|
+
dependencies?: string[] | undefined;
|
|
95
|
+
devDependencies?: string[] | undefined;
|
|
96
|
+
registryDependencies?: string[] | undefined;
|
|
97
|
+
cssVars?: {
|
|
98
|
+
theme?: Record<string, string> | undefined;
|
|
99
|
+
light?: Record<string, string> | undefined;
|
|
100
|
+
dark?: Record<string, string> | undefined;
|
|
101
|
+
} | undefined;
|
|
102
|
+
envVars?: Record<string, string> | undefined;
|
|
103
|
+
meta?: Record<string, any> | undefined;
|
|
104
|
+
categories?: string[] | undefined;
|
|
105
|
+
} | {
|
|
106
|
+
files: ({
|
|
107
|
+
path: string;
|
|
108
|
+
type: "registry:page" | "registry:file";
|
|
109
|
+
target: string;
|
|
110
|
+
} | {
|
|
111
|
+
path: string;
|
|
112
|
+
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";
|
|
113
|
+
target?: string | undefined;
|
|
114
|
+
})[] | undefined;
|
|
115
|
+
type: "registry:font";
|
|
116
|
+
name: string;
|
|
117
|
+
font: {
|
|
118
|
+
family: string;
|
|
119
|
+
provider: "google";
|
|
120
|
+
import: string;
|
|
121
|
+
variable: string;
|
|
122
|
+
weight?: string[] | undefined;
|
|
123
|
+
subsets?: string[] | undefined;
|
|
124
|
+
selector?: string | undefined;
|
|
125
|
+
dependency?: string | undefined;
|
|
126
|
+
};
|
|
127
|
+
tailwind?: {
|
|
128
|
+
config?: {
|
|
129
|
+
content?: string[] | undefined;
|
|
130
|
+
theme?: Record<string, any> | undefined;
|
|
131
|
+
plugins?: string[] | undefined;
|
|
132
|
+
} | undefined;
|
|
133
|
+
} | undefined;
|
|
134
|
+
docs?: string | undefined;
|
|
135
|
+
$schema?: string | undefined;
|
|
136
|
+
css?: Record<string, any> | undefined;
|
|
137
|
+
extends?: string | undefined;
|
|
138
|
+
title?: string | undefined;
|
|
139
|
+
author?: string | undefined;
|
|
140
|
+
description?: string | undefined;
|
|
141
|
+
dependencies?: string[] | undefined;
|
|
142
|
+
devDependencies?: string[] | undefined;
|
|
143
|
+
registryDependencies?: string[] | undefined;
|
|
144
|
+
cssVars?: {
|
|
145
|
+
theme?: Record<string, string> | undefined;
|
|
146
|
+
light?: Record<string, string> | undefined;
|
|
147
|
+
dark?: Record<string, string> | undefined;
|
|
148
|
+
} | undefined;
|
|
149
|
+
envVars?: Record<string, string> | undefined;
|
|
150
|
+
meta?: Record<string, any> | undefined;
|
|
151
|
+
categories?: string[] | undefined;
|
|
152
|
+
} | {
|
|
153
|
+
files: ({
|
|
154
|
+
path: string;
|
|
155
|
+
type: "registry:page" | "registry:file";
|
|
156
|
+
target: string;
|
|
157
|
+
} | {
|
|
158
|
+
path: string;
|
|
159
|
+
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";
|
|
160
|
+
target?: string | undefined;
|
|
161
|
+
})[] | undefined;
|
|
162
|
+
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:page" | "registry:file" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
|
|
163
|
+
name: string;
|
|
164
|
+
tailwind?: {
|
|
165
|
+
config?: {
|
|
166
|
+
content?: string[] | undefined;
|
|
167
|
+
theme?: Record<string, any> | undefined;
|
|
168
|
+
plugins?: string[] | undefined;
|
|
169
|
+
} | undefined;
|
|
170
|
+
} | undefined;
|
|
171
|
+
docs?: string | undefined;
|
|
172
|
+
$schema?: string | undefined;
|
|
173
|
+
css?: Record<string, any> | undefined;
|
|
174
|
+
extends?: string | undefined;
|
|
175
|
+
title?: string | undefined;
|
|
176
|
+
author?: string | undefined;
|
|
177
|
+
description?: string | undefined;
|
|
178
|
+
dependencies?: string[] | undefined;
|
|
179
|
+
devDependencies?: string[] | undefined;
|
|
180
|
+
registryDependencies?: string[] | undefined;
|
|
181
|
+
cssVars?: {
|
|
182
|
+
theme?: Record<string, string> | undefined;
|
|
183
|
+
light?: Record<string, string> | undefined;
|
|
184
|
+
dark?: Record<string, string> | undefined;
|
|
185
|
+
} | undefined;
|
|
186
|
+
envVars?: Record<string, string> | undefined;
|
|
187
|
+
meta?: Record<string, any> | undefined;
|
|
188
|
+
categories?: string[] | undefined;
|
|
189
|
+
})[];
|
|
190
|
+
name: string;
|
|
191
|
+
homepage: string;
|
|
192
|
+
$schema?: string | undefined;
|
|
193
|
+
include?: string[] | undefined;
|
|
194
|
+
}>;
|
|
195
|
+
declare function loadRegistryItem(itemName: string, options?: LoadRegistryOptions): Promise<{
|
|
196
|
+
type: "registry:base";
|
|
197
|
+
name: string;
|
|
198
|
+
tailwind?: {
|
|
199
|
+
config?: {
|
|
200
|
+
content?: string[] | undefined;
|
|
201
|
+
theme?: Record<string, any> | undefined;
|
|
202
|
+
plugins?: string[] | undefined;
|
|
203
|
+
} | undefined;
|
|
204
|
+
} | undefined;
|
|
205
|
+
docs?: string | undefined;
|
|
206
|
+
$schema?: string | undefined;
|
|
207
|
+
config?: {
|
|
208
|
+
tailwind?: {
|
|
209
|
+
config?: string | undefined;
|
|
210
|
+
css?: string | undefined;
|
|
211
|
+
baseColor?: string | undefined;
|
|
212
|
+
cssVariables?: boolean | undefined;
|
|
213
|
+
prefix?: string | undefined;
|
|
214
|
+
} | undefined;
|
|
215
|
+
$schema?: string | undefined;
|
|
216
|
+
style?: string | undefined;
|
|
217
|
+
rsc?: boolean | undefined;
|
|
218
|
+
tsx?: boolean | undefined;
|
|
219
|
+
iconLibrary?: string | undefined;
|
|
220
|
+
rtl?: boolean | undefined;
|
|
221
|
+
menuColor?: "default" | "inverted" | "default-translucent" | "inverted-translucent" | undefined;
|
|
222
|
+
menuAccent?: "subtle" | "bold" | undefined;
|
|
223
|
+
aliases?: {
|
|
224
|
+
components?: string | undefined;
|
|
225
|
+
ui?: string | undefined;
|
|
226
|
+
utils?: string | undefined;
|
|
227
|
+
lib?: string | undefined;
|
|
228
|
+
hooks?: string | undefined;
|
|
229
|
+
} | undefined;
|
|
230
|
+
registries?: Record<string, string | {
|
|
231
|
+
url: string;
|
|
232
|
+
params?: Record<string, string> | undefined;
|
|
233
|
+
headers?: Record<string, string> | undefined;
|
|
234
|
+
}> | undefined;
|
|
235
|
+
} | undefined;
|
|
236
|
+
css?: Record<string, any> | undefined;
|
|
237
|
+
extends?: string | undefined;
|
|
238
|
+
title?: string | undefined;
|
|
239
|
+
author?: string | undefined;
|
|
240
|
+
description?: string | undefined;
|
|
241
|
+
dependencies?: string[] | undefined;
|
|
242
|
+
devDependencies?: string[] | undefined;
|
|
243
|
+
registryDependencies?: string[] | undefined;
|
|
244
|
+
files?: ({
|
|
245
|
+
path: string;
|
|
246
|
+
type: "registry:page" | "registry:file";
|
|
247
|
+
target: string;
|
|
248
|
+
content?: string | undefined;
|
|
249
|
+
} | {
|
|
250
|
+
path: string;
|
|
251
|
+
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";
|
|
252
|
+
content?: string | undefined;
|
|
253
|
+
target?: string | undefined;
|
|
254
|
+
})[] | undefined;
|
|
255
|
+
cssVars?: {
|
|
256
|
+
theme?: Record<string, string> | undefined;
|
|
257
|
+
light?: Record<string, string> | undefined;
|
|
258
|
+
dark?: Record<string, string> | undefined;
|
|
259
|
+
} | undefined;
|
|
260
|
+
envVars?: Record<string, string> | undefined;
|
|
261
|
+
meta?: Record<string, any> | undefined;
|
|
262
|
+
categories?: string[] | undefined;
|
|
263
|
+
} | {
|
|
264
|
+
type: "registry:font";
|
|
265
|
+
name: string;
|
|
266
|
+
font: {
|
|
267
|
+
family: string;
|
|
268
|
+
provider: "google";
|
|
269
|
+
import: string;
|
|
270
|
+
variable: string;
|
|
271
|
+
weight?: string[] | undefined;
|
|
272
|
+
subsets?: string[] | undefined;
|
|
273
|
+
selector?: string | undefined;
|
|
274
|
+
dependency?: string | undefined;
|
|
275
|
+
};
|
|
276
|
+
tailwind?: {
|
|
277
|
+
config?: {
|
|
278
|
+
content?: string[] | undefined;
|
|
279
|
+
theme?: Record<string, any> | undefined;
|
|
280
|
+
plugins?: string[] | undefined;
|
|
281
|
+
} | undefined;
|
|
282
|
+
} | undefined;
|
|
283
|
+
docs?: string | undefined;
|
|
284
|
+
$schema?: string | undefined;
|
|
285
|
+
css?: Record<string, any> | undefined;
|
|
286
|
+
extends?: string | undefined;
|
|
287
|
+
title?: string | undefined;
|
|
288
|
+
author?: string | undefined;
|
|
289
|
+
description?: string | undefined;
|
|
290
|
+
dependencies?: string[] | undefined;
|
|
291
|
+
devDependencies?: string[] | undefined;
|
|
292
|
+
registryDependencies?: string[] | undefined;
|
|
293
|
+
files?: ({
|
|
294
|
+
path: string;
|
|
295
|
+
type: "registry:page" | "registry:file";
|
|
296
|
+
target: string;
|
|
297
|
+
content?: string | undefined;
|
|
298
|
+
} | {
|
|
299
|
+
path: string;
|
|
300
|
+
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";
|
|
301
|
+
content?: string | undefined;
|
|
302
|
+
target?: string | undefined;
|
|
303
|
+
})[] | undefined;
|
|
304
|
+
cssVars?: {
|
|
305
|
+
theme?: Record<string, string> | undefined;
|
|
306
|
+
light?: Record<string, string> | undefined;
|
|
307
|
+
dark?: Record<string, string> | undefined;
|
|
308
|
+
} | undefined;
|
|
309
|
+
envVars?: Record<string, string> | undefined;
|
|
310
|
+
meta?: Record<string, any> | undefined;
|
|
311
|
+
categories?: string[] | undefined;
|
|
312
|
+
} | {
|
|
313
|
+
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:page" | "registry:file" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
|
|
314
|
+
name: string;
|
|
315
|
+
tailwind?: {
|
|
316
|
+
config?: {
|
|
317
|
+
content?: string[] | undefined;
|
|
318
|
+
theme?: Record<string, any> | undefined;
|
|
319
|
+
plugins?: string[] | undefined;
|
|
320
|
+
} | undefined;
|
|
321
|
+
} | undefined;
|
|
322
|
+
docs?: string | undefined;
|
|
323
|
+
$schema?: string | undefined;
|
|
324
|
+
css?: Record<string, any> | undefined;
|
|
325
|
+
extends?: string | undefined;
|
|
326
|
+
title?: string | undefined;
|
|
327
|
+
author?: string | undefined;
|
|
328
|
+
description?: string | undefined;
|
|
329
|
+
dependencies?: string[] | undefined;
|
|
330
|
+
devDependencies?: string[] | undefined;
|
|
331
|
+
registryDependencies?: string[] | undefined;
|
|
332
|
+
files?: ({
|
|
333
|
+
path: string;
|
|
334
|
+
type: "registry:page" | "registry:file";
|
|
335
|
+
target: string;
|
|
336
|
+
content?: string | undefined;
|
|
337
|
+
} | {
|
|
338
|
+
path: string;
|
|
339
|
+
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";
|
|
340
|
+
content?: string | undefined;
|
|
341
|
+
target?: string | undefined;
|
|
342
|
+
})[] | undefined;
|
|
343
|
+
cssVars?: {
|
|
344
|
+
theme?: Record<string, string> | undefined;
|
|
345
|
+
light?: Record<string, string> | undefined;
|
|
346
|
+
dark?: Record<string, string> | undefined;
|
|
347
|
+
} | undefined;
|
|
348
|
+
envVars?: Record<string, string> | undefined;
|
|
349
|
+
meta?: Record<string, any> | undefined;
|
|
350
|
+
categories?: string[] | undefined;
|
|
351
|
+
}>;
|
|
352
|
+
|
|
353
|
+
declare const RegistryErrorCode: {
|
|
354
|
+
readonly NETWORK_ERROR: "NETWORK_ERROR";
|
|
355
|
+
readonly NOT_FOUND: "NOT_FOUND";
|
|
356
|
+
readonly GONE: "GONE";
|
|
357
|
+
readonly UNAUTHORIZED: "UNAUTHORIZED";
|
|
358
|
+
readonly FORBIDDEN: "FORBIDDEN";
|
|
359
|
+
readonly FETCH_ERROR: "FETCH_ERROR";
|
|
360
|
+
readonly NOT_CONFIGURED: "NOT_CONFIGURED";
|
|
361
|
+
readonly INVALID_CONFIG: "INVALID_CONFIG";
|
|
362
|
+
readonly MISSING_ENV_VARS: "MISSING_ENV_VARS";
|
|
363
|
+
readonly LOCAL_FILE_ERROR: "LOCAL_FILE_ERROR";
|
|
364
|
+
readonly PARSE_ERROR: "PARSE_ERROR";
|
|
365
|
+
readonly VALIDATION_ERROR: "VALIDATION_ERROR";
|
|
366
|
+
readonly UNKNOWN_ERROR: "UNKNOWN_ERROR";
|
|
367
|
+
};
|
|
368
|
+
type RegistryErrorCode = (typeof RegistryErrorCode)[keyof typeof RegistryErrorCode];
|
|
369
|
+
declare class RegistryError extends Error {
|
|
370
|
+
readonly code: RegistryErrorCode;
|
|
371
|
+
readonly statusCode?: number;
|
|
372
|
+
readonly context?: Record<string, unknown>;
|
|
373
|
+
readonly suggestion?: string;
|
|
374
|
+
readonly timestamp: Date;
|
|
375
|
+
readonly cause?: unknown;
|
|
376
|
+
constructor(message: string, options?: {
|
|
377
|
+
code?: RegistryErrorCode;
|
|
378
|
+
statusCode?: number;
|
|
379
|
+
cause?: unknown;
|
|
380
|
+
context?: Record<string, unknown>;
|
|
381
|
+
suggestion?: string;
|
|
382
|
+
});
|
|
383
|
+
toJSON(): {
|
|
384
|
+
name: string;
|
|
385
|
+
message: string;
|
|
386
|
+
code: RegistryErrorCode;
|
|
387
|
+
statusCode: number | undefined;
|
|
388
|
+
context: Record<string, unknown> | undefined;
|
|
389
|
+
suggestion: string | undefined;
|
|
390
|
+
timestamp: Date;
|
|
391
|
+
stack: string | undefined;
|
|
392
|
+
};
|
|
393
|
+
}
|
|
394
|
+
declare class RegistryNotFoundError extends RegistryError {
|
|
395
|
+
readonly url: string;
|
|
396
|
+
constructor(url: string, cause?: unknown);
|
|
397
|
+
}
|
|
398
|
+
declare class RegistryUnauthorizedError extends RegistryError {
|
|
399
|
+
readonly url: string;
|
|
400
|
+
constructor(url: string, cause?: unknown);
|
|
401
|
+
}
|
|
402
|
+
declare class RegistryForbiddenError extends RegistryError {
|
|
403
|
+
readonly url: string;
|
|
404
|
+
constructor(url: string, cause?: unknown);
|
|
405
|
+
}
|
|
406
|
+
declare class RegistryFetchError extends RegistryError {
|
|
407
|
+
readonly url: string;
|
|
408
|
+
readonly responseBody?: string | undefined;
|
|
409
|
+
constructor(url: string, statusCode?: number, responseBody?: string | undefined, cause?: unknown);
|
|
410
|
+
}
|
|
411
|
+
declare class RegistryNotConfiguredError extends RegistryError {
|
|
412
|
+
readonly registryName: string | null;
|
|
413
|
+
constructor(registryName: string | null);
|
|
414
|
+
}
|
|
415
|
+
declare class RegistryLocalFileError extends RegistryError {
|
|
416
|
+
readonly filePath: string;
|
|
417
|
+
constructor(filePath: string, cause?: unknown, options?: {
|
|
418
|
+
message?: string;
|
|
419
|
+
context?: Record<string, unknown>;
|
|
420
|
+
suggestion?: string;
|
|
421
|
+
});
|
|
422
|
+
}
|
|
423
|
+
declare class RegistryParseError extends RegistryError {
|
|
424
|
+
readonly item: string;
|
|
425
|
+
readonly parseError: unknown;
|
|
426
|
+
constructor(item: string, parseError: unknown, options?: {
|
|
427
|
+
subject?: string;
|
|
428
|
+
context?: Record<string, unknown>;
|
|
429
|
+
suggestion?: string;
|
|
430
|
+
});
|
|
431
|
+
}
|
|
432
|
+
declare class RegistryValidationError extends RegistryError {
|
|
433
|
+
constructor(message: string, options?: {
|
|
434
|
+
registryFile?: string;
|
|
435
|
+
cause?: unknown;
|
|
436
|
+
context?: Record<string, unknown>;
|
|
437
|
+
suggestion?: string;
|
|
438
|
+
});
|
|
439
|
+
}
|
|
440
|
+
declare class RegistryItemNotFoundError extends RegistryError {
|
|
441
|
+
readonly itemName: string;
|
|
442
|
+
constructor(itemName: string);
|
|
443
|
+
}
|
|
444
|
+
declare class RegistryMissingEnvironmentVariablesError extends RegistryError {
|
|
445
|
+
readonly registryName: string;
|
|
446
|
+
readonly missingVars: string[];
|
|
447
|
+
constructor(registryName: string, missingVars: string[]);
|
|
448
|
+
}
|
|
449
|
+
declare class RegistryInvalidNamespaceError extends RegistryError {
|
|
450
|
+
readonly name: string;
|
|
451
|
+
constructor(name: string);
|
|
452
|
+
}
|
|
453
|
+
declare class RegistriesIndexParseError extends RegistryError {
|
|
454
|
+
readonly parseError: unknown;
|
|
455
|
+
constructor(parseError: unknown);
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
export { type LoadRegistryOptions, RegistriesIndexParseError, RegistryError, RegistryErrorCode, RegistryFetchError, RegistryForbiddenError, RegistryInvalidNamespaceError, RegistryItemNotFoundError, RegistryLocalFileError, RegistryMissingEnvironmentVariablesError, RegistryNotConfiguredError, RegistryNotFoundError, RegistryParseError, RegistryUnauthorizedError, RegistryValidationError, loadRegistry, loadRegistryItem, searchRegistries };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{w as RegistriesIndexParseError,k as RegistryError,j as RegistryErrorCode,o as RegistryFetchError,n as RegistryForbiddenError,v as RegistryInvalidNamespaceError,t as RegistryItemNotFoundError,q as RegistryLocalFileError,u as RegistryMissingEnvironmentVariablesError,p as RegistryNotConfiguredError,l as RegistryNotFoundError,r as RegistryParseError,m as RegistryUnauthorizedError,s as RegistryValidationError,Ba as getRegistries,Ca as getRegistriesIndex,pa as getRegistry,qa as getRegistryItems,Ja as loadRegistry,Ka as loadRegistryItem,ra as resolveRegistryItems,Pa as searchRegistries}from'../chunk-NPBIPAZH.js';import'../chunk-MTWZIHEW.js';import'../chunk-7SBJAAAY.js';import'../chunk-CHWMSXYA.js';
|