@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,11 +1,18 @@
1
+ import { c as shakeEventName, i as consumedPointerEvents, l as swallowNextClick, n as injectComments, o as pathOf, u as useDocumentPointerDown } from "./comments-context-CrjhleVA.js";
2
+ import { i as toPerson, t as displayName } from "./comment-person-D_IyIjXo.js";
3
+ import { n as shake, t as travel } from "./travel-CwVhU_GS.js";
4
+ import { i as matchesAccept } from "./attachments-DgwoQZKY.js";
5
+ import { RollNumber } from "./parts/components/motion.js";
6
+ import { a as useViteHubUIIcons } from "./config-DztmAYYn.js";
7
+ import { t as createMotionList } from "./list-DUTAo0uC.js";
8
+ import { t as ImagePreview } from "./image-preview-DrLXrHpp.js";
9
+ import { r as useUIComponent } from "./nuxt-ui-7ByUrymx.js";
10
+ import { Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentGroup, AttachmentMedia, AttachmentTitle } from "./parts/components/attachment.js";
1
11
  import { AvatarStack } from "./parts/components/avatar-stack.js";
2
- import { a as pathOf, c as swallowNextClick, l as useDocumentPointerDown, n as injectComments, r as consumedPointerEvents, s as shakeEventName } from "./comments-context-C2lOZyQ5.js";
3
- import { i as toPerson, t as displayName } from "./comment-person-CLPlW_SS.js";
4
- import { i as matchesAccept } from "./attachments-BzTwqRTU.js";
5
12
  import { PromptInput } from "./parts/components/prompt-input.js";
6
- import { computed, defineComponent, h, nextTick, onBeforeUnmount, onMounted, ref, useId, watch } from "vue";
13
+ import { computed, defineComponent, h, nextTick, onBeforeUnmount, onBeforeUpdate, onMounted, onUpdated, ref, useId, watch } from "vue";
7
14
  import { foldName } from "@vite-hub/comments/client";
8
- //#region src/internal/comment-mentions.ts
15
+ // src/internal/comment-mentions.ts
9
16
  /** The tag of a mention chip in a rendered message. */
10
17
  const mentionTag = "comment-mention";
11
18
  /** A character that may stand before the `@` of a mention: the start of the text, a space, or an opening mark. */
@@ -81,8 +88,193 @@ function mentionPlugin(people) {
81
88
  pluginPeople.set(plugin, known);
82
89
  return plugin;
83
90
  }
