@altimateai/ui-components 0.0.79 → 0.0.80

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 (521) hide show
  1. package/dist/0~315.js +46635 -0
  2. package/dist/0~315.js.LICENSE.txt +73 -0
  3. package/dist/0~315.js.map +1 -0
  4. package/dist/131.js +14352 -0
  5. package/dist/131.js.map +1 -0
  6. package/dist/3~315.js +46635 -0
  7. package/dist/3~315.js.LICENSE.txt +73 -0
  8. package/dist/3~315.js.map +1 -0
  9. package/dist/582.js +1299 -0
  10. package/dist/582.js.map +1 -0
  11. package/dist/assets/icons/index.d.ts +45 -110
  12. package/dist/assets/icons/index.d.ts.map +1 -0
  13. package/dist/chatbotV2.js +5233 -0
  14. package/dist/chatbotV2.js.map +1 -0
  15. package/dist/components/api/index.d.ts +7 -0
  16. package/dist/components/api/index.d.ts.map +1 -0
  17. package/dist/components/api/useMutation.d.ts +12 -0
  18. package/dist/components/api/useMutation.d.ts.map +1 -0
  19. package/dist/components/api/useQuery.d.ts +12 -0
  20. package/dist/components/api/useQuery.d.ts.map +1 -0
  21. package/dist/components/chatbotV2/ChatProvider.d.ts +17 -0
  22. package/dist/components/chatbotV2/ChatProvider.d.ts.map +1 -0
  23. package/dist/components/chatbotV2/Chatbot.d.ts +4 -0
  24. package/dist/components/chatbotV2/Chatbot.d.ts.map +1 -0
  25. package/dist/components/chatbotV2/HelloMessageSample.d.ts +3 -0
  26. package/dist/components/chatbotV2/HelloMessageSample.d.ts.map +1 -0
  27. package/dist/components/chatbotV2/components/action-buttons/DownloadMessage.d.ts +9 -0
  28. package/dist/components/chatbotV2/components/action-buttons/DownloadMessage.d.ts.map +1 -0
  29. package/dist/components/chatbotV2/components/action-buttons/ShareMessage.d.ts +9 -0
  30. package/dist/components/chatbotV2/components/action-buttons/ShareMessage.d.ts.map +1 -0
  31. package/dist/components/chatbotV2/components/artifacts/Artifacts.d.ts +8 -0
  32. package/dist/components/chatbotV2/components/artifacts/Artifacts.d.ts.map +1 -0
  33. package/dist/components/chatbotV2/components/artifacts/index.d.ts +2 -0
  34. package/dist/components/chatbotV2/components/artifacts/index.d.ts.map +1 -0
  35. package/dist/components/chatbotV2/components/attachmentList/AttachmentList.d.ts +8 -0
  36. package/dist/components/chatbotV2/components/attachmentList/AttachmentList.d.ts.map +1 -0
  37. package/dist/components/chatbotV2/components/attachmentList/index.d.ts +2 -0
  38. package/dist/components/chatbotV2/components/attachmentList/index.d.ts.map +1 -0
  39. package/dist/components/chatbotV2/components/cancelGenerationButton/CancelGenerationButton.d.ts +3 -0
  40. package/dist/components/chatbotV2/components/cancelGenerationButton/CancelGenerationButton.d.ts.map +1 -0
  41. package/dist/components/chatbotV2/components/cancelGenerationButton/index.d.ts +2 -0
  42. package/dist/components/chatbotV2/components/cancelGenerationButton/index.d.ts.map +1 -0
  43. package/dist/components/chatbotV2/components/chatMessageActions/ChatFeedbackActions.d.ts +8 -0
  44. package/dist/components/chatbotV2/components/chatMessageActions/ChatFeedbackActions.d.ts.map +1 -0
  45. package/dist/components/chatbotV2/components/chatMessageActions/ChatLastMessageActions.d.ts +8 -0
  46. package/dist/components/chatbotV2/components/chatMessageActions/ChatLastMessageActions.d.ts.map +1 -0
  47. package/dist/components/chatbotV2/components/chatMessageActions/ChatMessageActions.d.ts +10 -0
  48. package/dist/components/chatbotV2/components/chatMessageActions/ChatMessageActions.d.ts.map +1 -0
  49. package/dist/components/chatbotV2/components/chatMessageActions/ChatMessageEndActions.d.ts +9 -0
  50. package/dist/components/chatbotV2/components/chatMessageActions/ChatMessageEndActions.d.ts.map +1 -0
  51. package/dist/components/chatbotV2/components/chatMessageActions/index.d.ts +4 -0
  52. package/dist/components/chatbotV2/components/chatMessageActions/index.d.ts.map +1 -0
  53. package/dist/components/chatbotV2/components/chatTriggerLink/ChatTriggerLink.d.ts +7 -0
  54. package/dist/components/chatbotV2/components/chatTriggerLink/ChatTriggerLink.d.ts.map +1 -0
  55. package/dist/components/chatbotV2/components/citations/Citations.d.ts +28 -0
  56. package/dist/components/chatbotV2/components/citations/Citations.d.ts.map +1 -0
  57. package/dist/components/chatbotV2/components/coachAI/CoachAI.d.ts +2 -0
  58. package/dist/components/chatbotV2/components/coachAI/CoachAI.d.ts.map +1 -0
  59. package/dist/components/chatbotV2/components/coachAI/index.d.ts +2 -0
  60. package/dist/components/chatbotV2/components/coachAI/index.d.ts.map +1 -0
  61. package/dist/components/chatbotV2/components/contextPanel/ContextPanel.d.ts +13 -0
  62. package/dist/components/chatbotV2/components/contextPanel/ContextPanel.d.ts.map +1 -0
  63. package/dist/components/chatbotV2/components/contextPanel/index.d.ts +2 -0
  64. package/dist/components/chatbotV2/components/contextPanel/index.d.ts.map +1 -0
  65. package/dist/components/chatbotV2/components/emailDialog/EmailDialog.d.ts +10 -0
  66. package/dist/components/chatbotV2/components/emailDialog/EmailDialog.d.ts.map +1 -0
  67. package/dist/components/chatbotV2/components/entityItem/EntityItem.d.ts +7 -0
  68. package/dist/components/chatbotV2/components/entityItem/EntityItem.d.ts.map +1 -0
  69. package/dist/components/chatbotV2/components/entityItem/index.d.ts +2 -0
  70. package/dist/components/chatbotV2/components/entityItem/index.d.ts.map +1 -0
  71. package/dist/components/chatbotV2/components/followup/Followup.d.ts +3 -0
  72. package/dist/components/chatbotV2/components/followup/Followup.d.ts.map +1 -0
  73. package/dist/components/chatbotV2/components/index.d.ts +18 -0
  74. package/dist/components/chatbotV2/components/index.d.ts.map +1 -0
  75. package/dist/components/chatbotV2/components/interactionPrompt/InteractionPrompt.d.ts +8 -0
  76. package/dist/components/chatbotV2/components/interactionPrompt/InteractionPrompt.d.ts.map +1 -0
  77. package/dist/components/chatbotV2/components/interactionPrompt/index.d.ts +2 -0
  78. package/dist/components/chatbotV2/components/interactionPrompt/index.d.ts.map +1 -0
  79. package/dist/components/chatbotV2/components/loadingIndicator/LoadingIndicator.d.ts +3 -0
  80. package/dist/components/chatbotV2/components/loadingIndicator/LoadingIndicator.d.ts.map +1 -0
  81. package/dist/components/chatbotV2/components/loadingIndicator/index.d.ts +2 -0
  82. package/dist/components/chatbotV2/components/loadingIndicator/index.d.ts.map +1 -0
  83. package/dist/components/chatbotV2/components/messageItem/MessageItem.d.ts +12 -0
  84. package/dist/components/chatbotV2/components/messageItem/MessageItem.d.ts.map +1 -0
  85. package/dist/components/chatbotV2/components/messageItem/index.d.ts +2 -0
  86. package/dist/components/chatbotV2/components/messageItem/index.d.ts.map +1 -0
  87. package/dist/components/chatbotV2/components/messageList/MessageList.d.ts +11 -0
  88. package/dist/components/chatbotV2/components/messageList/MessageList.d.ts.map +1 -0
  89. package/dist/components/chatbotV2/components/messageList/index.d.ts +2 -0
  90. package/dist/components/chatbotV2/components/messageList/index.d.ts.map +1 -0
  91. package/dist/components/chatbotV2/components/questionForm/QuestionForm.d.ts +15 -0
  92. package/dist/components/chatbotV2/components/questionForm/QuestionForm.d.ts.map +1 -0
  93. package/dist/components/chatbotV2/components/questionForm/index.d.ts +2 -0
  94. package/dist/components/chatbotV2/components/questionForm/index.d.ts.map +1 -0
  95. package/dist/components/chatbotV2/components/refetchSession/RefetchSession.d.ts +8 -0
  96. package/dist/components/chatbotV2/components/refetchSession/RefetchSession.d.ts.map +1 -0
  97. package/dist/components/chatbotV2/components/regenerateButton/RegenerateButton.d.ts +7 -0
  98. package/dist/components/chatbotV2/components/regenerateButton/RegenerateButton.d.ts.map +1 -0
  99. package/dist/components/chatbotV2/components/regenerateButton/index.d.ts +2 -0
  100. package/dist/components/chatbotV2/components/regenerateButton/index.d.ts.map +1 -0
  101. package/dist/components/chatbotV2/components/selectedContexts/SelectedContexts.d.ts +8 -0
  102. package/dist/components/chatbotV2/components/selectedContexts/SelectedContexts.d.ts.map +1 -0
  103. package/dist/components/chatbotV2/components/statusUpdates/StatusUpdates.d.ts +10 -0
  104. package/dist/components/chatbotV2/components/statusUpdates/StatusUpdates.d.ts.map +1 -0
  105. package/dist/components/chatbotV2/components/statusUpdates/index.d.ts +2 -0
  106. package/dist/components/chatbotV2/components/statusUpdates/index.d.ts.map +1 -0
  107. package/dist/components/chatbotV2/components/todoProgress/TodoProgress.d.ts +8 -0
  108. package/dist/components/chatbotV2/components/todoProgress/TodoProgress.d.ts.map +1 -0
  109. package/dist/components/chatbotV2/components/todoProgress/index.d.ts +2 -0
  110. package/dist/components/chatbotV2/components/todoProgress/index.d.ts.map +1 -0
  111. package/dist/components/chatbotV2/hooks/transports.d.ts +126 -0
  112. package/dist/components/chatbotV2/hooks/transports.d.ts.map +1 -0
  113. package/dist/components/chatbotV2/hooks/useAgentChat.d.ts +41 -0
  114. package/dist/components/chatbotV2/hooks/useAgentChat.d.ts.map +1 -0
  115. package/dist/components/chatbotV2/hooks/useEntityDetection.d.ts +4 -0
  116. package/dist/components/chatbotV2/hooks/useEntityDetection.d.ts.map +1 -0
  117. package/dist/components/chatbotV2/hooks/useFeedback.d.ts +5 -0
  118. package/dist/components/chatbotV2/hooks/useFeedback.d.ts.map +1 -0
  119. package/dist/components/chatbotV2/index.d.ts +22 -0
  120. package/dist/components/chatbotV2/index.d.ts.map +1 -0
  121. package/dist/components/chatbotV2/store/chatSlice.d.ts +65 -0
  122. package/dist/components/chatbotV2/store/chatSlice.d.ts.map +1 -0
  123. package/dist/components/chatbotV2/store/index.d.ts +10 -0
  124. package/dist/components/chatbotV2/store/index.d.ts.map +1 -0
  125. package/dist/{types-ByRPUpXR.d.ts → components/chatbotV2/types.d.ts} +77 -195
  126. package/dist/components/chatbotV2/types.d.ts.map +1 -0
  127. package/dist/components/chatbotV2/utils/entityDetection.d.ts +12 -0
  128. package/dist/components/chatbotV2/utils/entityDetection.d.ts.map +1 -0
  129. package/dist/components/chatbotV2/utils/streamProcessor.d.ts +98 -0
  130. package/dist/components/chatbotV2/utils/streamProcessor.d.ts.map +1 -0
  131. package/dist/components/chatbotV2/utils.d.ts +3 -0
  132. package/dist/components/chatbotV2/utils.d.ts.map +1 -0
  133. package/dist/components/dbtDocs/api/index.d.ts +16 -0
  134. package/dist/components/dbtDocs/api/index.d.ts.map +1 -0
  135. package/dist/components/dbtDocs/collaboration/ConversationHighlighter.d.ts +6 -0
  136. package/dist/components/dbtDocs/collaboration/ConversationHighlighter.d.ts.map +1 -0
  137. package/dist/components/dbtDocs/collaboration/ConversationInputForm.d.ts +13 -0
  138. package/dist/components/dbtDocs/collaboration/ConversationInputForm.d.ts.map +1 -0
  139. package/dist/components/dbtDocs/collaboration/ConversationsHighlighter.d.ts +3 -0
  140. package/dist/components/dbtDocs/collaboration/ConversationsHighlighter.d.ts.map +1 -0
  141. package/dist/components/dbtDocs/collaboration/DbtDocsCollaborationComponents.d.ts +3 -0
  142. package/dist/components/dbtDocs/collaboration/DbtDocsCollaborationComponents.d.ts.map +1 -0
  143. package/dist/components/dbtDocs/collaboration/DbtDocsCollaborationProvider.d.ts +22 -0
  144. package/dist/components/dbtDocs/collaboration/DbtDocsCollaborationProvider.d.ts.map +1 -0
  145. package/dist/components/dbtDocs/collaboration/DbtDocsConversationsRightPanel.d.ts +3 -0
  146. package/dist/components/dbtDocs/collaboration/DbtDocsConversationsRightPanel.d.ts.map +1 -0
  147. package/dist/components/dbtDocs/collaboration/DbtDocsReducer.d.ts +1931 -0
  148. package/dist/components/dbtDocs/collaboration/DbtDocsReducer.d.ts.map +1 -0
  149. package/dist/components/dbtDocs/collaboration/HighlightAnchor.d.ts +12 -0
  150. package/dist/components/dbtDocs/collaboration/HighlightAnchor.d.ts.map +1 -0
  151. package/dist/components/dbtDocs/collaboration/HighlightBlocker.d.ts +7 -0
  152. package/dist/components/dbtDocs/collaboration/HighlightBlocker.d.ts.map +1 -0
  153. package/dist/components/dbtDocs/collaboration/HotspotButton.d.ts +7 -0
  154. package/dist/components/dbtDocs/collaboration/HotspotButton.d.ts.map +1 -0
  155. package/dist/components/dbtDocs/collaboration/NewConversationForm.d.ts +3 -0
  156. package/dist/components/dbtDocs/collaboration/NewConversationForm.d.ts.map +1 -0
  157. package/dist/components/dbtDocs/collaboration/ShowConversationsButton.d.ts +3 -0
  158. package/dist/components/dbtDocs/collaboration/ShowConversationsButton.d.ts.map +1 -0
  159. package/dist/components/dbtDocs/collaboration/constants.d.ts +20 -0
  160. package/dist/components/dbtDocs/collaboration/constants.d.ts.map +1 -0
  161. package/dist/components/dbtDocs/collaboration/conversations/Conversation.d.ts +9 -0
  162. package/dist/components/dbtDocs/collaboration/conversations/Conversation.d.ts.map +1 -0
  163. package/dist/components/dbtDocs/collaboration/conversations/ConversationGroup.d.ts +10 -0
  164. package/dist/components/dbtDocs/collaboration/conversations/ConversationGroup.d.ts.map +1 -0
  165. package/dist/components/dbtDocs/collaboration/conversations/ConversationGroups.d.ts +3 -0
  166. package/dist/components/dbtDocs/collaboration/conversations/ConversationGroups.d.ts.map +1 -0
  167. package/dist/components/dbtDocs/collaboration/conversations/ConversationHeader.d.ts +13 -0
  168. package/dist/components/dbtDocs/collaboration/conversations/ConversationHeader.d.ts.map +1 -0
  169. package/dist/components/dbtDocs/collaboration/conversations/ConversationHighlightText.d.ts +6 -0
  170. package/dist/components/dbtDocs/collaboration/conversations/ConversationHighlightText.d.ts.map +1 -0
  171. package/dist/components/dbtDocs/collaboration/conversations/ConversationReplyForm.d.ts +9 -0
  172. package/dist/components/dbtDocs/collaboration/conversations/ConversationReplyForm.d.ts.map +1 -0
  173. package/dist/components/dbtDocs/collaboration/conversations/ResolveButton.d.ts +8 -0
  174. package/dist/components/dbtDocs/collaboration/conversations/ResolveButton.d.ts.map +1 -0
  175. package/dist/components/dbtDocs/collaboration/conversations/context/ConversationsProvider.d.ts +18 -0
  176. package/dist/components/dbtDocs/collaboration/conversations/context/ConversationsProvider.d.ts.map +1 -0
  177. package/dist/components/dbtDocs/collaboration/conversations/context/types.d.ts +44 -0
  178. package/dist/components/dbtDocs/collaboration/conversations/context/types.d.ts.map +1 -0
  179. package/dist/components/dbtDocs/collaboration/conversations/useConversations.d.ts +5 -0
  180. package/dist/components/dbtDocs/collaboration/conversations/useConversations.d.ts.map +1 -0
  181. package/dist/components/dbtDocs/collaboration/highlightUtils.d.ts +28 -0
  182. package/dist/components/dbtDocs/collaboration/highlightUtils.d.ts.map +1 -0
  183. package/dist/components/dbtDocs/collaboration/mentions/MentionsInput.d.ts +11 -0
  184. package/dist/components/dbtDocs/collaboration/mentions/MentionsInput.d.ts.map +1 -0
  185. package/dist/components/dbtDocs/collaboration/mentions/index.d.ts +32 -0
  186. package/dist/components/dbtDocs/collaboration/mentions/index.d.ts.map +1 -0
  187. package/dist/components/dbtDocs/collaboration/newConversationUtils.d.ts +15 -0
  188. package/dist/components/dbtDocs/collaboration/newConversationUtils.d.ts.map +1 -0
  189. package/dist/components/dbtDocs/collaboration/selectionEndEvent.d.ts +17 -0
  190. package/dist/components/dbtDocs/collaboration/selectionEndEvent.d.ts.map +1 -0
  191. package/dist/components/dbtDocs/collaboration/types.d.ts +15 -0
  192. package/dist/components/dbtDocs/collaboration/types.d.ts.map +1 -0
  193. package/dist/components/dbtDocs/collaboration/useConversationUsers.d.ts +5 -0
  194. package/dist/components/dbtDocs/collaboration/useConversationUsers.d.ts.map +1 -0
  195. package/dist/components/dbtDocs/collaboration/useDbtDocsCollaboration.d.ts +7 -0
  196. package/dist/components/dbtDocs/collaboration/useDbtDocsCollaboration.d.ts.map +1 -0
  197. package/dist/components/dbtDocs/collaboration/useHighlight.d.ts +12 -0
  198. package/dist/components/dbtDocs/collaboration/useHighlight.d.ts.map +1 -0
  199. package/dist/components/dbtDocs/details/AddCommentButton.d.ts +3 -0
  200. package/dist/components/dbtDocs/details/AddCommentButton.d.ts.map +1 -0
  201. package/dist/components/dbtDocs/details/AddCommentOnCodeButton.d.ts +3 -0
  202. package/dist/components/dbtDocs/details/AddCommentOnCodeButton.d.ts.map +1 -0
  203. package/dist/components/dbtDocs/details/AddCommentOnModelDescriptionButton.d.ts +3 -0
  204. package/dist/components/dbtDocs/details/AddCommentOnModelDescriptionButton.d.ts.map +1 -0
  205. package/dist/components/dbtDocs/details/DbtDocs.d.ts +10 -0
  206. package/dist/components/dbtDocs/details/DbtDocs.d.ts.map +1 -0
  207. package/dist/components/dbtDocs/details/DbtDocsDetails.d.ts +3 -0
  208. package/dist/components/dbtDocs/details/DbtDocsDetails.d.ts.map +1 -0
  209. package/dist/components/dbtDocs/details/DbtDocsRenderer.d.ts +8 -0
  210. package/dist/components/dbtDocs/details/DbtDocsRenderer.d.ts.map +1 -0
  211. package/dist/components/dbtDocs/details/dbtDocsUtils.d.ts +5 -0
  212. package/dist/components/dbtDocs/details/dbtDocsUtils.d.ts.map +1 -0
  213. package/dist/components/dbtDocs/index.d.ts +8 -0
  214. package/dist/components/dbtDocs/index.d.ts.map +1 -0
  215. package/dist/components/dbtDocs/resources/dbtDocsAngularApp.d.ts +3 -0
  216. package/dist/components/dbtDocs/resources/dbtDocsAngularApp.d.ts.map +1 -0
  217. package/dist/components/lineage/api/index.d.ts +65 -0
  218. package/dist/components/lineage/api/index.d.ts.map +1 -0
  219. package/dist/components/lineage/assets/icons/index.d.ts +61 -0
  220. package/dist/components/lineage/assets/icons/index.d.ts.map +1 -0
  221. package/dist/components/lineage/cllUtils.d.ts +17 -0
  222. package/dist/components/lineage/cllUtils.d.ts.map +1 -0
  223. package/dist/components/lineage/components/AutoExpansionPopover.d.ts +3 -0
  224. package/dist/components/lineage/components/AutoExpansionPopover.d.ts.map +1 -0
  225. package/dist/components/lineage/components/BetterPopover.d.ts +14 -0
  226. package/dist/components/lineage/components/BetterPopover.d.ts.map +1 -0
  227. package/dist/components/lineage/components/Chip.d.ts +6 -0
  228. package/dist/components/lineage/components/Chip.d.ts.map +1 -0
  229. package/dist/components/lineage/components/Column.d.ts +52 -0
  230. package/dist/components/lineage/components/Column.d.ts.map +1 -0
  231. package/dist/components/lineage/components/ColumnRow.d.ts +8 -0
  232. package/dist/components/lineage/components/ColumnRow.d.ts.map +1 -0
  233. package/dist/components/lineage/components/CustomNodes.d.ts +16 -0
  234. package/dist/components/lineage/components/CustomNodes.d.ts.map +1 -0
  235. package/dist/components/lineage/components/DashboardDetails.d.ts +12 -0
  236. package/dist/components/lineage/components/DashboardDetails.d.ts.map +1 -0
  237. package/dist/components/lineage/components/DynamicLineage.d.ts +9 -0
  238. package/dist/components/lineage/components/DynamicLineage.d.ts.map +1 -0
  239. package/dist/components/lineage/components/ExpandWithConfidenceCard.d.ts +3 -0
  240. package/dist/components/lineage/components/ExpandWithConfidenceCard.d.ts.map +1 -0
  241. package/dist/components/lineage/components/ExportButton.d.ts +6 -0
  242. package/dist/components/lineage/components/ExportButton.d.ts.map +1 -0
  243. package/dist/components/lineage/components/ExportFinalLineageModal.d.ts +5 -0
  244. package/dist/components/lineage/components/ExportFinalLineageModal.d.ts.map +1 -0
  245. package/dist/components/lineage/components/ExposureDetails.d.ts +6 -0
  246. package/dist/components/lineage/components/ExposureDetails.d.ts.map +1 -0
  247. package/dist/components/lineage/components/Feedback.d.ts +5 -0
  248. package/dist/components/lineage/components/Feedback.d.ts.map +1 -0
  249. package/dist/components/lineage/components/Form.d.ts +5 -0
  250. package/dist/components/lineage/components/Form.d.ts.map +1 -0
  251. package/dist/components/lineage/components/FunctionDetails.d.ts +3 -0
  252. package/dist/components/lineage/components/FunctionDetails.d.ts.map +1 -0
  253. package/dist/components/lineage/components/LineageLegend.d.ts +3 -0
  254. package/dist/components/lineage/components/LineageLegend.d.ts.map +1 -0
  255. package/dist/components/lineage/components/LineageModals.d.ts +3 -0
  256. package/dist/components/lineage/components/LineageModals.d.ts.map +1 -0
  257. package/dist/components/lineage/components/Loader/index.d.ts +7 -0
  258. package/dist/components/lineage/components/Loader/index.d.ts.map +1 -0
  259. package/dist/components/lineage/components/MoreTables.d.ts +11 -0
  260. package/dist/components/lineage/components/MoreTables.d.ts.map +1 -0
  261. package/dist/components/lineage/components/Purpose.d.ts +6 -0
  262. package/dist/components/lineage/components/Purpose.d.ts.map +1 -0
  263. package/dist/components/lineage/components/ResetButton.d.ts +6 -0
  264. package/dist/components/lineage/components/ResetButton.d.ts.map +1 -0
  265. package/dist/components/lineage/components/Settings.d.ts +6 -0
  266. package/dist/components/lineage/components/Settings.d.ts.map +1 -0
  267. package/dist/components/lineage/components/SettingsButton.d.ts +3 -0
  268. package/dist/components/lineage/components/SettingsButton.d.ts.map +1 -0
  269. package/dist/components/lineage/components/SidebarErrorBoundary.d.ts +13 -0
  270. package/dist/components/lineage/components/SidebarErrorBoundary.d.ts.map +1 -0
  271. package/dist/components/lineage/components/SnowflakeStageDetails.d.ts +3 -0
  272. package/dist/components/lineage/components/SnowflakeStageDetails.d.ts.map +1 -0
  273. package/dist/components/lineage/components/SqlLineage.d.ts +12 -0
  274. package/dist/components/lineage/components/SqlLineage.d.ts.map +1 -0
  275. package/dist/components/lineage/components/StaticLineage.d.ts +17 -0
  276. package/dist/components/lineage/components/StaticLineage.d.ts.map +1 -0
  277. package/dist/components/lineage/components/TableDetails.d.ts +53 -0
  278. package/dist/components/lineage/components/TableDetails.d.ts.map +1 -0
  279. package/dist/components/lineage/components/Tags/index.d.ts +5 -0
  280. package/dist/components/lineage/components/Tags/index.d.ts.map +1 -0
  281. package/dist/components/lineage/components/ViewsTypeBadge.d.ts +5 -0
  282. package/dist/components/lineage/components/ViewsTypeBadge.d.ts.map +1 -0
  283. package/dist/components/lineage/components/sidebarModal/SidebarModal.d.ts +9 -0
  284. package/dist/components/lineage/components/sidebarModal/SidebarModal.d.ts.map +1 -0
  285. package/dist/components/lineage/constants.d.ts +12 -0
  286. package/dist/components/lineage/constants.d.ts.map +1 -0
  287. package/dist/components/lineage/context/LineageProvider.d.ts +35 -0
  288. package/dist/components/lineage/context/LineageProvider.d.ts.map +1 -0
  289. package/dist/components/lineage/context/LineageSlice.d.ts +4673 -0
  290. package/dist/components/lineage/context/LineageSlice.d.ts.map +1 -0
  291. package/dist/components/lineage/context/types.d.ts +57 -0
  292. package/dist/components/lineage/context/types.d.ts.map +1 -0
  293. package/dist/components/lineage/graph.d.ts +43 -0
  294. package/dist/components/lineage/graph.d.ts.map +1 -0
  295. package/dist/components/lineage/index.d.ts +8 -0
  296. package/dist/components/lineage/index.d.ts.map +1 -0
  297. package/dist/{lineage/index.d.ts → components/lineage/types.d.ts} +59 -92
  298. package/dist/components/lineage/types.d.ts.map +1 -0
  299. package/dist/components/lineage/utils.d.ts +100 -0
  300. package/dist/components/lineage/utils.d.ts.map +1 -0
  301. package/dist/components/shared/index.d.ts +2 -0
  302. package/dist/components/shared/index.d.ts.map +1 -0
  303. package/dist/components/shared/types.d.ts +18 -0
  304. package/dist/components/shared/types.d.ts.map +1 -0
  305. package/dist/components/teammate/AddLearningForm.d.ts +13 -0
  306. package/dist/components/teammate/AddLearningForm.d.ts.map +1 -0
  307. package/dist/components/teammate/CoachForm.d.ts +10 -0
  308. package/dist/components/teammate/CoachForm.d.ts.map +1 -0
  309. package/dist/components/teammate/CoachFormButton.d.ts +3 -0
  310. package/dist/components/teammate/CoachFormButton.d.ts.map +1 -0
  311. package/dist/components/teammate/CoachFormInput.d.ts +8 -0
  312. package/dist/components/teammate/CoachFormInput.d.ts.map +1 -0
  313. package/dist/components/teammate/LearningRow.d.ts +10 -0
  314. package/dist/components/teammate/LearningRow.d.ts.map +1 -0
  315. package/dist/components/teammate/LearningsList.d.ts +11 -0
  316. package/dist/components/teammate/LearningsList.d.ts.map +1 -0
  317. package/dist/components/teammate/TeamMateProvider.d.ts +8 -0
  318. package/dist/components/teammate/TeamMateProvider.d.ts.map +1 -0
  319. package/dist/components/teammate/TeamMates.d.ts +10 -0
  320. package/dist/components/teammate/TeamMates.d.ts.map +1 -0
  321. package/dist/components/teammate/TeamMatesCard.d.ts +10 -0
  322. package/dist/components/teammate/TeamMatesCard.d.ts.map +1 -0
  323. package/dist/components/teammate/alertManager/AlertManagerDisplay.d.ts +4 -0
  324. package/dist/components/teammate/alertManager/AlertManagerDisplay.d.ts.map +1 -0
  325. package/dist/components/teammate/assets/index.d.ts +8 -0
  326. package/dist/components/teammate/assets/index.d.ts.map +1 -0
  327. package/dist/components/teammate/index.d.ts +11 -0
  328. package/dist/components/teammate/index.d.ts.map +1 -0
  329. package/dist/components/teammate/projectGovernor/ChecksInput.d.ts +7 -0
  330. package/dist/components/teammate/projectGovernor/ChecksInput.d.ts.map +1 -0
  331. package/dist/components/teammate/projectGovernor/ProjectGovernanceCheck.d.ts +8 -0
  332. package/dist/components/teammate/projectGovernor/ProjectGovernanceCheck.d.ts.map +1 -0
  333. package/dist/components/teammate/projectGovernor/ProjectGovernorDisplay.d.ts +3 -0
  334. package/dist/components/teammate/projectGovernor/ProjectGovernorDisplay.d.ts.map +1 -0
  335. package/dist/components/teammate/projectGovernor/ProjectGovernorForm.d.ts +7 -0
  336. package/dist/components/teammate/projectGovernor/ProjectGovernorForm.d.ts.map +1 -0
  337. package/dist/components/teammate/projectGovernor/types.d.ts +48 -0
  338. package/dist/components/teammate/projectGovernor/types.d.ts.map +1 -0
  339. package/dist/components/teammate/teamMateSlice.d.ts +15 -0
  340. package/dist/components/teammate/teamMateSlice.d.ts.map +1 -0
  341. package/dist/components/teammate/teamMatesConfig.d.ts +3 -0
  342. package/dist/components/teammate/teamMatesConfig.d.ts.map +1 -0
  343. package/dist/components/teammate/teradata/HelloMessage.d.ts +3 -0
  344. package/dist/components/teammate/teradata/HelloMessage.d.ts.map +1 -0
  345. package/dist/components/teammate/teradata/MigratorDisplay.d.ts +4 -0
  346. package/dist/components/teammate/teradata/MigratorDisplay.d.ts.map +1 -0
  347. package/dist/components/teammate/types.d.ts +113 -0
  348. package/dist/components/teammate/types.d.ts.map +1 -0
  349. package/dist/components/teammate/useTeamMateContext.d.ts +3 -0
  350. package/dist/components/teammate/useTeamMateContext.d.ts.map +1 -0
  351. package/dist/components/user/ProfileImageByUser.d.ts +7 -0
  352. package/dist/components/user/ProfileImageByUser.d.ts.map +1 -0
  353. package/dist/components/user/index.d.ts +3 -0
  354. package/dist/components/user/index.d.ts.map +1 -0
  355. package/dist/components/user/types.d.ts +7 -0
  356. package/dist/components/user/types.d.ts.map +1 -0
  357. package/dist/dbtDocs.css +297 -0
  358. package/dist/dbtDocs.css.map +1 -0
  359. package/dist/dbtDocs.js +1 -0
  360. package/dist/index.d.ts +14 -285
  361. package/dist/index.d.ts.map +1 -0
  362. package/dist/index.js +1 -40
  363. package/dist/lineage.css +1221 -0
  364. package/dist/lineage.css.map +1 -0
  365. package/dist/lineage.js +7267 -0
  366. package/dist/lineage.js.map +1 -0
  367. package/dist/rslib-runtime.js +20 -0
  368. package/dist/rslib-runtime.js.map +1 -0
  369. package/dist/shared/AutosizeTextarea.d.ts +19 -0
  370. package/dist/shared/AutosizeTextarea.d.ts.map +1 -0
  371. package/dist/shared/Collapse.d.ts +7 -0
  372. package/dist/shared/Collapse.d.ts.map +1 -0
  373. package/dist/shared/Table.d.ts +4 -0
  374. package/dist/shared/Table.d.ts.map +1 -0
  375. package/dist/shared/index.d.ts +3 -0
  376. package/dist/shared/index.d.ts.map +1 -0
  377. package/dist/shared/utils.d.ts +3 -0
  378. package/dist/shared/utils.d.ts.map +1 -0
  379. package/dist/static/image/postgres.png +0 -0
  380. package/dist/static/image/s3.png +0 -0
  381. package/dist/static/image/snowflake.png +0 -0
  382. package/dist/static/svg/botIcon.svg +15 -0
  383. package/dist/static/svg/brackets.svg +5 -0
  384. package/dist/static/svg/case-sensitive.svg +5 -0
  385. package/dist/static/svg/docgen.svg +23 -0
  386. package/dist/static/svg/half-circle.svg +5 -0
  387. package/dist/static/svg/opportunities.svg +25 -0
  388. package/dist/static/svg/split-horizontal.svg +5 -0
  389. package/dist/static/svg/sqlExpert.svg +24 -0
  390. package/dist/static/svg/summary.svg +25 -0
  391. package/dist/styles.css +1638 -0
  392. package/dist/styles.css.map +1 -0
  393. package/dist/teammate.css +124 -0
  394. package/dist/teammate.css.map +1 -0
  395. package/dist/teammate.js +5655 -0
  396. package/dist/teammate.js.map +1 -0
  397. package/dist/user.css +14 -0
  398. package/dist/user.css.map +1 -0
  399. package/dist/user.js +13 -0
  400. package/dist/user.js.map +1 -0
  401. package/package.json +116 -34
  402. package/dist/Button-42Dj_nRE.d.ts +0 -28
  403. package/dist/CoachForm.css +0 -1
  404. package/dist/CoachForm.js +0 -44445
  405. package/dist/DbtDocsRenderer.js +0 -45647
  406. package/dist/IconEye.js +0 -11
  407. package/dist/Stack.js +0 -7170
  408. package/dist/Switch.js +0 -128
  409. package/dist/ToggleGroup.js +0 -8543
  410. package/dist/_basePickBy.js +0 -151
  411. package/dist/_baseUniq.js +0 -615
  412. package/dist/arc.js +0 -83
  413. package/dist/architecture-U656AL7Q.js +0 -5
  414. package/dist/architectureDiagram-VXUJARFQ.js +0 -4666
  415. package/dist/assets/icons/index.js +0 -56
  416. package/dist/blockDiagram-VD42YOAC.js +0 -2266
  417. package/dist/c4Diagram-YG6GDRKO.js +0 -1582
  418. package/dist/channel.js +0 -5
  419. package/dist/chatbotV2/index.d.ts +0 -359
  420. package/dist/chatbotV2/index.js +0 -58
  421. package/dist/chunk-4BX2VUAB.js +0 -9
  422. package/dist/chunk-55IACEB6.js +0 -9
  423. package/dist/chunk-B4BG7PRW.js +0 -1377
  424. package/dist/chunk-DI55MBZ5.js +0 -1382
  425. package/dist/chunk-FMBD7UC4.js +0 -19
  426. package/dist/chunk-QN33PNHL.js +0 -20
  427. package/dist/chunk-QZHKN3VN.js +0 -15
  428. package/dist/chunk-TZMSLE5B.js +0 -64
  429. package/dist/classDiagram-2ON5EDUG.js +0 -17
  430. package/dist/classDiagram-v2-WZHVMYZB.js +0 -17
  431. package/dist/clone.js +0 -8
  432. package/dist/cose-bilkent-S5V4N54A.js +0 -2606
  433. package/dist/cytoscape.esm.js +0 -18731
  434. package/dist/dagre-6UL2VRFP.js +0 -447
  435. package/dist/dayjs.min.js +0 -302
  436. package/dist/defaultLocale.js +0 -171
  437. package/dist/diagram-PSM6KHXK.js +0 -535
  438. package/dist/diagram-QEK2KX5R.js +0 -221
  439. package/dist/diagram-S2PKOQOG.js +0 -143
  440. package/dist/erDiagram-Q2GNP2WA.js +0 -843
  441. package/dist/flowDiagram-NV44I4VS.js +0 -1628
  442. package/dist/ganttDiagram-LVOFAZNH.js +0 -2500
  443. package/dist/gitGraph-F6HP7TQM.js +0 -5
  444. package/dist/gitGraphDiagram-NY62KEGX.js +0 -713
  445. package/dist/graph.js +0 -247
  446. package/dist/index.css +0 -1
  447. package/dist/index2.js +0 -689
  448. package/dist/info-NVLQJR56.js +0 -5
  449. package/dist/infoDiagram-F6ZHWCRC.js +0 -24
  450. package/dist/init.js +0 -16
  451. package/dist/journeyDiagram-XKPGCS4Q.js +0 -837
  452. package/dist/kanban-definition-3W4ZIXB7.js +0 -720
  453. package/dist/katex.js +0 -11691
  454. package/dist/layout.js +0 -1324
  455. package/dist/lineage/index.js +0 -7328
  456. package/dist/linear.js +0 -259
  457. package/dist/main.css +0 -1
  458. package/dist/main.js +0 -4566
  459. package/dist/mermaid-parser.core.js +0 -12921
  460. package/dist/mindmap-definition-VGOIOE7T.js +0 -786
  461. package/dist/ordinal.js +0 -61
  462. package/dist/packet-BFZMPI3H.js +0 -5
  463. package/dist/pie-7BOR55EZ.js +0 -5
  464. package/dist/pieDiagram-ADFJNKIX.js +0 -163
  465. package/dist/quadrantDiagram-AYHSOK5B.js +0 -1025
  466. package/dist/radar-NHE76QYJ.js +0 -5
  467. package/dist/redux-toolkit.css +0 -1
  468. package/dist/redux-toolkit.modern.js +0 -12525
  469. package/dist/requirementDiagram-UZGBJVZJ.js +0 -852
  470. package/dist/sankeyDiagram-TZEHDZUN.js +0 -811
  471. package/dist/sequenceDiagram-WL72ISMW.js +0 -2523
  472. package/dist/shadcn/index.d.ts +0 -761
  473. package/dist/shadcn/index.js +0 -8680
  474. package/dist/stateDiagram-FKZM4ZOC.js +0 -264
  475. package/dist/stateDiagram-v2-4FDKWEC3.js +0 -17
  476. package/dist/storybook/Accordion.stories.tsx +0 -52
  477. package/dist/storybook/Alert.stories.tsx +0 -101
  478. package/dist/storybook/AlertDialog.stories.tsx +0 -161
  479. package/dist/storybook/AutosizeTextarea.stories.tsx +0 -52
  480. package/dist/storybook/Avatar.stories.tsx +0 -58
  481. package/dist/storybook/Badge.stories.tsx +0 -43
  482. package/dist/storybook/Button.stories.tsx +0 -67
  483. package/dist/storybook/Calendar.stories.tsx +0 -103
  484. package/dist/storybook/Card.stories.tsx +0 -69
  485. package/dist/storybook/Carousel.stories.tsx +0 -274
  486. package/dist/storybook/Checkbox.stories.tsx +0 -65
  487. package/dist/storybook/Combobox.stories.tsx +0 -1629
  488. package/dist/storybook/Command.stories.tsx +0 -35
  489. package/dist/storybook/DateRange.stories.tsx +0 -540
  490. package/dist/storybook/DebouncedInput.stories.tsx +0 -179
  491. package/dist/storybook/DropdownMenu.stories.tsx +0 -36
  492. package/dist/storybook/Form.stories.tsx +0 -114
  493. package/dist/storybook/HoverCard.stories.tsx +0 -99
  494. package/dist/storybook/Input.stories.tsx +0 -156
  495. package/dist/storybook/InputGroup.stories.tsx +0 -352
  496. package/dist/storybook/Label.stories.tsx +0 -42
  497. package/dist/storybook/Menubar.stories.tsx +0 -159
  498. package/dist/storybook/Pagination.stories.tsx +0 -152
  499. package/dist/storybook/Popover.stories.tsx +0 -23
  500. package/dist/storybook/Progress.stories.tsx +0 -89
  501. package/dist/storybook/RadioGroup.stories.tsx +0 -58
  502. package/dist/storybook/Resizable.stories.tsx +0 -119
  503. package/dist/storybook/ScrollArea.stories.tsx +0 -101
  504. package/dist/storybook/Select.stories.tsx +0 -145
  505. package/dist/storybook/Sheet.stories.tsx +0 -69
  506. package/dist/storybook/Sidebar.stories.tsx +0 -97
  507. package/dist/storybook/Slider.stories.tsx +0 -79
  508. package/dist/storybook/Switch.stories.tsx +0 -90
  509. package/dist/storybook/Tabs.stories.tsx +0 -147
  510. package/dist/storybook/TagsInput.stories.tsx +0 -261
  511. package/dist/storybook/Textarea.stories.tsx +0 -50
  512. package/dist/storybook/Toast.stories.tsx +0 -107
  513. package/dist/storybook/Toggle.stories.tsx +0 -106
  514. package/dist/storybook/ToggleGroup.stories.tsx +0 -178
  515. package/dist/storybook/Tooltip.stories.tsx +0 -25
  516. package/dist/storybook/Typography.stories.tsx +0 -231
  517. package/dist/storybook/drag-and-drop-file-upload.stories.tsx +0 -99
  518. package/dist/timeline-definition-IT6M3QCI.js +0 -802
  519. package/dist/treemap-KMMF4GRG.js +0 -5
  520. package/dist/xychartDiagram-PRI3JC2R.js +0 -1341
  521. package/readme.md +0 -11
