getRegistryItems() — ui Function Reference
Architecture documentation for the getRegistryItems() function in registry.ts from the ui codebase.
Entity Profile
Dependency Diagram
graph TD dae1e5ee_7a0a_29a4_4a13_43731ce7b108["getRegistryItems()"] a2cd9f1d_8dbe_d488_4209_1dbd8f522cc1["registry.ts"] dae1e5ee_7a0a_29a4_4a13_43731ce7b108 -->|defined in| a2cd9f1d_8dbe_d488_4209_1dbd8f522cc1 c5a597ec_26fe_0d08_07fb_4f7ec5884da8["getIndexForStyle()"] dae1e5ee_7a0a_29a4_4a13_43731ce7b108 -->|calls| c5a597ec_26fe_0d08_07fb_4f7ec5884da8 e7d34ace_4c02_90be_4798_c4bf467583f2["getRegistryItem()"] dae1e5ee_7a0a_29a4_4a13_43731ce7b108 -->|calls| e7d34ace_4c02_90be_4798_c4bf467583f2 style dae1e5ee_7a0a_29a4_4a13_43731ce7b108 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/lib/registry.ts lines 85–106
export async function getRegistryItems(
styleName: string,
filter?: (item: z.infer<typeof registryItemSchema>) => boolean
) {
const { index, key } = getIndexForStyle(styleName)
const styleIndex = index[key]
if (!styleIndex) {
return []
}
const entries = Object.values(styleIndex)
const filteredEntries = filter ? entries.filter(filter) : entries
return await Promise.all(
filteredEntries.map(async (entry) => {
const item = await getRegistryItem(entry.name, styleName)
return item
})
).then((results) => results.filter(Boolean))
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does getRegistryItems() do?
getRegistryItems() is a function in the ui codebase, defined in apps/v4/lib/registry.ts.
Where is getRegistryItems() defined?
getRegistryItems() is defined in apps/v4/lib/registry.ts at line 85.
What does getRegistryItems() call?
getRegistryItems() calls 2 function(s): getIndexForStyle, getRegistryItem.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free