Skip to content

Commit d920c9d

Browse files
committed
docs(DocsApi): do not show AlertDialog API on Alert page
1 parent 8ff68dd commit d920c9d

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

apps/docs/src/components/docs/DocsApi.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
if (!prefix) return []
4141
4242
return Object.entries(data.components)
43-
.filter(([name]) => name.startsWith(prefix))
43+
.filter(([name]) => name === prefix || name.startsWith(`${prefix}.`))
4444
.map(([, api]) => api)
4545
.toSorted((a, b) => {
4646
if (a.name.endsWith('Root')) return -1

dev/src/components.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ export {}
1111
/* prettier-ignore */
1212
declare module 'vue' {
1313
export interface GlobalComponents {
14+
AlertAction: typeof import('./../../packages/0/src/components/Alert/AlertAction.vue')['default']
15+
AlertDescription: typeof import('./../../packages/0/src/components/Alert/AlertDescription.vue')['default']
1416
AlertDialogAction: typeof import('./../../packages/0/src/components/AlertDialog/AlertDialogAction.vue')['default']
1517
AlertDialogActivator: typeof import('./../../packages/0/src/components/AlertDialog/AlertDialogActivator.vue')['default']
1618
AlertDialogCancel: typeof import('./../../packages/0/src/components/AlertDialog/AlertDialogCancel.vue')['default']
@@ -19,6 +21,9 @@ declare module 'vue' {
1921
AlertDialogDescription: typeof import('./../../packages/0/src/components/AlertDialog/AlertDialogDescription.vue')['default']
2022
AlertDialogRoot: typeof import('./../../packages/0/src/components/AlertDialog/AlertDialogRoot.vue')['default']
2123
AlertDialogTitle: typeof import('./../../packages/0/src/components/AlertDialog/AlertDialogTitle.vue')['default']
24+
AlertIcon: typeof import('./../../packages/0/src/components/Alert/AlertIcon.vue')['default']
25+
AlertRoot: typeof import('./../../packages/0/src/components/Alert/AlertRoot.vue')['default']
26+
AlertTitle: typeof import('./../../packages/0/src/components/Alert/AlertTitle.vue')['default']
2227
AspectRatio: typeof import('./../../packages/0/src/components/AspectRatio/AspectRatio.vue')['default']
2328
Atom: typeof import('./../../packages/0/src/components/Atom/Atom.vue')['default']
2429
AvatarFallback: typeof import('./../../packages/0/src/components/Avatar/AvatarFallback.vue')['default']

0 commit comments

Comments
 (0)