@canonical/react-ds-app-launchpad 0.7.1-experimental.0 → 0.9.0-experimental.10

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 (393) hide show
  1. package/dist/esm/ui/EditableBlock/Context.js +4 -0
  2. package/dist/esm/ui/EditableBlock/Context.js.map +1 -0
  3. package/dist/esm/ui/EditableBlock/EditableBlock.js +33 -0
  4. package/dist/esm/ui/EditableBlock/EditableBlock.js.map +1 -0
  5. package/dist/esm/ui/EditableBlock/EditableBlock.test.js +57 -0
  6. package/dist/esm/ui/EditableBlock/EditableBlock.test.js.map +1 -0
  7. package/dist/esm/ui/EditableBlock/hooks/index.js +2 -0
  8. package/dist/esm/ui/EditableBlock/hooks/index.js.map +1 -0
  9. package/dist/esm/ui/EditableBlock/hooks/useEditableBlock.js +11 -0
  10. package/dist/esm/ui/EditableBlock/hooks/useEditableBlock.js.map +1 -0
  11. package/dist/esm/ui/EditableBlock/index.js +3 -0
  12. package/dist/esm/ui/EditableBlock/index.js.map +1 -0
  13. package/dist/esm/ui/EditableBlock/styles.css +38 -0
  14. package/dist/esm/ui/EditableBlock/types.js.map +1 -0
  15. package/dist/esm/ui/FileTree/Context.js +4 -0
  16. package/dist/esm/ui/FileTree/Context.js.map +1 -0
  17. package/dist/esm/ui/FileTree/Provider.js +74 -0
  18. package/dist/esm/ui/FileTree/Provider.js.map +1 -0
  19. package/dist/esm/ui/FileTree/common/File/File.js +12 -0
  20. package/dist/esm/ui/FileTree/common/File/File.js.map +1 -0
  21. package/dist/esm/ui/FileTree/common/File/index.js +4 -0
  22. package/dist/esm/ui/FileTree/common/File/index.js.map +1 -0
  23. package/dist/esm/ui/FileTree/common/File/styles.css +4 -0
  24. package/dist/esm/ui/FileTree/common/File/types.js.map +1 -0
  25. package/dist/esm/ui/FileTree/common/Folder/Folder.js +12 -0
  26. package/dist/esm/ui/FileTree/common/Folder/Folder.js.map +1 -0
  27. package/dist/esm/ui/FileTree/common/Folder/index.js +4 -0
  28. package/dist/esm/ui/FileTree/common/Folder/index.js.map +1 -0
  29. package/dist/esm/ui/FileTree/common/Folder/styles.css +4 -0
  30. package/dist/esm/ui/FileTree/common/Folder/types.js +2 -0
  31. package/dist/esm/ui/FileTree/common/Folder/types.js.map +1 -0
  32. package/dist/esm/ui/FileTree/common/IndentationBlock/IndentationBlock.js +16 -0
  33. package/dist/esm/ui/FileTree/common/IndentationBlock/IndentationBlock.js.map +1 -0
  34. package/dist/esm/ui/FileTree/common/IndentationBlock/index.js +4 -0
  35. package/dist/esm/ui/FileTree/common/IndentationBlock/index.js.map +1 -0
  36. package/dist/esm/ui/FileTree/common/IndentationBlock/styles.css +32 -0
  37. package/dist/esm/ui/FileTree/common/IndentationBlock/types.js +2 -0
  38. package/dist/esm/ui/FileTree/common/IndentationBlock/types.js.map +1 -0
  39. package/dist/esm/ui/FileTree/common/Node/Context.js +10 -0
  40. package/dist/esm/ui/FileTree/common/Node/Context.js.map +1 -0
  41. package/dist/esm/ui/FileTree/common/Node/Provider.js +163 -0
  42. package/dist/esm/ui/FileTree/common/Node/Provider.js.map +1 -0
  43. package/dist/esm/ui/FileTree/common/Node/hooks/index.js +2 -0
  44. package/dist/esm/ui/FileTree/common/Node/hooks/index.js.map +1 -0
  45. package/dist/esm/ui/FileTree/common/Node/hooks/useNode.js +12 -0
  46. package/dist/esm/ui/FileTree/common/Node/hooks/useNode.js.map +1 -0
  47. package/dist/esm/ui/FileTree/common/Node/index.js +4 -0
  48. package/dist/esm/ui/FileTree/common/Node/index.js.map +1 -0
  49. package/dist/esm/ui/FileTree/common/Node/styles.css +60 -0
  50. package/dist/esm/ui/FileTree/common/Node/types.js +2 -0
  51. package/dist/esm/ui/FileTree/common/Node/types.js.map +1 -0
  52. package/dist/esm/ui/FileTree/common/SearchBox/SearchBox.js +31 -0
  53. package/dist/esm/ui/FileTree/common/SearchBox/SearchBox.js.map +1 -0
  54. package/dist/esm/ui/FileTree/common/SearchBox/index.js +4 -0
  55. package/dist/esm/ui/FileTree/common/SearchBox/index.js.map +1 -0
  56. package/dist/esm/ui/FileTree/common/SearchBox/styles.css +61 -0
  57. package/dist/esm/ui/FileTree/common/SearchBox/types.js +2 -0
  58. package/dist/esm/ui/FileTree/common/SearchBox/types.js.map +1 -0
  59. package/dist/esm/ui/FileTree/common/TreeView/TreeView.js +60 -0
  60. package/dist/esm/ui/FileTree/common/TreeView/TreeView.js.map +1 -0
  61. package/dist/esm/ui/FileTree/common/TreeView/index.js +4 -0
  62. package/dist/esm/ui/FileTree/common/TreeView/index.js.map +1 -0
  63. package/dist/esm/ui/FileTree/common/TreeView/types.js +2 -0
  64. package/dist/esm/ui/FileTree/common/TreeView/types.js.map +1 -0
  65. package/dist/esm/ui/FileTree/common/index.js +5 -0
  66. package/dist/esm/ui/FileTree/common/index.js.map +1 -0
  67. package/dist/esm/ui/FileTree/hooks/index.js +2 -0
  68. package/dist/esm/ui/FileTree/hooks/index.js.map +1 -0
  69. package/dist/esm/ui/FileTree/hooks/useFileTree.js +11 -0
  70. package/dist/esm/ui/FileTree/hooks/useFileTree.js.map +1 -0
  71. package/dist/esm/ui/FileTree/index.js +10 -0
  72. package/dist/esm/ui/FileTree/index.js.map +1 -0
  73. package/dist/esm/ui/FileTree/styles.css +47 -0
  74. package/dist/esm/ui/FileTree/types.js +2 -0
  75. package/dist/esm/ui/{Button → FileTree}/types.js.map +1 -1
  76. package/dist/esm/ui/FileTree/utils/hashNodeName.js +11 -0
  77. package/dist/esm/ui/FileTree/utils/hashNodeName.js.map +1 -0
  78. package/dist/esm/ui/FileTree/utils/index.js +2 -0
  79. package/dist/esm/ui/FileTree/utils/index.js.map +1 -0
  80. package/dist/esm/ui/GitDiffViewer/Context.js +4 -0
  81. package/dist/esm/ui/GitDiffViewer/Context.js.map +1 -0
  82. package/dist/esm/ui/GitDiffViewer/Provider.js +31 -0
  83. package/dist/esm/ui/GitDiffViewer/Provider.js.map +1 -0
  84. package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/CodeDiffViewer.js +119 -0
  85. package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/CodeDiffViewer.js.map +1 -0
  86. package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/HighlighTheme.css +171 -0
  87. package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/DiffLine.js +33 -0
  88. package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/DiffLine.js.map +1 -0
  89. package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/index.js +4 -0
  90. package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/index.js.map +1 -0
  91. package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/styles.css +111 -0
  92. package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/types.js +2 -0
  93. package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/types.js.map +1 -0
  94. package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/common/index.js +2 -0
  95. package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/common/index.js.map +1 -0
  96. package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/index.js +4 -0
  97. package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/index.js.map +1 -0
  98. package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/styles.css +39 -0
  99. package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/types.js +2 -0
  100. package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/types.js.map +1 -0
  101. package/dist/esm/ui/GitDiffViewer/common/FileHeader/FileHeader.js +35 -0
  102. package/dist/esm/ui/GitDiffViewer/common/FileHeader/FileHeader.js.map +1 -0
  103. package/dist/esm/ui/GitDiffViewer/common/FileHeader/index.js +4 -0
  104. package/dist/esm/ui/GitDiffViewer/common/FileHeader/index.js.map +1 -0
  105. package/dist/esm/ui/GitDiffViewer/common/FileHeader/styles.css +75 -0
  106. package/dist/esm/ui/GitDiffViewer/common/FileHeader/types.js +2 -0
  107. package/dist/esm/ui/GitDiffViewer/common/FileHeader/types.js.map +1 -0
  108. package/dist/esm/ui/GitDiffViewer/common/index.js +3 -0
  109. package/dist/esm/ui/GitDiffViewer/common/index.js.map +1 -0
  110. package/dist/esm/ui/GitDiffViewer/hooks/index.js +2 -0
  111. package/dist/esm/ui/GitDiffViewer/hooks/index.js.map +1 -0
  112. package/dist/esm/ui/GitDiffViewer/hooks/useGitDiffViewer.js +11 -0
  113. package/dist/esm/ui/GitDiffViewer/hooks/useGitDiffViewer.js.map +1 -0
  114. package/dist/esm/ui/GitDiffViewer/index.js +9 -0
  115. package/dist/esm/ui/GitDiffViewer/index.js.map +1 -0
  116. package/dist/esm/ui/GitDiffViewer/styles.css +38 -0
  117. package/dist/esm/ui/GitDiffViewer/types.js +2 -0
  118. package/dist/esm/ui/GitDiffViewer/types.js.map +1 -0
  119. package/dist/esm/ui/GitDiffViewer/utils/index.js +2 -0
  120. package/dist/esm/ui/GitDiffViewer/utils/index.js.map +1 -0
  121. package/dist/esm/ui/GitDiffViewer/utils/parseGitDiff.js +73 -0
  122. package/dist/esm/ui/GitDiffViewer/utils/parseGitDiff.js.map +1 -0
  123. package/dist/esm/ui/MarkdownEditor/MarkdownEditor.js +74 -0
  124. package/dist/esm/ui/MarkdownEditor/MarkdownEditor.js.map +1 -0
  125. package/dist/esm/ui/MarkdownEditor/common/Toolbar/Toolbar.js +52 -0
  126. package/dist/esm/ui/MarkdownEditor/common/Toolbar/Toolbar.js.map +1 -0
  127. package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Button/Button.js +19 -0
  128. package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Button/Button.js.map +1 -0
  129. package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Button/index.js +4 -0
  130. package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Button/index.js.map +1 -0
  131. package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Button/styles.css +17 -0
  132. package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Button/types.js +2 -0
  133. package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Button/types.js.map +1 -0
  134. package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Group/Group.js +13 -0
  135. package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Group/Group.js.map +1 -0
  136. package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Group/index.js +4 -0
  137. package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Group/index.js.map +1 -0
  138. package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Group/styles.css +7 -0
  139. package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Group/types.js +2 -0
  140. package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Group/types.js.map +1 -0
  141. package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Separator/Separator.js +13 -0
  142. package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Separator/Separator.js.map +1 -0
  143. package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Separator/index.js +4 -0
  144. package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Separator/index.js.map +1 -0
  145. package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Separator/styles.css +7 -0
  146. package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Separator/types.js +2 -0
  147. package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Separator/types.js.map +1 -0
  148. package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/index.js +4 -0
  149. package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/index.js.map +1 -0
  150. package/dist/esm/ui/MarkdownEditor/common/Toolbar/index.js +9 -0
  151. package/dist/esm/ui/MarkdownEditor/common/Toolbar/index.js.map +1 -0
  152. package/dist/esm/ui/MarkdownEditor/common/Toolbar/styles.css +16 -0
  153. package/dist/esm/ui/MarkdownEditor/common/Toolbar/types.js +2 -0
  154. package/dist/esm/ui/MarkdownEditor/common/Toolbar/types.js.map +1 -0
  155. package/dist/esm/ui/MarkdownEditor/common/ViewModeTabs/ViewModeTabs.js +34 -0
  156. package/dist/esm/ui/MarkdownEditor/common/ViewModeTabs/ViewModeTabs.js.map +1 -0
  157. package/dist/esm/ui/MarkdownEditor/common/ViewModeTabs/index.js +4 -0
  158. package/dist/esm/ui/MarkdownEditor/common/ViewModeTabs/index.js.map +1 -0
  159. package/dist/esm/ui/MarkdownEditor/common/ViewModeTabs/styles.css +42 -0
  160. package/dist/esm/ui/MarkdownEditor/common/ViewModeTabs/types.js +2 -0
  161. package/dist/esm/ui/MarkdownEditor/common/ViewModeTabs/types.js.map +1 -0
  162. package/dist/esm/ui/MarkdownEditor/common/icons.js +10 -0
  163. package/dist/esm/ui/MarkdownEditor/common/icons.js.map +1 -0
  164. package/dist/esm/ui/MarkdownEditor/common/index.js +4 -0
  165. package/dist/esm/ui/MarkdownEditor/common/index.js.map +1 -0
  166. package/dist/esm/ui/MarkdownEditor/hooks/index.js +2 -0
  167. package/dist/esm/ui/MarkdownEditor/hooks/index.js.map +1 -0
  168. package/dist/esm/ui/MarkdownEditor/hooks/useEditor.js +277 -0
  169. package/dist/esm/ui/MarkdownEditor/hooks/useEditor.js.map +1 -0
  170. package/dist/esm/ui/MarkdownEditor/index.js +4 -0
  171. package/dist/esm/ui/MarkdownEditor/index.js.map +1 -0
  172. package/dist/esm/ui/MarkdownEditor/styles.css +69 -0
  173. package/dist/esm/ui/MarkdownEditor/types.js +2 -0
  174. package/dist/esm/ui/MarkdownEditor/types.js.map +1 -0
  175. package/dist/esm/ui/RelativeTime/RelativeTime.js +66 -0
  176. package/dist/esm/ui/RelativeTime/RelativeTime.js.map +1 -0
  177. package/dist/esm/ui/RelativeTime/index.js +4 -0
  178. package/dist/esm/ui/RelativeTime/index.js.map +1 -0
  179. package/dist/esm/ui/RelativeTime/types.js +2 -0
  180. package/dist/esm/ui/{Chip → RelativeTime}/types.js.map +1 -1
  181. package/dist/esm/ui/RelativeTime/utils/constants.js +6 -0
  182. package/dist/esm/ui/RelativeTime/utils/constants.js.map +1 -0
  183. package/dist/esm/ui/RelativeTime/utils/formatHumanTime.js +43 -0
  184. package/dist/esm/ui/RelativeTime/utils/formatHumanTime.js.map +1 -0
  185. package/dist/esm/ui/RelativeTime/utils/getOptimalUpdateInterval.js +24 -0
  186. package/dist/esm/ui/RelativeTime/utils/getOptimalUpdateInterval.js.map +1 -0
  187. package/dist/esm/ui/RelativeTime/utils/index.js +4 -0
  188. package/dist/esm/ui/RelativeTime/utils/index.js.map +1 -0
  189. package/dist/esm/ui/RelativeTime/utils/parseInstant.js +22 -0
  190. package/dist/esm/ui/RelativeTime/utils/parseInstant.js.map +1 -0
  191. package/dist/esm/ui/index.js +5 -1
  192. package/dist/esm/ui/index.js.map +1 -1
  193. package/dist/types/ui/EditableBlock/Context.d.ts +4 -0
  194. package/dist/types/ui/EditableBlock/Context.d.ts.map +1 -0
  195. package/dist/types/ui/EditableBlock/EditableBlock.d.ts +10 -0
  196. package/dist/types/ui/EditableBlock/EditableBlock.d.ts.map +1 -0
  197. package/dist/types/ui/EditableBlock/EditableBlock.test.d.ts +2 -0
  198. package/dist/types/ui/EditableBlock/EditableBlock.test.d.ts.map +1 -0
  199. package/dist/types/ui/EditableBlock/hooks/index.d.ts +2 -0
  200. package/dist/types/ui/EditableBlock/hooks/index.d.ts.map +1 -0
  201. package/dist/types/ui/EditableBlock/hooks/useEditableBlock.d.ts +4 -0
  202. package/dist/types/ui/EditableBlock/hooks/useEditableBlock.d.ts.map +1 -0
  203. package/dist/types/ui/EditableBlock/index.d.ts +3 -0
  204. package/dist/types/ui/EditableBlock/index.d.ts.map +1 -0
  205. package/dist/types/ui/EditableBlock/types.d.ts +24 -0
  206. package/dist/types/ui/EditableBlock/types.d.ts.map +1 -0
  207. package/dist/types/ui/FileTree/Context.d.ts +4 -0
  208. package/dist/types/ui/FileTree/Context.d.ts.map +1 -0
  209. package/dist/types/ui/FileTree/Provider.d.ts +7 -0
  210. package/dist/types/ui/FileTree/Provider.d.ts.map +1 -0
  211. package/dist/types/ui/FileTree/common/File/File.d.ts +10 -0
  212. package/dist/types/ui/FileTree/common/File/File.d.ts.map +1 -0
  213. package/dist/types/ui/FileTree/common/File/index.d.ts +3 -0
  214. package/dist/types/ui/FileTree/common/File/index.d.ts.map +1 -0
  215. package/dist/types/ui/FileTree/common/File/types.d.ts +16 -0
  216. package/dist/types/ui/FileTree/common/File/types.d.ts.map +1 -0
  217. package/dist/types/ui/FileTree/common/Folder/Folder.d.ts +10 -0
  218. package/dist/types/ui/FileTree/common/Folder/Folder.d.ts.map +1 -0
  219. package/dist/types/ui/FileTree/common/Folder/index.d.ts +3 -0
  220. package/dist/types/ui/FileTree/common/Folder/index.d.ts.map +1 -0
  221. package/dist/types/ui/FileTree/common/Folder/types.d.ts +16 -0
  222. package/dist/types/ui/FileTree/common/Folder/types.d.ts.map +1 -0
  223. package/dist/types/ui/FileTree/common/IndentationBlock/IndentationBlock.d.ts +10 -0
  224. package/dist/types/ui/FileTree/common/IndentationBlock/IndentationBlock.d.ts.map +1 -0
  225. package/dist/types/ui/FileTree/common/IndentationBlock/index.d.ts +3 -0
  226. package/dist/types/ui/FileTree/common/IndentationBlock/index.d.ts.map +1 -0
  227. package/dist/types/ui/FileTree/common/IndentationBlock/types.d.ts +12 -0
  228. package/dist/types/ui/FileTree/common/IndentationBlock/types.d.ts.map +1 -0
  229. package/dist/types/ui/FileTree/common/Node/Context.d.ts +5 -0
  230. package/dist/types/ui/FileTree/common/Node/Context.d.ts.map +1 -0
  231. package/dist/types/ui/FileTree/common/Node/Provider.d.ts +6 -0
  232. package/dist/types/ui/FileTree/common/Node/Provider.d.ts.map +1 -0
  233. package/dist/types/ui/FileTree/common/Node/hooks/index.d.ts +2 -0
  234. package/dist/types/ui/FileTree/common/Node/hooks/index.d.ts.map +1 -0
  235. package/dist/types/ui/FileTree/common/Node/hooks/useNode.d.ts +3 -0
  236. package/dist/types/ui/FileTree/common/Node/hooks/useNode.d.ts.map +1 -0
  237. package/dist/types/ui/FileTree/common/Node/index.d.ts +5 -0
  238. package/dist/types/ui/FileTree/common/Node/index.d.ts.map +1 -0
  239. package/dist/types/ui/FileTree/common/Node/types.d.ts +28 -0
  240. package/dist/types/ui/FileTree/common/Node/types.d.ts.map +1 -0
  241. package/dist/types/ui/FileTree/common/SearchBox/SearchBox.d.ts +10 -0
  242. package/dist/types/ui/FileTree/common/SearchBox/SearchBox.d.ts.map +1 -0
  243. package/dist/types/ui/FileTree/common/SearchBox/index.d.ts +3 -0
  244. package/dist/types/ui/FileTree/common/SearchBox/index.d.ts.map +1 -0
  245. package/dist/types/ui/FileTree/common/SearchBox/types.d.ts +12 -0
  246. package/dist/types/ui/FileTree/common/SearchBox/types.d.ts.map +1 -0
  247. package/dist/types/ui/FileTree/common/TreeView/TreeView.d.ts +16 -0
  248. package/dist/types/ui/FileTree/common/TreeView/TreeView.d.ts.map +1 -0
  249. package/dist/types/ui/FileTree/common/TreeView/index.d.ts +3 -0
  250. package/dist/types/ui/FileTree/common/TreeView/index.d.ts.map +1 -0
  251. package/dist/types/ui/FileTree/common/TreeView/types.d.ts +20 -0
  252. package/dist/types/ui/FileTree/common/TreeView/types.d.ts.map +1 -0
  253. package/dist/types/ui/FileTree/common/index.d.ts +5 -0
  254. package/dist/types/ui/FileTree/common/index.d.ts.map +1 -0
  255. package/dist/types/ui/FileTree/hooks/index.d.ts +2 -0
  256. package/dist/types/ui/FileTree/hooks/index.d.ts.map +1 -0
  257. package/dist/types/ui/FileTree/hooks/useFileTree.d.ts +3 -0
  258. package/dist/types/ui/FileTree/hooks/useFileTree.d.ts.map +1 -0
  259. package/dist/types/ui/FileTree/index.d.ts +5 -0
  260. package/dist/types/ui/FileTree/index.d.ts.map +1 -0
  261. package/dist/types/ui/FileTree/types.d.ts +69 -0
  262. package/dist/types/ui/FileTree/types.d.ts.map +1 -0
  263. package/dist/types/ui/FileTree/utils/hashNodeName.d.ts +3 -0
  264. package/dist/types/ui/FileTree/utils/hashNodeName.d.ts.map +1 -0
  265. package/dist/types/ui/FileTree/utils/index.d.ts +2 -0
  266. package/dist/types/ui/FileTree/utils/index.d.ts.map +1 -0
  267. package/dist/types/ui/GitDiffViewer/Context.d.ts +4 -0
  268. package/dist/types/ui/GitDiffViewer/Context.d.ts.map +1 -0
  269. package/dist/types/ui/GitDiffViewer/Provider.d.ts +5 -0
  270. package/dist/types/ui/GitDiffViewer/Provider.d.ts.map +1 -0
  271. package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/CodeDiffViewer.d.ts +16 -0
  272. package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/CodeDiffViewer.d.ts.map +1 -0
  273. package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/DiffLine.d.ts +11 -0
  274. package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/DiffLine.d.ts.map +1 -0
  275. package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/index.d.ts +3 -0
  276. package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/index.d.ts.map +1 -0
  277. package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/types.d.ts +20 -0
  278. package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/types.d.ts.map +1 -0
  279. package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/common/index.d.ts +2 -0
  280. package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/common/index.d.ts.map +1 -0
  281. package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/index.d.ts +3 -0
  282. package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/index.d.ts.map +1 -0
  283. package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/types.d.ts +18 -0
  284. package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/types.d.ts.map +1 -0
  285. package/dist/types/ui/GitDiffViewer/common/FileHeader/FileHeader.d.ts +15 -0
  286. package/dist/types/ui/GitDiffViewer/common/FileHeader/FileHeader.d.ts.map +1 -0
  287. package/dist/types/ui/GitDiffViewer/common/FileHeader/index.d.ts +3 -0
  288. package/dist/types/ui/GitDiffViewer/common/FileHeader/index.d.ts.map +1 -0
  289. package/dist/types/ui/GitDiffViewer/common/FileHeader/types.d.ts +17 -0
  290. package/dist/types/ui/GitDiffViewer/common/FileHeader/types.d.ts.map +1 -0
  291. package/dist/types/ui/GitDiffViewer/common/index.d.ts +3 -0
  292. package/dist/types/ui/GitDiffViewer/common/index.d.ts.map +1 -0
  293. package/dist/types/ui/GitDiffViewer/hooks/index.d.ts +2 -0
  294. package/dist/types/ui/GitDiffViewer/hooks/index.d.ts.map +1 -0
  295. package/dist/types/ui/GitDiffViewer/hooks/useGitDiffViewer.d.ts +3 -0
  296. package/dist/types/ui/GitDiffViewer/hooks/useGitDiffViewer.d.ts.map +1 -0
  297. package/dist/types/ui/GitDiffViewer/index.d.ts +6 -0
  298. package/dist/types/ui/GitDiffViewer/index.d.ts.map +1 -0
  299. package/dist/types/ui/GitDiffViewer/types.d.ts +77 -0
  300. package/dist/types/ui/GitDiffViewer/types.d.ts.map +1 -0
  301. package/dist/types/ui/GitDiffViewer/utils/index.d.ts +2 -0
  302. package/dist/types/ui/GitDiffViewer/utils/index.d.ts.map +1 -0
  303. package/dist/types/ui/GitDiffViewer/utils/parseGitDiff.d.ts +4 -0
  304. package/dist/types/ui/GitDiffViewer/utils/parseGitDiff.d.ts.map +1 -0
  305. package/dist/types/ui/MarkdownEditor/MarkdownEditor.d.ts +10 -0
  306. package/dist/types/ui/MarkdownEditor/MarkdownEditor.d.ts.map +1 -0
  307. package/dist/types/ui/MarkdownEditor/common/Toolbar/Toolbar.d.ts +8 -0
  308. package/dist/types/ui/MarkdownEditor/common/Toolbar/Toolbar.d.ts.map +1 -0
  309. package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Button/Button.d.ts +9 -0
  310. package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Button/Button.d.ts.map +1 -0
  311. package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Button/index.d.ts +3 -0
  312. package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Button/index.d.ts.map +1 -0
  313. package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Button/types.d.ts +14 -0
  314. package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Button/types.d.ts.map +1 -0
  315. package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Group/Group.d.ts +9 -0
  316. package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Group/Group.d.ts.map +1 -0
  317. package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Group/index.d.ts +3 -0
  318. package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Group/index.d.ts.map +1 -0
  319. package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Group/types.d.ts +14 -0
  320. package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Group/types.d.ts.map +1 -0
  321. package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Separator/Separator.d.ts +9 -0
  322. package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Separator/Separator.d.ts.map +1 -0
  323. package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Separator/index.d.ts +3 -0
  324. package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Separator/index.d.ts.map +1 -0
  325. package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Separator/types.d.ts +10 -0
  326. package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Separator/types.d.ts.map +1 -0
  327. package/dist/types/ui/MarkdownEditor/common/Toolbar/common/index.d.ts +4 -0
  328. package/dist/types/ui/MarkdownEditor/common/Toolbar/common/index.d.ts.map +1 -0
  329. package/dist/types/ui/MarkdownEditor/common/Toolbar/index.d.ts +4 -0
  330. package/dist/types/ui/MarkdownEditor/common/Toolbar/index.d.ts.map +1 -0
  331. package/dist/types/ui/MarkdownEditor/common/Toolbar/types.d.ts +20 -0
  332. package/dist/types/ui/MarkdownEditor/common/Toolbar/types.d.ts.map +1 -0
  333. package/dist/types/ui/MarkdownEditor/common/ViewModeTabs/ViewModeTabs.d.ts +9 -0
  334. package/dist/types/ui/MarkdownEditor/common/ViewModeTabs/ViewModeTabs.d.ts.map +1 -0
  335. package/dist/types/ui/MarkdownEditor/common/ViewModeTabs/index.d.ts +3 -0
  336. package/dist/types/ui/MarkdownEditor/common/ViewModeTabs/index.d.ts.map +1 -0
  337. package/dist/types/ui/MarkdownEditor/common/ViewModeTabs/types.d.ts +14 -0
  338. package/dist/types/ui/MarkdownEditor/common/ViewModeTabs/types.d.ts.map +1 -0
  339. package/dist/types/ui/MarkdownEditor/common/icons.d.ts +9 -0
  340. package/dist/types/ui/MarkdownEditor/common/icons.d.ts.map +1 -0
  341. package/dist/types/ui/MarkdownEditor/common/index.d.ts +4 -0
  342. package/dist/types/ui/MarkdownEditor/common/index.d.ts.map +1 -0
  343. package/dist/types/ui/MarkdownEditor/hooks/index.d.ts +2 -0
  344. package/dist/types/ui/MarkdownEditor/hooks/index.d.ts.map +1 -0
  345. package/dist/types/ui/MarkdownEditor/hooks/useEditor.d.ts +40 -0
  346. package/dist/types/ui/MarkdownEditor/hooks/useEditor.d.ts.map +1 -0
  347. package/dist/types/ui/MarkdownEditor/index.d.ts +3 -0
  348. package/dist/types/ui/MarkdownEditor/index.d.ts.map +1 -0
  349. package/dist/types/ui/MarkdownEditor/types.d.ts +44 -0
  350. package/dist/types/ui/MarkdownEditor/types.d.ts.map +1 -0
  351. package/dist/types/ui/RelativeTime/RelativeTime.d.ts +11 -0
  352. package/dist/types/ui/RelativeTime/RelativeTime.d.ts.map +1 -0
  353. package/dist/types/ui/RelativeTime/index.d.ts +3 -0
  354. package/dist/types/ui/RelativeTime/index.d.ts.map +1 -0
  355. package/dist/types/ui/RelativeTime/types.d.ts +36 -0
  356. package/dist/types/ui/RelativeTime/types.d.ts.map +1 -0
  357. package/dist/types/ui/RelativeTime/utils/constants.d.ts +6 -0
  358. package/dist/types/ui/RelativeTime/utils/constants.d.ts.map +1 -0
  359. package/dist/types/ui/RelativeTime/utils/formatHumanTime.d.ts +21 -0
  360. package/dist/types/ui/RelativeTime/utils/formatHumanTime.d.ts.map +1 -0
  361. package/dist/types/ui/RelativeTime/utils/getOptimalUpdateInterval.d.ts +8 -0
  362. package/dist/types/ui/RelativeTime/utils/getOptimalUpdateInterval.d.ts.map +1 -0
  363. package/dist/types/ui/RelativeTime/utils/index.d.ts +4 -0
  364. package/dist/types/ui/RelativeTime/utils/index.d.ts.map +1 -0
  365. package/dist/types/ui/RelativeTime/utils/parseInstant.d.ts +9 -0
  366. package/dist/types/ui/RelativeTime/utils/parseInstant.d.ts.map +1 -0
  367. package/dist/types/ui/index.d.ts +5 -1
  368. package/dist/types/ui/index.d.ts.map +1 -1
  369. package/package.json +20 -19
  370. package/dist/esm/ui/Button/Button.js +0 -10
  371. package/dist/esm/ui/Button/Button.js.map +0 -1
  372. package/dist/esm/ui/Button/index.js +0 -2
  373. package/dist/esm/ui/Button/index.js.map +0 -1
  374. package/dist/esm/ui/Button/styles.css +0 -63
  375. package/dist/esm/ui/Chip/Chip.css +0 -79
  376. package/dist/esm/ui/Chip/Chip.js +0 -15
  377. package/dist/esm/ui/Chip/Chip.js.map +0 -1
  378. package/dist/esm/ui/Chip/index.js +0 -4
  379. package/dist/esm/ui/Chip/index.js.map +0 -1
  380. package/dist/types/ui/Button/Button.d.ts +0 -6
  381. package/dist/types/ui/Button/Button.d.ts.map +0 -1
  382. package/dist/types/ui/Button/index.d.ts +0 -3
  383. package/dist/types/ui/Button/index.d.ts.map +0 -1
  384. package/dist/types/ui/Button/types.d.ts +0 -15
  385. package/dist/types/ui/Button/types.d.ts.map +0 -1
  386. package/dist/types/ui/Chip/Chip.d.ts +0 -10
  387. package/dist/types/ui/Chip/Chip.d.ts.map +0 -1
  388. package/dist/types/ui/Chip/index.d.ts +0 -3
  389. package/dist/types/ui/Chip/index.d.ts.map +0 -1
  390. package/dist/types/ui/Chip/types.d.ts +0 -27
  391. package/dist/types/ui/Chip/types.d.ts.map +0 -1
  392. /package/dist/esm/ui/{Button → EditableBlock}/types.js +0 -0
  393. /package/dist/esm/ui/{Chip → FileTree/common/File}/types.js +0 -0