@@ -1,713 +0,0 @@
1
- import { p as Z } from "./chunk-4BX2VUAB.js";
2
- import { I as F } from "./chunk-QZHKN3VN.js";
3
- import { au as U, a1 as h, a7 as rr, av as er, aw as tr, ax as ar, ad as m, a3 as nr, a4 as sr, a5 as or, a6 as cr, ag as ir, ah as dr, a9 as B, an as hr, am as lr, ay as $r } from "./CoachForm.js";
4
- import { p as fr } from "./mermaid-parser.core.js";
5
- import { s as gr } from "./redux-toolkit.modern.js";
6
- var u = {
7
- NORMAL: 0,
8
- REVERSE: 1,
9
- HIGHLIGHT: 2,
10
- MERGE: 3,
11
- CHERRY_PICK: 4
12
- }, yr = U.gitGraph, z = /* @__PURE__ */ h(() => er({
13
- ...yr,
14
- ...tr().gitGraph
15
- }), "getConfig"), i = new F(() => {
16
- const t = z(), r = t.mainBranchName, a = t.mainBranchOrder;
17
- return {
18
- mainBranchName: r,
19
- commits: /* @__PURE__ */ new Map(),
20
- head: null,
21
- branchConfig: /* @__PURE__ */ new Map([[r, { name: r, order: a }]]),
22
- branches: /* @__PURE__ */ new Map([[r, null]]),
23
- currBranch: r,
24
- direction: "LR",
25
- seq: 0,
26
- options: {}
27
- };
28
- });
29
- function S() {
30
- return ar({ length: 7 });
31
- }
32
- h(S, "getID");
33
- function N(t, r) {
34
- const a = /* @__PURE__ */ Object.create(null);
35
- return t.reduce((s, e) => {
36
- const n = r(e);
37
- return a[n] || (a[n] = !0, s.push(e)), s;
38
- }, []);
39
- }
40
- h(N, "uniqBy");
41
- var xr = /* @__PURE__ */ h(function(t) {
42
- i.records.direction = t;
43
- }, "setDirection"), ur = /* @__PURE__ */ h(function(t) {
44
- m.debug("options str", t), t = t == null ? void 0 : t.trim(), t = t || "{}";
45
- try {
46
- i.records.options = JSON.parse(t);
47
- } catch (r) {
48
- m.error("error while parsing gitGraph options", r.message);
49
- }
50
- }, "setOptions"), pr = /* @__PURE__ */ h(function() {
51
- return i.records.options;
52
- }, "getOptions"), br = /* @__PURE__ */ h(function(t) {
53
- let r = t.msg, a = t.id;
54
- const s = t.type;
55
- let e = t.tags;
56
- m.info("commit", r, a, s, e), m.debug("Entering commit:", r, a, s, e);
57
- const n = z();
58
- a = B.sanitizeText(a, n), r = B.sanitizeText(r, n), e = e == null ? void 0 : e.map((o) => B.sanitizeText(o, n));
59
- const c = {
60
- id: a || i.records.seq + "-" + S(),
61
- message: r,
62
- seq: i.records.seq++,
63
- type: s ?? u.NORMAL,
64
- tags: e ?? [],
65
- parents: i.records.head == null ? [] : [i.records.head.id],
66
- branch: i.records.currBranch
67
- };
68
- i.records.head = c, m.info("main branch", n.mainBranchName), i.records.commits.has(c.id) && m.warn(`Commit ID ${c.id} already exists`), i.records.commits.set(c.id, c), i.records.branches.set(i.records.currBranch, c.id), m.debug("in pushCommit " + c.id);
69
- }, "commit"), mr = /* @__PURE__ */ h(function(t) {
70
- let r = t.name;
71
- const a = t.order;
72
- if (r = B.sanitizeText(r, z()), i.records.branches.has(r))
73
- throw new Error(
74
- `Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`
75
- );
76
- i.records.branches.set(r, i.records.head != null ? i.records.head.id : null), i.records.branchConfig.set(r, { name: r, order: a }), _(r), m.debug("in createBranch");
77
- }, "branch"), wr = /* @__PURE__ */ h((t) => {
78
- let r = t.branch, a = t.id;
79
- const s = t.type, e = t.tags, n = z();
80
- r = B.sanitizeText(r, n), a && (a = B.sanitizeText(a, n));
81
- const c = i.records.branches.get(i.records.currBranch), o = i.records.branches.get(r), $ = c ? i.records.commits.get(c) : void 0, l = o ? i.records.commits.get(o) : void 0;
82
- if ($ && l && $.branch === r)
83
- throw new Error(`Cannot merge branch '${r}' into itself.`);
84
- if (i.records.currBranch === r) {
85
- const d = new Error('Incorrect usage of "merge". Cannot merge a branch to itself');
86
- throw d.hash = {
87
- text: `merge ${r}`,
88
- token: `merge ${r}`,
89
- expected: ["branch abc"]
90
- }, d;
91
- }
92
- if ($ === void 0 || !$) {
93
- const d = new Error(
94
- `Incorrect usage of "merge". Current branch (${i.records.currBranch})has no commits`
95
- );
96
- throw d.hash = {
97
- text: `merge ${r}`,
98
- token: `merge ${r}`,
99
- expected: ["commit"]
100
- }, d;
101
- }
102
- if (!i.records.branches.has(r)) {
103
- const d = new Error(
104
- 'Incorrect usage of "merge". Branch to be merged (' + r + ") does not exist"
105
- );
106
- throw d.hash = {
107
- text: `merge ${r}`,
108
- token: `merge ${r}`,
109
- expected: [`branch ${r}`]
110
- }, d;
111
- }
112
- if (l === void 0 || !l) {
113
- const d = new Error(
114
- 'Incorrect usage of "merge". Branch to be merged (' + r + ") has no commits"
115
- );
116
- throw d.hash = {
117
- text: `merge ${r}`,
118
- token: `merge ${r}`,
119
- expected: ['"commit"']
120
- }, d;
121
- }
122
- if ($ === l) {
123
- const d = new Error('Incorrect usage of "merge". Both branches have same head');
124
- throw d.hash = {
125
- text: `merge ${r}`,
126
- token: `merge ${r}`,
127
- expected: ["branch abc"]
128
- }, d;
129
- }
130
- if (a && i.records.commits.has(a)) {
131
- const d = new Error(
132
- 'Incorrect usage of "merge". Commit with id:' + a + " already exists, use different custom id"
133
- );
134
- throw d.hash = {
135
- text: `merge ${r} ${a} ${s} ${e == null ? void 0 : e.join(" ")}`,
136
- token: `merge ${r} ${a} ${s} ${e == null ? void 0 : e.join(" ")}`,
137
- expected: [
138
- `merge ${r} ${a}_UNIQUE ${s} ${e == null ? void 0 : e.join(" ")}`
139
- ]
140
- }, d;
141
- }
142
- const f = o || "", g = {
143
- id: a || `${i.records.seq}-${S()}`,
144
- message: `merged branch ${r} into ${i.records.currBranch}`,
145
- seq: i.records.seq++,
146
- parents: i.records.head == null ? [] : [i.records.head.id, f],
147
- branch: i.records.currBranch,
148
- type: u.MERGE,
149
- customType: s,
150
- customId: !!a,
151
- tags: e ?? []
152
- };
153
- i.records.head = g, i.records.commits.set(g.id, g), i.records.branches.set(i.records.currBranch, g.id), m.debug(i.records.branches), m.debug("in mergeBranch");
154
- }, "merge"), vr = /* @__PURE__ */ h(function(t) {
155
- let r = t.id, a = t.targetId, s = t.tags, e = t.parent;
156
- m.debug("Entering cherryPick:", r, a, s);
157
- const n = z();
158
- if (r = B.sanitizeText(r, n), a = B.sanitizeText(a, n), s = s == null ? void 0 : s.map(($) => B.sanitizeText($, n)), e = B.sanitizeText(e, n), !r || !i.records.commits.has(r)) {
159
- const $ = new Error(
160
- 'Incorrect usage of "cherryPick". Source commit id should exist and provided'
161
- );
162
- throw $.hash = {
163
- text: `cherryPick ${r} ${a}`,
164
- token: `cherryPick ${r} ${a}`,
165
- expected: ["cherry-pick abc"]
166
- }, $;
167
- }
168
- const c = i.records.commits.get(r);
169
- if (c === void 0 || !c)
170
- throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');
171
- if (e && !(Array.isArray(c.parents) && c.parents.includes(e)))
172
- throw new Error(
173
- "Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit."
174
- );
175
- const o = c.branch;
176
- if (c.type === u.MERGE && !e)
177
- throw new Error(
178
- "Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified."
179
- );
180
- if (!a || !i.records.commits.has(a)) {
181
- if (o === i.records.currBranch) {
182
- const g = new Error(
183
- 'Incorrect usage of "cherryPick". Source commit is already on current branch'
184
- );
185
- throw g.hash = {
186
- text: `cherryPick ${r} ${a}`,
187
- token: `cherryPick ${r} ${a}`,
188
- expected: ["cherry-pick abc"]
189
- }, g;
190
- }
191
- const $ = i.records.branches.get(i.records.currBranch);
192
- if ($ === void 0 || !$) {
193
- const g = new Error(
194
- `Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`
195
- );
196
- throw g.hash = {
197
- text: `cherryPick ${r} ${a}`,
198
- token: `cherryPick ${r} ${a}`,
199
- expected: ["cherry-pick abc"]
200
- }, g;
201
- }
202
- const l = i.records.commits.get($);
203
- if (l === void 0 || !l) {
204
- const g = new Error(
205
- `Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`
206
- );
207
- throw g.hash = {
208
- text: `cherryPick ${r} ${a}`,
209
- token: `cherryPick ${r} ${a}`,
210
- expected: ["cherry-pick abc"]
211
- }, g;
212
- }
213
- const f = {
214
- id: i.records.seq + "-" + S(),
215
- message: `cherry-picked ${c == null ? void 0 : c.message} into ${i.records.currBranch}`,
216
- seq: i.records.seq++,
217
- parents: i.records.head == null ? [] : [i.records.head.id, c.id],
218
- branch: i.records.currBranch,
219
- type: u.CHERRY_PICK,
220
- tags: s ? s.filter(Boolean) : [
221
- `cherry-pick:${c.id}${c.type === u.MERGE ? `|parent:${e}` : ""}`
222
- ]
223
- };
224
- i.records.head = f, i.records.commits.set(f.id, f), i.records.branches.set(i.records.currBranch, f.id), m.debug(i.records.branches), m.debug("in cherryPick");
225
- }
226
- }, "cherryPick"), _ = /* @__PURE__ */ h(function(t) {
227
- if (t = B.sanitizeText(t, z()), i.records.branches.has(t)) {
228
- i.records.currBranch = t;
229
- const r = i.records.branches.get(i.records.currBranch);
230
- r === void 0 || !r ? i.records.head = null : i.records.head = i.records.commits.get(r) ?? null;
231
- } else {
232
- const r = new Error(
233
- `Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`
234
- );
235
- throw r.hash = {
236
- text: `checkout ${t}`,
237
- token: `checkout ${t}`,
238
- expected: [`branch ${t}`]
239
- }, r;
240
- }
241
- }, "checkout");
242
- function A(t, r, a) {
243
- const s = t.indexOf(r);
244
- s === -1 ? t.push(a) : t.splice(s, 1, a);
245
- }
246
- h(A, "upsert");
247
- function D(t) {
248
- const r = t.reduce((e, n) => e.seq > n.seq ? e : n, t[0]);
249
- let a = "";
250
- t.forEach(function(e) {
251
- e === r ? a += " *" : a += " |";
252
- });
253
- const s = [a, r.id, r.seq];
254
- for (const e in i.records.branches)
255
- i.records.branches.get(e) === r.id && s.push(e);
256
- if (m.debug(s.join(" ")), r.parents && r.parents.length == 2 && r.parents[0] && r.parents[1]) {
257
- const e = i.records.commits.get(r.parents[0]);
258
- A(t, r, e), r.parents[1] && t.push(i.records.commits.get(r.parents[1]));
259
- } else {
260
- if (r.parents.length == 0)
261
- return;
262
- if (r.parents[0]) {
263
- const e = i.records.commits.get(r.parents[0]);
264
- A(t, r, e);
265
- }
266
- }
267
- t = N(t, (e) => e.id), D(t);
268
- }
269
- h(D, "prettyPrintCommitHistory");
270
- var Cr = /* @__PURE__ */ h(function() {
271
- m.debug(i.records.commits);
272
- const t = V()[0];
273
- D([t]);
274
- }, "prettyPrint"), Er = /* @__PURE__ */ h(function() {
275
- i.reset(), hr();
276
- }, "clear"), Br = /* @__PURE__ */ h(function() {
277
- return [...i.records.branchConfig.values()].map((r, a) => r.order !== null && r.order !== void 0 ? r : {
278
- ...r,
279
- order: parseFloat(`0.${a}`)
280
- }).sort((r, a) => (r.order ?? 0) - (a.order ?? 0)).map(({ name: r }) => ({ name: r }));
281
- }, "getBranchesAsObjArray"), kr = /* @__PURE__ */ h(function() {
282
- return i.records.branches;
283
- }, "getBranches"), Lr = /* @__PURE__ */ h(function() {
284
- return i.records.commits;
285
- }, "getCommits"), V = /* @__PURE__ */ h(function() {
286
- const t = [...i.records.commits.values()];
287
- return t.forEach(function(r) {
288
- m.debug(r.id);
289
- }), t.sort((r, a) => r.seq - a.seq), t;
290
- }, "getCommitsArray"), Tr = /* @__PURE__ */ h(function() {
291
- return i.records.currBranch;
292
- }, "getCurrentBranch"), Mr = /* @__PURE__ */ h(function() {
293
- return i.records.direction;
294
- }, "getDirection"), Rr = /* @__PURE__ */ h(function() {
295
- return i.records.head;
296
- }, "getHead"), X = {
297
- commitType: u,
298
- getConfig: z,
299
- setDirection: xr,
300
- setOptions: ur,
301
- getOptions: pr,
302
- commit: br,
303
- branch: mr,
304
- merge: wr,
305
- cherryPick: vr,
306
- checkout: _,
307
- //reset,
308
- prettyPrint: Cr,
309
- clear: Er,
310
- getBranchesAsObjArray: Br,
311
- getBranches: kr,
312
- getCommits: Lr,
313
- getCommitsArray: V,
314
- getCurrentBranch: Tr,
315
- getDirection: Mr,
316
- getHead: Rr,
317
- setAccTitle: nr,
318
- getAccTitle: sr,
319
- getAccDescription: or,
320
- setAccDescription: cr,
321
- setDiagramTitle: ir,
322
- getDiagramTitle: dr
323
- }, Ir = /* @__PURE__ */ h((t, r) => {
324
- Z(t, r), t.dir && r.setDirection(t.dir);
325
- for (const a of t.statements)
326
- qr(a, r);
327
- }, "populate"), qr = /* @__PURE__ */ h((t, r) => {
328
- const s = {
329
- Commit: /* @__PURE__ */ h((e) => r.commit(Or(e)), "Commit"),
330
- Branch: /* @__PURE__ */ h((e) => r.branch(zr(e)), "Branch"),
331
- Merge: /* @__PURE__ */ h((e) => r.merge(Gr(e)), "Merge"),
332
- Checkout: /* @__PURE__ */ h((e) => r.checkout(Hr(e)), "Checkout"),
333
- CherryPicking: /* @__PURE__ */ h((e) => r.cherryPick(Pr(e)), "CherryPicking")
334
- }[t.$type];
335
- s ? s(t) : m.error(`Unknown statement type: ${t.$type}`);
336
- }, "parseStatement"), Or = /* @__PURE__ */ h((t) => ({
337
- id: t.id,
338
- msg: t.message ?? "",
339
- type: t.type !== void 0 ? u[t.type] : u.NORMAL,
340
- tags: t.tags ?? void 0
341
- }), "parseCommit"), zr = /* @__PURE__ */ h((t) => ({
342
- name: t.name,
343
- order: t.order ?? 0
344
- }), "parseBranch"), Gr = /* @__PURE__ */ h((t) => ({
345
- branch: t.branch,
346
- id: t.id ?? "",
347
- type: t.type !== void 0 ? u[t.type] : void 0,
348
- tags: t.tags ?? void 0
349
- }), "parseMerge"), Hr = /* @__PURE__ */ h((t) => t.branch, "parseCheckout"), Pr = /* @__PURE__ */ h((t) => {
350
- var a;
351
- return {
352
- id: t.id,
353
- targetId: "",
354
- tags: ((a = t.tags) == null ? void 0 : a.length) === 0 ? void 0 : t.tags,
355
- parent: t.parent
356
- };
357
- }, "parseCherryPicking"), Wr = {
358
- parse: /* @__PURE__ */ h(async (t) => {
359
- const r = await fr("gitGraph", t);
360
- m.debug(r), Ir(r, X);
361
- }, "parse")
362
- }, j = rr(), b = j == null ? void 0 : j.gitGraph, R = 10, I = 40, k = 4, L = 2, O = 8, C = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), P = 30, G = /* @__PURE__ */ new Map(), W = [], M = 0, x = "LR", Sr = /* @__PURE__ */ h(() => {
363
- C.clear(), E.clear(), G.clear(), M = 0, W = [], x = "LR";
364
- }, "clear"), J = /* @__PURE__ */ h((t) => {
365
- const r = document.createElementNS("http://www.w3.org/2000/svg", "text");
366
- return (typeof t == "string" ? t.split(/\\n|\n|<br\s*\/?>/gi) : t).forEach((s) => {
367
- const e = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
368
- e.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve"), e.setAttribute("dy", "1em"), e.setAttribute("x", "0"), e.setAttribute("class", "row"), e.textContent = s.trim(), r.appendChild(e);
369
- }), r;
370
- }, "drawText"), Q = /* @__PURE__ */ h((t) => {
371
- let r, a, s;
372
- return x === "BT" ? (a = /* @__PURE__ */ h((e, n) => e <= n, "comparisonFunc"), s = 1 / 0) : (a = /* @__PURE__ */ h((e, n) => e >= n, "comparisonFunc"), s = 0), t.forEach((e) => {
373
- var c, o;
374
- const n = x === "TB" || x == "BT" ? (c = E.get(e)) == null ? void 0 : c.y : (o = E.get(e)) == null ? void 0 : o.x;
375
- n !== void 0 && a(n, s) && (r = e, s = n);
376
- }), r;
377
- }, "findClosestParent"), jr = /* @__PURE__ */ h((t) => {
378
- let r = "", a = 1 / 0;
379
- return t.forEach((s) => {
380
- const e = E.get(s).y;
381
- e <= a && (r = s, a = e);
382
- }), r || void 0;
383
- }, "findClosestParentBT"), Ar = /* @__PURE__ */ h((t, r, a) => {
384
- let s = a, e = a;
385
- const n = [];
386
- t.forEach((c) => {
387
- const o = r.get(c);
388
- if (!o)
389
- throw new Error(`Commit not found for key ${c}`);
390
- o.parents.length ? (s = Yr(o), e = Math.max(s, e)) : n.push(o), Kr(o, s);
391
- }), s = e, n.forEach((c) => {
392
- Nr(c, s, a);
393
- }), t.forEach((c) => {
394
- const o = r.get(c);
395
- if (o != null && o.parents.length) {
396
- const $ = jr(o.parents);
397
- s = E.get($).y - I, s <= e && (e = s);
398
- const l = C.get(o.branch).pos, f = s - R;
399
- E.set(o.id, { x: l, y: f });
400
- }
401
- });
402
- }, "setParallelBTPos"), Dr = /* @__PURE__ */ h((t) => {
403
- var s;
404
- const r = Q(t.parents.filter((e) => e !== null));
405
- if (!r)
406
- throw new Error(`Closest parent not found for commit ${t.id}`);
407
- const a = (s = E.get(r)) == null ? void 0 : s.y;
408
- if (a === void 0)
409
- throw new Error(`Closest parent position not found for commit ${t.id}`);
410
- return a;
411
- }, "findClosestParentPos"), Yr = /* @__PURE__ */ h((t) => Dr(t) + I, "calculateCommitPosition"), Kr = /* @__PURE__ */ h((t, r) => {
412
- const a = C.get(t.branch);
413
- if (!a)
414
- throw new Error(`Branch not found for commit ${t.id}`);
415
- const s = a.pos, e = r + R;
416
- return E.set(t.id, { x: s, y: e }), { x: s, y: e };
417
- }, "setCommitPosition"), Nr = /* @__PURE__ */ h((t, r, a) => {
418
- const s = C.get(t.branch);
419
- if (!s)
420
- throw new Error(`Branch not found for commit ${t.id}`);
421
- const e = r + a, n = s.pos;
422
- E.set(t.id, { x: n, y: e });
423
- }, "setRootPosition"), _r = /* @__PURE__ */ h((t, r, a, s, e, n) => {
424
- if (n === u.HIGHLIGHT)
425
- t.append("rect").attr("x", a.x - 10).attr("y", a.y - 10).attr("width", 20).attr("height", 20).attr(
426
- "class",
427
- `commit ${r.id} commit-highlight${e % O} ${s}-outer`
428
- ), t.append("rect").attr("x", a.x - 6).attr("y", a.y - 6).attr("width", 12).attr("height", 12).attr(
429
- "class",
430
- `commit ${r.id} commit${e % O} ${s}-inner`
431
- );
432
- else if (n === u.CHERRY_PICK)
433
- t.append("circle").attr("cx", a.x).attr("cy", a.y).attr("r", 10).attr("class", `commit ${r.id} ${s}`), t.append("circle").attr("cx", a.x - 3).attr("cy", a.y + 2).attr("r", 2.75).attr("fill", "#fff").attr("class", `commit ${r.id} ${s}`), t.append("circle").attr("cx", a.x + 3).attr("cy", a.y + 2).attr("r", 2.75).attr("fill", "#fff").attr("class", `commit ${r.id} ${s}`), t.append("line").attr("x1", a.x + 3).attr("y1", a.y + 1).attr("x2", a.x).attr("y2", a.y - 5).attr("stroke", "#fff").attr("class", `commit ${r.id} ${s}`), t.append("line").attr("x1", a.x - 3).attr("y1", a.y + 1).attr("x2", a.x).attr("y2", a.y - 5).attr("stroke", "#fff").attr("class", `commit ${r.id} ${s}`);
434
- else {
435
- const c = t.append("circle");
436
- if (c.attr("cx", a.x), c.attr("cy", a.y), c.attr("r", r.type === u.MERGE ? 9 : 10), c.attr("class", `commit ${r.id} commit${e % O}`), n === u.MERGE) {
437
- const o = t.append("circle");
438
- o.attr("cx", a.x), o.attr("cy", a.y), o.attr("r", 6), o.attr(
439
- "class",
440
- `commit ${s} ${r.id} commit${e % O}`
441
- );
442
- }
443
- n === u.REVERSE && t.append("path").attr(
444
- "d",
445
- `M ${a.x - 5},${a.y - 5}L${a.x + 5},${a.y + 5}M${a.x - 5},${a.y + 5}L${a.x + 5},${a.y - 5}`
446
- ).attr("class", `commit ${s} ${r.id} commit${e % O}`);
447
- }
448
- }, "drawCommitBullet"), Vr = /* @__PURE__ */ h((t, r, a, s) => {
449
- var e;
450
- if (r.type !== u.CHERRY_PICK && (r.customId && r.type === u.MERGE || r.type !== u.MERGE) && (b != null && b.showCommitLabel)) {
451
- const n = t.append("g"), c = n.insert("rect").attr("class", "commit-label-bkg"), o = n.append("text").attr("x", s).attr("y", a.y + 25).attr("class", "commit-label").text(r.id), $ = (e = o.node()) == null ? void 0 : e.getBBox();
452
- if ($ && (c.attr("x", a.posWithOffset - $.width / 2 - L).attr("y", a.y + 13.5).attr("width", $.width + 2 * L).attr("height", $.height + 2 * L), x === "TB" || x === "BT" ? (c.attr("x", a.x - ($.width + 4 * k + 5)).attr("y", a.y - 12), o.attr("x", a.x - ($.width + 4 * k)).attr("y", a.y + $.height - 12)) : o.attr("x", a.posWithOffset - $.width / 2), b.rotateCommitLabel))
453
- if (x === "TB" || x === "BT")
454
- o.attr(
455
- "transform",
456
- "rotate(-45, " + a.x + ", " + a.y + ")"
457
- ), c.attr(
458
- "transform",
459
- "rotate(-45, " + a.x + ", " + a.y + ")"
460
- );
461
- else {
462
- const l = -7.5 - ($.width + 10) / 25 * 9.5, f = 10 + $.width / 25 * 8.5;
463
- n.attr(
464
- "transform",
465
- "translate(" + l + ", " + f + ") rotate(-45, " + s + ", " + a.y + ")"
466
- );
467
- }
468
- }
469
- }, "drawCommitLabel"), Xr = /* @__PURE__ */ h((t, r, a, s) => {
470
- var e;
471
- if (r.tags.length > 0) {
472
- let n = 0, c = 0, o = 0;
473
- const $ = [];
474
- for (const l of r.tags.reverse()) {
475
- const f = t.insert("polygon"), g = t.append("circle"), d = t.append("text").attr("y", a.y - 16 - n).attr("class", "tag-label").text(l), y = (e = d.node()) == null ? void 0 : e.getBBox();
476
- if (!y)
477
- throw new Error("Tag bbox not found");
478
- c = Math.max(c, y.width), o = Math.max(o, y.height), d.attr("x", a.posWithOffset - y.width / 2), $.push({
479
- tag: d,
480
- hole: g,
481
- rect: f,
482
- yOffset: n
483
- }), n += 20;
484
- }
485
- for (const { tag: l, hole: f, rect: g, yOffset: d } of $) {
486
- const y = o / 2, p = a.y - 19.2 - d;
487
- if (g.attr("class", "tag-label-bkg").attr(
488
- "points",
489
- `
490
- ${s - c / 2 - k / 2},${p + L}
491
- ${s - c / 2 - k / 2},${p - L}
492
- ${a.posWithOffset - c / 2 - k},${p - y - L}
493
- ${a.posWithOffset + c / 2 + k},${p - y - L}
494
- ${a.posWithOffset + c / 2 + k},${p + y + L}
495
- ${a.posWithOffset - c / 2 - k},${p + y + L}`
496
- ), f.attr("cy", p).attr("cx", s - c / 2 + k / 2).attr("r", 1.5).attr("class", "tag-hole"), x === "TB" || x === "BT") {
497
- const w = s + d;
498
- g.attr("class", "tag-label-bkg").attr(
499
- "points",
500
- `
501
- ${a.x},${w + 2}
502
- ${a.x},${w - 2}
503
- ${a.x + R},${w - y - 2}
504
- ${a.x + R + c + 4},${w - y - 2}
505
- ${a.x + R + c + 4},${w + y + 2}
506
- ${a.x + R},${w + y + 2}`
507
- ).attr("transform", "translate(12,12) rotate(45, " + a.x + "," + s + ")"), f.attr("cx", a.x + k / 2).attr("cy", w).attr("transform", "translate(12,12) rotate(45, " + a.x + "," + s + ")"), l.attr("x", a.x + 5).attr("y", w + 3).attr("transform", "translate(14,14) rotate(45, " + a.x + "," + s + ")");
508
- }
509
- }
510
- }
511
- }, "drawCommitTags"), Jr = /* @__PURE__ */ h((t) => {
512
- switch (t.customType ?? t.type) {
513
- case u.NORMAL:
514
- return "commit-normal";
515
- case u.REVERSE:
516
- return "commit-reverse";
517
- case u.HIGHLIGHT:
518
- return "commit-highlight";
519
- case u.MERGE:
520
- return "commit-merge";
521
- case u.CHERRY_PICK:
522
- return "commit-cherry-pick";
523
- default:
524
- return "commit-normal";
525
- }
526
- }, "getCommitClassType"), Qr = /* @__PURE__ */ h((t, r, a, s) => {
527
- const e = { x: 0, y: 0 };
528
- if (t.parents.length > 0) {
529
- const n = Q(t.parents);
530
- if (n) {
531
- const c = s.get(n) ?? e;
532
- return r === "TB" ? c.y + I : r === "BT" ? (s.get(t.id) ?? e).y - I : c.x + I;
533
- }
534
- } else
535
- return r === "TB" ? P : r === "BT" ? (s.get(t.id) ?? e).y - I : 0;
536
- return 0;
537
- }, "calculatePosition"), Zr = /* @__PURE__ */ h((t, r, a) => {
538
- var c, o;
539
- const s = x === "BT" && a ? r : r + R, e = x === "TB" || x === "BT" ? s : (c = C.get(t.branch)) == null ? void 0 : c.pos, n = x === "TB" || x === "BT" ? (o = C.get(t.branch)) == null ? void 0 : o.pos : s;
540
- if (n === void 0 || e === void 0)
541
- throw new Error(`Position were undefined for commit ${t.id}`);
542
- return { x: n, y: e, posWithOffset: s };
543
- }, "getCommitPosition"), K = /* @__PURE__ */ h((t, r, a) => {
544
- if (!b)
545
- throw new Error("GitGraph config not found");
546
- const s = t.append("g").attr("class", "commit-bullets"), e = t.append("g").attr("class", "commit-labels");
547
- let n = x === "TB" || x === "BT" ? P : 0;
548
- const c = [...r.keys()], o = (b == null ? void 0 : b.parallelCommits) ?? !1, $ = /* @__PURE__ */ h((f, g) => {
549
- var p, w;
550
- const d = (p = r.get(f)) == null ? void 0 : p.seq, y = (w = r.get(g)) == null ? void 0 : w.seq;
551
- return d !== void 0 && y !== void 0 ? d - y : 0;
552
- }, "sortKeys");
553
- let l = c.sort($);
554
- x === "BT" && (o && Ar(l, r, n), l = l.reverse()), l.forEach((f) => {
555
- var y;
556
- const g = r.get(f);
557
- if (!g)
558
- throw new Error(`Commit not found for key ${f}`);
559
- o && (n = Qr(g, x, n, E));
560
- const d = Zr(g, n, o);
561
- if (a) {
562
- const p = Jr(g), w = g.customType ?? g.type, q = ((y = C.get(g.branch)) == null ? void 0 : y.index) ?? 0;
563
- _r(s, g, d, p, q, w), Vr(e, g, d, n), Xr(e, g, d, n);
564
- }
565
- x === "TB" || x === "BT" ? E.set(g.id, { x: d.x, y: d.posWithOffset }) : E.set(g.id, { x: d.posWithOffset, y: d.y }), n = x === "BT" && o ? n + I : n + I + R, n > M && (M = n);
566
- });
567
- }, "drawCommits"), Fr = /* @__PURE__ */ h((t, r, a, s, e) => {
568
- const c = (x === "TB" || x === "BT" ? a.x < s.x : a.y < s.y) ? r.branch : t.branch, o = /* @__PURE__ */ h((l) => l.branch === c, "isOnBranchToGetCurve"), $ = /* @__PURE__ */ h((l) => l.seq > t.seq && l.seq < r.seq, "isBetweenCommits");
569
- return [...e.values()].some((l) => $(l) && o(l));
570
- }, "shouldRerouteArrow"), H = /* @__PURE__ */ h((t, r, a = 0) => {
571
- const s = t + Math.abs(t - r) / 2;
572
- if (a > 5)
573
- return s;
574
- if (W.every((c) => Math.abs(c - s) >= 10))
575
- return W.push(s), s;
576
- const n = Math.abs(t - r);
577
- return H(t, r - n / 5, a + 1);
578
- }, "findLane"), Ur = /* @__PURE__ */ h((t, r, a, s) => {
579
- var y, p, w, q, Y;
580
- const e = E.get(r.id), n = E.get(a.id);
581
- if (e === void 0 || n === void 0)
582
- throw new Error(`Commit positions not found for commits ${r.id} and ${a.id}`);
583
- const c = Fr(r, a, e, n, s);
584
- let o = "", $ = "", l = 0, f = 0, g = (y = C.get(a.branch)) == null ? void 0 : y.index;
585
- a.type === u.MERGE && r.id !== a.parents[0] && (g = (p = C.get(r.branch)) == null ? void 0 : p.index);
586
- let d;
587
- if (c) {
588
- o = "A 10 10, 0, 0, 0,", $ = "A 10 10, 0, 0, 1,", l = 10, f = 10;
589
- const T = e.y < n.y ? H(e.y, n.y) : H(n.y, e.y), v = e.x < n.x ? H(e.x, n.x) : H(n.x, e.x);
590
- x === "TB" ? e.x < n.x ? d = `M ${e.x} ${e.y} L ${v - l} ${e.y} ${$} ${v} ${e.y + f} L ${v} ${n.y - l} ${o} ${v + f} ${n.y} L ${n.x} ${n.y}` : (g = (w = C.get(r.branch)) == null ? void 0 : w.index, d = `M ${e.x} ${e.y} L ${v + l} ${e.y} ${o} ${v} ${e.y + f} L ${v} ${n.y - l} ${$} ${v - f} ${n.y} L ${n.x} ${n.y}`) : x === "BT" ? e.x < n.x ? d = `M ${e.x} ${e.y} L ${v - l} ${e.y} ${o} ${v} ${e.y - f} L ${v} ${n.y + l} ${$} ${v + f} ${n.y} L ${n.x} ${n.y}` : (g = (q = C.get(r.branch)) == null ? void 0 : q.index, d = `M ${e.x} ${e.y} L ${v + l} ${e.y} ${$} ${v} ${e.y - f} L ${v} ${n.y + l} ${o} ${v - f} ${n.y} L ${n.x} ${n.y}`) : e.y < n.y ? d = `M ${e.x} ${e.y} L ${e.x} ${T - l} ${o} ${e.x + f} ${T} L ${n.x - l} ${T} ${$} ${n.x} ${T + f} L ${n.x} ${n.y}` : (g = (Y = C.get(r.branch)) == null ? void 0 : Y.index, d = `M ${e.x} ${e.y} L ${e.x} ${T + l} ${$} ${e.x + f} ${T} L ${n.x - l} ${T} ${o} ${n.x} ${T - f} L ${n.x} ${n.y}`);
591
- } else
592
- o = "A 20 20, 0, 0, 0,", $ = "A 20 20, 0, 0, 1,", l = 20, f = 20, x === "TB" ? (e.x < n.x && (a.type === u.MERGE && r.id !== a.parents[0] ? d = `M ${e.x} ${e.y} L ${e.x} ${n.y - l} ${o} ${e.x + f} ${n.y} L ${n.x} ${n.y}` : d = `M ${e.x} ${e.y} L ${n.x - l} ${e.y} ${$} ${n.x} ${e.y + f} L ${n.x} ${n.y}`), e.x > n.x && (o = "A 20 20, 0, 0, 0,", $ = "A 20 20, 0, 0, 1,", l = 20, f = 20, a.type === u.MERGE && r.id !== a.parents[0] ? d = `M ${e.x} ${e.y} L ${e.x} ${n.y - l} ${$} ${e.x - f} ${n.y} L ${n.x} ${n.y}` : d = `M ${e.x} ${e.y} L ${n.x + l} ${e.y} ${o} ${n.x} ${e.y + f} L ${n.x} ${n.y}`), e.x === n.x && (d = `M ${e.x} ${e.y} L ${n.x} ${n.y}`)) : x === "BT" ? (e.x < n.x && (a.type === u.MERGE && r.id !== a.parents[0] ? d = `M ${e.x} ${e.y} L ${e.x} ${n.y + l} ${$} ${e.x + f} ${n.y} L ${n.x} ${n.y}` : d = `M ${e.x} ${e.y} L ${n.x - l} ${e.y} ${o} ${n.x} ${e.y - f} L ${n.x} ${n.y}`), e.x > n.x && (o = "A 20 20, 0, 0, 0,", $ = "A 20 20, 0, 0, 1,", l = 20, f = 20, a.type === u.MERGE && r.id !== a.parents[0] ? d = `M ${e.x} ${e.y} L ${e.x} ${n.y + l} ${o} ${e.x - f} ${n.y} L ${n.x} ${n.y}` : d = `M ${e.x} ${e.y} L ${n.x - l} ${e.y} ${o} ${n.x} ${e.y - f} L ${n.x} ${n.y}`), e.x === n.x && (d = `M ${e.x} ${e.y} L ${n.x} ${n.y}`)) : (e.y < n.y && (a.type === u.MERGE && r.id !== a.parents[0] ? d = `M ${e.x} ${e.y} L ${n.x - l} ${e.y} ${$} ${n.x} ${e.y + f} L ${n.x} ${n.y}` : d = `M ${e.x} ${e.y} L ${e.x} ${n.y - l} ${o} ${e.x + f} ${n.y} L ${n.x} ${n.y}`), e.y > n.y && (a.type === u.MERGE && r.id !== a.parents[0] ? d = `M ${e.x} ${e.y} L ${n.x - l} ${e.y} ${o} ${n.x} ${e.y - f} L ${n.x} ${n.y}` : d = `M ${e.x} ${e.y} L ${e.x} ${n.y + l} ${$} ${e.x + f} ${n.y} L ${n.x} ${n.y}`), e.y === n.y && (d = `M ${e.x} ${e.y} L ${n.x} ${n.y}`));
593
- if (d === void 0)
594
- throw new Error("Line definition not found");
595
- t.append("path").attr("d", d).attr("class", "arrow arrow" + g % O);
596
- }, "drawArrow"), re = /* @__PURE__ */ h((t, r) => {
597
- const a = t.append("g").attr("class", "commit-arrows");
598
- [...r.keys()].forEach((s) => {
599
- const e = r.get(s);
600
- e.parents && e.parents.length > 0 && e.parents.forEach((n) => {
601
- Ur(a, r.get(n), e, r);
602
- });
603
- });
604
- }, "drawArrows"), ee = /* @__PURE__ */ h((t, r) => {
605
- const a = t.append("g");
606
- r.forEach((s, e) => {
607
- var p;
608
- const n = e % O, c = (p = C.get(s.name)) == null ? void 0 : p.pos;
609
- if (c === void 0)
610
- throw new Error(`Position not found for branch ${s.name}`);
611
- const o = a.append("line");
612
- o.attr("x1", 0), o.attr("y1", c), o.attr("x2", M), o.attr("y2", c), o.attr("class", "branch branch" + n), x === "TB" ? (o.attr("y1", P), o.attr("x1", c), o.attr("y2", M), o.attr("x2", c)) : x === "BT" && (o.attr("y1", M), o.attr("x1", c), o.attr("y2", P), o.attr("x2", c)), W.push(c);
613
- const $ = s.name, l = J($), f = a.insert("rect"), d = a.insert("g").attr("class", "branchLabel").insert("g").attr("class", "label branch-label" + n);
614
- d.node().appendChild(l);
615
- const y = l.getBBox();
616
- f.attr("class", "branchLabelBkg label" + n).attr("rx", 4).attr("ry", 4).attr("x", -y.width - 4 - ((b == null ? void 0 : b.rotateCommitLabel) === !0 ? 30 : 0)).attr("y", -y.height / 2 + 8).attr("width", y.width + 18).attr("height", y.height + 4), d.attr(
617
- "transform",
618
- "translate(" + (-y.width - 14 - ((b == null ? void 0 : b.rotateCommitLabel) === !0 ? 30 : 0)) + ", " + (c - y.height / 2 - 1) + ")"
619
- ), x === "TB" ? (f.attr("x", c - y.width / 2 - 10).attr("y", 0), d.attr("transform", "translate(" + (c - y.width / 2 - 5) + ", 0)")) : x === "BT" ? (f.attr("x", c - y.width / 2 - 10).attr("y", M), d.attr("transform", "translate(" + (c - y.width / 2 - 5) + ", " + M + ")")) : f.attr("transform", "translate(-19, " + (c - y.height / 2) + ")");
620
- });
621
- }, "drawBranches"), te = /* @__PURE__ */ h(function(t, r, a, s, e) {
622
- return C.set(t, { pos: r, index: a }), r += 50 + (e ? 40 : 0) + (x === "TB" || x === "BT" ? s.width / 2 : 0), r;
623
- }, "setBranchPosition"), ae = /* @__PURE__ */ h(function(t, r, a, s) {
624
- if (Sr(), m.debug("in gitgraph renderer", t + `
625
- `, "id:", r, a), !b)
626
- throw new Error("GitGraph config not found");
627
- const e = b.rotateCommitLabel ?? !1, n = s.db;
628
- G = n.getCommits();
629
- const c = n.getBranchesAsObjArray();
630
- x = n.getDirection();
631
- const o = gr(`[id="${r}"]`);
632
- let $ = 0;
633
- c.forEach((l, f) => {
634
- var q;
635
- const g = J(l.name), d = o.append("g"), y = d.insert("g").attr("class", "branchLabel"), p = y.insert("g").attr("class", "label branch-label");
636
- (q = p.node()) == null || q.appendChild(g);
637
- const w = g.getBBox();
638
- $ = te(l.name, $, f, w, e), p.remove(), y.remove(), d.remove();
639
- }), K(o, G, !1), b.showBranches && ee(o, c), re(o, G), K(o, G, !0), lr.insertTitle(
640
- o,
641
- "gitTitleText",
642
- b.titleTopMargin ?? 0,
643
- n.getDiagramTitle()
644
- ), $r(
645
- void 0,
646
- o,
647
- b.diagramPadding,
648
- b.useMaxWidth
649
- );
650
- }, "draw"), ne = {
651
- draw: ae
652
- }, se = /* @__PURE__ */ h((t) => `
653
- .commit-id,
654
- .commit-msg,
655
- .branch-label {
656
- fill: lightgrey;
657
- color: lightgrey;
658
- font-family: 'trebuchet ms', verdana, arial, sans-serif;
659
- font-family: var(--mermaid-font-family);
660
- }
661
- ${[0, 1, 2, 3, 4, 5, 6, 7].map(
662
- (r) => `
663
- .branch-label${r} { fill: ${t["gitBranchLabel" + r]}; }
664
- .commit${r} { stroke: ${t["git" + r]}; fill: ${t["git" + r]}; }
665
- .commit-highlight${r} { stroke: ${t["gitInv" + r]}; fill: ${t["gitInv" + r]}; }
666
- .label${r} { fill: ${t["git" + r]}; }
667
- .arrow${r} { stroke: ${t["git" + r]}; }
668
- `
669
- ).join(`
670
- `)}
671
-
672
- .branch {
673
- stroke-width: 1;
674
- stroke: ${t.lineColor};
675
- stroke-dasharray: 2;
676
- }
677
- .commit-label { font-size: ${t.commitLabelFontSize}; fill: ${t.commitLabelColor};}
678
- .commit-label-bkg { font-size: ${t.commitLabelFontSize}; fill: ${t.commitLabelBackground}; opacity: 0.5; }
679
- .tag-label { font-size: ${t.tagLabelFontSize}; fill: ${t.tagLabelColor};}
680
- .tag-label-bkg { fill: ${t.tagLabelBackground}; stroke: ${t.tagLabelBorder}; }
681
- .tag-hole { fill: ${t.textColor}; }
682
-
683
- .commit-merge {
684
- stroke: ${t.primaryColor};
685
- fill: ${t.primaryColor};
686
- }
687
- .commit-reverse {
688
- stroke: ${t.primaryColor};
689
- fill: ${t.primaryColor};
690
- stroke-width: 3;
691
- }
692
- .commit-highlight-outer {
693
- }
694
- .commit-highlight-inner {
695
- stroke: ${t.primaryColor};
696
- fill: ${t.primaryColor};
697
- }
698
-
699
- .arrow { stroke-width: 8; stroke-linecap: round; fill: none}
700
- .gitTitleText {
701
- text-anchor: middle;
702
- font-size: 18px;
703
- fill: ${t.textColor};
704
- }
705
- `, "getStyles"), oe = se, $e = {
706
- parser: Wr,
707
- db: X,
708
- renderer: ne,
709
- styles: oe
710
- };
711
- export {
712
- $e as diagram
713
- };