sparkdesign 0.4.3 → 0.4.4

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 (467) hide show
  1. package/README.md +205 -111
  2. package/dist/_basePickBy-DnQN8w3y.js +151 -0
  3. package/dist/_basePickBy-a-kPMlkg.cjs +1 -0
  4. package/dist/_baseUniq-B-N2NQ50.js +614 -0
  5. package/dist/_baseUniq-Cc_zbSif.cjs +1 -0
  6. package/dist/arc-BQBhijZ6.js +83 -0
  7. package/dist/arc-mWQt0Yph.cjs +1 -0
  8. package/dist/architectureDiagram-VXUJARFQ-BMZEucno.cjs +36 -0
  9. package/dist/architectureDiagram-VXUJARFQ-DTdjD3Bp.js +4661 -0
  10. package/dist/blockDiagram-VD42YOAC-CzHn0yob.js +2256 -0
  11. package/dist/blockDiagram-VD42YOAC-DDxdHAlz.cjs +122 -0
  12. package/dist/c4Diagram-YG6GDRKO-4Gz0I4gj.cjs +10 -0
  13. package/dist/c4Diagram-YG6GDRKO-BIy--yVN.js +1580 -0
  14. package/dist/channel-BQn0o8bs.js +5 -0
  15. package/dist/channel-DaN7XniJ.cjs +1 -0
  16. package/dist/chunk-4BX2VUAB-BlQFTQqz.cjs +1 -0
  17. package/dist/chunk-4BX2VUAB-Czitj3Kc.js +8 -0
  18. package/dist/chunk-55IACEB6-DXacNZbO.js +8 -0
  19. package/dist/chunk-55IACEB6-DnDxpye9.cjs +1 -0
  20. package/dist/chunk-B4BG7PRW-CBdN0q_V.js +1375 -0
  21. package/dist/chunk-B4BG7PRW-DbGvUkGO.cjs +165 -0
  22. package/dist/chunk-DI55MBZ5-D1YJMs6x.cjs +220 -0
  23. package/dist/chunk-DI55MBZ5-NCQTvayw.js +1370 -0
  24. package/dist/chunk-FMBD7UC4-CsGMbrtr.js +19 -0
  25. package/dist/chunk-FMBD7UC4-Di7cUUh5.cjs +15 -0
  26. package/dist/chunk-QN33PNHL-0j5LC8Lm.cjs +1 -0
  27. package/dist/chunk-QN33PNHL-3GERZBRm.js +19 -0
  28. package/dist/chunk-QZHKN3VN-AVEY9ImQ.js +15 -0
  29. package/dist/chunk-QZHKN3VN-s8Z0a8mc.cjs +1 -0
  30. package/dist/chunk-TZMSLE5B-CAf87HPt.cjs +1 -0
  31. package/dist/chunk-TZMSLE5B-sbiflal0.js +64 -0
  32. package/dist/classDiagram-2ON5EDUG-Ct9JLIN2.cjs +1 -0
  33. package/dist/classDiagram-2ON5EDUG-Dzfrft3a.js +16 -0
  34. package/dist/classDiagram-v2-WZHVMYZB-Ct9JLIN2.cjs +1 -0
  35. package/dist/classDiagram-v2-WZHVMYZB-Dzfrft3a.js +16 -0
  36. package/dist/clone-Cde_NQ8V.js +8 -0
  37. package/dist/clone-DCNjWuM2.cjs +1 -0
  38. package/dist/cose-bilkent-S5V4N54A-0uLijMro.cjs +1 -0
  39. package/dist/cose-bilkent-S5V4N54A-Bb08N431.js +2608 -0
  40. package/dist/cytoscape.esm-CNUX3VTg.cjs +321 -0
  41. package/dist/cytoscape.esm-Cvf3sx9F.js +18704 -0
  42. package/dist/dagre-6UL2VRFP-CY_Wz5Zd.js +444 -0
  43. package/dist/dagre-6UL2VRFP-Dxe7_qZc.cjs +4 -0
  44. package/dist/defaultLocale-BgPVtth8.js +171 -0
  45. package/dist/defaultLocale-C4wbwF1n.cjs +1 -0
  46. package/dist/diagram-PSM6KHXK-D2bdb7MT.js +531 -0
  47. package/dist/diagram-PSM6KHXK-YF69SUjY.cjs +24 -0
  48. package/dist/diagram-QEK2KX5R-BpUSoh0-.js +217 -0
  49. package/dist/diagram-QEK2KX5R-DZPGteon.cjs +43 -0
  50. package/dist/diagram-S2PKOQOG-ht-zdvFG.cjs +24 -0
  51. package/dist/diagram-S2PKOQOG-zFeLJ50Z.js +142 -0
  52. package/dist/erDiagram-Q2GNP2WA-B38iJ6ts.js +841 -0
  53. package/dist/erDiagram-Q2GNP2WA-RgS80DDU.cjs +60 -0
  54. package/dist/flowDiagram-NV44I4VS-BHilOs2p.cjs +162 -0
  55. package/dist/flowDiagram-NV44I4VS-BrBJcoce.js +1620 -0
  56. package/dist/fonts/KaTeX_AMS-Regular.ttf +0 -0
  57. package/dist/fonts/KaTeX_AMS-Regular.woff +0 -0
  58. package/dist/fonts/KaTeX_AMS-Regular.woff2 +0 -0
  59. package/dist/fonts/KaTeX_Caligraphic-Bold.ttf +0 -0
  60. package/dist/fonts/KaTeX_Caligraphic-Bold.woff +0 -0
  61. package/dist/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
  62. package/dist/fonts/KaTeX_Caligraphic-Regular.ttf +0 -0
  63. package/dist/fonts/KaTeX_Caligraphic-Regular.woff +0 -0
  64. package/dist/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
  65. package/dist/fonts/KaTeX_Fraktur-Bold.ttf +0 -0
  66. package/dist/fonts/KaTeX_Fraktur-Bold.woff +0 -0
  67. package/dist/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
  68. package/dist/fonts/KaTeX_Fraktur-Regular.ttf +0 -0
  69. package/dist/fonts/KaTeX_Fraktur-Regular.woff +0 -0
  70. package/dist/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
  71. package/dist/fonts/KaTeX_Main-Bold.ttf +0 -0
  72. package/dist/fonts/KaTeX_Main-Bold.woff +0 -0
  73. package/dist/fonts/KaTeX_Main-Bold.woff2 +0 -0
  74. package/dist/fonts/KaTeX_Main-BoldItalic.ttf +0 -0
  75. package/dist/fonts/KaTeX_Main-BoldItalic.woff +0 -0
  76. package/dist/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
  77. package/dist/fonts/KaTeX_Main-Italic.ttf +0 -0
  78. package/dist/fonts/KaTeX_Main-Italic.woff +0 -0
  79. package/dist/fonts/KaTeX_Main-Italic.woff2 +0 -0
  80. package/dist/fonts/KaTeX_Main-Regular.ttf +0 -0
  81. package/dist/fonts/KaTeX_Main-Regular.woff +0 -0
  82. package/dist/fonts/KaTeX_Main-Regular.woff2 +0 -0
  83. package/dist/fonts/KaTeX_Math-BoldItalic.ttf +0 -0
  84. package/dist/fonts/KaTeX_Math-BoldItalic.woff +0 -0
  85. package/dist/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
  86. package/dist/fonts/KaTeX_Math-Italic.ttf +0 -0
  87. package/dist/fonts/KaTeX_Math-Italic.woff +0 -0
  88. package/dist/fonts/KaTeX_Math-Italic.woff2 +0 -0
  89. package/dist/fonts/KaTeX_SansSerif-Bold.ttf +0 -0
  90. package/dist/fonts/KaTeX_SansSerif-Bold.woff +0 -0
  91. package/dist/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
  92. package/dist/fonts/KaTeX_SansSerif-Italic.ttf +0 -0
  93. package/dist/fonts/KaTeX_SansSerif-Italic.woff +0 -0
  94. package/dist/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
  95. package/dist/fonts/KaTeX_SansSerif-Regular.ttf +0 -0
  96. package/dist/fonts/KaTeX_SansSerif-Regular.woff +0 -0
  97. package/dist/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
  98. package/dist/fonts/KaTeX_Script-Regular.ttf +0 -0
  99. package/dist/fonts/KaTeX_Script-Regular.woff +0 -0
  100. package/dist/fonts/KaTeX_Script-Regular.woff2 +0 -0
  101. package/dist/fonts/KaTeX_Size1-Regular.ttf +0 -0
  102. package/dist/fonts/KaTeX_Size1-Regular.woff +0 -0
  103. package/dist/fonts/KaTeX_Size1-Regular.woff2 +0 -0
  104. package/dist/fonts/KaTeX_Size2-Regular.ttf +0 -0
  105. package/dist/fonts/KaTeX_Size2-Regular.woff +0 -0
  106. package/dist/fonts/KaTeX_Size2-Regular.woff2 +0 -0
  107. package/dist/fonts/KaTeX_Size3-Regular.ttf +0 -0
  108. package/dist/fonts/KaTeX_Size3-Regular.woff +0 -0
  109. package/dist/fonts/KaTeX_Size3-Regular.woff2 +0 -0
  110. package/dist/fonts/KaTeX_Size4-Regular.ttf +0 -0
  111. package/dist/fonts/KaTeX_Size4-Regular.woff +0 -0
  112. package/dist/fonts/KaTeX_Size4-Regular.woff2 +0 -0
  113. package/dist/fonts/KaTeX_Typewriter-Regular.ttf +0 -0
  114. package/dist/fonts/KaTeX_Typewriter-Regular.woff +0 -0
  115. package/dist/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
  116. package/dist/ganttDiagram-JELNMOA3-pZiJeFio.cjs +267 -0
  117. package/dist/ganttDiagram-JELNMOA3-tw6FhkWJ.js +2670 -0
  118. package/dist/gitGraphDiagram-V2S2FVAM-BWn5uIK5.js +699 -0
  119. package/dist/gitGraphDiagram-V2S2FVAM-DKKeG-9R.cjs +65 -0
  120. package/dist/graph-DIbblrZP.cjs +1 -0
  121. package/dist/graph-DPcK91G3.js +247 -0
  122. package/dist/infoDiagram-HS3SLOUP-B8gwwhct.cjs +2 -0
  123. package/dist/infoDiagram-HS3SLOUP-D47PNcP_.js +24 -0
  124. package/dist/init-CHZsXQcr.cjs +1 -0
  125. package/dist/init-DjUOC4st.js +16 -0
  126. package/dist/journeyDiagram-XKPGCS4Q-BG3cfhyU.js +834 -0
  127. package/dist/journeyDiagram-XKPGCS4Q-D8DVLJof.cjs +139 -0
  128. package/dist/kanban-definition-3W4ZIXB7-4OCnEouP.cjs +89 -0
  129. package/dist/kanban-definition-3W4ZIXB7-CWi_ssF9.js +719 -0
  130. package/dist/katex.css +1 -0
  131. package/dist/layout-Byuh8f-J.cjs +1 -0
  132. package/dist/layout-CdLdvj1j.js +1335 -0
  133. package/dist/linear-C2Q_PI9B.js +259 -0
  134. package/dist/linear-C69aPBW1.cjs +1 -0
  135. package/dist/mermaid.core-DBwAx_jp.cjs +249 -0
  136. package/dist/mermaid.core-gFR0XUlD.js +15300 -0
  137. package/dist/mindmap-definition-VGOIOE7T-8P7obVV4.cjs +68 -0
  138. package/dist/mindmap-definition-VGOIOE7T-DnOa7WJ9.js +784 -0
  139. package/dist/ordinal-B6-f3MAq.js +61 -0
  140. package/dist/ordinal-CagbB1m8.cjs +1 -0
  141. package/dist/pieDiagram-ADFJNKIX-5NAlvhMo.js +161 -0
  142. package/dist/pieDiagram-ADFJNKIX-CQBG4yR9.cjs +30 -0
  143. package/dist/qoder-design.css +2 -0
  144. package/dist/quadrantDiagram-AYHSOK5B-Oe4y7RZ0.cjs +7 -0
  145. package/dist/quadrantDiagram-AYHSOK5B-rh2DPEP1.js +1022 -0
  146. package/dist/registry/basic/alert-dialog.d.ts +40 -0
  147. package/dist/registry/basic/avatar.d.ts +30 -0
  148. package/dist/registry/basic/button.d.ts +16 -0
  149. package/dist/registry/basic/collapse.d.ts +22 -0
  150. package/dist/registry/basic/collapsible-card.d.ts +34 -0
  151. package/dist/registry/basic/collapsible.d.ts +15 -0
  152. package/dist/registry/basic/dropdown-menu.d.ts +52 -0
  153. package/dist/registry/basic/icon-button.d.ts +12 -0
  154. package/dist/registry/basic/icons-inline.d.ts +51 -0
  155. package/dist/registry/basic/kbd.d.ts +23 -0
  156. package/dist/registry/basic/option-list.d.ts +16 -0
  157. package/dist/registry/basic/pagination.d.ts +33 -0
  158. package/dist/registry/basic/progress.d.ts +18 -0
  159. package/dist/registry/basic/radio-group.d.ts +25 -0
  160. package/dist/registry/basic/resizable.d.ts +318 -0
  161. package/dist/registry/basic/scrollbar.d.ts +12 -0
  162. package/dist/registry/basic/select.d.ts +35 -0
  163. package/dist/registry/basic/shimmering-text.d.ts +27 -0
  164. package/dist/registry/basic/sidebar-menu.d.ts +23 -0
  165. package/dist/registry/basic/skeleton.d.ts +10 -0
  166. package/dist/registry/basic/slider.d.ts +16 -0
  167. package/dist/registry/basic/sonner.d.ts +23 -0
  168. package/dist/registry/basic/spinner.d.ts +5 -0
  169. package/dist/registry/basic/switch.d.ts +20 -0
  170. package/dist/registry/basic/table.d.ts +18 -0
  171. package/dist/registry/basic/tabs.d.ts +29 -0
  172. package/dist/registry/basic/tag.d.ts +23 -0
  173. package/dist/registry/basic/theme-from-document.d.ts +10 -0
  174. package/dist/registry/basic/toggle.d.ts +29 -0
  175. package/dist/registry/basic/tooltip.d.ts +34 -0
  176. package/dist/registry/basic/typography.d.ts +76 -0
  177. package/dist/registry/chat/ask-user-part.d.ts +24 -0
  178. package/dist/registry/chat/browser-action-part.d.ts +28 -0
  179. package/dist/registry/chat/chat-input/chat-input-folder-selector.d.ts +22 -0
  180. package/dist/registry/chat/chat-input/chat-input-model-switcher.d.ts +12 -0
  181. package/dist/registry/chat/chat-input/chat-input-textarea.d.ts +9 -0
  182. package/dist/registry/chat/chat-input/compound.d.ts +97 -0
  183. package/dist/registry/chat/chat-input/context.d.ts +64 -0
  184. package/dist/registry/chat/chat-input/folder-permission-dialog.d.ts +11 -0
  185. package/dist/registry/chat/chat-input/index.d.ts +34 -0
  186. package/dist/registry/chat/chat-input/types.d.ts +79 -0
  187. package/dist/registry/chat/chat-input/useAutoResizeTextarea.d.ts +7 -0
  188. package/dist/registry/chat/code-block-part.d.ts +23 -0
  189. package/dist/registry/chat/file-attachment.d.ts +19 -0
  190. package/dist/registry/chat/file-card.d.ts +10 -0
  191. package/dist/registry/chat/file-review-part.d.ts +30 -0
  192. package/dist/registry/chat/folder-button.d.ts +20 -0
  193. package/dist/registry/chat/generated-images-grid.d.ts +15 -0
  194. package/dist/registry/chat/generation-status-bar.d.ts +19 -0
  195. package/dist/registry/chat/hint-banner.d.ts +28 -0
  196. package/dist/registry/chat/image-attachment.d.ts +19 -0
  197. package/dist/registry/chat/image-generating.d.ts +15 -0
  198. package/dist/registry/chat/markdown.d.ts +8 -0
  199. package/dist/registry/chat/mermaid-part.d.ts +17 -0
  200. package/dist/registry/chat/permission-card.d.ts +24 -0
  201. package/dist/registry/chat/plan-part.d.ts +30 -0
  202. package/dist/registry/chat/queue-indicator.d.ts +27 -0
  203. package/dist/registry/chat/reasoning-step/compound.d.ts +17 -0
  204. package/dist/registry/chat/reasoning-step/context.d.ts +10 -0
  205. package/dist/registry/chat/reasoning-step/index.d.ts +14 -0
  206. package/dist/registry/chat/reasoning-step/types.d.ts +95 -0
  207. package/dist/registry/chat/related-prompts.d.ts +23 -0
  208. package/dist/registry/chat/response/compound.d.ts +25 -0
  209. package/dist/registry/chat/response/context.d.ts +9 -0
  210. package/dist/registry/chat/response/index.d.ts +15 -0
  211. package/dist/registry/chat/response/types.d.ts +99 -0
  212. package/dist/registry/chat/send-button.d.ts +17 -0
  213. package/dist/registry/chat/streaming-markdown-block.d.ts +8 -0
  214. package/dist/registry/chat/task-part.d.ts +28 -0
  215. package/dist/registry/chat/terminal-code-block-part.d.ts +18 -0
  216. package/dist/registry/chat/thinking-indicator.d.ts +14 -0
  217. package/dist/registry/chat/tool-invocation-card.d.ts +20 -0
  218. package/dist/registry/chat/user-message.d.ts +6 -0
  219. package/dist/registry/chat/user-question/UserQuestionCard.d.ts +30 -0
  220. package/dist/registry/chat/user-question/UserQuestionFooter.d.ts +18 -0
  221. package/dist/registry/chat/user-question/UserQuestionHeader.d.ts +20 -0
  222. package/dist/registry/chat/user-question/compound.d.ts +37 -0
  223. package/dist/registry/chat/user-question/context.d.ts +55 -0
  224. package/dist/registry/chat/user-question/index.d.ts +15 -0
  225. package/dist/registry/chat/user-question/types.d.ts +52 -0
  226. package/dist/registry/chat/user-question/useUserQuestionKeyboard.d.ts +17 -0
  227. package/dist/registry/chat/user-question/useUserQuestionState.d.ts +26 -0
  228. package/dist/registry/chat/user-question-answer.d.ts +13 -0
  229. package/dist/registry/lib/file-icon-maps.d.ts +20 -0
  230. package/dist/registry/lib/use-mermaid-render.d.ts +5 -0
  231. package/dist/registry/lib/utils.d.ts +11 -0
  232. package/dist/requirementDiagram-UZGBJVZJ-DcWaCuXr.js +850 -0
  233. package/dist/requirementDiagram-UZGBJVZJ-gfdlrFiq.cjs +64 -0
  234. package/dist/sankeyDiagram-TZEHDZUN-CQIKFwD0.js +810 -0
  235. package/dist/sankeyDiagram-TZEHDZUN-DvPtzQvC.cjs +10 -0
  236. package/dist/scale/computed.css +103 -0
  237. package/dist/scale/config.css +110 -0
  238. package/dist/scale/index.css +30 -0
  239. package/dist/scale/presets/compact.css +30 -0
  240. package/dist/scale/presets/dense.css +64 -0
  241. package/dist/scale/presets/sharp.css +40 -0
  242. package/dist/scale/presets/soft.css +16 -0
  243. package/dist/scale.css +13 -0
  244. package/dist/sequenceDiagram-WL72ISMW-BNrsMagL.cjs +145 -0
  245. package/dist/sequenceDiagram-WL72ISMW-iCX3ckKx.js +2511 -0
  246. package/dist/spark-design.cjs.js +265 -0
  247. package/dist/spark-design.es.js +13486 -0
  248. package/dist/src/components/basic/AlertDialog/index.d.ts +20 -0
  249. package/dist/src/components/basic/Avatar/index.d.ts +7 -0
  250. package/dist/src/components/basic/Button/index.d.ts +7 -0
  251. package/dist/src/components/basic/Collapse/index.d.ts +15 -0
  252. package/dist/src/components/basic/Collapsible/index.d.ts +7 -0
  253. package/dist/src/components/basic/CollapsibleCard/index.d.ts +7 -0
  254. package/dist/src/components/basic/CollapsibleSection/index.d.ts +43 -0
  255. package/dist/src/components/basic/DropdownMenu/index.d.ts +19 -0
  256. package/dist/src/components/basic/EllipsisText/index.d.ts +53 -0
  257. package/dist/src/components/basic/IconButton/index.d.ts +7 -0
  258. package/dist/src/components/basic/Kbd/index.d.ts +7 -0
  259. package/dist/src/components/basic/OptionList/index.d.ts +7 -0
  260. package/dist/src/components/basic/Pagination/index.d.ts +7 -0
  261. package/dist/src/components/basic/Progress/index.d.ts +7 -0
  262. package/dist/src/components/basic/RadioGroup/index.d.ts +7 -0
  263. package/dist/src/components/basic/Resizable/index.d.ts +7 -0
  264. package/dist/src/components/basic/Scrollbar/index.d.ts +7 -0
  265. package/dist/src/components/basic/Select/index.d.ts +17 -0
  266. package/dist/src/components/basic/ShimmeringText/index.d.ts +7 -0
  267. package/dist/src/components/basic/SidebarMenu/index.d.ts +4 -0
  268. package/dist/src/components/basic/Skeleton/index.d.ts +7 -0
  269. package/dist/src/components/basic/Slider/index.d.ts +7 -0
  270. package/dist/src/components/basic/Spinner/index.d.ts +7 -0
  271. package/dist/src/components/basic/Switch/index.d.ts +38 -0
  272. package/dist/src/components/basic/Table/index.d.ts +7 -0
  273. package/dist/src/components/basic/Tabs/index.d.ts +7 -0
  274. package/dist/src/components/basic/Tag/index.d.ts +10 -0
  275. package/dist/src/components/basic/Toast/index.d.ts +12 -0
  276. package/dist/src/components/basic/Toggle/index.d.ts +7 -0
  277. package/dist/src/components/basic/Tooltip/index.d.ts +21 -0
  278. package/dist/src/components/basic/Typography/index.d.ts +7 -0
  279. package/dist/src/components/chat/AskUserPart/index.d.ts +6 -0
  280. package/dist/src/components/chat/BrowserActionPart/index.d.ts +7 -0
  281. package/dist/src/components/chat/ChatInput/index.d.ts +29 -0
  282. package/dist/src/components/chat/CodeBlockPart/index.d.ts +7 -0
  283. package/dist/src/components/chat/FileAttachment/index.d.ts +3 -0
  284. package/dist/src/components/chat/FileCard/index.d.ts +3 -0
  285. package/dist/src/components/chat/FileReviewPart/index.d.ts +7 -0
  286. package/dist/src/components/chat/FolderButton/index.d.ts +5 -0
  287. package/dist/src/components/chat/GeneratedImagesGrid/index.d.ts +7 -0
  288. package/dist/src/components/chat/GenerationStatusBar/index.d.ts +7 -0
  289. package/dist/src/components/chat/HintBanner/index.d.ts +6 -0
  290. package/dist/src/components/chat/ImageAttachment/index.d.ts +3 -0
  291. package/dist/src/components/chat/ImageGenerating/index.d.ts +6 -0
  292. package/dist/src/components/chat/Markdown/demo-content.d.ts +1 -0
  293. package/dist/src/components/chat/Markdown/index.d.ts +7 -0
  294. package/dist/src/components/chat/MermaidPart/index.d.ts +6 -0
  295. package/dist/src/components/chat/PermissionCard/index.d.ts +4 -0
  296. package/dist/src/components/chat/PlanPart/index.d.ts +6 -0
  297. package/dist/src/components/chat/QueueIndicator/index.d.ts +4 -0
  298. package/dist/src/components/chat/ReasoningStep/index.d.ts +13 -0
  299. package/dist/src/components/chat/RelatedPrompts/index.d.ts +6 -0
  300. package/dist/src/components/chat/Response/StreamingMarkdownBlock.d.ts +6 -0
  301. package/dist/src/components/chat/Response/index.d.ts +16 -0
  302. package/dist/src/components/chat/SendButton/index.d.ts +5 -0
  303. package/dist/src/components/chat/TaskPart/index.d.ts +7 -0
  304. package/dist/src/components/chat/TerminalCodeBlockPart/index.d.ts +6 -0
  305. package/dist/src/components/chat/ThinkingIndicator/index.d.ts +6 -0
  306. package/dist/src/components/chat/ToolInvocationCard/index.d.ts +4 -0
  307. package/dist/src/components/chat/UserMessage/index.d.ts +7 -0
  308. package/dist/src/components/chat/UserQuestion/index.d.ts +19 -0
  309. package/dist/src/components/chat/UserQuestionAnswer/index.d.ts +3 -0
  310. package/dist/src/components/index.d.ts +138 -0
  311. package/dist/src/icons/context.d.ts +26 -0
  312. package/dist/src/icons/types.d.ts +18 -0
  313. package/dist/src/lib/ThemeStyleContext.d.ts +134 -0
  314. package/dist/src/lib/file-icon.d.ts +16 -0
  315. package/dist/src/lib/i18n.d.ts +12 -0
  316. package/dist/src/lib/index.d.ts +10 -0
  317. package/dist/src/lib/motion.d.ts +22 -0
  318. package/dist/src/lib/utils.d.ts +11 -0
  319. package/dist/stateDiagram-FKZM4ZOC-DBvJ_eeL.cjs +1 -0
  320. package/dist/stateDiagram-FKZM4ZOC-ZVsJlaHJ.js +263 -0
  321. package/dist/stateDiagram-v2-4FDKWEC3-CB_nTHcE.js +16 -0
  322. package/dist/stateDiagram-v2-4FDKWEC3-Xkx17v6T.cjs +1 -0
  323. package/dist/theme-base.css +270 -0
  324. package/dist/theme.css +17 -0
  325. package/dist/themes/dark-parchment.css +133 -0
  326. package/dist/themes/dark-qoder.css +133 -0
  327. package/dist/themes/light-parchment.css +124 -0
  328. package/dist/themes/light-qoder.css +132 -0
  329. package/dist/timeline-definition-IT6M3QCI-BmGkYQiz.cjs +61 -0
  330. package/dist/timeline-definition-IT6M3QCI-Ck8zTt6w.js +795 -0
  331. package/dist/tokens/CLAUDE.md +305 -0
  332. package/dist/tokens/index.css +35 -0
  333. package/dist/tokens/scale/computed.css +103 -0
  334. package/dist/tokens/scale/config.css +110 -0
  335. package/dist/tokens/scale/index.css +30 -0
  336. package/dist/tokens/scale/presets/compact.css +30 -0
  337. package/dist/tokens/scale/presets/dense.css +64 -0
  338. package/dist/tokens/scale/presets/sharp.css +40 -0
  339. package/dist/tokens/scale/presets/soft.css +16 -0
  340. package/dist/tokens/scale.css +13 -0
  341. package/dist/tokens/scrollbar-utility.css +35 -0
  342. package/dist/tokens/theme-base.css +270 -0
  343. package/dist/tokens/theme.css +17 -0
  344. package/dist/tokens/themes/dark-parchment.css +133 -0
  345. package/dist/tokens/themes/dark-qoder.css +133 -0
  346. package/dist/tokens/themes/light-parchment.css +124 -0
  347. package/dist/tokens/themes/light-qoder.css +132 -0
  348. package/dist/treemap-GDKQZRPO-B9sfERx8.js +17922 -0
  349. package/dist/treemap-GDKQZRPO-BVfJRs0Z.cjs +160 -0
  350. package/dist/xychartDiagram-PRI3JC2R-By_S8NzN.js +1340 -0
  351. package/dist/xychartDiagram-PRI3JC2R-CNfDrGxM.cjs +7 -0
  352. package/package.json +128 -19
  353. /package/{dist → cli/dist}/commands/add.js +0 -0
  354. /package/{dist → cli/dist}/commands/diff.js +0 -0
  355. /package/{dist → cli/dist}/commands/init.js +0 -0
  356. /package/{dist → cli/dist}/commands/list.js +0 -0
  357. /package/{dist → cli/dist}/index.js +0 -0
  358. /package/{dist → cli/dist}/utils/config.js +0 -0
  359. /package/{dist → cli/dist}/utils/registry.js +0 -0
  360. /package/{dist → cli/dist}/utils/tokens.js +0 -0
  361. /package/{dist → cli/dist}/utils/transform.js +0 -0
  362. /package/{registry → cli/registry}/__tests__/basic/button.test.tsx +0 -0
  363. /package/{registry → cli/registry}/__tests__/chat/markdown.test.tsx +0 -0
  364. /package/{registry → cli/registry}/__tests__/chat/thinking-indicator.test.tsx +0 -0
  365. /package/{registry → cli/registry}/__tests__/chat/tool-invocation-card.test.tsx +0 -0
  366. /package/{registry → cli/registry}/basic/alert-dialog.tsx +0 -0
  367. /package/{registry → cli/registry}/basic/avatar.tsx +0 -0
  368. /package/{registry → cli/registry}/basic/button.tsx +0 -0
  369. /package/{registry → cli/registry}/basic/collapse.tsx +0 -0
  370. /package/{registry → cli/registry}/basic/collapsible-card.tsx +0 -0
  371. /package/{registry → cli/registry}/basic/collapsible.tsx +0 -0
  372. /package/{registry → cli/registry}/basic/dropdown-menu.tsx +0 -0
  373. /package/{registry → cli/registry}/basic/icon-button.tsx +0 -0
  374. /package/{registry → cli/registry}/basic/icons-inline.tsx +0 -0
  375. /package/{registry → cli/registry}/basic/kbd.tsx +0 -0
  376. /package/{registry → cli/registry}/basic/option-list.tsx +0 -0
  377. /package/{registry → cli/registry}/basic/pagination.tsx +0 -0
  378. /package/{registry → cli/registry}/basic/progress.tsx +0 -0
  379. /package/{registry → cli/registry}/basic/radio-group.tsx +0 -0
  380. /package/{registry → cli/registry}/basic/resizable.tsx +0 -0
  381. /package/{registry → cli/registry}/basic/scrollbar.tsx +0 -0
  382. /package/{registry → cli/registry}/basic/select.tsx +0 -0
  383. /package/{registry → cli/registry}/basic/shimmering-text.tsx +0 -0
  384. /package/{registry → cli/registry}/basic/sidebar-menu.tsx +0 -0
  385. /package/{registry → cli/registry}/basic/skeleton.tsx +0 -0
  386. /package/{registry → cli/registry}/basic/slider.tsx +0 -0
  387. /package/{registry → cli/registry}/basic/sonner.tsx +0 -0
  388. /package/{registry → cli/registry}/basic/spinner.tsx +0 -0
  389. /package/{registry → cli/registry}/basic/switch.tsx +0 -0
  390. /package/{registry → cli/registry}/basic/table.tsx +0 -0
  391. /package/{registry → cli/registry}/basic/tabs.tsx +0 -0
  392. /package/{registry → cli/registry}/basic/tag.tsx +0 -0
  393. /package/{registry → cli/registry}/basic/theme-from-document.ts +0 -0
  394. /package/{registry → cli/registry}/basic/toggle.tsx +0 -0
  395. /package/{registry → cli/registry}/basic/tooltip.tsx +0 -0
  396. /package/{registry → cli/registry}/basic/typography.tsx +0 -0
  397. /package/{registry → cli/registry}/chat/ask-user-part.tsx +0 -0
  398. /package/{registry → cli/registry}/chat/browser-action-part.tsx +0 -0
  399. /package/{registry → cli/registry}/chat/chat-input/chat-input-folder-selector.tsx +0 -0
  400. /package/{registry → cli/registry}/chat/chat-input/chat-input-model-switcher.tsx +0 -0
  401. /package/{registry → cli/registry}/chat/chat-input/chat-input-textarea.tsx +0 -0
  402. /package/{registry → cli/registry}/chat/chat-input/compound.tsx +0 -0
  403. /package/{registry → cli/registry}/chat/chat-input/context.tsx +0 -0
  404. /package/{registry → cli/registry}/chat/chat-input/folder-permission-dialog.tsx +0 -0
  405. /package/{registry → cli/registry}/chat/chat-input/index.tsx +0 -0
  406. /package/{registry → cli/registry}/chat/chat-input/types.ts +0 -0
  407. /package/{registry → cli/registry}/chat/chat-input/useAutoResizeTextarea.ts +0 -0
  408. /package/{registry → cli/registry}/chat/code-block-part.tsx +0 -0
  409. /package/{registry → cli/registry}/chat/file-attachment.tsx +0 -0
  410. /package/{registry → cli/registry}/chat/file-card.tsx +0 -0
  411. /package/{registry → cli/registry}/chat/file-review-part.tsx +0 -0
  412. /package/{registry → cli/registry}/chat/folder-button.tsx +0 -0
  413. /package/{registry → cli/registry}/chat/generated-images-grid.tsx +0 -0
  414. /package/{registry → cli/registry}/chat/generation-status-bar.tsx +0 -0
  415. /package/{registry → cli/registry}/chat/hint-banner.tsx +0 -0
  416. /package/{registry → cli/registry}/chat/image-attachment.tsx +0 -0
  417. /package/{registry → cli/registry}/chat/image-generating.tsx +0 -0
  418. /package/{registry → cli/registry}/chat/markdown.tsx +0 -0
  419. /package/{registry → cli/registry}/chat/mermaid-part.tsx +0 -0
  420. /package/{registry → cli/registry}/chat/permission-card.tsx +0 -0
  421. /package/{registry → cli/registry}/chat/plan-part.tsx +0 -0
  422. /package/{registry → cli/registry}/chat/queue-indicator.tsx +0 -0
  423. /package/{registry → cli/registry}/chat/reasoning-step/compound.tsx +0 -0
  424. /package/{registry → cli/registry}/chat/reasoning-step/context.tsx +0 -0
  425. /package/{registry → cli/registry}/chat/reasoning-step/index.tsx +0 -0
  426. /package/{registry → cli/registry}/chat/reasoning-step/types.ts +0 -0
  427. /package/{registry → cli/registry}/chat/related-prompts.tsx +0 -0
  428. /package/{registry → cli/registry}/chat/response/compound.tsx +0 -0
  429. /package/{registry → cli/registry}/chat/response/context.tsx +0 -0
  430. /package/{registry → cli/registry}/chat/response/index.tsx +0 -0
  431. /package/{registry → cli/registry}/chat/response/types.ts +0 -0
  432. /package/{registry → cli/registry}/chat/send-button.tsx +0 -0
  433. /package/{registry → cli/registry}/chat/streaming-markdown-block.tsx +0 -0
  434. /package/{registry → cli/registry}/chat/task-part.tsx +0 -0
  435. /package/{registry → cli/registry}/chat/terminal-code-block-part.tsx +0 -0
  436. /package/{registry → cli/registry}/chat/thinking-indicator.tsx +0 -0
  437. /package/{registry → cli/registry}/chat/tool-invocation-card.tsx +0 -0
  438. /package/{registry → cli/registry}/chat/user-message.tsx +0 -0
  439. /package/{registry → cli/registry}/chat/user-question/UserQuestionCard.tsx +0 -0
  440. /package/{registry → cli/registry}/chat/user-question/UserQuestionFooter.tsx +0 -0
  441. /package/{registry → cli/registry}/chat/user-question/UserQuestionHeader.tsx +0 -0
  442. /package/{registry → cli/registry}/chat/user-question/compound.tsx +0 -0
  443. /package/{registry → cli/registry}/chat/user-question/context.tsx +0 -0
  444. /package/{registry → cli/registry}/chat/user-question/index.tsx +0 -0
  445. /package/{registry → cli/registry}/chat/user-question/types.ts +0 -0
  446. /package/{registry → cli/registry}/chat/user-question/useUserQuestionKeyboard.ts +0 -0
  447. /package/{registry → cli/registry}/chat/user-question/useUserQuestionState.ts +0 -0
  448. /package/{registry → cli/registry}/chat/user-question-answer.tsx +0 -0
  449. /package/{registry → cli/registry}/lib/file-icon-maps.ts +0 -0
  450. /package/{registry → cli/registry}/lib/use-mermaid-render.ts +0 -0
  451. /package/{registry → cli/registry}/lib/utils.ts +0 -0
  452. /package/{registry → cli/registry}/meta.json +0 -0
  453. /package/{registry → cli/registry}/tokens/index.css +0 -0
  454. /package/{registry → cli/registry}/tokens/scale/computed.css +0 -0
  455. /package/{registry → cli/registry}/tokens/scale/config.css +0 -0
  456. /package/{registry → cli/registry}/tokens/scale/index.css +0 -0
  457. /package/{registry → cli/registry}/tokens/scale/presets/compact.css +0 -0
  458. /package/{registry → cli/registry}/tokens/scale/presets/dense.css +0 -0
  459. /package/{registry → cli/registry}/tokens/scale/presets/sharp.css +0 -0
  460. /package/{registry → cli/registry}/tokens/scale/presets/soft.css +0 -0
  461. /package/{registry → cli/registry}/tokens/scale.css +0 -0
  462. /package/{registry → cli/registry}/tokens/scrollbar-utility.css +0 -0
  463. /package/{registry → cli/registry}/tokens/theme.css +0 -0
  464. /package/{registry → cli/registry}/tokens/themes/dark-parchment.css +0 -0
  465. /package/{registry → cli/registry}/tokens/themes/dark-qoder.css +0 -0
  466. /package/{registry → cli/registry}/tokens/themes/light-parchment.css +0 -0
  467. /package/{registry → cli/registry}/tokens/themes/light-qoder.css +0 -0
