@pierre/diffs 1.1.0-beta.6 → 1.1.0-beta.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (291) hide show
  1. package/dist/components/AdvancedVirtualizedFileDiff.d.ts +40 -0
  2. package/dist/components/AdvancedVirtualizedFileDiff.d.ts.map +1 -0
  3. package/dist/components/AdvancedVirtualizedFileDiff.js +145 -0
  4. package/dist/components/AdvancedVirtualizedFileDiff.js.map +1 -0
  5. package/dist/components/AdvancedVirtualizer.d.ts +38 -0
  6. package/dist/components/AdvancedVirtualizer.d.ts.map +1 -0
  7. package/dist/components/AdvancedVirtualizer.js +201 -0
  8. package/dist/components/AdvancedVirtualizer.js.map +1 -0
  9. package/dist/components/File.d.ts +58 -33
  10. package/dist/components/File.d.ts.map +1 -1
  11. package/dist/components/File.js +223 -22
  12. package/dist/components/File.js.map +1 -1
  13. package/dist/components/FileDiff.d.ts +42 -16
  14. package/dist/components/FileDiff.d.ts.map +1 -1
  15. package/dist/components/FileDiff.js +505 -65
  16. package/dist/components/FileDiff.js.map +1 -1
  17. package/dist/components/FileStream.d.ts +5 -0
  18. package/dist/components/FileStream.d.ts.map +1 -1
  19. package/dist/components/FileStream.js +66 -8
  20. package/dist/components/FileStream.js.map +1 -1
  21. package/dist/components/VirtualizedFile.d.ts +33 -0
  22. package/dist/components/VirtualizedFile.d.ts.map +1 -0
  23. package/dist/components/VirtualizedFile.js +227 -0
  24. package/dist/components/VirtualizedFile.js.map +1 -0
  25. package/dist/components/VirtualizedFileDiff.d.ts +39 -0
  26. package/dist/components/VirtualizedFileDiff.d.ts.map +1 -0
  27. package/dist/components/VirtualizedFileDiff.js +316 -0
  28. package/dist/components/VirtualizedFileDiff.js.map +1 -0
  29. package/dist/components/Virtualizer.d.ts +63 -0
  30. package/dist/components/Virtualizer.d.ts.map +1 -0
  31. package/dist/components/Virtualizer.js +369 -0
  32. package/dist/components/Virtualizer.js.map +1 -0
  33. package/dist/components/VirtulizerDevelopment.d.ts +14 -0
  34. package/dist/components/VirtulizerDevelopment.d.ts.map +1 -0
  35. package/dist/components/web-components.d.ts +1 -1
  36. package/dist/components/web-components.d.ts.map +1 -1
  37. package/dist/constants.d.ts +4 -7
  38. package/dist/constants.d.ts.map +1 -1
  39. package/dist/constants.js +14 -6
  40. package/dist/constants.js.map +1 -1
  41. package/dist/highlighter/languages/areLanguagesAttached.d.ts.map +1 -1
  42. package/dist/highlighter/languages/attachResolvedLanguages.d.ts.map +1 -1
  43. package/dist/highlighter/languages/cleanUpResolvedLanguages.d.ts.map +1 -1
  44. package/dist/highlighter/languages/constants.d.ts.map +1 -1
  45. package/dist/highlighter/languages/getResolvedLanguages.d.ts.map +1 -1
  46. package/dist/highlighter/languages/getResolvedOrResolveLanguage.d.ts +1 -1
  47. package/dist/highlighter/languages/getResolvedOrResolveLanguage.d.ts.map +1 -1
  48. package/dist/highlighter/languages/hasResolvedLanguages.d.ts.map +1 -1
  49. package/dist/highlighter/languages/registerCustomLanguage.d.ts +11 -4
  50. package/dist/highlighter/languages/registerCustomLanguage.d.ts.map +1 -1
  51. package/dist/highlighter/languages/resolveLanguage.d.ts +1 -1
  52. package/dist/highlighter/languages/resolveLanguage.d.ts.map +1 -1
  53. package/dist/highlighter/languages/resolveLanguages.d.ts.map +1 -1
  54. package/dist/highlighter/shared_highlighter.d.ts.map +1 -1
  55. package/dist/highlighter/shared_highlighter.js.map +1 -1
  56. package/dist/highlighter/themes/areThemesAttached.d.ts.map +1 -1
  57. package/dist/highlighter/themes/attachResolvedThemes.d.ts.map +1 -1
  58. package/dist/highlighter/themes/cleanUpResolvedThemes.d.ts.map +1 -1
  59. package/dist/highlighter/themes/constants.d.ts.map +1 -1
  60. package/dist/highlighter/themes/getResolvedOrResolveTheme.d.ts.map +1 -1
  61. package/dist/highlighter/themes/getResolvedThemes.d.ts.map +1 -1
  62. package/dist/highlighter/themes/hasResolvedThemes.d.ts.map +1 -1
  63. package/dist/highlighter/themes/registerCustomCSSVariableTheme.d.ts.map +1 -1
  64. package/dist/highlighter/themes/registerCustomTheme.d.ts.map +1 -1
  65. package/dist/highlighter/themes/resolveTheme.d.ts.map +1 -1
  66. package/dist/highlighter/themes/resolveThemes.d.ts.map +1 -1
  67. package/dist/index.d.ts +13 -10
  68. package/dist/index.js +10 -7
  69. package/dist/managers/LineSelectionManager.d.ts +14 -15
  70. package/dist/managers/LineSelectionManager.d.ts.map +1 -1
  71. package/dist/managers/LineSelectionManager.js +60 -71
  72. package/dist/managers/LineSelectionManager.js.map +1 -1
  73. package/dist/managers/MouseEventManager.d.ts +13 -6
  74. package/dist/managers/MouseEventManager.d.ts.map +1 -1
  75. package/dist/managers/MouseEventManager.js +161 -47
  76. package/dist/managers/MouseEventManager.js.map +1 -1
  77. package/dist/managers/ResizeManager.d.ts +6 -1
  78. package/dist/managers/ResizeManager.d.ts.map +1 -1
  79. package/dist/managers/ResizeManager.js +114 -64
  80. package/dist/managers/ResizeManager.js.map +1 -1
  81. package/dist/managers/ScrollSyncManager.d.ts.map +1 -1
  82. package/dist/managers/UniversalRenderingManager.d.ts.map +1 -1
  83. package/dist/react/File.d.ts +1 -0
  84. package/dist/react/File.d.ts.map +1 -1
  85. package/dist/react/File.js +2 -1
  86. package/dist/react/File.js.map +1 -1
  87. package/dist/react/FileDiff.d.ts +1 -0
  88. package/dist/react/FileDiff.d.ts.map +1 -1
  89. package/dist/react/FileDiff.js +2 -1
  90. package/dist/react/FileDiff.js.map +1 -1
  91. package/dist/react/MultiFileDiff.d.ts +1 -0
  92. package/dist/react/MultiFileDiff.d.ts.map +1 -1
  93. package/dist/react/MultiFileDiff.js +2 -1
  94. package/dist/react/MultiFileDiff.js.map +1 -1
  95. package/dist/react/PatchDiff.d.ts +1 -0
  96. package/dist/react/PatchDiff.d.ts.map +1 -1
  97. package/dist/react/PatchDiff.js +3 -2
  98. package/dist/react/PatchDiff.js.map +1 -1
  99. package/dist/react/Virtualizer.d.ts +25 -0
  100. package/dist/react/Virtualizer.d.ts.map +1 -0
  101. package/dist/react/Virtualizer.js +38 -0
  102. package/dist/react/Virtualizer.js.map +1 -0
  103. package/dist/react/WorkerPoolContext.d.ts.map +1 -1
  104. package/dist/react/WorkerPoolContext.js +1 -1
  105. package/dist/react/WorkerPoolContext.js.map +1 -1
  106. package/dist/react/constants.d.ts.map +1 -1
  107. package/dist/react/index.d.ts +3 -2
  108. package/dist/react/index.js +2 -1
  109. package/dist/react/jsx.d.ts.map +1 -1
  110. package/dist/react/types.d.ts +5 -3
  111. package/dist/react/types.d.ts.map +1 -1
  112. package/dist/react/utils/renderDiffChildren.d.ts +5 -5
  113. package/dist/react/utils/renderDiffChildren.d.ts.map +1 -1
  114. package/dist/react/utils/renderFileChildren.d.ts +5 -5
  115. package/dist/react/utils/renderFileChildren.d.ts.map +1 -1
  116. package/dist/react/utils/templateRender.d.ts.map +1 -1
  117. package/dist/react/utils/useFileDiffInstance.d.ts +5 -3
  118. package/dist/react/utils/useFileDiffInstance.d.ts.map +1 -1
  119. package/dist/react/utils/useFileDiffInstance.js +6 -2
  120. package/dist/react/utils/useFileDiffInstance.js.map +1 -1
  121. package/dist/react/utils/useFileInstance.d.ts +5 -3
  122. package/dist/react/utils/useFileInstance.d.ts.map +1 -1
  123. package/dist/react/utils/useFileInstance.js +6 -2
  124. package/dist/react/utils/useFileInstance.js.map +1 -1
  125. package/dist/react/utils/useStableCallback.d.ts.map +1 -1
  126. package/dist/react/utils/useStableCallback.js.map +1 -1
  127. package/dist/renderers/DiffHunksRenderer.d.ts +15 -10
  128. package/dist/renderers/DiffHunksRenderer.d.ts.map +1 -1
  129. package/dist/renderers/DiffHunksRenderer.js +240 -136
  130. package/dist/renderers/DiffHunksRenderer.js.map +1 -1
  131. package/dist/renderers/FileRenderer.d.ts +12 -5
  132. package/dist/renderers/FileRenderer.d.ts.map +1 -1
  133. package/dist/renderers/FileRenderer.js +90 -31
  134. package/dist/renderers/FileRenderer.js.map +1 -1
  135. package/dist/shiki-stream/stream.d.ts +2 -2
  136. package/dist/shiki-stream/stream.d.ts.map +1 -1
  137. package/dist/shiki-stream/stream.js.map +1 -1
  138. package/dist/shiki-stream/tokenizer.d.ts +2 -2
  139. package/dist/shiki-stream/tokenizer.d.ts.map +1 -1
  140. package/dist/shiki-stream/tokenizer.js.map +1 -1
  141. package/dist/shiki-stream/types.d.ts +18 -18
  142. package/dist/shiki-stream/types.d.ts.map +1 -1
  143. package/dist/sprite.d.ts +1 -1
  144. package/dist/sprite.d.ts.map +1 -1
  145. package/dist/ssr/FileDiffReact.d.ts.map +1 -1
  146. package/dist/ssr/FileDiffReact.js +1 -1
  147. package/dist/ssr/index.d.ts +2 -2
  148. package/dist/ssr/preloadDiffs.d.ts.map +1 -1
  149. package/dist/ssr/preloadFile.d.ts.map +1 -1
  150. package/dist/ssr/preloadPatchFile.d.ts.map +1 -1
  151. package/dist/ssr/preloadPatchFile.js.map +1 -1
  152. package/dist/ssr/renderHTML.d.ts.map +1 -1
  153. package/dist/style.js +1 -1
  154. package/dist/style.js.map +1 -1
  155. package/dist/types.d.ts +191 -172
  156. package/dist/types.d.ts.map +1 -1
  157. package/dist/utils/areDiffLineAnnotationsEqual.d.ts.map +1 -1
  158. package/dist/utils/areDiffLineAnnotationsEqual.js.map +1 -1
  159. package/dist/utils/areFilesEqual.d.ts.map +1 -1
  160. package/dist/utils/areHunkDataEqual.d.ts.map +1 -1
  161. package/dist/utils/areLineAnnotationsEqual.d.ts.map +1 -1
  162. package/dist/utils/areObjectsEqual.d.ts.map +1 -1
  163. package/dist/utils/areOptionsEqual.d.ts +1 -1
  164. package/dist/utils/areOptionsEqual.d.ts.map +1 -1
  165. package/dist/utils/arePrePropertiesEqual.d.ts.map +1 -1
  166. package/dist/utils/arePrePropertiesEqual.js +1 -1
  167. package/dist/utils/arePrePropertiesEqual.js.map +1 -1
  168. package/dist/utils/areRenderRangesEqual.d.ts.map +1 -1
  169. package/dist/utils/areSelectionsEqual.d.ts.map +1 -1
  170. package/dist/utils/areThemesEqual.d.ts.map +1 -1
  171. package/dist/utils/areVirtualWindowSpecsEqual.d.ts.map +1 -1
  172. package/dist/utils/areWorkerStatsEqual.d.ts.map +1 -1
  173. package/dist/utils/cleanLastNewline.d.ts.map +1 -1
  174. package/dist/utils/createAnnotationElement.d.ts.map +1 -1
  175. package/dist/utils/createAnnotationWrapperNode.d.ts.map +1 -1
  176. package/dist/utils/createContentColumn.d.ts +7 -0
  177. package/dist/utils/createContentColumn.d.ts.map +1 -0
  178. package/dist/utils/createContentColumn.js +17 -0
  179. package/dist/utils/createContentColumn.js.map +1 -0
  180. package/dist/utils/createEmptyRowBuffer.d.ts.map +1 -1
  181. package/dist/utils/createEmptyRowBuffer.js +2 -1
  182. package/dist/utils/createEmptyRowBuffer.js.map +1 -1
  183. package/dist/utils/createFileHeaderElement.d.ts.map +1 -1
  184. package/dist/utils/createHoverContentNode.d.ts.map +1 -1
  185. package/dist/utils/createNoNewlineElement.d.ts +2 -1
  186. package/dist/utils/createNoNewlineElement.d.ts.map +1 -1
  187. package/dist/utils/createNoNewlineElement.js +3 -6
  188. package/dist/utils/createNoNewlineElement.js.map +1 -1
  189. package/dist/utils/createPreElement.d.ts +2 -1
  190. package/dist/utils/createPreElement.d.ts.map +1 -1
  191. package/dist/utils/createPreElement.js +4 -3
  192. package/dist/utils/createPreElement.js.map +1 -1
  193. package/dist/utils/createRowNodes.d.ts.map +1 -1
  194. package/dist/utils/createSeparator.d.ts.map +1 -1
  195. package/dist/utils/createSeparator.js +1 -1
  196. package/dist/utils/createSeparator.js.map +1 -1
  197. package/dist/utils/createSpanNodeFromToken.d.ts.map +1 -1
  198. package/dist/utils/createSpanNodeFromToken.js.map +1 -1
  199. package/dist/utils/createStyleElement.d.ts.map +1 -1
  200. package/dist/utils/createTransformerWithState.d.ts.map +1 -1
  201. package/dist/utils/createUnsafeCSSStyleNode.d.ts.map +1 -1
  202. package/dist/utils/createWindowFromScrollPosition.d.ts.map +1 -1
  203. package/dist/utils/cssWrappers.d.ts.map +1 -1
  204. package/dist/utils/diffAcceptRejectHunk.d.ts +1 -1
  205. package/dist/utils/diffAcceptRejectHunk.d.ts.map +1 -1
  206. package/dist/utils/formatCSSVariablePrefix.d.ts +1 -1
  207. package/dist/utils/formatCSSVariablePrefix.d.ts.map +1 -1
  208. package/dist/utils/getFiletypeFromFileName.d.ts.map +1 -1
  209. package/dist/utils/getHighlighterOptions.d.ts.map +1 -1
  210. package/dist/utils/getHighlighterThemeStyles.d.ts.map +1 -1
  211. package/dist/utils/getHunkSeparatorSlotName.d.ts +3 -1
  212. package/dist/utils/getHunkSeparatorSlotName.d.ts.map +1 -1
  213. package/dist/utils/getHunkSeparatorSlotName.js.map +1 -1
  214. package/dist/utils/getIconForType.d.ts +1 -1
  215. package/dist/utils/getIconForType.d.ts.map +1 -1
  216. package/dist/utils/getLineAnnotationName.d.ts.map +1 -1
  217. package/dist/utils/getLineEndingType.d.ts +1 -1
  218. package/dist/utils/getLineEndingType.d.ts.map +1 -1
  219. package/dist/utils/getLineNodes.d.ts.map +1 -1
  220. package/dist/utils/getOrCreateCodeNode.d.ts +4 -2
  221. package/dist/utils/getOrCreateCodeNode.d.ts.map +1 -1
  222. package/dist/utils/getOrCreateCodeNode.js +9 -6
  223. package/dist/utils/getOrCreateCodeNode.js.map +1 -1
  224. package/dist/utils/getSingularPatch.d.ts.map +1 -1
  225. package/dist/utils/getThemes.d.ts.map +1 -1
  226. package/dist/utils/getTotalLineCountFromHunks.d.ts.map +1 -1
  227. package/dist/utils/hast_utils.d.ts +6 -3
  228. package/dist/utils/hast_utils.d.ts.map +1 -1
  229. package/dist/utils/hast_utils.js +28 -4
  230. package/dist/utils/hast_utils.js.map +1 -1
  231. package/dist/utils/isDefaultRenderRange.d.ts.map +1 -1
  232. package/dist/utils/isWorkerContext.d.ts.map +1 -1
  233. package/dist/utils/iterateOverDiff.d.ts +26 -13
  234. package/dist/utils/iterateOverDiff.d.ts.map +1 -1
  235. package/dist/utils/iterateOverDiff.js +94 -55
  236. package/dist/utils/iterateOverDiff.js.map +1 -1
  237. package/dist/utils/iterateOverFile.d.ts +50 -0
  238. package/dist/utils/iterateOverFile.d.ts.map +1 -0
  239. package/dist/utils/iterateOverFile.js +49 -0
  240. package/dist/utils/iterateOverFile.js.map +1 -0
  241. package/dist/utils/parseDiffDecorations.d.ts.map +1 -1
  242. package/dist/utils/parseDiffFromFile.d.ts +6 -6
  243. package/dist/utils/parseDiffFromFile.d.ts.map +1 -1
  244. package/dist/utils/parseDiffFromFile.js +3 -2
  245. package/dist/utils/parseDiffFromFile.js.map +1 -1
  246. package/dist/utils/parseLineType.d.ts +1 -1
  247. package/dist/utils/parseLineType.d.ts.map +1 -1
  248. package/dist/utils/parsePatchFiles.d.ts +12 -10
  249. package/dist/utils/parsePatchFiles.d.ts.map +1 -1
  250. package/dist/utils/parsePatchFiles.js +16 -9
  251. package/dist/utils/parsePatchFiles.js.map +1 -1
  252. package/dist/utils/prerenderHTMLIfNecessary.d.ts.map +1 -1
  253. package/dist/utils/processLine.d.ts.map +1 -1
  254. package/dist/utils/processLine.js +7 -24
  255. package/dist/utils/processLine.js.map +1 -1
  256. package/dist/utils/renderDiffWithHighlighter.d.ts +2 -2
  257. package/dist/utils/renderDiffWithHighlighter.d.ts.map +1 -1
  258. package/dist/utils/renderDiffWithHighlighter.js +15 -14
  259. package/dist/utils/renderDiffWithHighlighter.js.map +1 -1
  260. package/dist/utils/renderFileWithHighlighter.d.ts +7 -2
  261. package/dist/utils/renderFileWithHighlighter.d.ts.map +1 -1
  262. package/dist/utils/renderFileWithHighlighter.js +30 -4
  263. package/dist/utils/renderFileWithHighlighter.js.map +1 -1
  264. package/dist/utils/resolveVirtualFileMetrics.d.ts +7 -0
  265. package/dist/utils/resolveVirtualFileMetrics.d.ts.map +1 -0
  266. package/dist/utils/resolveVirtualFileMetrics.js +24 -0
  267. package/dist/utils/resolveVirtualFileMetrics.js.map +1 -0
  268. package/dist/utils/setLanguageOverride.d.ts.map +1 -1
  269. package/dist/utils/setWrapperNodeProps.d.ts +1 -0
  270. package/dist/utils/setWrapperNodeProps.d.ts.map +1 -1
  271. package/dist/utils/setWrapperNodeProps.js +19 -12
  272. package/dist/utils/setWrapperNodeProps.js.map +1 -1
  273. package/dist/utils/splitFileContents.d.ts +12 -0
  274. package/dist/utils/splitFileContents.d.ts.map +1 -0
  275. package/dist/utils/splitFileContents.js +17 -0
  276. package/dist/utils/splitFileContents.js.map +1 -0
  277. package/dist/utils/trimPatchContext.d.ts +5 -5
  278. package/dist/utils/trimPatchContext.d.ts.map +1 -1
  279. package/dist/worker/WorkerPoolManager.d.ts +2 -2
  280. package/dist/worker/WorkerPoolManager.d.ts.map +1 -1
  281. package/dist/worker/WorkerPoolManager.js +36 -24
  282. package/dist/worker/WorkerPoolManager.js.map +1 -1
  283. package/dist/worker/getOrCreateWorkerPoolSingleton.d.ts.map +1 -1
  284. package/dist/worker/getOrCreateWorkerPoolSingleton.js.map +1 -1
  285. package/dist/worker/types.d.ts +26 -26
  286. package/dist/worker/types.d.ts.map +1 -1
  287. package/dist/worker/worker-portable.js +323 -143
  288. package/dist/worker/worker-portable.js.map +1 -1
  289. package/dist/worker/worker.js +206 -106
  290. package/dist/worker/worker.js.map +1 -1
  291. package/package.json +52 -53
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","names":[],"sources":["../src/types.ts"],"sourcesContent":[],"mappings":"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"}
1
+ {"version":3,"file":"types.d.ts","names":["ElementContent","BundledLanguage","BundledTheme","CodeToHastOptions","DecorationItem","HighlighterGeneric","LanguageRegistration","ShikiTransformer","ThemedToken","ThemeRegistrationResolved","FileContents","SupportedLanguages","DiffsThemeNames","ThemesType","Record","DiffsHighlighter","ChangeTypes","ParsedPatch","FileDiffMetadata","ContextContent","ChangeContent","Hunk","HunkLineType","ThemeTypes","HunkSeparators","LineDiffTypes","BaseCodeOptions","BaseDiffOptions","PrePropertiesConfig","Pick","Required","RenderHeaderMetadataProps","RenderHeaderMetadataCallback","Element","RenderFileMetadata","ExtensionFormatMap","AnnotationSide","SelectionSide","OptionalMetadata","T","LineAnnotation","DiffLineAnnotation","GapSpan","LineSpans","AnnotationSpan","LineTypes","LineInfo","SharedRenderState","LineEventBaseProps","HTMLElement","DiffLineEventBaseProps","Omit","ObservedAnnotationNodes","ObservedGridNodes","CodeColumnType","HunkData","AnnotationLineMap","LAnnotation","ExpansionDirections","ThemedFileResult","RenderDiffFilesResult","ThemedDiffResult","HunkExpansionRegion","ForceDiffPlainTextOptions","Map","ForceFilePlainTextOptions","RenderFileOptions","RenderDiffOptions","RenderFileResult","RenderDiffResult","RenderedFileASTCache","RenderRange","RenderedDiffASTCache","RenderWindow","VirtualWindowSpecs","VirtualFileMetrics"],"sources":["../src/types.d.ts"],"sourcesContent":["import type { ElementContent } from 'hast';\nimport type { BundledLanguage, BundledTheme, CodeToHastOptions, DecorationItem, HighlighterGeneric, LanguageRegistration, ShikiTransformer, ThemedToken, ThemeRegistrationResolved } from 'shiki';\n/**\n * Represents a file's contents for generating diffs via `parseDiffFromFile` or\n * for when rendering a file directly using the File components\n */\nexport interface FileContents {\n /** Filename used for display in headers and for inferring the language for\n * syntax highlighting. */\n name: string;\n /** The raw text contents of the file. */\n contents: string;\n /** Explicitly set the syntax highlighting language instead of inferring from\n * filename. Generally you should not be setting this. */\n lang?: SupportedLanguages;\n /** Optional header passed to the jsdiff library's `createTwoFilesPatch`. */\n header?: string;\n /** This unique key is only used for Worker Pools to avoid subsequent requests\n * if we've already highlighted the file. Please note that if you modify the\n * `contents` or `name`, you must update the `cacheKey`. */\n cacheKey?: string;\n}\nexport type { BundledLanguage, CodeToHastOptions, DecorationItem, LanguageRegistration, ShikiTransformer, ThemeRegistrationResolved, ThemedToken, };\nexport type DiffsThemeNames = BundledTheme | 'pierre-dark' | 'pierre-light' | (string & {});\nexport type ThemesType = Record<'dark' | 'light', DiffsThemeNames>;\n/**\n * A Shiki highlighter instance configured with the library's supported\n * languages and themes. Used internally to generate syntax-highlighted AST\n * from file contents. By default diffs will ensure that only 1 highlighter is\n * instantiated per thread and shared for all syntax highlighting. This\n * applies to the main thread and worker threads.\n */\nexport type DiffsHighlighter = HighlighterGeneric<SupportedLanguages, DiffsThemeNames>;\n/**\n * Describes the type of change for a file in a diff.\n * - `change`: File content was modified, name unchanged.\n * - `rename-pure`: File was renamed/moved without content changes (100% similarity).\n * - `rename-changed`: File was renamed/moved and content was also modified.\n * - `new`: A new file was added.\n * - `deleted`: An existing file was removed.\n */\nexport type ChangeTypes = 'change' | 'rename-pure' | 'rename-changed' | 'new' | 'deleted';\n/**\n * Represents a parsed patch file, typically corresponding to a single commit.\n * Returned by `parsePatchFiles` when parsing raw patch/diff strings.\n */\nexport interface ParsedPatch {\n /** Optional raw introductory text before the file diffs that may have been\n * included in the patch (e.g., commit message, author, date). */\n patchMetadata?: string;\n /** Array of file changes contained in the patch. */\n files: FileDiffMetadata[];\n}\n/**\n * Represents a block of unchanged context lines within a hunk. Basically a\n * batch of lines in a hunk that are prefixed with a space ` `. Consecutive\n * lines prefixed with a ` ` are grouped together into a single ContextContent.\n */\nexport interface ContextContent {\n type: 'context';\n /** Number of unchanged lines in this context block. */\n lines: number;\n /**\n * Zero-based index into `FileDiffMetadata.additionLines` where this context\n * block starts.\n */\n additionLineIndex: number;\n /**\n * Zero-based index into `FileDiffMetadata.deletionLines` where this context\n * block starts.\n */\n deletionLineIndex: number;\n}\n/**\n * Represents a block of changes (additions and/or deletions) within a hunk.\n * Consecutive `+` and `-` lines are grouped together into a single\n * ChangeContent.\n */\nexport interface ChangeContent {\n type: 'change';\n /** Number of lines prefixed with `-` in this change block. */\n deletions: number;\n /**\n * Zero-based index into `FileDiffMetadata.deletionLines` where the deleted\n * lines start.\n */\n deletionLineIndex: number;\n /** Number of lines prefixed with `+` in this change block. */\n additions: number;\n /**\n * Zero-based index into `FileDiffMetadata.additionLines` where the added\n * lines start.\n */\n additionLineIndex: number;\n}\n/**\n * Represents a single hunk from a diff, corresponding to\n * one `@@ ... @@` block.\n */\nexport interface Hunk {\n /**\n * Number of unchanged lines between the previous hunk (or file start) and\n * this hunk.\n */\n collapsedBefore: number;\n /**\n * Starting line number in the new file version, parsed from the `+X`\n * in the hunk header.\n */\n additionStart: number;\n /**\n * Total line count in the new file version for this hunk, parsed from\n * `+X,count` in the hunk header. If this hunk was viewed in `diffStyle:\n * split` this would correspond to the number of lines in the right\n * `additions` column. It includes both `context` lines and lines\n * prefixed with `+`.\n */\n additionCount: number;\n /** This corresponds to the number of lines prefixed with `+` in this hunk. */\n additionLines: number;\n /**\n * Zero-based index into `FileDiffMetadata.additionLines` where this hunk's\n * content starts.\n */\n additionLineIndex: number;\n /**\n * Starting line number in the old file version, parsed from the `-X`\n * in the hunk header.\n */\n deletionStart: number;\n /**\n * Total line count in the old file version for this hunk, parsed from\n * `-X,count` in the hunk header. If this hunk was viewed in `diffStyle:\n * split` this would correspond to the number of lines in the left\n * `deletions` column. It includes both `context` lines and lines\n * prefixed with `-`.\n */\n deletionCount: number;\n /** This corresponds to the number of lines prefixed with `-` in this hunk. */\n deletionLines: number;\n /**\n * Zero-based index into `FileDiffMetadata.deletionLines` where this hunk's\n * content starts.\n */\n deletionLineIndex: number;\n /**\n * Array of content segments within this hunk, each representing either\n * a context line group or a change group.\n */\n hunkContent: (ContextContent | ChangeContent)[];\n /**\n * Function/method name that appears after the `@@` markers if it existed in\n * the diff.\n */\n hunkContext?: string;\n /** Raw hunk header string (e.g., `@@ -1,5 +1,7 @@`). */\n hunkSpecs?: string;\n /**\n * Starting line index for this hunk when rendered in split (side-by-side)\n * view.\n */\n splitLineStart: number;\n /** Total rendered line count for this hunk in split view. */\n splitLineCount: number;\n /** Starting line index for this hunk when rendered in unified view. */\n unifiedLineStart: number;\n /** Total rendered line count for this hunk in unified view. */\n unifiedLineCount: number;\n /**\n * True if the old file version has no trailing newline at end of file. This\n * is parsed from the patch file directly at the end of the hunk. If the\n * final hunkContent is a `context` group, then both values will be true or\n * false together. If it's from a `change` content group, then it may differ\n * depending on the patch.\n */\n noEOFCRDeletions: boolean;\n /**\n * True if the new file version has no trailing newline at end of file. This\n * is parsed from the patch file directly at the end of the hunk. If the\n * final hunkContent is a `context` group, then both values will be true or\n * false together. If it's from a `change` content group, then it may differ\n * depending on the patch.\n */\n noEOFCRAdditions: boolean;\n}\n/**\n * Metadata and content for a single file's diff. Think of this as a JSON\n * compatible representation of a diff for a single file.\n */\nexport interface FileDiffMetadata {\n /** The file's name and path. */\n name: string;\n /** Previous file path, present only if file was renamed or moved. */\n prevName?: string;\n /**\n * Explicitly override the syntax highlighting language instead of inferring\n * from filename. This will never be set by default, since all internal diff\n * APIs will attempt to detect the language automatically. If you'd like to\n * specify a language override, you can do so via the method `setLanguageOverride`\n */\n lang?: SupportedLanguages;\n /**\n * Object ID for the new file content parsed from the `index` line in a\n * patch file.\n */\n newObjectId?: string;\n /**\n * Object ID for the previous file content parsed from the `index` line in a\n * patch file.\n */\n prevObjectId?: string;\n /**\n * Git file mode parsed from the diff (e.g., `100644` for regular files) when\n * present in the patch metadata.\n */\n mode?: string;\n /** Previous git file mode, present if the mode changed. */\n prevMode?: string;\n /** The type of change for this file. */\n type: ChangeTypes;\n /** Array of diff hunks containing line-level change information. Each hunk\n * corresponds to a `@@ -X,X +X,X @@` group in a diff. */\n hunks: Hunk[];\n /** Pre-computed line size for this diff if rendered in `split` diffStyle. */\n splitLineCount: number;\n /** Pre-computed line size for this diff if rendered in `unified` diffStyle. */\n unifiedLineCount: number;\n /**\n * Whether the diff was parsed from a patch file (true) or generated from\n * full file contents (false).\n *\n * When true, `deletionLines`/`additionLines` contain only the lines present\n * in the patch and hunk expansion is unavailable.\n *\n * When false, they contain the complete file contents.\n */\n isPartial: boolean;\n /**\n * Array of lines from previous version of the file. If `isPartial` is false,\n * it means that `deletionLines` can be considered the entire contents of the\n * old version of the file. Otherwise `deletionLines` will just be an array\n * of all the content processed from the `context` and `deletion` lines of\n * the patch.\n */\n deletionLines: string[];\n /**\n * Array of lines from new version of the file. If `isPartial` is false, it\n * means that `additionLines` can be considered the entire contents of the\n * new version of the file. Otherwise `additionLines` will just be an array\n * of all the content processed from the `context` and `addition` lines of\n * the patch.\n */\n additionLines: string[];\n /**\n * This unique key is only used for Worker Pools to avoid subsequent requests\n * to highlight if we've already highlighted the diff. Please note that if\n * you modify the contents of the diff in any way, you will need to update\n * the `cacheKey`.\n */\n cacheKey?: string;\n}\nexport type SupportedLanguages = BundledLanguage | 'text' | 'ansi' | (string & {});\nexport type HunkLineType = 'context' | 'expanded' | 'addition' | 'deletion' | 'metadata';\nexport type ThemeTypes = 'system' | 'light' | 'dark';\n/**\n * The `'custom'` variant is deprecated and will be removed in a future version.\n */\nexport type HunkSeparators = 'simple' | 'metadata' | 'line-info' | 'custom';\nexport type LineDiffTypes = 'word-alt' | 'word' | 'char' | 'none';\nexport interface BaseCodeOptions {\n theme?: DiffsThemeNames | ThemesType;\n disableLineNumbers?: boolean;\n overflow?: 'scroll' | 'wrap';\n themeType?: ThemeTypes;\n disableFileHeader?: boolean;\n disableVirtualizationBuffers?: boolean;\n useCSSClasses?: boolean;\n tokenizeMaxLineLength?: number;\n unsafeCSS?: string;\n}\nexport interface BaseDiffOptions extends BaseCodeOptions {\n diffStyle?: 'unified' | 'split';\n diffIndicators?: 'classic' | 'bars' | 'none';\n disableBackground?: boolean;\n hunkSeparators?: HunkSeparators;\n expandUnchanged?: boolean;\n collapsedContextThreshold?: number;\n lineDiffType?: LineDiffTypes;\n maxLineDiffLength?: number;\n expansionLineCount?: number;\n}\nexport interface PrePropertiesConfig extends Required<Pick<BaseDiffOptions, 'diffIndicators' | 'disableBackground' | 'disableLineNumbers' | 'overflow' | 'themeType'>> {\n type: 'diff' | 'file';\n split: boolean;\n themeStyles: string;\n totalLines: number;\n}\nexport interface RenderHeaderMetadataProps {\n deletionFile?: FileContents;\n additionFile?: FileContents;\n fileDiff?: FileDiffMetadata;\n}\nexport type RenderHeaderMetadataCallback = (props: RenderHeaderMetadataProps) => Element | null | undefined | string | number;\nexport type RenderFileMetadata = (file: FileContents) => Element | null | undefined | string | number;\nexport type ExtensionFormatMap = Record<string, SupportedLanguages | undefined>;\nexport type AnnotationSide = 'deletions' | 'additions';\nexport type SelectionSide = 'deletions' | 'additions';\ntype OptionalMetadata<T> = T extends undefined ? {\n metadata?: undefined;\n} : {\n metadata: T;\n};\nexport type LineAnnotation<T = undefined> = {\n lineNumber: number;\n} & OptionalMetadata<T>;\nexport type DiffLineAnnotation<T = undefined> = {\n side: AnnotationSide;\n lineNumber: number;\n} & OptionalMetadata<T>;\nexport interface GapSpan {\n type: 'gap';\n rows: number;\n}\nexport type LineSpans = GapSpan | AnnotationSpan;\nexport type LineTypes = 'change-deletion' | 'change-addition' | 'context' | 'context-expanded';\nexport interface LineInfo {\n type: LineTypes;\n lineNumber: number;\n altLineNumber?: number;\n lineIndex: number | `${number},${number}`;\n}\nexport interface SharedRenderState {\n lineInfo: (LineInfo | undefined)[] | ((shikiLineNumber: number) => LineInfo);\n}\nexport interface AnnotationSpan {\n type: 'annotation';\n hunkIndex: number;\n lineIndex: number;\n annotations: string[];\n}\nexport interface LineEventBaseProps {\n type: 'line';\n lineNumber: number;\n lineElement: HTMLElement;\n numberElement: HTMLElement;\n numberColumn: boolean;\n}\nexport interface DiffLineEventBaseProps extends Omit<LineEventBaseProps, 'type'> {\n type: 'diff-line';\n annotationSide: AnnotationSide;\n lineType: LineTypes;\n}\nexport interface ObservedAnnotationNodes {\n type: 'annotations';\n column1: {\n container: HTMLElement;\n child: HTMLElement;\n childHeight: number;\n };\n column2: {\n container: HTMLElement;\n child: HTMLElement;\n childHeight: number;\n };\n currentHeight: number | 'auto';\n}\nexport interface ObservedGridNodes {\n type: 'code';\n codeElement: HTMLElement;\n numberElement: HTMLElement | null;\n codeWidth: number | 'auto';\n numberWidth: number;\n}\nexport type CodeColumnType = 'unified' | 'additions' | 'deletions';\nexport interface HunkData {\n slotName: string;\n hunkIndex: number;\n lines: number;\n type: CodeColumnType;\n expandable?: {\n chunked: boolean;\n up: boolean;\n down: boolean;\n };\n}\nexport type AnnotationLineMap<LAnnotation> = Record<number, DiffLineAnnotation<LAnnotation>[] | undefined>;\nexport type ExpansionDirections = 'up' | 'down' | 'both';\nexport interface ThemedFileResult {\n code: ElementContent[];\n themeStyles: string;\n baseThemeType: 'light' | 'dark' | undefined;\n}\nexport interface RenderDiffFilesResult {\n deletionLines: ElementContent[];\n additionLines: ElementContent[];\n}\nexport interface ThemedDiffResult {\n code: RenderDiffFilesResult;\n themeStyles: string;\n baseThemeType: 'light' | 'dark' | undefined;\n}\nexport interface HunkExpansionRegion {\n fromStart: number;\n fromEnd: number;\n}\nexport interface ForceDiffPlainTextOptions {\n forcePlainText: boolean;\n startingLine?: number;\n totalLines?: number;\n expandedHunks?: Map<number, HunkExpansionRegion> | true;\n collapsedContextThreshold?: number;\n}\nexport interface ForceFilePlainTextOptions {\n forcePlainText: boolean;\n startingLine?: number;\n totalLines?: number;\n lines?: string[];\n}\nexport interface RenderFileOptions {\n theme: DiffsThemeNames | Record<'dark' | 'light', DiffsThemeNames>;\n tokenizeMaxLineLength: number;\n}\nexport interface RenderDiffOptions {\n theme: DiffsThemeNames | Record<'dark' | 'light', DiffsThemeNames>;\n tokenizeMaxLineLength: number;\n lineDiffType: LineDiffTypes;\n}\nexport interface RenderFileResult {\n result: ThemedFileResult;\n options: RenderFileOptions;\n}\nexport interface RenderDiffResult {\n result: ThemedDiffResult;\n options: RenderDiffOptions;\n}\nexport interface RenderedFileASTCache {\n file: FileContents;\n highlighted: boolean;\n options: RenderFileOptions;\n result: ThemedFileResult | undefined;\n renderRange: RenderRange | undefined;\n}\nexport interface RenderedDiffASTCache {\n diff: FileDiffMetadata;\n highlighted: boolean;\n options: RenderDiffOptions;\n result: ThemedDiffResult | undefined;\n renderRange: RenderRange | undefined;\n}\nexport interface RenderRange {\n startingLine: number;\n totalLines: number;\n bufferBefore: number;\n bufferAfter: number;\n}\nexport interface RenderWindow {\n top: number;\n bottom: number;\n}\nexport interface VirtualWindowSpecs {\n top: number;\n bottom: number;\n}\nexport interface VirtualFileMetrics {\n hunkLineCount: number;\n lineHeight: number;\n diffHeaderHeight: number;\n hunkSeparatorHeight: number;\n fileGap: number;\n}\n//# sourceMappingURL=types.d.ts.map"],"mappings":"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"}
@@ -1 +1 @@
1
- {"version":3,"file":"areDiffLineAnnotationsEqual.d.ts","names":[],"sources":["../../src/utils/areDiffLineAnnotationsEqual.ts"],"sourcesContent":[],"mappings":";;;iBAEgB,kEACD,mBAAmB,2BACnB,mBAAmB"}
1
+ {"version":3,"file":"areDiffLineAnnotationsEqual.d.ts","names":["DiffLineAnnotation","areDiffLineAnnotationsEqual","LAnnotation"],"sources":["../../src/utils/areDiffLineAnnotationsEqual.d.ts"],"sourcesContent":["import type { DiffLineAnnotation } from '../types';\nexport declare function areDiffLineAnnotationsEqual<LAnnotation = undefined>(annotationA: DiffLineAnnotation<LAnnotation>, annotationB: DiffLineAnnotation<LAnnotation>): boolean;\n//# sourceMappingURL=areDiffLineAnnotationsEqual.d.ts.map"],"mappings":";;;iBACwBC,kEAAkED,mBAAmBE,2BAA2BF,mBAAmBE"}
@@ -1 +1 @@
1
- {"version":3,"file":"areDiffLineAnnotationsEqual.js","names":[],"sources":["../../src/utils/areDiffLineAnnotationsEqual.ts"],"sourcesContent":["import type { DiffLineAnnotation } from 'src/types';\n\nexport function areDiffLineAnnotationsEqual<LAnnotation = undefined>(\n annotationA: DiffLineAnnotation<LAnnotation>,\n annotationB: DiffLineAnnotation<LAnnotation>\n): boolean {\n return (\n annotationA.lineNumber === annotationB.lineNumber &&\n annotationA.side === annotationB.side &&\n annotationA.metadata === annotationB.metadata\n );\n}\n"],"mappings":";AAEA,SAAgB,4BACd,aACA,aACS;AACT,QACE,YAAY,eAAe,YAAY,cACvC,YAAY,SAAS,YAAY,QACjC,YAAY,aAAa,YAAY"}
1
+ {"version":3,"file":"areDiffLineAnnotationsEqual.js","names":[],"sources":["../../src/utils/areDiffLineAnnotationsEqual.ts"],"sourcesContent":["import type { DiffLineAnnotation } from '../types';\n\nexport function areDiffLineAnnotationsEqual<LAnnotation = undefined>(\n annotationA: DiffLineAnnotation<LAnnotation>,\n annotationB: DiffLineAnnotation<LAnnotation>\n): boolean {\n return (\n annotationA.lineNumber === annotationB.lineNumber &&\n annotationA.side === annotationB.side &&\n annotationA.metadata === annotationB.metadata\n );\n}\n"],"mappings":";AAEA,SAAgB,4BACd,aACA,aACS;AACT,QACE,YAAY,eAAe,YAAY,cACvC,YAAY,SAAS,YAAY,QACjC,YAAY,aAAa,YAAY"}
@@ -1 +1 @@
1
- {"version":3,"file":"areFilesEqual.d.ts","names":[],"sources":["../../src/utils/areFilesEqual.ts"],"sourcesContent":[],"mappings":";;;iBAEgB,aAAA,QACP,iCACA"}
1
+ {"version":3,"file":"areFilesEqual.d.ts","names":["FileContents","areFilesEqual"],"sources":["../../src/utils/areFilesEqual.d.ts"],"sourcesContent":["import type { FileContents } from '../types';\nexport declare function areFilesEqual(fileA: FileContents | undefined, fileB: FileContents | undefined): boolean;\n//# sourceMappingURL=areFilesEqual.d.ts.map"],"mappings":";;;iBACwBC,aAAAA,QAAqBD,iCAAiCA"}
@@ -1 +1 @@
1
- {"version":3,"file":"areHunkDataEqual.d.ts","names":[],"sources":["../../src/utils/areHunkDataEqual.ts"],"sourcesContent":[],"mappings":";;;iBAEgB,gBAAA,QAAwB,iBAAiB"}
1
+ {"version":3,"file":"areHunkDataEqual.d.ts","names":["HunkData","areHunkDataEqual"],"sources":["../../src/utils/areHunkDataEqual.d.ts"],"sourcesContent":["import type { HunkData } from '../types';\nexport declare function areHunkDataEqual(hunkA: HunkData, hunkB: HunkData): boolean;\n//# sourceMappingURL=areHunkDataEqual.d.ts.map"],"mappings":";;;iBACwBC,gBAAAA,QAAwBD,iBAAiBA"}
@@ -1 +1 @@
1
- {"version":3,"file":"areLineAnnotationsEqual.d.ts","names":[],"sources":["../../src/utils/areLineAnnotationsEqual.ts"],"sourcesContent":[],"mappings":";;;iBAEgB,8DACD,eAAe,2BACf,eAAe"}
1
+ {"version":3,"file":"areLineAnnotationsEqual.d.ts","names":["LineAnnotation","areLineAnnotationsEqual","LAnnotation"],"sources":["../../src/utils/areLineAnnotationsEqual.d.ts"],"sourcesContent":["import type { LineAnnotation } from '../types';\nexport declare function areLineAnnotationsEqual<LAnnotation = undefined>(annotationA: LineAnnotation<LAnnotation>, annotationB: LineAnnotation<LAnnotation>): boolean;\n//# sourceMappingURL=areLineAnnotationsEqual.d.ts.map"],"mappings":";;;iBACwBC,8DAA8DD,eAAeE,2BAA2BF,eAAeE"}
@@ -1 +1 @@
1
- {"version":3,"file":"areObjectsEqual.d.ts","names":[],"sources":["../../src/utils/areObjectsEqual.ts"],"sourcesContent":[],"mappings":";iBAAgB,wCACR,qBACA,iCACY"}
1
+ {"version":3,"file":"areObjectsEqual.d.ts","names":["areObjectsEqual","T"],"sources":["../../src/utils/areObjectsEqual.d.ts"],"sourcesContent":["export declare function areObjectsEqual<T extends object>(objA: T | undefined, objB: T | undefined, omitKeys?: (keyof T)[]): boolean;\n//# sourceMappingURL=areObjectsEqual.d.ts.map"],"mappings":";iBAAwBA,wCAAwCC,qBAAqBA,iCAAiCA"}
@@ -1,6 +1,6 @@
1
1
  import { FileOptions } from "../components/File.js";
