@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,10 +1,10 @@
1
- import { r as useUIComponent } from "../../nuxt-ui-DSQFzq3s.js";
2
- import { a as useViteHubUIIcons } from "../../config-Dk67emQt.js";
1
+ import { a as nextPromptFiles, n as fileToUIPart } from "../../attachments-DgwoQZKY.js";
2
+ import { t as ImagePreview } from "../../image-preview-DrLXrHpp.js";
3
3
  import { Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentGroup, AttachmentMedia, AttachmentTitle } from "./attachment.js";
4
- import { t as ImagePreview } from "../../image-preview-C9tdkmEj.js";
5
- import { a as nextPromptFiles, n as fileToUIPart } from "../../attachments-BzTwqRTU.js";
4
+ import { r as useUIComponent } from "../../nuxt-ui-7ByUrymx.js";
5
+ import { a as useViteHubUIIcons } from "../../config-DztmAYYn.js";
6
6
  import { computed, defineComponent, h, onBeforeUnmount, onMounted, ref } from "vue";
7
- //#region src/components/prompt-input.ts
7
+ // src/components/prompt-input.ts
8
8
  const submitLabels = {
9
9
  error: "Retry prompt",
10
10
  ready: "Send prompt",
@@ -250,5 +250,4 @@ const PromptInput = defineComponent({
250
250
  ])]);
251
251
  }
252
252
  });
253
- //#endregion
254
253
  export { PromptInput };
@@ -1,5 +1,4 @@
1
1
  import { App, PropType, Ref } from "vue";
2
- //#region src/components/relative-time.d.ts
3
2
  /** A moment: milliseconds, a `Date`, or an ISO string. A date alone, such as `2026-10-12`, is a calendar day. */
4
3
  export type RelativeTimeValue = number | string | Date;
5
4
  /** How long the words are: `long` ("3 weeks ago"), `short` ("3 wk. ago"), or `narrow` ("3w ago"). */
@@ -69,5 +68,4 @@ export declare const RelativeTime: import("vue").DefineComponent<import("vue").E
69
68
  format: RelativeTimeFormat;
70
69
  threshold: string;
71
70
  locale: string;
72
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
73
- //#endregion
71
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,2 +1 @@
1
- import { n as provideRelativeNow, t as RelativeTime } from "../../relative-time-BVmjOsYG.js";
2
- export { RelativeTime, provideRelativeNow };
1
+ export { t as RelativeTime, n as provideRelativeNow } from "../../relative-time-DJnw45tr.js";
@@ -1,5 +1,4 @@
1
1
  import { PropType } from "vue";
2
- //#region src/components/status.d.ts
3
2
  export type StatusTone = "neutral" | "success" | "warning" | "error" | "info";
4
3
  export type StatusSize = "sm" | "md";
5
4
  /**
@@ -56,5 +55,4 @@ export declare const Status: import("vue").DefineComponent<import("vue").Extract
56
55
  tone: StatusTone;
57
56
  colored: boolean;
58
57
  pulse: boolean;
59
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
60
- //#endregion
58
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, h } from "vue";
2
- //#region src/components/status.ts
2
+ // src/components/status.ts
3
3
  /**
4
4
  * A status as a 6px dot and a label, as Geist's Status Dot. The dot takes the tone's color. The label keeps the color
5
5
  * of the text around it, unless `colored` says that the label is the status itself, such as "Failed".
@@ -44,5 +44,4 @@ const Status = defineComponent({
44
44
  };
45
45
  }
46
46
  });
47
- //#endregion
48
47
  export { Status };
@@ -1,5 +1,4 @@
1
1
  import { PropType } from "vue";
2
- //#region src/components/sync-status.d.ts
3
2
  /** Where local changes stand: not loaded yet, on their way, stored, or rejected. */
4
3
  export type SyncStatusValue = "loading" | "synchronizing" | "synchronized" | "error";
5
4
  export declare const SyncStatus: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
@@ -20,5 +19,4 @@ export declare const SyncStatusIndicator: import("vue").DefineComponent<{}, () =
20
19
  }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
21
20
  export declare const SyncStatusLabel: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
22
21
  [key: string]: any;
23
- }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
24
- //#endregion
22
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,5 +1,6 @@
1
+ import { MorphText } from "./motion.js";
1
2
  import { defineComponent, h, inject, provide, ref, toRef } from "vue";