84
- //#endregion
85
- //#region src/components/comment-composer.ts
91
+ // src/internal/comment-image-stack.ts
92
+ const closeDelay = 250;
93
+ /**
94
+ * The pictures of a comment box as one stack of cards beside the text, with their count. Hover or focus fans them out
95
+ * above the box, where each card opens full size and has its Remove button. A tap on the stack fans it out too.
96
+ *
97
+ * A new picture comes out of `origin`, such as the text for a paste or the attach button for a pick, and the others
98
+ * move to make room (docs/design/motion.md, "Items are added, removed, or reordered"). The fan travels each card from
99
+ * its place in the stack to its place in the fan and back ("Something moves to a new place").
100
+ */
101
+ const CommentImageStack = defineComponent({
102
+ name: "CommentImageStack",
103
+ props: {
104
+ images: {
105
+ required: true,
106
+ type: Array
107
+ },
108
+ /** The pictures can't be removed, such as while the comment is sent. */
109
+ disabled: {
110
+ default: false,
111
+ type: Boolean
112
+ },
113
+ /** Where the next new picture comes from. Read once for each change of `images`. */
114
+ origin: { type: Function }
115
+ },
116
+ emits: ["remove"],
117
+ setup(props, { emit }) {
118
+ const icons = useViteHubUIIcons();
119
+ const UButton = useUIComponent("UButton");
120
+ const root = ref();
121
+ const cards = ref();
122
+ const fanned = ref(false);
123
+ const bounds = ref({
124
+ left: 0,
125
+ width: 0,
126
+ scrollable: false
127
+ });
128
+ let observer;
129
+ let list;
130
+ let closer;
131
+ let hovered = false;
132
+ let focused = false;
133
+ let refocus = false;
134
+ let fanFrom;
135
+ const cardElements = () => [...cards.value?.children ?? []].filter((child) => child instanceof HTMLElement && child.hasAttribute("data-key") && !child.hasAttribute("data-motion-ghost"));
136
+ function measureBounds() {
137
+ const stack = root.value;
138
+ if (!stack) return;
139
+ const rect = (stack.closest("[data-slot=comment-composer-box]") ?? stack).getBoundingClientRect();
140
+ const left = Math.max(0, rect.left);
141
+ const documentRoot = stack.ownerDocument.documentElement;
142
+ const width = Math.max(0, Math.min(documentRoot.clientWidth, rect.right) - left);
143
+ const offset = left - stack.getBoundingClientRect().left;
144
+ const rem = Number.parseFloat(getComputedStyle(documentRoot).fontSize) || 16;
145
+ const scrollable = width < (props.images.length * 4 + .5) * rem;
146
+ if (bounds.value.left !== offset || bounds.value.width !== width || bounds.value.scrollable !== scrollable) bounds.value = {
147
+ left: offset,
148
+ width,
149
+ scrollable
150
+ };
151
+ }
152
+ function setFanned(value) {
153
+ clearTimeout(closer);
154
+ if (value && props.images.length === 0) value = false;
155
+ if (fanned.value === value) return;
156
+ fanFrom = new Map(cardElements().map((card) => [card, card.getBoundingClientRect()]));
157
+ if (value) measureBounds();
158
+ fanned.value = value;
159
+ }
160
+ const closeSoon = () => {
161
+ clearTimeout(closer);
162
+ closer = setTimeout(() => {
163
+ if (!focused && !hovered) setFanned(false);
164
+ }, closeDelay);
165
+ };
166
+ onMounted(() => {
167
+ if (cards.value) list = createMotionList(cards.value);
168
+ const box = root.value?.closest("[data-slot=comment-composer-box]");
169
+ if (box && typeof ResizeObserver !== "undefined") {
170
+ observer = new ResizeObserver(() => {
171
+ if (fanned.value) measureBounds();
172
+ });
173
+ observer.observe(box);
174
+ }
175
+ });
176
+ onBeforeUpdate(() => {
177
+ if (!fanFrom) list?.measure();
178
+ });
179
+ onUpdated(() => {
180
+ if (props.images.length === 0 && fanned.value) setFanned(false);
181
+ if (fanned.value) measureBounds();
182
+ const from = fanFrom;
183
+ fanFrom = void 0;
184
+ if (!from) return list?.play({ origin: props.origin?.() ?? void 0 });
185
+ for (const [card, box] of from) if (card.isConnected) travel(card, { from: box });
186
+ });
187
+ onBeforeUnmount(() => {
188
+ clearTimeout(closer);
189
+ observer?.disconnect();
190
+ list?.destroy();
191
+ });
192
+ const label = computed(() => props.images.length === 1 ? "1 picture" : `${props.images.length} pictures`);
193
+ return () => {
194
+ const count = props.images.length;
195
+ return h("div", {
196
+ "data-fanned": fanned.value ? "true" : void 0,
197
+ "data-slot": "comment-image-stack",
198
+ onFocusin: (event) => {
199
+ focused = true;
200
+ if (refocus) return;
201
+ if (event.target instanceof Element && event.target.matches(":focus-visible")) setFanned(true);
202
+ },
203
+ onFocusout: (event) => {
204
+ if (event.relatedTarget instanceof Node && root.value?.contains(event.relatedTarget)) return;
205
+ focused = false;
206
+ closeSoon();
207
+ },
208
+ onKeydown: (event) => {
209
+ if (event.key !== "Escape" || !fanned.value) return;
210
+ event.preventDefault();
211
+ event.stopPropagation();
212
+ setFanned(false);
213
+ refocus = true;
214
+ root.value?.querySelector("[data-slot=comment-image-stack-toggle]")?.focus();
215
+ refocus = false;
216
+ },
217
+ onPointerenter: (event) => {
218
+ if (event.pointerType !== "mouse") return;
219
+ hovered = true;
220
+ setFanned(true);
221
+ },
222
+ onPointerleave: (event) => {
223
+ if (event.pointerType !== "mouse") return;
224
+ hovered = false;
225
+ closeSoon();
226
+ },
227
+ ref: root,
228
+ role: "group",
229
+ "aria-label": `Attached ${label.value}`,
230
+ style: {
231
+ "--vh-fan-left": `${bounds.value.left}px`,
232
+ "--vh-fan-room": `${bounds.value.width}px`,
233
+ "--vh-fan-count": count
234
+ }
235
+ }, [
236
+ h("button", {
237
+ "aria-expanded": String(fanned.value),
238
+ "aria-label": `Show ${label.value}`,
239
+ "data-slot": "comment-image-stack-toggle",
240
+ onClick: () => setFanned(hovered || !fanned.value),
241
+ type: "button"
242
+ }),
243
+ h("div", {
244
+ "data-slot": "comment-image-stack-cards",
245
+ "data-scrollable": fanned.value && bounds.value.scrollable ? "true" : void 0,
246
+ ref: cards
247
+ }, props.images.map((image, index) => h("div", {
248
+ "data-key": image.key,
249
+ "data-slot": "comment-image-stack-card",
250
+ inert: fanned.value ? void 0 : true,
251
+ key: image.key,
252
+ style: { "--vh-stack-depth": count - 1 - index }
253
+ }, [h(ImagePreview, {
254
+ alt: image.name,
255
+ compact: true,
256
+ src: image.url
257
+ }), h(UButton, {
258
+ "aria-label": `Remove ${image.name}`,
259
+ color: "neutral",
260
+ "data-slot": "comment-image-stack-remove",
261
+ disabled: props.disabled,
262
+ icon: icons.value.close,
263
+ onClick: () => emit("remove", image.key),
264
+ size: "xs",
265
+ square: true,
266
+ variant: "ghost"
267
+ })]))),
268
+ count > 1 ? h(RollNumber, {
269
+ "aria-hidden": "true",
270
+ "data-slot": "comment-image-stack-count",
271
+ value: count
272
+ }) : null
273
+ ]);
274
+ };
275
+ }
276
+ });
277
+ // src/components/comment-composer.ts
86
278
  const emptyLineQuery = /^\S{2,}$/u;
