@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,356 +0,0 @@
1
- import { n as useCopy } from "../../copy-button-CRN3kmSD.js";
2
- import { icon } from "../workspace/icons.js";
3
- import { decodePlaygroundLink, encodePlaygroundLink, playgroundUrl, readPlaygroundHash } from "./share.js";
4
- import { downloadZip } from "./zip.js";
5
- import { computed, defineComponent, h, onBeforeUnmount, onMounted, ref, shallowRef, useId } from "vue";
6
- //#region src/playground/playground-render.ts
7
- const debounce = 200;
8
- const invalidLink = "This link is cut off or changed, so the playground shows an example.";
9
- const tooLong = "This playground is too big for a link. Download it as a zip.";
10
- const noLinks = "This browser cannot write share links. Download the files as a zip.";
11
- const blockedClipboard = "The browser blocked the clipboard. The link is in the address bar.";
12
- function plainPreviewDocument(html) {
13
- return `<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><style>:root{color-scheme:light}body{margin:0;padding:1.5rem;font:1rem/1.6 system-ui,sans-serif}</style></head><body>${html}</body></html>`;
14
- }
15
- /**
16
- * The preview runs in a sandboxed frame with its own origin, so the page cannot read its scroll position. This script
17
- * sends the position to the page, and goes back to the last position after each render.
18
- */
19
- function keepScroll(document, top) {
20
- const script = `<script>(()=>{const y=${Math.round(top)};const go=()=>scrollTo(0,y);go();addEventListener("load",go);addEventListener("scroll",()=>parent.postMessage({vhPlaygroundScroll:scrollY},"*"),{passive:true})})()<\/script>`;
21
- const end = document.lastIndexOf("</body>");
22
- return end === -1 ? document + script : document.slice(0, end) + script + document.slice(end);
23
- }
24
- function scrollFrom(data) {
25
- if (!data || typeof data !== "object" || !("vhPlaygroundScroll" in data)) return void 0;
26
- return typeof data.vhPlaygroundScroll === "number" ? data.vhPlaygroundScroll : void 0;
27
- }
28
- function sameFiles(a, b) {
29
- const paths = Object.keys(a);
30
- return paths.length === Object.keys(b).length && paths.every((path) => a[path] === b[path]);
31
- }
32
- function groupPresets(presets) {
33
- const groups = /* @__PURE__ */ new Map();
34
- for (const preset of presets) groups.set(preset.group, [...groups.get(preset.group) ?? [], preset]);
35
- return [...groups];
36
- }
37
- /**
38
- * A playground that renders files in the page: editors on one side and the preview on the other. The state is a set
39
- * of files, kept in the URL hash as a share link of `@vite-hub/ui/playground`.
40
- */
41
- const PlaygroundRender = defineComponent({
42
- name: "PlaygroundRender",
43
- props: {
44
- /** The examples. A share link names one of them as its template. */
45
- presets: {
46
- required: true,
47
- type: Array
48
- },
49
- /** The id of the preset that opens when the URL has no link. Defaults to the first preset. */
50
- preset: {
51
- default: void 0,
52
- type: String
53
- },
54
- /** The editor tabs, one file each. */
55
- panes: {
56
- required: true,
57
- type: Array
58
- },
59
- /** Renders the files to HTML. The playground calls it 200 ms after the last edit and drops a result that is out of date. */
60
- render: {
61
- required: true,
62
- type: Function
63
- },
64
- /** Shiki languages that color the panes. They load after the first render. Without them, the panes are plain text. */
65
- languages: {
66
- default: void 0,
67
- type: Array
68
- },
69
- /** Wraps the rendered HTML in the document of the preview, with its stylesheets and theme. Defaults to a plain page. */
70
- previewDocument: {
71
- default: plainPreviewDocument,
72
- type: Function
73
- }
74
- },
75
- emits: {
76
- /** The files opened from the URL hash, or from the opening preset when the URL has no link. */
77
- "load": (_event) => true,
78
- /** Another preset opened: the reader picked it, or a link names it. */
79
- "preset-change": (_event) => true
80
- },
81
- setup(props, { emit, expose, slots }) {
82
- const presetById = (id) => props.presets.find((preset) => preset.id === id);
83
- const opening = () => presetById(props.preset) ?? props.presets[0];
84
- const files = shallowRef({ ...opening()?.files });
85
- const template = ref(opening()?.id);
86
- const base = computed(() => presetById(template.value));
87
- const edited = computed(() => !!base.value && !sameFiles(files.value, base.value.files));
88
- const active = ref(0);
89
- const issues = ref([]);
90
- const notice = ref();
91
- const { copy, copied } = useCopy({ duration: 1500 });
92
- const highlight = shallowRef();
93
- const frame = ref(null);
94
- const confirm = ref(null);
95
- const confirmId = useId();
96
- const stopped = new AbortController();
97
- let timer;
98
- let runs = 0;
99
- let loads = 0;
100
- let writes = 0;
101
- let scrollTop = 0;
102
- let written;
103
- function invalidate() {
104
- clearTimeout(timer);
105
- runs++;
106
- writes++;
107
- loads++;
108
- written = void 0;
109
- }
110
- async function run() {
111
- const current = ++runs;
112
- const snapshot = files.value;
113
- try {
114
- const result = await props.render(snapshot);
115
- if (current !== runs || stopped.signal.aborted) return;
116
- issues.value = result.issues ?? [];
117
- if (frame.value) frame.value.srcdoc = keepScroll(props.previewDocument(result.html, snapshot), scrollTop);
118
- } catch (error) {
119
- if (current === runs && !stopped.signal.aborted) issues.value = [{ message: error instanceof Error ? error.message : String(error) }];
120
- }
121
- }
122
- async function writeHash() {
123
- const current = ++writes;
124
- const code = await encodePlaygroundLink({
125
- template: template.value,
126
- files: files.value
127
- }, base.value?.files).catch(() => void 0);
128
- if (current !== writes || stopped.signal.aborted) return false;
129
- if (code === void 0) {
130
- notice.value = noLinks;
131
- return false;
132
- }
133
- written = code;
134
- history.replaceState(history.state, "", playgroundUrl(location.pathname + location.search, code));
135
- return true;
136
- }
137
- function setFile(path, contents) {
138
- invalidate();
139
- files.value = {
140
- ...files.value,
141
- [path]: contents
142
- };
143
- notice.value = void 0;
144
- timer = setTimeout(async () => {
145
- await Promise.all([writeHash(), run()]);
146
- }, debounce);
147
- }
148
- function open(preset, nextFiles) {
149
- invalidate();
150
- const changed = template.value !== preset?.id;
151
- template.value = preset?.id;
152
- files.value = nextFiles;
153
- if (changed) emit("preset-change", {
154
- files: nextFiles,
155
- preset: preset?.id
156
- });
157
- }
158
- async function load() {
159
- const code = readPlaygroundHash(location.hash);
160
- if (code && code === written) return;
161
- invalidate();
162
- const current = loads;
163
- const state = code ? await decodePlaygroundLink(code, props.presets) : void 0;
164
- if (current !== loads || stopped.signal.aborted) return;
165
- if (state) open(presetById(state.template), state.files);
166
- else open(opening(), { ...opening()?.files });
167
- notice.value = code && !state ? invalidLink : void 0;
168
- emit("load", {
169
- files: files.value,
170
- preset: template.value
171
- });
172
- await run();
173
- }
174
- async function pick(preset) {
175
- notice.value = void 0;
176
- scrollTop = 0;
177
- open(preset, { ...preset.files });
178
- await Promise.all([writeHash(), run()]);
179
- }
180
- async function copyLink() {
181
- if (!await writeHash()) return;
182
- if (location.href.length > 16e3) {
183
- notice.value = tooLong;
184
- return;
185
- }
186
- if (!await copy(location.href)) notice.value = blockedClipboard;
187
- }
188
- onMounted(() => {
189
- addEventListener("hashchange", load, { signal: stopped.signal });
190
- addEventListener("message", (event) => {
191
- const top = event.source === frame.value?.contentWindow ? scrollFrom(event.data) : void 0;
192
- if (top !== void 0) scrollTop = top;
193
- }, { signal: stopped.signal });
194
- const languages = props.languages;
195
- load().then(async () => {
196
- if (!languages?.length || stopped.signal.aborted) return;
197
- const color = await import("./highlight.js").then((module) => module.createHighlight(languages)).catch(() => void 0);
198
- if (!stopped.signal.aborted) highlight.value = color;
199
- });
200
- });
201
- onBeforeUnmount(() => {
202
- stopped.abort();
203
- clearTimeout(timer);
204
- });
205
- expose({ setFile });
206
- const paints = /* @__PURE__ */ new Map();
207
- function paint(pane, text) {
208
- const color = highlight.value;
209
- let cached = paints.get(pane.file);
210
- if (!cached || cached.text !== text || cached.color !== color) {
211
- cached = {
212
- color,
213
- html: color && pane.language ? color(text, pane.language) : void 0,
214
- text
215
- };
216
- paints.set(pane.file, cached);
217
- }
218
- return cached.html === void 0 ? h("div", {
219
- "aria-hidden": "true",
220
- class: "vh-pg-paint"
221
- }, [h("pre", text)]) : h("div", {
222
- "aria-hidden": "true",
223
- class: "vh-pg-paint",
224
- innerHTML: cached.html
225
- });
226
- }
227
- function editor(pane) {
228
- const value = files.value[pane.file] ?? "";
229
- const custom = pane.slot ? slots[pane.slot] : void 0;
230
- if (custom) return custom({
231
- files: files.value,
232
- pane,
233
- setFile,
234
- value
235
- });
236
- return [h("div", { class: "vh-pg-code" }, [paint(pane, `${value}\n `), h("textarea", {
237
- "aria-label": pane.label,
238
- autocapitalize: "off",
239
- autocomplete: "off",
240
- spellcheck: false,
241
- value,
242
- onInput: (event) => setFile(pane.file, event.target.value)
243
- })])];
244
- }
245
- return () => h("div", { class: "vh-pg" }, [
246
- props.presets.length > 1 ? h("nav", {
247
- "aria-label": "Examples",
248
- class: "vh-pg-presets"
249
- }, groupPresets(props.presets).map(([group, presets]) => h("div", { class: "vh-pg-group" }, [group ? h("p", { class: "vh-pg-group-title" }, slots.group?.({
250
- group,
251
- presets
252
- }) ?? group) : void 0, h("ul", presets.map((preset) => h("li", { key: preset.id }, [h("button", {
253
- "aria-current": template.value === preset.id && !edited.value ? "true" : void 0,
254
- "class": "vh-pg-preset",
255
- "data-focus-inset": "",
256
- "data-preset": preset.id,
257
- "type": "button",
258
- "onClick": () => pick(preset)
259
- }, slots.preset?.({
260
- active: template.value === preset.id,
261
- preset
262
- }) ?? preset.label)])))]))) : void 0,
263
- h("div", { class: "vh-pg-editor" }, [
264
- h("div", { class: "vh-pg-bar" }, [props.panes.length > 1 ? h("div", {
265
- "aria-label": "Files",
266
- class: "vh-pg-tabs",
267
- role: "group"
268
- }, props.panes.map((pane, index) => h("button", {
269
- "aria-pressed": String(active.value === index),
270
- "class": "vh-pg-tab",
271
- "data-focus-inset": "",
272
- "type": "button",
273
- "onClick": () => {
274
- active.value = index;
275
- }
276
- }, pane.label))) : h("span", { class: "vh-pg-title" }, props.panes[0]?.label), h("div", { class: "vh-pg-actions" }, [
277
- slots.toolbar?.({
278
- files: files.value,
279
- preset: base.value,
280
- setFile
281
- }),
282
- edited.value ? h("button", {
283
- "aria-label": "Reset to the example",
284
- "class": "vh-ws-icon-button vh-pg-icon-button",
285
- "data-action": "reset",
286
- "title": "Reset to the example",
287
- "type": "button",
288
- "onClick": () => confirm.value?.showModal()
289
- }, [icon("rotate-ccw")]) : void 0,
290
- h("button", {
291
- "aria-label": "Download as a zip",
292
- "class": "vh-ws-icon-button vh-pg-icon-button",
293
- "data-action": "download",
294
- "title": "Download as a zip",
295
- "type": "button",
296
- "onClick": () => downloadZip(files.value, template.value ?? "playground")
297
- }, [icon("download")]),
298
- h("button", {
299
- "class": "vh-ws-button",
300
- "data-action": "copy-link",
301
- "type": "button",
302
- "onClick": copyLink
303
- }, [icon(copied.value ? "check" : "link"), copied.value ? "Copied" : "Copy link"])
304
- ])]),
305
- ...props.panes.map((pane, index) => h("div", {
306
- key: pane.file,
307
- "class": "vh-pg-pane",
308
- "data-file": pane.file,
309
- "hidden": active.value !== index
310
- }, editor(pane))),
311
- notice.value ? h("p", {
312
- class: "vh-pg-notice",
313
- role: "status"
314
- }, notice.value) : void 0,
315
- h("ul", {
316
- "aria-label": "Issues",
317
- "aria-live": "polite",
318
- "class": "vh-pg-issues",
319
- "hidden": issues.value.length === 0
320
- }, issues.value.map((issue) => h("li", [issue.line === void 0 ? void 0 : h("span", { class: "vh-pg-issue-line" }, `Line ${issue.line}`), issue.message]))),
321
- h("dialog", {
322
- "aria-labelledby": confirmId,
323
- "class": "vh-pg-confirm",
324
- "ref": confirm,
325
- onClose: (event) => {
326
- const dialog = event.target;
327
- if (dialog.returnValue === "reset" && base.value) pick(base.value);
328
- dialog.returnValue = "";
329
- }
330
- }, [h("form", { method: "dialog" }, [
331
- h("p", {
332
- class: "vh-pg-confirm-title",
333
- id: confirmId
334
- }, "Reset to the example?"),
335
- h("p", { class: "vh-ws-muted" }, "Your changes will be lost."),
336
- h("div", { class: "vh-ws-actions" }, [h("button", {
337
- autofocus: true,
338
- class: "vh-ws-button",
339
- value: "cancel"
340
- }, "Cancel"), h("button", {
341
- class: "vh-ws-button vh-ws-button--primary",
342
- value: "reset"
343
- }, "Reset")])
344
- ])])
345
- ]),
346
- h("iframe", {
347
- class: "vh-pg-preview",
348
- ref: frame,
349
- sandbox: "allow-scripts allow-popups",
350
- title: "Preview"
351
- })
352
- ]);
353
- }
354
- });
355
- //#endregion
356
- export { PlaygroundRender };
@@ -1,192 +0,0 @@
1
- import { t as PlaygroundFiles } from "../../share-DM4eNy4q.js";
2
- import { WorkspaceLayout, WorkspaceTab, WorkspaceTabItem } from "./workspace-shell.js";
3
- import { PropType, VNode } from "vue";
4
- import { Connect } from "@vite-hub/web-container/connect";
5
- import { UseWebContainerReturn } from "@vite-hub/web-container/vue";
6
- //#region src/workspace/playground-container.d.ts
7
- /** An app that the container can open. A playground has a menu of them. A tutorial has one, with the files of its step. */
8
- export interface PlaygroundContainerTemplate {
9
- /** The id in share links and in `update:template`. */
10
- id: string;
11
- label: string;
12
- description?: string;
13
- files: PlaygroundFiles;
14
- /** The file that the editor opens first. Defaults to the first file. */
15
- open?: string;
16
- /** The path that the preview opens. Defaults to `/`. */
17
- preview?: string;
18
- /**
19
- * Downloads a `node_modules` snapshot for these files, such as `() => fetchSnapshot(parts)`. Without it, the
20
- * workspace runs `npm install`. Give templates with the same dependencies the same function, so the container
21
- * switches between them without a new boot.
22
- */
23
- snapshot?: () => Promise<Uint8Array | ArrayBuffer>;
24
- }
25
- /** What the slots get, and what `context` gives to code outside the container. */
26
- export interface PlaygroundContext {
27
- workspace: UseWebContainerReturn;
28
- /** The template that is open. */
29
- template: PlaygroundContainerTemplate;
30
- /** Paths whose contents differ from the files of the open template, sorted. */
31
- edited: readonly string[];
32
- /** Opens `path` in the editor. */
33
- show: (path: string) => void;
34
- /** Shows a tab, such as `"terminal"`. */
35
- showTab: (tab: WorkspaceTab) => void;
36
- /** Runs `action` at once when nothing is edited. Otherwise it asks the reader first, with `confirm` on the button. */
37
- guard: (title: string, confirm: string, action: () => void) => void;
38
- }
39
- /** Where the page runs: `pending` before mount, then by the viewport width. */
40
- export type PlaygroundDevice = "pending" | "phone" | "tablet" | "desktop";
41
- /**
42
- * The device of the page and the WebContainer support of the browser, known after mount. Desktops are 64rem wide or
43
- * more, and tablets 48rem. Use it to place the container, as a page with a lesson next to it does.
44
- */
45
- export declare function usePlaygroundDevice(): {
46
- device: import("vue").Ref<PlaygroundDevice, PlaygroundDevice>;
47
- supported: import("vue").Ref<boolean | undefined, boolean | undefined>;
48
- };
49
- /**
50
- * A complete browser playground: the toolbar, file tree, editor, preview, and dev server console of an app that runs
51
- * in a WebContainer. It tracks edits, restarts the dev server, asks before it discards edits, copies share links,
52
- * downloads zips, and shows the workspace only on devices that can run it.
53
- */
54
- export declare const PlaygroundContainer: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
55
- /** The apps to open. More than one shows a template menu. */
56
- templates: {
57
- required: true;
58
- type: PropType<readonly PlaygroundContainerTemplate[]>;
59
- };
60
- /** The id of the template to open first, such as from `?template=`. Defaults to the first template. */
61
- template: {
62
- default: undefined;
63
- type: StringConstructor;
64
- };
65
- /** `playground` puts the preview at the side. `tutorial` puts it in a tab under the editor. */
66
- layout: {
67
- default: string;
68
- type: PropType<WorkspaceLayout>;
69
- };
70
- /** What the reader calls this, in lowercase, such as `"playground"`. It names the Open button and the notices. */
71
- label: {
72
- default: string;
73
- type: StringConstructor;
74
- };
75
- /** The start of the zip name. The template id follows it, as in `vitehub-kv.zip`. */
76
- name: {
77
- default: string;
78
- type: StringConstructor;
79
- };
80
- /** The port of the dev server, such as `3000` for `vite --port 3000`. Other servers do not become the preview. */
81
- port: {
82
- default: undefined;
83
- type: NumberConstructor;
84
- };
85
- /** The providers of `defineConnect()`. Their tokens reach the dev server as environment variables. */
86
- connect: {
87
- default: undefined;
88
- type: PropType<Connect>;
89
- };
90
- /** More tabs next to Console and Connect. Each one shows the slot with the name of its `value`. */
91
- tabs: {
92
- default: () => never[];
93
- type: PropType<readonly WorkspaceTabItem[]>;
94
- };
95
- /** Copy link and Download in the toolbar, and opening `#code=` links. */
96
- share: {
97
- default: boolean;
98
- type: BooleanConstructor;
99
- };
100
- /** The file in the editor. Use `v-model:selected`. */
101
- selected: {
102
- default: undefined;
103
- type: StringConstructor;
104
- };
105
- /** Whether the workspace shows. Desktops show it on their own. Set it to `true` to show it on a tablet. Use `v-model:open`. */
106
- open: {
107
- default: boolean;
108
- type: BooleanConstructor;
109
- };
110
- }>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
111
- [key: string]: any;
112
- }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
113
- /** The reader opened a template, or discarded the changes to one. */
114
- "update:template": (id: string) => boolean;
115
- "update:selected": (path: string) => boolean;
116
- "update:open": (open: boolean) => boolean;
117
- /** A workspace booted. It gives the context that the slots get, for code outside the container. */
118
- context: (context: PlaygroundContext) => true;
119
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
120
- /** The apps to open. More than one shows a template menu. */
121
- templates: {
122
- required: true;
123
- type: PropType<readonly PlaygroundContainerTemplate[]>;
124
- };
125
- /** The id of the template to open first, such as from `?template=`. Defaults to the first template. */
126
- template: {
127
- default: undefined;
128
- type: StringConstructor;
129
- };
130
- /** `playground` puts the preview at the side. `tutorial` puts it in a tab under the editor. */
131
- layout: {
132
- default: string;
133
- type: PropType<WorkspaceLayout>;
134
- };
135
- /** What the reader calls this, in lowercase, such as `"playground"`. It names the Open button and the notices. */
136
- label: {
137
- default: string;
138
- type: StringConstructor;
139
- };
140
- /** The start of the zip name. The template id follows it, as in `vitehub-kv.zip`. */
141
- name: {
142
- default: string;
143
- type: StringConstructor;
144
- };
145
- /** The port of the dev server, such as `3000` for `vite --port 3000`. Other servers do not become the preview. */
146
- port: {
147
- default: undefined;
148
- type: NumberConstructor;
149
- };
150
- /** The providers of `defineConnect()`. Their tokens reach the dev server as environment variables. */
151
- connect: {
152
- default: undefined;
153
- type: PropType<Connect>;
154
- };
155
- /** More tabs next to Console and Connect. Each one shows the slot with the name of its `value`. */
156
- tabs: {
157
- default: () => never[];
158
- type: PropType<readonly WorkspaceTabItem[]>;
159
- };
160
- /** Copy link and Download in the toolbar, and opening `#code=` links. */
161
- share: {
162
- default: boolean;
163
- type: BooleanConstructor;
164
- };
165
- /** The file in the editor. Use `v-model:selected`. */
166
- selected: {
167
- default: undefined;
168
- type: StringConstructor;
169
- };
170
- /** Whether the workspace shows. Desktops show it on their own. Set it to `true` to show it on a tablet. Use `v-model:open`. */
171
- open: {
172
- default: boolean;
173
- type: BooleanConstructor;
174
- };
175
- }>> & Readonly<{
176
- "onUpdate:open"?: ((open: boolean) => any) | undefined;
177
- onContext?: ((context: PlaygroundContext) => any) | undefined;
178
- "onUpdate:selected"?: ((path: string) => any) | undefined;
179
- "onUpdate:template"?: ((id: string) => any) | undefined;
180
- }>, {
181
- name: string;
182
- label: string;
183
- template: string;
184
- open: boolean;
185
- layout: WorkspaceLayout;
186
- selected: string;
187
- connect: Connect;
188
- tabs: readonly WorkspaceTabItem[];
189
- port: number;
190
- share: boolean;
191
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
192
- //#endregion