2
- //#region src/components/sync-status.ts
3
+ // src/components/sync-status.ts
3
4
  const statusKey = Symbol("SyncStatus");
4
5
  const labels = {
5
6
  error: "Not saved",
@@ -41,8 +42,7 @@ const SyncStatusLabel = defineComponent({
41
42
  return () => h("span", {
42
43
  "data-slot": "sync-status-label",
43
44
  "data-status": status.value
44
- }, slots.default?.({ status: status.value }) ?? labels[status.value]);
45
+ }, slots.default?.({ status: status.value }) ?? [h(MorphText, { text: labels[status.value] })]);
45
46
  }
46
47
  });
47
- //#endregion
48
48
  export { SyncStatus, SyncStatusIndicator, SyncStatusLabel };
@@ -1,6 +1,5 @@
1
- import { n as AgentToolInspection } from "../../types-Dj7vp0lZ.js";
1
+ import { n as AgentToolInspection } from "../../types-Ceh7h7NT.js";
2
2
  import { PropType } from "vue";
3
- //#region src/components/tool-list.d.ts
4
3
  export declare const ToolList: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
5
4
  calls: {
6
5
  required: false;
@@ -26,5 +25,4 @@ export declare const ToolList: import("vue").DefineComponent<import("vue").Extra
26
25
  };
27
26
  }>> & Readonly<{
28
27
  onSelect?: ((name: string) => any) | undefined;
29
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
30
- //#endregion
28
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,6 +1,6 @@
1
- import { t as payloadText } from "../../payload-text-sjkYAwvw.js";
1
+ import { t as payloadText } from "../../payload-text-DQNRbJY5.js";
2
2
  import { defineComponent, getCurrentInstance, h } from "vue";
3
- //#region src/components/tool-list.ts
3
+ // src/components/tool-list.ts
4
4
  function schemaBlock(label, schema) {
5
5
  if (schema === void 0) return h("p", { class: "vh-agent-tool-list__unavailable" }, `${label} not recorded.`);
6
6
  const text = typeof schema === "string" ? JSON.stringify(schema) : payloadText(schema);
@@ -115,5 +115,4 @@ select: (name) => Boolean(name) },
115
115
  }));
116
116
  }
117
117
  });
118
- //#endregion
119
118
  export { ToolList };
@@ -1,6 +1,5 @@
1
- import { n as TraceRunView } from "../../index-BYRFQfCd.js";
1
+ import { n as TraceRunView } from "../../index-B_PSX-5h.js";
2
2
  import { PropType } from "vue";
3
- //#region src/components/trace-run.d.ts
4
3
  export declare const TraceRun: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
5
4
  defaultOpen: {
6
5
  default: boolean;
@@ -23,5 +22,4 @@ export declare const TraceRun: import("vue").DefineComponent<import("vue").Extra
23
22
  };
24
23
  }>> & Readonly<{}>, {
25
24
  defaultOpen: boolean;
26
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
27
- //#endregion
25
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,10 +1,10 @@
1
- import { r as useUIComponent } from "../../nuxt-ui-DSQFzq3s.js";
2
- import { t as formatDuration } from "../../format-orwcdZL_.js";
3
1
  import { CodeBlock, CodeBlockContent } from "./code-block.js";
4
- import { t as payloadText } from "../../payload-text-sjkYAwvw.js";
5
2
  import { Trace, TraceCollapsible, TraceCollapsibleContent, TraceCollapsibleTrigger, TraceDescription, TraceIcon, TraceLine, TraceTitle } from "./trace.js";
3
+ import { r as useUIComponent } from "../../nuxt-ui-7ByUrymx.js";
4
+ import { t as formatDuration } from "../../format-Bc9m7-r0.js";
5
+ import { t as payloadText } from "../../payload-text-DQNRbJY5.js";
6
6
  import { defineComponent, h } from "vue";
7
- //#region src/components/trace-run.ts
7
+ // src/components/trace-run.ts
8
8
  const statusLabels = {
9
9
  cancelled: "Cancelled",
10
10
  completed: "Completed",
@@ -86,5 +86,4 @@ const TraceRun = defineComponent({
86
86
  };
87
87
  }
88
88
  });