@@ -0,0 +1,20 @@
1
+ import type React from "react";
2
+ export type DiffContentLine = {
3
+ type: "add" | "remove" | "context";
4
+ lineNum1: number | string | null;
5
+ lineNum2: number | string | null;
6
+ content: string;
7
+ };
8
+ export type DiffHunkLine = {
9
+ type: "hunk";
10
+ hunkHeader: string;
11
+ };
12
+ export type DiffLineProps = {
13
+ /** A unique identifier for the DiffLine */
14
+ id?: string;
15
+ /** Additional CSS classes */
16
+ className?: string;
17
+ /** Inline styles */
18
+ style?: React.CSSProperties;
19
+ } & (DiffContentLine | DiffHunkLine);
20
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
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,IAAI,EAAE,KAAK,GAAG,QAAQ,GAAG,SAAS,CAAC;IACnC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IACjC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IACjC,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,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;CAC7B,GAAG,CAAC,eAAe,GAAG,YAAY,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./DiffLine/index.js";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/GitDiffViewer/common/CodeDiffViewer/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { default as CodeDiffViewer } from "./CodeDiffViewer.js";
2
+ export * from "./types.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
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,YAAY,CAAC"}
@@ -0,0 +1,18 @@
1
+ import type React from "react";
2
+ export type CodeDiffViewerAddComment = (props: {
3
+ lineNumber: number;
4
+ onClose: () => void;
5
+ }) => React.ReactNode;
6
+ export type CodeDiffViewerProps = {
7
+ /** A unique identifier for the CodeDiffViewer */
8
+ id?: string;
9
+ /** Additional CSS classes */
10
+ className?: string;
11
+ /** Add comment element.
12
+ * If provided, the add comment button will be displayed on the line number.
13
+ */
14
+ AddComment?: CodeDiffViewerAddComment;
15
+ /** Inline styles */
16
+ style?: React.CSSProperties;
17
+ };
18
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
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,wBAAwB,GAAG,CAAC,KAAK,EAAE;IAC7C,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,KAAK,KAAK,CAAC,SAAS,CAAC;AAEtB,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,oBAAoB;IACpB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B,CAAC"}
@@ -0,0 +1,15 @@
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
@@ -0,0 +1 @@
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;AACtB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAIlD;;;;;GAKG;AACH,QAAA,MAAM,UAAU;6GAUb,eAAe,GAAG,KAAK,CAAC,YAAY;;CA0EtC,CAAC;AAIF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { default as FileHeader } from "./FileHeader.js";
2
+ export * from "./types.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,17 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,3 @@
1
+ export * from "./CodeDiffViewer/index.js";
2
+ export * from "./FileHeader/index.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,2 @@
1
+ export { default as useGitDiffViewer } from "./useGitDiffViewer.js";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,3 @@
1
+ declare const useGitDiffViewer: () => import("../types.js").ContextOptions;
2
+ export default useGitDiffViewer;
3
+ //# sourceMappingURL=useGitDiffViewer.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,6 @@
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 type { GitDiffViewerComponent } from "./types.js";
5
+ export declare const GitDiffViewer: GitDiffViewerComponent;
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
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;AAIjC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAEzD,eAAO,MAAM,aAAa,EAAe,sBAAsB,CAAC"}
@@ -0,0 +1,77 @@
1
+ import type { AllOrNone } from "@canonical/utils";
2
+ import type React from "react";
3
+ import type { CodeDiffViewerProps, FileHeaderProps } from "./common/index.js";
4
+ /**
5
+ * When this is provided, the component will add support for collapsing the diff code section.
6
+ */
7
+ export type CollapseOption = {
8
+ /**
9
+ * Whether the diff code section is collapsed.
10
+ */
11
+ isCollapsed: boolean;
12
+ /**
13
+ * Toggle the collapse state of the diff code section.
14
+ */
15
+ onCollapseToggle: (collapsed: boolean) => void;
16
+ };
17
+ export type DiffOptions = {
18
+ /**
19
+ * The diff file being displayed.
20
+ *
21
+ * In case you need to parse raw diff text,
22
+ * you can use the `parseDiff` function from `@canonical/react-ds-app-launchpad`
23
+ */
24
+ diff: DiffFile;
25
+ };
26
+ export type WrapLinesOption = {
27
+ /**
28
+ * Whether the code lines should not overflow.
29
+ */
30
+ wrapLines?: boolean;
31
+ };
32
+ export type LineDecorationOptions = {
33
+ /**
34
+ * Additional UI elements to be displayed bellow the code diff lines.
35
+ */
36
+ lineDecorations?: Record<number, React.ReactElement>;
37
+ };
38
+ type UserContextOptions = LineDecorationOptions & DiffOptions & WrapLinesOption & AllOrNone<CollapseOption>;
39
+ type ManagedContextOptions = {
40
+ addCommentEnabled: boolean;
41
+ setAddCommentEnabled: (enabled: boolean) => void;
42
+ addCommentOpenLocations: Set<number>;
43
+ toggleAddCommentLocation: (lineNumber: number) => void;
44
+ };
45
+ export type ContextOptions = UserContextOptions & ManagedContextOptions;
46
+ export type ProviderOptions = {
47
+ id?: string;
48
+ className?: string;
49
+ style?: React.CSSProperties;
50
+ /**
51
+ * Consider using `GitDiffViewer.FileHeader`, and `GitDiffViewer.CodeDiff` components.
52
+ */
53
+ children?: React.ReactNode;
54
+ } & UserContextOptions;
55
+ export type Hunk = {
56
+ header: string;
57
+ oldStart: number;
58
+ oldLines: number;
59
+ newStart: number;
60
+ newLines: number;
61
+ lines: {
62
+ type: "add" | "remove" | "context";
63
+ content: string;
64
+ }[];
65
+ };
66
+ export type DiffFile = {
67
+ oldPath: string;
68
+ newPath: string;
69
+ hunks: Hunk[];
70
+ fileChangeState: "none" | "added" | "deleted" | "modified";
71
+ };
72
+ export type GitDiffViewerComponent = ((props: ProviderOptions) => React.ReactElement) & {
73
+ FileHeader: (props: FileHeaderProps) => React.ReactElement | null;
74
+ CodeDiffViewer: (props: CodeDiffViewerProps) => React.ReactElement | null;
75
+ };
76
+ export {};
77
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
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;AAC/B,OAAO,KAAK,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9E;;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,iBAAiB,EAAE,OAAO,CAAC;IAC3B,oBAAoB,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACjD,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,IAAI,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,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;AAEF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CACpC,KAAK,EAAE,eAAe,KACnB,KAAK,CAAC,YAAY,CAAC,GAAG;IACzB,UAAU,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC;IAClE,cAAc,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC;CAC3E,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default as parseGitDiff } from "./parseGitDiff.js";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/ui/GitDiffViewer/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { DiffFile } from "../types.js";
2
+ declare function parseGitDiff(diffText: string): DiffFile[];
3
+ export default parseGitDiff;
4
+ //# sourceMappingURL=parseGitDiff.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parseGitDiff.d.ts","sourceRoot":"","sources":["../../../../../src/ui/GitDiffViewer/utils/parseGitDiff.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAQ,MAAM,aAAa,CAAC;AAElD,iBAAS,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,QAAQ,EAAE,CAwElD;AAED,eAAe,YAAY,CAAC"}
@@ -0,0 +1,10 @@
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: ({ ref, id, className, style, textareaStyle, previewStyle, defaultValue, placeholder, hideToolbar, hidePreview, borderless, editMode: controlledEditMode, onEditModeChange: controlledOnEditModeChange, emptyInputMessage, toolbarBarLabelMessage, ToolbarTextFormattingGroupLabelMessage, ToolbarToolsGroupLabelMessage, ToolbarTitleButtonLabelMessage, ToolbarBoldButtonLabelMessage, ToolbarItalicButtonLabelMessage, ToolbarQuoteButtonLabelMessage, ToolbarCodeButtonLabelMessage, ToolbarLinkButtonLabelMessage, ToolbarUnorderedListButtonLabelMessage, ToolbarOrderedListButtonLabelMessage, ...textareaProps }: MarkdownEditorProps) => React.ReactElement;
9
+ export default MarkdownEditor;
10
+ //# sourceMappingURL=MarkdownEditor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MarkdownEditor.d.ts","sourceRoot":"","sources":["../../../../src/ui/MarkdownEditor/MarkdownEditor.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAY/B,OAAO,0DAA0D,CAAC;AAQlE,OAAO,cAAc,CAAC;AACtB,OAAO,KAAK,EAAY,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAMhE;;GAEG;AACH,QAAA,MAAM,cAAc,4lBA2BjB,mBAAmB,KAAG,KAAK,CAAC,YA2K9B,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -0,0 +1,8 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,9 @@
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
@@ -0,0 +1 @@
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,oEAOhB,kBAAkB,KAAG,KAAK,CAAC,YA8B7B,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { default as ToolbarButton } from "./Button.js";
2
+ export * from "./types.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,14 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,9 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Group.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/MarkdownEditor/common/Toolbar/common/Group/Group.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,cAAc,CAAC;AAItB;;GAEG;AACH,QAAA,MAAM,YAAY,+CAMf,iBAAiB,KAAG,KAAK,CAAC,YAa5B,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { default as ToolbarGroup } from "./Group.js";
2
+ export * from "./types.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/MarkdownEditor/common/Toolbar/common/Group/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,YAAY,CAAC;AACrD,cAAc,YAAY,CAAC"}
@@ -0,0 +1,14 @@
1
+ import type React from "react";
2
+ export interface ToolbarGroupProps {
3
+ /** A unique identifier for the ToolbarGroup */
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
+ /** Toolbar group label */
12
+ label: string;
13
+ }
14
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/MarkdownEditor/common/Toolbar/common/Group/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,WAAW,iBAAiB;IAChC,+CAA+C;IAC/C,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,0BAA0B;IAC1B,KAAK,EAAE,MAAM,CAAC;CACf"}
@@ -0,0 +1,9 @@
1
+ import type React from "react";
2
+ import "./styles.css";
3
+ import type { ToolbarSeparatorProps } from "./types.js";
4
+ /**
5
+ * A visual separator between groups of controls in a toolbar.
6
+ */
7
+ declare const ToolbarSeparator: ({ id, className, style, }: ToolbarSeparatorProps) => React.ReactElement;
8
+ export default ToolbarSeparator;
9
+ //# sourceMappingURL=Separator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Separator.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/MarkdownEditor/common/Toolbar/common/Separator/Separator.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAIxD;;GAEG;AACH,QAAA,MAAM,gBAAgB,8BAInB,qBAAqB,KAAG,KAAK,CAAC,YAWhC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { default as ToolbarSeparator } from "./Separator.js";
2
+ export * from "./types.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/MarkdownEditor/common/Toolbar/common/Separator/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAC7D,cAAc,YAAY,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type React from "react";
2
+ export interface ToolbarSeparatorProps {
3
+ /** A unique identifier for the ToolbarSeparator */
4
+ id?: string;
5
+ /** Additional CSS classes */
6
+ className?: string;
7
+ /** Inline styles */
8
+ style?: React.CSSProperties;
9
+ }
10
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/MarkdownEditor/common/Toolbar/common/Separator/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,WAAW,qBAAqB;IACpC,mDAAmD;IACnD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oBAAoB;IACpB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B"}
@@ -0,0 +1,4 @@
1
+ export * from "./Button/index.js";
2
+ export * from "./Group/index.js";
3
+ export * from "./Separator/index.js";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/MarkdownEditor/common/Toolbar/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import Toolbar from "./Toolbar.js";
2
+ export * from "./types.js";
3
+ export { Toolbar };
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/MarkdownEditor/common/Toolbar/index.ts"],"names":[],"mappings":"AACA,OAAO,OAAO,MAAM,cAAc,CAAC;AAUnC,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,CAAC"}
@@ -0,0 +1,20 @@
1
+ import type React from "react";
2
+ import type { ToolbarButtonProps, ToolbarGroupProps, ToolbarSeparatorProps } from "./common/index.js";
3
+ export interface ToolbarProps {
4
+ /** A unique identifier for the Toolbar */
5
+ id?: string;
6
+ /** Additional CSS classes */
7
+ className?: string;
8
+ /** Child elements */
9
+ children?: React.ReactNode;
10
+ /** Inline styles */
11
+ style?: React.CSSProperties;
12
+ /** Toolbar label */
13
+ label: string;
14
+ }
15
+ export type ToolbarComponent = ((props: ToolbarProps) => React.ReactElement) & {
16
+ Button: (props: ToolbarButtonProps) => React.ReactElement | null;
17
+ Group: (props: ToolbarGroupProps) => React.ReactElement | null;
18
+ Separator: (props: ToolbarSeparatorProps) => React.ReactElement | null;
19
+ };
20
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/MarkdownEditor/common/Toolbar/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EACV,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,EACtB,MAAM,mBAAmB,CAAC;AAE3B,MAAM,WAAW,YAAY;IAC3B,0CAA0C;IAC1C,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,oBAAoB;IACpB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,EAAE,YAAY,KAAK,KAAK,CAAC,YAAY,CAAC,GAAG;IAC7E,MAAM,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC;IACjE,KAAK,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC;IAC/D,SAAS,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC;CACxE,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type React from "react";
2
+ import "./styles.css";
3
+ import type { ViewModeTabsProps } from "./types.js";
4
+ /**
5
+ * A toggle interface for switching between write and preview modes.
6
+ */
7
+ declare const ViewModeTabs: ({ className, style, editMode, onEditModeChange, ariaLabelMessage, }: ViewModeTabsProps) => React.ReactElement;
8
+ export default ViewModeTabs;
9
+ //# sourceMappingURL=ViewModeTabs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ViewModeTabs.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/MarkdownEditor/common/ViewModeTabs/ViewModeTabs.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAMpD;;GAEG;AACH,QAAA,MAAM,YAAY,wEAMf,iBAAiB,KAAG,KAAK,CAAC,YAkD5B,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { default as ViewModeTabs } from "./ViewModeTabs.js";
2
+ export * from "./types.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/MarkdownEditor/common/ViewModeTabs/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC5D,cAAc,YAAY,CAAC"}
@@ -0,0 +1,14 @@
1
+ import type React from "react";
2
+ import type { EditMode } from "../../types.js";
3
+ export interface ViewModeTabsProps {
4
+ /** Additional CSS classes */
5
+ className?: string;
6
+ /** Inline styles */
7
+ style?: React.CSSProperties;
8
+ /** The current edit mode */
9
+ editMode: EditMode;
10
+ /** Callback for edit mode change */
11
+ onEditModeChange: (mode: EditMode, eventType: "click" | "keydown") => void;
12
+ ariaLabelMessage?: string;
13
+ }
14
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/MarkdownEditor/common/ViewModeTabs/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE/C,MAAM,WAAW,iBAAiB;IAChC,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oBAAoB;IACpB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,4BAA4B;IAC5B,QAAQ,EAAE,QAAQ,CAAC;IACnB,oCAAoC;IACpC,gBAAgB,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,GAAG,SAAS,KAAK,IAAI,CAAC;IAC3E,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B"}
@@ -0,0 +1,9 @@
1
+ export declare const ToolbarTitle: import("react/jsx-runtime").JSX.Element;
2
+ export declare const ToolbarBold: import("react/jsx-runtime").JSX.Element;
3
+ export declare const ToolbarItalic: import("react/jsx-runtime").JSX.Element;
4
+ export declare const ToolbarQuote: import("react/jsx-runtime").JSX.Element;
5
+ export declare const ToolbarCode: import("react/jsx-runtime").JSX.Element;
6
+ export declare const ToolbarLink: import("react/jsx-runtime").JSX.Element;
7
+ export declare const ToolbarUnorderedList: import("react/jsx-runtime").JSX.Element;
8
+ export declare const ToolbarOrderedList: import("react/jsx-runtime").JSX.Element;
9
+ //# sourceMappingURL=icons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../../../src/ui/MarkdownEditor/common/icons.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,yCAcxB,CAAC;AAEF,eAAO,MAAM,WAAW,yCAcvB,CAAC;AAEF,eAAO,MAAM,aAAa,yCAczB,CAAC;AAEF,eAAO,MAAM,YAAY,yCAcxB,CAAC;AAEF,eAAO,MAAM,WAAW,yCAcvB,CAAC;AAEF,eAAO,MAAM,WAAW,yCAcvB,CAAC;AAEF,eAAO,MAAM,oBAAoB,yCAchC,CAAC;AAEF,eAAO,MAAM,kBAAkB,yCAc9B,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from "./Toolbar/index.js";
2
+ export * from "./ViewModeTabs/index.js";
3
+ export * as icons from "./icons.js";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/ui/MarkdownEditor/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AAExC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default as useEditor } from "./useEditor.js";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/ui/MarkdownEditor/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,40 @@
1
+ declare const useEditor: (textareaRef: React.RefObject<HTMLTextAreaElement | null>) => {
2
+ toolbar?: undefined;
3
+ } | {
4
+ toolbar: {
5
+ italic: {
6
+ shortcut: string;
7
+ handler: () => void;
8
+ };
9
+ bold: {
10
+ shortcut: string;
11
+ handler: () => void;
12
+ };
13
+ title: {
14
+ shortcut: undefined;
15
+ handler: () => void;
16
+ };
17
+ quote: {
18
+ shortcut: string;
19
+ handler: () => void;
20
+ };
21
+ code: {
22
+ shortcut: string;
23
+ handler: () => void;
24
+ };
25
+ uList: {
26
+ shortcut: string;
27
+ handler: () => void;
28
+ };
29
+ oList: {
30
+ shortcut: string;
31
+ handler: () => void;
32
+ };
33
+ link: {
34
+ shortcut: string;
35
+ handler: () => void;
36
+ };
37
+ };
38
+ };
39
+ export default useEditor;
40
+ //# sourceMappingURL=useEditor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useEditor.d.ts","sourceRoot":"","sources":["../../../../../src/ui/MarkdownEditor/hooks/useEditor.ts"],"names":[],"mappings":"AAkBA,QAAA,MAAM,SAAS,gBACA,KAAK,CAAC,SAAS,CAAC,mBAAmB,GAAG,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsUzD,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { default as MarkdownEditor } from "./MarkdownEditor.js";
2
+ export * from "./types.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/MarkdownEditor/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAChE,cAAc,YAAY,CAAC"}