87
279
  const placeholders = {
88
280
  comment: "Add a comment",
@@ -105,6 +297,7 @@ const pastedFiles = (clipboard) => {
105
297
  return Array.from(clipboard.files).filter((file) => file.type.startsWith("image/") || !hasText);
106
298
  };
107
299
  const escapeWindow = 2e3;
300
+ const revokeDelay = 1e3;
108
301
  const CommentComposer = defineComponent({
109
302
  name: "CommentComposer",
110
303
  props: {
@@ -224,6 +417,7 @@ const CommentComposer = defineComponent({
224
417
  const allowEmpty = computed(() => props.allowEmpty ?? props.variant === "reply");
225
418
  const parts = /* @__PURE__ */ new WeakMap();
226
419
  const urls = /* @__PURE__ */ new Set();
420
+ const revokers = [];
227
421
  const partOf = (file) => {
228
422
  let part = parts.get(file);
229
423
  if (!part) {
@@ -243,9 +437,11 @@ const CommentComposer = defineComponent({
243
437
  for (const file of previous) {
244
438
  const part = parts.get(file);
245
439
  if (part && !next.includes(file)) {
246
- URL.revokeObjectURL(part.url);
247
- urls.delete(part.url);
248
440
  parts.delete(file);
441
+ revokers.push(setTimeout(() => {
442
+ URL.revokeObjectURL(part.url);
443
+ urls.delete(part.url);
444
+ }, revokeDelay));
249
445
  }
250
446
  }
251
447
  });
@@ -303,19 +499,20 @@ const CommentComposer = defineComponent({
303
499
  () => props.layout,
304
500
  () => props.size
305
501
  ], measureLines, { flush: "post" });
306
- async function shake() {
502
+ async function shake$1() {
307
503
  const reduced = typeof window.matchMedia === "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
308
504
  shaking.value = null;
309
505
  await nextTick();
310
506
  root.value?.offsetWidth;
311
507
  shaking.value = reduced ? "flash" : "shake";
508
+ if (!reduced && root.value) shake(root.value);
312
509
  clearTimeout(timer);
313
510
  timer = setTimeout(() => shaking.value = null, 450);
314
511
  focus();
315
512
  }
316
513
  const onShake = (event) => {
317
514
  if (event instanceof CustomEvent && event.detail?.escape === true) escaped.value = true;
318
- shake();
515
+ shake$1();
319
516
  };
320
517
  onMounted(() => {
321
518
  root.value?.addEventListener(shakeEventName, onShake);
@@ -329,11 +526,12 @@ const CommentComposer = defineComponent({
329
526
  root.value?.removeEventListener(shakeEventName, onShake);
330
527
  clearTimeout(timer);
331
528
  clearTimeout(escapeTimer);
529
+ for (const revoker of revokers) clearTimeout(revoker);
332
530
  for (const url of urls) URL.revokeObjectURL(url);
333
531
  });
334
532
  expose({
335
533
  focus,
336
- shake
534
+ shake: shake$1
337
535
  });
338
536
  watch(menu, (open) => {
339
537
  const field = textarea();
@@ -356,7 +554,7 @@ const CommentComposer = defineComponent({
356
554
  if (hasContent()) {
357
555
  event.stopPropagation();
358
556
  swallowNextClick();
359
- shake();
557
+ shake$1();
360
558
  } else emit("cancel");
361
559
  });
362
560
  function checkSelection() {
@@ -445,6 +643,7 @@ const CommentComposer = defineComponent({
445
643
  }
446
644
  function keydown(event) {
447
645
  if (event.isComposing) return;
646
+ if (event.target instanceof Element && event.target.closest("[data-slot=comment-image-stack][data-fanned]")) return;
448
647
  const open = menu.value;
449
648
  const listed = open !== null && open.items.length > 0;
450
649
  if (listed && (event.key === "ArrowDown" || event.key === "ArrowUp")) {
@@ -469,7 +668,7 @@ const CommentComposer = defineComponent({
469
668
  menu.value = null;
470
669
  } else if (hasContent() && !escaped.value) {
471
670
  escaped.value = true;
472
- shake();
671
+ shake$1();
473
672
  } else discard();
474
673
  }
475
674
  async function discard() {
@@ -484,6 +683,47 @@ const CommentComposer = defineComponent({
484
683
  emit("cancel");
485
684
  }
486
685
  const hasFiles = (event) => attachmentsOn.value && (event.dataTransfer?.types.includes("Files") ?? false);
686
+ let origin;
687
+ const takeOrigin = () => {
688
+ const from = origin;
689
+ origin = void 0;
690
+ return from;
691
+ };
692
+ const UIcon = useUIComponent("UIcon");
693
+ const icons = useViteHubUIIcons();
694
+ const fileList = ({ files: list, remove }) => {
695
+ const images = [];
696
+ const others = [];
697
+ list.forEach((file, index) => {
698
+ if (file.mediaType.startsWith("image/")) images.push({
699
+ key: file.url,
700
+ name: file.filename ?? "Picture",
701
+ url: file.url
702
+ });
703
+ else others.push({
704
+ file,
705
+ index
706
+ });
707
+ });
708
+ return [h(CommentImageStack, {
709
+ disabled: props.busy,
710
+ images,
711
+ onRemove: (key) => remove(list.findIndex((file) => file.url === key)),
712
+ origin: takeOrigin
713
+ }), others.length > 0 ? h(AttachmentGroup, { "data-slot": "prompt-input-attachments" }, () => others.map(({ file, index }) => h(Attachment, {
714
+ key: file.url,
715
+ size: "xs"
716
+ }, () => [
717
+ h(AttachmentMedia, { variant: "icon" }, () => h(UIcon, { name: icons.value.file })),
718
+ h(AttachmentContent, () => h(AttachmentTitle, () => file.filename ?? file.mediaType)),
719
+ h(AttachmentActions, () => h(AttachmentAction, {
720
+ "aria-label": `Remove ${file.filename ?? "attachment"}`,
721
+ disabled: props.busy,
722
+ icon: icons.value.close,
723
+ onClick: () => remove(index)
724
+ }))
725
+ ]))) : null];
726
+ };
487
727
  return () => h("div", {
488
728
  "data-busy": props.busy ? "true" : void 0,
489
729
  "data-dirty": hasContent() ? "true" : void 0,
@@ -504,6 +744,7 @@ const CommentComposer = defineComponent({
504
744
  },
505
745
  onPasteCapture: (event) => {
506
746
  if (!attachmentsOn.value || !event.clipboardData) return;
747
+ origin = textarea();
507
748
  if (pastedFiles(event.clipboardData).some((file) => matchesAccept(file, props.accept))) event.preventDefault();
508
749
  },
509
750
  onDragover: (event) => {
@@ -518,9 +759,13 @@ const CommentComposer = defineComponent({
518
759
  dragging.value = false;
519
760
  if (!hasFiles(event)) return;
520
761
  event.preventDefault();
762
+ origin = root.value?.querySelector("[data-slot=prompt-input-group]");
521
763
  addFiles(event.dataTransfer?.files ?? []);
522
764
  focus();
523
765
  },
766
+ onChangeCapture: (event) => {
767
+ if (event.target instanceof HTMLInputElement && event.target.type === "file") origin = root.value?.querySelector("[data-slot=prompt-input-toolbar] button[aria-label='Add attachment']");
768
+ },
524
769
  ref: root
525
770
  }, [h("div", { "data-slot": "comment-composer-box" }, [
526
771
  slots.extra ? h("div", { "data-slot": "comment-composer-extra" }, slots.extra()) : null,
@@ -542,7 +787,7 @@ const CommentComposer = defineComponent({
542
787
  onSubmit: submit,
543
788
  "onUpdate:files": (next) => setFiles(files.value.filter((file) => next.includes(partOf(file)))),
544
789
  "onUpdate:modelValue": (value) => emit("update:modelValue", value)
545
- }),
790
+ }, attachmentsOn.value ? { files: fileList } : void 0),
546
791
  menu.value && menu.value.items.length === 0 ? h("div", {
547
792
  "data-slot": "comment-composer-mentions",
548
793
  "data-state": menu.value.failed ? "error" : "empty",
@@ -587,5 +832,4 @@ const CommentComposer = defineComponent({
587
832
  ])]);
588
833
  }
589
834
  });
590
- //#endregion
591
835
  export { mentionPlugin as n, mentionTag as r, CommentComposer as t };
@@ -1,11 +1,10 @@
1
- import { n as AvatarStackPerson } from "./avatar-stack-DPRFuezh.js";
2
- import { r as CommentComposerSize } from "./comment-composer-fINL5bxo.js";
3
- import { s as CommentsState, t as CommentCan } from "./comments-D8hulVPy.js";
4
- import { n as CommentAttachmentUrl } from "./comment-thread-DKJjmWN0.js";
5
- import { c as CommentUpload } from "./comment-panel-CfvdRUMX.js";
1
+ import { s as CommentsState, t as CommentCan } from "./comments-DrE9DU-E.js";
2
+ import { n as AvatarStackPerson } from "./avatar-stack-C0IKwj6g.js";
3
+ import { r as CommentComposerSize } from "./comment-composer-BI6CNJyO.js";
4
+ import { c as CommentUpload } from "./comment-panel-CEvOI3gk.js";
5
+ import { n as CommentAttachmentUrl } from "./comment-thread-DGm1cGJt.js";
6
6
  import { PropType } from "vue";
7
7
  import { CommentSubject, CommentUser, CommentsClient } from "@vite-hub/comments/client";
8
- //#region src/components/comment-layer.d.ts
9
8
  /** Where a thread opens: in a card beside its pin, or in a column of cards on the right edge of the screen. */
10
9
  type CommentPlacement = "pin" | "margin";
11
10
  declare const CommentLayer: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
@@ -172,5 +171,4 @@ declare const CommentLayer: import("vue").DefineComponent<import("vue").ExtractP
172
171
  queueFiles: boolean;
173
172
  placement: CommentPlacement;
174
173
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
175
- //#endregion
176
174
  export { CommentPlacement as n, CommentLayer as t };
@@ -1,8 +1,7 @@
1
- import { n as AvatarStackPerson } from "./avatar-stack-DPRFuezh.js";
2
- import { s as CommentsState } from "./comments-D8hulVPy.js";
3
- import { s as CommentRowSlots } from "./comment-panel-CfvdRUMX.js";
1
+ import { s as CommentsState } from "./comments-DrE9DU-E.js";
2
+ import { n as AvatarStackPerson } from "./avatar-stack-C0IKwj6g.js";
3
+ import { s as CommentRowSlots } from "./comment-panel-CEvOI3gk.js";
4
4
  import { PropType, SlotsType } from "vue";
5
- //#region src/components/comment-list.d.ts
6
5
  declare const CommentFilters: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
7
6
  comments: {
8
7
  type: PropType<CommentsState>;
@@ -58,5 +57,4 @@ declare const CommentToolbar: import("vue").DefineComponent<import("vue").Extrac
58
57
  }>> & Readonly<{}>, {
59
58
  people: AvatarStackPerson[];
60
59
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
61
- //#endregion
62
60
  export { CommentList as n, CommentToolbar as r, CommentFilters as t };
@@ -11,7 +11,10 @@
11
11
  * firmer (45%), `data-status="resolved"` makes it dashed and grey, and `data-draft="true"` is the area being drawn or
12
12
  * written on: 2px comment blue with a fill. Its `comment-mark-handle` children, with `data-corner="top-left"` and the
13
13
  * other three corners, are round handles.
14
- * - `data-leaving="true"` on a pin or an area: it shrinks and fades out in 130ms (`commentLeaveMs` of `vite-hub/ui/headless`), then the page removes it.
14
+ * - `data-leaving="true"` on a pin or an area fades it out. If the motion layer is installed, it folds a copy away
15
+ * instead. The page removes the mark after `commentLeaveMs` of `vite-hub/ui/headless`.
16
+ * A pin squashes when it is pressed, with the press of the motion layer. Its zoom and its active size are a `transform`,
17
+ * so the press adds to them.
15
18
  * The page places a pin with `left` and `top`, and an area with `left`, `top`, `width`, and `height`.
16
19
  * Commented text uses the CSS Custom Highlight API with the names `vh-comment`, `vh-comment-resolved`,
17
20
  * `vh-comment-active`, and `vh-comment-draft`.
@@ -96,9 +99,9 @@
96
99
  padding: 0;
97
100
  place-items: center;
98
101
  position: absolute;
99
- scale: var(--vh-comment-zoom, 1);
102
+ transform: scale(var(--vh-comment-zoom, 1));
100
103
  transform-origin: 0 100%;
101
- transition: scale 120ms ease-out, opacity 150ms ease-out;
104
+ transition: opacity 150ms ease-out;
102
105
  width: var(--vh-comment-pin-size);
103
106
  }
104
107
 
@@ -123,15 +126,9 @@
123
126
  position: absolute;
124
127
  }
125
128
 
126
- :is([data-slot="comment-mark-pin"], [data-slot="comment-pin"]):is(:hover, :focus-visible, [data-active="true"]) {
127
- scale: calc(var(--vh-comment-zoom, 1) * 1.06);
128
- }
129
-
130
- /* A tap must not leave the pin grown, so only a fine pointer grows it on hover. */
131
- @media not ((hover: hover) and (pointer: fine)) {
132
- :is([data-slot="comment-mark-pin"], [data-slot="comment-pin"]):hover:not(:focus-visible, [data-active="true"]) {
133
- scale: var(--vh-comment-zoom, 1);
134
- }
129
+ /* The open pin and the focused pin are larger. A pin does not move on hover. */
130
+ :is([data-slot="comment-mark-pin"], [data-slot="comment-pin"]):is(:focus-visible, [data-active="true"]) {
131
+ transform: scale(calc(var(--vh-comment-zoom, 1) * 1.06));
135
132
  }
136
133
 
137
134
  :is([data-slot="comment-mark-pin"], [data-slot="comment-pin"])[data-status="resolved"] {
@@ -188,23 +185,23 @@
188
185
  :is([data-slot="comment-mark-handle"], [data-slot="comment-layer-area-handle"])[data-corner$="left"] { left: -5px; }
189
186
  :is([data-slot="comment-mark-handle"], [data-slot="comment-layer-area-handle"])[data-corner$="right"] { right: -5px; }
190
187
 
191
- /* A mark that goes, such as the others when one comment shows on its own: it shrinks and fades. */
188
+ /* A mark that goes, such as the others when one comment shows on its own. The leave effect of the motion layer folds a
189
+ copy of it away. */
192
190
  :is([data-slot="comment-mark-pin"], [data-slot="comment-mark-area"])[data-leaving="true"],
193
191
  [data-slot="comment-layer-item"][data-leaving="true"] > * {
194
- animation: vh-comment-mark-leave 130ms cubic-bezier(0.4, 0, 1, 1) forwards;
195
192
  pointer-events: none;
196
193
  }
197
194
 
198
- [data-slot="comment-mark-area"][data-leaving="true"] {
199
- animation-name: vh-comment-mark-leave-area;
195
+ :is([data-slot="comment-mark-pin"], [data-slot="comment-mark-area"])[data-leaving="true"]:not([data-motion-leave-managed]) {
196
+ animation: vh-comment-mark-fade 130ms cubic-bezier(0.4, 0, 1, 1) forwards;
200
197
  }
201
198
 
202
- @keyframes vh-comment-mark-leave {
203
- to { opacity: 0; scale: calc(var(--vh-comment-zoom, 1) * 0.8); }
199
+ [data-slot="comment-mark-pin"][data-motion-leave-managed] {
200
+ transition: none;
204
201
  }
205
202
 
206
- @keyframes vh-comment-mark-leave-area {
207
- to { opacity: 0; scale: 0.97; }
203
+ @keyframes vh-comment-mark-fade {
204
+ to { opacity: 0; }
208
205
  }
209
206
 
210
207
  @media (prefers-reduced-motion: reduce) {
@@ -212,8 +209,7 @@
212
209
  transition: none;
213
210
  }
214
211
 
215
- :is([data-slot="comment-mark-pin"], [data-slot="comment-mark-area"])[data-leaving="true"],
216
- [data-slot="comment-layer-item"][data-leaving="true"] > * {
212
+ :is([data-slot="comment-mark-pin"], [data-slot="comment-mark-area"])[data-leaving="true"]:not([data-motion-leave-managed]) {
217
213
  animation: none;
218
214
  opacity: 0;
219
215
  }
@@ -1,8 +1,7 @@
1
- import { s as CommentsState, t as CommentCan } from "./comments-D8hulVPy.js";
2
- import { l as CommentThreadSlots, n as CommentAttachmentUrl } from "./comment-thread-DKJjmWN0.js";
1
+ import { s as CommentsState, t as CommentCan } from "./comments-DrE9DU-E.js";
2
+ import { l as CommentThreadSlots, n as CommentAttachmentUrl } from "./comment-thread-DGm1cGJt.js";
3
3
  import { PropType, SlotsType, VNode } from "vue";
4
4
  import { CommentStatus, CommentSubject, CommentThread, CommentUser, CommentsClient } from "@vite-hub/comments/client";
5
- //#region src/components/comment-panel.d.ts
6
5
  type CommentPanelVariant = "docked" | "floating";
7
6
  /** Turns files into attachment keys, such as Blob keys, before a comment or a reply is sent. */
8
7
  type CommentUpload = (files: File[]) => Promise<string[]>;
@@ -199,10 +198,9 @@ declare const CommentPanel: import("vue").DefineComponent<import("vue").ExtractP
199
198
  title: string;
200
199
  variant: CommentPanelVariant;
201
200
  people: CommentUser[];
201
+ allowEmpty: boolean;
202
202
  readOnly: boolean;
203
203
  queueFiles: boolean;
204
204
  thread: string | null;
205
- allowEmpty: boolean;
206
205
  }, SlotsType<CommentPanelSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
207
- //#endregion
208
206
  export { CommentPanelVariant as a, CommentUpload as c, CommentPanelSlots as i, CommentGroupSlotScope as n, CommentRowSlotScope as o, CommentPanel as r, CommentRowSlots as s, CommentGroup as t };
@@ -1,4 +1,4 @@
1
- //#region src/internal/comment-person.ts
1
+ // src/internal/comment-person.ts
2
2
  const displayName = (user) => user.name ?? user.id;
3
3
  function toPerson(user) {
4
4
  return {
@@ -36,5 +36,4 @@ function excerpt(body, length = 60) {
36
36
  const line = plainText(body);
37
37
  return line.length > length ? `${line.slice(0, length - 1)}…` : line;
38
38
  }
39
- //#endregion
40
39
  export { writerName as a, toPerson as i, excerpt as n, writerPerson as o, plainText as r, displayName as t };
@@ -1,6 +1,5 @@
1
1
  import { PropType } from "vue";
2
2
  import { CommentStatus, CommentUser } from "@vite-hub/comments/client";
3
- //#region src/components/comment-pin.d.ts
4
3
  declare const CommentPin: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
5
4
  /** The thread number. A draft has none. */
6
5
  n: {
@@ -60,9 +59,8 @@ declare const CommentPin: import("vue").DefineComponent<import("vue").ExtractPro
60
59
  onHover?: ((...args: any[]) => any) | undefined;
61
60
  onLeave?: ((...args: any[]) => any) | undefined;
62
61
  }>, {
63
- status: CommentStatus;
64
62
  active: boolean;
63
+ status: CommentStatus;
65
64
  draft: boolean;
66
65
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
67
- //#endregion
68
66
  export { CommentPin as t };
@@ -1,8 +1,8 @@
1
1
  import { AvatarStack } from "./parts/components/avatar-stack.js";
2
- import { a as writerName, o as writerPerson, r as plainText } from "./comment-person-CLPlW_SS.js";
3
- import { t as RelativeTime } from "./relative-time-BVmjOsYG.js";
2
+ import { t as RelativeTime } from "./relative-time-DJnw45tr.js";
3
+ import { a as writerName, o as writerPerson, r as plainText } from "./comment-person-D_IyIjXo.js";
4
4
  import { h } from "vue";
5
- //#region src/internal/comment-row.ts
5
+ // src/internal/comment-row.ts
6
6
  /** The start of a thread as plain text: its first message, else the text that it is about. */
7
7
  function threadPreview(thread) {
8
8
  const text = thread.anchor.kind === "text" ? thread.anchor.exact : "";
@@ -35,5 +35,4 @@ function threadRow(thread, options = {}) {
35
35
  ])])
36
36
  ];
37
37
  }
38
- //#endregion
39
38
  export { threadRow as n, rowSlotScope as t };
@@ -1,5 +1,4 @@
1
1
  import { PropType, VNode } from "vue";
2
- //#region src/components/comment-selection-bar.d.ts
3
2
  /** The side of the selected text that the bar sits on. */
4
3
  type CommentSelectionBarSide = "top" | "bottom";
5
4
  /**
@@ -38,5 +37,4 @@ declare const CommentSelectionBar: import("vue").DefineComponent<import("vue").E
38
37
  side: CommentSelectionBarSide;
39
38
  suggest: boolean;
40
39
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
41
- //#endregion
42
40
  export { CommentSelectionBarSide as n, CommentSelectionBar as t };