89
- //#endregion
90
89
  export { TraceRun };
@@ -1,5 +1,4 @@
1
1
  import { PropType } from "vue";
2
- //#region src/components/trace.d.ts
3
2
  export type TraceLineStatus = "running" | "error" | "pending";
4
3
  export declare const Trace: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
5
4
  [key: string]: any;
@@ -49,13 +48,12 @@ export declare const TraceCollapsible: import("vue").DefineComponent<import("vue
49
48
  }>> & Readonly<{
50
49
  "onUpdate:open"?: ((_open: boolean) => any) | undefined;
51
50
  }>, {
52
- defaultOpen: boolean;
53
51
  open: boolean;
52
+ defaultOpen: boolean;
54
53
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
55
54
  export declare const TraceCollapsibleTrigger: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
56
55
  [key: string]: any;
57
56
  }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
58
57
  export declare const TraceCollapsibleContent: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
59
58
  [key: string]: any;
60
- }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
61
- //#endregion
59
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,7 +1,7 @@
1
- import { n as kitSlot, r as slotPart } from "../../slot-part-Doic71uh.js";
1
+ import { n as kitSlot, r as slotPart } from "../../slot-part-BWHvQ3mK.js";
2
2
  import { defineComponent, h } from "vue";
3
3
  import { Collapsible, CollapsiblePanel, CollapsibleTrigger } from "@ui-sdk/vue/collapsible";
4
- //#region src/components/trace.ts
4
+ // src/components/trace.ts
5
5
  const Trace = slotPart("Trace", "trace");
6
6
  const TraceLine = defineComponent({
7
7
  name: "TraceLine",
@@ -73,5 +73,4 @@ const TraceCollapsibleContent = defineComponent({
73
73
  });
74
74
  }
75
75
  });
76
- //#endregion
77
76
  export { Trace, TraceCollapsible, TraceCollapsibleContent, TraceCollapsibleTrigger, TraceDescription, TraceIcon, TraceLine, TraceTitle };
@@ -1,6 +1,5 @@
1
1
  import { ComputedRef, Ref } from "vue";
2
2
  import { FileUIPart } from "ai";
3
- //#region src/composables/attachments.d.ts
4
3
  export interface PendingAttachment {
5
4
  file: File;
6
5
  id: string;
@@ -28,5 +27,4 @@ export interface AgentAttachments {
28
27
  }
29
28
  export declare function fileToDataUrl(file: File): Promise<string>;
30
29
  export declare function fileToUIPart(file: File): Promise<FileUIPart>;
31
- export declare function useAgentAttachments(options?: UseAgentAttachmentsOptions): AgentAttachments;
32
- //#endregion
30
+ export declare function useAgentAttachments(options?: UseAgentAttachmentsOptions): AgentAttachments;
@@ -1,2 +1 @@
1
- import { n as fileToUIPart, r as useAgentAttachments, t as fileToDataUrl } from "../../attachments-BzTwqRTU.js";
2
- export { fileToDataUrl, fileToUIPart, useAgentAttachments };
1
+ export { t as fileToDataUrl, n as fileToUIPart, r as useAgentAttachments } from "../../attachments-DgwoQZKY.js";
@@ -1,9 +1,7 @@
1
1
  import { MaybeRefOrGetter, ShallowRef, VNode } from "vue";
2
- //#region src/composables/highlighted-code.d.ts
3
2
  /**
4
3
  * Highlights `code` with Shiki and returns one node per line for `CodeBlockLine`.
5
4
  * The server and first browser render show plain text; colors follow after mount.
6
5
  * Use `"ansi"` for terminal output with color escape codes.
7
6
  */
8
- export declare function useHighlightedCode(code: MaybeRefOrGetter<string>, language: MaybeRefOrGetter<string>): ShallowRef<VNode[]>;
9
- //#endregion
7
+ export declare function useHighlightedCode(code: MaybeRefOrGetter<string>, language: MaybeRefOrGetter<string>): ShallowRef<VNode[]>;
@@ -1,5 +1,5 @@
1
1
  import { h, onMounted, shallowRef, toValue, watch } from "vue";
2
- //#region src/composables/highlighted-code.ts
2
+ // src/composables/highlighted-code.ts
3
3
  const ansiLanguage = {
4
4
  name: "ansi",
5
5
  scopeName: "source.ansi",
@@ -89,5 +89,4 @@ function useHighlightedCode(code, language) {
89
89
  });
90
90
  return lines;
91
91
  }