2
- import { FileDiffOptions } from "../components/FileDiff.js";
3
2
  import "../react/index.js";
3
+ import { FileDiffOptions } from "../components/FileDiff.js";
4
4
 
5
5
  //#region src/utils/areOptionsEqual.d.ts
6
6
  declare function areOptionsEqual<LAnnotation>(optionsA: FileOptions<LAnnotation> | FileDiffOptions<LAnnotation> | undefined, optionsB: FileOptions<LAnnotation> | FileDiffOptions<LAnnotation> | undefined): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"areOptionsEqual.d.ts","names":[],"sources":["../../src/utils/areOptionsEqual.ts"],"sourcesContent":[],"mappings":";;;;;iBAMgB,uCACJ,YAAY,eAAe,gBAAgB,oCAC3C,YAAY,eAAe,gBAAgB"}
1
+ {"version":3,"file":"areOptionsEqual.d.ts","names":["FileDiffOptions","FileOptions","areOptionsEqual","LAnnotation"],"sources":["../../src/utils/areOptionsEqual.d.ts"],"sourcesContent":["import type { FileDiffOptions } from '../components/FileDiff';\nimport type { FileOptions } from '../react';\nexport declare function areOptionsEqual<LAnnotation>(optionsA: FileOptions<LAnnotation> | FileDiffOptions<LAnnotation> | undefined, optionsB: FileOptions<LAnnotation> | FileDiffOptions<LAnnotation> | undefined): boolean;\n//# sourceMappingURL=areOptionsEqual.d.ts.map"],"mappings":";;;;;iBAEwBE,uCAAuCD,YAAYE,eAAeH,gBAAgBG,oCAAoCF,YAAYE,eAAeH,gBAAgBG"}
@@ -1 +1 @@
1
- {"version":3,"file":"arePrePropertiesEqual.d.ts","names":[],"sources":["../../src/utils/arePrePropertiesEqual.ts"],"sourcesContent":[],"mappings":";;;iBAEgB,qBAAA,SACN,yCACA"}
1
+ {"version":3,"file":"arePrePropertiesEqual.d.ts","names":["PrePropertiesConfig","arePrePropertiesEqual"],"sources":["../../src/utils/arePrePropertiesEqual.d.ts"],"sourcesContent":["import type { PrePropertiesConfig } from '../types';\nexport declare function arePrePropertiesEqual(propsA: PrePropertiesConfig | undefined, propsB: PrePropertiesConfig | undefined): boolean;\n//# sourceMappingURL=arePrePropertiesEqual.d.ts.map"],"mappings":";;;iBACwBC,qBAAAA,SAA8BD,yCAAyCA"}
@@ -1,7 +1,7 @@
1
1
  //#region src/utils/arePrePropertiesEqual.ts
