@vite-hub/ui 0.4.1 → 0.5.1

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 (360) hide show
  1. package/README.md +102 -76
  2. package/dist/andromeeda-DaUPZ4_A.js +147 -0
  3. package/dist/announce-B0DLwflT.js +31 -0
  4. package/dist/{attachments-BzTwqRTU.js → attachments-DgwoQZKY.js} +3 -5
  5. package/dist/aurora-x-B5RPZ9i5.js +162 -0
  6. package/dist/{avatar-stack-DPRFuezh.d.ts → avatar-stack-C0IKwj6g.d.ts} +1 -3
  7. package/dist/ayu-dark-DXTaGA7I.js +137 -0
  8. package/dist/ayu-light-BCYi80Fe.js +137 -0
  9. package/dist/ayu-mirage-CgbXz-N5.js +137 -0
  10. package/dist/catppuccin-frappe-MV2xzv44.js +266 -0
  11. package/dist/catppuccin-latte-CL6jjlVD.js +266 -0
  12. package/dist/catppuccin-macchiato-Bp6oZJVK.js +266 -0
  13. package/dist/catppuccin-mocha-DOHrQ4dw.js +266 -0
  14. package/dist/{choices-input-ByXJvDn1.d.ts → choices-input-BUf-QqGj.d.ts} +0 -2
  15. package/dist/{code-view-DsU-xzic.js → code-view-Cg4nyTNA.js} +6 -8
  16. package/dist/{colors-BghReA9C-CjF9gnmy.js → colors-BghReA9C-DEq4bhEP.js} +1 -2
  17. package/dist/{comment-attachments-C4yNbcx5.js → comment-attachments-CMpYOJod.js} +1 -2
  18. package/dist/{comment-composer-fINL5bxo.d.ts → comment-composer-BI6CNJyO.d.ts} +3 -5
  19. package/dist/{comment-composer-jYv2ULNP.js → comment-composer-CzU7DdfD.js} +260 -16
  20. package/dist/{comment-layer-C_sbPIR5.d.ts → comment-layer-DyVstrs-.d.ts} +5 -7
  21. package/dist/{comment-list-BcSaLngS.d.ts → comment-list-CSK5o-Ua.d.ts} +3 -5
  22. package/dist/comment-marks.css +18 -22
  23. package/dist/{comment-panel-CfvdRUMX.d.ts → comment-panel-CEvOI3gk.d.ts} +3 -5
  24. package/dist/{comment-person-CLPlW_SS.js → comment-person-D_IyIjXo.js} +1 -2
  25. package/dist/{comment-pin-DHOdRvUw.d.ts → comment-pin-C5UeLPTa.d.ts} +1 -3
  26. package/dist/{comment-row-Bn3nr8l5.js → comment-row-DPMWI5Z0.js} +3 -4
  27. package/dist/{comment-selection-bar-CyVBNYl9.d.ts → comment-selection-bar-CVuS-FNL.d.ts} +0 -2
  28. package/dist/comment-send-DPzV9B8S.js +275 -0
  29. package/dist/comment-send-MmxFsOQf.d.ts +23 -0
  30. package/dist/comment-send.css +267 -0
  31. package/dist/comment-thread-CbPtoi8-.js +796 -0
  32. package/dist/{comment-thread-DKJjmWN0.d.ts → comment-thread-DGm1cGJt.d.ts} +4 -8
  33. package/dist/{comment-visibility-DsVuVndP.d.ts → comment-visibility-CYctacNx.d.ts} +0 -2
  34. package/dist/{comments-D0d26ghV.js → comments-C0OdHh_F.js} +5 -8
  35. package/dist/{comments-D8hulVPy.d.ts → comments-DrE9DU-E.d.ts} +1 -3
  36. package/dist/{comments-context-C2lOZyQ5.js → comments-context-CrjhleVA.js} +4 -5
  37. package/dist/{config-Dk67emQt.js → config-DztmAYYn.js} +9 -3
  38. package/dist/{config-DgxBW013.d.ts → config-xL4EBeXw.d.ts} +11 -4
  39. package/dist/dark-plus-CXEBSjk4.js +148 -0
  40. package/dist/dracula-Bvyz6eCo.js +165 -0
  41. package/dist/dracula-soft-a9indxAQ.js +115 -0
  42. package/dist/{draw-DzSmD7uo-Dwz8zoH2.js → draw-DzSmD7uo-Cb7s9kxJ.js} +359 -708
  43. package/dist/drop-field-CNZgwFVO.js +162 -0
  44. package/dist/{editor-C_wt4RRV.js → editor-CGiEVOnB.js} +44 -6
  45. package/dist/effects-g4QucvgO.js +2955 -0
  46. package/dist/{error-diagnostics-SXtnk6bz.js → error-diagnostics-BlgA9rI2.js} +1 -2
  47. package/dist/everforest-dark-9sVAxG7I.js +99 -0
  48. package/dist/everforest-light-BocTn_Hd.js +99 -0
  49. package/dist/{file-tree-C4OYgbV-.js → file-tree-CRFIdtzw.js} +58 -116
  50. package/dist/{file-tree-DlT9RGhu.d.ts → file-tree-DOtkeBaq.d.ts} +0 -14
  51. package/dist/{format-orwcdZL_.js → format-Bc9m7-r0.js} +1 -2
  52. package/dist/{getSingularPatch-Dsb8EgxR.js → getSingularPatch-C7LmmBrW.js} +375 -79
  53. package/dist/github-dark-BO9SXswM.js +142 -0
  54. package/dist/github-dark-default-XB_RHfBI.js +90 -0
  55. package/dist/github-dark-dimmed-BoGxaWUQ.js +137 -0
  56. package/dist/github-dark-high-contrast-B3X6t2fG.js +137 -0
  57. package/dist/github-light-D7VHHlUH.js +142 -0
  58. package/dist/github-light-default-BuDsGtcR.js +137 -0
  59. package/dist/github-light-high-contrast-GodZiAwh.js +137 -0
  60. package/dist/gruvbox-dark-hard-CU4LuKJc.js +140 -0
  61. package/dist/gruvbox-dark-medium-DjAsuXuH.js +140 -0
  62. package/dist/gruvbox-dark-soft-D3Zttj6R.js +140 -0
  63. package/dist/gruvbox-light-hard-4M_9onwE.js +140 -0
  64. package/dist/gruvbox-light-medium-D9QwS4kQ.js +140 -0
  65. package/dist/gruvbox-light-soft-DhYcfQql.js +140 -0
  66. package/dist/{handlers-DMl-Na3x.js → handlers-CnbkvXjX.js} +1 -2
  67. package/dist/headless.d.ts +4 -4
  68. package/dist/headless.js +1 -1
  69. package/dist/highlights-C2AbEdDI.js +2630 -0
  70. package/dist/hold-to-delete-BSMrpE-i.d.ts +49 -0
  71. package/dist/hold-to-delete-Cludb56v.js +433 -0
  72. package/dist/horizon-bright-B9u59onx.js +97 -0
  73. package/dist/horizon-tItY9ATR.js +97 -0
  74. package/dist/houston-BqKrKNQv.js +207 -0
  75. package/dist/icon-XZaCUZTG.d.ts +29 -0
  76. package/dist/{image-preview-C9tdkmEj.js → image-preview-DrLXrHpp.js} +3 -4
  77. package/dist/{index-CNY1uNTh.d.ts → index-B2cbt3py.d.ts} +3945 -2445
  78. package/dist/{index-BYRFQfCd.d.ts → index-B_PSX-5h.d.ts} +5 -11
  79. package/dist/index.d.ts +35 -32
  80. package/dist/index.js +71 -73
  81. package/dist/install-Ba9mkkqI.js +16 -0
  82. package/dist/kanagawa-dragon-BH1K3aMw.js +159 -0
  83. package/dist/kanagawa-lotus-C-4JB2io.js +159 -0
  84. package/dist/kanagawa-wave-DTQqNe5k.js +159 -0
  85. package/dist/laserwave-BkV0uIaG.js +84 -0
  86. package/dist/light-plus-CxYgEz7U.js +149 -0
  87. package/dist/list-DUTAo0uC.js +270 -0
  88. package/dist/loader-CYMEjzwc.js +79 -0
  89. package/dist/{markdown-editor-CMbNZOdN.js → markdown-editor-3gY9MLvy.js} +237 -38
  90. package/dist/{markdown-editor-wQF0yD5o.d.ts → markdown-editor-B7gD60tp.d.ts} +0 -6
  91. package/dist/markdown-editor.d.ts +1 -5
  92. package/dist/markdown-editor.js +2 -2
  93. package/dist/markdown-renderer-DFS1vf1h.js +26578 -0
  94. package/dist/material-theme-Xdm37UUJ.js +105 -0
  95. package/dist/material-theme-darker-Blaz0cgN.js +105 -0
  96. package/dist/material-theme-lighter-BddVxBVA.js +105 -0
  97. package/dist/material-theme-ocean-C4qhfFHi.js +105 -0
  98. package/dist/material-theme-palenight-ChHDqoiA.js +105 -0
  99. package/dist/{message-scroller-jrYN9dG9.d.ts → message-scroller-a6qaYHno.d.ts} +2 -4
  100. package/dist/min-dark-DpGSNjaW.js +125 -0
  101. package/dist/min-light-BMfJUsU2.js +122 -0
  102. package/dist/monokai-DW19E-zg.js +162 -0
  103. package/dist/motion/core.d.ts +4 -0
  104. package/dist/motion/core.js +11 -0
  105. package/dist/motion-core-DNl7TR1T.d.ts +402 -0
  106. package/dist/motion.d.ts +14 -0
  107. package/dist/motion.js +13 -0
  108. package/dist/night-owl-B7Of8ee9.js +188 -0
  109. package/dist/night-owl-light-Vu9tTNpS.js +189 -0
  110. package/dist/nord-CDzJumeN.js +128 -0
  111. package/dist/nuxt-ui-7ByUrymx.js +43 -0
  112. package/dist/nuxt.d.ts +1 -7
  113. package/dist/nuxt.js +16 -11
  114. package/dist/one-dark-pro-hS_sNo5p.js +124 -0
  115. package/dist/one-light-CD4ItzSC.js +153 -0
  116. package/dist/opt-out-D66l60sg.js +205 -0
  117. package/dist/parts/components/agent-session.d.ts +1 -3
  118. package/dist/parts/components/agent-session.js +3 -4
  119. package/dist/parts/components/attachment.d.ts +2 -4
  120. package/dist/parts/components/attachment.js +3 -4
  121. package/dist/parts/components/avatar-stack.d.ts +1 -1
  122. package/dist/parts/components/avatar-stack.js +4 -4
  123. package/dist/parts/components/bubble.d.ts +2 -4
  124. package/dist/parts/components/bubble.js +2 -3
  125. package/dist/parts/components/chat-message.d.ts +1 -3
  126. package/dist/parts/components/chat-message.js +1 -2
  127. package/dist/parts/components/chat-session.d.ts +2 -4
  128. package/dist/parts/components/chat-session.js +1 -2
  129. package/dist/parts/components/chat.d.ts +1 -3
  130. package/dist/parts/components/chat.js +4 -5
  131. package/dist/parts/components/code-block.d.ts +2 -4
  132. package/dist/parts/components/code-block.js +3 -4
  133. package/dist/parts/components/code-view.d.ts +1 -3
  134. package/dist/parts/components/code-view.js +1 -2
  135. package/dist/parts/components/comment-composer.d.ts +1 -1
  136. package/dist/parts/components/comment-composer.js +1 -2
  137. package/dist/parts/components/comment-layer.d.ts +1 -1
  138. package/dist/parts/components/comment-layer.js +28 -11
  139. package/dist/parts/components/comment-list.d.ts +1 -1
  140. package/dist/parts/components/comment-list.js +13 -9
  141. package/dist/parts/components/comment-panel.d.ts +1 -1
  142. package/dist/parts/components/comment-panel.js +27 -14
  143. package/dist/parts/components/comment-pin.d.ts +1 -1
  144. package/dist/parts/components/comment-pin.js +2 -3
  145. package/dist/parts/components/comment-selection-bar.d.ts +1 -1
  146. package/dist/parts/components/comment-selection-bar.js +4 -4
  147. package/dist/parts/components/comment-send.d.ts +2 -0
  148. package/dist/parts/components/comment-send.js +1 -0
  149. package/dist/parts/components/comment-thread.d.ts +1 -1
  150. package/dist/parts/components/comment-thread.js +2 -597
  151. package/dist/parts/components/comments.d.ts +9 -8
  152. package/dist/parts/components/comments.js +7 -6
  153. package/dist/parts/components/connection-status.d.ts +1 -3
  154. package/dist/parts/components/connection-status.js +1 -2
  155. package/dist/parts/components/copy-button.d.ts +14 -6
  156. package/dist/parts/components/copy-button.js +225 -1
  157. package/dist/parts/components/device-frame.d.ts +3 -5
  158. package/dist/parts/components/device-frame.js +1 -2
  159. package/dist/parts/components/drop-field.d.ts +67 -0
  160. package/dist/parts/components/drop-field.js +76 -0
  161. package/dist/parts/components/file-tree.d.ts +1 -1
  162. package/dist/parts/components/file-tree.js +1 -2
  163. package/dist/parts/components/filter-search.d.ts +2 -4
  164. package/dist/parts/components/filter-search.js +2 -3
  165. package/dist/parts/components/hold-to-delete.d.ts +80 -0
  166. package/dist/parts/components/hold-to-delete.js +75 -0
  167. package/dist/parts/components/markdown-editor.d.ts +1 -1
  168. package/dist/parts/components/markdown-editor.js +1 -2
  169. package/dist/parts/components/markdown-renderer.d.ts +1 -3
  170. package/dist/parts/components/markdown-renderer.js +1 -23077
  171. package/dist/parts/components/markdown.d.ts +1 -3
  172. package/dist/parts/components/markdown.js +2 -3
  173. package/dist/parts/components/marker.d.ts +2 -4
  174. package/dist/parts/components/marker.js +2 -3
  175. package/dist/parts/components/message-parts.d.ts +1 -3
  176. package/dist/parts/components/message-parts.js +14 -7
  177. package/dist/parts/components/message.d.ts +1 -3
  178. package/dist/parts/components/message.js +2 -3
  179. package/dist/parts/components/motion-list.d.ts +40 -0
  180. package/dist/parts/components/motion-list.js +41 -0
  181. package/dist/parts/components/motion.d.ts +122 -0
  182. package/dist/parts/components/motion.js +171 -0
  183. package/dist/parts/components/patch-parsers.d.ts +1 -1
  184. package/dist/parts/components/patch-parsers.js +1 -2
  185. package/dist/parts/components/progress.d.ts +39 -0
  186. package/dist/parts/components/progress.js +53 -0
  187. package/dist/parts/components/prompt-input.d.ts +5 -7
  188. package/dist/parts/components/prompt-input.js +5 -6
  189. package/dist/parts/components/relative-time.d.ts +1 -3
  190. package/dist/parts/components/relative-time.js +1 -2
  191. package/dist/parts/components/status.d.ts +1 -3
  192. package/dist/parts/components/status.js +1 -2
  193. package/dist/parts/components/sync-status.d.ts +1 -3
  194. package/dist/parts/components/sync-status.js +3 -3
  195. package/dist/parts/components/tool-list.d.ts +2 -4
  196. package/dist/parts/components/tool-list.js +2 -3
  197. package/dist/parts/components/trace-run.d.ts +2 -4
  198. package/dist/parts/components/trace-run.js +4 -5
  199. package/dist/parts/components/trace.d.ts +2 -4
  200. package/dist/parts/components/trace.js +2 -3
  201. package/dist/parts/composables/attachments.d.ts +1 -3
  202. package/dist/parts/composables/attachments.js +1 -2
  203. package/dist/parts/composables/highlighted-code.d.ts +1 -3
  204. package/dist/parts/composables/highlighted-code.js +1 -2
  205. package/dist/parts/headless/choices-input.d.ts +1 -1
  206. package/dist/parts/headless/choices-input.js +3 -4
  207. package/dist/parts/headless/comment-visibility.d.ts +1 -1
  208. package/dist/parts/headless/comment-visibility.js +1 -2
  209. package/dist/parts/headless/comments.d.ts +1 -1
  210. package/dist/parts/headless/comments.js +1 -2
  211. package/dist/parts/headless/message-scroller.d.ts +1 -1
  212. package/dist/parts/headless/message-scroller.js +2 -3
  213. package/dist/parts/playground/paths.d.ts +1 -3
  214. package/dist/parts/playground/paths.js +1 -2
  215. package/dist/parts/playground/share.d.ts +34 -2
  216. package/dist/parts/playground/share.js +1 -2
  217. package/dist/parts/playground/zip.d.ts +1 -3
  218. package/dist/parts/playground/zip.js +2 -3
  219. package/dist/parts/workspace/browser-support-notice.d.ts +2 -4
  220. package/dist/parts/workspace/browser-support-notice.js +13 -6
  221. package/dist/parts/workspace/codemirror.d.ts +10 -3
  222. package/dist/parts/workspace/codemirror.js +40 -8
  223. package/dist/parts/workspace/connect-panel.d.ts +2 -4
  224. package/dist/parts/workspace/connect-panel.js +2 -3
  225. package/dist/parts/workspace/connect-store.d.ts +1 -3
  226. package/dist/parts/workspace/connect-store.js +1 -2
  227. package/dist/parts/workspace/file-icons.d.ts +14 -0
  228. package/dist/parts/workspace/file-icons.js +81 -0
  229. package/dist/parts/workspace/icons.d.ts +2 -2
  230. package/dist/parts/workspace/icons.js +2 -2
  231. package/dist/parts/workspace/runners/render.d.ts +24 -0
  232. package/dist/parts/workspace/runners/render.js +123 -0
  233. package/dist/parts/workspace/runners/web-container.d.ts +27 -0
  234. package/dist/parts/workspace/runners/web-container.js +185 -0
  235. package/dist/parts/workspace/workspace-bar.d.ts +49 -0
  236. package/dist/parts/workspace/workspace-bar.js +50 -0
  237. package/dist/parts/workspace/workspace-boot-status.d.ts +1 -2
  238. package/dist/parts/workspace/workspace-boot-status.js +2 -3
  239. package/dist/parts/workspace/workspace-editor-head.d.ts +45 -0
  240. package/dist/parts/workspace/workspace-editor-head.js +65 -0
  241. package/dist/parts/workspace/workspace-editor.d.ts +18 -3
  242. package/dist/parts/workspace/workspace-editor.js +30 -5
  243. package/dist/parts/workspace/workspace-examples.d.ts +72 -0
  244. package/dist/parts/workspace/workspace-examples.js +71 -0
  245. package/dist/parts/workspace/workspace-file-link.d.ts +33 -0
  246. package/dist/parts/workspace/workspace-file-link.js +38 -0
  247. package/dist/parts/workspace/workspace-file-tree.d.ts +9 -11
  248. package/dist/parts/workspace/workspace-file-tree.js +28 -22
  249. package/dist/parts/workspace/workspace-guide.d.ts +50 -0
  250. package/dist/parts/workspace/workspace-guide.js +90 -0
  251. package/dist/parts/workspace/workspace-issues.d.ts +44 -0
  252. package/dist/parts/workspace/workspace-issues.js +48 -0
  253. package/dist/parts/workspace/workspace-preview.d.ts +1 -3
  254. package/dist/parts/workspace/workspace-preview.js +2 -3
  255. package/dist/parts/workspace/workspace-shell.d.ts +2 -88
  256. package/dist/parts/workspace/workspace-shell.js +132 -80
  257. package/dist/parts/workspace/workspace-sidebar.d.ts +73 -0
  258. package/dist/parts/workspace/workspace-sidebar.js +131 -0
  259. package/dist/parts/workspace/workspace-start.d.ts +45 -0
  260. package/dist/parts/workspace/workspace-start.js +59 -0
  261. package/dist/parts/workspace/workspace-status.d.ts +67 -0
  262. package/dist/parts/workspace/workspace-status.js +73 -0
  263. package/dist/parts/workspace/workspace-steps.d.ts +2 -0
  264. package/dist/parts/workspace/workspace-steps.js +127 -0
  265. package/dist/parts/workspace/workspace-task.d.ts +18 -0
  266. package/dist/parts/workspace/workspace-task.js +19 -0
  267. package/dist/parts/workspace/workspace-terminal.d.ts +1 -3
  268. package/dist/parts/workspace/workspace-terminal.js +1 -2
  269. package/dist/parts/workspace/workspace.d.ts +249 -0
  270. package/dist/parts/workspace/workspace.js +664 -0
  271. package/dist/{payload-text-sjkYAwvw.js → payload-text-DQNRbJY5.js} +1 -2
  272. package/dist/{pierre-code-view-NE35tkmR.js → pierre-code-view-C49BVDrc.js} +11333 -6718
  273. package/dist/pierre-dark-BtKHt2e4.js +166 -0
  274. package/dist/pierre-dark-CXW3KeKO.js +5 -0
  275. package/dist/pierre-dark-protanopia-deuteranopia-CS0Gs25Q.js +166 -0
  276. package/dist/pierre-dark-protanopia-deuteranopia-DajNv_A3.js +3 -0
  277. package/dist/pierre-dark-soft-BUFoeBEf.js +3 -0
  278. package/dist/pierre-dark-soft-D__0FtYP.js +166 -0
  279. package/dist/pierre-dark-tritanopia-C6fHROmA.js +166 -0
  280. package/dist/pierre-dark-tritanopia-oa3gpgIR.js +3 -0
  281. package/dist/pierre-dark-vibrant-COXpyAHb.js +166 -0
  282. package/dist/pierre-dark-vibrant-CYRHyDoW.js +3 -0
  283. package/dist/pierre-light-BD28C_vh.js +166 -0
  284. package/dist/pierre-light-BN0rL1e5.js +5 -0
  285. package/dist/pierre-light-protanopia-deuteranopia-CYsDHJt0.js +3 -0
  286. package/dist/pierre-light-protanopia-deuteranopia-CwWH1xGL.js +166 -0
  287. package/dist/pierre-light-soft-BkKY4pMj.js +166 -0
  288. package/dist/pierre-light-soft-F2QIpNbb.js +3 -0
  289. package/dist/pierre-light-tritanopia-BbKKIkua.js +3 -0
  290. package/dist/pierre-light-tritanopia-Mpubahl7.js +166 -0
  291. package/dist/pierre-light-vibrant-CdV9Besm.js +3 -0
  292. package/dist/pierre-light-vibrant-x11J3_aO.js +166 -0
  293. package/dist/plastic-BQnXkmvK.js +137 -0
  294. package/dist/playground.d.ts +1 -1
  295. package/dist/poimandres-DEfG-8RI.js +124 -0
  296. package/dist/progress-DL9k-ERG.js +265 -0
  297. package/dist/red-BfKrAjYG.js +169 -0
  298. package/dist/registry-DAIjCjWd.js +77 -0
  299. package/dist/{relative-time-BVmjOsYG.js → relative-time-DJnw45tr.js} +5 -8
  300. package/dist/ring-BN4d8vtw.js +173 -0
  301. package/dist/{rolldown-runtime-C9mWXvCC.js → rolldown-runtime-CahUhzF3.js} +2 -3
  302. package/dist/rose-pine-D0rhGGFg.js +136 -0
  303. package/dist/rose-pine-dawn-7jVaYUiD.js +136 -0
  304. package/dist/rose-pine-moon-CFyS0Mvu.js +136 -0
  305. package/dist/runtime/nuxt-plugin.d.ts +0 -2
  306. package/dist/runtime/nuxt-plugin.js +3 -4
  307. package/dist/{sankey-CAYwt82B-D4uDQoMR.js → sankey-CAYwt82B-BAAk7WkJ.js} +147 -151
  308. package/dist/shiki-CbfEu_Az.js +607 -0
  309. package/dist/slack-dark-Bv-KFSBD.js +87 -0
  310. package/dist/slack-ochin-Dg2BAv1D.js +107 -0
  311. package/dist/{slot-part-Doic71uh.js → slot-part-BWHvQ3mK.js} +1 -2
  312. package/dist/snazzy-light-sYDdR9rx.js +93 -0
  313. package/dist/solarized-dark-COt2tTmN.js +160 -0
  314. package/dist/solarized-light-BJrwFarZ.js +160 -0
  315. package/dist/stream-tokenizer-ByC3l0HQ.js +263 -0
  316. package/dist/styles.css +590 -573
  317. package/dist/synthwave-84-NUDBykTM.js +410 -0
  318. package/dist/{temml-BilSAAws.js → temml-m3ad3bfq.js} +2 -3
  319. package/dist/text-BWzZFnGY.js +822 -0
  320. package/dist/theme.d.ts +44 -3
  321. package/dist/theme.js +23 -9
  322. package/dist/themes-DKugPHlg.js +323 -0
  323. package/dist/tokyo-night-DD3B2QcO.js +153 -0
  324. package/dist/travel-CwVhU_GS.js +180 -0
  325. package/dist/tween-Dv3IIIQG.js +61 -0
  326. package/dist/{types-Dj7vp0lZ.d.ts → types-Ceh7h7NT.d.ts} +1 -3
  327. package/dist/vesper-oVQYrv8Y.js +99 -0
  328. package/dist/visual-copy-CHHBfJ6O.js +14 -0
  329. package/dist/vite.d.ts +1 -3
  330. package/dist/vite.js +13 -3
  331. package/dist/vitesse-black-D84DQZAP.js +196 -0
  332. package/dist/vitesse-dark-CMZ6olk_.js +196 -0
  333. package/dist/vitesse-light-D9d8hLOY.js +196 -0
  334. package/dist/{vue-DGstVdGn.js → vue-BlknIGIm.js} +43 -34
  335. package/dist/{vue-BDmSCtay.js → vue-kCdzBu0N.js} +4 -7
  336. package/dist/workspace-shell-ChCwWPyv.d.ts +110 -0
  337. package/dist/workspace-steps-BKByX9DW.d.ts +70 -0
  338. package/dist/workspace.d.ts +16 -5
  339. package/dist/workspace.js +16 -3
  340. package/package.json +66 -55
  341. package/dist/copy-button-CRN3kmSD.js +0 -253
  342. package/dist/icon-swap.css +0 -69
  343. package/dist/nuxt-ui-DSQFzq3s.js +0 -38
  344. package/dist/parts/playground/highlight.d.ts +0 -5
  345. package/dist/parts/playground/highlight.js +0 -23
  346. package/dist/parts/playground/playground-render.d.ts +0 -126
  347. package/dist/parts/playground/playground-render.js +0 -356
  348. package/dist/parts/workspace/playground-container.d.ts +0 -192
  349. package/dist/parts/workspace/playground-container.js +0 -603
  350. package/dist/pierre-dark-CzUmjETS.js +0 -6
  351. package/dist/pierre-dark-protanopia-deuteranopia-C35UMuvO.js +0 -4
  352. package/dist/pierre-dark-soft-Bb-4-biO.js +0 -4
  353. package/dist/pierre-dark-tritanopia-CIJISGWF.js +0 -4
  354. package/dist/pierre-dark-vibrant-8oZzB3gw.js +0 -4
  355. package/dist/pierre-light-Dn6E0sWv.js +0 -6
  356. package/dist/pierre-light-protanopia-deuteranopia-u0U7N4Hn.js +0 -4
  357. package/dist/pierre-light-soft-BCU6fuhO.js +0 -4
  358. package/dist/pierre-light-tritanopia-3c8Yx3co.js +0 -4
  359. package/dist/pierre-light-vibrant-Cwh332o_.js +0 -4
  360. package/dist/share-DM4eNy4q.d.ts +0 -37
