| 1 |
import { Lang, Theme } from 'shiki'; |
| 2 |
|
| 3 |
export type Attributes = { |
| 4 |
code: string; |
| 5 |
codeHTML: string; |
| 6 |
language: Lang; |
| 7 |
theme: Theme; |
| 8 |
align: 'wide' | 'full'; |
| 9 |
bgColor: string; |
| 10 |
textColor: string; |
| 11 |
fontSize: string; |
| 12 |
fontFamily: string; |
| 13 |
lineHeight: string; |
| 14 |
lineNumbers: boolean; |
| 15 |
clampFonts: boolean; |
| 16 |
headerType: string; |
| 17 |
headerString?: string; |
| 18 |
footerType: string; |
| 19 |
footerString?: string; |
| 20 |
footerLink?: string; |
| 21 |
footerLinkTarget?: boolean; |
| 22 |
disablePadding: boolean; |
| 23 |
startingLineNumber: string; |
| 24 |
lineNumbersWidth: number; |
| 25 |
enableHighlighting: boolean; |
| 26 |
lineHighlights: string; |
| 27 |
lineHighlightColor: string; |
| 28 |
enableBlurring: boolean; |
| 29 |
lineBlurs: string; |
| 30 |
removeBlurOnHover: boolean; |
| 31 |
frame: boolean; |
| 32 |
renderType: string; |
| 33 |
label: string; |
| 34 |
copyButton: boolean; |
| 35 |
}; |
| 36 |
export interface AttributesPropsAndSetter { |
| 37 |
attributes: Attributes; |
| 38 |
setAttributes: (attrs: Partial<Attributes>) => void; |
| 39 |
} |
| 40 |
|
| 41 |
declare global { |
| 42 |
interface Window { |
| 43 |
codeBlockPro: { |
| 44 |
pluginUrl: string; |
| 45 |
}; |
| 46 |
} |
| 47 |
} |
| 48 |
|