(style: FileDiffOptions<T>["diffStyle"])
| 151 | ` |
| 152 | |
| 153 | export function createDefaultOptions<T>(style: FileDiffOptions<T>["diffStyle"]) { |
| 154 | return { |
| 155 | theme: "OpenCode", |
| 156 | themeType: "system", |
| 157 | disableLineNumbers: false, |
| 158 | overflow: "wrap", |
| 159 | diffStyle: style ?? "unified", |
| 160 | diffIndicators: "bars", |
| 161 | lineHoverHighlight: "both", |
| 162 | disableBackground: false, |
| 163 | expansionLineCount: 20, |
| 164 | hunkSeparators: "line-info-basic", |
| 165 | lineDiffType: style === "split" ? "word-alt" : "none", |
| 166 | maxLineDiffLength: 1000, |
| 167 | maxLineLengthForHighlighting: 1000, |
| 168 | disableFileHeader: true, |
| 169 | unsafeCSS, |
| 170 | } as const |
| 171 | } |
| 172 | |
| 173 | export const styleVariables = { |
| 174 | "--diffs-font-family": "var(--font-family-mono)", |
no outgoing calls
no test coverage detected