@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,263 @@
|
|
|
1
|
+
import { _ as releaseHighlighterType, g as acquireHighlighterType, h as HighlighterDisposedError, i as lineChangesOf, o as hastToHtml, r as renderTokenLines } from "./pierre-code-view-C49BVDrc.js";
|
|
2
|
+
// ../../node_modules/.pnpm/@pierre+diffs@1.7.1_@shikijs+themes@4.6.0_react-dom@19.2.8_react@19.2.6__react@19.2.6/node_modules/@pierre/diffs/dist/utils/tokensToHtml.js
|
|
3
|
+
/**
|
|
4
|
+
* Renders existing tokens as a pre/code HTML block without highlighting again.
|
|
5
|
+
* Pass the original source to resolve numeric decoration offsets.
|
|
6
|
+
*/
|
|
7
|
+
function tokensToHtml(source, result, options, cacheHtmlStyles = false) {
|
|
8
|
+
const lineOffsets = [0];
|
|
9
|
+
if (options.decorations?.some((item) => typeof item.start === "number" || typeof item.end === "number") === true) for (let index = source.indexOf("\n"); index !== -1; index = source.indexOf("\n", index + 1)) lineOffsets.push(index + 1);
|
|
10
|
+
const code = {
|
|
11
|
+
type: "element",
|
|
12
|
+
tagName: "code",
|
|
13
|
+
properties: {},
|
|
14
|
+
children: []
|
|
15
|
+
};
|
|
16
|
+
const lines = renderTokenLines(result.tokens, {
|
|
17
|
+
decorations: options.decorations,
|
|
18
|
+
mergeWhitespaces: options.mergeWhitespaces,
|
|
19
|
+
lineOffsets,
|
|
20
|
+
cacheHtmlStyles
|
|
21
|
+
});
|
|
22
|
+
for (let i = 0; i < lines.length; i++) {
|
|
23
|
+
if (i > 0) code.children.push({
|
|
24
|
+
type: "text",
|
|
25
|
+
value: "\n"
|
|
26
|
+
});
|
|
27
|
+
code.children.push(lines[i]);
|
|
28
|
+
}
|
|
29
|
+
const root = {
|
|
30
|
+
type: "root",
|
|
31
|
+
children: [{
|
|
32
|
+
type: "element",
|
|
33
|
+
tagName: "pre",
|
|
34
|
+
properties: {
|
|
35
|
+
class: "diffs",
|
|
36
|
+
style: result.rootStyle === false ? void 0 : result.rootStyle ?? [result.fg != null ? `color:${result.fg}` : "", result.bg != null ? `background-color:${result.bg}` : ""].filter(Boolean).join(";"),
|
|
37
|
+
tabIndex: 0
|
|
38
|
+
},
|
|
39
|
+
children: [code]
|
|
40
|
+
}]
|
|
41
|
+
};
|
|
42
|
+
return hastToHtml(root);
|
|
43
|
+
}
|
|
44
|
+
// ../../node_modules/.pnpm/@pierre+diffs@1.7.1_@shikijs+themes@4.6.0_react-dom@19.2.8_react@19.2.6__react@19.2.6/node_modules/@pierre/diffs/dist/highlighter/linesAfterChange.js
|
|
45
|
+
function lineAfterChange(line, change) {
|
|
46
|
+
const ranges = lineRangesAfterChange([[line, line]], change);
|
|
47
|
+
return ranges.length === 0 ? void 0 : ranges[0][0];
|
|
48
|
+
}
|
|
49
|
+
function lineRangesAfterChange(ranges, change) {
|
|
50
|
+
const { changes } = change;
|
|
51
|
+
const lineChanges = lineChangesOf(change);
|
|
52
|
+
const result = [];
|
|
53
|
+
for (const [first, last] of ranges) {
|
|
54
|
+
let next = first;
|
|
55
|
+
let shift = 0;
|
|
56
|
+
for (const [index, { range }] of changes.entries()) {
|
|
57
|
+
const delta = lineChanges[index][2];
|
|
58
|
+
if (range.end.line < next) {
|
|
59
|
+
shift += delta;
|
|
60
|
+
continue;
|
|
61
|
+
}
|
|
62
|
+
if (range.start.line > last) break;
|
|
63
|
+
if (next < range.start.line) result.push([next + shift, range.start.line - 1 + shift]);
|
|
64
|
+
next = range.end.line + 1;
|
|
65
|
+
shift += delta;
|
|
66
|
+
}
|
|
67
|
+
if (next <= last) result.push([next + shift, last + shift]);
|
|
68
|
+
}
|
|
69
|
+
return result;
|
|
70
|
+
}
|
|
71
|
+
// ../../node_modules/.pnpm/@pierre+diffs@1.7.1_@shikijs+themes@4.6.0_react-dom@19.2.8_react@19.2.6__react@19.2.6/node_modules/@pierre/diffs/dist/highlighter/DiffsEditorTokenizer.js
|
|
72
|
+
/**
|
|
73
|
+
* The editor's side of a backend tokenizer. Every line a backend colors reaches
|
|
74
|
+
* the editor with the edit that caused it, or through the background
|
|
75
|
+
* delivery, never both: lines a bracket read colored wait until the read's
|
|
76
|
+
* caller returns, then ride with the next edit or are delivered on their own.
|
|
77
|
+
*/
|
|
78
|
+
var DiffsEditorTokenizer = class {
|
|
79
|
+
#backend;
|
|
80
|
+
#options;
|
|
81
|
+
#disposed = false;
|
|
82
|
+
#pendingDelivery;
|
|
83
|
+
constructor(backend, options) {
|
|
84
|
+
this.#backend = backend;
|
|
85
|
+
this.#options = options;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Applies an edit and returns every line whose tokens changed with it,
|
|
89
|
+
* in and above `renderRange`. Lines a bracket read colored before the
|
|
90
|
+
* edit come along, renumbered; lines the edit rewrote are colored again.
|
|
91
|
+
*/
|
|
92
|
+
tokenize(change, renderRange) {
|
|
93
|
+
const lines = /* @__PURE__ */ new Map();
|
|
94
|
+
const pending = this.#pendingDelivery;
|
|
95
|
+
this.#pendingDelivery = void 0;
|
|
96
|
+
if (pending != null) for (const [line, tokens] of pending) {
|
|
97
|
+
const moved = lineAfterChange(line, change);
|
|
98
|
+
if (moved != null) lines.set(moved, tokens);
|
|
99
|
+
}
|
|
100
|
+
const colored = this.#backend.applyChange(change, renderRange == null ? void 0 : this.#window(renderRange));
|
|
101
|
+
for (const [line, tokens] of colored) lines.set(line, tokens);
|
|
102
|
+
return lines;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Gets the attach window ready before the first edit. With `domCurrent`
|
|
106
|
+
* the rows on screen already match the document, so a backend that
|
|
107
|
+
* delivers what it lexes keeps the window's lines to itself.
|
|
108
|
+
*/
|
|
109
|
+
prebuildStateStack(renderRange, domCurrent = false) {
|
|
110
|
+
this.#backend.prime(this.#window(renderRange), domCurrent);
|
|
111
|
+
}
|
|
112
|
+
/** Finishes every line up to the end of `renderRange` and returns them. */
|
|
113
|
+
flush(renderRange) {
|
|
114
|
+
const lines = this.#backend.flush(this.#window(renderRange)[1]);
|
|
115
|
+
if (this.#pendingDelivery != null) for (const line of lines.keys()) this.#pendingDelivery.delete(line);
|
|
116
|
+
return lines;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* The string, comment and regexp ranges of a line, for bracket matching.
|
|
120
|
+
* Runs inside the editor's own event handling, so the lines it colors on
|
|
121
|
+
* the way are delivered once the caller returns.
|
|
122
|
+
*/
|
|
123
|
+
getStringCommentRegexpRangesInLine(lineIndex) {
|
|
124
|
+
const document = this.#options.textDocument;
|
|
125
|
+
if (this.#options.matchBrackets === false || lineIndex < 0 || lineIndex >= document.lineCount) return null;
|
|
126
|
+
this.#queueDelivery(this.#backend.flush(lineIndex + 1));
|
|
127
|
+
return this.#backend.bracketIgnoredRanges(lineIndex);
|
|
128
|
+
}
|
|
129
|
+
setTheme(themeName) {
|
|
130
|
+
this.#pendingDelivery = void 0;
|
|
131
|
+
this.#backend.setTheme(themeName);
|
|
132
|
+
}
|
|
133
|
+
pauseBackgroundTokenize() {
|
|
134
|
+
this.#backend.pause();
|
|
135
|
+
}
|
|
136
|
+
resumeBackgroundTokenize() {
|
|
137
|
+
this.#backend.resume();
|
|
138
|
+
}
|
|
139
|
+
dispose() {
|
|
140
|
+
this.#disposed = true;
|
|
141
|
+
this.#pendingDelivery = void 0;
|
|
142
|
+
this.#backend.dispose();
|
|
143
|
+
}
|
|
144
|
+
#window(renderRange) {
|
|
145
|
+
const { lineCount } = this.#options.textDocument;
|
|
146
|
+
const start = Math.min(renderRange?.startingLine ?? 0, lineCount);
|
|
147
|
+
return [start, Math.min(start + (renderRange?.totalLines ?? Infinity), lineCount)];
|
|
148
|
+
}
|
|
149
|
+
#queueDelivery(lines) {
|
|
150
|
+
if (lines.size === 0) return;
|
|
151
|
+
const pending = this.#pendingDelivery;
|
|
152
|
+
if (pending != null) {
|
|
153
|
+
for (const [line, tokens] of lines) pending.set(line, tokens);
|
|
154
|
+
return;
|
|
155
|
+
}
|
|
156
|
+
this.#pendingDelivery = lines;
|
|
157
|
+
queueMicrotask(() => {
|
|
158
|
+
const batch = this.#pendingDelivery;
|
|
159
|
+
this.#pendingDelivery = void 0;
|
|
160
|
+
if (batch != null && batch.size > 0 && !this.#disposed) this.#options.onDeferTokenize(batch);
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
// ../../node_modules/.pnpm/@pierre+diffs@1.7.1_@shikijs+themes@4.6.0_react-dom@19.2.8_react@19.2.6__react@19.2.6/node_modules/@pierre/diffs/dist/highlighter/DiffsHighlighter.js
|
|
165
|
+
/**
|
|
166
|
+
* A different highlighter type cannot load in this thread until every
|
|
167
|
+
* instance of the current type is disposed.
|
|
168
|
+
*/
|
|
169
|
+
var DiffsHighlighter = class {
|
|
170
|
+
name;
|
|
171
|
+
themeResolver;
|
|
172
|
+
disposed = false;
|
|
173
|
+
constructor(name, themeResolver) {
|
|
174
|
+
this.name = name;
|
|
175
|
+
this.themeResolver = themeResolver;
|
|
176
|
+
acquireHighlighterType(name);
|
|
177
|
+
}
|
|
178
|
+
codeToHtml(code, options) {
|
|
179
|
+
return tokensToHtml(code, this.codeToTokens(code, options), options, this.name === "highlights");
|
|
180
|
+
}
|
|
181
|
+
get isDisposed() {
|
|
182
|
+
return this.disposed;
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Disposed instances cannot be reused.
|
|
186
|
+
*/
|
|
187
|
+
dispose() {
|
|
188
|
+
if (this.disposed) return;
|
|
189
|
+
this.disposed = true;
|
|
190
|
+
this.releaseResources();
|
|
191
|
+
releaseHighlighterType();
|
|
192
|
+
}
|
|
193
|
+
assertNotDisposed() {
|
|
194
|
+
if (this.disposed) throw new HighlighterDisposedError();
|
|
195
|
+
}
|
|
196
|
+
};
|
|
197
|
+
// ../../node_modules/.pnpm/@pierre+diffs@1.7.1_@shikijs+themes@4.6.0_react-dom@19.2.8_react@19.2.6__react@19.2.6/node_modules/@pierre/diffs/dist/highlighter/stream-tokenizer.js
|
|
198
|
+
/**
|
|
199
|
+
* The final line stays provisional until a line break or stream close.
|
|
200
|
+
* A trailing CR waits for the next chunk, which may complete a CRLF pair.
|
|
201
|
+
* Token offsets are absolute UTF-16 positions in the stream.
|
|
202
|
+
*/
|
|
203
|
+
var BaseStreamTokenizer = class {
|
|
204
|
+
disposed = false;
|
|
205
|
+
/** Stream offset of the provisional line's first character. */
|
|
206
|
+
stableOffset = 0;
|
|
207
|
+
unstable = [];
|
|
208
|
+
pendingCarriageReturn = "";
|
|
209
|
+
enqueue(chunk) {
|
|
210
|
+
this.assertActive();
|
|
211
|
+
chunk = this.pendingCarriageReturn + chunk;
|
|
212
|
+
this.pendingCarriageReturn = chunk.endsWith("\r") ? "\r" : "";
|
|
213
|
+
if (this.pendingCarriageReturn !== "") chunk = chunk.slice(0, -1);
|
|
214
|
+
const recall = this.unstable.length;
|
|
215
|
+
const stable = [];
|
|
216
|
+
const { unstable, tailLength } = this.tokenizeChunk(chunk, stable);
|
|
217
|
+
if (this.pendingCarriageReturn !== "") unstable.push({
|
|
218
|
+
content: "\r",
|
|
219
|
+
offset: this.stableOffset + tailLength
|
|
220
|
+
});
|
|
221
|
+
this.unstable = unstable;
|
|
222
|
+
return {
|
|
223
|
+
recall,
|
|
224
|
+
stable,
|
|
225
|
+
unstable
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
/** Emit one token per line-break character and move past the line. */
|
|
229
|
+
pushLineBreak(stable, lineLength, lineBreak) {
|
|
230
|
+
for (let index = 0; index < lineBreak.length; index++) stable.push({
|
|
231
|
+
content: lineBreak[index],
|
|
232
|
+
offset: this.stableOffset + lineLength + index
|
|
233
|
+
});
|
|
234
|
+
this.stableOffset += lineLength + lineBreak.length;
|
|
235
|
+
}
|
|
236
|
+
close() {
|
|
237
|
+
const stable = this.unstable;
|
|
238
|
+
this.dispose();
|
|
239
|
+
return { stable };
|
|
240
|
+
}
|
|
241
|
+
clear() {
|
|
242
|
+
this.assertActive();
|
|
243
|
+
this.stableOffset = 0;
|
|
244
|
+
this.unstable = [];
|
|
245
|
+
this.pendingCarriageReturn = "";
|
|
246
|
+
this.resetSource();
|
|
247
|
+
}
|
|
248
|
+
dispose() {
|
|
249
|
+
if (this.disposed) return;
|
|
250
|
+
this.disposed = true;
|
|
251
|
+
this.unstable = [];
|
|
252
|
+
this.releaseSource();
|
|
253
|
+
}
|
|
254
|
+
copyStateTo(clone) {
|
|
255
|
+
clone.stableOffset = this.stableOffset;
|
|
256
|
+
clone.unstable = this.unstable.slice();
|
|
257
|
+
clone.pendingCarriageReturn = this.pendingCarriageReturn;
|
|
258
|
+
}
|
|
259
|
+
assertActive() {
|
|
260
|
+
if (this.disposed) throw new Error("stream tokenizer is disposed");
|
|
261
|
+
}
|
|
262
|
+
};
|
|
263
|
+
export { DiffsHighlighter as n, DiffsEditorTokenizer as r, BaseStreamTokenizer as t };
|