getAllBlockIds() — ui Function Reference
Architecture documentation for the getAllBlockIds() function in blocks.ts from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 67df78e7_11ea_aa68_81f8_023a33f4d1ab["getAllBlockIds()"] 22ff694c_64ff_0a8f_de75_d5f0da9991cd["blocks.ts"] 67df78e7_11ea_aa68_81f8_023a33f4d1ab -->|defined in| 22ff694c_64ff_0a8f_de75_d5f0da9991cd style 67df78e7_11ea_aa68_81f8_023a33f4d1ab fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
deprecated/www/lib/blocks.ts lines 8–30
export async function getAllBlockIds(
types: z.infer<typeof registryItemSchema>["type"][] = [
"registry:block",
"registry:internal",
],
categories: string[] = [],
style: Style["name"] = "new-york"
): Promise<string[]> {
const { Index } = await import("@/__registry__")
const index = z.record(registryItemSchema).parse(Index[style])
return Object.values(index)
.filter(
(block) =>
types.includes(block.type) &&
(categories.length === 0 ||
block.categories?.some((category) =>
categories.includes(category)
)) &&
!block.name.startsWith("chart-")
)
.map((block) => block.name)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does getAllBlockIds() do?
getAllBlockIds() is a function in the ui codebase, defined in deprecated/www/lib/blocks.ts.
Where is getAllBlockIds() defined?
getAllBlockIds() is defined in deprecated/www/lib/blocks.ts at line 8.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free