@@ -1,6 +1,5 @@
1
1
  import { PropType } from "vue";
2
2
  import { MarkdownDocumentProps, MarkdownProps } from "@comark/vue";
3
- //#region src/components/markdown.d.ts
4
3
  export type MarkdownValue = string | NonNullable<MarkdownDocumentProps["value"]>;
5
4
  export declare const Markdown: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
6
5
  components: {
@@ -43,5 +42,4 @@ export declare const Markdown: import("vue").DefineComponent<import("vue").Extra
43
42
  }>> & Readonly<{}>, {
44
43
  value: MarkdownValue;
45
44
  streaming: boolean;
46
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
47
- //#endregion
45
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,6 +1,6 @@
1
- import { i as useViteHubUI } from "../../config-Dk67emQt.js";
1
+ import { i as useViteHubUI } from "../../config-DztmAYYn.js";
2
2
  import { Suspense, defineAsyncComponent, defineComponent, getCurrentInstance, h } from "vue";
3
- //#region src/components/markdown.ts
3
+ // src/components/markdown.ts
4
4
  const MarkdownRenderer = defineAsyncComponent(() => import("./markdown-renderer.js").then((module) => module.MarkdownRenderer));
5
5
  const Markdown = defineComponent({
6
6
  name: "Markdown",
@@ -43,5 +43,4 @@ const Markdown = defineComponent({
43
43
  };
44
44
  }
45
45
  });
46
- //#endregion
47
46
  export { Markdown };
@@ -1,5 +1,4 @@
1
1
  import { PropType } from "vue";
2
- //#region src/components/marker.d.ts
3
2
  export type MarkerVariant = "default" | "border" | "separator";
4
3
  export declare const Marker: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
5
4
  as: {
@@ -22,13 +21,12 @@ export declare const Marker: import("vue").DefineComponent<import("vue").Extract
22
21
  type: PropType<MarkerVariant>;
23
22
  };
24
23
  }>> & Readonly<{}>, {
25
- variant: MarkerVariant;
26
24
  as: string | import("vue").Component;
25
+ variant: MarkerVariant;
27
26
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
28
27
  export declare const MarkerIcon: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
29
28
  [key: string]: any;
30
29
  }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