@@ -0,0 +1,217 @@
1
+ import { s as k, g as R, q as E, p as F, a as I, b as _, _ as l, H as D, y as G, D as f, E as P, F as C, l as z, K as H } from "./mermaid.core-gFR0XUlD.js";
2
+ import { p as V } from "./chunk-4BX2VUAB-Czitj3Kc.js";
3
+ import { p as W } from "./treemap-GDKQZRPO-B9sfERx8.js";
4
+ var x = {
5
+ showLegend: !0,
6
+ ticks: 5,
7
+ max: null,
8
+ min: 0,
9
+ graticule: "circle"
10
+ }, w = {
11
+ axes: [],
12
+ curves: [],
13
+ options: x
14
+ }, h = structuredClone(w), B = P.radar, j = /* @__PURE__ */ l(() => f({
15
+ ...B,
16
+ ...C().radar
17
+ }), "getConfig"), b = /* @__PURE__ */ l(() => h.axes, "getAxes"), q = /* @__PURE__ */ l(() => h.curves, "getCurves"), K = /* @__PURE__ */ l(() => h.options, "getOptions"), N = /* @__PURE__ */ l((a) => {
18
+ h.axes = a.map((t) => ({
19
+ name: t.name,
20
+ label: t.label ?? t.name
21
+ }));
22
+ }, "setAxes"), U = /* @__PURE__ */ l((a) => {
23
+ h.curves = a.map((t) => ({
24
+ name: t.name,
25
+ label: t.label ?? t.name,
26
+ entries: X(t.entries)
27
+ }));
28
+ }, "setCurves"), X = /* @__PURE__ */ l((a) => {
29
+ if (a[0].axis == null)
30
+ return a.map((e) => e.value);
31
+ const t = b();
32
+ if (t.length === 0)
33
+ throw new Error("Axes must be populated before curves for reference entries");
34
+ return t.map((e) => {
35
+ const r = a.find((s) => s.axis?.$refText === e.name);
36
+ if (r === void 0)
37
+ throw new Error("Missing entry for axis " + e.label);
38
+ return r.value;
39
+ });
40
+ }, "computeCurveEntries"), Y = /* @__PURE__ */ l((a) => {
41
+ const t = a.reduce(
42
+ (e, r) => (e[r.name] = r, e),
43
+ {}
44
+ );
45
+ h.options = {
46
+ showLegend: t.showLegend?.value ?? x.showLegend,
47
+ ticks: t.ticks?.value ?? x.ticks,
48
+ max: t.max?.value ?? x.max,
49
+ min: t.min?.value ?? x.min,
50
+ graticule: t.graticule?.value ?? x.graticule
51
+ };
52
+ }, "setOptions"), Z = /* @__PURE__ */ l(() => {
53
+ G(), h = structuredClone(w);
54
+ }, "clear"), $ = {
55
+ getAxes: b,
56
+ getCurves: q,
57
+ getOptions: K,
58
+ setAxes: N,
59
+ setCurves: U,
60
+ setOptions: Y,
61
+ getConfig: j,
62
+ clear: Z,
63
+ setAccTitle: _,
64
+ getAccTitle: I,
65
+ setDiagramTitle: F,
66
+ getDiagramTitle: E,
67
+ getAccDescription: R,
68
+ setAccDescription: k
69
+ }, J = /* @__PURE__ */ l((a) => {
70
+ V(a, $);
71
+ const { axes: t, curves: e, options: r } = a;
72
+ $.setAxes(t), $.setCurves(e), $.setOptions(r);
73
+ }, "populate"), Q = {
74
+ parse: /* @__PURE__ */ l(async (a) => {
75
+ const t = await W("radar", a);
76
+ z.debug(t), J(t);
77
+ }, "parse")
78
+ }, tt = /* @__PURE__ */ l((a, t, e, r) => {
79
+ const s = r.db, o = s.getAxes(), i = s.getCurves(), n = s.getOptions(), c = s.getConfig(), d = s.getDiagramTitle(), p = D(t), u = et(p, c), g = n.max ?? Math.max(...i.map((y) => Math.max(...y.entries))), m = n.min, v = Math.min(c.width, c.height) / 2;
80
+ at(u, o, v, n.ticks, n.graticule), rt(u, o, v, c), M(u, o, i, m, g, n.graticule, c), T(u, i, n.showLegend, c), u.append("text").attr("class", "radarTitle").text(d).attr("x", 0).attr("y", -c.height / 2 - c.marginTop);
81
+ }, "draw"), et = /* @__PURE__ */ l((a, t) => {
82
+ const e = t.width + t.marginLeft + t.marginRight, r = t.height + t.marginTop + t.marginBottom, s = {
83
+ x: t.marginLeft + t.width / 2,
84
+ y: t.marginTop + t.height / 2
85
+ };
86
+ return a.attr("viewbox", `0 0 ${e} ${r}`).attr("width", e).attr("height", r), a.append("g").attr("transform", `translate(${s.x}, ${s.y})`);
87
+ }, "drawFrame"), at = /* @__PURE__ */ l((a, t, e, r, s) => {
88
+ if (s === "circle")
89
+ for (let o = 0; o < r; o++) {
90
+ const i = e * (o + 1) / r;
91
+ a.append("circle").attr("r", i).attr("class", "radarGraticule");
92
+ }
93
+ else if (s === "polygon") {
94
+ const o = t.length;
95
+ for (let i = 0; i < r; i++) {
96
+ const n = e * (i + 1) / r, c = t.map((d, p) => {
97
+ const u = 2 * p * Math.PI / o - Math.PI / 2, g = n * Math.cos(u), m = n * Math.sin(u);
98
+ return `${g},${m}`;
99
+ }).join(" ");
100
+ a.append("polygon").attr("points", c).attr("class", "radarGraticule");
101
+ }
102
+ }
103
+ }, "drawGraticule"), rt = /* @__PURE__ */ l((a, t, e, r) => {
104
+ const s = t.length;
105
+ for (let o = 0; o < s; o++) {
106
+ const i = t[o].label, n = 2 * o * Math.PI / s - Math.PI / 2;
107
+ a.append("line").attr("x1", 0).attr("y1", 0).attr("x2", e * r.axisScaleFactor * Math.cos(n)).attr("y2", e * r.axisScaleFactor * Math.sin(n)).attr("class", "radarAxisLine"), a.append("text").text(i).attr("x", e * r.axisLabelFactor * Math.cos(n)).attr("y", e * r.axisLabelFactor * Math.sin(n)).attr("class", "radarAxisLabel");
108
+ }
109
+ }, "drawAxes");
110
+ function M(a, t, e, r, s, o, i) {
111
+ const n = t.length, c = Math.min(i.width, i.height) / 2;
112
+ e.forEach((d, p) => {
113
+ if (d.entries.length !== n)
114
+ return;
115
+ const u = d.entries.map((g, m) => {
116
+ const v = 2 * Math.PI * m / n - Math.PI / 2, y = A(g, r, s, c), O = y * Math.cos(v), S = y * Math.sin(v);
117
+ return { x: O, y: S };
118
+ });
119
+ o === "circle" ? a.append("path").attr("d", L(u, i.curveTension)).attr("class", `radarCurve-${p}`) : o === "polygon" && a.append("polygon").attr("points", u.map((g) => `${g.x},${g.y}`).join(" ")).attr("class", `radarCurve-${p}`);
120
+ });
121
+ }
122
+ l(M, "drawCurves");
123
+ function A(a, t, e, r) {
124
+ const s = Math.min(Math.max(a, t), e);
125
+ return r * (s - t) / (e - t);
126
+ }
127
+ l(A, "relativeRadius");
128
+ function L(a, t) {
129
+ const e = a.length;
130
+ let r = `M${a[0].x},${a[0].y}`;
131
+ for (let s = 0; s < e; s++) {
132
+ const o = a[(s - 1 + e) % e], i = a[s], n = a[(s + 1) % e], c = a[(s + 2) % e], d = {
133
+ x: i.x + (n.x - o.x) * t,
134
+ y: i.y + (n.y - o.y) * t
135
+ }, p = {
136
+ x: n.x - (c.x - i.x) * t,
137
+ y: n.y - (c.y - i.y) * t
138
+ };
139
+ r += ` C${d.x},${d.y} ${p.x},${p.y} ${n.x},${n.y}`;
140
+ }
141
+ return `${r} Z`;
142
+ }
143
+ l(L, "closedRoundCurve");
144
+ function T(a, t, e, r) {
145
+ if (!e)
146
+ return;
147
+ const s = (r.width / 2 + r.marginRight) * 3 / 4, o = -(r.height / 2 + r.marginTop) * 3 / 4, i = 20;
148
+ t.forEach((n, c) => {
149
+ const d = a.append("g").attr("transform", `translate(${s}, ${o + c * i})`);
150
+ d.append("rect").attr("width", 12).attr("height", 12).attr("class", `radarLegendBox-${c}`), d.append("text").attr("x", 16).attr("y", 0).attr("class", "radarLegendText").text(n.label);
151
+ });
152
+ }
153
+ l(T, "drawLegend");
154
+ var st = { draw: tt }, nt = /* @__PURE__ */ l((a, t) => {
155
+ let e = "";
156
+ for (let r = 0; r < a.THEME_COLOR_LIMIT; r++) {
157
+ const s = a[`cScale${r}`];
158
+ e += `
159
+ .radarCurve-${r} {
160
+ color: ${s};
161
+ fill: ${s};
162
+ fill-opacity: ${t.curveOpacity};
163
+ stroke: ${s};
164
+ stroke-width: ${t.curveStrokeWidth};
165
+ }
166
+ .radarLegendBox-${r} {
167
+ fill: ${s};
168
+ fill-opacity: ${t.curveOpacity};
169
+ stroke: ${s};
170
+ }
171
+ `;
172
+ }
173
+ return e;
174
+ }, "genIndexStyles"), ot = /* @__PURE__ */ l((a) => {
175
+ const t = H(), e = C(), r = f(t, e.themeVariables), s = f(r.radar, a);
176
+ return { themeVariables: r, radarOptions: s };
177
+ }, "buildRadarStyleOptions"), it = /* @__PURE__ */ l(({ radar: a } = {}) => {
178
+ const { themeVariables: t, radarOptions: e } = ot(a);
179
+ return `
180
+ .radarTitle {
181
+ font-size: ${t.fontSize};
182
+ color: ${t.titleColor};
183
+ dominant-baseline: hanging;
184
+ text-anchor: middle;
185
+ }
186
+ .radarAxisLine {
187
+ stroke: ${e.axisColor};
188
+ stroke-width: ${e.axisStrokeWidth};
189
+ }
190
+ .radarAxisLabel {
191
+ dominant-baseline: middle;
192
+ text-anchor: middle;
193
+ font-size: ${e.axisLabelFontSize}px;
194
+ color: ${e.axisColor};
195
+ }
196
+ .radarGraticule {
197
+ fill: ${e.graticuleColor};
198
+ fill-opacity: ${e.graticuleOpacity};
199
+ stroke: ${e.graticuleColor};
200
+ stroke-width: ${e.graticuleStrokeWidth};
201
+ }
202
+ .radarLegendText {
203
+ text-anchor: start;
204
+ font-size: ${e.legendFontSize}px;
205
+ dominant-baseline: hanging;
206
+ }
207
+ ${nt(t, e)}
208
+ `;
209
+ }, "styles"), ut = {
210
+ parser: Q,
211
+ db: $,
212
+ renderer: st,
213
+ styles: it
214
+ };
215
+ export {
216
+ ut as diagram
217
+ };
@@ -0,0 +1,43 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./mermaid.core-DBwAx_jp.cjs"),L=require("./chunk-4BX2VUAB-BlQFTQqz.cjs"),O=require("./treemap-GDKQZRPO-BVfJRs0Z.cjs");var h={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},y={axes:[],curves:[],options:h},p=structuredClone(y),S=n.defaultConfig_default.radar,D=n.__name(()=>n.cleanAndMerge({...S,...n.getConfig().radar}),"getConfig"),f=n.__name(()=>p.axes,"getAxes"),k=n.__name(()=>p.curves,"getCurves"),R=n.__name(()=>p.options,"getOptions"),I=n.__name(a=>{p.axes=a.map(e=>({name:e.name,label:e.label??e.name}))},"setAxes"),E=n.__name(a=>{p.curves=a.map(e=>({name:e.name,label:e.label??e.name,entries:F(e.entries)}))},"setCurves"),F=n.__name(a=>{if(a[0].axis==null)return a.map(t=>t.value);const e=f();if(e.length===0)throw new Error("Axes must be populated before curves for reference entries");return e.map(t=>{const r=a.find(s=>s.axis?.$refText===t.name);if(r===void 0)throw new Error("Missing entry for axis "+t.label);return r.value})},"computeCurveEntries"),P=n.__name(a=>{const e=a.reduce((t,r)=>(t[r.name]=r,t),{});p.options={showLegend:e.showLegend?.value??h.showLegend,ticks:e.ticks?.value??h.ticks,max:e.max?.value??h.max,min:e.min?.value??h.min,graticule:e.graticule?.value??h.graticule}},"setOptions"),G=n.__name(()=>{n.clear(),p=structuredClone(y)},"clear"),_={getAxes:f,getCurves:k,getOptions:R,setAxes:I,setCurves:E,setOptions:P,getConfig:D,clear:G,setAccTitle:n.setAccTitle,getAccTitle:n.getAccTitle,setDiagramTitle:n.setDiagramTitle,getDiagramTitle:n.getDiagramTitle,getAccDescription:n.getAccDescription,setAccDescription:n.setAccDescription},z=n.__name(a=>{L.populateCommonDb(a,_);const{axes:e,curves:t,options:r}=a;_.setAxes(e),_.setCurves(t),_.setOptions(r)},"populate"),B={parse:n.__name(async a=>{const e=await O.parse("radar",a);n.log.debug(e),z(e)},"parse")},V=n.__name((a,e,t,r)=>{const s=r.db,o=s.getAxes(),l=s.getCurves(),i=s.getOptions(),c=s.getConfig(),d=s.getDiagramTitle(),u=n.selectSvgElement(e),m=W(u,c),g=i.max??Math.max(...l.map($=>Math.max(...$.entries))),x=i.min,v=Math.min(c.width,c.height)/2;j(m,o,v,i.ticks,i.graticule),q(m,o,v,c),C(m,o,l,x,g,i.graticule,c),A(m,l,i.showLegend,c),m.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-c.height/2-c.marginTop)},"draw"),W=n.__name((a,e)=>{const t=e.width+e.marginLeft+e.marginRight,r=e.height+e.marginTop+e.marginBottom,s={x:e.marginLeft+e.width/2,y:e.marginTop+e.height/2};return a.attr("viewbox",`0 0 ${t} ${r}`).attr("width",t).attr("height",r),a.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),j=n.__name((a,e,t,r,s)=>{if(s==="circle")for(let o=0;o<r;o++){const l=t*(o+1)/r;a.append("circle").attr("r",l).attr("class","radarGraticule")}else if(s==="polygon"){const o=e.length;for(let l=0;l<r;l++){const i=t*(l+1)/r,c=e.map((d,u)=>{const m=2*u*Math.PI/o-Math.PI/2,g=i*Math.cos(m),x=i*Math.sin(m);return`${g},${x}`}).join(" ");a.append("polygon").attr("points",c).attr("class","radarGraticule")}}},"drawGraticule"),q=n.__name((a,e,t,r)=>{const s=e.length;for(let o=0;o<s;o++){const l=e[o].label,i=2*o*Math.PI/s-Math.PI/2;a.append("line").attr("x1",0).attr("y1",0).attr("x2",t*r.axisScaleFactor*Math.cos(i)).attr("y2",t*r.axisScaleFactor*Math.sin(i)).attr("class","radarAxisLine"),a.append("text").text(l).attr("x",t*r.axisLabelFactor*Math.cos(i)).attr("y",t*r.axisLabelFactor*Math.sin(i)).attr("class","radarAxisLabel")}},"drawAxes");function C(a,e,t,r,s,o,l){const i=e.length,c=Math.min(l.width,l.height)/2;t.forEach((d,u)=>{if(d.entries.length!==i)return;const m=d.entries.map((g,x)=>{const v=2*Math.PI*x/i-Math.PI/2,$=w(g,r,s,c),M=$*Math.cos(v),T=$*Math.sin(v);return{x:M,y:T}});o==="circle"?a.append("path").attr("d",b(m,l.curveTension)).attr("class",`radarCurve-${u}`):o==="polygon"&&a.append("polygon").attr("points",m.map(g=>`${g.x},${g.y}`).join(" ")).attr("class",`radarCurve-${u}`)})}n.__name(C,"drawCurves");function w(a,e,t,r){const s=Math.min(Math.max(a,e),t);return r*(s-e)/(t-e)}n.__name(w,"relativeRadius");function b(a,e){const t=a.length;let r=`M${a[0].x},${a[0].y}`;for(let s=0;s<t;s++){const o=a[(s-1+t)%t],l=a[s],i=a[(s+1)%t],c=a[(s+2)%t],d={x:l.x+(i.x-o.x)*e,y:l.y+(i.y-o.y)*e},u={x:i.x-(c.x-l.x)*e,y:i.y-(c.y-l.y)*e};r+=` C${d.x},${d.y} ${u.x},${u.y} ${i.x},${i.y}`}return`${r} Z`}n.__name(b,"closedRoundCurve");function A(a,e,t,r){if(!t)return;const s=(r.width/2+r.marginRight)*3/4,o=-(r.height/2+r.marginTop)*3/4,l=20;e.forEach((i,c)=>{const d=a.append("g").attr("transform",`translate(${s}, ${o+c*l})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${c}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(i.label)})}n.__name(A,"drawLegend");var H={draw:V},U=n.__name((a,e)=>{let t="";for(let r=0;r<a.THEME_COLOR_LIMIT;r++){const s=a[`cScale${r}`];t+=`
2
+ .radarCurve-${r} {
3
+ color: ${s};
4
+ fill: ${s};
5
+ fill-opacity: ${e.curveOpacity};
6
+ stroke: ${s};
7
+ stroke-width: ${e.curveStrokeWidth};
8
+ }
9
+ .radarLegendBox-${r} {
10
+ fill: ${s};
11
+ fill-opacity: ${e.curveOpacity};
12
+ stroke: ${s};
13
+ }
14
+ `}return t},"genIndexStyles"),X=n.__name(a=>{const e=n.getThemeVariables3(),t=n.getConfig(),r=n.cleanAndMerge(e,t.themeVariables),s=n.cleanAndMerge(r.radar,a);return{themeVariables:r,radarOptions:s}},"buildRadarStyleOptions"),Z=n.__name(({radar:a}={})=>{const{themeVariables:e,radarOptions:t}=X(a);return`
15
+ .radarTitle {
16
+ font-size: ${e.fontSize};
17
+ color: ${e.titleColor};
18
+ dominant-baseline: hanging;
19
+ text-anchor: middle;
20
+ }
21
+ .radarAxisLine {
22
+ stroke: ${t.axisColor};
23
+ stroke-width: ${t.axisStrokeWidth};
24
+ }
25
+ .radarAxisLabel {
26
+ dominant-baseline: middle;
27
+ text-anchor: middle;
28
+ font-size: ${t.axisLabelFontSize}px;
29
+ color: ${t.axisColor};
30
+ }
31
+ .radarGraticule {
32
+ fill: ${t.graticuleColor};
33
+ fill-opacity: ${t.graticuleOpacity};
34
+ stroke: ${t.graticuleColor};
35
+ stroke-width: ${t.graticuleStrokeWidth};
36
+ }
37
+ .radarLegendText {
38
+ text-anchor: start;
39
+ font-size: ${t.legendFontSize}px;
40
+ dominant-baseline: hanging;
41
+ }
42
+ ${U(e,t)}
43
+ `},"styles"),K={parser:B,db:_,renderer:H,styles:Z};exports.diagram=K;
@@ -0,0 +1,24 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./mermaid.core-DBwAx_jp.cjs"),x=require("./chunk-4BX2VUAB-BlQFTQqz.cjs"),B=require("./treemap-GDKQZRPO-BVfJRs0Z.cjs");var $=a.defaultConfig_default.packet,b,m=(b=class{constructor(){this.packet=[],this.setAccTitle=a.setAccTitle,this.getAccTitle=a.getAccTitle,this.setDiagramTitle=a.setDiagramTitle,this.getDiagramTitle=a.getDiagramTitle,this.getAccDescription=a.getAccDescription,this.setAccDescription=a.setAccDescription}getConfig(){const t=a.cleanAndMerge({...$,...a.getConfig().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){a.clear(),this.packet=[]}},a.__name(b,"PacketDB"),b),C=1e4,_=a.__name((e,t)=>{x.populateCommonDb(e,t);let o=-1,i=[],l=1;const{bitsPerRow:c}=t.getConfig();for(let{start:r,end:n,bits:p,label:d}of e.blocks){if(r!==void 0&&n!==void 0&&n<r)throw new Error(`Packet block ${r} - ${n} is invalid. End must be greater than start.`);if(r??=o+1,r!==o+1)throw new Error(`Packet block ${r} - ${n??r} is not contiguous. It should start from ${o+1}.`);if(p===0)throw new Error(`Packet block ${r} is invalid. Cannot have a zero bit field.`);for(n??=r+(p??1)-1,p??=n-r+1,o=n,a.log.debug(`Packet block ${r} - ${o} with label ${d}`);i.length<=c+1&&t.getPacket().length<C;){const[g,s]=S({start:r,end:n,bits:p,label:d},l,c);if(i.push(g),g.end+1===l*c&&(t.pushWord(i),i=[],l++),!s)break;({start:r,end:n,bits:p,label:d}=s)}}t.pushWord(i)},"populate"),S=a.__name((e,t,o)=>{if(e.start===void 0)throw new Error("start should have been set during first phase");if(e.end===void 0)throw new Error("end should have been set during first phase");if(e.start>e.end)throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*o)return[e,void 0];const i=t*o-1,l=t*o;return[{start:e.start,end:i,label:e.label,bits:i-e.start},{start:l,end:e.end,label:e.label,bits:e.end-l}]},"getNextFittingBlock"),w={parser:{yy:void 0},parse:a.__name(async e=>{const t=await B.parse("packet",e),o=w.parser?.yy;if(!(o instanceof m))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");a.log.debug(t),_(t,o)},"parse")},D=a.__name((e,t,o,i)=>{const l=i.db,c=l.getConfig(),{rowHeight:r,paddingY:n,bitWidth:p,bitsPerRow:d}=c,g=l.getPacket(),s=l.getDiagramTitle(),k=r+n,h=k*(g.length+1)-(s?0:r),f=p*d+2,u=a.selectSvgElement(t);u.attr("viewbox",`0 0 ${f} ${h}`),a.configureSvgSize(u,h,f,c.useMaxWidth);for(const[v,y]of g.entries())P(u,y,v,c);u.append("text").text(s).attr("x",f/2).attr("y",h-k/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),P=a.__name((e,t,o,{rowHeight:i,paddingX:l,paddingY:c,bitWidth:r,bitsPerRow:n,showBits:p})=>{const d=e.append("g"),g=o*(i+c)+c;for(const s of t){const k=s.start%n*r+1,h=(s.end-s.start+1)*r-l;if(d.append("rect").attr("x",k).attr("y",g).attr("width",h).attr("height",i).attr("class","packetBlock"),d.append("text").attr("x",k+h/2).attr("y",g+i/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(s.label),!p)continue;const f=s.end===s.start,u=g-2;d.append("text").attr("x",k+(f?h/2:0)).attr("y",u).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",f?"middle":"start").text(s.start),f||d.append("text").attr("x",k+h).attr("y",u).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(s.end)}},"drawWord"),T={draw:D},A={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},z=a.__name(({packet:e}={})=>{const t=a.cleanAndMerge(A,e);return`
2
+ .packetByte {
3
+ font-size: ${t.byteFontSize};
4
+ }
5
+ .packetByte.start {
6
+ fill: ${t.startByteColor};
7
+ }
8
+ .packetByte.end {
9
+ fill: ${t.endByteColor};
10
+ }
11
+ .packetLabel {
12
+ fill: ${t.labelColor};
13
+ font-size: ${t.labelFontSize};
14
+ }
15
+ .packetTitle {
16
+ fill: ${t.titleColor};
17
+ font-size: ${t.titleFontSize};
18
+ }
19
+ .packetBlock {
20
+ stroke: ${t.blockStrokeColor};
21
+ stroke-width: ${t.blockStrokeWidth};
22
+ fill: ${t.blockFillColor};
23
+ }
24
+ `},"styles"),E={parser:w,get db(){return new m},renderer:T,styles:z};exports.diagram=E;
@@ -0,0 +1,142 @@
1
+ import { _ as b, D as m, H as B, e as C, l as w, b as S, a as D, p as T, q as E, g as F, s as P, E as z, F as A, y as W } from "./mermaid.core-gFR0XUlD.js";
2
+ import { p as _ } from "./chunk-4BX2VUAB-Czitj3Kc.js";
3
+ import { p as N } from "./treemap-GDKQZRPO-B9sfERx8.js";
4
+ var L = z.packet, u, v = (u = class {
5
+ constructor() {
6
+ this.packet = [], this.setAccTitle = S, this.getAccTitle = D, this.setDiagramTitle = T, this.getDiagramTitle = E, this.getAccDescription = F, this.setAccDescription = P;
7
+ }
8
+ getConfig() {
9
+ const t = m({
10
+ ...L,
11
+ ...A().packet
12
+ });
13
+ return t.showBits && (t.paddingY += 10), t;
14
+ }
15
+ getPacket() {
16
+ return this.packet;
17
+ }
18
+ pushWord(t) {
19
+ t.length > 0 && this.packet.push(t);
20
+ }
21
+ clear() {
22
+ W(), this.packet = [];
23
+ }
24
+ }, b(u, "PacketDB"), u), M = 1e4, Y = /* @__PURE__ */ b((e, t) => {
25
+ _(e, t);
26
+ let r = -1, s = [], n = 1;
27
+ const { bitsPerRow: l } = t.getConfig();
28
+ for (let { start: a, end: i, bits: d, label: c } of e.blocks) {
29
+ if (a !== void 0 && i !== void 0 && i < a)
30
+ throw new Error(`Packet block ${a} - ${i} is invalid. End must be greater than start.`);
31
+ if (a ??= r + 1, a !== r + 1)
32
+ throw new Error(
33
+ `Packet block ${a} - ${i ?? a} is not contiguous. It should start from ${r + 1}.`
34
+ );
35
+ if (d === 0)
36
+ throw new Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`);
37
+ for (i ??= a + (d ?? 1) - 1, d ??= i - a + 1, r = i, w.debug(`Packet block ${a} - ${r} with label ${c}`); s.length <= l + 1 && t.getPacket().length < M; ) {
38
+ const [p, o] = H({ start: a, end: i, bits: d, label: c }, n, l);
39
+ if (s.push(p), p.end + 1 === n * l && (t.pushWord(s), s = [], n++), !o)
40
+ break;
41
+ ({ start: a, end: i, bits: d, label: c } = o);
42
+ }
43
+ }
44
+ t.pushWord(s);
45
+ }, "populate"), H = /* @__PURE__ */ b((e, t, r) => {
46
+ if (e.start === void 0)
47
+ throw new Error("start should have been set during first phase");
48
+ if (e.end === void 0)
49
+ throw new Error("end should have been set during first phase");
50
+ if (e.start > e.end)
51
+ throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);
52
+ if (e.end + 1 <= t * r)
53
+ return [e, void 0];
54
+ const s = t * r - 1, n = t * r;
55
+ return [
56
+ {
57
+ start: e.start,
58
+ end: s,
59
+ label: e.label,
60
+ bits: s - e.start
61
+ },
62
+ {
63
+ start: n,
64
+ end: e.end,
65
+ label: e.label,
66
+ bits: e.end - n
67
+ }
68
+ ];
69
+ }, "getNextFittingBlock"), x = {
70
+ // @ts-expect-error - PacketDB is not assignable to DiagramDB
71
+ parser: { yy: void 0 },
72
+ parse: /* @__PURE__ */ b(async (e) => {
73
+ const t = await N("packet", e), r = x.parser?.yy;
74
+ if (!(r instanceof v))
75
+ throw new Error(
76
+ "parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues."
77
+ );
78
+ w.debug(t), Y(t, r);
79
+ }, "parse")
80
+ }, I = /* @__PURE__ */ b((e, t, r, s) => {
81
+ const n = s.db, l = n.getConfig(), { rowHeight: a, paddingY: i, bitWidth: d, bitsPerRow: c } = l, p = n.getPacket(), o = n.getDiagramTitle(), h = a + i, g = h * (p.length + 1) - (o ? 0 : a), k = d * c + 2, f = B(t);
82
+ f.attr("viewbox", `0 0 ${k} ${g}`), C(f, g, k, l.useMaxWidth);
83
+ for (const [y, $] of p.entries())
84
+ O(f, $, y, l);
85
+ f.append("text").text(o).attr("x", k / 2).attr("y", g - h / 2).attr("dominant-baseline", "middle").attr("text-anchor", "middle").attr("class", "packetTitle");
86
+ }, "draw"), O = /* @__PURE__ */ b((e, t, r, { rowHeight: s, paddingX: n, paddingY: l, bitWidth: a, bitsPerRow: i, showBits: d }) => {
87
+ const c = e.append("g"), p = r * (s + l) + l;
88
+ for (const o of t) {
89
+ const h = o.start % i * a + 1, g = (o.end - o.start + 1) * a - n;
90
+ if (c.append("rect").attr("x", h).attr("y", p).attr("width", g).attr("height", s).attr("class", "packetBlock"), c.append("text").attr("x", h + g / 2).attr("y", p + s / 2).attr("class", "packetLabel").attr("dominant-baseline", "middle").attr("text-anchor", "middle").text(o.label), !d)
91
+ continue;
92
+ const k = o.end === o.start, f = p - 2;
93
+ c.append("text").attr("x", h + (k ? g / 2 : 0)).attr("y", f).attr("class", "packetByte start").attr("dominant-baseline", "auto").attr("text-anchor", k ? "middle" : "start").text(o.start), k || c.append("text").attr("x", h + g).attr("y", f).attr("class", "packetByte end").attr("dominant-baseline", "auto").attr("text-anchor", "end").text(o.end);
94
+ }
95
+ }, "drawWord"), j = { draw: I }, q = {
96
+ byteFontSize: "10px",
97
+ startByteColor: "black",
98
+ endByteColor: "black",
99
+ labelColor: "black",
100
+ labelFontSize: "12px",
101
+ titleColor: "black",
102
+ titleFontSize: "14px",
103
+ blockStrokeColor: "black",
104
+ blockStrokeWidth: "1",
105
+ blockFillColor: "#efefef"
106
+ }, G = /* @__PURE__ */ b(({ packet: e } = {}) => {
107
+ const t = m(q, e);
108
+ return `
109
+ .packetByte {
110
+ font-size: ${t.byteFontSize};
111
+ }
112
+ .packetByte.start {
113
+ fill: ${t.startByteColor};
114
+ }
115
+ .packetByte.end {
116
+ fill: ${t.endByteColor};
117
+ }
118
+ .packetLabel {
119
+ fill: ${t.labelColor};
120
+ font-size: ${t.labelFontSize};
121
+ }
122
+ .packetTitle {
123
+ fill: ${t.titleColor};
124
+ font-size: ${t.titleFontSize};
125
+ }
126
+ .packetBlock {
127
+ stroke: ${t.blockStrokeColor};
128
+ stroke-width: ${t.blockStrokeWidth};
129
+ fill: ${t.blockFillColor};
130
+ }
131
+ `;
132
+ }, "styles"), X = {
133
+ parser: x,
134
+ get db() {
135
+ return new v();
136
+ },
137
+ renderer: j,
138
+ styles: G
139
+ };
140
+ export {
141
+ X as diagram
142
+ };