@@ -42,6 +42,8 @@ const UtilsFiles: RegistryComponent[] = [
4242 name : "shiki-highlighter" ,
4343 type : "registry:lib" ,
4444 dependencies : [ "shiki" , "@shikijs/themes" , "@shikijs/langs" ] ,
45+ registryDependencies : [ "shiki-css" ] ,
46+ target : "src/utils/shiki/index.ts" ,
4547 } ,
4648 } ,
4749 {
@@ -52,6 +54,8 @@ const UtilsFiles: RegistryComponent[] = [
5254 name : "sugar-high-highlighter" ,
5355 type : "registry:lib" ,
5456 dependencies : [ "sugar-high" ] ,
57+ registryDependencies : [ "sugar-high-css" ] ,
58+ target : "src/utils/sugar-high/index.ts" ,
5559 } ,
5660 } ,
5761 {
@@ -61,6 +65,7 @@ const UtilsFiles: RegistryComponent[] = [
6165 shadcnRegistry : {
6266 name : "copy-to-clipboard" ,
6367 type : "registry:lib" ,
68+ target : "src/utils/copy.ts" ,
6469 } ,
6570 } ,
6671 {
@@ -70,6 +75,7 @@ const UtilsFiles: RegistryComponent[] = [
7075 shadcnRegistry : {
7176 name : "react-to-text" ,
7277 type : "registry:lib" ,
78+ target : "src/utils/react-to-text.ts" ,
7379 } ,
7480 } ,
7581] ;
@@ -99,6 +105,7 @@ const ShikiTransformers: RegistryComponent[] = [
99105 name : "shiki-show-line-numbers" ,
100106 type : "registry:lib" ,
101107 dependencies : [ "shiki" ] ,
108+ target : "src/utils/shiki/transformers/show-line-numbers.ts" ,
102109 } ,
103110 } ,
104111 {
@@ -109,6 +116,7 @@ const ShikiTransformers: RegistryComponent[] = [
109116 name : "shiki-word-wrap" ,
110117 type : "registry:lib" ,
111118 dependencies : [ "shiki" ] ,
119+ target : "src/utils/shiki/transformers/word-wrap.ts" ,
112120 } ,
113121 } ,
114122 {
@@ -119,16 +127,7 @@ const ShikiTransformers: RegistryComponent[] = [
119127 name : "shiki-add-to-pre-element" ,
120128 type : "registry:lib" ,
121129 dependencies : [ "shiki" ] ,
122- } ,
123- } ,
124- {
125- title : "Shiki Transformer - Meta Highlight" ,
126- fileType : "ts" ,
127- fileSource : `${ utilsFolder } /shiki/transformers/add-to-pre-element.ts` ,
128- shadcnRegistry : {
129- name : "shiki-add-to-pre-element" ,
130- type : "registry:lib" ,
131- dependencies : [ "shiki" ] ,
130+ target : "src/utils/shiki/transformers/add-to-pre-element.ts" ,
132131 } ,
133132 } ,
134133] ;
@@ -146,7 +145,8 @@ const UIComponents: RegistryComponent[] = [
146145 shadcnRegistry : {
147146 name : "code-block-structure" ,
148147 type : "registry:component" ,
149- dependencies : [ "lucide-react" ] ,
148+ dependencies : [ "lucide-react" , "@react-symbols/icons" ] ,
149+ target : "src/components/code-block/code-block.tsx" ,
150150 } ,
151151 } ,
152152 {
@@ -156,6 +156,13 @@ const UIComponents: RegistryComponent[] = [
156156 shadcnRegistry : {
157157 name : "code-block-mdx-shiki" ,
158158 type : "registry:component" ,
159+ devDependencies : [ "@types/mdx" ] ,
160+ registryDependencies : [
161+ "react-to-text" ,
162+ "copy-to-clipboard" ,
163+ "code-block-structure" ,
164+ ] ,
165+ target : "src/components/code-block/mdx/pre-shiki.tsx" ,
159166 } ,
160167 } ,
161168 {
@@ -165,6 +172,14 @@ const UIComponents: RegistryComponent[] = [
165172 shadcnRegistry : {
166173 name : "code-block-mdx-sugar-high" ,
167174 type : "registry:component" ,
175+ devDependencies : [ "@types/mdx" ] ,
176+ registryDependencies : [
177+ "react-to-text" ,
178+ "sugar-high-highlighter" ,
179+ "copy-to-clipboard" ,
180+ "code-block-structure" ,
181+ ] ,
182+ target : "src/components/code-block/mdx/pre-sugar-high.tsx" ,
168183 } ,
169184 } ,
170185 {
@@ -179,6 +194,8 @@ const UIComponents: RegistryComponent[] = [
179194 name : "code-block-client-shiki" ,
180195 type : "registry:component" ,
181196 dependencies : [ "shiki" ] ,
197+ registryDependencies : [ "shiki-highlighter" ] ,
198+ target : "src/components/code-block/client/shiki.tsx" ,
182199 } ,
183200 } ,
184201 {
@@ -192,7 +209,8 @@ const UIComponents: RegistryComponent[] = [
192209 shadcnRegistry : {
193210 name : "code-block-client-sugar-high" ,
194211 type : "registry:component" ,
195- dependencies : [ "sugar-high" ] ,
212+ registryDependencies : [ "sugar-high-highlighter" ] ,
213+ target : "src/components/code-block/client/sugar-high.tsx" ,
196214 } ,
197215 } ,
198216 {
@@ -207,7 +225,8 @@ const UIComponents: RegistryComponent[] = [
207225 shadcnRegistry : {
208226 name : "code-block-client-sugar-high-line-numbers" ,
209227 type : "registry:component" ,
210- dependencies : [ "sugar-high" ] ,
228+ registryDependencies : [ "sugar-high-highlighter" ] ,
229+ target : "src/components/code-block/client/sugar-high.tsx" ,
211230 } ,
212231 } ,
213232 {
@@ -222,6 +241,8 @@ const UIComponents: RegistryComponent[] = [
222241 name : "copy-button" ,
223242 type : "registry:component" ,
224243 dependencies : [ "lucide-react" ] ,
244+ registryDependencies : [ "copy-to-clipboard" ] ,
245+ target : "src/components/code-block/copy-button.tsx" ,
225246 } ,
226247 } ,
227248 {
@@ -232,6 +253,7 @@ const UIComponents: RegistryComponent[] = [
232253 name : "language-svgs" ,
233254 type : "registry:component" ,
234255 dependencies : [ "@react-symbols/icons" ] ,
256+ target : "src/components/code-block/language-svgs.tsx" ,
235257 } ,
236258 } ,
237259] ;
@@ -250,6 +272,7 @@ const Blocks: RegistryComponent[] = [
250272 name : "block-inline-code" ,
251273 type : "registry:block" ,
252274 registryDependencies : [ "code-block-client-shiki" ] ,
275+ target : "src/components/code-block/blocks/inline-code.tsx" ,
253276 } ,
254277 } ,
255278 {
@@ -263,10 +286,15 @@ const Blocks: RegistryComponent[] = [
263286 shadcnRegistry : {
264287 name : "block-select-package-manager" ,
265288 type : "registry:block" ,
289+ dependencies : [ "@react-symbols/icons" ] ,
266290 registryDependencies : [
291+ "copy-button" ,
292+ "code-block-structure" ,
267293 "code-block-client-shiki" ,
268294 "package-manager-store" ,
269295 ] ,
296+ target :
297+ "src/components/code-block/blocks/copy-with-select-package-manager.tsx" ,
270298 } ,
271299 } ,
272300 {
@@ -280,10 +308,15 @@ const Blocks: RegistryComponent[] = [
280308 shadcnRegistry : {
281309 name : "block-tabs-package-manager" ,
282310 type : "registry:block" ,
311+ dependencies : [ "@react-symbols/icons" ] ,
283312 registryDependencies : [
313+ "copy-button" ,
314+ "code-block-structure" ,
284315 "code-block-client-shiki" ,
285316 "package-manager-store" ,
286317 ] ,
318+ target :
319+ "src/components/code-block/blocks/copy-with-tabs-package-manager.tsx" ,
287320 } ,
288321 } ,
289322] ;
0 commit comments