31
30
  export declare const MarkerContent: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
32
31
  [key: string]: any;
33
- }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
34
- //#endregion
32
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,6 +1,6 @@
1
- import { r as slotPart, t as asProp } from "../../slot-part-Doic71uh.js";
1
+ import { r as slotPart, t as asProp } from "../../slot-part-BWHvQ3mK.js";
2
2
  import { defineComponent, h } from "vue";
3
- //#region src/components/marker.ts
3
+ // src/components/marker.ts
4
4
  const Marker = defineComponent({
5
5
  name: "Marker",
6
6
  props: {
@@ -19,5 +19,4 @@ const Marker = defineComponent({
19
19
  });
20
20
  const MarkerIcon = slotPart("MarkerIcon", "marker-icon", "span", { "aria-hidden": "true" });
21
21
  const MarkerContent = slotPart("MarkerContent", "marker-content", "span");
22
- //#endregion
23
22
  export { Marker, MarkerContent, MarkerIcon };
@@ -1,6 +1,5 @@
1
1
  import { PropType } from "vue";
2
2
  import { UIMessage } from "ai";
3
- //#region src/components/message-parts.d.ts
4
3
  export declare const MessageParts: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
5
4
  parts: {
6
5
  required: true;
@@ -23,5 +22,4 @@ export declare const MessageParts: import("vue").DefineComponent<import("vue").E
23
22
  };
24
23
  }>> & Readonly<{}>, {
25
24
  streaming: boolean;
26
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
27
- //#endregion
25
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,8 +1,8 @@
1
+ import { t as ImagePreview } from "../../image-preview-DrLXrHpp.js";
1
2
  import { Markdown } from "./markdown.js";
2
- import { t as ImagePreview } from "../../image-preview-C9tdkmEj.js";
3
3
  import { defineComponent, h } from "vue";
4
4
  import { MessageParts as MessageParts$1 } from "comark-chat/vue";
5
- //#region src/components/message-parts.ts
5
+ // src/components/message-parts.ts
6
6
  const MessageParts = defineComponent({
7
7
  name: "MessageParts",
8
8
  props: {
@@ -26,13 +26,20 @@ const MessageParts = defineComponent({
26
26
  streaming,
27
27
  value
28
28
  }),
29
- file: ({ part, name }) => part.mediaType === "image" || part.mediaType.startsWith("image/") ? h(ImagePreview, {
30
- alt: name,
31
- src: part.url
32
- }) : null,
29
+ file: ({ image, mediaType, name, part }) => {
30
+ if (image) return h(ImagePreview, {
31
+ alt: name,
32
+ src: image
33
+ });
34
+ const { url } = part;
35
+ if (typeof url === "string" && url && !URL.canParse(url) && (mediaType === "image" || mediaType.startsWith("image/"))) return h(ImagePreview, {
36
+ alt: name,
37
+ src: url
38
+ });
39
+ return null;
40
+ },
33
41
  ...slots
34
42
  });
35
43
  }
36
44
  });
37
- //#endregion
38
45
  export { MessageParts };
@@ -1,5 +1,4 @@
1
1
  import { PropType } from "vue";
2
- //#region src/components/message.d.ts
3
2
  export type MessageAlign = "start" | "end";
4
3
  export declare const MessageGroup: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
5
4
  [key: string]: any;
@@ -30,5 +29,4 @@ export declare const MessageHeader: import("vue").DefineComponent<{}, () => impo
30
29
  }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