92
- //#endregion
93
92
  export { useHighlightedCode };
@@ -1,2 +1,2 @@
1
- import { a as ChoicesInputSource, i as ChoicesInputField, n as ChoicesInputClear, o as ChoicesInputState, r as ChoicesInputError, s as ChoicesInputStatus, t as ChoicesInput } from "../../choices-input-ByXJvDn1.js";
1
+ import { a as ChoicesInputSource, i as ChoicesInputField, n as ChoicesInputClear, o as ChoicesInputState, r as ChoicesInputError, s as ChoicesInputStatus, t as ChoicesInput } from "../../choices-input-BUf-QqGj.js";
2
2
  export { ChoicesInput, ChoicesInputClear, ChoicesInputError, ChoicesInputField, ChoicesInputSource, ChoicesInputState, ChoicesInputStatus };
@@ -1,7 +1,7 @@
1
- import { t as asProp } from "../../slot-part-Doic71uh.js";
2
- import { t as uiErrorDiagnostics } from "../../error-diagnostics-SXtnk6bz.js";
1
+ import { t as uiErrorDiagnostics } from "../../error-diagnostics-BlgA9rI2.js";
2
+ import { t as asProp } from "../../slot-part-BWHvQ3mK.js";
3
3
  import { computed, defineComponent, h, inject, mergeProps, provide, useId } from "vue";
4
- //#region src/headless/choices-input.ts
4
+ // src/headless/choices-input.ts
5
5
  const choicesInputKey = Symbol("ViteHubChoicesInput");
6
6
  function useChoicesInputContext(part) {
7
7
  const context = inject(choicesInputKey);
@@ -158,5 +158,4 @@ const ChoicesInputError = defineComponent({
158
158
  };
159
159
  }
160
160
  });
161
- //#endregion
162
161
  export { ChoicesInput, ChoicesInputClear, ChoicesInputError, ChoicesInputField, ChoicesInputStatus };
@@ -1,2 +1,2 @@
1
- import { a as createCommentVisibility, i as commentLeaveMs, n as CommentVisibilityModel, r as CommentVisibilityOptions, t as CommentVisibility } from "../../comment-visibility-DsVuVndP.js";
1
+ import { a as createCommentVisibility, i as commentLeaveMs, n as CommentVisibilityModel, r as CommentVisibilityOptions, t as CommentVisibility } from "../../comment-visibility-CYctacNx.js";
2
2
  export { CommentVisibility, CommentVisibilityModel, CommentVisibilityOptions, commentLeaveMs, createCommentVisibility };
@@ -1,4 +1,4 @@
1
- //#region src/headless/comment-visibility.ts
1
+ // src/headless/comment-visibility.ts
2
2
  /** How long a mark that stops showing stays, for its pop-out. The styles of the parts use the same time. */
3
3
  const commentLeaveMs = 130;
4
4
  function createCommentVisibility(options = {}) {
@@ -124,5 +124,4 @@ function createCommentVisibility(options = {}) {
124
124
  }
125
125
  };
126
126
  }
127
- //#endregion
128
127
  export { commentLeaveMs, createCommentVisibility };
@@ -1,2 +1,2 @@
1
- import { a as CommentThreadAction, c as UseCommentsOptions, d as provideComments, f as useComments, i as CommentScope, l as defaultCommentCan, n as CommentDraft, o as CommentsOutboxState, p as useCommentsContext, r as CommentFilterState, s as CommentsState, t as CommentCan, u as draftPositionKey } from "../../comments-D8hulVPy.js";
1
+ import { a as CommentThreadAction, c as UseCommentsOptions, d as provideComments, f as useComments, i as CommentScope, l as defaultCommentCan, n as CommentDraft, o as CommentsOutboxState, p as useCommentsContext, r as CommentFilterState, s as CommentsState, t as CommentCan, u as draftPositionKey } from "../../comments-DrE9DU-E.js";
2
2
  export { CommentCan, CommentDraft, CommentFilterState, CommentScope, CommentThreadAction, CommentsOutboxState, CommentsState, UseCommentsOptions, defaultCommentCan, draftPositionKey, provideComments, useComments, useCommentsContext };
