@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
@@ -0,0 +1,67 @@
1
+ import { PropType } from "vue";
2
+ /** The cursor position that `WorkspaceEditor` emits with `cursor`. Both numbers start at 1. */
3
+ export interface WorkspaceCursor {
4
+ line: number;
5
+ column: number;
6
+ }
7
+ /** The name of the language of `path`, as VS Code shows it, such as `TypeScript` for `app.ts`. */
8
+ export declare function workspaceLanguage(path: string): string;
9
+ /**
10
+ * The status line under the editor: the cursor line and column, the language of the open file, and the indentation.
11
+ * Put it in the `status` slot of `WorkspaceShell`, which makes the line 24px high.
12
+ */
13
+ export declare const WorkspaceStatus: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
14
+ /** The path of the open file. It names the language. */
15
+ path: {
16
+ required: true;
17
+ type: StringConstructor;
18
+ };
19
+ /** The cursor, from the `cursor` event of `WorkspaceEditor`. */
20
+ cursor: {
21
+ default: () => {
22
+ column: number;
23
+ line: number;
24
+ };
25
+ type: PropType<WorkspaceCursor>;
26
+ };
27
+ /** The language name. By default it comes from the file extension. */
28
+ language: {
29
+ default: undefined;
30
+ type: StringConstructor;
31
+ };
32
+ /** The indentation: a number of spaces, or `"tab"`. */
33
+ indent: {
34
+ default: number;
35
+ type: PropType<number | "tab">;
36
+ };
37
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
38
+ [key: string]: any;
39
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
40
+ /** The path of the open file. It names the language. */
41
+ path: {
42
+ required: true;
43
+ type: StringConstructor;
44
+ };
45
+ /** The cursor, from the `cursor` event of `WorkspaceEditor`. */
46
+ cursor: {
47
+ default: () => {
48
+ column: number;
49
+ line: number;
50
+ };
51
+ type: PropType<WorkspaceCursor>;
52
+ };
53
+ /** The language name. By default it comes from the file extension. */
54
+ language: {
55
+ default: undefined;
56
+ type: StringConstructor;
57
+ };
58
+ /** The indentation: a number of spaces, or `"tab"`. */
59
+ indent: {
60
+ default: number;
61
+ type: PropType<number | "tab">;
62
+ };
63
+ }>> & Readonly<{}>, {
64
+ cursor: WorkspaceCursor;
65
+ language: string;
66
+ indent: number | "tab";
67
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,73 @@
1
+ import { defineComponent, h } from "vue";
2
+ // src/workspace/workspace-status.ts
3
+ const languages = {
4
+ astro: "Astro",
5
+ cjs: "JavaScript",
6
+ css: "CSS",
7
+ html: "HTML",
8
+ js: "JavaScript",
9
+ json: "JSON",
10
+ jsonc: "JSON with Comments",
11
+ jsonl: "JSON Lines",
12
+ jsx: "JavaScript JSX",
13
+ md: "Markdown",
14
+ mdx: "MDX",
15
+ mjs: "JavaScript",
16
+ mts: "TypeScript",
17
+ svelte: "Svelte",
18
+ ts: "TypeScript",
19
+ tsx: "TypeScript JSX",
20
+ vue: "Vue"
21
+ };
22
+ /** The name of the language of `path`, as VS Code shows it, such as `TypeScript` for `app.ts`. */
23
+ function workspaceLanguage(path) {
24
+ const name = path.slice(path.lastIndexOf("/") + 1);
25
+ const dot = name.lastIndexOf(".");
26
+ const type = dot > 0 ? name.slice(dot + 1).toLowerCase() : "";
27
+ return Object.hasOwn(languages, type) ? languages[type] : "Plain Text";
28
+ }
29
+ /**
30
+ * The status line under the editor: the cursor line and column, the language of the open file, and the indentation.
31
+ * Put it in the `status` slot of `WorkspaceShell`, which makes the line 24px high.
32
+ */
33
+ const WorkspaceStatus = defineComponent({
34
+ name: "WorkspaceStatus",
35
+ props: {
36
+ /** The path of the open file. It names the language. */
37
+ path: {
38
+ required: true,
39
+ type: String
40
+ },
41
+ /** The cursor, from the `cursor` event of `WorkspaceEditor`. */
42
+ cursor: {
43
+ default: () => ({
44
+ column: 1,
45
+ line: 1
46
+ }),
47
+ type: Object
48
+ },
49
+ /** The language name. By default it comes from the file extension. */
50
+ language: {
51
+ default: void 0,
52
+ type: String
53
+ },
54
+ /** The indentation: a number of spaces, or `"tab"`. */
55
+ indent: {
56
+ default: 2,
57
+ type: [Number, String]
58
+ }
59
+ },
60
+ setup(props, { slots }) {
61
+ return () => {
62
+ const language = props.language ?? workspaceLanguage(props.path);
63
+ const indent = props.indent === "tab" ? "Tabs" : `Spaces: ${props.indent}`;
64
+ return h("div", { class: "vh-ws-status-items" }, [
65
+ h("span", { class: "vh-ws-status-cursor" }, [h("span", { "aria-hidden": "true" }, `Ln ${props.cursor.line}, Col ${props.cursor.column}`), h("span", { class: "vh-ws-sr-only" }, `Line ${props.cursor.line}, column ${props.cursor.column}`)]),
66
+ h("span", { title: language }, language),
67
+ h("span", { title: indent }, indent),
68
+ slots.default ? [h("span", { class: "vh-ws-status-spacer" }), slots.default()] : void 0
69
+ ]);
70
+ };
71
+ }
72
+ });
73
+ export { WorkspaceStatus, workspaceLanguage };
@@ -0,0 +1,2 @@
1
+ import { i as useStepModel, n as WorkspaceSteps, r as keepFocus, t as WorkspaceStep } from "../../workspace-steps-BKByX9DW.js";
2
+ export { WorkspaceStep, WorkspaceSteps, keepFocus, useStepModel };
@@ -0,0 +1,127 @@
1
+ import { r as useUIComponent } from "../../nuxt-ui-7ByUrymx.js";
2
+ import { computed, defineComponent, h, nextTick, ref } from "vue";
3
+ // src/workspace/workspace-steps.ts
4
+ /**
5
+ * The current step of `v-model:step`, from 0, kept inside the steps. Without a `step` prop the part keeps its own.
6
+ * `go(index)` moves to a step that exists and does nothing for one that does not.
7
+ */
8
+ function useStepModel(props, emit) {
9
+ const local = ref(0);
10
+ const current = computed(() => {
11
+ const last = Math.max(0, props.steps.length - 1);
12
+ return Math.min(last, Math.max(0, Math.trunc(props.step ?? local.value)));
13
+ });
14
+ function go(index) {
15
+ if (!Number.isInteger(index) || index < 0 || index >= props.steps.length || index === current.value) return;
16
+ local.value = index;
17
+ emit("update:step", index);
18
+ }
19
+ return {
20
+ current,
21
+ go
22
+ };
23
+ }
24
+ const focusable = "button:not(:disabled), a[href]";
25
+ /**
26
+ * After a move from a control inside `root`, focus the control that `pick` returns when the move removed or disabled
27
+ * the focused one. Focus that is still on a live control stays where it is.
28
+ */
29
+ function keepFocus(root, pick) {
30
+ nextTick(() => {
31
+ const element = root();
32
+ if (!element || typeof document === "undefined") return;
33
+ const active = document.activeElement;
34
+ if (!active || active === document.body || !active.isConnected || active instanceof HTMLButtonElement && active.disabled) pick([...element.querySelectorAll(focusable)])?.focus();
35
+ });
36
+ }
37
+ /**
38
+ * The steps of a lesson for the bar of a workspace: a menu with every step, the position, and Back and Next.
39
+ * Use `v-model:step`. The step is a 0-based index.
40
+ */
41
+ const WorkspaceSteps = defineComponent({
42
+ name: "WorkspaceSteps",
43
+ props: {
44
+ /** The steps of the lesson, in order. */
45
+ steps: {
46
+ required: true,
47
+ type: Array
48
+ },
49
+ /** The current step, from 0. Use `v-model:step`. */
50
+ step: {
51
+ default: void 0,
52
+ type: Number
53
+ },
54
+ /** A heading over the steps in the menu, such as the name of the lesson. */
55
+ label: {
56
+ default: void 0,
57
+ type: String
58
+ }
59
+ },
60
+ emits: { "update:step": (step) => Number.isInteger(step) },
61
+ setup(props, { emit }) {
62
+ const { current, go } = useStepModel(props, emit);
63
+ const UButton = useUIComponent("UButton");
64
+ const UDropdownMenu = useUIComponent("UDropdownMenu");
65
+ const nav = ref(null);
66
+ function move(index, other) {
67
+ go(index);
68
+ keepFocus(() => nav.value, (controls) => controls.find((control) => control.matches(other)) ?? controls[0]);
69
+ }
70
+ return () => {
71
+ const total = props.steps.length;
72
+ const index = current.value;
73
+ const title = props.steps[index]?.title ?? "";
74
+ const name = total ? `${index + 1}. ${title}` : "";
75
+ const items = props.steps.map((item, position) => ({
76
+ description: item.description,
77
+ label: `${position + 1}. ${item.title}`,
78
+ onSelect: () => go(position)
79
+ }));
80
+ return h("nav", {
81
+ "aria-label": "Steps",
82
+ class: "vh-ws-step-nav",
83
+ ref: nav
84
+ }, [
85
+ h(UDropdownMenu, {
86
+ content: { align: "start" },
87
+ items: props.label ? [[{
88
+ label: props.label,
89
+ type: "label"
90
+ }], items] : [items],
91
+ ui: { content: "w-72" }
92
+ }, () => h(UButton, {
93
+ "aria-label": `Step: ${name}`,
94
+ class: "vh-ws-step-nav-menu",
95
+ color: "neutral",
96
+ size: "sm",
97
+ trailingIcon: "i-lucide-chevron-down",
98
+ variant: "ghost"
99
+ }, () => h("span", { class: "vh-ws-step-nav-name" }, name))),
100
+ h("span", { class: "vh-ws-step-nav-count" }, total ? `Step ${index + 1} of ${total}` : ""),
101
+ h(UButton, {
102
+ "aria-label": "Previous step",
103
+ class: "vh-ws-step-nav-back",
104
+ color: "neutral",
105
+ disabled: index === 0,
106
+ icon: "i-lucide-chevron-left",
107
+ size: "sm",
108
+ square: true,
109
+ variant: "ghost",
110
+ onClick: () => move(index - 1, ".vh-ws-step-nav-next")
111
+ }),
112
+ h(UButton, {
113
+ "aria-label": "Next step",
114
+ class: "vh-ws-step-nav-next",
115
+ color: "neutral",
116
+ disabled: index >= total - 1,
117
+ icon: "i-lucide-chevron-right",
118
+ size: "sm",
119
+ square: true,
120
+ variant: "ghost",
121
+ onClick: () => move(index + 1, ".vh-ws-step-nav-back")
122
+ })
123
+ ]);
124
+ };
125
+ }
126
+ });
127
+ export { WorkspaceSteps, keepFocus, useStepModel };
@@ -0,0 +1,18 @@
1
+ /** The task of a step: what the reader does next, in a box under the step's text. */
2
+ export declare const WorkspaceTask: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
+ /** The heading of the box. */
4
+ title: {
5
+ default: string;
6
+ type: StringConstructor;
7
+ };
8
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
9
+ [key: string]: any;
10
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
11
+ /** The heading of the box. */
12
+ title: {
13
+ default: string;
14
+ type: StringConstructor;
15
+ };
16
+ }>> & Readonly<{}>, {
17
+ title: string;
18
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,19 @@
1
+ import { defineComponent, h } from "vue";
2
+ // src/workspace/workspace-task.ts
3
+ /** The task of a step: what the reader does next, in a box under the step's text. */
4
+ const WorkspaceTask = defineComponent({
5
+ name: "WorkspaceTask",
6
+ props: {
7
+ /** The heading of the box. */
8
+ title: {
9
+ default: "Try it",
10
+ type: String
11
+ } },
12
+ setup(props, { slots }) {
13
+ return () => h("div", {
14
+ class: "vh-ws-task",
15
+ role: "note"
16
+ }, [h("p", { class: "vh-ws-task-title" }, slots.title?.() ?? props.title), h("div", { class: "vh-ws-task-body" }, slots.default?.())]);
17
+ }
18
+ });
19
+ export { WorkspaceTask };
@@ -1,5 +1,4 @@
1
1
  import { PropType } from "vue";
2
- //#region src/workspace/workspace-terminal.d.ts
3
2
  /** Output chunks, optionally carrying the number of characters evicted from the start of a stream. */
4
3
  export type WorkspaceTerminalOutput = readonly string[] & {
5
4
  readonly offset?: number;
@@ -35,5 +34,4 @@ export declare const WorkspaceTerminal: import("vue").DefineComponent<import("vu
35
34
  }>, {
36
35
  label: string;
37
36
  output: WorkspaceTerminalOutput;
38
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
39
- //#endregion
37
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, h, onBeforeUnmount, onMounted, ref, watch } from "vue";
2
- //#region src/workspace/workspace-terminal.ts
2
+ // src/workspace/workspace-terminal.ts
3
3
  let colorProbe;
4
4
  /**
5
5
  * A CSS color as `#rrggbbaa`. xterm parses only hex and `rgb()` itself, and it refuses translucent colors in other
@@ -126,5 +126,4 @@ input: (data) => typeof data === "string" },
126
126
  });
127
127
  }
128
128
  });
129
- //#endregion
130
129
  export { WorkspaceTerminal };
@@ -0,0 +1,249 @@
1
+ import { WorkspaceExample } from "./workspace-examples.js";
2
+ import { a as WorkspaceTabItem, i as WorkspaceTab } from "../../workspace-shell-ChCwWPyv.js";
3
+ import { t as WorkspaceStep } from "../../workspace-steps-BKByX9DW.js";
4
+ import { ComputedRef, ExtractPropTypes, PropType, Ref, VNode } from "vue";
5
+ /** Files by project-relative path. */
6
+ export type WorkspaceFiles = Record<string, string>;
7
+ /** The line in the bar that says what the run does now. */
8
+ export interface WorkspaceRunState {
9
+ tone: "busy" | "ready" | "error";
10
+ label: string;
11
+ }
12
+ /** An item of the More menu of the bar, such as "Restart dev server". */
13
+ export interface WorkspaceMenuItem {
14
+ label: string;
15
+ icon?: string;
16
+ disabled?: boolean;
17
+ onSelect: () => void;
18
+ }
19
+ /** What a runner gets when the workspace starts it. */
20
+ export interface WorkspaceRunInput {
21
+ /** The example that this run starts with. */
22
+ example: WorkspaceExample;
23
+ /** The files to start with: the files of the example, or of a share link. */
24
+ files: WorkspaceFiles;
25
+ /** Shows an output tab, such as `"terminal"`. */
26
+ showTab: (tab: WorkspaceTab) => void;
27
+ /** Opens a file of the run in the editor, such as the file of an issue. */
28
+ show: (path: string) => void;
29
+ }
30
+ /**
31
+ * One run of the files. The workspace starts one in the setup of a component, so a run can use `onScopeDispose` to
32
+ * stop. It starts a new run when `keeps` says that an example cannot open in this one.
33
+ */
34
+ export interface WorkspaceRun {
35
+ /** The files of the run, with the edits of the reader. */
36
+ files: Readonly<Ref<WorkspaceFiles>>;
37
+ /** Writes files. `replace` removes the files that `files` does not name. */
38
+ setFiles: (files: WorkspaceFiles, options?: {
39
+ mode?: "merge" | "replace";
40
+ }) => Promise<void>;
41
+ /** Whether `example` can open in this run. `false` makes the workspace start a new run for it. */
42
+ keeps: (example: WorkspaceExample) => boolean;
43
+ /** Opens the files of an example that this run keeps. */
44
+ open: (example: WorkspaceExample, files: WorkspaceFiles) => Promise<void>;
45
+ /** The output tabs of the runner, before the tabs of the page. */
46
+ tabs: Readonly<Ref<readonly WorkspaceTabItem[]>>;
47
+ /** Renders the panel of one of `tabs`. */
48
+ panel: (tab: WorkspaceTab) => VNode | VNode[] | undefined;
49
+ /** The state line in the bar. */
50
+ state?: Readonly<Ref<WorkspaceRunState | undefined>>;
51
+ /** The items of the More menu of the bar. Without items there is no More button. */
52
+ actions?: Readonly<Ref<readonly WorkspaceMenuItem[]>>;
53
+ }
54
+ /**
55
+ * Runs the files of a `Workspace`: `webContainer()` runs an app with a dev server, and `render()` renders the files to
56
+ * a page with a function.
57
+ */
58
+ export interface WorkspaceRunner {
59
+ /** Starts a run. The workspace calls it in the setup of a component. */
60
+ start: (input: WorkspaceRunInput) => WorkspaceRun;
61
+ /** Whether this browser can run it. The workspace asks after mount. Without it, every browser can. */
62
+ supported?: () => boolean;
63
+ /** Only desktops start it on their own. Tablets start it on a tap, and phones show a card with Copy link and Download. */
64
+ desktop?: boolean;
65
+ }
66
+ /** What `useWorkspace()` and the slots get. */
67
+ export interface WorkspaceContext {
68
+ /** The files of the run, with the edits. */
69
+ files: Readonly<Ref<WorkspaceFiles>>;
70
+ /** Writes one file. */
71
+ setFile: (path: string, contents: string) => Promise<void>;
72
+ /** The paths whose contents differ from the files of the open example, sorted. */
73
+ edited: ComputedRef<readonly string[]>;
74
+ /** The open example. */
75
+ example: ComputedRef<WorkspaceExample>;
76
+ /** Opens `path` in the editor. */
77
+ show: (path: string) => void;
78
+ /** Shows an output tab, such as `"terminal"`. */
79
+ showTab: (tab: WorkspaceTab) => void;
80
+ /** Runs `action` at once when nothing is edited. Otherwise it asks the reader first, with `confirm` on the button. */
81
+ guard: (title: string, confirm: string, action: () => void) => void;
82
+ /** The runner of the workspace. */
83
+ runner: WorkspaceRunner;
84
+ /** The current run. */
85
+ run: WorkspaceRun;
86
+ }
87
+ /** The slot props of `Workspace`: the context with its refs unwrapped. */
88
+ export type WorkspaceSlotProps = Omit<WorkspaceContext, "edited" | "example" | "files"> & {
89
+ readonly edited: readonly string[];
90
+ readonly example: WorkspaceExample;
91
+ readonly files: WorkspaceFiles;
92
+ };
93
+ /** The workspace around the calling component: its files, edits, and actions. Call it in a slot of `Workspace`. */
94
+ export declare function useWorkspace(): WorkspaceContext;
95
+ /** Where the page runs: `pending` before mount, then by the viewport width. */
96
+ export type WorkspaceDevice = "pending" | "phone" | "tablet" | "desktop";
97
+ /**
98
+ * The device of the page, and whether the browser can run `runner`, known after mount. Desktops are 64rem wide or
99
+ * more, and tablets 48rem. Use it to place the workspace, as a page with a lesson next to it does.
100
+ */
101
+ export declare function useWorkspaceDevice(runner?: Pick<WorkspaceRunner, "supported">): {
102
+ device: Ref<WorkspaceDevice, WorkspaceDevice>;
103
+ supported: Ref<boolean | undefined, boolean | undefined>;
104
+ };
105
+ /**
106
+ * A complete workspace: the bar, the file tree, the editor, the output, and with `steps` the guide of a lesson. The
107
+ * runner runs the files: `webContainer()` runs an app in the browser, and `render()` renders the files to a page. It
108
+ * tracks edits, asks before it discards them, copies share links, and downloads zips.
109
+ */
110
+ export declare const Workspace: import("vue").DefineComponent<ExtractPropTypes<{
111
+ examples: {
112
+ required: true;
113
+ type: PropType<readonly WorkspaceExample[]>;
114
+ };
115
+ runner: {
116
+ required: true;
117
+ type: PropType<WorkspaceRunner>;
118
+ };
119
+ example: {
120
+ default: undefined;
121
+ type: StringConstructor;
122
+ };
123
+ selected: {
124
+ default: undefined;
125
+ type: StringConstructor;
126
+ };
127
+ steps: {
128
+ default: () => never[];
129
+ type: PropType<readonly WorkspaceStep[]>;
130
+ };
131
+ step: {
132
+ default: undefined;
133
+ type: NumberConstructor;
134
+ };
135
+ guide: {
136
+ default: undefined;
137
+ type: PropType<"top" | "side">;
138
+ };
139
+ tabs: {
140
+ default: () => never[];
141
+ type: PropType<readonly WorkspaceTabItem[]>;
142
+ };
143
+ share: {
144
+ default: boolean;
145
+ type: BooleanConstructor;
146
+ };
147
+ name: {
148
+ default: string;
149
+ type: StringConstructor;
150
+ };
151
+ start: {
152
+ default: boolean;
153
+ type: BooleanConstructor;
154
+ };
155
+ label: {
156
+ default: string;
157
+ type: StringConstructor;
158
+ };
159
+ open: {
160
+ default: boolean;
161
+ type: BooleanConstructor;
162
+ };
163
+ reset: {
164
+ default: undefined;
165
+ type: PropType<(files: WorkspaceFiles, example: WorkspaceExample) => WorkspaceFiles>;
166
+ };
167
+ }>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
168
+ [key: string]: any;
169
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
170
+ "update:example": (id: string) => boolean;
171
+ "update:selected": (path: string) => boolean;
172
+ "update:step": (step: number) => boolean;
173
+ "update:open": (open: boolean) => boolean;
174
+ }, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
175
+ examples: {
176
+ required: true;
177
+ type: PropType<readonly WorkspaceExample[]>;
178
+ };
179
+ runner: {
180
+ required: true;
181
+ type: PropType<WorkspaceRunner>;
182
+ };
183
+ example: {
184
+ default: undefined;
185
+ type: StringConstructor;
186
+ };
187
+ selected: {
188
+ default: undefined;
189
+ type: StringConstructor;
190
+ };
191
+ steps: {
192
+ default: () => never[];
193
+ type: PropType<readonly WorkspaceStep[]>;
194
+ };
195
+ step: {
196
+ default: undefined;
197
+ type: NumberConstructor;
198
+ };
199
+ guide: {
200
+ default: undefined;
201
+ type: PropType<"top" | "side">;
202
+ };
203
+ tabs: {
204
+ default: () => never[];
205
+ type: PropType<readonly WorkspaceTabItem[]>;
206
+ };
207
+ share: {
208
+ default: boolean;
209
+ type: BooleanConstructor;
210
+ };
211
+ name: {
212
+ default: string;
213
+ type: StringConstructor;
214
+ };
215
+ start: {
216
+ default: boolean;
217
+ type: BooleanConstructor;
218
+ };
219
+ label: {
220
+ default: string;
221
+ type: StringConstructor;
222
+ };
223
+ open: {
224
+ default: boolean;
225
+ type: BooleanConstructor;
226
+ };
227
+ reset: {
228
+ default: undefined;
229
+ type: PropType<(files: WorkspaceFiles, example: WorkspaceExample) => WorkspaceFiles>;
230
+ };
231
+ }>> & Readonly<{
232
+ "onUpdate:open"?: ((open: boolean) => any) | undefined;
233
+ "onUpdate:step"?: ((step: number) => any) | undefined;
234
+ "onUpdate:example"?: ((id: string) => any) | undefined;
235
+ "onUpdate:selected"?: ((path: string) => any) | undefined;
236
+ }>, {
237
+ name: string;
238
+ label: string;
239
+ reset: (files: WorkspaceFiles, example: WorkspaceExample) => WorkspaceFiles;
240
+ start: boolean;
241
+ open: boolean;
242
+ step: number;
243
+ selected: string;
244
+ steps: readonly WorkspaceStep[];
245
+ tabs: readonly WorkspaceTabItem[];
246
+ example: string;
247
+ guide: "top" | "side";
248
+ share: boolean;
249
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;