@frontic/ui 0.6.1 → 0.8.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/README.md +7 -2
- package/dist/{api-DmrBFC4C.d.ts → api-D839KAMw.d.ts} +26 -26
- package/dist/{api-DmrBFC4C.d.ts.map → api-D839KAMw.d.ts.map} +1 -1
- package/dist/{index-Cd5RBhtD.d.ts → index-DDYi06Vr.d.ts} +94 -94
- package/dist/index-DDYi06Vr.d.ts.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +108 -6
- package/dist/index.js.map +1 -1
- package/dist/mcp/index.d.ts +2 -8
- package/dist/registry/index.d.ts +9 -9
- package/dist/registry/index.d.ts.map +1 -1
- package/dist/schema/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/index-Cd5RBhtD.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -59,14 +59,19 @@ Options:
|
|
|
59
59
|
Set up MCP (Model Context Protocol) for AI assistants:
|
|
60
60
|
|
|
61
61
|
```bash
|
|
62
|
+
# Connect to the hosted MCP server (default)
|
|
62
63
|
npx @frontic/ui mcp init
|
|
64
|
+
|
|
65
|
+
# Run the MCP server locally instead
|
|
66
|
+
npx @frontic/ui mcp init --local
|
|
63
67
|
```
|
|
64
68
|
|
|
65
|
-
|
|
69
|
+
By default, this connects to the **hosted MCP server** on Cloudflare Workers — no local dependencies needed. Use `--local` to run the server on your machine via `npx`.
|
|
66
70
|
|
|
67
71
|
Options:
|
|
68
72
|
|
|
69
|
-
- `--client, -c` - Target client (claude, cursor, vscode)
|
|
73
|
+
- `--client, -c` - Target client (claude, cursor, vscode, codex, opencode)
|
|
74
|
+
- `--local` - Use local MCP server instead of hosted
|
|
70
75
|
|
|
71
76
|
## Configuration
|
|
72
77
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as registryItemSchema, r as configSchema, u as registryIndexSchema } from "./index-
|
|
1
|
+
import { h as registryItemSchema, r as configSchema, u as registryIndexSchema } from "./index-DDYi06Vr.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/get-config.d.ts
|
|
@@ -11,11 +11,12 @@ declare function getRegistry(name: string, options?: {
|
|
|
11
11
|
useCache?: boolean;
|
|
12
12
|
}): Promise<{
|
|
13
13
|
name?: string;
|
|
14
|
+
homepage?: string;
|
|
14
15
|
items?: {
|
|
16
|
+
description?: string;
|
|
15
17
|
name?: string;
|
|
16
18
|
title?: string;
|
|
17
19
|
type?: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:composable" | "registry:page" | "registry:file" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
|
|
18
|
-
description?: string;
|
|
19
20
|
$schema?: string;
|
|
20
21
|
extends?: string;
|
|
21
22
|
author?: string;
|
|
@@ -23,20 +24,20 @@ declare function getRegistry(name: string, options?: {
|
|
|
23
24
|
devDependencies?: string[];
|
|
24
25
|
registryDependencies?: string[];
|
|
25
26
|
files?: ({
|
|
26
|
-
path?: string;
|
|
27
27
|
type?: "registry:page" | "registry:file";
|
|
28
|
+
path?: string;
|
|
28
29
|
content?: string;
|
|
29
30
|
target?: string;
|
|
30
31
|
} | {
|
|
31
|
-
path?: string;
|
|
32
32
|
type?: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:composable" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
|
|
33
|
+
path?: string;
|
|
33
34
|
content?: string;
|
|
34
35
|
target?: string;
|
|
35
36
|
})[];
|
|
36
37
|
tailwind?: {
|
|
37
38
|
config?: {
|
|
38
|
-
content?: string[];
|
|
39
39
|
theme?: Record<string, any>;
|
|
40
|
+
content?: string[];
|
|
40
41
|
plugins?: string[];
|
|
41
42
|
};
|
|
42
43
|
};
|
|
@@ -51,16 +52,15 @@ declare function getRegistry(name: string, options?: {
|
|
|
51
52
|
docs?: string;
|
|
52
53
|
categories?: string[];
|
|
53
54
|
}[];
|
|
54
|
-
homepage?: string;
|
|
55
55
|
}>;
|
|
56
56
|
declare function getRegistryItems(items: string[], options?: {
|
|
57
57
|
config?: Partial<Config>;
|
|
58
58
|
useCache?: boolean;
|
|
59
59
|
}): Promise<{
|
|
60
|
+
description?: string;
|
|
60
61
|
name?: string;
|
|
61
62
|
title?: string;
|
|
62
63
|
type?: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:composable" | "registry:page" | "registry:file" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
|
|
63
|
-
description?: string;
|
|
64
64
|
$schema?: string;
|
|
65
65
|
extends?: string;
|
|
66
66
|
author?: string;
|
|
@@ -68,20 +68,20 @@ declare function getRegistryItems(items: string[], options?: {
|
|
|
68
68
|
devDependencies?: string[];
|
|
69
69
|
registryDependencies?: string[];
|
|
70
70
|
files?: ({
|
|
71
|
-
path?: string;
|
|
72
71
|
type?: "registry:page" | "registry:file";
|
|
72
|
+
path?: string;
|
|
73
73
|
content?: string;
|
|
74
74
|
target?: string;
|
|
75
75
|
} | {
|
|
76
|
-
path?: string;
|
|
77
76
|
type?: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:composable" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
|
|
77
|
+
path?: string;
|
|
78
78
|
content?: string;
|
|
79
79
|
target?: string;
|
|
80
80
|
})[];
|
|
81
81
|
tailwind?: {
|
|
82
82
|
config?: {
|
|
83
|
-
content?: string[];
|
|
84
83
|
theme?: Record<string, any>;
|
|
84
|
+
content?: string[];
|
|
85
85
|
plugins?: string[];
|
|
86
86
|
};
|
|
87
87
|
};
|
|
@@ -103,20 +103,20 @@ declare function resolveRegistryItems(items: string[], options?: {
|
|
|
103
103
|
dependencies?: string[];
|
|
104
104
|
devDependencies?: string[];
|
|
105
105
|
files?: ({
|
|
106
|
-
path?: string;
|
|
107
106
|
type?: "registry:page" | "registry:file";
|
|
107
|
+
path?: string;
|
|
108
108
|
content?: string;
|
|
109
109
|
target?: string;
|
|
110
110
|
} | {
|
|
111
|
-
path?: string;
|
|
112
111
|
type?: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:composable" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
|
|
112
|
+
path?: string;
|
|
113
113
|
content?: string;
|
|
114
114
|
target?: string;
|
|
115
115
|
})[];
|
|
116
116
|
tailwind?: {
|
|
117
117
|
config?: {
|
|
118
|
-
content?: string[];
|
|
119
118
|
theme?: Record<string, any>;
|
|
119
|
+
content?: string[];
|
|
120
120
|
plugins?: string[];
|
|
121
121
|
};
|
|
122
122
|
};
|
|
@@ -137,10 +137,10 @@ declare function getRegistriesConfig(cwd: string): Promise<{
|
|
|
137
137
|
}>;
|
|
138
138
|
}>;
|
|
139
139
|
declare function getShadcnRegistryIndex(): Promise<{
|
|
140
|
+
description?: string;
|
|
140
141
|
name?: string;
|
|
141
142
|
title?: string;
|
|
142
143
|
type?: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:composable" | "registry:page" | "registry:file" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
|
|
143
|
-
description?: string;
|
|
144
144
|
$schema?: string;
|
|
145
145
|
extends?: string;
|
|
146
146
|
author?: string;
|
|
@@ -148,20 +148,20 @@ declare function getShadcnRegistryIndex(): Promise<{
|
|
|
148
148
|
devDependencies?: string[];
|
|
149
149
|
registryDependencies?: string[];
|
|
150
150
|
files?: ({
|
|
151
|
-
path?: string;
|
|
152
151
|
type?: "registry:page" | "registry:file";
|
|
152
|
+
path?: string;
|
|
153
153
|
content?: string;
|
|
154
154
|
target?: string;
|
|
155
155
|
} | {
|
|
156
|
-
path?: string;
|
|
157
156
|
type?: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:composable" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
|
|
157
|
+
path?: string;
|
|
158
158
|
content?: string;
|
|
159
159
|
target?: string;
|
|
160
160
|
})[];
|
|
161
161
|
tailwind?: {
|
|
162
162
|
config?: {
|
|
163
|
-
content?: string[];
|
|
164
163
|
theme?: Record<string, any>;
|
|
164
|
+
content?: string[];
|
|
165
165
|
plugins?: string[];
|
|
166
166
|
};
|
|
167
167
|
};
|
|
@@ -219,10 +219,10 @@ declare function getRegistryBaseColor(baseColor: string): Promise<{
|
|
|
219
219
|
* @deprecated This function is deprecated and will be removed in a future version.
|
|
220
220
|
*/
|
|
221
221
|
declare function resolveTree(index: z.infer<typeof registryIndexSchema>, names: string[]): Promise<{
|
|
222
|
+
description?: string;
|
|
222
223
|
name?: string;
|
|
223
224
|
title?: string;
|
|
224
225
|
type?: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:composable" | "registry:page" | "registry:file" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
|
|
225
|
-
description?: string;
|
|
226
226
|
$schema?: string;
|
|
227
227
|
extends?: string;
|
|
228
228
|
author?: string;
|
|
@@ -230,20 +230,20 @@ declare function resolveTree(index: z.infer<typeof registryIndexSchema>, names:
|
|
|
230
230
|
devDependencies?: string[];
|
|
231
231
|
registryDependencies?: string[];
|
|
232
232
|
files?: ({
|
|
233
|
-
path?: string;
|
|
234
233
|
type?: "registry:page" | "registry:file";
|
|
234
|
+
path?: string;
|
|
235
235
|
content?: string;
|
|
236
236
|
target?: string;
|
|
237
237
|
} | {
|
|
238
|
-
path?: string;
|
|
239
238
|
type?: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:composable" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
|
|
239
|
+
path?: string;
|
|
240
240
|
content?: string;
|
|
241
241
|
target?: string;
|
|
242
242
|
})[];
|
|
243
243
|
tailwind?: {
|
|
244
244
|
config?: {
|
|
245
|
-
content?: string[];
|
|
246
245
|
theme?: Record<string, any>;
|
|
246
|
+
content?: string[];
|
|
247
247
|
plugins?: string[];
|
|
248
248
|
};
|
|
249
249
|
};
|
|
@@ -262,10 +262,10 @@ declare function resolveTree(index: z.infer<typeof registryIndexSchema>, names:
|
|
|
262
262
|
* @deprecated This function is deprecated and will be removed in a future version.
|
|
263
263
|
*/
|
|
264
264
|
declare function fetchTree(style: string, tree: z.infer<typeof registryIndexSchema>): Promise<{
|
|
265
|
+
description?: string;
|
|
265
266
|
name?: string;
|
|
266
267
|
title?: string;
|
|
267
268
|
type?: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:composable" | "registry:page" | "registry:file" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
|
|
268
|
-
description?: string;
|
|
269
269
|
$schema?: string;
|
|
270
270
|
extends?: string;
|
|
271
271
|
author?: string;
|
|
@@ -273,20 +273,20 @@ declare function fetchTree(style: string, tree: z.infer<typeof registryIndexSche
|
|
|
273
273
|
devDependencies?: string[];
|
|
274
274
|
registryDependencies?: string[];
|
|
275
275
|
files?: ({
|
|
276
|
-
path?: string;
|
|
277
276
|
type?: "registry:page" | "registry:file";
|
|
277
|
+
path?: string;
|
|
278
278
|
content?: string;
|
|
279
279
|
target?: string;
|
|
280
280
|
} | {
|
|
281
|
-
path?: string;
|
|
282
281
|
type?: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:composable" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
|
|
282
|
+
path?: string;
|
|
283
283
|
content?: string;
|
|
284
284
|
target?: string;
|
|
285
285
|
})[];
|
|
286
286
|
tailwind?: {
|
|
287
287
|
config?: {
|
|
288
|
-
content?: string[];
|
|
289
288
|
theme?: Record<string, any>;
|
|
289
|
+
content?: string[];
|
|
290
290
|
plugins?: string[];
|
|
291
291
|
};
|
|
292
292
|
};
|
|
@@ -310,4 +310,4 @@ declare function getRegistriesIndex(options?: {
|
|
|
310
310
|
}): Promise<Record<string, string>>;
|
|
311
311
|
//#endregion
|
|
312
312
|
export { getRegistry as a, getRegistryIcons as c, getShadcnRegistryIndex as d, resolveRegistryItems as f, getRegistriesIndex as i, getRegistryItems as l, Config as m, getItemTargetPath as n, getRegistryBaseColor as o, resolveTree as p, getRegistriesConfig as r, getRegistryBaseColors as s, fetchTree as t, getRegistryStyles as u };
|
|
313
|
-
//# sourceMappingURL=api-
|
|
313
|
+
//# sourceMappingURL=api-D839KAMw.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-
|
|
1
|
+
{"version":3,"file":"api-D839KAMw.d.ts","names":[],"sources":["../src/utils/get-config.ts","../src/registry/api.ts"],"sourcesContent":[],"mappings":";;;;;AC4CqB,KDrBT,MAAA,GAAS,CAAA,CAAE,KCqBF,CAAA,ODrBe,YCqBf,CAAA;;;iBAHC,WAAA;EDlBV,MAAA,CAAA,ECqBC,ODrBK,CCqBG,MDrBe,CAAA;;ICuBjC;;EALmB,QAAA,CAAA,EAAA,MAAW;EAGZ,KAAA,CAAA,EAAA;IAAR,WAAA,CAAA,EAAA,MAAA;;;;;;;;;;IAEV,KAAA,CAAA,EAAA,CAAA;MAAA,IAAA,CAAA,EAAA,eAAA,GAAA,eAAA;MAgDmB,IAAA,CAAA,EAAA,MAAgB;MAGjB,OAAA,CAAA,EAAA,MAAA;MAAR,MAAA,CAAA,EAAA,MAAA;;;;;;;;;;QAEV,OAAA,CAAA,EAAA,MAAA,EAAA;QAAA,OAAA,CAAA,EAAA,MAAA,EAAA;MASmB,CAAA;IAGD,CAAA;IAAR,OAAA,CAAA,EAAA;;;;;;;;;IAEV,UAAA,CAAA,EAAA,MAAA,EAAA;EAAA,CAAA,EAAA;AAQH,CAAA,CAAA;iBA3BsB,gBAAA,yBA4BT;WAzBA,QAAQ;;CAyBR,CAAA,EAvBV,OAuBU,CAAA;EAAA,WAAA,CAAA,EAAA,MAAA;EAgCS,IAAA,CAAA,EAAA,MAAA;;;;;;;;;;IAA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