@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.
- package/README.md +102 -76
- package/dist/andromeeda-DaUPZ4_A.js +147 -0
- package/dist/announce-B0DLwflT.js +31 -0
- package/dist/{attachments-BzTwqRTU.js → attachments-DgwoQZKY.js} +3 -5
- package/dist/aurora-x-B5RPZ9i5.js +162 -0
- package/dist/{avatar-stack-DPRFuezh.d.ts → avatar-stack-C0IKwj6g.d.ts} +1 -3
- package/dist/ayu-dark-DXTaGA7I.js +137 -0
- package/dist/ayu-light-BCYi80Fe.js +137 -0
- package/dist/ayu-mirage-CgbXz-N5.js +137 -0
- package/dist/catppuccin-frappe-MV2xzv44.js +266 -0
- package/dist/catppuccin-latte-CL6jjlVD.js +266 -0
- package/dist/catppuccin-macchiato-Bp6oZJVK.js +266 -0
- package/dist/catppuccin-mocha-DOHrQ4dw.js +266 -0
- package/dist/{choices-input-ByXJvDn1.d.ts → choices-input-BUf-QqGj.d.ts} +0 -2
- package/dist/{code-view-DsU-xzic.js → code-view-Cg4nyTNA.js} +6 -8
- package/dist/{colors-BghReA9C-CjF9gnmy.js → colors-BghReA9C-DEq4bhEP.js} +1 -2
- package/dist/{comment-attachments-C4yNbcx5.js → comment-attachments-CMpYOJod.js} +1 -2
- package/dist/{comment-composer-fINL5bxo.d.ts → comment-composer-BI6CNJyO.d.ts} +3 -5
- package/dist/{comment-composer-jYv2ULNP.js → comment-composer-CzU7DdfD.js} +260 -16
- package/dist/{comment-layer-C_sbPIR5.d.ts → comment-layer-DyVstrs-.d.ts} +5 -7
- package/dist/{comment-list-BcSaLngS.d.ts → comment-list-CSK5o-Ua.d.ts} +3 -5
- package/dist/comment-marks.css +18 -22
- package/dist/{comment-panel-CfvdRUMX.d.ts → comment-panel-CEvOI3gk.d.ts} +3 -5
- package/dist/{comment-person-CLPlW_SS.js → comment-person-D_IyIjXo.js} +1 -2
- package/dist/{comment-pin-DHOdRvUw.d.ts → comment-pin-C5UeLPTa.d.ts} +1 -3
- package/dist/{comment-row-Bn3nr8l5.js → comment-row-DPMWI5Z0.js} +3 -4
- package/dist/{comment-selection-bar-CyVBNYl9.d.ts → comment-selection-bar-CVuS-FNL.d.ts} +0 -2
- package/dist/comment-send-DPzV9B8S.js +275 -0
- package/dist/comment-send-MmxFsOQf.d.ts +23 -0
- package/dist/comment-send.css +267 -0
- package/dist/comment-thread-CbPtoi8-.js +796 -0
- package/dist/{comment-thread-DKJjmWN0.d.ts → comment-thread-DGm1cGJt.d.ts} +4 -8
- package/dist/{comment-visibility-DsVuVndP.d.ts → comment-visibility-CYctacNx.d.ts} +0 -2
- package/dist/{comments-D0d26ghV.js → comments-C0OdHh_F.js} +5 -8
- package/dist/{comments-D8hulVPy.d.ts → comments-DrE9DU-E.d.ts} +1 -3
- package/dist/{comments-context-C2lOZyQ5.js → comments-context-CrjhleVA.js} +4 -5
- package/dist/{config-Dk67emQt.js → config-DztmAYYn.js} +9 -3
- package/dist/{config-DgxBW013.d.ts → config-xL4EBeXw.d.ts} +11 -4
- package/dist/dark-plus-CXEBSjk4.js +148 -0
- package/dist/dracula-Bvyz6eCo.js +165 -0
- package/dist/dracula-soft-a9indxAQ.js +115 -0
- package/dist/{draw-DzSmD7uo-Dwz8zoH2.js → draw-DzSmD7uo-Cb7s9kxJ.js} +359 -708
- package/dist/drop-field-CNZgwFVO.js +162 -0
- package/dist/{editor-C_wt4RRV.js → editor-CGiEVOnB.js} +44 -6
- package/dist/effects-g4QucvgO.js +2955 -0
- package/dist/{error-diagnostics-SXtnk6bz.js → error-diagnostics-BlgA9rI2.js} +1 -2
- package/dist/everforest-dark-9sVAxG7I.js +99 -0
- package/dist/everforest-light-BocTn_Hd.js +99 -0
- package/dist/{file-tree-C4OYgbV-.js → file-tree-CRFIdtzw.js} +58 -116
- package/dist/{file-tree-DlT9RGhu.d.ts → file-tree-DOtkeBaq.d.ts} +0 -14
- package/dist/{format-orwcdZL_.js → format-Bc9m7-r0.js} +1 -2
- package/dist/{getSingularPatch-Dsb8EgxR.js → getSingularPatch-C7LmmBrW.js} +375 -79
- package/dist/github-dark-BO9SXswM.js +142 -0
- package/dist/github-dark-default-XB_RHfBI.js +90 -0
- package/dist/github-dark-dimmed-BoGxaWUQ.js +137 -0
- package/dist/github-dark-high-contrast-B3X6t2fG.js +137 -0
- package/dist/github-light-D7VHHlUH.js +142 -0
- package/dist/github-light-default-BuDsGtcR.js +137 -0
- package/dist/github-light-high-contrast-GodZiAwh.js +137 -0
- package/dist/gruvbox-dark-hard-CU4LuKJc.js +140 -0
- package/dist/gruvbox-dark-medium-DjAsuXuH.js +140 -0
- package/dist/gruvbox-dark-soft-D3Zttj6R.js +140 -0
- package/dist/gruvbox-light-hard-4M_9onwE.js +140 -0
- package/dist/gruvbox-light-medium-D9QwS4kQ.js +140 -0
- package/dist/gruvbox-light-soft-DhYcfQql.js +140 -0
- package/dist/{handlers-DMl-Na3x.js → handlers-CnbkvXjX.js} +1 -2
- package/dist/headless.d.ts +4 -4
- package/dist/headless.js +1 -1
- package/dist/highlights-C2AbEdDI.js +2630 -0
- package/dist/hold-to-delete-BSMrpE-i.d.ts +49 -0
- package/dist/hold-to-delete-Cludb56v.js +433 -0
- package/dist/horizon-bright-B9u59onx.js +97 -0
- package/dist/horizon-tItY9ATR.js +97 -0
- package/dist/houston-BqKrKNQv.js +207 -0
- package/dist/icon-XZaCUZTG.d.ts +29 -0
- package/dist/{image-preview-C9tdkmEj.js → image-preview-DrLXrHpp.js} +3 -4
- package/dist/{index-CNY1uNTh.d.ts → index-B2cbt3py.d.ts} +3945 -2445
- package/dist/{index-BYRFQfCd.d.ts → index-B_PSX-5h.d.ts} +5 -11
- package/dist/index.d.ts +35 -32
- package/dist/index.js +71 -73
- package/dist/install-Ba9mkkqI.js +16 -0
- package/dist/kanagawa-dragon-BH1K3aMw.js +159 -0
- package/dist/kanagawa-lotus-C-4JB2io.js +159 -0
- package/dist/kanagawa-wave-DTQqNe5k.js +159 -0
- package/dist/laserwave-BkV0uIaG.js +84 -0
- package/dist/light-plus-CxYgEz7U.js +149 -0
- package/dist/list-DUTAo0uC.js +270 -0
- package/dist/loader-CYMEjzwc.js +79 -0
- package/dist/{markdown-editor-CMbNZOdN.js → markdown-editor-3gY9MLvy.js} +237 -38
- package/dist/{markdown-editor-wQF0yD5o.d.ts → markdown-editor-B7gD60tp.d.ts} +0 -6
- package/dist/markdown-editor.d.ts +1 -5
- package/dist/markdown-editor.js +2 -2
- package/dist/markdown-renderer-DFS1vf1h.js +26578 -0
- package/dist/material-theme-Xdm37UUJ.js +105 -0
- package/dist/material-theme-darker-Blaz0cgN.js +105 -0
- package/dist/material-theme-lighter-BddVxBVA.js +105 -0
- package/dist/material-theme-ocean-C4qhfFHi.js +105 -0
- package/dist/material-theme-palenight-ChHDqoiA.js +105 -0
- package/dist/{message-scroller-jrYN9dG9.d.ts → message-scroller-a6qaYHno.d.ts} +2 -4
- package/dist/min-dark-DpGSNjaW.js +125 -0
- package/dist/min-light-BMfJUsU2.js +122 -0
- package/dist/monokai-DW19E-zg.js +162 -0
- package/dist/motion/core.d.ts +4 -0
- package/dist/motion/core.js +11 -0
- package/dist/motion-core-DNl7TR1T.d.ts +402 -0
- package/dist/motion.d.ts +14 -0
- package/dist/motion.js +13 -0
- package/dist/night-owl-B7Of8ee9.js +188 -0
- package/dist/night-owl-light-Vu9tTNpS.js +189 -0
- package/dist/nord-CDzJumeN.js +128 -0
- package/dist/nuxt-ui-7ByUrymx.js +43 -0
- package/dist/nuxt.d.ts +1 -7
- package/dist/nuxt.js +16 -11
- package/dist/one-dark-pro-hS_sNo5p.js +124 -0
- package/dist/one-light-CD4ItzSC.js +153 -0
- package/dist/opt-out-D66l60sg.js +205 -0
- package/dist/parts/components/agent-session.d.ts +1 -3
- package/dist/parts/components/agent-session.js +3 -4
- package/dist/parts/components/attachment.d.ts +2 -4
- package/dist/parts/components/attachment.js +3 -4
- package/dist/parts/components/avatar-stack.d.ts +1 -1
- package/dist/parts/components/avatar-stack.js +4 -4
- package/dist/parts/components/bubble.d.ts +2 -4
- package/dist/parts/components/bubble.js +2 -3
- package/dist/parts/components/chat-message.d.ts +1 -3
- package/dist/parts/components/chat-message.js +1 -2
- package/dist/parts/components/chat-session.d.ts +2 -4
- package/dist/parts/components/chat-session.js +1 -2
- package/dist/parts/components/chat.d.ts +1 -3
- package/dist/parts/components/chat.js +4 -5
- package/dist/parts/components/code-block.d.ts +2 -4
- package/dist/parts/components/code-block.js +3 -4
- package/dist/parts/components/code-view.d.ts +1 -3
- package/dist/parts/components/code-view.js +1 -2
- package/dist/parts/components/comment-composer.d.ts +1 -1
- package/dist/parts/components/comment-composer.js +1 -2
- package/dist/parts/components/comment-layer.d.ts +1 -1
- package/dist/parts/components/comment-layer.js +28 -11
- package/dist/parts/components/comment-list.d.ts +1 -1
- package/dist/parts/components/comment-list.js +13 -9
- package/dist/parts/components/comment-panel.d.ts +1 -1
- package/dist/parts/components/comment-panel.js +27 -14
- package/dist/parts/components/comment-pin.d.ts +1 -1
- package/dist/parts/components/comment-pin.js +2 -3
- package/dist/parts/components/comment-selection-bar.d.ts +1 -1
- package/dist/parts/components/comment-selection-bar.js +4 -4
- package/dist/parts/components/comment-send.d.ts +2 -0
- package/dist/parts/components/comment-send.js +1 -0
- package/dist/parts/components/comment-thread.d.ts +1 -1
- package/dist/parts/components/comment-thread.js +2 -597
- package/dist/parts/components/comments.d.ts +9 -8
- package/dist/parts/components/comments.js +7 -6
- package/dist/parts/components/connection-status.d.ts +1 -3
- package/dist/parts/components/connection-status.js +1 -2
- package/dist/parts/components/copy-button.d.ts +14 -6
- package/dist/parts/components/copy-button.js +225 -1
- package/dist/parts/components/device-frame.d.ts +3 -5
- package/dist/parts/components/device-frame.js +1 -2
- package/dist/parts/components/drop-field.d.ts +67 -0
- package/dist/parts/components/drop-field.js +76 -0
- package/dist/parts/components/file-tree.d.ts +1 -1
- package/dist/parts/components/file-tree.js +1 -2
- package/dist/parts/components/filter-search.d.ts +2 -4
- package/dist/parts/components/filter-search.js +2 -3
- package/dist/parts/components/hold-to-delete.d.ts +80 -0
- package/dist/parts/components/hold-to-delete.js +75 -0
- package/dist/parts/components/markdown-editor.d.ts +1 -1
- package/dist/parts/components/markdown-editor.js +1 -2
- package/dist/parts/components/markdown-renderer.d.ts +1 -3
- package/dist/parts/components/markdown-renderer.js +1 -23077
- package/dist/parts/components/markdown.d.ts +1 -3
- package/dist/parts/components/markdown.js +2 -3
- package/dist/parts/components/marker.d.ts +2 -4
- package/dist/parts/components/marker.js +2 -3
- package/dist/parts/components/message-parts.d.ts +1 -3
- package/dist/parts/components/message-parts.js +14 -7
- package/dist/parts/components/message.d.ts +1 -3
- package/dist/parts/components/message.js +2 -3
- package/dist/parts/components/motion-list.d.ts +40 -0
- package/dist/parts/components/motion-list.js +41 -0
- package/dist/parts/components/motion.d.ts +122 -0
- package/dist/parts/components/motion.js +171 -0
- package/dist/parts/components/patch-parsers.d.ts +1 -1
- package/dist/parts/components/patch-parsers.js +1 -2
- package/dist/parts/components/progress.d.ts +39 -0
- package/dist/parts/components/progress.js +53 -0
- package/dist/parts/components/prompt-input.d.ts +5 -7
- package/dist/parts/components/prompt-input.js +5 -6
- package/dist/parts/components/relative-time.d.ts +1 -3
- package/dist/parts/components/relative-time.js +1 -2
- package/dist/parts/components/status.d.ts +1 -3
- package/dist/parts/components/status.js +1 -2
- package/dist/parts/components/sync-status.d.ts +1 -3
- package/dist/parts/components/sync-status.js +3 -3
- package/dist/parts/components/tool-list.d.ts +2 -4
- package/dist/parts/components/tool-list.js +2 -3
- package/dist/parts/components/trace-run.d.ts +2 -4
- package/dist/parts/components/trace-run.js +4 -5
- package/dist/parts/components/trace.d.ts +2 -4
- package/dist/parts/components/trace.js +2 -3
- package/dist/parts/composables/attachments.d.ts +1 -3
- package/dist/parts/composables/attachments.js +1 -2
- package/dist/parts/composables/highlighted-code.d.ts +1 -3
- package/dist/parts/composables/highlighted-code.js +1 -2
- package/dist/parts/headless/choices-input.d.ts +1 -1
- package/dist/parts/headless/choices-input.js +3 -4
- package/dist/parts/headless/comment-visibility.d.ts +1 -1
- package/dist/parts/headless/comment-visibility.js +1 -2
- package/dist/parts/headless/comments.d.ts +1 -1
- package/dist/parts/headless/comments.js +1 -2
- package/dist/parts/headless/message-scroller.d.ts +1 -1
- package/dist/parts/headless/message-scroller.js +2 -3
- package/dist/parts/playground/paths.d.ts +1 -3
- package/dist/parts/playground/paths.js +1 -2
- package/dist/parts/playground/share.d.ts +34 -2
- package/dist/parts/playground/share.js +1 -2
- package/dist/parts/playground/zip.d.ts +1 -3
- package/dist/parts/playground/zip.js +2 -3
- package/dist/parts/workspace/browser-support-notice.d.ts +2 -4
- package/dist/parts/workspace/browser-support-notice.js +13 -6
- package/dist/parts/workspace/codemirror.d.ts +10 -3
- package/dist/parts/workspace/codemirror.js +40 -8
- package/dist/parts/workspace/connect-panel.d.ts +2 -4
- package/dist/parts/workspace/connect-panel.js +2 -3
- package/dist/parts/workspace/connect-store.d.ts +1 -3
- package/dist/parts/workspace/connect-store.js +1 -2
- package/dist/parts/workspace/file-icons.d.ts +14 -0
- package/dist/parts/workspace/file-icons.js +81 -0
- package/dist/parts/workspace/icons.d.ts +2 -2
- package/dist/parts/workspace/icons.js +2 -2
- package/dist/parts/workspace/runners/render.d.ts +24 -0
- package/dist/parts/workspace/runners/render.js +123 -0
- package/dist/parts/workspace/runners/web-container.d.ts +27 -0
- package/dist/parts/workspace/runners/web-container.js +185 -0
- package/dist/parts/workspace/workspace-bar.d.ts +49 -0
- package/dist/parts/workspace/workspace-bar.js +50 -0
- package/dist/parts/workspace/workspace-boot-status.d.ts +1 -2
- package/dist/parts/workspace/workspace-boot-status.js +2 -3
- package/dist/parts/workspace/workspace-editor-head.d.ts +45 -0
- package/dist/parts/workspace/workspace-editor-head.js +65 -0
- package/dist/parts/workspace/workspace-editor.d.ts +18 -3
- package/dist/parts/workspace/workspace-editor.js +30 -5
- package/dist/parts/workspace/workspace-examples.d.ts +72 -0
- package/dist/parts/workspace/workspace-examples.js +71 -0
- package/dist/parts/workspace/workspace-file-link.d.ts +33 -0
- package/dist/parts/workspace/workspace-file-link.js +38 -0
- package/dist/parts/workspace/workspace-file-tree.d.ts +9 -11
- package/dist/parts/workspace/workspace-file-tree.js +28 -22
- package/dist/parts/workspace/workspace-guide.d.ts +50 -0
- package/dist/parts/workspace/workspace-guide.js +90 -0
- package/dist/parts/workspace/workspace-issues.d.ts +44 -0
- package/dist/parts/workspace/workspace-issues.js +48 -0
- package/dist/parts/workspace/workspace-preview.d.ts +1 -3
- package/dist/parts/workspace/workspace-preview.js +2 -3
- package/dist/parts/workspace/workspace-shell.d.ts +2 -88
- package/dist/parts/workspace/workspace-shell.js +132 -80
- package/dist/parts/workspace/workspace-sidebar.d.ts +73 -0
- package/dist/parts/workspace/workspace-sidebar.js +131 -0
- package/dist/parts/workspace/workspace-start.d.ts +45 -0
- package/dist/parts/workspace/workspace-start.js +59 -0
- package/dist/parts/workspace/workspace-status.d.ts +67 -0
- package/dist/parts/workspace/workspace-status.js +73 -0
- package/dist/parts/workspace/workspace-steps.d.ts +2 -0
- package/dist/parts/workspace/workspace-steps.js +127 -0
- package/dist/parts/workspace/workspace-task.d.ts +18 -0
- package/dist/parts/workspace/workspace-task.js +19 -0
- package/dist/parts/workspace/workspace-terminal.d.ts +1 -3
- package/dist/parts/workspace/workspace-terminal.js +1 -2
- package/dist/parts/workspace/workspace.d.ts +249 -0
- package/dist/parts/workspace/workspace.js +664 -0
- package/dist/{payload-text-sjkYAwvw.js → payload-text-DQNRbJY5.js} +1 -2
- package/dist/{pierre-code-view-NE35tkmR.js → pierre-code-view-C49BVDrc.js} +11333 -6718
- package/dist/pierre-dark-BtKHt2e4.js +166 -0
- package/dist/pierre-dark-CXW3KeKO.js +5 -0
- package/dist/pierre-dark-protanopia-deuteranopia-CS0Gs25Q.js +166 -0
- package/dist/pierre-dark-protanopia-deuteranopia-DajNv_A3.js +3 -0
- package/dist/pierre-dark-soft-BUFoeBEf.js +3 -0
- package/dist/pierre-dark-soft-D__0FtYP.js +166 -0
- package/dist/pierre-dark-tritanopia-C6fHROmA.js +166 -0
- package/dist/pierre-dark-tritanopia-oa3gpgIR.js +3 -0
- package/dist/pierre-dark-vibrant-COXpyAHb.js +166 -0
- package/dist/pierre-dark-vibrant-CYRHyDoW.js +3 -0
- package/dist/pierre-light-BD28C_vh.js +166 -0
- package/dist/pierre-light-BN0rL1e5.js +5 -0
- package/dist/pierre-light-protanopia-deuteranopia-CYsDHJt0.js +3 -0
- package/dist/pierre-light-protanopia-deuteranopia-CwWH1xGL.js +166 -0
- package/dist/pierre-light-soft-BkKY4pMj.js +166 -0
- package/dist/pierre-light-soft-F2QIpNbb.js +3 -0
- package/dist/pierre-light-tritanopia-BbKKIkua.js +3 -0
- package/dist/pierre-light-tritanopia-Mpubahl7.js +166 -0
- package/dist/pierre-light-vibrant-CdV9Besm.js +3 -0
- package/dist/pierre-light-vibrant-x11J3_aO.js +166 -0
- package/dist/plastic-BQnXkmvK.js +137 -0
- package/dist/playground.d.ts +1 -1
- package/dist/poimandres-DEfG-8RI.js +124 -0
- package/dist/progress-DL9k-ERG.js +265 -0
- package/dist/red-BfKrAjYG.js +169 -0
- package/dist/registry-DAIjCjWd.js +77 -0
- package/dist/{relative-time-BVmjOsYG.js → relative-time-DJnw45tr.js} +5 -8
- package/dist/ring-BN4d8vtw.js +173 -0
- package/dist/{rolldown-runtime-C9mWXvCC.js → rolldown-runtime-CahUhzF3.js} +2 -3
- package/dist/rose-pine-D0rhGGFg.js +136 -0
- package/dist/rose-pine-dawn-7jVaYUiD.js +136 -0
- package/dist/rose-pine-moon-CFyS0Mvu.js +136 -0
- package/dist/runtime/nuxt-plugin.d.ts +0 -2
- package/dist/runtime/nuxt-plugin.js +3 -4
- package/dist/{sankey-CAYwt82B-D4uDQoMR.js → sankey-CAYwt82B-BAAk7WkJ.js} +147 -151
- package/dist/shiki-CbfEu_Az.js +607 -0
- package/dist/slack-dark-Bv-KFSBD.js +87 -0
- package/dist/slack-ochin-Dg2BAv1D.js +107 -0
- package/dist/{slot-part-Doic71uh.js → slot-part-BWHvQ3mK.js} +1 -2
- package/dist/snazzy-light-sYDdR9rx.js +93 -0
- package/dist/solarized-dark-COt2tTmN.js +160 -0
- package/dist/solarized-light-BJrwFarZ.js +160 -0
- package/dist/stream-tokenizer-ByC3l0HQ.js +263 -0
- package/dist/styles.css +590 -573
- package/dist/synthwave-84-NUDBykTM.js +410 -0
- package/dist/{temml-BilSAAws.js → temml-m3ad3bfq.js} +2 -3
- package/dist/text-BWzZFnGY.js +822 -0
- package/dist/theme.d.ts +44 -3
- package/dist/theme.js +23 -9
- package/dist/themes-DKugPHlg.js +323 -0
- package/dist/tokyo-night-DD3B2QcO.js +153 -0
- package/dist/travel-CwVhU_GS.js +180 -0
- package/dist/tween-Dv3IIIQG.js +61 -0
- package/dist/{types-Dj7vp0lZ.d.ts → types-Ceh7h7NT.d.ts} +1 -3
- package/dist/vesper-oVQYrv8Y.js +99 -0
- package/dist/visual-copy-CHHBfJ6O.js +14 -0
- package/dist/vite.d.ts +1 -3
- package/dist/vite.js +13 -3
- package/dist/vitesse-black-D84DQZAP.js +196 -0
- package/dist/vitesse-dark-CMZ6olk_.js +196 -0
- package/dist/vitesse-light-D9d8hLOY.js +196 -0
- package/dist/{vue-DGstVdGn.js → vue-BlknIGIm.js} +43 -34
- package/dist/{vue-BDmSCtay.js → vue-kCdzBu0N.js} +4 -7
- package/dist/workspace-shell-ChCwWPyv.d.ts +110 -0
- package/dist/workspace-steps-BKByX9DW.d.ts +70 -0
- package/dist/workspace.d.ts +16 -5
- package/dist/workspace.js +16 -3
- package/package.json +66 -55
- package/dist/copy-button-CRN3kmSD.js +0 -253
- package/dist/icon-swap.css +0 -69
- package/dist/nuxt-ui-DSQFzq3s.js +0 -38
- package/dist/parts/playground/highlight.d.ts +0 -5
- package/dist/parts/playground/highlight.js +0 -23
- package/dist/parts/playground/playground-render.d.ts +0 -126
- package/dist/parts/playground/playground-render.js +0 -356
- package/dist/parts/workspace/playground-container.d.ts +0 -192
- package/dist/parts/workspace/playground-container.js +0 -603
- package/dist/pierre-dark-CzUmjETS.js +0 -6
- package/dist/pierre-dark-protanopia-deuteranopia-C35UMuvO.js +0 -4
- package/dist/pierre-dark-soft-Bb-4-biO.js +0 -4
- package/dist/pierre-dark-tritanopia-CIJISGWF.js +0 -4
- package/dist/pierre-dark-vibrant-8oZzB3gw.js +0 -4
- package/dist/pierre-light-Dn6E0sWv.js +0 -6
- package/dist/pierre-light-protanopia-deuteranopia-u0U7N4Hn.js +0 -4
- package/dist/pierre-light-soft-BCU6fuhO.js +0 -4
- package/dist/pierre-light-tritanopia-3c8Yx3co.js +0 -4
- package/dist/pierre-light-vibrant-Cwh332o_.js +0 -4
- package/dist/share-DM4eNy4q.d.ts +0 -37
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { a as onEachFrame, t as isMotionOff, u as prefersReducedMotion } from "./opt-out-D66l60sg.js";
|
|
2
|
+
// src/motion/drop-field.ts
|
|
3
|
+
const gap = 14;
|
|
4
|
+
const reach = 110;
|
|
5
|
+
const lean = 3;
|
|
6
|
+
const powerRate = .15;
|
|
7
|
+
const dotRate = .2;
|
|
8
|
+
const carriesFiles = (event) => [...event.dataTransfer?.types ?? []].includes("Files");
|
|
9
|
+
const rate = (perFrame, seconds) => 1 - (1 - perFrame) ** (seconds * 60);
|
|
10
|
+
/**
|
|
11
|
+
* The drop field of docs/design/motion.md: "Files are dragged in". A grid of dots behind the content of `surface` leans
|
|
12
|
+
* toward the dragged file and rests again when it leaves or drops. It wraps the native file drop of `field`: the drag
|
|
13
|
+
* events, `dropEffect`, and `onFiles`. A click or a key that opens a file picker stays with the field's own controls.
|
|
14
|
+
*
|
|
15
|
+
* The dots use `--vh-drop-dot`, or the text color of the surface. Under reduced motion and inside `data-motion="none"`
|
|
16
|
+
* the dots stay still; `data-over` still marks the field, so its colors change.
|
|
17
|
+
*/
|
|
18
|
+
function createDropField(field, options = {}) {
|
|
19
|
+
const surface = options.surface ?? field;
|
|
20
|
+
const accepts = options.accepts ?? carriesFiles;
|
|
21
|
+
const canvas = document.createElement("canvas");
|
|
22
|
+
canvas.dataset.part = "dots";
|
|
23
|
+
canvas.setAttribute("aria-hidden", "true");
|
|
24
|
+
Object.assign(canvas.style, {
|
|
25
|
+
height: "100%",
|
|
26
|
+
inset: "0",
|
|
27
|
+
pointerEvents: "none",
|
|
28
|
+
position: "absolute",
|
|
29
|
+
width: "100%",
|
|
30
|
+
zIndex: "-1"
|
|
31
|
+
});
|
|
32
|
+
if (getComputedStyle(surface).position === "static") surface.style.position = "relative";
|
|
33
|
+
surface.style.isolation = "isolate";
|
|
34
|
+
surface.prepend(canvas);
|
|
35
|
+
const context = canvas.getContext("2d");
|
|
36
|
+
let dots = [];
|
|
37
|
+
let pointer = {
|
|
38
|
+
x: -999,
|
|
39
|
+
y: -999
|
|
40
|
+
};
|
|
41
|
+
let over = false;
|
|
42
|
+
let depth = 0;
|
|
43
|
+
let power = 0;
|
|
44
|
+
let stop;
|
|
45
|
+
const still = () => prefersReducedMotion() || isMotionOff(surface);
|
|
46
|
+
function build() {
|
|
47
|
+
dots = [];
|
|
48
|
+
for (let y = 10; y < surface.clientHeight; y += gap) for (let x = 10; x < surface.clientWidth; x += gap) dots.push({
|
|
49
|
+
x,
|
|
50
|
+
y,
|
|
51
|
+
pull: 0
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
function draw(seconds) {
|
|
55
|
+
if (!context) return false;
|
|
56
|
+
const ratio = devicePixelRatio || 1;
|
|
57
|
+
const width = surface.clientWidth;
|
|
58
|
+
const height = surface.clientHeight;
|
|
59
|
+
if (canvas.width !== Math.round(width * ratio) || canvas.height !== Math.round(height * ratio)) {
|
|
60
|
+
canvas.width = Math.round(width * ratio);
|
|
61
|
+
canvas.height = Math.round(height * ratio);
|
|
62
|
+
}
|
|
63
|
+
context.setTransform(ratio, 0, 0, ratio, 0, 0);
|
|
64
|
+
context.clearRect(0, 0, width, height);
|
|
65
|
+
const style = getComputedStyle(surface);
|
|
66
|
+
context.fillStyle = style.getPropertyValue("--vh-drop-dot").trim() || style.color;
|
|
67
|
+
const target = over ? 1 : 0;
|
|
68
|
+
const quiet = still();
|
|
69
|
+
power += (target - power) * rate(powerRate, seconds);
|
|
70
|
+
let moving = false;
|
|
71
|
+
for (const dot of dots) {
|
|
72
|
+
const distance = Math.hypot(dot.x - pointer.x, dot.y - pointer.y);
|
|
73
|
+
const want = quiet ? 0 : power * Math.max(0, 1 - distance / reach) ** 2;
|
|
74
|
+
dot.pull += (want - dot.pull) * rate(dotRate, seconds);
|
|
75
|
+
if (Math.abs(want - dot.pull) > .002) moving = true;
|
|
76
|
+
const shift = quiet ? 0 : dot.pull * lean;
|
|
77
|
+
const angle = Math.atan2(pointer.y - dot.y, pointer.x - dot.x);
|
|
78
|
+
context.globalAlpha = .16 + dot.pull * .7;
|
|
79
|
+
context.beginPath();
|
|
80
|
+
context.arc(dot.x + Math.cos(angle) * shift, dot.y + Math.sin(angle) * shift, .9 + dot.pull * 1.9, 0, Math.PI * 2);
|
|
81
|
+
context.fill();
|
|
82
|
+
}
|
|
83
|
+
context.globalAlpha = 1;
|
|
84
|
+
return moving || Math.abs(power - target) > .01;
|
|
85
|
+
}
|
|
86
|
+
function kick() {
|
|
87
|
+
if (stop) return;
|
|
88
|
+
stop = onEachFrame((seconds) => {
|
|
89
|
+
if (draw(seconds)) return true;
|
|
90
|
+
stop = void 0;
|
|
91
|
+
return false;
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
function setOver(next) {
|
|
95
|
+
if (next === over) return;
|
|
96
|
+
over = next;
|
|
97
|
+
if (next) field.dataset.over = "";
|
|
98
|
+
else delete field.dataset.over;
|
|
99
|
+
kick();
|
|
100
|
+
}
|
|
101
|
+
function locate(event) {
|
|
102
|
+
const box = surface.getBoundingClientRect();
|
|
103
|
+
pointer = {
|
|
104
|
+
x: event.clientX - box.left,
|
|
105
|
+
y: event.clientY - box.top
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
const onEnter = (event) => {
|
|
109
|
+
if (!accepts(event)) return;
|
|
110
|
+
event.preventDefault();
|
|
111
|
+
depth++;
|
|
112
|
+
locate(event);
|
|
113
|
+
setOver(true);
|
|
114
|
+
};
|
|
115
|
+
const onOver = (event) => {
|
|
116
|
+
if (!accepts(event)) return;
|
|
117
|
+
event.preventDefault();
|
|
118
|
+
if (event.dataTransfer) event.dataTransfer.dropEffect = "copy";
|
|
119
|
+
locate(event);
|
|
120
|
+
setOver(true);
|
|
121
|
+
kick();
|
|
122
|
+
};
|
|
123
|
+
const onLeave = (event) => {
|
|
124
|
+
if (!accepts(event)) return;
|
|
125
|
+
depth = Math.max(0, depth - 1);
|
|
126
|
+
if (!depth) setOver(false);
|
|
127
|
+
};
|
|
128
|
+
const onDrop = (event) => {
|
|
129
|
+
if (!accepts(event)) return;
|
|
130
|
+
event.preventDefault();
|
|
131
|
+
depth = 0;
|
|
132
|
+
setOver(false);
|
|
133
|
+
options.onFiles?.([...event.dataTransfer?.files ?? []], event);
|
|
134
|
+
};
|
|
135
|
+
field.addEventListener("dragenter", onEnter);
|
|
136
|
+
field.addEventListener("dragover", onOver);
|
|
137
|
+
field.addEventListener("dragleave", onLeave);
|
|
138
|
+
field.addEventListener("drop", onDrop);
|
|
139
|
+
const resize = typeof ResizeObserver === "function" ? new ResizeObserver(() => {
|
|
140
|
+
build();
|
|
141
|
+
draw(0);
|
|
142
|
+
}) : void 0;
|
|
143
|
+
resize?.observe(surface);
|
|
144
|
+
build();
|
|
145
|
+
draw(0);
|
|
146
|
+
return {
|
|
147
|
+
get over() {
|
|
148
|
+
return over;
|
|
149
|
+
},
|
|
150
|
+
destroy() {
|
|
151
|
+
stop?.();
|
|
152
|
+
resize?.disconnect();
|
|
153
|
+
field.removeEventListener("dragenter", onEnter);
|
|
154
|
+
field.removeEventListener("dragover", onOver);
|
|
155
|
+
field.removeEventListener("dragleave", onLeave);
|
|
156
|
+
field.removeEventListener("drop", onDrop);
|
|
157
|
+
delete field.dataset.over;
|
|
158
|
+
canvas.remove();
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
export { createDropField as t };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { n as editorHandlersKey, t as createEditorHandlers } from "./handlers-
|
|
4
|
-
import {
|
|
1
|
+
import { a as useViteHubUIIcons } from "./config-DztmAYYn.js";
|
|
2
|
+
import { t as createMotionList } from "./list-DUTAo0uC.js";
|
|
3
|
+
import { n as editorHandlersKey, t as createEditorHandlers } from "./handlers-CnbkvXjX.js";
|
|
4
|
+
import { r as useUIComponent } from "./nuxt-ui-7ByUrymx.js";
|
|
5
|
+
import { computed, defineComponent, h, inject, onBeforeUnmount, onMounted, ref, shallowRef } from "vue";
|
|
5
6
|
import { Menu, MenuContent, MenuGroup, MenuGroupLabel, MenuItem, MenuItemIcon, MenuSeparator, MenuTrigger } from "@ui-sdk/vue/menu";
|
|
6
7
|
import { flip, offset, shift } from "@floating-ui/dom";
|
|
7
8
|
import DragHandle from "@tiptap/extension-drag-handle-vue-3";
|
|
@@ -11,7 +12,7 @@ import { Toggle, ToggleIcon } from "@ui-sdk/vue/toggle";
|
|
|
11
12
|
import { Toolbar, ToolbarButton, ToolbarGroup, ToolbarSeparator } from "@ui-sdk/vue/toolbar";
|
|
12
13
|
import { Tooltip, TooltipContent, TooltipShortcut, TooltipTrigger } from "@ui-sdk/vue/tooltip";
|
|
13
14
|
import { TriggerMenu, TriggerMenuContent, TriggerMenuGroup, TriggerMenuGroupLabel, TriggerMenuItem, TriggerMenuItemIcon, TriggerMenuList, TriggerMenuSeparator, TriggerMenuStatus } from "@ui-sdk/vue/trigger-menu";
|
|
14
|
-
|
|
15
|
+
// src/ui-sdk/editor.ts
|
|
15
16
|
/**
|
|
16
17
|
* The editor parts on ui-sdk: Nuxt UI's `UEditorToolbar`, `UEditorSuggestionMenu`, and `UEditorDragHandle`, with the
|
|
17
18
|
* props, slots, and events that ViteHub's editors use. Positioning at the selection and the block, and dragging blocks,
|
|
@@ -481,6 +482,36 @@ const UEditorSuggestionMenu = defineComponent({
|
|
|
481
482
|
}
|
|
482
483
|
});
|
|
483
484
|
/**
|
|
485
|
+
* Moves the drag handle to each new place with the list mover of the motion layer, as a neighbor of a list moves. The
|
|
486
|
+
* drag handle extension places it with `left` and `top`. A handle that was hidden shows at its new place at once.
|
|
487
|
+
*/
|
|
488
|
+
function followPlace(element) {
|
|
489
|
+
const parent = element.parentElement;
|
|
490
|
+
if (!parent) return () => {};
|
|
491
|
+
const list = createMotionList(parent, { items: () => [element] });
|
|
492
|
+
const read = () => ({
|
|
493
|
+
place: `${element.style.left} ${element.style.top}`,
|
|
494
|
+
shown: element.style.visibility !== "hidden"
|
|
495
|
+
});
|
|
496
|
+
let last = read();
|
|
497
|
+
list.measure();
|
|
498
|
+
const observer = new MutationObserver(() => {
|
|
499
|
+
const next = read();
|
|
500
|
+
if (next.place === last.place && next.shown === last.shown) return;
|
|
501
|
+
if (next.shown && last.shown) list.play();
|
|
502
|
+
last = next;
|
|
503
|
+
list.measure();
|
|
504
|
+
});
|
|
505
|
+
observer.observe(element, {
|
|
506
|
+
attributes: true,
|
|
507
|
+
attributeFilter: ["style"]
|
|
508
|
+
});
|
|
509
|
+
return () => {
|
|
510
|
+
observer.disconnect();
|
|
511
|
+
list.destroy();
|
|
512
|
+
};
|
|
513
|
+
}
|
|
514
|
+
/**
|
|
484
515
|
* Nuxt UI's `UEditorDragHandle`: a handle beside the block under the pointer, which drags the block to move it. A press
|
|
485
516
|
* selects the block and emits `nodeChange`. The default slot replaces the button and gets `onClick`, which selects the
|
|
486
517
|
* block and returns it, and `ui.handle()`, the class of a handle button.
|
|
@@ -542,6 +573,13 @@ const UEditorDragHandle = defineComponent({
|
|
|
542
573
|
props.ui.handle,
|
|
543
574
|
options?.class
|
|
544
575
|
].filter(Boolean).join(" ") };
|
|
576
|
+
const handle = ref();
|
|
577
|
+
let stopFollowing;
|
|
578
|
+
onMounted(() => {
|
|
579
|
+
const element = handle.value?.$el;
|
|
580
|
+
if (element instanceof HTMLElement) stopFollowing = followPlace(element);
|
|
581
|
+
});
|
|
582
|
+
onBeforeUnmount(() => stopFollowing?.());
|
|
545
583
|
const computePositionConfig = {
|
|
546
584
|
middleware: [
|
|
547
585
|
offset(({ rects }) => ({
|
|
@@ -557,6 +595,7 @@ const UEditorDragHandle = defineComponent({
|
|
|
557
595
|
return () => h(BlockHandle, {
|
|
558
596
|
class: ["vh-editor-drag-handle", props.ui.root].filter(Boolean).join(" "),
|
|
559
597
|
computePositionConfig,
|
|
598
|
+
ref: handle,
|
|
560
599
|
"data-slot": "editor-drag-handle",
|
|
561
600
|
editor: props.editor,
|
|
562
601
|
nested: props.nested,
|
|
@@ -578,5 +617,4 @@ const UEditorDragHandle = defineComponent({
|
|
|
578
617
|
}));
|
|
579
618
|
}
|
|
580
619
|
});
|
|
581
|
-
//#endregion
|
|
582
620
|
export { UEditorDragHandle, UEditorSuggestionMenu, UEditorToolbar };
|