@@ -1,2 +1 @@
1
- import { a as useCommentsContext, i as useComments, n as draftPositionKey, r as provideComments, t as defaultCommentCan } from "../../comments-D0d26ghV.js";
2
- export { defaultCommentCan, draftPositionKey, provideComments, useComments, useCommentsContext };
1
+ export { t as defaultCommentCan, n as draftPositionKey, r as provideComments, i as useComments, a as useCommentsContext } from "../../comments-C0OdHh_F.js";
@@ -1,2 +1,2 @@
1
- import { a as MessageScrollerContent, c as MessageScrollerViewport, i as MessageScrollerButton, l as calculatePrependScrollTop, n as MessageScrollPosition, o as MessageScrollerContext, r as MessageScroller, s as MessageScrollerItem, t as MessageScrollBehavior, u as useMessageScroller } from "../../message-scroller-jrYN9dG9.js";
1
+ import { a as MessageScrollerContent, c as MessageScrollerViewport, i as MessageScrollerButton, l as calculatePrependScrollTop, n as MessageScrollPosition, o as MessageScrollerContext, r as MessageScroller, s as MessageScrollerItem, t as MessageScrollBehavior, u as useMessageScroller } from "../../message-scroller-a6qaYHno.js";
2
2
  export { MessageScrollBehavior, MessageScrollPosition, MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerContext, MessageScrollerItem, MessageScrollerViewport, calculatePrependScrollTop, useMessageScroller };
@@ -1,6 +1,6 @@
1
- import { t as uiErrorDiagnostics } from "../../error-diagnostics-SXtnk6bz.js";
1
+ import { t as uiErrorDiagnostics } from "../../error-diagnostics-BlgA9rI2.js";
2
2
  import { computed, defineComponent, h, inject, mergeProps, nextTick, onBeforeUnmount, onMounted, onUpdated, provide, reactive, ref } from "vue";
3
- //#region src/headless/message-scroller.ts
3
+ // src/headless/message-scroller.ts
4
4
  const messageScrollerKey = Symbol("ViteHubMessageScroller");
5
5
  function useInternalMessageScroller() {
6
6
  const context = inject(messageScrollerKey);
@@ -331,5 +331,4 @@ const MessageScrollerButton = defineComponent({
331
331
  };
332
332
  }
333
333
  });
334
- //#endregion
335
334
  export { MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerViewport, calculatePrependScrollTop, useMessageScroller };
@@ -1,4 +1,2 @@
1
- //#region src/playground/paths.d.ts
2
1
  /** A project-relative file path that stays inside the project on Unix and Windows. */
3
- export declare function isProjectPath(path: string): boolean;
4
- //#endregion
2
+ export declare function isProjectPath(path: string): boolean;
@@ -1,7 +1,6 @@
1
- //#region src/playground/paths.ts
1
+ // src/playground/paths.ts
2
2
  /** A project-relative file path that stays inside the project on Unix and Windows. */
3
3
  function isProjectPath(path) {
4
4
  return !/[:\\\0]/.test(path) && path.split("/").every((segment) => segment !== "" && segment !== "." && segment !== "..");
5
5
  }
6
- //#endregion
7
6
  export { isProjectPath };
