@canonical/react-ds-app-launchpad 0.15.1 → 0.16.0

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 (450) hide show
  1. package/dist/esm/lib/DiffChangeMarker/icons.js +3 -3
  2. package/dist/esm/lib/DiffChangeMarker/icons.js.map +1 -1
  3. package/dist/esm/lib/FileTree/common/SearchBox/styles.css +1 -0
  4. package/dist/esm/lib/GitDiffViewer/common/CodeDiffViewer/CodeDiffViewer.js +2 -2
  5. package/dist/esm/lib/GitDiffViewer/common/CodeDiffViewer/CodeDiffViewer.js.map +1 -1
  6. package/dist/esm/lib/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/DiffLine.js +1 -1
  7. package/dist/esm/lib/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/DiffLine.js.map +1 -1
  8. package/dist/esm/lib/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/styles.css +45 -45
  9. package/dist/esm/lib/GitDiffViewer/common/CodeDiffViewer/common/icons.js +1 -1
  10. package/dist/esm/lib/GitDiffViewer/common/CodeDiffViewer/common/icons.js.map +1 -1
  11. package/dist/esm/lib/MarkdownEditor/styles.css +1 -0
  12. package/package.json +10 -10
  13. package/dist/esm/ui/DiffChangeMarker/DiffChangeMarker.js +0 -47
  14. package/dist/esm/ui/DiffChangeMarker/DiffChangeMarker.js.map +0 -1
  15. package/dist/esm/ui/DiffChangeMarker/common/DetailedChangeMarker/DetailedChangeMarker.js +0 -8
  16. package/dist/esm/ui/DiffChangeMarker/common/DetailedChangeMarker/DetailedChangeMarker.js.map +0 -1
  17. package/dist/esm/ui/DiffChangeMarker/common/DetailedChangeMarker/index.js +0 -4
  18. package/dist/esm/ui/DiffChangeMarker/common/DetailedChangeMarker/index.js.map +0 -1
  19. package/dist/esm/ui/DiffChangeMarker/common/DetailedChangeMarker/styles.css +0 -21
  20. package/dist/esm/ui/DiffChangeMarker/common/DetailedChangeMarker/types.js +0 -2
  21. package/dist/esm/ui/DiffChangeMarker/common/DetailedChangeMarker/types.js.map +0 -1
  22. package/dist/esm/ui/DiffChangeMarker/common/SimpleChangeMarker/SimpleChangeMarker.js +0 -11
  23. package/dist/esm/ui/DiffChangeMarker/common/SimpleChangeMarker/SimpleChangeMarker.js.map +0 -1
  24. package/dist/esm/ui/DiffChangeMarker/common/SimpleChangeMarker/index.js +0 -4
  25. package/dist/esm/ui/DiffChangeMarker/common/SimpleChangeMarker/index.js.map +0 -1
  26. package/dist/esm/ui/DiffChangeMarker/common/SimpleChangeMarker/styles.css +0 -29
  27. package/dist/esm/ui/DiffChangeMarker/common/SimpleChangeMarker/types.js +0 -2
  28. package/dist/esm/ui/DiffChangeMarker/common/SimpleChangeMarker/types.js.map +0 -1
  29. package/dist/esm/ui/DiffChangeMarker/common/index.js +0 -3
  30. package/dist/esm/ui/DiffChangeMarker/common/index.js.map +0 -1
  31. package/dist/esm/ui/DiffChangeMarker/icons.js +0 -5
  32. package/dist/esm/ui/DiffChangeMarker/icons.js.map +0 -1
  33. package/dist/esm/ui/DiffChangeMarker/index.js +0 -4
  34. package/dist/esm/ui/DiffChangeMarker/index.js.map +0 -1
  35. package/dist/esm/ui/DiffChangeMarker/styles.css +0 -30
  36. package/dist/esm/ui/DiffChangeMarker/types.js +0 -2
  37. package/dist/esm/ui/DiffChangeMarker/types.js.map +0 -1
  38. package/dist/esm/ui/EditableBlock/Context.js +0 -4
  39. package/dist/esm/ui/EditableBlock/Context.js.map +0 -1
  40. package/dist/esm/ui/EditableBlock/EditableBlock.js +0 -37
  41. package/dist/esm/ui/EditableBlock/EditableBlock.js.map +0 -1
  42. package/dist/esm/ui/EditableBlock/hooks/index.js +0 -2
  43. package/dist/esm/ui/EditableBlock/hooks/index.js.map +0 -1
  44. package/dist/esm/ui/EditableBlock/hooks/useEditableBlock.js +0 -11
  45. package/dist/esm/ui/EditableBlock/hooks/useEditableBlock.js.map +0 -1
  46. package/dist/esm/ui/EditableBlock/index.js +0 -3
  47. package/dist/esm/ui/EditableBlock/index.js.map +0 -1
  48. package/dist/esm/ui/EditableBlock/styles.css +0 -38
  49. package/dist/esm/ui/EditableBlock/types.js +0 -2
  50. package/dist/esm/ui/EditableBlock/types.js.map +0 -1
  51. package/dist/esm/ui/FileTree/Context.js +0 -4
  52. package/dist/esm/ui/FileTree/Context.js.map +0 -1
  53. package/dist/esm/ui/FileTree/Provider.js +0 -74
  54. package/dist/esm/ui/FileTree/Provider.js.map +0 -1
  55. package/dist/esm/ui/FileTree/common/File/File.js +0 -12
  56. package/dist/esm/ui/FileTree/common/File/File.js.map +0 -1
  57. package/dist/esm/ui/FileTree/common/File/index.js +0 -4
  58. package/dist/esm/ui/FileTree/common/File/index.js.map +0 -1
  59. package/dist/esm/ui/FileTree/common/File/styles.css +0 -4
  60. package/dist/esm/ui/FileTree/common/File/types.js +0 -2
  61. package/dist/esm/ui/FileTree/common/File/types.js.map +0 -1
  62. package/dist/esm/ui/FileTree/common/Folder/Folder.js +0 -12
  63. package/dist/esm/ui/FileTree/common/Folder/Folder.js.map +0 -1
  64. package/dist/esm/ui/FileTree/common/Folder/index.js +0 -4
  65. package/dist/esm/ui/FileTree/common/Folder/index.js.map +0 -1
  66. package/dist/esm/ui/FileTree/common/Folder/styles.css +0 -4
  67. package/dist/esm/ui/FileTree/common/Folder/types.js +0 -2
  68. package/dist/esm/ui/FileTree/common/Folder/types.js.map +0 -1
  69. package/dist/esm/ui/FileTree/common/IndentationBlock/IndentationBlock.js +0 -16
  70. package/dist/esm/ui/FileTree/common/IndentationBlock/IndentationBlock.js.map +0 -1
  71. package/dist/esm/ui/FileTree/common/IndentationBlock/index.js +0 -4
  72. package/dist/esm/ui/FileTree/common/IndentationBlock/index.js.map +0 -1
  73. package/dist/esm/ui/FileTree/common/IndentationBlock/styles.css +0 -32
  74. package/dist/esm/ui/FileTree/common/IndentationBlock/types.js +0 -2
  75. package/dist/esm/ui/FileTree/common/IndentationBlock/types.js.map +0 -1
  76. package/dist/esm/ui/FileTree/common/Node/Context.js +0 -10
  77. package/dist/esm/ui/FileTree/common/Node/Context.js.map +0 -1
  78. package/dist/esm/ui/FileTree/common/Node/Provider.js +0 -165
  79. package/dist/esm/ui/FileTree/common/Node/Provider.js.map +0 -1
  80. package/dist/esm/ui/FileTree/common/Node/hooks/index.js +0 -2
  81. package/dist/esm/ui/FileTree/common/Node/hooks/index.js.map +0 -1
  82. package/dist/esm/ui/FileTree/common/Node/hooks/useNode.js +0 -12
  83. package/dist/esm/ui/FileTree/common/Node/hooks/useNode.js.map +0 -1
  84. package/dist/esm/ui/FileTree/common/Node/index.js +0 -4
  85. package/dist/esm/ui/FileTree/common/Node/index.js.map +0 -1
  86. package/dist/esm/ui/FileTree/common/Node/styles.css +0 -56
  87. package/dist/esm/ui/FileTree/common/Node/types.js +0 -2
  88. package/dist/esm/ui/FileTree/common/Node/types.js.map +0 -1
  89. package/dist/esm/ui/FileTree/common/SearchBox/SearchBox.js +0 -31
  90. package/dist/esm/ui/FileTree/common/SearchBox/SearchBox.js.map +0 -1
  91. package/dist/esm/ui/FileTree/common/SearchBox/index.js +0 -4
  92. package/dist/esm/ui/FileTree/common/SearchBox/index.js.map +0 -1
  93. package/dist/esm/ui/FileTree/common/SearchBox/styles.css +0 -65
  94. package/dist/esm/ui/FileTree/common/SearchBox/types.js +0 -2
  95. package/dist/esm/ui/FileTree/common/SearchBox/types.js.map +0 -1
  96. package/dist/esm/ui/FileTree/common/TreeView/TreeView.js +0 -60
  97. package/dist/esm/ui/FileTree/common/TreeView/TreeView.js.map +0 -1
  98. package/dist/esm/ui/FileTree/common/TreeView/index.js +0 -4
  99. package/dist/esm/ui/FileTree/common/TreeView/index.js.map +0 -1
  100. package/dist/esm/ui/FileTree/common/TreeView/types.js +0 -2
  101. package/dist/esm/ui/FileTree/common/TreeView/types.js.map +0 -1
  102. package/dist/esm/ui/FileTree/common/index.js +0 -5
  103. package/dist/esm/ui/FileTree/common/index.js.map +0 -1
  104. package/dist/esm/ui/FileTree/hooks/index.js +0 -2
  105. package/dist/esm/ui/FileTree/hooks/index.js.map +0 -1
  106. package/dist/esm/ui/FileTree/hooks/useFileTree.js +0 -11
  107. package/dist/esm/ui/FileTree/hooks/useFileTree.js.map +0 -1
  108. package/dist/esm/ui/FileTree/index.js +0 -10
  109. package/dist/esm/ui/FileTree/index.js.map +0 -1
  110. package/dist/esm/ui/FileTree/styles.css +0 -59
  111. package/dist/esm/ui/FileTree/types.js +0 -2
  112. package/dist/esm/ui/FileTree/types.js.map +0 -1
  113. package/dist/esm/ui/FileTree/utils/hashNodeName.js +0 -11
  114. package/dist/esm/ui/FileTree/utils/hashNodeName.js.map +0 -1
  115. package/dist/esm/ui/FileTree/utils/index.js +0 -2
  116. package/dist/esm/ui/FileTree/utils/index.js.map +0 -1
  117. package/dist/esm/ui/GitDiffViewer/Context.js +0 -4
  118. package/dist/esm/ui/GitDiffViewer/Context.js.map +0 -1
  119. package/dist/esm/ui/GitDiffViewer/Provider.js +0 -27
  120. package/dist/esm/ui/GitDiffViewer/Provider.js.map +0 -1
  121. package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/CodeDiffViewer.js +0 -74
  122. package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/CodeDiffViewer.js.map +0 -1
  123. package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/HighlighTheme.css +0 -171
  124. package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/common/AnnotatedDiffLine/AnnotatedDiffLine.js +0 -38
  125. package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/common/AnnotatedDiffLine/AnnotatedDiffLine.js.map +0 -1
  126. package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/common/AnnotatedDiffLine/index.js +0 -4
  127. package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/common/AnnotatedDiffLine/index.js.map +0 -1
  128. package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/common/AnnotatedDiffLine/styles.css +0 -15
  129. package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/common/AnnotatedDiffLine/types.js +0 -3
  130. package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/common/AnnotatedDiffLine/types.js.map +0 -1
  131. package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/DiffLine.js +0 -36
  132. package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/DiffLine.js.map +0 -1
  133. package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/index.js +0 -4
  134. package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/index.js.map +0 -1
  135. package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/styles.css +0 -118
  136. package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/types.js +0 -2
  137. package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/types.js.map +0 -1
  138. package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/common/icons.js +0 -5
  139. package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/common/icons.js.map +0 -1
  140. package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/common/index.js +0 -2
  141. package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/common/index.js.map +0 -1
  142. package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/constants.js +0 -2
  143. package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/constants.js.map +0 -1
  144. package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/index.js +0 -5
  145. package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/index.js.map +0 -1
  146. package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/styles.css +0 -27
  147. package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/types.js +0 -2
  148. package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/types.js.map +0 -1
  149. package/dist/esm/ui/GitDiffViewer/common/FileHeader/FileHeader.js +0 -36
  150. package/dist/esm/ui/GitDiffViewer/common/FileHeader/FileHeader.js.map +0 -1
  151. package/dist/esm/ui/GitDiffViewer/common/FileHeader/index.js +0 -4
  152. package/dist/esm/ui/GitDiffViewer/common/FileHeader/index.js.map +0 -1
  153. package/dist/esm/ui/GitDiffViewer/common/FileHeader/styles.css +0 -56
  154. package/dist/esm/ui/GitDiffViewer/common/FileHeader/types.js +0 -2
  155. package/dist/esm/ui/GitDiffViewer/common/FileHeader/types.js.map +0 -1
  156. package/dist/esm/ui/GitDiffViewer/common/index.js +0 -3
  157. package/dist/esm/ui/GitDiffViewer/common/index.js.map +0 -1
  158. package/dist/esm/ui/GitDiffViewer/hooks/index.js +0 -2
  159. package/dist/esm/ui/GitDiffViewer/hooks/index.js.map +0 -1
  160. package/dist/esm/ui/GitDiffViewer/hooks/useGitDiffViewer.js +0 -11
  161. package/dist/esm/ui/GitDiffViewer/hooks/useGitDiffViewer.js.map +0 -1
  162. package/dist/esm/ui/GitDiffViewer/index.js +0 -9
  163. package/dist/esm/ui/GitDiffViewer/index.js.map +0 -1
  164. package/dist/esm/ui/GitDiffViewer/styles.css +0 -26
  165. package/dist/esm/ui/GitDiffViewer/types.js +0 -2
  166. package/dist/esm/ui/GitDiffViewer/types.js.map +0 -1
  167. package/dist/esm/ui/GitDiffViewer/utils/highlightDiffHunkLines.js +0 -83
  168. package/dist/esm/ui/GitDiffViewer/utils/highlightDiffHunkLines.js.map +0 -1
  169. package/dist/esm/ui/GitDiffViewer/utils/index.js +0 -3
  170. package/dist/esm/ui/GitDiffViewer/utils/index.js.map +0 -1
  171. package/dist/esm/ui/GitDiffViewer/utils/parseGitDiff.js +0 -96
  172. package/dist/esm/ui/GitDiffViewer/utils/parseGitDiff.js.map +0 -1
  173. package/dist/esm/ui/MarkdownEditor/MarkdownEditor.js +0 -75
  174. package/dist/esm/ui/MarkdownEditor/MarkdownEditor.js.map +0 -1
  175. package/dist/esm/ui/MarkdownEditor/common/Toolbar/Toolbar.js +0 -52
  176. package/dist/esm/ui/MarkdownEditor/common/Toolbar/Toolbar.js.map +0 -1
  177. package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Button/Button.js +0 -19
  178. package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Button/Button.js.map +0 -1
  179. package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Button/index.js +0 -4
  180. package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Button/index.js.map +0 -1
  181. package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Button/styles.css +0 -17
  182. package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Button/types.js +0 -2
  183. package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Button/types.js.map +0 -1
  184. package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Group/Group.js +0 -13
  185. package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Group/Group.js.map +0 -1
  186. package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Group/index.js +0 -4
  187. package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Group/index.js.map +0 -1
  188. package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Group/styles.css +0 -7
  189. package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Group/types.js +0 -2
  190. package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Group/types.js.map +0 -1
  191. package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Separator/Separator.js +0 -11
  192. package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Separator/Separator.js.map +0 -1
  193. package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Separator/index.js +0 -4
  194. package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Separator/index.js.map +0 -1
  195. package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Separator/styles.css +0 -7
  196. package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Separator/types.js +0 -2
  197. package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Separator/types.js.map +0 -1
  198. package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/index.js +0 -4
  199. package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/index.js.map +0 -1
  200. package/dist/esm/ui/MarkdownEditor/common/Toolbar/index.js +0 -9
  201. package/dist/esm/ui/MarkdownEditor/common/Toolbar/index.js.map +0 -1
  202. package/dist/esm/ui/MarkdownEditor/common/Toolbar/styles.css +0 -16
  203. package/dist/esm/ui/MarkdownEditor/common/Toolbar/types.js +0 -2
  204. package/dist/esm/ui/MarkdownEditor/common/Toolbar/types.js.map +0 -1
  205. package/dist/esm/ui/MarkdownEditor/common/ViewModeTabs/ViewModeTabs.js +0 -34
  206. package/dist/esm/ui/MarkdownEditor/common/ViewModeTabs/ViewModeTabs.js.map +0 -1
  207. package/dist/esm/ui/MarkdownEditor/common/ViewModeTabs/index.js +0 -4
  208. package/dist/esm/ui/MarkdownEditor/common/ViewModeTabs/index.js.map +0 -1
  209. package/dist/esm/ui/MarkdownEditor/common/ViewModeTabs/styles.css +0 -42
  210. package/dist/esm/ui/MarkdownEditor/common/ViewModeTabs/types.js +0 -2
  211. package/dist/esm/ui/MarkdownEditor/common/ViewModeTabs/types.js.map +0 -1
  212. package/dist/esm/ui/MarkdownEditor/common/icons.js +0 -10
  213. package/dist/esm/ui/MarkdownEditor/common/icons.js.map +0 -1
  214. package/dist/esm/ui/MarkdownEditor/common/index.js +0 -4
  215. package/dist/esm/ui/MarkdownEditor/common/index.js.map +0 -1
  216. package/dist/esm/ui/MarkdownEditor/hooks/index.js +0 -2
  217. package/dist/esm/ui/MarkdownEditor/hooks/index.js.map +0 -1
  218. package/dist/esm/ui/MarkdownEditor/hooks/useEditor.js +0 -274
  219. package/dist/esm/ui/MarkdownEditor/hooks/useEditor.js.map +0 -1
  220. package/dist/esm/ui/MarkdownEditor/index.js +0 -4
  221. package/dist/esm/ui/MarkdownEditor/index.js.map +0 -1
  222. package/dist/esm/ui/MarkdownEditor/styles.css +0 -85
  223. package/dist/esm/ui/MarkdownEditor/types.js +0 -2
  224. package/dist/esm/ui/MarkdownEditor/types.js.map +0 -1
  225. package/dist/esm/ui/RelativeTime/RelativeTime.js +0 -66
  226. package/dist/esm/ui/RelativeTime/RelativeTime.js.map +0 -1
  227. package/dist/esm/ui/RelativeTime/index.js +0 -4
  228. package/dist/esm/ui/RelativeTime/index.js.map +0 -1
  229. package/dist/esm/ui/RelativeTime/types.js +0 -2
  230. package/dist/esm/ui/RelativeTime/types.js.map +0 -1
  231. package/dist/esm/ui/RelativeTime/utils/constants.js +0 -6
  232. package/dist/esm/ui/RelativeTime/utils/constants.js.map +0 -1
  233. package/dist/esm/ui/RelativeTime/utils/formatHumanTime.js +0 -43
  234. package/dist/esm/ui/RelativeTime/utils/formatHumanTime.js.map +0 -1
  235. package/dist/esm/ui/RelativeTime/utils/getOptimalUpdateInterval.js +0 -24
  236. package/dist/esm/ui/RelativeTime/utils/getOptimalUpdateInterval.js.map +0 -1
  237. package/dist/esm/ui/RelativeTime/utils/index.js +0 -4
  238. package/dist/esm/ui/RelativeTime/utils/index.js.map +0 -1
  239. package/dist/esm/ui/RelativeTime/utils/parseInstant.js +0 -22
  240. package/dist/esm/ui/RelativeTime/utils/parseInstant.js.map +0 -1
  241. package/dist/esm/ui/index.js +0 -7
  242. package/dist/esm/ui/index.js.map +0 -1
  243. package/dist/types/ui/DiffChangeMarker/DiffChangeMarker.d.ts +0 -11
  244. package/dist/types/ui/DiffChangeMarker/DiffChangeMarker.d.ts.map +0 -1
  245. package/dist/types/ui/DiffChangeMarker/common/DetailedChangeMarker/DetailedChangeMarker.d.ts +0 -6
  246. package/dist/types/ui/DiffChangeMarker/common/DetailedChangeMarker/DetailedChangeMarker.d.ts.map +0 -1
  247. package/dist/types/ui/DiffChangeMarker/common/DetailedChangeMarker/index.d.ts +0 -3
  248. package/dist/types/ui/DiffChangeMarker/common/DetailedChangeMarker/index.d.ts.map +0 -1
  249. package/dist/types/ui/DiffChangeMarker/common/DetailedChangeMarker/types.d.ts +0 -10
  250. package/dist/types/ui/DiffChangeMarker/common/DetailedChangeMarker/types.d.ts.map +0 -1
  251. package/dist/types/ui/DiffChangeMarker/common/SimpleChangeMarker/SimpleChangeMarker.d.ts +0 -6
  252. package/dist/types/ui/DiffChangeMarker/common/SimpleChangeMarker/SimpleChangeMarker.d.ts.map +0 -1
  253. package/dist/types/ui/DiffChangeMarker/common/SimpleChangeMarker/index.d.ts +0 -3
  254. package/dist/types/ui/DiffChangeMarker/common/SimpleChangeMarker/index.d.ts.map +0 -1
  255. package/dist/types/ui/DiffChangeMarker/common/SimpleChangeMarker/types.d.ts +0 -9
  256. package/dist/types/ui/DiffChangeMarker/common/SimpleChangeMarker/types.d.ts.map +0 -1
  257. package/dist/types/ui/DiffChangeMarker/common/index.d.ts +0 -3
  258. package/dist/types/ui/DiffChangeMarker/common/index.d.ts.map +0 -1
  259. package/dist/types/ui/DiffChangeMarker/icons.d.ts +0 -4
  260. package/dist/types/ui/DiffChangeMarker/icons.d.ts.map +0 -1
  261. package/dist/types/ui/DiffChangeMarker/index.d.ts +0 -3
  262. package/dist/types/ui/DiffChangeMarker/index.d.ts.map +0 -1
  263. package/dist/types/ui/DiffChangeMarker/types.d.ts +0 -18
  264. package/dist/types/ui/DiffChangeMarker/types.d.ts.map +0 -1
  265. package/dist/types/ui/EditableBlock/Context.d.ts +0 -4
  266. package/dist/types/ui/EditableBlock/Context.d.ts.map +0 -1
  267. package/dist/types/ui/EditableBlock/EditableBlock.d.ts +0 -10
  268. package/dist/types/ui/EditableBlock/EditableBlock.d.ts.map +0 -1
  269. package/dist/types/ui/EditableBlock/hooks/index.d.ts +0 -2
  270. package/dist/types/ui/EditableBlock/hooks/index.d.ts.map +0 -1
  271. package/dist/types/ui/EditableBlock/hooks/useEditableBlock.d.ts +0 -4
  272. package/dist/types/ui/EditableBlock/hooks/useEditableBlock.d.ts.map +0 -1
  273. package/dist/types/ui/EditableBlock/index.d.ts +0 -3
  274. package/dist/types/ui/EditableBlock/index.d.ts.map +0 -1
  275. package/dist/types/ui/EditableBlock/types.d.ts +0 -26
  276. package/dist/types/ui/EditableBlock/types.d.ts.map +0 -1
  277. package/dist/types/ui/FileTree/Context.d.ts +0 -4
  278. package/dist/types/ui/FileTree/Context.d.ts.map +0 -1
  279. package/dist/types/ui/FileTree/Provider.d.ts +0 -7
  280. package/dist/types/ui/FileTree/Provider.d.ts.map +0 -1
  281. package/dist/types/ui/FileTree/common/File/File.d.ts +0 -10
  282. package/dist/types/ui/FileTree/common/File/File.d.ts.map +0 -1
  283. package/dist/types/ui/FileTree/common/File/index.d.ts +0 -3
  284. package/dist/types/ui/FileTree/common/File/index.d.ts.map +0 -1
  285. package/dist/types/ui/FileTree/common/File/types.d.ts +0 -16
  286. package/dist/types/ui/FileTree/common/File/types.d.ts.map +0 -1
  287. package/dist/types/ui/FileTree/common/Folder/Folder.d.ts +0 -10
  288. package/dist/types/ui/FileTree/common/Folder/Folder.d.ts.map +0 -1
  289. package/dist/types/ui/FileTree/common/Folder/index.d.ts +0 -3
  290. package/dist/types/ui/FileTree/common/Folder/index.d.ts.map +0 -1
  291. package/dist/types/ui/FileTree/common/Folder/types.d.ts +0 -16
  292. package/dist/types/ui/FileTree/common/Folder/types.d.ts.map +0 -1
  293. package/dist/types/ui/FileTree/common/IndentationBlock/IndentationBlock.d.ts +0 -10
  294. package/dist/types/ui/FileTree/common/IndentationBlock/IndentationBlock.d.ts.map +0 -1
  295. package/dist/types/ui/FileTree/common/IndentationBlock/index.d.ts +0 -3
  296. package/dist/types/ui/FileTree/common/IndentationBlock/index.d.ts.map +0 -1
  297. package/dist/types/ui/FileTree/common/IndentationBlock/types.d.ts +0 -12
  298. package/dist/types/ui/FileTree/common/IndentationBlock/types.d.ts.map +0 -1
  299. package/dist/types/ui/FileTree/common/Node/Context.d.ts +0 -5
  300. package/dist/types/ui/FileTree/common/Node/Context.d.ts.map +0 -1
  301. package/dist/types/ui/FileTree/common/Node/Provider.d.ts +0 -6
  302. package/dist/types/ui/FileTree/common/Node/Provider.d.ts.map +0 -1
  303. package/dist/types/ui/FileTree/common/Node/hooks/index.d.ts +0 -2
  304. package/dist/types/ui/FileTree/common/Node/hooks/index.d.ts.map +0 -1
  305. package/dist/types/ui/FileTree/common/Node/hooks/useNode.d.ts +0 -3
  306. package/dist/types/ui/FileTree/common/Node/hooks/useNode.d.ts.map +0 -1
  307. package/dist/types/ui/FileTree/common/Node/index.d.ts +0 -5
  308. package/dist/types/ui/FileTree/common/Node/index.d.ts.map +0 -1
  309. package/dist/types/ui/FileTree/common/Node/types.d.ts +0 -28
  310. package/dist/types/ui/FileTree/common/Node/types.d.ts.map +0 -1
  311. package/dist/types/ui/FileTree/common/SearchBox/SearchBox.d.ts +0 -10
  312. package/dist/types/ui/FileTree/common/SearchBox/SearchBox.d.ts.map +0 -1
  313. package/dist/types/ui/FileTree/common/SearchBox/index.d.ts +0 -3
  314. package/dist/types/ui/FileTree/common/SearchBox/index.d.ts.map +0 -1
  315. package/dist/types/ui/FileTree/common/SearchBox/types.d.ts +0 -10
  316. package/dist/types/ui/FileTree/common/SearchBox/types.d.ts.map +0 -1
  317. package/dist/types/ui/FileTree/common/TreeView/TreeView.d.ts +0 -16
  318. package/dist/types/ui/FileTree/common/TreeView/TreeView.d.ts.map +0 -1
  319. package/dist/types/ui/FileTree/common/TreeView/index.d.ts +0 -3
  320. package/dist/types/ui/FileTree/common/TreeView/index.d.ts.map +0 -1
  321. package/dist/types/ui/FileTree/common/TreeView/types.d.ts +0 -20
  322. package/dist/types/ui/FileTree/common/TreeView/types.d.ts.map +0 -1
  323. package/dist/types/ui/FileTree/common/index.d.ts +0 -5
  324. package/dist/types/ui/FileTree/common/index.d.ts.map +0 -1
  325. package/dist/types/ui/FileTree/hooks/index.d.ts +0 -2
  326. package/dist/types/ui/FileTree/hooks/index.d.ts.map +0 -1
  327. package/dist/types/ui/FileTree/hooks/useFileTree.d.ts +0 -3
  328. package/dist/types/ui/FileTree/hooks/useFileTree.d.ts.map +0 -1
  329. package/dist/types/ui/FileTree/index.d.ts +0 -5
  330. package/dist/types/ui/FileTree/index.d.ts.map +0 -1
  331. package/dist/types/ui/FileTree/types.d.ts +0 -73
  332. package/dist/types/ui/FileTree/types.d.ts.map +0 -1
  333. package/dist/types/ui/FileTree/utils/hashNodeName.d.ts +0 -3
  334. package/dist/types/ui/FileTree/utils/hashNodeName.d.ts.map +0 -1
  335. package/dist/types/ui/FileTree/utils/index.d.ts +0 -2
  336. package/dist/types/ui/FileTree/utils/index.d.ts.map +0 -1
  337. package/dist/types/ui/GitDiffViewer/Context.d.ts +0 -4
  338. package/dist/types/ui/GitDiffViewer/Context.d.ts.map +0 -1
  339. package/dist/types/ui/GitDiffViewer/Provider.d.ts +0 -5
  340. package/dist/types/ui/GitDiffViewer/Provider.d.ts.map +0 -1
  341. package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/CodeDiffViewer.d.ts +0 -7
  342. package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/CodeDiffViewer.d.ts.map +0 -1
  343. package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/common/AnnotatedDiffLine/AnnotatedDiffLine.d.ts +0 -10
  344. package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/common/AnnotatedDiffLine/AnnotatedDiffLine.d.ts.map +0 -1
  345. package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/common/AnnotatedDiffLine/index.d.ts +0 -3
  346. package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/common/AnnotatedDiffLine/index.d.ts.map +0 -1
  347. package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/common/AnnotatedDiffLine/types.d.ts +0 -21
  348. package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/common/AnnotatedDiffLine/types.d.ts.map +0 -1
  349. package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/DiffLine.d.ts +0 -11
  350. package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/DiffLine.d.ts.map +0 -1
  351. package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/index.d.ts +0 -3
  352. package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/index.d.ts.map +0 -1
  353. package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/types.d.ts +0 -34
  354. package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/types.d.ts.map +0 -1
  355. package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/common/icons.d.ts +0 -2
  356. package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/common/icons.d.ts.map +0 -1
  357. package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/common/index.d.ts +0 -2
  358. package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/common/index.d.ts.map +0 -1
  359. package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/constants.d.ts +0 -2
  360. package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/constants.d.ts.map +0 -1
  361. package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/index.d.ts +0 -4
  362. package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/index.d.ts.map +0 -1
  363. package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/types.d.ts +0 -34
  364. package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/types.d.ts.map +0 -1
  365. package/dist/types/ui/GitDiffViewer/common/FileHeader/FileHeader.d.ts +0 -15
  366. package/dist/types/ui/GitDiffViewer/common/FileHeader/FileHeader.d.ts.map +0 -1
  367. package/dist/types/ui/GitDiffViewer/common/FileHeader/index.d.ts +0 -3
  368. package/dist/types/ui/GitDiffViewer/common/FileHeader/index.d.ts.map +0 -1
  369. package/dist/types/ui/GitDiffViewer/common/FileHeader/types.d.ts +0 -17
  370. package/dist/types/ui/GitDiffViewer/common/FileHeader/types.d.ts.map +0 -1
  371. package/dist/types/ui/GitDiffViewer/common/index.d.ts +0 -3
  372. package/dist/types/ui/GitDiffViewer/common/index.d.ts.map +0 -1
  373. package/dist/types/ui/GitDiffViewer/hooks/index.d.ts +0 -2
  374. package/dist/types/ui/GitDiffViewer/hooks/index.d.ts.map +0 -1
  375. package/dist/types/ui/GitDiffViewer/hooks/useGitDiffViewer.d.ts +0 -3
  376. package/dist/types/ui/GitDiffViewer/hooks/useGitDiffViewer.d.ts.map +0 -1
  377. package/dist/types/ui/GitDiffViewer/index.d.ts +0 -10
  378. package/dist/types/ui/GitDiffViewer/index.d.ts.map +0 -1
  379. package/dist/types/ui/GitDiffViewer/types.d.ts +0 -75
  380. package/dist/types/ui/GitDiffViewer/types.d.ts.map +0 -1
  381. package/dist/types/ui/GitDiffViewer/utils/highlightDiffHunkLines.d.ts +0 -4
  382. package/dist/types/ui/GitDiffViewer/utils/highlightDiffHunkLines.d.ts.map +0 -1
  383. package/dist/types/ui/GitDiffViewer/utils/index.d.ts +0 -3
  384. package/dist/types/ui/GitDiffViewer/utils/index.d.ts.map +0 -1
  385. package/dist/types/ui/GitDiffViewer/utils/parseGitDiff.d.ts +0 -4
  386. package/dist/types/ui/GitDiffViewer/utils/parseGitDiff.d.ts.map +0 -1
  387. package/dist/types/ui/MarkdownEditor/MarkdownEditor.d.ts +0 -10
  388. package/dist/types/ui/MarkdownEditor/MarkdownEditor.d.ts.map +0 -1
  389. package/dist/types/ui/MarkdownEditor/common/Toolbar/Toolbar.d.ts +0 -8
  390. package/dist/types/ui/MarkdownEditor/common/Toolbar/Toolbar.d.ts.map +0 -1
  391. package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Button/Button.d.ts +0 -9
  392. package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Button/Button.d.ts.map +0 -1
  393. package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Button/index.d.ts +0 -3
  394. package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Button/index.d.ts.map +0 -1
  395. package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Button/types.d.ts +0 -14
  396. package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Button/types.d.ts.map +0 -1
  397. package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Group/Group.d.ts +0 -9
  398. package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Group/Group.d.ts.map +0 -1
  399. package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Group/index.d.ts +0 -3
  400. package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Group/index.d.ts.map +0 -1
  401. package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Group/types.d.ts +0 -14
  402. package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Group/types.d.ts.map +0 -1
  403. package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Separator/Separator.d.ts +0 -9
  404. package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Separator/Separator.d.ts.map +0 -1
  405. package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Separator/index.d.ts +0 -3
  406. package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Separator/index.d.ts.map +0 -1
  407. package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Separator/types.d.ts +0 -10
  408. package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Separator/types.d.ts.map +0 -1
  409. package/dist/types/ui/MarkdownEditor/common/Toolbar/common/index.d.ts +0 -4
  410. package/dist/types/ui/MarkdownEditor/common/Toolbar/common/index.d.ts.map +0 -1
  411. package/dist/types/ui/MarkdownEditor/common/Toolbar/index.d.ts +0 -4
  412. package/dist/types/ui/MarkdownEditor/common/Toolbar/index.d.ts.map +0 -1
  413. package/dist/types/ui/MarkdownEditor/common/Toolbar/types.d.ts +0 -20
  414. package/dist/types/ui/MarkdownEditor/common/Toolbar/types.d.ts.map +0 -1
  415. package/dist/types/ui/MarkdownEditor/common/ViewModeTabs/ViewModeTabs.d.ts +0 -9
  416. package/dist/types/ui/MarkdownEditor/common/ViewModeTabs/ViewModeTabs.d.ts.map +0 -1
  417. package/dist/types/ui/MarkdownEditor/common/ViewModeTabs/index.d.ts +0 -3
  418. package/dist/types/ui/MarkdownEditor/common/ViewModeTabs/index.d.ts.map +0 -1
  419. package/dist/types/ui/MarkdownEditor/common/ViewModeTabs/types.d.ts +0 -14
  420. package/dist/types/ui/MarkdownEditor/common/ViewModeTabs/types.d.ts.map +0 -1
  421. package/dist/types/ui/MarkdownEditor/common/icons.d.ts +0 -9
  422. package/dist/types/ui/MarkdownEditor/common/icons.d.ts.map +0 -1
  423. package/dist/types/ui/MarkdownEditor/common/index.d.ts +0 -4
  424. package/dist/types/ui/MarkdownEditor/common/index.d.ts.map +0 -1
  425. package/dist/types/ui/MarkdownEditor/hooks/index.d.ts +0 -2
  426. package/dist/types/ui/MarkdownEditor/hooks/index.d.ts.map +0 -1
  427. package/dist/types/ui/MarkdownEditor/hooks/useEditor.d.ts +0 -40
  428. package/dist/types/ui/MarkdownEditor/hooks/useEditor.d.ts.map +0 -1
  429. package/dist/types/ui/MarkdownEditor/index.d.ts +0 -3
  430. package/dist/types/ui/MarkdownEditor/index.d.ts.map +0 -1
  431. package/dist/types/ui/MarkdownEditor/types.d.ts +0 -47
  432. package/dist/types/ui/MarkdownEditor/types.d.ts.map +0 -1
  433. package/dist/types/ui/RelativeTime/RelativeTime.d.ts +0 -11
  434. package/dist/types/ui/RelativeTime/RelativeTime.d.ts.map +0 -1
  435. package/dist/types/ui/RelativeTime/index.d.ts +0 -3
  436. package/dist/types/ui/RelativeTime/index.d.ts.map +0 -1
  437. package/dist/types/ui/RelativeTime/types.d.ts +0 -36
  438. package/dist/types/ui/RelativeTime/types.d.ts.map +0 -1
  439. package/dist/types/ui/RelativeTime/utils/constants.d.ts +0 -6
  440. package/dist/types/ui/RelativeTime/utils/constants.d.ts.map +0 -1
  441. package/dist/types/ui/RelativeTime/utils/formatHumanTime.d.ts +0 -21
  442. package/dist/types/ui/RelativeTime/utils/formatHumanTime.d.ts.map +0 -1
  443. package/dist/types/ui/RelativeTime/utils/getOptimalUpdateInterval.d.ts +0 -8
  444. package/dist/types/ui/RelativeTime/utils/getOptimalUpdateInterval.d.ts.map +0 -1
  445. package/dist/types/ui/RelativeTime/utils/index.d.ts +0 -4
  446. package/dist/types/ui/RelativeTime/utils/index.d.ts.map +0 -1
  447. package/dist/types/ui/RelativeTime/utils/parseInstant.d.ts +0 -9
  448. package/dist/types/ui/RelativeTime/utils/parseInstant.d.ts.map +0 -1
  449. package/dist/types/ui/index.d.ts +0 -7
  450. package/dist/types/ui/index.d.ts.map +0 -1