2
2
  function arePrePropertiesEqual(propsA, propsB) {
3
3
  if (propsA == null || propsB == null) return propsA === propsB;
4
- return propsA.diffIndicators === propsB.diffIndicators && propsA.disableBackground === propsB.disableBackground && propsA.disableLineNumbers === propsB.disableLineNumbers && propsA.overflow === propsB.overflow && propsA.split === propsB.split && propsA.themeStyles === propsB.themeStyles && propsA.themeType === propsB.themeType && propsA.totalLines === propsB.totalLines;
4
+ return propsA.type === propsB.type && propsA.diffIndicators === propsB.diffIndicators && propsA.disableBackground === propsB.disableBackground && propsA.disableLineNumbers === propsB.disableLineNumbers && propsA.overflow === propsB.overflow && propsA.split === propsB.split && propsA.themeStyles === propsB.themeStyles && propsA.themeType === propsB.themeType && propsA.totalLines === propsB.totalLines;
5
5
  }
6
6
 
7
7
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"arePrePropertiesEqual.js","names":[],"sources":["../../src/utils/arePrePropertiesEqual.ts"],"sourcesContent":["import type { PrePropertiesConfig } from '../types';\n\nexport function arePrePropertiesEqual(\n propsA: PrePropertiesConfig | undefined,\n propsB: PrePropertiesConfig | undefined\n): boolean {\n if (propsA == null || propsB == null) {\n return propsA === propsB;\n }\n return (\n propsA.diffIndicators === propsB.diffIndicators &&\n propsA.disableBackground === propsB.disableBackground &&\n propsA.disableLineNumbers === propsB.disableLineNumbers &&\n propsA.overflow === propsB.overflow &&\n propsA.split === propsB.split &&\n propsA.themeStyles === propsB.themeStyles &&\n propsA.themeType === propsB.themeType &&\n propsA.totalLines === propsB.totalLines\n );\n}\n"],"mappings":";AAEA,SAAgB,sBACd,QACA,QACS;AACT,KAAI,UAAU,QAAQ,UAAU,KAC9B,QAAO,WAAW;AAEpB,QACE,OAAO,mBAAmB,OAAO,kBACjC,OAAO,sBAAsB,OAAO,qBACpC,OAAO,uBAAuB,OAAO,sBACrC,OAAO,aAAa,OAAO,YAC3B,OAAO,UAAU,OAAO,SACxB,OAAO,gBAAgB,OAAO,eAC9B,OAAO,cAAc,OAAO,aAC5B,OAAO,eAAe,OAAO"}
1
+ {"version":3,"file":"arePrePropertiesEqual.js","names":[],"sources":["../../src/utils/arePrePropertiesEqual.ts"],"sourcesContent":["import type { PrePropertiesConfig } from '../types';\n\nexport function arePrePropertiesEqual(\n propsA: PrePropertiesConfig | undefined,\n propsB: PrePropertiesConfig | undefined\n): boolean {\n if (propsA == null || propsB == null) {\n return propsA === propsB;\n }\n return (\n propsA.type === propsB.type &&\n propsA.diffIndicators === propsB.diffIndicators &&\n propsA.disableBackground === propsB.disableBackground &&\n propsA.disableLineNumbers === propsB.disableLineNumbers &&\n propsA.overflow === propsB.overflow &&\n propsA.split === propsB.split &&\n propsA.themeStyles === propsB.themeStyles &&\n propsA.themeType === propsB.themeType &&\n propsA.totalLines === propsB.totalLines\n );\n}\n"],"mappings":";AAEA,SAAgB,sBACd,QACA,QACS;AACT,KAAI,UAAU,QAAQ,UAAU,KAC9B,QAAO,WAAW;AAEpB,QACE,OAAO,SAAS,OAAO,QACvB,OAAO,mBAAmB,OAAO,kBACjC,OAAO,sBAAsB,OAAO,qBACpC,OAAO,uBAAuB,OAAO,sBACrC,OAAO,aAAa,OAAO,YAC3B,OAAO,UAAU,OAAO,SACxB,OAAO,gBAAgB,OAAO,eAC9B,OAAO,cAAc,OAAO,aAC5B,OAAO,eAAe,OAAO"}
@@ -1 +1 @@
1
- {"version":3,"file":"areRenderRangesEqual.d.ts","names":[],"sources":["../../src/utils/areRenderRangesEqual.ts"],"sourcesContent":[],"mappings":";;;iBAEgB,oBAAA,eACA,uCACA"}
1
+ {"version":3,"file":"areRenderRangesEqual.d.ts","names":["RenderRange","areRenderRangesEqual"],"sources":["../../src/utils/areRenderRangesEqual.d.ts"],"sourcesContent":["import type { RenderRange } from '../types';\nexport declare function areRenderRangesEqual(renderRangeA: RenderRange | undefined, renderRangeB: RenderRange | undefined): boolean;\n//# sourceMappingURL=areRenderRangesEqual.d.ts.map"],"mappings":";;;iBACwBC,oBAAAA,eAAmCD,uCAAuCA"}
@@ -1 +1 @@
1
- {"version":3,"file":"areSelectionsEqual.d.ts","names":[],"sources":["../../src/utils/areSelectionsEqual.ts"],"sourcesContent":[],"mappings":";;;iBAEgB,kBAAA,aACF,2CACA"}
1
+ {"version":3,"file":"areSelectionsEqual.d.ts","names":["SelectedLineRange","areSelectionsEqual"],"sources":["../../src/utils/areSelectionsEqual.d.ts"],"sourcesContent":["import type { SelectedLineRange } from '../managers/LineSelectionManager';\nexport declare function areSelectionsEqual(selectionA: SelectedLineRange | undefined, selectionB: SelectedLineRange | undefined): boolean;\n//# sourceMappingURL=areSelectionsEqual.d.ts.map"],"mappings":";;;iBACwBC,kBAAAA,aAA+BD,2CAA2CA"}
@@ -1 +1 @@
1
- {"version":3,"file":"areThemesEqual.d.ts","names":[],"sources":["../../src/utils/areThemesEqual.ts"],"sourcesContent":[],"mappings":";;;iBAEgB,cAAA,SACN,kBAAkB,gCAClB,kBAAkB"}
1
+ {"version":3,"file":"areThemesEqual.d.ts","names":["DiffsThemeNames","ThemesType","areThemesEqual"],"sources":["../../src/utils/areThemesEqual.d.ts"],"sourcesContent":["import type { DiffsThemeNames, ThemesType } from '../types';\nexport declare function areThemesEqual(themeA: DiffsThemeNames | ThemesType | undefined, themeB: DiffsThemeNames | ThemesType | undefined): boolean;\n//# sourceMappingURL=areThemesEqual.d.ts.map"],"mappings":";;;iBACwBE,cAAAA,SAAuBF,kBAAkBC,gCAAgCD,kBAAkBC"}
@@ -1 +1 @@
1
- {"version":3,"file":"areVirtualWindowSpecsEqual.d.ts","names":[],"sources":["../../src/utils/areVirtualWindowSpecsEqual.ts"],"sourcesContent":[],"mappings":";;;iBAEgB,0BAAA,eACA,8CACA"}
1
+ {"version":3,"file":"areVirtualWindowSpecsEqual.d.ts","names":["VirtualWindowSpecs","areVirtualWindowSpecsEqual"],"sources":["../../src/utils/areVirtualWindowSpecsEqual.d.ts"],"sourcesContent":["import type { VirtualWindowSpecs } from '../types';\nexport declare function areVirtualWindowSpecsEqual(windowSpecsA: VirtualWindowSpecs | undefined, windowSpecsB: VirtualWindowSpecs | undefined): boolean;\n//# sourceMappingURL=areVirtualWindowSpecsEqual.d.ts.map"],"mappings":";;;iBACwBC,0BAAAA,eAAyCD,8CAA8CA"}
@@ -1 +1 @@
1
- {"version":3,"file":"areWorkerStatsEqual.d.ts","names":[],"sources":["../../src/utils/areWorkerStatsEqual.ts"],"sourcesContent":[],"mappings":";;;;iBAEgB,mBAAA,SACN,iCACA"}
1
+ {"version":3,"file":"areWorkerStatsEqual.d.ts","names":["WorkerStats","areWorkerStatsEqual"],"sources":["../../src/utils/areWorkerStatsEqual.d.ts"],"sourcesContent":["import type { WorkerStats } from '../worker';\nexport declare function areWorkerStatsEqual(statsA: WorkerStats | undefined, statsB: WorkerStats | undefined): boolean;\n//# sourceMappingURL=areWorkerStatsEqual.d.ts.map"],"mappings":";;;;iBACwBC,mBAAAA,SAA4BD,iCAAiCA"}
@@ -1 +1 @@
1
- {"version":3,"file":"cleanLastNewline.d.ts","names":[],"sources":["../../src/utils/cleanLastNewline.ts"],"sourcesContent":[],"mappings":";iBAAgB,gBAAA"}
1
+ {"version":3,"file":"cleanLastNewline.d.ts","names":["cleanLastNewline"],"sources":["../../src/utils/cleanLastNewline.d.ts"],"sourcesContent":["export declare function cleanLastNewline(contents: string): string;\n//# sourceMappingURL=cleanLastNewline.d.ts.map"],"mappings":";iBAAwBA,gBAAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"createAnnotationElement.d.ts","names":[],"sources":["../../src/utils/createAnnotationElement.ts"],"sourcesContent":[],"mappings":";;;;iBAKgB,uBAAA,OAA8B,iBAAiB"}
1
+ {"version":3,"file":"createAnnotationElement.d.ts","names":["Element","HASTElement","AnnotationSpan","createAnnotationElement"],"sources":["../../src/utils/createAnnotationElement.d.ts"],"sourcesContent":["import type { Element as HASTElement } from 'hast';\nimport type { AnnotationSpan } from '../types';\nexport declare function createAnnotationElement(span: AnnotationSpan): HASTElement;\n//# sourceMappingURL=createAnnotationElement.d.ts.map"],"mappings":";;;;iBAEwBG,uBAAAA,OAA8BD,iBAAiBD"}
@@ -1 +1 @@
1
- {"version":3,"file":"createAnnotationWrapperNode.d.ts","names":[],"sources":["../../src/utils/createAnnotationWrapperNode.ts"],"sourcesContent":[],"mappings":";iBAAgB,2BAAA,gBAA2C"}
1
+ {"version":3,"file":"createAnnotationWrapperNode.d.ts","names":["createAnnotationWrapperNode","HTMLElement"],"sources":["../../src/utils/createAnnotationWrapperNode.d.ts"],"sourcesContent":["export declare function createAnnotationWrapperNode(slot: string): HTMLElement;\n//# sourceMappingURL=createAnnotationWrapperNode.d.ts.map"],"mappings":";iBAAwBA,2BAAAA,gBAA2CC"}
@@ -0,0 +1,7 @@
1
+ import { Element, ElementContent } from "hast";
2
+
3
+ //#region src/utils/createContentColumn.d.ts
4
+ declare function createContentColumn(children: ElementContent[], rowCount: number): Element;
5
+ //#endregion
6
+ export { createContentColumn };
7
+ //# sourceMappingURL=createContentColumn.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createContentColumn.d.ts","names":["ElementContent","Element","HASTElement","createContentColumn"],"sources":["../../src/utils/createContentColumn.d.ts"],"sourcesContent":["import type { ElementContent, Element as HASTElement } from 'hast';\nexport declare function createContentColumn(children: ElementContent[], rowCount: number): HASTElement;\n//# sourceMappingURL=createContentColumn.d.ts.map"],"mappings":";;;iBACwBG,mBAAAA,WAA8BH,qCAAqCE"}
@@ -0,0 +1,17 @@
1
+ import { createHastElement } from "./hast_utils.js";
2
+
3
+ //#region src/utils/createContentColumn.ts
4
+ function createContentColumn(children, rowCount) {
5
+ return createHastElement({
6
+ tagName: "div",
7
+ children,
8
+ properties: {
9
+ "data-content": "",
10
+ style: `grid-row: span ${rowCount}`
11
+ }
12
+ });
13
+ }
14
+
15
+ //#endregion
16
+ export { createContentColumn };
17
+ //# sourceMappingURL=createContentColumn.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createContentColumn.js","names":[],"sources":["../../src/utils/createContentColumn.ts"],"sourcesContent":["import type { ElementContent, Element as HASTElement } from 'hast';\n\nimport { createHastElement } from './hast_utils';\n\nexport function createContentColumn(\n children: ElementContent[],\n rowCount: number\n): HASTElement {\n return createHastElement({\n tagName: 'div',\n children,\n properties: {\n 'data-content': '',\n style: `grid-row: span ${rowCount}`,\n },\n });\n}\n"],"mappings":";;;AAIA,SAAgB,oBACd,UACA,UACa;AACb,QAAO,kBAAkB;EACvB,SAAS;EACT;EACA,YAAY;GACV,gBAAgB;GAChB,OAAO,kBAAkB;GAC1B;EACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"createEmptyRowBuffer.d.ts","names":[],"sources":["../../src/utils/createEmptyRowBuffer.ts"],"sourcesContent":[],"mappings":";;;iBAIgB,oBAAA,gBAAoC"}
1
+ {"version":3,"file":"createEmptyRowBuffer.d.ts","names":["Element","HASTElement","createEmptyRowBuffer"],"sources":["../../src/utils/createEmptyRowBuffer.d.ts"],"sourcesContent":["import type { Element as HASTElement } from 'hast';\nexport declare function createEmptyRowBuffer(size: number): HASTElement;\n//# sourceMappingURL=createEmptyRowBuffer.d.ts.map"],"mappings":";;;iBACwBE,oBAAAA,gBAAoCD"}
@@ -5,7 +5,8 @@ function createEmptyRowBuffer(size) {
5
5
  return createHastElement({
6
6
  tagName: "div",
7
7
  properties: {
8
- "data-buffer": "",
8
+ "data-content-buffer": "",
9
+ "data-buffer-size": size,
9
10
  style: `grid-row: span ${size};min-height:calc(${size} * 1lh)`
10
11
  }
11
12
  });
@@ -1 +1 @@
1
- {"version":3,"file":"createEmptyRowBuffer.js","names":[],"sources":["../../src/utils/createEmptyRowBuffer.ts"],"sourcesContent":["import type { Element as HASTElement } from 'hast';\n\nimport { createHastElement } from './hast_utils';\n\nexport function createEmptyRowBuffer(size: number): HASTElement {\n return createHastElement({\n tagName: 'div',\n properties: {\n 'data-buffer': '',\n style: `grid-row: span ${size};min-height:calc(${size} * 1lh)`,\n },\n });\n}\n"],"mappings":";;;AAIA,SAAgB,qBAAqB,MAA2B;AAC9D,QAAO,kBAAkB;EACvB,SAAS;EACT,YAAY;GACV,eAAe;GACf,OAAO,kBAAkB,KAAK,mBAAmB,KAAK;GACvD;EACF,CAAC"}
1
+ {"version":3,"file":"createEmptyRowBuffer.js","names":[],"sources":["../../src/utils/createEmptyRowBuffer.ts"],"sourcesContent":["import type { Element as HASTElement } from 'hast';\n\nimport { createHastElement } from './hast_utils';\n\nexport function createEmptyRowBuffer(size: number): HASTElement {\n return createHastElement({\n tagName: 'div',\n properties: {\n 'data-content-buffer': '',\n 'data-buffer-size': size,\n style: `grid-row: span ${size};min-height:calc(${size} * 1lh)`,\n },\n });\n}\n"],"mappings":";;;AAIA,SAAgB,qBAAqB,MAA2B;AAC9D,QAAO,kBAAkB;EACvB,SAAS;EACT,YAAY;GACV,uBAAuB;GACvB,oBAAoB;GACpB,OAAO,kBAAkB,KAAK,mBAAmB,KAAK;GACvD;EACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"createFileHeaderElement.d.ts","names":[],"sources":["../../src/utils/createFileHeaderElement.ts"],"sourcesContent":[],"mappings":";;;;UAgBiB,4BAAA;cACH,mBAAmB;EADjC,WAAiB,EAAA,MAAA;EACH,SAAA,EAED,UAFC;;AAED,iBAGG,uBAAA,CAHH;EAAA,UAAA;EAAA,WAAA;EAAA;AAAA,CAAA,EAOV,4BAPU,CAAA,EAOqB,OAPrB"}
1
+ {"version":3,"file":"createFileHeaderElement.d.ts","names":["Element","HASTElement","FileContents","FileDiffMetadata","ThemeTypes","CreateFileHeaderElementProps","createFileHeaderElement","fileOrDiff","themeStyles","themeType"],"sources":["../../src/utils/createFileHeaderElement.d.ts"],"sourcesContent":["import type { Element as HASTElement } from 'hast';\nimport type { FileContents, FileDiffMetadata, ThemeTypes } from '../types';\nexport interface CreateFileHeaderElementProps {\n fileOrDiff: FileDiffMetadata | FileContents;\n themeStyles: string;\n themeType: ThemeTypes;\n}\nexport declare function createFileHeaderElement({ fileOrDiff, themeStyles, themeType }: CreateFileHeaderElementProps): HASTElement;\n//# sourceMappingURL=createFileHeaderElement.d.ts.map"],"mappings":";;;;UAEiBK,4BAAAA;cACDF,mBAAmBD;EADlBG,WAAAA,EAAAA,MAAAA;EACDF,SAAAA,EAEDC,UAFCD;;AAEDC,iBAESE,uBAAAA,CAFTF;EAAAA,UAAAA;EAAAA,WAAAA;EAAAA;AAAAA,CAAAA,EAEyEC,4BAFzED,CAAAA,EAEwGH,OAFxGG"}
@@ -1 +1 @@
1
- {"version":3,"file":"createHoverContentNode.d.ts","names":[],"sources":["../../src/utils/createHoverContentNode.ts"],"sourcesContent":[],"mappings":";iBAAgB,sBAAA,CAAA,GAA0B"}
1
+ {"version":3,"file":"createHoverContentNode.d.ts","names":["createHoverContentNode","HTMLElement"],"sources":["../../src/utils/createHoverContentNode.d.ts"],"sourcesContent":["export declare function createHoverContentNode(): HTMLElement;\n//# sourceMappingURL=createHoverContentNode.d.ts.map"],"mappings":";iBAAwBA,sBAAAA,CAAAA,GAA0BC"}
@@ -1,7 +1,8 @@
1
+ import { LineTypes } from "../types.js";
1
2
  import { Element } from "hast";
2
3
 
3
4
  //#region src/utils/createNoNewlineElement.d.ts
4
- declare function createNoNewlineElement(type: "context" | "change-addition" | "change-deletion"): Element;
5
+ declare function createNoNewlineElement(type: LineTypes): Element;
5
6
  //#endregion
6
7
  export { createNoNewlineElement };
7
8
  //# sourceMappingURL=createNoNewlineElement.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createNoNewlineElement.d.ts","names":[],"sources":["../../src/utils/createNoNewlineElement.ts"],"sourcesContent":[],"mappings":";;;iBAIgB,sBAAA,2DAEb"}
1
+ {"version":3,"file":"createNoNewlineElement.d.ts","names":["Element","HASTElement","LineTypes","createNoNewlineElement"],"sources":["../../src/utils/createNoNewlineElement.d.ts"],"sourcesContent":["import type { Element as HASTElement } from 'hast';\nimport type { LineTypes } from '../types';\nexport declare function createNoNewlineElement(type: LineTypes): HASTElement;\n//# sourceMappingURL=createNoNewlineElement.d.ts.map"],"mappings":";;;;iBAEwBG,sBAAAA,OAA6BD,YAAYD"}
@@ -6,15 +6,12 @@ function createNoNewlineElement(type) {
6
6
  tagName: "div",
7
7
  children: [createHastElement({
8
8
  tagName: "span",
9
- properties: { "data-column-number": "" }
10
- }), createHastElement({
11
- tagName: "span",
12
- children: [createTextNodeElement("No newline at end of file")],
13
- properties: { "data-column-content": "" }
9
+ children: [createTextNodeElement("No newline at end of file")]
14
10
  })],
15
11
  properties: {
16
12
  "data-no-newline": "",
17
- "data-line-type": type
13
+ "data-line-type": type,
14
+ "data-column-content": ""
18
15
  }
19
16
  });
20
17
  }
@@ -1 +1 @@
1
- {"version":3,"file":"createNoNewlineElement.js","names":[],"sources":["../../src/utils/createNoNewlineElement.ts"],"sourcesContent":["import type { Element as HASTElement } from 'hast';\n\nimport { createHastElement, createTextNodeElement } from './hast_utils';\n\nexport function createNoNewlineElement(\n type: 'context' | 'change-addition' | 'change-deletion'\n): HASTElement {\n return createHastElement({\n tagName: 'div',\n children: [\n createHastElement({\n tagName: 'span',\n properties: { 'data-column-number': '' },\n }),\n createHastElement({\n tagName: 'span',\n children: [createTextNodeElement('No newline at end of file')],\n properties: { 'data-column-content': '' },\n }),\n ],\n properties: { 'data-no-newline': '', 'data-line-type': type },\n });\n}\n"],"mappings":";;;AAIA,SAAgB,uBACd,MACa;AACb,QAAO,kBAAkB;EACvB,SAAS;EACT,UAAU,CACR,kBAAkB;GAChB,SAAS;GACT,YAAY,EAAE,sBAAsB,IAAI;GACzC,CAAC,EACF,kBAAkB;GAChB,SAAS;GACT,UAAU,CAAC,sBAAsB,4BAA4B,CAAC;GAC9D,YAAY,EAAE,uBAAuB,IAAI;GAC1C,CAAC,CACH;EACD,YAAY;GAAE,mBAAmB;GAAI,kBAAkB;GAAM;EAC9D,CAAC"}
1
+ {"version":3,"file":"createNoNewlineElement.js","names":[],"sources":["../../src/utils/createNoNewlineElement.ts"],"sourcesContent":["import type { Element as HASTElement } from 'hast';\n\nimport type { LineTypes } from '../types';\nimport { createHastElement, createTextNodeElement } from './hast_utils';\n\nexport function createNoNewlineElement(type: LineTypes): HASTElement {\n return createHastElement({\n tagName: 'div',\n children: [\n createHastElement({\n tagName: 'span',\n children: [createTextNodeElement('No newline at end of file')],\n }),\n ],\n properties: {\n 'data-no-newline': '',\n 'data-line-type': type,\n 'data-column-content': '',\n },\n });\n}\n"],"mappings":";;;AAKA,SAAgB,uBAAuB,MAA8B;AACnE,QAAO,kBAAkB;EACvB,SAAS;EACT,UAAU,CACR,kBAAkB;GAChB,SAAS;GACT,UAAU,CAAC,sBAAsB,4BAA4B,CAAC;GAC/D,CAAC,CACH;EACD,YAAY;GACV,mBAAmB;GACnB,kBAAkB;GAClB,uBAAuB;GACxB;EACF,CAAC"}
@@ -11,7 +11,8 @@ declare function createPreWrapperProperties({
11
11
  split,
12
12
  themeType,
13
13
  themeStyles,
14
- totalLines
14
+ totalLines,
15
+ type
15
16
  }: PrePropertiesConfig): Properties;
16
17
  //#endregion
17
18
  export { createPreElement, createPreWrapperProperties };
@@ -1 +1 @@
1
- {"version":3,"file":"createPreElement.d.ts","names":[],"sources":["../../src/utils/createPreElement.ts"],"sourcesContent":[],"mappings":";;;;iBAKgB,gBAAA,UAA0B,sBAAsB;iBAOhD,0BAAA;;;;;;;;;GASb,sBAAsB"}
1
+ {"version":3,"file":"createPreElement.d.ts","names":["Element","HASTElement","Properties","PrePropertiesConfig","createPreElement","createPreWrapperProperties","diffIndicators","disableBackground","disableLineNumbers","overflow","split","themeType","themeStyles","totalLines","type"],"sources":["../../src/utils/createPreElement.d.ts"],"sourcesContent":["import type { Element as HASTElement, Properties } from 'hast';\nimport type { PrePropertiesConfig } from '../types';\nexport declare function createPreElement(options: PrePropertiesConfig): HASTElement;\nexport declare function createPreWrapperProperties({ diffIndicators, disableBackground, disableLineNumbers, overflow, split, themeType, themeStyles, totalLines, type }: PrePropertiesConfig): Properties;\n//# sourceMappingURL=createPreElement.d.ts.map"],"mappings":";;;;iBAEwBI,gBAAAA,UAA0BD,sBAAsBF;iBAChDI,0BAAAA;;;;;;;;;;GAAiJF,sBAAsBD"}
@@ -7,10 +7,11 @@ function createPreElement(options) {
7
7
  properties: createPreWrapperProperties(options)
8
8
  });