@@ -1,2 +1,34 @@
1
- import { a as encodePlaygroundLink, c as playgroundUrl, i as decodePlaygroundLink, l as readPlaygroundHash, n as PlaygroundState, o as playgroundHashKey, r as PlaygroundTemplate, s as playgroundLinkLimit, t as PlaygroundFiles } from "../../share-DM4eNy4q.js";
2
- export { PlaygroundFiles, PlaygroundState, PlaygroundTemplate, decodePlaygroundLink, encodePlaygroundLink, playgroundHashKey, playgroundLinkLimit, playgroundUrl, readPlaygroundHash };
1
+ /** Files by project-relative path. */
2
+ export type PlaygroundFiles = Record<string, string>;
3
+ /** What a share link holds: the template the files start from, and the files. */
4
+ export interface PlaygroundState {
5
+ /** The id of the template. A playground without templates leaves it out, and its files start from nothing. */
6
+ template?: string;
7
+ files: PlaygroundFiles;
8
+ }
9
+ /** A template that a link can start from. */
10
+ export interface PlaygroundTemplate {
11
+ id: string;
12
+ files: PlaygroundFiles;
13
+ }
14
+ /**
15
+ * The longest share link, in characters. Chat apps and issue trackers cut longer URLs, and a link this long already
16
+ * holds about 60 KB of code. A bigger playground goes out as a zip.
17
+ */
18
+ export declare const playgroundLinkLimit = 16000;
19
+ /** The URL hash key that holds the files, as in `/play#code=…`. */
20
+ export declare const playgroundHashKey = "code";
21
+ /**
22
+ * Encodes the files as their differences from `base`, the files of the template, compressed for a URL hash.
23
+ * It runs in browsers and in Node, so a build can write playground links too.
24
+ */
25
+ export declare function encodePlaygroundLink(state: PlaygroundState, base?: PlaygroundFiles): Promise<string>;
26
+ /**
27
+ * Reads a share code back into files. A malformed code, an unsafe path, or a template that is not in `templates` gives
28
+ * `undefined`.
29
+ */
30
+ export declare function decodePlaygroundLink(code: string, templates?: readonly PlaygroundTemplate[]): Promise<PlaygroundState | undefined>;
31
+ /** The share code in a URL hash such as `#code=…`, or `undefined`. */
32
+ export declare function readPlaygroundHash(hash: string): string | undefined;
33
+ /** The link to `path` that opens `code`, such as `/play#code=…`. */
34
+ export declare function playgroundUrl(path: string, code: string): string;
@@ -1,5 +1,5 @@
1
1
  import { isProjectPath } from "./paths.js";
2
- //#region src/playground/share.ts
2
+ // src/playground/share.ts
3
3
  /**
4
4
  * The longest share link, in characters. Chat apps and issue trackers cut longer URLs, and a link this long already
5
5
  * holds about 60 KB of code. A bigger playground goes out as a zip.
@@ -88,5 +88,4 @@ function readPlaygroundHash(hash) {
88
88
  function playgroundUrl(path, code) {
89
89
  return `${path}#${playgroundHashKey}=${code}`;
90
90
  }
91
- //#endregion
92
91
  export { decodePlaygroundLink, encodePlaygroundLink, playgroundHashKey, playgroundLinkLimit, playgroundUrl, readPlaygroundHash };
@@ -1,6 +1,4 @@
1
- //#region src/playground/zip.d.ts
2
1
  /** A stored `.zip` of text files under `folder/`, with the same bytes for the same files. */
3
2
  export declare function zipFiles(files: Record<string, string>, folder: string): Uint8Array<ArrayBuffer>;
4
3
  /** Saves `files` as `<folder>.zip`. */
5
- export declare function downloadZip(files: Record<string, string>, folder: string): void;
6
- //#endregion
4
+ export declare function downloadZip(files: Record<string, string>, folder: string): void;
@@ -1,6 +1,6 @@
1
- import { t as uiErrorDiagnostics } from "../../error-diagnostics-SXtnk6bz.js";
1
+ import { t as uiErrorDiagnostics } from "../../error-diagnostics-BlgA9rI2.js";
2
2
  import { isProjectPath } from "./paths.js";
