-
-
Notifications
You must be signed in to change notification settings - Fork 324
Expand file tree
/
Copy pathtypes.ts
More file actions
105 lines (100 loc) · 2.25 KB
/
types.ts
File metadata and controls
105 lines (100 loc) · 2.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
import * as React from 'react'
export type Framework =
| 'angular'
| 'lit'
| 'preact'
| 'qwik'
| 'react'
| 'solid'
| 'svelte'
| 'vanilla'
| 'vue'
export type LibraryId =
| 'start'
| 'router'
| 'query'
| 'table'
| 'form'
| 'virtual'
| 'ranger'
| 'store'
| 'pacer'
| 'hotkeys'
| 'db'
| 'ai'
| 'intent'
| 'config'
| 'devtools'
| 'mcp'
| 'cli'
| 'react-charts'
| 'create-tsrouter-app'
// Base library type - used for navigation, docs, and most UI
export type LibrarySlim = {
id: LibraryId
name: string
to?: string
tagline: string
description?: string
cardStyles: string
bgStyle: string
borderStyle: string
textStyle: string
textColor?: string
colorFrom: string
colorTo: string
// Accent colors for docs UI (sidebar, TOC, prev/next) - defaults to colorFrom/colorTo if not set
accentColorFrom?: string
accentColorTo?: string
accentTextColor?: string
badgeTextStyle?: string
bgRadial?: string
badge?: 'new' | 'soon' | 'alpha' | 'beta' | 'fresh' | 'RC'
repo: string
frameworks: Framework[]
latestVersion: string
latestBranch?: string
availableVersions: string[]
scarfId?: string
defaultDocs?: string
docsRoot?: string
ogImage?: string
hideCodesandboxUrl?: true
hideStackblitzUrl?: true
showVercelUrl?: boolean
showNetlifyUrl?: boolean
showCloudflareUrl?: boolean
showRailwayUrl?: boolean
embedEditor?: 'codesandbox' | 'stackblitz'
legacyPackages?: string[]
installPath?: string
corePackageName?: string
handleRedirects?: (href: string) => void
/**
* If false, the library is hidden from sidebar navigation and pages have noindex meta tag.
* Use for alpha/private libraries not ready for public visibility.
* Defaults to true.
*/
visible?: boolean
sitemap?: {
includeLandingPage?: boolean
includeTopLevelDocsPages?: boolean
}
}
// Extended library type - adds React node content for landing pages
// This is code-split with the library landing pages
export type Library = LibrarySlim & {
featureHighlights?: {
title: string
icon: React.ReactNode
description: React.ReactNode
}[]
testimonials?: Testimonial[]
}
export type Testimonial = {
quote: string
author: string
role: string
company: string
avatar?: string
}