@@ -1,73 +0,0 @@
1
- import type { AllOrNone } from "@canonical/utils";
2
- import type React from "react";
3
- import type { FileProps, FolderProps, SearchBoxProps, TreeViewProps } from "./common/index.js";
4
- export type BaseNode = {
5
- name: string;
6
- path?: string;
7
- };
8
- export type FileNode = BaseNode & {
9
- type: "file";
10
- marker?: React.ReactNode;
11
- };
12
- export type FolderNode = BaseNode & {
13
- type: "folder";
14
- children?: Array<FileTreeData>;
15
- };
16
- export type FileTreeData = FolderNode | FileNode;
17
- export type SearchOptions = {
18
- /**
19
- * Files and folders to display if matching the search query.
20
- */
21
- searchQuery: string;
22
- /**
23
- * Callback to update the search query.
24
- */
25
- onSearch: (query: string) => void;
26
- };
27
- export type ExpansionOptions = {
28
- /**
29
- * Whether the folders are expandible (default is `false`).
30
- */
31
- expandable: boolean;
32
- };
33
- export type FileSelectionOptions = {
34
- /**
35
- * The currently selected file item.
36
- */
37
- selectedFile: FileTreeData | null;
38
- /**
39
- * Callback to select a file item.
40
- */
41
- onSelectFile: (node: FileTreeData) => void;
42
- };
43
- export type UserContextOptions = AllOrNone<FileSelectionOptions> & AllOrNone<SearchOptions> & AllOrNone<ExpansionOptions>;
44
- export type ManagedContextOptions = {
45
- focusNextNode: (direction: "up" | "down") => void;
46
- focusEndNode: (end: "start" | "end") => void;
47
- focusNextSiblingCharacter: (character: string) => void;
48
- };
49
- export type ContextOptions = UserContextOptions & ManagedContextOptions;
50
- export type ProviderOptions = {
51
- /** A unique identifier for the SearchBox */
52
- id?: string;
53
- /** Additional CSS classes */
54
- className?: string;
55
- /** Inline styles */
56
- style?: React.CSSProperties;
57
- /**
58
- * Consider using `FileTree.Folder` and `FileTree.File` components to build the file tree.
59
- */
60
- children?: React.ReactNode;
61
- /**
62
- * The header of the file tree.
63
- * Consider using `FileTree.Search` component to add search functionality.
64
- */
65
- header?: React.ReactNode;
66
- } & UserContextOptions;
67
- export type FileTreeComponent = ((props: ProviderOptions) => React.ReactElement) & {
68
- SearchBox: (props: SearchBoxProps) => React.ReactElement | null;
69
- File: (props: FileProps) => React.ReactElement | null;
70
- Folder: (props: FolderProps) => React.ReactElement | null;
71
- TreeView: (props: TreeViewProps) => React.ReactElement | null;
72
- };
73
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/ui/FileTree/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EACV,SAAS,EACT,WAAW,EACX,cAAc,EACd,aAAa,EACd,MAAM,mBAAmB,CAAC;AAE3B,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,MAAM,CAAC;IAEb,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG;IAClC,IAAI,EAAE,QAAQ,CAAC;IACf,QAAQ,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,UAAU,GAAG,QAAQ,CAAC;AAEjD,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,YAAY,EAAE,YAAY,GAAG,IAAI,CAAC;IAClC;;OAEG;IACH,YAAY,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,IAAI,CAAC;CAC5C,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,SAAS,CAAC,oBAAoB,CAAC,GAC9D,SAAS,CAAC,aAAa,CAAC,GACxB,SAAS,CAAC,gBAAgB,CAAC,CAAC;AAC9B,MAAM,MAAM,qBAAqB,GAAG;IAClC,aAAa,EAAE,CAAC,SAAS,EAAE,IAAI,GAAG,MAAM,KAAK,IAAI,CAAC;IAClD,YAAY,EAAE,CAAC,GAAG,EAAE,OAAO,GAAG,KAAK,KAAK,IAAI,CAAC;IAC7C,yBAAyB,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CACxD,CAAC;AACF,MAAM,MAAM,cAAc,GAAG,kBAAkB,GAAG,qBAAqB,CAAC;AAExE,MAAM,MAAM,eAAe,GAAG;IAC5B,4CAA4C;IAC5C,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oBAAoB;IACpB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;;OAGG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B,GAAG,kBAAkB,CAAC;AAEvB,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAC/B,KAAK,EAAE,eAAe,KACnB,KAAK,CAAC,YAAY,CAAC,GAAG;IACzB,SAAS,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC;IAChE,IAAI,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC;IACtD,MAAM,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC;IAC1D,QAAQ,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC;CAC/D,CAAC"}
@@ -1,3 +0,0 @@
1
- declare const hashNodeName: (name: string) => number;
2
- export default hashNodeName;
3
- //# sourceMappingURL=hashNodeName.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hashNodeName.d.ts","sourceRoot":"","sources":["../../../../../src/ui/FileTree/utils/hashNodeName.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,YAAY,GAAI,MAAM,MAAM,WAQjC,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1,2 +0,0 @@
1
- export { default as hashNodeName } from "./hashNodeName.js";
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/ui/FileTree/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,mBAAmB,CAAC"}
@@ -1,4 +0,0 @@
1
- import type { ContextOptions } from "./types.js";
2
- declare const GitDiffViewerContext: import("react").Context<ContextOptions | null>;
3
- export default GitDiffViewerContext;
4
- //# sourceMappingURL=Context.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../../src/ui/GitDiffViewer/Context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD,QAAA,MAAM,oBAAoB,gDAA6C,CAAC;AAExE,eAAe,oBAAoB,CAAC"}
@@ -1,5 +0,0 @@
1
- import "./styles.css";
2
- import type { ProviderOptions } from "./types.js";
3
- declare const Provider: import("react").ForwardRefExoticComponent<ProviderOptions & import("react").RefAttributes<HTMLDivElement>>;
4
- export default Provider;
5
- //# sourceMappingURL=Provider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../src/ui/GitDiffViewer/Provider.tsx"],"names":[],"mappings":"AAEA,OAAO,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAIlD,QAAA,MAAM,QAAQ,4GA2Cb,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -1,7 +0,0 @@
1
- import type React from "react";
2
- import "./HighlighTheme.css";
3
- import "./styles.css";
4
- import type { CodeDiffViewerProps } from "./types.js";
5
- declare const _default: React.ForwardRefExoticComponent<CodeDiffViewerProps & React.RefAttributes<HTMLTableElement>>;
6
- export default _default;
7
- //# sourceMappingURL=CodeDiffViewer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CodeDiffViewer.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/GitDiffViewer/common/CodeDiffViewer/CodeDiffViewer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAY/B,OAAO,qBAAqB,CAAC;AAC7B,OAAO,cAAc,CAAC;AAKtB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;;AA0HtD,wBAA0C"}
@@ -1,10 +0,0 @@
1
- import type React from "react";
2
- import "./styles.css";
3
- import type { AnnotatedDiffLineProps } from "./types.js";
4
- /**
5
- * A component that displays a diff line content, line decorations and AddComment component.
6
- * @returns {React.ReactElement} - Rendered AnnotatedDiffLine
7
- */
8
- declare const AnnotatedDiffLine: ({ newLineNumber, oldLineNumber, diffLineNumber, AddComment, onLineClick, type, ...rest }: AnnotatedDiffLineProps) => React.ReactElement;
9
- export default AnnotatedDiffLine;
10
- //# sourceMappingURL=AnnotatedDiffLine.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AnnotatedDiffLine.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/GitDiffViewer/common/CodeDiffViewer/common/AnnotatedDiffLine/AnnotatedDiffLine.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAIzD;;;GAGG;AACH,QAAA,MAAM,iBAAiB,GAAI,0FAQxB,sBAAsB,KAAG,KAAK,CAAC,YA0DjC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -1,3 +0,0 @@
1
- export { default as AnnotatedDiffLine } from "./AnnotatedDiffLine.js";
2
- export * from "./types.js";
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/GitDiffViewer/common/CodeDiffViewer/common/AnnotatedDiffLine/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AACtE,cAAc,YAAY,CAAC"}
@@ -1,21 +0,0 @@
1
- import type { CodeDiffViewerAddComment, CodeDiffViewerLineSelectOptions } from "../../types.js";
2
- import type { DiffContentLineProps } from "../DiffLine/types.js";
3
- export type AnnotationOptions = {
4
- /**
5
- * The current line number in the new file.
6
- */
7
- newLineNumber: number;
8
- /**
9
- * The current line number in the old file.
10
- */
11
- oldLineNumber: number;
12
- /**
13
- * The current line number in the diff file.
14
- * This is the line number that will be used to match the line decorations.
15
- */
16
- diffLineNumber: number;
17
- AddComment?: CodeDiffViewerAddComment;
18
- onLineClick?: (options: CodeDiffViewerLineSelectOptions) => void;
19
- };
20
- export type AnnotatedDiffLineProps = Omit<DiffContentLineProps, "onLineClick"> & AnnotationOptions;
21
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/GitDiffViewer/common/CodeDiffViewer/common/AnnotatedDiffLine/types.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,wBAAwB,EACxB,+BAA+B,EAChC,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAEjE,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,wBAAwB,CAAC;IACtC,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,+BAA+B,KAAK,IAAI,CAAC;CAClE,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,IAAI,CAAC,oBAAoB,EAAE,aAAa,CAAC,GAC5E,iBAAiB,CAAC"}
@@ -1,11 +0,0 @@
1
- import type React from "react";
2
- import "./styles.css";
3
- import type { DiffLineProps } from "./types.js";
4
- /**
5
- * Displays a single line of a diff as a table row with line numbers.
6
- *
7
- * @returns {React.ReactElement} - Rendered DiffLine
8
- */
9
- declare const DiffLine: ({ id, className, style, onLineClick, ...props }: DiffLineProps) => React.ReactElement;
10
- export default DiffLine;
11
- //# sourceMappingURL=DiffLine.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DiffLine.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/DiffLine.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAKhD;;;;GAIG;AACH,QAAA,MAAM,QAAQ,GAAI,iDAMf,aAAa,KAAG,KAAK,CAAC,YAyExB,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -1,3 +0,0 @@
1
- export { default as DiffLine } from "./DiffLine.js";
2
- export * from "./types.js";
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,eAAe,CAAC;AACpD,cAAc,YAAY,CAAC"}
@@ -1,34 +0,0 @@
1
- import type React from "react";
2
- export type DiffContentLine = {
3
- content: string;
4
- } & ({
5
- type: "add";
6
- addLineNumber: number;
7
- } | {
8
- type: "remove";
9
- removeLineNumber: number;
10
- } | {
11
- type: "context";
12
- addLineNumber: number;
13
- removeLineNumber: number;
14
- });
15
- export type DiffHunkLine = {
16
- type: "hunk";
17
- hunkHeader: string;
18
- hunkIndex: number;
19
- };
20
- type DiffLineCommonProps = {
21
- /** A unique identifier for the DiffLine */
22
- id?: string;
23
- /** Additional CSS classes */
24
- className?: string;
25
- /** Inline styles */
26
- style?: React.CSSProperties;
27
- /** Callback function for when a line is clicked. */
28
- onLineClick?: (() => void) | undefined;
29
- };
30
- export type DiffContentLineProps = DiffLineCommonProps & DiffContentLine;
31
- export type DiffHunkLineProps = DiffLineCommonProps & DiffHunkLine;
32
- export type DiffLineProps = DiffContentLineProps | DiffHunkLineProps;
33
- export {};
34
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,MAAM,eAAe,GAAG;IAC5B,OAAO,EAAE,MAAM,CAAC;CACjB,GAAG,CACA;IACE,IAAI,EAAE,KAAK,CAAC;IACZ,aAAa,EAAE,MAAM,CAAC;CACvB,GACD;IACE,IAAI,EAAE,QAAQ,CAAC;IACf,gBAAgB,EAAE,MAAM,CAAC;CAC1B,GACD;IACE,IAAI,EAAE,SAAS,CAAC;IAEhB,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CACJ,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,KAAK,mBAAmB,GAAG;IACzB,2CAA2C;IAC3C,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oBAAoB;IACpB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,oDAAoD;IACpD,WAAW,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;CACxC,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,mBAAmB,GAAG,eAAe,CAAC;AACzE,MAAM,MAAM,iBAAiB,GAAG,mBAAmB,GAAG,YAAY,CAAC;AACnE,MAAM,MAAM,aAAa,GAAG,oBAAoB,GAAG,iBAAiB,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const CommentIcon: import("react/jsx-runtime").JSX.Element;
2
- //# sourceMappingURL=icons.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/GitDiffViewer/common/CodeDiffViewer/common/icons.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,yCAevB,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from "./DiffLine/index.js";
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/GitDiffViewer/common/CodeDiffViewer/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const tableWidthCSSVar = "--table-width";
2
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/GitDiffViewer/common/CodeDiffViewer/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,kBAAkB,CAAC"}
@@ -1,4 +0,0 @@
1
- export { default as CodeDiffViewer } from "./CodeDiffViewer.js";
2
- export * from "./constants.js";
3
- export * from "./types.js";
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/GitDiffViewer/common/CodeDiffViewer/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAChE,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC"}
@@ -1,34 +0,0 @@
1
- import type React from "react";
2
- export type CodeDiffViewerLineSelectOptions = {
3
- hunkLineNumber: number;
4
- diffLineNumber: number;
5
- };
6
- export type CodeDiffViewerAddComment = (props: {
7
- onClose: () => void;
8
- } & CodeDiffViewerLineSelectOptions) => React.ReactNode;
9
- export type CodeDiffViewerProps = {
10
- /** A unique identifier for the CodeDiffViewer */
11
- id?: string;
12
- /** Additional CSS classes */
13
- className?: string;
14
- /** Add comment element.
15
- * If provided, the code viewer will be in interactive mode.
16
- */
17
- AddComment?: CodeDiffViewerAddComment;
18
- /** Callback function for when a line is clicked.
19
- * If provided, the code viewer will be in interactive mode.
20
- */
21
- onLineClick?: (options: CodeDiffViewerLineSelectOptions) => void;
22
- /** Inline styles */
23
- style?: React.CSSProperties;
24
- /**
25
- * Disable width calculation for the table (default: false).
26
- * This is useful when there is multiple instances of this component on the same page.
27
- * To avoid doing the same width calculation for each instance separately.
28
- *
29
- * Instead, ref the table element and set the width on the parent element.
30
- * To update the table width, call the `utils/updateTableWidth` function.
31
- */
32
- disableWidthCalculation?: boolean;
33
- };
34
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/GitDiffViewer/common/CodeDiffViewer/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,MAAM,+BAA+B,GAAG;IAC5C,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,CACrC,KAAK,EAAE;IACL,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,GAAG,+BAA+B,KAChC,KAAK,CAAC,SAAS,CAAC;AAErB,MAAM,MAAM,mBAAmB,GAAG;IAChC,iDAAiD;IACjD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,UAAU,CAAC,EAAE,wBAAwB,CAAC;IACtC;;OAEG;IACH,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,+BAA+B,KAAK,IAAI,CAAC;IACjE,oBAAoB;IACpB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAE5B;;;;;;;OAOG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACnC,CAAC"}
@@ -1,15 +0,0 @@
1
- import type React from "react";
2
- import "./styles.css";
3
- import type { FileHeaderProps } from "./types.js";
4
- /**
5
- * Displays the file name and change count for a diff.
6
- * With option to add custom elements to the left and right of the file header.
7
- *
8
- * @returns {React.ReactElement} - Rendered FileHeader
9
- */
10
- declare const FileHeader: {
11
- ({ id, children, className, style, hideCollapse, showChangeCount, leftContent, rightContent, ...props }: FileHeaderProps): React.ReactElement;
12
- displayName: string;
13
- };
14
- export default FileHeader;
15
- //# sourceMappingURL=FileHeader.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FileHeader.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/GitDiffViewer/common/FileHeader/FileHeader.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAIlD;;;;;GAKG;AACH,QAAA,MAAM,UAAU;6GAUb,eAAe,GAAG,KAAK,CAAC,YAAY;;CA4EtC,CAAC;AAIF,eAAe,UAAU,CAAC"}
@@ -1,3 +0,0 @@
1
- export { default as FileHeader } from "./FileHeader.js";
2
- export * from "./types.js";
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/GitDiffViewer/common/FileHeader/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACxD,cAAc,YAAY,CAAC"}
@@ -1,17 +0,0 @@
1
- import type React from "react";
2
- export type FileHeaderProps = {
3
- /** A unique identifier for the FileHeader */
4
- id?: string;
5
- /** Additional CSS classes */
6
- className?: string;
7
- /** Child elements */
8
- children?: React.ReactNode;
9
- /** Inline styles */
10
- style?: React.CSSProperties;
11
- /** Shown by default */
12
- hideCollapse?: boolean;
13
- showChangeCount?: boolean;
14
- leftContent?: React.ReactNode;
15
- rightContent?: React.ReactNode;
16
- };
17
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/GitDiffViewer/common/FileHeader/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,MAAM,eAAe,GAAG;IAC5B,6CAA6C;IAC7C,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qBAAqB;IACrB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,oBAAoB;IACpB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,uBAAuB;IACvB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAChC,CAAC"}
@@ -1,3 +0,0 @@
1
- export * from "./CodeDiffViewer/index.js";
2
- export * from "./FileHeader/index.js";
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/ui/GitDiffViewer/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC"}
@@ -1,2 +0,0 @@
1
- export { default as useGitDiffViewer } from "./useGitDiffViewer.js";
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/ui/GitDiffViewer/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,uBAAuB,CAAC"}
@@ -1,3 +0,0 @@
1
- declare const useGitDiffViewer: () => import("../types.js").ContextOptions;
2
- export default useGitDiffViewer;
3
- //# sourceMappingURL=useGitDiffViewer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useGitDiffViewer.d.ts","sourceRoot":"","sources":["../../../../../src/ui/GitDiffViewer/hooks/useGitDiffViewer.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,gBAAgB,4CAQrB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -1,10 +0,0 @@
1
- export * from "./hooks/index.js";
2
- export type { DiffFile as GitDiffFile, Hunk as GitDiffHunk } from "./types.js";
3
- export * from "./utils/index.js";
4
- import { CodeDiffViewer, FileHeader } from "./common/index.js";
5
- import Provider from "./Provider.js";
6
- export declare const GitDiffViewer: typeof Provider & {
7
- FileHeader: typeof FileHeader;
8
- CodeDiffViewer: typeof CodeDiffViewer;
9
- };
10
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/GitDiffViewer/index.ts"],"names":[],"mappings":"AACA,cAAc,kBAAkB,CAAC;AACjC,YAAY,EAAE,QAAQ,IAAI,WAAW,EAAE,IAAI,IAAI,WAAW,EAAE,MAAM,YAAY,CAAC;AAC/E,cAAc,kBAAkB,CAAC;AAEjC,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,QAAQ,MAAM,eAAe,CAAC;AAErC,eAAO,MAAM,aAAa,EAAe,OAAO,QAAQ,GAAG;IACzD,UAAU,EAAE,OAAO,UAAU,CAAC;IAC9B,cAAc,EAAE,OAAO,cAAc,CAAC;CACvC,CAAC"}
@@ -1,75 +0,0 @@
1
- import type { AllOrNone } from "@canonical/utils";
2
- import type React from "react";
3
- /**
4
- * When this is provided, the component will add support for collapsing the diff code section.
5
- */
6
- export type CollapseOption = {
7
- /**
8
- * Whether the diff code section is collapsed.
9
- */
10
- isCollapsed: boolean;
11
- /**
12
- * Toggle the collapse state of the diff code section.
13
- */
14
- onCollapseToggle: (collapsed: boolean) => void;
15
- };
16
- export type DiffOptions = {
17
- /**
18
- * The diff file being displayed.
19
- *
20
- * In case you need to parse raw diff text,
21
- * you can use the `parseDiff` function from `@canonical/react-ds-app-launchpad`
22
- */
23
- diff: DiffFile;
24
- };
25
- export type WrapLinesOption = {
26
- /**
27
- * Whether the code lines should not overflow.
28
- */
29
- wrapLines?: boolean;
30
- };
31
- export type LineDecorationOptions = {
32
- /**
33
- * Additional UI elements to be displayed bellow the code diff lines.
34
- */
35
- lineDecorations?: Record<number, React.ReactElement>;
36
- };
37
- type UserContextOptions = LineDecorationOptions & DiffOptions & WrapLinesOption & AllOrNone<CollapseOption>;
38
- type ManagedContextOptions = {
39
- addCommentOpenLocations: Set<number>;
40
- toggleAddCommentLocation: (lineNumber: number) => void;
41
- };
42
- export type ContextOptions = UserContextOptions & ManagedContextOptions;
43
- export type ProviderOptions = {
44
- id?: string;
45
- className?: string;
46
- style?: React.CSSProperties;
47
- /**
48
- * Consider using `GitDiffViewer.FileHeader`, and `GitDiffViewer.CodeDiff` components.
49
- */
50
- children?: React.ReactNode;
51
- } & UserContextOptions;
52
- export type Position = {
53
- start: number;
54
- end: number;
55
- };
56
- export type Hunk = {
57
- header: string;
58
- positions: {
59
- old: Position;
60
- new: Position;
61
- diff: Position;
62
- };
63
- lines: {
64
- type: "add" | "remove" | "context";
65
- content: string;
66
- }[];
67
- };
68
- export type DiffFile = {
69
- oldPath: string;
70
- newPath: string;
71
- hunks: Hunk[];
72
- fileChangeState: "none" | "added" | "deleted" | "modified";
73
- };
74
- export {};
75
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/ui/GitDiffViewer/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,WAAW,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,gBAAgB,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;CAChD,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB;;;;;OAKG;IACH,IAAI,EAAE,QAAQ,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;CACtD,CAAC;AAEF,KAAK,kBAAkB,GAAG,qBAAqB,GAC7C,WAAW,GACX,eAAe,GACf,SAAS,CAAC,cAAc,CAAC,CAAC;AAE5B,KAAK,qBAAqB,GAAG;IAC3B,uBAAuB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACrC,wBAAwB,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;CACxD,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,kBAAkB,GAAG,qBAAqB,CAAC;AAExE,MAAM,MAAM,eAAe,GAAG;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,GAAG,kBAAkB,CAAC;AAEvB,MAAM,MAAM,QAAQ,GAAG;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,IAAI,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE;QACT,GAAG,EAAE,QAAQ,CAAC;QACd,GAAG,EAAE,QAAQ,CAAC;QACd,IAAI,EAAE,QAAQ,CAAC;KAChB,CAAC;IACF,KAAK,EAAE;QACL,IAAI,EAAE,KAAK,GAAG,QAAQ,GAAG,SAAS,CAAC;QACnC,OAAO,EAAE,MAAM,CAAC;KACjB,EAAE,CAAC;CACL,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,eAAe,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,UAAU,CAAC;CAC5D,CAAC"}
@@ -1,4 +0,0 @@
1
- import type { Hunk } from "../types.js";
2
- declare function highlightDiffHunkLines(filePath: string, hunkLines: Hunk["lines"]): string[];
3
- export default highlightDiffHunkLines;
4
- //# sourceMappingURL=highlightDiffHunkLines.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"highlightDiffHunkLines.d.ts","sourceRoot":"","sources":["../../../../../src/ui/GitDiffViewer/utils/highlightDiffHunkLines.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AA8DxC,iBAAS,sBAAsB,CAC7B,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,GACvB,MAAM,EAAE,CAwCV;AAED,eAAe,sBAAsB,CAAC"}
@@ -1,3 +0,0 @@
1
- export { default as highlightDiffHunkLines } from "./highlightDiffHunkLines.js";
2
- export { default as parseGitDiff } from "./parseGitDiff.js";
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/ui/GitDiffViewer/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAChF,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,mBAAmB,CAAC"}
@@ -1,4 +0,0 @@
1
- import type { DiffFile } from "../types.js";
2
- declare function parseGitDiff(diffText: string): DiffFile[];
3
- export default parseGitDiff;
4
- //# sourceMappingURL=parseGitDiff.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parseGitDiff.d.ts","sourceRoot":"","sources":["../../../../../src/ui/GitDiffViewer/utils/parseGitDiff.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAkB,MAAM,aAAa,CAAC;AAE5D,iBAAS,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,QAAQ,EAAE,CA+FlD;AAED,eAAe,YAAY,CAAC"}
@@ -1,10 +0,0 @@
1
- import type React from "react";
2
- import "../GitDiffViewer/common/CodeDiffViewer/HighlighTheme.css";
3
- import "./styles.css";
4
- import type { MarkdownEditorProps } from "./types.js";
5
- /**
6
- * A dual-mode Markdown editor for writing and previewing Markdown content.
7
- */
8
- declare const MarkdownEditor: React.ForwardRefExoticComponent<Omit<MarkdownEditorProps, "ref"> & React.RefAttributes<HTMLTextAreaElement>>;
9
- export default MarkdownEditor;
10
- //# sourceMappingURL=MarkdownEditor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MarkdownEditor.d.ts","sourceRoot":"","sources":["../../../../src/ui/MarkdownEditor/MarkdownEditor.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAa/B,OAAO,0DAA0D,CAAC;AAQlE,OAAO,cAAc,CAAC;AACtB,OAAO,KAAK,EAAY,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAOhE;;GAEG;AACH,QAAA,MAAM,cAAc,8GA2NnB,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -1,8 +0,0 @@
1
- import "./styles.css";
2
- import type { ToolbarComponent } from "./types.js";
3
- /**
4
- * A horizontal container that groups related controls in a toolbar.
5
- */
6
- declare const Toolbar: ToolbarComponent;
7
- export default Toolbar;
8
- //# sourceMappingURL=Toolbar.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Toolbar.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/MarkdownEditor/common/Toolbar/Toolbar.tsx"],"names":[],"mappings":"AAQA,OAAO,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAInD;;GAEG;AACH,QAAA,MAAM,OAAO,EAuDP,gBAAgB,CAAC;AAMvB,eAAe,OAAO,CAAC"}
@@ -1,9 +0,0 @@
1
- import type React from "react";
2
- import "./styles.css";
3
- import type { ToolbarButtonProps } from "./types.js";
4
- /**
5
- * An accessible button with tooltip support designed for use in toolbars.
6
- */
7
- declare const ToolbarButton: ({ children, className, style, label, shortcut, ...buttonProps }: ToolbarButtonProps) => React.ReactElement;
8
- export default ToolbarButton;
9
- //# sourceMappingURL=Button.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/MarkdownEditor/common/Toolbar/common/Button/Button.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAIrD;;GAEG;AACH,QAAA,MAAM,aAAa,GAAI,iEAOpB,kBAAkB,KAAG,KAAK,CAAC,YA8B7B,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1,3 +0,0 @@
1
- export { default as ToolbarButton } from "./Button.js";
2
- export * from "./types.js";
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/MarkdownEditor/common/Toolbar/common/Button/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,aAAa,CAAC;AACvD,cAAc,YAAY,CAAC"}
@@ -1,14 +0,0 @@
1
- import type React from "react";
2
- export type ToolbarButtonProps = {
3
- /** Additional CSS classes */
4
- className?: string;
5
- /** Child elements */
6
- children?: React.ReactNode;
7
- /** Inline styles */
8
- style?: React.CSSProperties;
9
- /** Toolbar button label */
10
- label: string;
11
- /** The shortcut key to trigger the button */
12
- shortcut?: string;
13
- } & React.ButtonHTMLAttributes<HTMLButtonElement>;
14
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/MarkdownEditor/common/Toolbar/common/Button/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,MAAM,kBAAkB,GAAG;IAC/B,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qBAAqB;IACrB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,oBAAoB;IACpB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,2BAA2B;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC"}
@@ -1,9 +0,0 @@
1
- import type React from "react";
2
- import type { ToolbarGroupProps } from "./types.js";
3
- import "./styles.css";
4
- /**
5
- * A container for grouping related controls within a toolbar.
6
- */
7
- declare const ToolbarGroup: ({ id, children, className, style, label, }: ToolbarGroupProps) => React.ReactElement;
8
- export default ToolbarGroup;
9
- //# sourceMappingURL=Group.d.ts.map