3
- //#region src/playground/zip.ts
3
+ // src/playground/zip.ts
4
4
  const crcTable = Array.from({ length: 256 }, (_, index) => {
5
5
  let value = index;
6
6
  for (let bit = 0; bit < 8; bit++) value = value & 1 ? 3988292384 ^ value >>> 1 : value >>> 1;
@@ -72,5 +72,4 @@ function downloadZip(files, folder) {
72
72
  link.click();
73
73
  setTimeout(() => URL.revokeObjectURL(url), 1e3);
74
74
  }
75
- //#endregion
76
75
  export { downloadZip, zipFiles };
@@ -1,5 +1,4 @@
1
1
  import { PropType } from "vue";
2
- //#region src/workspace/browser-support-notice.d.ts
3
2
  export type UnsupportedBrowser = "safari" | "unknown";
4
3
  /** Safari, including every browser on iOS, which all use WebKit. */
5
4
  export declare function detectUnsupportedBrowser(userAgent: string): UnsupportedBrowser;
@@ -68,9 +67,8 @@ export declare const BrowserSupportNotice: import("vue").DefineComponent<import(
68
67
  onCopied?: ((url: string) => any) | undefined;
69
68
  }>, {
70
69
  url: string;
70
+ description: string;
71
71
  supported: boolean | undefined;
72
72
  reason: string;
73
73
  browser: UnsupportedBrowser;
74
- description: string;
75
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
76
- //#endregion
74
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,7 +1,9 @@
1
- import { n as useCopy } from "../../copy-button-CRN3kmSD.js";
1
+ import { useCopy } from "../components/copy-button.js";
2
+ import { MorphText, SwapIcon } from "../components/motion.js";
3
+ import { t as ring } from "../../ring-BN4d8vtw.js";
2
4
  import { icon } from "./icons.js";
3
5
  import { defineComponent, h, onBeforeUnmount, onMounted, ref, useId } from "vue";
4
- //#region src/workspace/browser-support-notice.ts
6
+ // src/workspace/browser-support-notice.ts
5
7
  /** Safari, including every browser on iOS, which all use WebKit. */
6
8
  function detectUnsupportedBrowser(userAgent) {
7
9
  const webkitOnly = /Safari\//.test(userAgent) && !/(Chrome|Chromium|Edg|OPR|Firefox)\//.test(userAgent);
@@ -59,9 +61,12 @@ const BrowserSupportNotice = defineComponent({
59
61
  document.addEventListener("pointerdown", closeOnOutside);
60
62
  });
61
63
  onBeforeUnmount(() => document.removeEventListener("pointerdown", closeOnOutside));
62
- async function copy() {
64
+ async function copy(event) {
65
+ const button = event.currentTarget;
63
66
  const url = props.url ?? location.href;
64
- if (await copyText(url)) emit("copied", url);
67
+ if (!await copyText(url)) return;
68
+ emit("copied", url);
69
+ if (button instanceof HTMLElement) ring(button);
65
70
  }
66
71
  return () => {
67
72
  if (!mounted.value || props.supported !== false) return null;
@@ -81,7 +86,10 @@ const BrowserSupportNotice = defineComponent({
81
86
  class: "vh-ws-button",
82
87
  type: "button",
83
88
  onClick: copy
84
- }, [icon(copied.value ? "check" : "copy"), copied.value ? "Copied" : "Copy link"]), h("div", { class: "vh-ws-popover-anchor" }, [h("button", {
89
+ }, [h(SwapIcon, {
90
+ name: copied.value ? "check" : "copy",
91
+ enter: copied.value ? "draw" : "blur"
92
+ }, { default: ({ name }) => icon(name) }), h(MorphText, { text: copied.value ? "Copied" : "Copy link" })]), h("div", { class: "vh-ws-popover-anchor" }, [h("button", {
85
93
  "aria-controls": whyId,
86
94
  "aria-expanded": why.value ? "true" : "false",
87
95
  class: "vh-ws-button",
@@ -101,5 +109,4 @@ const BrowserSupportNotice = defineComponent({
101
109
  };
102
110
  }
103
111
  });
104
- //#endregion
105
112
  export { BrowserSupportNotice, detectUnsupportedBrowser };
@@ -1,16 +1,23 @@
1
- //#region src/workspace/codemirror.d.ts
2
1
  export interface CodeEditorOptions {
3
2
  parent: HTMLElement;
4
3
  doc: string;
5
4
  path: string;
6
5
  readonly: boolean;
6
+ wrap: boolean;
7
7
  onChange: (doc: string) => void;
8
+ /** Alt+Z asks for the other wrap state, as in VS Code. The editor wraps when `setWrap` gets it. */
9
+ onToggleWrap: () => void;
10
+ /** The cursor moved. The line and the column start at 1. */
11
+ onCursor: (cursor: {
12
+ line: number;
13
+ column: number;
14
+ }) => void;
8
15
  }
9
16
  export interface CodeEditor {
10
17
  setDoc: (doc: string, path: string) => void;
11
18
  setReadonly: (readonly: boolean) => void;
19
+ setWrap: (wrap: boolean) => void;
12
20
  focus: () => void;
13
21
  destroy: () => void;
14
22
  }
15
- export declare function createCodeEditor(options: CodeEditorOptions): CodeEditor;
16
- //#endregion
23
+ export declare function createCodeEditor(options: CodeEditorOptions): CodeEditor;