31
30
  export declare const MessageFooter: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
32
31
  [key: string]: any;
33
- }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
34
- //#endregion
32
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,6 +1,6 @@
1
- import { r as slotPart } from "../../slot-part-Doic71uh.js";
1
+ import { r as slotPart } from "../../slot-part-BWHvQ3mK.js";
2
2
  import { defineComponent, h } from "vue";
3
- //#region src/components/message.ts
3
+ // src/components/message.ts
4
4
  const MessageGroup = slotPart("MessageGroup", "message-group");
5
5
  const Message = defineComponent({
6
6
  name: "Message",
@@ -19,5 +19,4 @@ const MessageAvatar = slotPart("MessageAvatar", "message-avatar");
19
19
  const MessageContent = slotPart("MessageContent", "message-content");
20
20
  const MessageHeader = slotPart("MessageHeader", "message-header");
21
21
  const MessageFooter = slotPart("MessageFooter", "message-footer");
22
- //#endregion
23
22
  export { Message, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader };
@@ -0,0 +1,40 @@
1
+ import { PropType } from "vue";
2
+ /**
3
+ * A list whose items move with the list mover of `@vite-hub/ui/motion` (docs/design/motion.md, "Items are added,
4
+ * removed, or reordered"). Use it in place of `<TransitionGroup>`: render keyed items in its slot. When they change,
5
+ * neighbors spring to their new place, a new item grows from `origin` or from its slot, and a removed item folds away
6
+ * or leaves toward `target`.
7
+ */
8
+ export declare const MotionList: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
9
+ tag: {
10
+ default: string;
11
+ type: StringConstructor;
12
+ };
13
+ origin: {
14
+ default: undefined;
15
+ type: PropType<(item: HTMLElement) => Element | null | undefined>;
16
+ };
17
+ target: {
18
+ default: undefined;
19
+ type: PropType<() => Element | null | undefined>;
20
+ };
21
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
22
+ [key: string]: any;
23
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
24
+ tag: {
25
+ default: string;
26
+ type: StringConstructor;
27
+ };
28
+ origin: {
29
+ default: undefined;
30
+ type: PropType<(item: HTMLElement) => Element | null | undefined>;
31
+ };
32
+ target: {
33
+ default: undefined;
34
+ type: PropType<() => Element | null | undefined>;
35
+ };
36
+ }>> & Readonly<{}>, {
37
+ target: () => Element | null | undefined;
38
+ origin: (item: HTMLElement) => Element | null | undefined;
39
+ tag: string;
40
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,41 @@
1
+ import { t as createMotionList } from "../../list-DUTAo0uC.js";
2
+ import { defineComponent, h, onBeforeUnmount, onBeforeUpdate, onMounted, onUpdated, ref } from "vue";
3
+ // src/components/motion-list.ts
4
+ /**
5
+ * A list whose items move with the list mover of `@vite-hub/ui/motion` (docs/design/motion.md, "Items are added,
6
+ * removed, or reordered"). Use it in place of `<TransitionGroup>`: render keyed items in its slot. When they change,
7
+ * neighbors spring to their new place, a new item grows from `origin` or from its slot, and a removed item folds away
8
+ * or leaves toward `target`.
9
+ */
10
+ const MotionList = defineComponent({
11
+ name: "MotionList",
12
+ props: {
13
+ tag: {
14
+ default: "div",
15
+ type: String
16
+ },
17
+ origin: {
18
+ default: void 0,
19
+ type: Function
20
+ },
21
+ target: {
22
+ default: void 0,
23
+ type: Function
24
+ }
25
+ },
26
+ setup(props, { slots }) {
27
+ const root = ref();
28
+ let list;
29
+ onMounted(() => {
30
+ if (root.value) list = createMotionList(root.value);
31
+ });
32
+ onBeforeUpdate(() => list?.measure());
33
+ onUpdated(() => list?.play({
34
+ origin: props.origin,
35
+ target: props.target?.()
36
+ }));
37
+ onBeforeUnmount(() => list?.destroy());
38
+ return () => h(props.tag, { ref: root }, slots.default?.());
39
+ }
40
+ });
41
+ export { MotionList };
@@ -0,0 +1,122 @@
1
+ import { n as IconExit, t as IconEnter } from "../../icon-XZaCUZTG.js";
2
+ import { Directive, PropType } from "vue";
3
+ /**
4
+ * A text that changes letter by letter when `text` changes, with the width following. Use it for a label that changes
5
+ * with state outside a Nuxt UI button, such as "Copy link" to "Copied". The label of a `UButton` already morphs.
6
+ */
7
+ export declare const MorphText: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
8
+ text: {
9
+ required: true;
10
+ type: StringConstructor;
11
+ };
12
+ as: {
13
+ default: string;
14
+ type: StringConstructor;
15
+ };
16
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
17
+ [key: string]: any;
18
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
19
+ text: {
20
+ required: true;
21
+ type: StringConstructor;
22
+ };
23
+ as: {
24
+ default: string;
25
+ type: StringConstructor;
26
+ };
27
+ }>> & Readonly<{}>, {
28
+ as: string;
29
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
30
+ /** A number whose changed digits roll when `value` changes: up when it grows, down when it shrinks. */
31
+ export declare const RollNumber: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
32
+ value: {
33
+ required: true;
34
+ type: NumberConstructor;
35
+ };
36
+ format: {
37
+ default: undefined;
38
+ type: PropType<(value: number) => string>;
39
+ };
40
+ text: {
41
+ default: undefined;
42
+ type: StringConstructor;
43
+ };
44
+ as: {
45
+ default: string;
46
+ type: StringConstructor;
47
+ };
48
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
49
+ [key: string]: any;
50
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
51
+ value: {
52
+ required: true;
53
+ type: NumberConstructor;
54
+ };
55
+ format: {
56
+ default: undefined;
57
+ type: PropType<(value: number) => string>;
58
+ };
59
+ text: {
60
+ default: undefined;
61
+ type: StringConstructor;
62
+ };
63
+ as: {
64
+ default: string;
65
+ type: StringConstructor;
66
+ };
67
+ }>> & Readonly<{}>, {
68
+ text: string;
69
+ format: (value: number) => string;
70
+ as: string;
71
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
72
+ /**
73
+ * An icon that swaps when `name` changes: the old icon blurs out, or leaves the way it points with `exit`, and the new
74
+ * one comes in. A spinner and a check draw their stroke with `enter: "draw"`. Set `exit` and `enter` with the new name.
75
+ * The default slot draws an icon of its own from `{ name }`, such as an inline SVG, in place of `UIcon`.
76
+ */
77
+ export declare const SwapIcon: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
78
+ name: {
79
+ required: true;
80
+ type: StringConstructor;
81
+ };
82
+ exit: {
83
+ default: undefined;
84
+ type: PropType<IconExit>;
85
+ };
86
+ enter: {
87
+ default: undefined;
88
+ type: PropType<IconEnter>;
89
+ };
90
+ spin: {
91
+ default: boolean;
92
+ type: BooleanConstructor;
93
+ };
94
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
95
+ [key: string]: any;
96
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
97
+ name: {
98
+ required: true;
99
+ type: StringConstructor;
100
+ };
101
+ exit: {
102
+ default: undefined;
103
+ type: PropType<IconExit>;
104
+ };
105
+ enter: {
106
+ default: undefined;
107
+ type: PropType<IconEnter>;
108
+ };
109
+ spin: {
110
+ default: boolean;
111
+ type: BooleanConstructor;
112
+ };
113
+ }>> & Readonly<{}>, {
114
+ exit: IconExit;
115
+ enter: IconEnter;
116
+ spin: boolean;
117
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
118
+ /**
119
+ * `v-ring="done"` rings the element once each time `done` becomes true, for a finished action such as saved or copied.
120
+ * `createViteHubUI()` registers it as `v-ring`.
121
+ */
122
+ export declare const vRing: Directive<HTMLElement, unknown>;
@@ -0,0 +1,171 @@
1
+ import { a as rollNumber, i as morphText, l as swapIcon } from "../../text-BWzZFnGY.js";
2
+ import { t as ring } from "../../ring-BN4d8vtw.js";
3
+ import { r as useUIComponent } from "../../nuxt-ui-7ByUrymx.js";
4
+ import { defineComponent, h, nextTick, ref, watch } from "vue";
5
+ // src/components/motion.ts
6
+ /**
7
+ * A text that changes letter by letter when `text` changes, with the width following. Use it for a label that changes
8
+ * with state outside a Nuxt UI button, such as "Copy link" to "Copied". The label of a `UButton` already morphs.
9
+ */
10
+ const MorphText = defineComponent({
11
+ name: "MorphText",
12
+ props: {
13
+ text: {
14
+ required: true,
15
+ type: String
16
+ },
17
+ as: {
18
+ default: "span",
19
+ type: String
20
+ }
21
+ },
22
+ setup(props) {
23
+ const element = ref();
24
+ let tag = props.as;
25
+ let seed = props.text;
26
+ watch(() => props.text, (text) => {
27
+ if (element.value) morphText(element.value, text);
28
+ }, { flush: "post" });
29
+ return () => {
30
+ if (tag !== props.as) {
31
+ tag = props.as;
32
+ seed = props.text;
33
+ }
34
+ return h(tag, {
35
+ "ref": element,
36
+ "data-slot": "morph-text"
37
+ }, seed);
38
+ };
39
+ }
40
+ });
41
+ /** A number whose changed digits roll when `value` changes: up when it grows, down when it shrinks. */
42
+ const RollNumber = defineComponent({
43
+ name: "RollNumber",
44
+ props: {
45
+ value: {
46
+ required: true,
47
+ type: Number
48
+ },
49
+ format: {
50
+ default: void 0,
51
+ type: Function
52
+ },
53
+ text: {
54
+ default: void 0,
55
+ type: String
56
+ },
57
+ as: {
58
+ default: "span",
59
+ type: String
60
+ }
61
+ },
62
+ setup(props) {
63
+ const element = ref();
64
+ const format = (value) => props.text ?? (props.format ?? String)(value);
65
+ let tag = props.as;
66
+ let seed = format(props.value);
67
+ watch(() => [
68
+ element.value,
69
+ props.value,
70
+ props.text,
71
+ props.format
72
+ ], ([root, value]) => {
73
+ if (root) rollNumber(root, value, format);
74
+ }, { flush: "post" });
75
+ return () => {
76
+ if (tag !== props.as) {
77
+ tag = props.as;
78
+ seed = format(props.value);
79
+ }
80
+ return h(tag, {
81
+ "ref": element,
82
+ "data-slot": "roll-number",
83
+ "style": { fontVariantNumeric: "tabular-nums" }
84
+ }, seed);
85
+ };
86
+ }
87
+ });
88
+ /**
89
+ * An icon that swaps when `name` changes: the old icon blurs out, or leaves the way it points with `exit`, and the new
90
+ * one comes in. A spinner and a check draw their stroke with `enter: "draw"`. Set `exit` and `enter` with the new name.
91
+ * The default slot draws an icon of its own from `{ name }`, such as an inline SVG, in place of `UIcon`.
92
+ */
93
+ const SwapIcon = defineComponent({
94
+ name: "SwapIcon",
95
+ props: {
96
+ name: {
97
+ required: true,
98
+ type: String
99
+ },
100
+ exit: {
101
+ default: void 0,
102
+ type: String
103
+ },
104
+ enter: {
105
+ default: void 0,
106
+ type: String
107
+ },
108
+ spin: {
109
+ default: false,
110
+ type: Boolean
111
+ }
112
+ },
113
+ setup(props, { attrs, slots }) {
114
+ const UIcon = useUIComponent("UIcon");
115
+ const container = ref();
116
+ let next = 0;
117
+ const icons = ref([{
118
+ key: next++,
119
+ name: props.name,
120
+ spin: props.spin
121
+ }]);
122
+ watch(() => [props.name, props.spin], async ([name, spin]) => {
123
+ const key = next++;
124
+ icons.value = [...icons.value, {
125
+ key,
126
+ name,
127
+ spin
128
+ }];
129
+ await nextTick();
130
+ const element = container.value?.querySelector(`[data-icon-key="${key}"]`);
131
+ if (!container.value || !element) return;
132
+ swapIcon(container.value, element, {
133
+ exit: props.exit,
134
+ enter: props.enter,
135
+ onRemove: (old) => {
136
+ const gone = Number(old.getAttribute("data-icon-key"));
137
+ icons.value = icons.value.filter((icon) => icon.key !== gone);
138
+ }
139
+ });
140
+ });
141
+ return () => {
142
+ const { class: iconClass, ...rest } = attrs;
143
+ return h("span", {
144
+ "data-slot": "swap-icon",
145
+ ...rest,
146
+ "ref": container,
147
+ "aria-hidden": "true",
148
+ "style": {
149
+ display: "inline-flex",
150
+ flexShrink: 0
151
+ }
152
+ }, icons.value.map((icon) => h("span", {
153
+ "key": icon.key,
154
+ "data-icon-key": icon.key,
155
+ "style": { display: "inline-flex" }
156
+ }, [slots.default?.({ name: icon.name }) ?? h(UIcon, {
157
+ name: icon.name,
158
+ class: [iconClass, icon.spin && "animate-spin"]
159
+ })])));
160
+ };
161
+ },
162
+ inheritAttrs: false
163
+ });
164
+ /**
165
+ * `v-ring="done"` rings the element once each time `done` becomes true, for a finished action such as saved or copied.
166
+ * `createViteHubUI()` registers it as `v-ring`.
167
+ */
168
+ const vRing = { updated(element, binding) {
169
+ if (binding.value && !binding.oldValue) ring(element);
170
+ } };
171
+ export { MorphText, RollNumber, SwapIcon, vRing };
@@ -1,2 +1,2 @@
1
- import { n as parseDiffFromFile, r as getSingularPatch, t as parsePatchFiles } from "../../index-CNY1uNTh.js";
1
+ import { n as parseDiffFromFile, r as getSingularPatch, t as parsePatchFiles } from "../../index-B2cbt3py.js";
2
2
  export { getSingularPatch, parseDiffFromFile, parsePatchFiles };
@@ -1,2 +1 @@
1
- import { a as parsePatchFiles, n as parseDiffFromFile, t as getSingularPatch } from "../../getSingularPatch-Dsb8EgxR.js";
2
- export { getSingularPatch, parseDiffFromFile, parsePatchFiles };
1
+ export { t as getSingularPatch, n as parseDiffFromFile, a as parsePatchFiles } from "../../getSingularPatch-C7LmmBrW.js";
@@ -0,0 +1,39 @@
1
+ import { PropType } from "vue";
2
+ /**
3
+ * The progress of work that runs, such as an upload, a deploy, or a sync, with the progress helper of
4
+ * `@vite-hub/ui/motion` (docs/design/motion.md, "Work runs"). A `value` from 0 to 1 fills the bar with a head at its
5
+ * end, `null` shows a wave while work runs with no known total, and `done` draws a dot into a check.
6
+ */
7
+ export declare const Progress: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
8
+ value: {
9
+ default: undefined;
10
+ type: PropType<number | null>;
11
+ };
12
+ done: {
13
+ default: boolean;
14
+ type: BooleanConstructor;
15
+ };
16
+ label: {
17
+ default: undefined;
18
+ type: StringConstructor;
19
+ };
20
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
21
+ [key: string]: any;
22
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
23
+ value: {
24
+ default: undefined;
25
+ type: PropType<number | null>;
26
+ };
27
+ done: {
28
+ default: boolean;
29
+ type: BooleanConstructor;
30
+ };
31
+ label: {
32
+ default: undefined;
33
+ type: StringConstructor;
34
+ };
35
+ }>> & Readonly<{}>, {
36
+ done: boolean;
37
+ label: string;
38
+ value: number | null;
39
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,53 @@
1
+ import { t as createProgress } from "../../progress-DL9k-ERG.js";
2
+ import { defineComponent, h, onBeforeUnmount, onMounted, ref, watch } from "vue";
3
+ // src/components/progress.ts
4
+ /**
5
+ * The progress of work that runs, such as an upload, a deploy, or a sync, with the progress helper of
6
+ * `@vite-hub/ui/motion` (docs/design/motion.md, "Work runs"). A `value` from 0 to 1 fills the bar with a head at its
7
+ * end, `null` shows a wave while work runs with no known total, and `done` draws a dot into a check.
8
+ */
9
+ const Progress = defineComponent({
10
+ name: "Progress",
11
+ props: {
12
+ value: {
13
+ default: void 0,
14
+ type: Number
15
+ },
16
+ done: {
17
+ default: false,
18
+ type: Boolean
19
+ },
20
+ label: {
21
+ default: void 0,
22
+ type: String
23
+ }
24
+ },
25
+ setup(props) {
26
+ const root = ref();
27
+ let progress;
28
+ function apply() {
29
+ if (!progress) return;
30
+ if (props.done) progress.done();
31
+ else if (props.value === void 0) progress.reset();
32
+ else progress.set(props.value);
33
+ }
34
+ onMounted(() => {
35
+ if (!root.value) return;
36
+ progress = createProgress(root.value);
37
+ apply();
38
+ });
39
+ watch(() => [props.value, props.done], apply);
40
+ onBeforeUnmount(() => progress?.destroy());
41
+ const now = () => props.done ? 100 : typeof props.value === "number" ? Math.round(Math.max(0, Math.min(1, props.value)) * 100) : void 0;
42
+ return () => h("div", {
43
+ ref: root,
44
+ "aria-label": props.label,
45
+ "aria-valuemax": 100,
46
+ "aria-valuemin": 0,
47
+ "aria-valuenow": now(),
48
+ "data-slot": "progress",
49
+ role: "progressbar"
50
+ });
51
+ }
52
+ });
53
+ export { Progress };
@@ -1,6 +1,5 @@
1
1
  import { PropType } from "vue";
2
2
  import { ChatStatus, FileUIPart } from "ai";
3
- //#region src/components/prompt-input.d.ts
4
3
  export interface PromptInputSubmit {
5
4
  files: readonly FileUIPart[];
6
5
  text: string;
@@ -61,7 +60,7 @@ export declare const PromptInput: import("vue").DefineComponent<import("vue").Ex
61
60
  };
62
61
  }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
63
62
  [key: string]: any;
64
- }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("error" | "submit" | "stop" | "update:modelValue" | "reload" | "update:files")[], "error" | "submit" | "stop" | "update:modelValue" | "reload" | "update:files", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
63
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("error" | "submit" | "stop" | "update:modelValue" | "update:files" | "reload")[], "error" | "submit" | "stop" | "update:modelValue" | "update:files" | "reload", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
65
64
  accept: {
66
65
  type: StringConstructor;
67
66
  };
@@ -123,14 +122,13 @@ export declare const PromptInput: import("vue").DefineComponent<import("vue").Ex
123
122
  onStop?: ((...args: any[]) => any) | undefined;
124
123
  onReload?: ((...args: any[]) => any) | undefined;
125
124
  }>, {
125
+ multiple: boolean;
126
126
  disabled: boolean;
127
127
  modelValue: string;
128
- status: ChatStatus;
129
- multiple: boolean;
130
128
  readonly: boolean;
131
- attachments: boolean;
132
129
  files: readonly FileUIPart[];
130
+ attachments: boolean;
133
131
  attachVariant: "ghost" | "outline";
134
132
  filesDisabled: boolean;
135
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
136
- //#endregion
133
+ status: ChatStatus;
134
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;