9
9
  }
10
- function createPreWrapperProperties({ diffIndicators, disableBackground, disableLineNumbers, overflow, split, themeType, themeStyles, totalLines }) {
10
+ function createPreWrapperProperties({ diffIndicators, disableBackground, disableLineNumbers, overflow, split, themeType, themeStyles, totalLines, type }) {
11
11
  const properties = {
12
- "data-diffs": "",
13
- "data-type": split ? "split" : "file",
12
+ "data-diff": type === "diff" ? "" : void 0,
13
+ "data-file": type === "file" ? "" : void 0,
14
+ "data-diff-type": type === "diff" ? split ? "split" : "single" : void 0,
14
15
  "data-overflow": overflow,
15
16
  "data-disable-line-numbers": disableLineNumbers ? "" : void 0,
16
17
  "data-background": !disableBackground ? "" : void 0,
@@ -1 +1 @@
1
- {"version":3,"file":"createPreElement.js","names":["properties: Properties"],"sources":["../../src/utils/createPreElement.ts"],"sourcesContent":["import type { Element as HASTElement, Properties } from 'hast';\n\nimport type { PrePropertiesConfig } from '../types';\nimport { createHastElement } from './hast_utils';\n\nexport function createPreElement(options: PrePropertiesConfig): HASTElement {\n return createHastElement({\n tagName: 'pre',\n properties: createPreWrapperProperties(options),\n });\n}\n\nexport function createPreWrapperProperties({\n diffIndicators,\n disableBackground,\n disableLineNumbers,\n overflow,\n split,\n themeType,\n themeStyles,\n totalLines,\n}: PrePropertiesConfig): Properties {\n const properties: Properties = {\n 'data-diffs': '',\n 'data-type': split ? 'split' : 'file',\n 'data-overflow': overflow,\n 'data-disable-line-numbers': disableLineNumbers ? '' : undefined,\n 'data-background': !disableBackground ? '' : undefined,\n 'data-indicators':\n diffIndicators === 'bars' || diffIndicators === 'classic'\n ? diffIndicators\n : undefined,\n 'data-theme-type': themeType !== 'system' ? themeType : undefined,\n // NOTE(amadeus): Alex, here we would probably set a class property\n // instead, when that's working and supported\n style: themeStyles,\n tabIndex: 0,\n };\n properties.style += `--diffs-min-number-column-width-default:${`${totalLines}`.length}ch;`;\n\n return properties;\n}\n"],"mappings":";;;AAKA,SAAgB,iBAAiB,SAA2C;AAC1E,QAAO,kBAAkB;EACvB,SAAS;EACT,YAAY,2BAA2B,QAAQ;EAChD,CAAC;;AAGJ,SAAgB,2BAA2B,EACzC,gBACA,mBACA,oBACA,UACA,OACA,WACA,aACA,cACkC;CAClC,MAAMA,aAAyB;EAC7B,cAAc;EACd,aAAa,QAAQ,UAAU;EAC/B,iBAAiB;EACjB,6BAA6B,qBAAqB,KAAK;EACvD,mBAAmB,CAAC,oBAAoB,KAAK;EAC7C,mBACE,mBAAmB,UAAU,mBAAmB,YAC5C,iBACA;EACN,mBAAmB,cAAc,WAAW,YAAY;EAGxD,OAAO;EACP,UAAU;EACX;AACD,YAAW,SAAS,2CAA2C,GAAG,aAAa,OAAO;AAEtF,QAAO"}
1
+ {"version":3,"file":"createPreElement.js","names":["properties: Properties"],"sources":["../../src/utils/createPreElement.ts"],"sourcesContent":["import type { Element as HASTElement, Properties } from 'hast';\n\nimport type { PrePropertiesConfig } from '../types';\nimport { createHastElement } from './hast_utils';\n\nexport function createPreElement(options: PrePropertiesConfig): HASTElement {\n return createHastElement({\n tagName: 'pre',\n properties: createPreWrapperProperties(options),\n });\n}\n\nexport function createPreWrapperProperties({\n diffIndicators,\n disableBackground,\n disableLineNumbers,\n overflow,\n split,\n themeType,\n themeStyles,\n totalLines,\n type,\n}: PrePropertiesConfig): Properties {\n const properties: Properties = {\n 'data-diff': type === 'diff' ? '' : undefined,\n 'data-file': type === 'file' ? '' : undefined,\n 'data-diff-type':\n type === 'diff' ? (split ? 'split' : 'single') : undefined,\n 'data-overflow': overflow,\n 'data-disable-line-numbers': disableLineNumbers ? '' : undefined,\n 'data-background': !disableBackground ? '' : undefined,\n 'data-indicators':\n diffIndicators === 'bars' || diffIndicators === 'classic'\n ? diffIndicators\n : undefined,\n 'data-theme-type': themeType !== 'system' ? themeType : undefined,\n // NOTE(amadeus): Alex, here we would probably set a class property\n // instead, when that's working and supported\n style: themeStyles,\n tabIndex: 0,\n };\n properties.style += `--diffs-min-number-column-width-default:${`${totalLines}`.length}ch;`;\n\n return properties;\n}\n"],"mappings":";;;AAKA,SAAgB,iBAAiB,SAA2C;AAC1E,QAAO,kBAAkB;EACvB,SAAS;EACT,YAAY,2BAA2B,QAAQ;EAChD,CAAC;;AAGJ,SAAgB,2BAA2B,EACzC,gBACA,mBACA,oBACA,UACA,OACA,WACA,aACA,YACA,QACkC;CAClC,MAAMA,aAAyB;EAC7B,aAAa,SAAS,SAAS,KAAK;EACpC,aAAa,SAAS,SAAS,KAAK;EACpC,kBACE,SAAS,SAAU,QAAQ,UAAU,WAAY;EACnD,iBAAiB;EACjB,6BAA6B,qBAAqB,KAAK;EACvD,mBAAmB,CAAC,oBAAoB,KAAK;EAC7C,mBACE,mBAAmB,UAAU,mBAAmB,YAC5C,iBACA;EACN,mBAAmB,cAAc,WAAW,YAAY;EAGxD,OAAO;EACP,UAAU;EACX;AACD,YAAW,SAAS,2CAA2C,GAAG,aAAa,OAAO;AAEtF,QAAO"}
@@ -1 +1 @@
1
- {"version":3,"file":"createRowNodes.d.ts","names":[],"sources":["../../src/utils/createRowNodes.ts"],"sourcesContent":[],"mappings":";iBAAgB,cAAA;EAAhB,GAAgB,EACT,WADS;WAEL"}
1
+ {"version":3,"file":"createRowNodes.d.ts","names":["createRowNodes","HTMLElement"],"sources":["../../src/utils/createRowNodes.d.ts"],"sourcesContent":["export declare function createRowNodes(line: number): {\n row: HTMLElement;\n content: HTMLElement;\n};\n//# sourceMappingURL=createRowNodes.d.ts.map"],"mappings":";iBAAwBA,cAAAA;EAAAA,GAAAA,EACfC,WADeD;WAEXC"}
@@ -1 +1 @@
1
- {"version":3,"file":"createSeparator.d.ts","names":[],"sources":["../../src/utils/createSeparator.ts"],"sourcesContent":[],"mappings":";;;;UASU,oBAAA;QACF;EARiD,OAO/C,CAAA,EAAA,MAAA;EA4BV,WAAgB,CAAA,EAAA,MAAA;EACd,OAAA,CAAA,EAAA,OAAA;EACA,QAAA,CAAA,EAAA,MAAA;EACA,WAAA,EAAA,OAAA;EACA,UAAA,EAAA,OAAA;;AAEA,iBANc,eAAA,CAMd;EAAA,IAAA;EAAA,OAAA;EAAA,WAAA;EAAA,OAAA;EAAA,QAAA;EAAA,WAAA;EAAA;AAAA,CAAA,EAEC,oBAFD,CAAA,EAEwB,OAFxB"}
1
+ {"version":3,"file":"createSeparator.d.ts","names":["Element","HASTElement","HunkSeparators","CreateSeparatorProps","createSeparator","type","content","expandIndex","chunked","slotName","isFirstHunk","isLastHunk"],"sources":["../../src/utils/createSeparator.d.ts"],"sourcesContent":["import type { Element as HASTElement } from 'hast';\nimport type { HunkSeparators } from '../types';\ninterface CreateSeparatorProps {\n type: HunkSeparators;\n content?: string;\n expandIndex?: number;\n chunked?: boolean;\n slotName?: string;\n isFirstHunk: boolean;\n isLastHunk: boolean;\n}\nexport declare function createSeparator({ type, content, expandIndex, chunked, slotName, isFirstHunk, isLastHunk }: CreateSeparatorProps): HASTElement;\nexport {};\n//# sourceMappingURL=createSeparator.d.ts.map"],"mappings":";;;;UAEUG,oBAAAA;QACAD;EADAC,OAAAA,CAAAA,EAAAA,MAAAA;EAScC,WAAAA,CAAAA,EAAAA,MAAe;EAAGC,OAAAA,CAAAA,EAAAA,OAAAA;EAAMC,QAAAA,CAAAA,EAAAA,MAAAA;EAASC,WAAAA,EAAAA,OAAAA;EAAaC,UAAAA,EAAAA,OAAAA;;AAAmBE,iBAAjEN,eAAAA,CAAiEM;EAAAA,IAAAA;EAAAA,OAAAA;EAAAA,WAAAA;EAAAA,OAAAA;EAAAA,QAAAA;EAAAA,WAAAA;EAAAA;AAAAA,CAAAA,EAA2BP,oBAA3BO,CAAAA,EAAkDT,OAAlDS"}
@@ -56,7 +56,7 @@ function createSeparator({ type, content, expandIndex, chunked = false, slotName
56
56
  tagName: "div",
57
57
  children,
58
58
  properties: {
59
- "data-separator": children.length === 0 ? "" : type,
59
+ "data-separator": children.length === 0 ? "simple" : type,
60
60
  "data-expand-index": expandIndex,
61
61
  "data-separator-first": isFirstHunk ? "" : void 0,
62
62
  "data-separator-last": isLastHunk ? "" : void 0
@@ -1 +1 @@
1
- {"version":3,"file":"createSeparator.js","names":["contentChildren: ElementContent[]"],"sources":["../../src/utils/createSeparator.ts"],"sourcesContent":["import type { ElementContent, Element as HASTElement } from 'hast';\n\nimport type { ExpansionDirections, HunkSeparators } from '../types';\nimport {\n createHastElement,\n createIconElement,\n createTextNodeElement,\n} from './hast_utils';\n\ninterface CreateSeparatorProps {\n type: HunkSeparators;\n content?: string;\n expandIndex?: number;\n chunked?: boolean;\n slotName?: string;\n isFirstHunk: boolean;\n isLastHunk: boolean;\n}\n\nfunction createExpandButton(type: ExpansionDirections) {\n return createHastElement({\n tagName: 'div',\n children: [\n createIconElement({\n name: type === 'both' ? 'diffs-icon-expand-all' : 'diffs-icon-expand',\n properties: { 'data-icon': '' },\n }),\n ],\n properties: {\n 'data-expand-button': '',\n 'data-expand-both': type === 'both' ? '' : undefined,\n 'data-expand-up': type === 'up' ? '' : undefined,\n 'data-expand-down': type === 'down' ? '' : undefined,\n },\n });\n}\n\nexport function createSeparator({\n type,\n content,\n expandIndex,\n chunked = false,\n slotName,\n isFirstHunk,\n isLastHunk,\n}: CreateSeparatorProps): HASTElement {\n const children = [];\n if (type === 'metadata' && content != null) {\n children.push(\n createHastElement({\n tagName: 'div',\n children: [createTextNodeElement(content)],\n properties: { 'data-separator-wrapper': '' },\n })\n );\n }\n if (type === 'line-info' && content != null) {\n const contentChildren: ElementContent[] = [];\n if (expandIndex != null) {\n if (!chunked) {\n contentChildren.push(\n createExpandButton(\n !isFirstHunk && !isLastHunk ? 'both' : isFirstHunk ? 'down' : 'up'\n )\n );\n } else {\n if (!isFirstHunk) {\n contentChildren.push(createExpandButton('up'));\n }\n if (!isLastHunk) {\n contentChildren.push(createExpandButton('down'));\n }\n }\n }\n contentChildren.push(\n createHastElement({\n tagName: 'div',\n children: [\n createHastElement({\n tagName: 'span',\n children: [createTextNodeElement(content)],\n properties: { 'data-unmodified-lines': '' },\n }),\n ],\n properties: { 'data-separator-content': '' },\n })\n );\n children.push(\n createHastElement({\n tagName: 'div',\n children: contentChildren,\n properties: {\n 'data-separator-wrapper': '',\n 'data-separator-multi-button':\n contentChildren.length > 2 ? '' : undefined,\n },\n })\n );\n }\n if (type === 'custom' && slotName != null) {\n children.push(\n createHastElement({\n tagName: 'slot',\n properties: { name: slotName },\n })\n );\n }\n return createHastElement({\n tagName: 'div',\n children,\n properties: {\n 'data-separator': children.length === 0 ? '' : type,\n 'data-expand-index': expandIndex,\n 'data-separator-first': isFirstHunk ? '' : undefined,\n 'data-separator-last': isLastHunk ? '' : undefined,\n },\n });\n}\n"],"mappings":";;;AAmBA,SAAS,mBAAmB,MAA2B;AACrD,QAAO,kBAAkB;EACvB,SAAS;EACT,UAAU,CACR,kBAAkB;GAChB,MAAM,SAAS,SAAS,0BAA0B;GAClD,YAAY,EAAE,aAAa,IAAI;GAChC,CAAC,CACH;EACD,YAAY;GACV,sBAAsB;GACtB,oBAAoB,SAAS,SAAS,KAAK;GAC3C,kBAAkB,SAAS,OAAO,KAAK;GACvC,oBAAoB,SAAS,SAAS,KAAK;GAC5C;EACF,CAAC;;AAGJ,SAAgB,gBAAgB,EAC9B,MACA,SACA,aACA,UAAU,OACV,UACA,aACA,cACoC;CACpC,MAAM,WAAW,EAAE;AACnB,KAAI,SAAS,cAAc,WAAW,KACpC,UAAS,KACP,kBAAkB;EAChB,SAAS;EACT,UAAU,CAAC,sBAAsB,QAAQ,CAAC;EAC1C,YAAY,EAAE,0BAA0B,IAAI;EAC7C,CAAC,CACH;AAEH,KAAI,SAAS,eAAe,WAAW,MAAM;EAC3C,MAAMA,kBAAoC,EAAE;AAC5C,MAAI,eAAe,KACjB,KAAI,CAAC,QACH,iBAAgB,KACd,mBACE,CAAC,eAAe,CAAC,aAAa,SAAS,cAAc,SAAS,KAC/D,CACF;OACI;AACL,OAAI,CAAC,YACH,iBAAgB,KAAK,mBAAmB,KAAK,CAAC;AAEhD,OAAI,CAAC,WACH,iBAAgB,KAAK,mBAAmB,OAAO,CAAC;;AAItD,kBAAgB,KACd,kBAAkB;GAChB,SAAS;GACT,UAAU,CACR,kBAAkB;IAChB,SAAS;IACT,UAAU,CAAC,sBAAsB,QAAQ,CAAC;IAC1C,YAAY,EAAE,yBAAyB,IAAI;IAC5C,CAAC,CACH;GACD,YAAY,EAAE,0BAA0B,IAAI;GAC7C,CAAC,CACH;AACD,WAAS,KACP,kBAAkB;GAChB,SAAS;GACT,UAAU;GACV,YAAY;IACV,0BAA0B;IAC1B,+BACE,gBAAgB,SAAS,IAAI,KAAK;IACrC;GACF,CAAC,CACH;;AAEH,KAAI,SAAS,YAAY,YAAY,KACnC,UAAS,KACP,kBAAkB;EAChB,SAAS;EACT,YAAY,EAAE,MAAM,UAAU;EAC/B,CAAC,CACH;AAEH,QAAO,kBAAkB;EACvB,SAAS;EACT;EACA,YAAY;GACV,kBAAkB,SAAS,WAAW,IAAI,KAAK;GAC/C,qBAAqB;GACrB,wBAAwB,cAAc,KAAK;GAC3C,uBAAuB,aAAa,KAAK;GAC1C;EACF,CAAC"}
1
+ {"version":3,"file":"createSeparator.js","names":["contentChildren: ElementContent[]"],"sources":["../../src/utils/createSeparator.ts"],"sourcesContent":["import type { ElementContent, Element as HASTElement } from 'hast';\n\nimport type { ExpansionDirections, HunkSeparators } from '../types';\nimport {\n createHastElement,\n createIconElement,\n createTextNodeElement,\n} from './hast_utils';\n\ninterface CreateSeparatorProps {\n type: HunkSeparators;\n content?: string;\n expandIndex?: number;\n chunked?: boolean;\n slotName?: string;\n isFirstHunk: boolean;\n isLastHunk: boolean;\n}\n\nfunction createExpandButton(type: ExpansionDirections) {\n return createHastElement({\n tagName: 'div',\n children: [\n createIconElement({\n name: type === 'both' ? 'diffs-icon-expand-all' : 'diffs-icon-expand',\n properties: { 'data-icon': '' },\n }),\n ],\n properties: {\n 'data-expand-button': '',\n 'data-expand-both': type === 'both' ? '' : undefined,\n 'data-expand-up': type === 'up' ? '' : undefined,\n 'data-expand-down': type === 'down' ? '' : undefined,\n },\n });\n}\n\nexport function createSeparator({\n type,\n content,\n expandIndex,\n chunked = false,\n slotName,\n isFirstHunk,\n isLastHunk,\n}: CreateSeparatorProps): HASTElement {\n const children = [];\n if (type === 'metadata' && content != null) {\n children.push(\n createHastElement({\n tagName: 'div',\n children: [createTextNodeElement(content)],\n properties: { 'data-separator-wrapper': '' },\n })\n );\n }\n if (type === 'line-info' && content != null) {\n const contentChildren: ElementContent[] = [];\n if (expandIndex != null) {\n if (!chunked) {\n contentChildren.push(\n createExpandButton(\n !isFirstHunk && !isLastHunk ? 'both' : isFirstHunk ? 'down' : 'up'\n )\n );\n } else {\n if (!isFirstHunk) {\n contentChildren.push(createExpandButton('up'));\n }\n if (!isLastHunk) {\n contentChildren.push(createExpandButton('down'));\n }\n }\n }\n contentChildren.push(\n createHastElement({\n tagName: 'div',\n children: [\n createHastElement({\n tagName: 'span',\n children: [createTextNodeElement(content)],\n properties: { 'data-unmodified-lines': '' },\n }),\n ],\n properties: { 'data-separator-content': '' },\n })\n );\n children.push(\n createHastElement({\n tagName: 'div',\n children: contentChildren,\n properties: {\n 'data-separator-wrapper': '',\n 'data-separator-multi-button':\n contentChildren.length > 2 ? '' : undefined,\n },\n })\n );\n }\n if (type === 'custom' && slotName != null) {\n children.push(\n createHastElement({\n tagName: 'slot',\n properties: { name: slotName },\n })\n );\n }\n return createHastElement({\n tagName: 'div',\n children,\n properties: {\n 'data-separator': children.length === 0 ? 'simple' : type,\n 'data-expand-index': expandIndex,\n 'data-separator-first': isFirstHunk ? '' : undefined,\n 'data-separator-last': isLastHunk ? '' : undefined,\n },\n });\n}\n"],"mappings":";;;AAmBA,SAAS,mBAAmB,MAA2B;AACrD,QAAO,kBAAkB;EACvB,SAAS;EACT,UAAU,CACR,kBAAkB;GAChB,MAAM,SAAS,SAAS,0BAA0B;GAClD,YAAY,EAAE,aAAa,IAAI;GAChC,CAAC,CACH;EACD,YAAY;GACV,sBAAsB;GACtB,oBAAoB,SAAS,SAAS,KAAK;GAC3C,kBAAkB,SAAS,OAAO,KAAK;GACvC,oBAAoB,SAAS,SAAS,KAAK;GAC5C;EACF,CAAC;;AAGJ,SAAgB,gBAAgB,EAC9B,MACA,SACA,aACA,UAAU,OACV,UACA,aACA,cACoC;CACpC,MAAM,WAAW,EAAE;AACnB,KAAI,SAAS,cAAc,WAAW,KACpC,UAAS,KACP,kBAAkB;EAChB,SAAS;EACT,UAAU,CAAC,sBAAsB,QAAQ,CAAC;EAC1C,YAAY,EAAE,0BAA0B,IAAI;EAC7C,CAAC,CACH;AAEH,KAAI,SAAS,eAAe,WAAW,MAAM;EAC3C,MAAMA,kBAAoC,EAAE;AAC5C,MAAI,eAAe,KACjB,KAAI,CAAC,QACH,iBAAgB,KACd,mBACE,CAAC,eAAe,CAAC,aAAa,SAAS,cAAc,SAAS,KAC/D,CACF;OACI;AACL,OAAI,CAAC,YACH,iBAAgB,KAAK,mBAAmB,KAAK,CAAC;AAEhD,OAAI,CAAC,WACH,iBAAgB,KAAK,mBAAmB,OAAO,CAAC;;AAItD,kBAAgB,KACd,kBAAkB;GAChB,SAAS;GACT,UAAU,CACR,kBAAkB;IAChB,SAAS;IACT,UAAU,CAAC,sBAAsB,QAAQ,CAAC;IAC1C,YAAY,EAAE,yBAAyB,IAAI;IAC5C,CAAC,CACH;GACD,YAAY,EAAE,0BAA0B,IAAI;GAC7C,CAAC,CACH;AACD,WAAS,KACP,kBAAkB;GAChB,SAAS;GACT,UAAU;GACV,YAAY;IACV,0BAA0B;IAC1B,+BACE,gBAAgB,SAAS,IAAI,KAAK;IACrC;GACF,CAAC,CACH;;AAEH,KAAI,SAAS,YAAY,YAAY,KACnC,UAAS,KACP,kBAAkB;EAChB,SAAS;EACT,YAAY,EAAE,MAAM,UAAU;EAC/B,CAAC,CACH;AAEH,QAAO,kBAAkB;EACvB,SAAS;EACT;EACA,YAAY;GACV,kBAAkB,SAAS,WAAW,IAAI,WAAW;GACrD,qBAAqB;GACrB,wBAAwB,cAAc,KAAK;GAC3C,uBAAuB,aAAa,KAAK;GAC1C;EACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"createSpanNodeFromToken.d.ts","names":[],"sources":["../../src/utils/createSpanNodeFromToken.ts"],"sourcesContent":[],"mappings":";;;iBAMgB,mBAAA,QAA2B,cAAc"}
1
+ {"version":3,"file":"createSpanNodeFromToken.d.ts","names":["ThemedToken","createSpanFromToken","HTMLSpanElement"],"sources":["../../src/utils/createSpanNodeFromToken.d.ts"],"sourcesContent":["import { type ThemedToken } from 'shiki';\nexport declare function createSpanFromToken(token: ThemedToken): HTMLSpanElement;\n//# sourceMappingURL=createSpanNodeFromToken.d.ts.map"],"mappings":";;;iBACwBC,mBAAAA,QAA2BD,cAAcE"}
@@ -1 +1 @@
1
- {"version":3,"file":"createSpanNodeFromToken.js","names":[],"sources":["../../src/utils/createSpanNodeFromToken.ts"],"sourcesContent":["import {\n type ThemedToken,\n getTokenStyleObject,\n stringifyTokenStyle,\n} from 'shiki';\n\nexport function createSpanFromToken(token: ThemedToken): HTMLSpanElement {\n const element = document.createElement('span');\n const style = token.htmlStyle ?? getTokenStyleObject(token);\n element.style = stringifyTokenStyle(style);\n element.textContent = token.content;\n return element;\n}\n"],"mappings":";;;AAMA,SAAgB,oBAAoB,OAAqC;CACvE,MAAM,UAAU,SAAS,cAAc,OAAO;AAE9C,SAAQ,QAAQ,oBADF,MAAM,aAAa,oBAAoB,MAAM,CACjB;AAC1C,SAAQ,cAAc,MAAM;AAC5B,QAAO"}
1
+ {"version":3,"file":"createSpanNodeFromToken.js","names":[],"sources":["../../src/utils/createSpanNodeFromToken.ts"],"sourcesContent":["import {\n getTokenStyleObject,\n stringifyTokenStyle,\n type ThemedToken,\n} from 'shiki';\n\nexport function createSpanFromToken(token: ThemedToken): HTMLSpanElement {\n const element = document.createElement('span');\n const style = token.htmlStyle ?? getTokenStyleObject(token);\n element.style = stringifyTokenStyle(style);\n element.textContent = token.content;\n return element;\n}\n"],"mappings":";;;AAMA,SAAgB,oBAAoB,OAAqC;CACvE,MAAM,UAAU,SAAS,cAAc,OAAO;AAE9C,SAAQ,QAAQ,oBADF,MAAM,aAAa,oBAAoB,MAAM,CACjB;AAC1C,SAAQ,cAAc,MAAM;AAC5B,QAAO"}
@@ -1 +1 @@
1
- {"version":3,"file":"createStyleElement.d.ts","names":[],"sources":["../../src/utils/createStyleElement.ts"],"sourcesContent":[],"mappings":";;;iBAMgB,kBAAA,wCAGb"}
1
+ {"version":3,"file":"createStyleElement.d.ts","names":["Element","HASTElement","createStyleElement"],"sources":["../../src/utils/createStyleElement.d.ts"],"sourcesContent":["import type { Element as HASTElement } from 'hast';\nexport declare function createStyleElement(content: string, isCoreCSS?: boolean): HASTElement;\n//# sourceMappingURL=createStyleElement.d.ts.map"],"mappings":";;;iBACwBE,kBAAAA,wCAA0DD"}
@@ -1 +1 @@
1
- {"version":3,"file":"createTransformerWithState.d.ts","names":[],"sources":["../../src/utils/createTransformerWithState.ts"],"sourcesContent":[],"mappings":";;;;UAUU,gCAAA;SACD;EALgD,YAI/C,EAEM,gBAFN,EAAA;EACD,OAAA,EAEE,4BAFF;;AAEE,iBAGK,0BAAA,CAHL,aAAA,CAAA,EAAA,OAAA,CAAA,EAKR,gCALQ"}
1
+ {"version":3,"file":"createTransformerWithState.d.ts","names":["ShikiTransformerStyleToClass","SharedRenderState","ShikiTransformer","CreateTransformerWithStateReturn","createTransformerWithState"],"sources":["../../src/utils/createTransformerWithState.d.ts"],"sourcesContent":["import { type ShikiTransformerStyleToClass } from '@shikijs/transformers';\nimport type { SharedRenderState, ShikiTransformer } from '../types';\ninterface CreateTransformerWithStateReturn {\n state: SharedRenderState;\n transformers: ShikiTransformer[];\n toClass: ShikiTransformerStyleToClass;\n}\nexport declare function createTransformerWithState(useCSSClasses?: boolean): CreateTransformerWithStateReturn;\nexport {};\n//# sourceMappingURL=createTransformerWithState.d.ts.map"],"mappings":";;;;UAEUG,gCAAAA;SACCF;EADDE,YAAAA,EAEQD,gBAFRC,EAAAA;EACCF,OAAAA,EAEED,4BAFFC;;AAEED,iBAEWI,0BAAAA,CAFXJ,aAAAA,CAAAA,EAAAA,OAAAA,CAAAA,EAEgEG,gCAFhEH"}
@@ -1 +1 @@
1
- {"version":3,"file":"createUnsafeCSSStyleNode.d.ts","names":[],"sources":["../../src/utils/createUnsafeCSSStyleNode.ts"],"sourcesContent":[],"mappings":";iBAEgB,wBAAA,CAAA,GAA4B"}
1
+ {"version":3,"file":"createUnsafeCSSStyleNode.d.ts","names":["createUnsafeCSSStyleNode","HTMLStyleElement"],"sources":["../../src/utils/createUnsafeCSSStyleNode.d.ts"],"sourcesContent":["export declare function createUnsafeCSSStyleNode(): HTMLStyleElement;\n//# sourceMappingURL=createUnsafeCSSStyleNode.d.ts.map"],"mappings":";iBAAwBA,wBAAAA,CAAAA,GAA4BC"}
@@ -1 +1 @@
1
- {"version":3,"file":"createWindowFromScrollPosition.d.ts","names":[],"sources":["../../src/utils/createWindowFromScrollPosition.ts"],"sourcesContent":[],"mappings":";;;UAEU,6BAAA;;EAF8B,MAE9B,EAAA,MAAA;EASV,YAAgB,EAAA,MAAA;EACd,eAAA,CAAA,EAAA,MAAA;EACA,YAAA,EAAA,OAAA;EACA,cAAA,EAAA,MAAA;;AAEA,iBALc,8BAAA,CAKd;EAAA,SAAA;EAAA,YAAA;EAAA,MAAA;EAAA,eAAA;EAAA,YAAA;EAAA;AAAA,CAAA,EAEC,6BAFD,CAAA,EAEiC,kBAFjC"}
1
+ {"version":3,"file":"createWindowFromScrollPosition.d.ts","names":["VirtualWindowSpecs","WindowFromScrollPositionProps","createWindowFromScrollPosition","scrollTop","scrollHeight","height","containerOffset","fitPerfectly","overscrollSize"],"sources":["../../src/utils/createWindowFromScrollPosition.d.ts"],"sourcesContent":["import type { VirtualWindowSpecs } from '../types';\ninterface WindowFromScrollPositionProps {\n scrollTop: number;\n height: number;\n scrollHeight: number;\n containerOffset?: number;\n fitPerfectly: boolean;\n overscrollSize: number;\n}\nexport declare function createWindowFromScrollPosition({ scrollTop, scrollHeight, height, containerOffset, fitPerfectly, overscrollSize }: WindowFromScrollPositionProps): VirtualWindowSpecs;\nexport {};\n//# sourceMappingURL=createWindowFromScrollPosition.d.ts.map"],"mappings":";;;UACUC,6BAAAA;;EAAAA,MAAAA,EAAAA,MAAAA;EAQcC,YAAAA,EAAAA,MAAAA;EAAiCC,eAAAA,CAAAA,EAAAA,MAAAA;EAAWC,YAAAA,EAAAA,OAAAA;EAAcC,cAAAA,EAAAA,MAAAA;;AAAyBE,iBAAnFL,8BAAAA,CAAmFK;EAAAA,SAAAA;EAAAA,YAAAA;EAAAA,MAAAA;EAAAA,eAAAA;EAAAA,YAAAA;EAAAA;AAAAA,CAAAA,EAAgCN,6BAAhCM,CAAAA,EAAgEP,kBAAhEO"}
@@ -1 +1 @@
1
- {"version":3,"file":"cssWrappers.d.ts","names":[],"sources":["../../src/utils/cssWrappers.ts"],"sourcesContent":[],"mappings":";iBAIgB,WAAA;AAAA,iBAQA,aAAA,CARA,SAAA,EAAA,MAAA,CAAA,EAAA,MAAA"}
1
+ {"version":3,"file":"cssWrappers.d.ts","names":["wrapCoreCSS","wrapUnsafeCSS"],"sources":["../../src/utils/cssWrappers.d.ts"],"sourcesContent":["export declare function wrapCoreCSS(mainCSS: string): string;\nexport declare function wrapUnsafeCSS(unsafeCSS: string): string;\n//# sourceMappingURL=cssWrappers.d.ts.map"],"mappings":";iBAAwBA,WAAAA;AAAAA,iBACAC,aAAAA,CADW,SAAA,EAAA,MAAA,CAAA,EAAA,MAAA"}
@@ -1,7 +1,7 @@
1
1
  import { FileDiffMetadata } from "../types.js";
2
2
 
3
3
  //#region src/utils/diffAcceptRejectHunk.d.ts
4
- declare function diffAcceptRejectHunk(diff: FileDiffMetadata, hunkIndex: number, type: "accept" | "reject"): FileDiffMetadata;
4
+ declare function diffAcceptRejectHunk(diff: FileDiffMetadata, hunkIndex: number, type: 'accept' | 'reject'): FileDiffMetadata;
5
5
  //#endregion
6
6
  export { diffAcceptRejectHunk };
7
7
  //# sourceMappingURL=diffAcceptRejectHunk.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"diffAcceptRejectHunk.d.ts","names":[],"sources":["../../src/utils/diffAcceptRejectHunk.ts"],"sourcesContent":[],"mappings":";;;iBAEgB,oBAAA,OACR,iEAGL"}
1
+ {"version":3,"file":"diffAcceptRejectHunk.d.ts","names":["FileDiffMetadata","diffAcceptRejectHunk"],"sources":["../../src/utils/diffAcceptRejectHunk.d.ts"],"sourcesContent":["import type { FileDiffMetadata } from '../types';\nexport declare function diffAcceptRejectHunk(diff: FileDiffMetadata, hunkIndex: number, type: 'accept' | 'reject'): FileDiffMetadata;\n//# sourceMappingURL=diffAcceptRejectHunk.d.ts.map"],"mappings":";;;iBACwBC,oBAAAA,OAA2BD,iEAAiEA"}
@@ -1,5 +1,5 @@
1
1
  //#region src/utils/formatCSSVariablePrefix.d.ts
2
- declare function formatCSSVariablePrefix(type: "global" | "token"): string;
2
+ declare function formatCSSVariablePrefix(type: 'global' | 'token'): string;
3
3
  //#endregion
4
4
  export { formatCSSVariablePrefix };
5
5
  //# sourceMappingURL=formatCSSVariablePrefix.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"formatCSSVariablePrefix.d.ts","names":[],"sources":["../../src/utils/formatCSSVariablePrefix.ts"],"sourcesContent":[],"mappings":";iBAAgB,uBAAA"}
1
+ {"version":3,"file":"formatCSSVariablePrefix.d.ts","names":["formatCSSVariablePrefix"],"sources":["../../src/utils/formatCSSVariablePrefix.d.ts"],"sourcesContent":["export declare function formatCSSVariablePrefix(type: 'global' | 'token'): string;\n//# sourceMappingURL=formatCSSVariablePrefix.d.ts.map"],"mappings":";iBAAwBA,uBAAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"getFiletypeFromFileName.d.ts","names":["CUSTOM_EXTENSION_TO_FILE_FORMAT: Map<string, SupportedLanguages>","EXTENSION_TO_FILE_FORMAT: ExtensionFormatMap"],"sources":["../../src/utils/getFiletypeFromFileName.ts"],"sourcesContent":[],"mappings":";;;cAEaA,iCAAiC,YAAY;cAG7CC,0BAA0B;AAH1BD,iBA6UG,uBAAA,CA7U0C,QAAA,EAAA,MAAA,CAAA,EA6UC,kBA7Ub;AAGjCC,iBAsWG,mBAAA,CAtWuB,GAAA,EAsWE,kBAtWF,CAAA,EAAA,IAAA"}
1
+ {"version":3,"file":"getFiletypeFromFileName.d.ts","names":["ExtensionFormatMap","SupportedLanguages","CUSTOM_EXTENSION_TO_FILE_FORMAT","Map","EXTENSION_TO_FILE_FORMAT","getFiletypeFromFileName","extendFileFormatMap"],"sources":["../../src/utils/getFiletypeFromFileName.d.ts"],"sourcesContent":["import type { ExtensionFormatMap, SupportedLanguages } from '../types';\nexport declare const CUSTOM_EXTENSION_TO_FILE_FORMAT: Map<string, SupportedLanguages>;\nexport declare const EXTENSION_TO_FILE_FORMAT: ExtensionFormatMap;\nexport declare function getFiletypeFromFileName(fileName: string): SupportedLanguages;\nexport declare function extendFileFormatMap(map: ExtensionFormatMap): void;\n//# sourceMappingURL=getFiletypeFromFileName.d.ts.map"],"mappings":";;;cACqBE,iCAAiCC,YAAYF;cAC7CG,0BAA0BJ;AAD1BE,iBAEGG,uBAAAA,CAF6D,QAAnBJ,EAAAA,MAAAA,CAAAA,EAECA,kBAFV;AACpCG,iBAEGE,mBAAAA,CAFuBN,GAAAA,EAEEA,kBAFgB,CAAA,EAAA,IAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"getHighlighterOptions.d.ts","names":[],"sources":["../../src/utils/getHighlighterOptions.ts"],"sourcesContent":[],"mappings":";;;UAGU,uBAAA;UACA,kBAAkB;AAJyC;AAIzC,UAGlB,2BAAA,CAAA;EAKV,KAAgB,EAJP,kBAIO,EAAA;EACR,MAAA,EAJE,eAIF,EAAA;;AAEL,iBAHa,qBAAA,CAGb,IAAA,EAFK,kBAEL,GAAA,SAAA,EAAA,OAAA,EADQ,uBACR,CAAA,EAAA,2BAAA"}
1
+ {"version":3,"file":"getHighlighterOptions.d.ts","names":["DiffsThemeNames","SupportedLanguages","ThemesType","HighlighterOptionsShape","GetHighlighterOptionsReturn","getHighlighterOptions"],"sources":["../../src/utils/getHighlighterOptions.d.ts"],"sourcesContent":["import type { DiffsThemeNames, SupportedLanguages, ThemesType } from '../types';\ninterface HighlighterOptionsShape {\n theme?: DiffsThemeNames | ThemesType;\n}\ninterface GetHighlighterOptionsReturn {\n langs: SupportedLanguages[];\n themes: DiffsThemeNames[];\n}\nexport declare function getHighlighterOptions(lang: SupportedLanguages | undefined, options: HighlighterOptionsShape): GetHighlighterOptionsReturn;\nexport {};\n//# sourceMappingURL=getHighlighterOptions.d.ts.map"],"mappings":";;;UACUG,uBAAAA;UACEH,kBAAkBE;AAFkD;AAExC,UAE9BE,2BAAAA,CAA2B;EAIbC,KAAAA,EAHbJ,kBAGkC,EAAA;EAAOA,MAAAA,EAFxCD,eAEwCC,EAAAA;;AAAmEG,iBAA/FC,qBAAAA,CAA+FD,IAAAA,EAAnEH,kBAAmEG,GAAAA,SAAAA,EAAAA,OAAAA,EAA1BD,uBAA0BC,CAAAA,EAAAA,2BAAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"getHighlighterThemeStyles.d.ts","names":[],"sources":["../../src/utils/getHighlighterThemeStyles.ts"],"sourcesContent":[],"mappings":";;;UASU,8BAAA;UACA,kBAAkB;EAJrB,WAGG,EAEK,gBAFL;EACA,MAAA,CAAA,EAAA,MAAA;;AACK,iBAOC,yBAAA,CAPD;EAAA,KAAA;EAAA,WAAA;EAAA;AAAA,CAAA,EAWZ,8BAXY,CAAA,EAAA,MAAA"}
1
+ {"version":3,"file":"getHighlighterThemeStyles.d.ts","names":["DiffsHighlighter","DiffsThemeNames","ThemesType","GetHighlighterThemeStylesProps","getHighlighterThemeStyles","theme","highlighter","prefix"],"sources":["../../src/utils/getHighlighterThemeStyles.d.ts"],"sourcesContent":["import type { DiffsHighlighter, DiffsThemeNames, ThemesType } from '../types';\ninterface GetHighlighterThemeStylesProps {\n theme?: DiffsThemeNames | ThemesType;\n highlighter: DiffsHighlighter;\n prefix?: string;\n}\nexport declare function getHighlighterThemeStyles({ theme, highlighter, prefix }: GetHighlighterThemeStylesProps): string;\nexport {};\n//# sourceMappingURL=getHighlighterThemeStyles.d.ts.map"],"mappings":";;;UACUG,8BAAAA;UACEF,kBAAkBC;EADpBC,WAAAA,EAEOH,gBAFPG;EACEF,MAAAA,CAAAA,EAAAA,MAAAA;;AACKD,iBAGOI,yBAAAA,CAHPJ;EAAAA,KAAAA;EAAAA,WAAAA;EAAAA;AAAAA,CAAAA,EAGiEG,8BAHjEH,CAAAA,EAAAA,MAAAA"}
@@ -1,5 +1,7 @@
1
+ import { CodeColumnType } from "../types.js";
2
+
1
3
  //#region src/utils/getHunkSeparatorSlotName.d.ts
2
- declare function getHunkSeparatorSlotName(type: "unified" | "additions" | "deletions", hunkIndex: number): string;
4
+ declare function getHunkSeparatorSlotName(type: CodeColumnType, hunkIndex: number): string;
3
5
  //#endregion
4
6
  export { getHunkSeparatorSlotName };
5
7
  //# sourceMappingURL=getHunkSeparatorSlotName.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getHunkSeparatorSlotName.d.ts","names":[],"sources":["../../src/utils/getHunkSeparatorSlotName.ts"],"sourcesContent":[],"mappings":";iBAAgB,wBAAA"}
1
+ {"version":3,"file":"getHunkSeparatorSlotName.d.ts","names":["CodeColumnType","getHunkSeparatorSlotName"],"sources":["../../src/utils/getHunkSeparatorSlotName.d.ts"],"sourcesContent":["import type { CodeColumnType } from '../types';\nexport declare function getHunkSeparatorSlotName(type: CodeColumnType, hunkIndex: number): string;\n//# sourceMappingURL=getHunkSeparatorSlotName.d.ts.map"],"mappings":";;;iBACwBC,wBAAAA,OAA+BD"}
@@ -1 +1 @@
1
- {"version":3,"file":"getHunkSeparatorSlotName.js","names":[],"sources":["../../src/utils/getHunkSeparatorSlotName.ts"],"sourcesContent":["export function getHunkSeparatorSlotName(\n type: 'unified' | 'additions' | 'deletions',\n hunkIndex: number\n) {\n return `hunk-separator-${type}-${hunkIndex}`;\n}\n"],"mappings":";AAAA,SAAgB,yBACd,MACA,WACA;AACA,QAAO,kBAAkB,KAAK,GAAG"}
1
+ {"version":3,"file":"getHunkSeparatorSlotName.js","names":[],"sources":["../../src/utils/getHunkSeparatorSlotName.ts"],"sourcesContent":["import type { CodeColumnType } from '../types';\n\nexport function getHunkSeparatorSlotName(\n type: CodeColumnType,\n hunkIndex: number\n) {\n return `hunk-separator-${type}-${hunkIndex}`;\n}\n"],"mappings":";AAEA,SAAgB,yBACd,MACA,WACA;AACA,QAAO,kBAAkB,KAAK,GAAG"}
@@ -2,7 +2,7 @@ import { ChangeTypes } from "../types.js";
2
2
  import { SVGSpriteNames } from "../sprite.js";
3
3
 
4
4
  //#region src/utils/getIconForType.d.ts
5
- declare function getIconForType(type: ChangeTypes | "file"): Extract<SVGSpriteNames, "diffs-icon-file-code" | "diffs-icon-symbol-modified" | "diffs-icon-symbol-deleted" | "diffs-icon-symbol-added" | "diffs-icon-symbol-moved">;
5
+ declare function getIconForType(type: ChangeTypes | 'file'): Extract<SVGSpriteNames, 'diffs-icon-file-code' | 'diffs-icon-symbol-modified' | 'diffs-icon-symbol-deleted' | 'diffs-icon-symbol-added' | 'diffs-icon-symbol-moved'>;
6
6
  //#endregion
7
7
  export { getIconForType };
8
8
  //# sourceMappingURL=getIconForType.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getIconForType.d.ts","names":[],"sources":["../../src/utils/getIconForType.ts"],"sourcesContent":[],"mappings":";;;;iBAGgB,cAAA,OACR,uBACL,QACD"}
1
+ {"version":3,"file":"getIconForType.d.ts","names":["SVGSpriteNames","ChangeTypes","getIconForType","Extract"],"sources":["../../src/utils/getIconForType.d.ts"],"sourcesContent":["import type { SVGSpriteNames } from '../sprite';\nimport type { ChangeTypes } from '../types';\nexport declare function getIconForType(type: ChangeTypes | 'file'): Extract<SVGSpriteNames, 'diffs-icon-file-code' | 'diffs-icon-symbol-modified' | 'diffs-icon-symbol-deleted' | 'diffs-icon-symbol-added' | 'diffs-icon-symbol-moved'>;\n//# sourceMappingURL=getIconForType.d.ts.map"],"mappings":";;;;iBAEwBE,cAAAA,OAAqBD,uBAAuBE,QAAQH"}
@@ -1 +1 @@
1
- {"version":3,"file":"getLineAnnotationName.d.ts","names":[],"sources":["../../src/utils/getLineAnnotationName.ts"],"sourcesContent":[],"mappings":";;;iBAEgB,iDACF,eAAe,KAAK,mBAAmB"}
1
+ {"version":3,"file":"getLineAnnotationName.d.ts","names":["DiffLineAnnotation","LineAnnotation","getLineAnnotationName","T"],"sources":["../../src/utils/getLineAnnotationName.d.ts"],"sourcesContent":["import type { DiffLineAnnotation, LineAnnotation } from '../types';\nexport declare function getLineAnnotationName<T = undefined>(annotation: LineAnnotation<T> | DiffLineAnnotation<T>): string;\n//# sourceMappingURL=getLineAnnotationName.d.ts.map"],"mappings":";;;iBACwBE,iDAAiDD,eAAeE,KAAKH,mBAAmBG"}