@vite-hub/ui 0.1.0 → 0.4.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 +247 -21
- package/dist/attachments-BzTwqRTU.js +90 -0
- package/dist/{avatar-stack-DXmCQhxd.d.ts → avatar-stack-DPRFuezh.d.ts} +1 -1
- package/dist/choices-input-ByXJvDn1.d.ts +94 -0
- package/dist/{code-view-J4OsgEdh.js → code-view-DsU-xzic.js} +20 -4
- package/dist/colors-BghReA9C-CjF9gnmy.js +28 -0
- package/dist/comment-attachments-C4yNbcx5.js +20 -0
- package/dist/comment-composer-fINL5bxo.d.ts +243 -0
- package/dist/comment-composer-jYv2ULNP.js +591 -0
- package/dist/comment-layer-C_sbPIR5.d.ts +176 -0
- package/dist/comment-list-BcSaLngS.d.ts +62 -0
- package/dist/comment-marks.css +234 -0
- package/dist/comment-panel-CfvdRUMX.d.ts +208 -0
- package/dist/comment-person-CLPlW_SS.js +40 -0
- package/dist/comment-pin-DHOdRvUw.d.ts +68 -0
- package/dist/comment-row-Bn3nr8l5.js +39 -0
- package/dist/comment-selection-bar-CyVBNYl9.d.ts +42 -0
- package/dist/comment-thread-DKJjmWN0.d.ts +385 -0
- package/dist/comment-visibility-DsVuVndP.d.ts +40 -0
- package/dist/{comments-C08J3z4e.js → comments-D0d26ghV.js} +210 -59
- package/dist/comments-D8hulVPy.d.ts +198 -0
- package/dist/comments-context-C2lOZyQ5.js +38 -0
- package/dist/config-DgxBW013.d.ts +80 -0
- package/dist/config-Dk67emQt.js +63 -0
- package/dist/copy-button-CRN3kmSD.js +253 -0
- package/dist/draw-DzSmD7uo-Dwz8zoH2.js +72976 -0
- package/dist/editor-C_wt4RRV.js +582 -0
- package/dist/error-diagnostics-SXtnk6bz.js +38 -0
- package/dist/{file-tree-C1pv4_AI.js → file-tree-C4OYgbV-.js} +292 -145
- package/dist/{file-tree-Ctb8hZ_g.d.ts → file-tree-DlT9RGhu.d.ts} +51 -15
- package/dist/format-orwcdZL_.js +39 -0
- package/dist/handlers-DMl-Na3x.js +182 -0
- package/dist/headless.d.ts +5 -176
- package/dist/headless.js +5 -3
- package/dist/icon-swap.css +69 -0
- package/dist/{image-preview-VfknBEFu.js → image-preview-C9tdkmEj.js} +8 -5
- package/dist/{index-DcH0QSI5.d.ts → index-BYRFQfCd.d.ts} +14 -0
- package/dist/{code-view-vDM-hph-.d.ts → index-CNY1uNTh.d.ts} +14 -228
- package/dist/index.d.ts +55 -57
- package/dist/index.js +678 -25
- package/dist/markdown-editor-CMbNZOdN.js +2394 -0
- package/dist/markdown-editor-wQF0yD5o.d.ts +195 -0
- package/dist/markdown-editor.d.ts +108 -0
- package/dist/markdown-editor.js +3 -0
- package/dist/message-scroller-jrYN9dG9.d.ts +175 -0
- package/dist/nuxt-ui-DSQFzq3s.js +38 -0
- package/dist/nuxt.d.ts +84 -2
- package/dist/nuxt.js +243 -35
- package/dist/parts/components/agent-session.d.ts +254 -0
- package/dist/parts/components/agent-session.js +640 -0
- package/dist/{attachment-BBndG9_P.d.ts → parts/components/attachment.d.ts} +14 -15
- package/dist/{attachment-B3dXC7jM.js → parts/components/attachment.js} +6 -4
- package/dist/{avatar-stack.d.ts → parts/components/avatar-stack.d.ts} +1 -1
- package/dist/{avatar-stack-DM6HRnc0.js → parts/components/avatar-stack.js} +2 -5
- package/dist/{bubble-BJH2rfii.d.ts → parts/components/bubble.d.ts} +7 -8
- package/dist/{bubble-BPyFQlW7.js → parts/components/bubble.js} +2 -2
- package/dist/{chat-message-mpDmZbIC.d.ts → parts/components/chat-message.d.ts} +2 -3
- package/dist/{chat-message-BNK9G7xF.js → parts/components/chat-message.js} +4 -4
- package/dist/{chat-session-D6C7VJBR.d.ts → parts/components/chat-session.d.ts} +3 -4
- package/dist/{chat-session-DYEHB1HC.js → parts/components/chat-session.js} +2 -2
- package/dist/{chat-B9HlZWA2.d.ts → parts/components/chat.d.ts} +8 -4
- package/dist/{chat-BoFHlu9V.js → parts/components/chat.js} +42 -9
- package/dist/{highlighted-code-Dzf6o54i.d.ts → parts/components/code-block.d.ts} +15 -23
- package/dist/{code-block-Br-02hn-.js → parts/components/code-block.js} +9 -38
- package/dist/parts/components/code-view.d.ts +270 -0
- package/dist/parts/components/code-view.js +2 -0
- package/dist/parts/components/comment-composer.d.ts +2 -0
- package/dist/parts/components/comment-composer.js +2 -0
- package/dist/parts/components/comment-layer.d.ts +2 -0
- package/dist/parts/components/comment-layer.js +631 -0
- package/dist/parts/components/comment-list.d.ts +2 -0
- package/dist/parts/components/comment-list.js +168 -0
- package/dist/parts/components/comment-panel.d.ts +2 -0
- package/dist/parts/components/comment-panel.js +311 -0
- package/dist/parts/components/comment-pin.d.ts +2 -0
- package/dist/parts/components/comment-pin.js +75 -0
- package/dist/parts/components/comment-selection-bar.d.ts +2 -0
- package/dist/parts/components/comment-selection-bar.js +116 -0
- package/dist/parts/components/comment-thread.d.ts +2 -0
- package/dist/parts/components/comment-thread.js +598 -0
- package/dist/parts/components/comments.d.ts +8 -0
- package/dist/parts/components/comments.js +9 -0
- package/dist/{connection-status-DjGBw6xX.d.ts → parts/components/connection-status.d.ts} +6 -7
- package/dist/{connection-status-CzuWBENf.js → parts/components/connection-status.js} +1 -1
- package/dist/parts/components/copy-button.d.ts +118 -0
- package/dist/parts/components/copy-button.js +2 -0
- package/dist/parts/components/device-frame.d.ts +130 -0
- package/dist/parts/components/device-frame.js +471 -0
- package/dist/parts/components/file-tree.d.ts +2 -0
- package/dist/parts/components/file-tree.js +2 -0
- package/dist/parts/components/filter-search.d.ts +47 -0
- package/dist/parts/components/filter-search.js +58 -0
- package/dist/parts/components/markdown-editor.d.ts +2 -0
- package/dist/parts/components/markdown-editor.js +2 -0
- package/dist/parts/components/markdown-renderer.d.ts +52 -0
- package/dist/parts/components/markdown-renderer.js +23077 -0
- package/dist/{markdown-Dse5ldJe.d.ts → parts/components/markdown.d.ts} +7 -7
- package/dist/parts/components/markdown.js +47 -0
- package/dist/{marker-ea-tvx-J.d.ts → parts/components/marker.d.ts} +6 -7
- package/dist/{marker-Di2ZG_k1.js → parts/components/marker.js} +2 -2
- package/dist/{message-parts-BBFUkluC.d.ts → parts/components/message-parts.d.ts} +2 -3
- package/dist/{message-parts-DQnfioAH.js → parts/components/message-parts.js} +6 -6
- package/dist/{message-CW_paC1k.d.ts → parts/components/message.d.ts} +8 -9
- package/dist/{message-DiyBthIq.js → parts/components/message.js} +2 -2
- package/dist/parts/components/patch-parsers.d.ts +2 -0
- package/dist/parts/components/patch-parsers.js +2 -0
- package/dist/{prompt-input-Cy_Ue6B5.d.ts → parts/components/prompt-input.d.ts} +53 -10
- package/dist/{prompt-input-BbnCb80O.js → parts/components/prompt-input.js} +66 -111
- package/dist/parts/components/relative-time.d.ts +73 -0
- package/dist/parts/components/relative-time.js +2 -0
- package/dist/parts/components/status.d.ts +60 -0
- package/dist/parts/components/status.js +48 -0
- package/dist/{sync-status-refELOZn.d.ts → parts/components/sync-status.d.ts} +5 -6
- package/dist/{sync-status-BpxYdZIJ.js → parts/components/sync-status.js} +1 -1
- package/dist/{tool-list-E7CA52rz.d.ts → parts/components/tool-list.d.ts} +3 -4
- package/dist/{tool-list-BdSr5CT4.js → parts/components/tool-list.js} +7 -38
- package/dist/{trace-run-COeXn46Z.d.ts → parts/components/trace-run.d.ts} +3 -4
- package/dist/{trace-run-BIQ17CED.js → parts/components/trace-run.js} +15 -23
- package/dist/{trace-V7rM3Pyd.d.ts → parts/components/trace.d.ts} +11 -12
- package/dist/{trace-llBCDiSW.js → parts/components/trace.js} +20 -13
- package/dist/parts/composables/attachments.d.ts +32 -0
- package/dist/parts/composables/attachments.js +2 -0
- package/dist/parts/composables/highlighted-code.d.ts +9 -0
- package/dist/{highlighted-code-Ck4zexJX.js → parts/composables/highlighted-code.js} +5 -2
- package/dist/parts/headless/choices-input.d.ts +2 -0
- package/dist/parts/headless/choices-input.js +162 -0
- package/dist/parts/headless/comment-visibility.d.ts +2 -0
- package/dist/parts/headless/comment-visibility.js +128 -0
- package/dist/parts/headless/comments.d.ts +2 -0
- package/dist/parts/headless/comments.js +2 -0
- package/dist/parts/headless/message-scroller.d.ts +2 -0
- package/dist/{message-scroller-CX6NJTdm.js → parts/headless/message-scroller.js} +2 -2
- package/dist/parts/playground/highlight.d.ts +5 -0
- package/dist/parts/playground/highlight.js +23 -0
- package/dist/parts/playground/paths.d.ts +4 -0
- package/dist/parts/playground/paths.js +7 -0
- package/dist/parts/playground/playground-render.d.ts +126 -0
- package/dist/parts/playground/playground-render.js +356 -0
- package/dist/parts/playground/share.d.ts +2 -0
- package/dist/parts/playground/share.js +92 -0
- package/dist/parts/playground/zip.d.ts +6 -0
- package/dist/parts/playground/zip.js +76 -0
- package/dist/parts/workspace/browser-support-notice.d.ts +76 -0
- package/dist/parts/workspace/browser-support-notice.js +105 -0
- package/dist/parts/workspace/codemirror.d.ts +16 -0
- package/dist/parts/workspace/codemirror.js +243 -0
- package/dist/parts/workspace/connect-panel.d.ts +129 -0
- package/dist/parts/workspace/connect-panel.js +285 -0
- package/dist/parts/workspace/connect-store.d.ts +26 -0
- package/dist/parts/workspace/connect-store.js +59 -0
- package/dist/parts/workspace/icons.d.ts +34 -0
- package/dist/parts/workspace/icons.js +46 -0
- package/dist/parts/workspace/playground-container.d.ts +192 -0
- package/dist/parts/workspace/playground-container.js +603 -0
- package/dist/parts/workspace/workspace-boot-status.d.ts +75 -0
- package/dist/parts/workspace/workspace-boot-status.js +207 -0
- package/dist/parts/workspace/workspace-editor.d.ts +43 -0
- package/dist/parts/workspace/workspace-editor.js +54 -0
- package/dist/parts/workspace/workspace-file-tree.d.ts +53 -0
- package/dist/parts/workspace/workspace-file-tree.js +68 -0
- package/dist/parts/workspace/workspace-preview.d.ts +72 -0
- package/dist/parts/workspace/workspace-preview.js +307 -0
- package/dist/parts/workspace/workspace-shell.d.ts +88 -0
- package/dist/parts/workspace/workspace-shell.js +291 -0
- package/dist/parts/workspace/workspace-terminal.d.ts +39 -0
- package/dist/parts/workspace/workspace-terminal.js +130 -0
- package/dist/payload-text-sjkYAwvw.js +32 -0
- package/dist/{pierre-code-view-T7V67hwT.js → pierre-code-view-NE35tkmR.js} +245 -102
- package/dist/{pierre-dark-DDWDl8g6.js → pierre-dark-CzUmjETS.js} +3 -1
- package/dist/{pierre-light-CWhW4NrH.js → pierre-light-Dn6E0sWv.js} +3 -1
- package/dist/playground.d.ts +4 -0
- package/dist/playground.js +4 -0
- package/dist/relative-time-BVmjOsYG.js +309 -0
- package/dist/rolldown-runtime-C9mWXvCC.js +29 -0
- package/dist/runtime/nuxt-plugin.js +23 -4
- package/dist/sankey-CAYwt82B-D4uDQoMR.js +2887 -0
- package/dist/share-DM4eNy4q.d.ts +37 -0
- package/dist/{slot-part-C7Ocxn3b.js → slot-part-Doic71uh.js} +7 -1
- package/dist/styles.css +2609 -620
- package/dist/temml-BilSAAws.js +12362 -0
- package/dist/theme-focus-ring.css +42 -0
- package/dist/theme.css +376 -0
- package/dist/theme.d.ts +355 -0
- package/dist/theme.js +265 -0
- package/dist/{types-CqDwuJAm.d.ts → types-Dj7vp0lZ.d.ts} +1 -1
- package/dist/vue-BDmSCtay.js +30779 -0
- package/dist/vue-DGstVdGn.js +2492 -0
- package/dist/workspace.d.ts +15 -0
- package/dist/workspace.js +12 -0
- package/package.json +135 -149
- package/dist/andromeeda-BASpqCeJ.js +0 -4
- package/dist/attachment.d.ts +0 -2
- package/dist/attachment.js +0 -2
- package/dist/aurora-x-DugsLcii.js +0 -4
- package/dist/avatar-stack.js +0 -2
- package/dist/ayu-dark-BT3qdi3o.js +0 -4
- package/dist/ayu-light-BVZyHoh9.js +0 -4
- package/dist/ayu-mirage-XFwUVZQZ.js +0 -4
- package/dist/bubble.d.ts +0 -2
- package/dist/bubble.js +0 -2
- package/dist/catppuccin-frappe-D20KODDN.js +0 -4
- package/dist/catppuccin-latte-eGLVHIUJ.js +0 -4
- package/dist/catppuccin-macchiato-bQGch4PY.js +0 -4
- package/dist/catppuccin-mocha-Bes8-0Mr.js +0 -4
- package/dist/chat-message.d.ts +0 -2
- package/dist/chat-message.js +0 -2
- package/dist/chat-session.d.ts +0 -2
- package/dist/chat-session.js +0 -2
- package/dist/chat.d.ts +0 -2
- package/dist/chat.js +0 -2
- package/dist/code-block.d.ts +0 -2
- package/dist/code-block.js +0 -3
- package/dist/code-view.d.ts +0 -2
- package/dist/code-view.js +0 -2
- package/dist/comment-layer-CBlxJ8eK.js +0 -1113
- package/dist/comments-ChNJkV1d.d.ts +0 -108
- package/dist/comments-Cq5eewsu.d.ts +0 -537
- package/dist/comments.d.ts +0 -2
- package/dist/comments.js +0 -2
- package/dist/config-Bux_AJzm.d.ts +0 -29
- package/dist/config-bHqE4JOs.js +0 -38
- package/dist/connection-status.d.ts +0 -2
- package/dist/connection-status.js +0 -2
- package/dist/dark-plus-BGuiqa1B.js +0 -4
- package/dist/dracula-0CVA2XY5.js +0 -4
- package/dist/dracula-soft-Dk9bpbVU.js +0 -4
- package/dist/error-diagnostics-B4hMpJRL.js +0 -13
- package/dist/everforest-dark-CRjTbhh5.js +0 -4
- package/dist/everforest-light-CEeYFLn8.js +0 -4
- package/dist/file-diff.d.ts +0 -2
- package/dist/file-diff.js +0 -2
- package/dist/file-tree.d.ts +0 -2
- package/dist/file-tree.js +0 -2
- package/dist/file-view.d.ts +0 -2
- package/dist/file-view.js +0 -2
- package/dist/github-dark-BXgKmOw_.js +0 -4
- package/dist/github-dark-default-DzJQXksd.js +0 -4
- package/dist/github-dark-dimmed-B1pEmGtS.js +0 -4
- package/dist/github-dark-high-contrast-BkHIa6jc.js +0 -4
- package/dist/github-light-BKRlUbaB.js +0 -4
- package/dist/github-light-default-BU3eYkzs.js +0 -4
- package/dist/github-light-high-contrast-B3MumDcI.js +0 -4
- package/dist/gruvbox-dark-hard-B0ecF443.js +0 -4
- package/dist/gruvbox-dark-medium-BQnpC39k.js +0 -4
- package/dist/gruvbox-dark-soft-DFZUgESr.js +0 -4
- package/dist/gruvbox-light-hard-CuB_LOJr.js +0 -4
- package/dist/gruvbox-light-medium-idDHgxjs.js +0 -4
- package/dist/gruvbox-light-soft-CfWH49MY.js +0 -4
- package/dist/horizon-bright-Ba6M8QSV.js +0 -4
- package/dist/horizon-h92C5OlZ.js +0 -4
- package/dist/houston-EQnPegWq.js +0 -4
- package/dist/kanagawa-dragon-DgDvwi3B.js +0 -4
- package/dist/kanagawa-lotus-BgoQro20.js +0 -4
- package/dist/kanagawa-wave-DgXEowHs.js +0 -4
- package/dist/laserwave-IxBH_3yW.js +0 -4
- package/dist/light-plus-S8JBx6is.js +0 -4
- package/dist/markdown-BoLBN0qH.js +0 -197
- package/dist/markdown.d.ts +0 -2
- package/dist/markdown.js +0 -2
- package/dist/marker.d.ts +0 -2
- package/dist/marker.js +0 -2
- package/dist/material-theme-D1f3HBq-.js +0 -4
- package/dist/material-theme-darker-ExzYhT0j.js +0 -4
- package/dist/material-theme-lighter-D6gH9nnA.js +0 -4
- package/dist/material-theme-ocean-D1w5BPAa.js +0 -4
- package/dist/material-theme-palenight-CkqWmVpF.js +0 -4
- package/dist/message-parts.d.ts +0 -2
- package/dist/message-parts.js +0 -2
- package/dist/message.d.ts +0 -2
- package/dist/message.js +0 -2
- package/dist/min-dark-npsJH98j.js +0 -4
- package/dist/min-light-DUk1XsVt.js +0 -4
- package/dist/monokai-CfFRWUNl.js +0 -4
- package/dist/multi-file-diff.d.ts +0 -2
- package/dist/multi-file-diff.js +0 -2
- package/dist/night-owl-BS7V-av_.js +0 -4
- package/dist/night-owl-light-CZtRawYE.js +0 -4
- package/dist/nord-BFh54Nqz.js +0 -4
- package/dist/one-dark-pro-zDovGosB.js +0 -4
- package/dist/one-light-gmHK3iK6.js +0 -4
- package/dist/patch-diff.d.ts +0 -2
- package/dist/patch-diff.js +0 -2
- package/dist/plastic-DtdaCjub.js +0 -4
- package/dist/poimandres-Hdda6aHK.js +0 -4
- package/dist/primitive-rail.d.ts +0 -222
- package/dist/primitive-rail.js +0 -348
- package/dist/prompt-input.d.ts +0 -2
- package/dist/prompt-input.js +0 -2
- package/dist/red-VqZFRByZ.js +0 -4
- package/dist/rose-pine-DiTkEueR.js +0 -4
- package/dist/rose-pine-dawn-tfo5y2X0.js +0 -4
- package/dist/rose-pine-moon-C0gON9XN.js +0 -4
- package/dist/runtime-type-DlCscMfw.js +0 -59
- package/dist/slack-dark-v8P_eXr6.js +0 -4
- package/dist/slack-ochin-D8SyEdKz.js +0 -4
- package/dist/snazzy-light-BtkQkvXb.js +0 -4
- package/dist/solarized-dark-B8nAdMfM.js +0 -4
- package/dist/solarized-light-B-3F1INj.js +0 -4
- package/dist/sync-status.d.ts +0 -2
- package/dist/sync-status.js +0 -2
- package/dist/synthwave-84-DcsXCF_c.js +0 -4
- package/dist/tokyo-night-Bvpqduda.js +0 -4
- package/dist/tool-list.d.ts +0 -2
- package/dist/tool-list.js +0 -2
- package/dist/trace-run.d.ts +0 -2
- package/dist/trace-run.js +0 -2
- package/dist/trace.d.ts +0 -2
- package/dist/trace.js +0 -2
- package/dist/unresolved-file.d.ts +0 -2
- package/dist/unresolved-file.js +0 -2
- package/dist/vesper-CfxmMOy3.js +0 -4
- package/dist/vitesse-black-D9-_1mjV.js +0 -4
- package/dist/vitesse-dark-DlSMLlr9.js +0 -4
- package/dist/vitesse-light-KRWWWztf.js +0 -4
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
import "nostics";
|
|
2
|
+
//#region ../runtime/src/host.d.ts
|
|
3
|
+
declare global {
|
|
4
|
+
/** `wrangler types` adds the app's bindings to `Cloudflare.Env`. ViteHub reads it to type `getHostBinding()`. */
|
|
5
|
+
namespace Cloudflare {
|
|
6
|
+
interface Env {}
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
2
10
|
//#region ../runtime/src/index.d.ts
|
|
11
|
+
declare global {
|
|
12
|
+
namespace ViteHub {
|
|
13
|
+
/** Generated declarations set `sessionResult` to the result of the app's Auth Definition. */
|
|
14
|
+
interface AuthRegistry {}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
3
17
|
interface TraceContext {
|
|
4
18
|
id: string;
|
|
5
19
|
parentId?: string;
|
|
@@ -2178,7 +2178,7 @@ interface FileDiffOptions<LAnnotation, Caret> extends Omit<BaseDiffOptions, 'hun
|
|
|
2178
2178
|
hunkSeparators?: Exclude<HunkSeparators, 'custom'> | /**
|
|
2179
2179
|
* @deprecated Custom hunk separator functions are deprecated and will be
|
|
2180
2180
|
* removed in a future version.
|
|
2181
|
-
*/ ((hunk: HunkData, instance: FileDiff
|
|
2181
|
+
*/ ((hunk: HunkData, instance: FileDiff<LAnnotation, Caret>) => HTMLElement | DocumentFragment | null | undefined);
|
|
2182
2182
|
disableFileHeader?: boolean;
|
|
2183
2183
|
renderHeaderPrefix?: RenderHeaderPrefixCallback;
|
|
2184
2184
|
renderHeaderFilenameSuffix?: RenderHeaderFilenameSuffixCallback;
|
|
@@ -2192,7 +2192,7 @@ interface FileDiffOptions<LAnnotation, Caret> extends Omit<BaseDiffOptions, 'hun
|
|
|
2192
2192
|
disableErrorHandling?: boolean;
|
|
2193
2193
|
renderAnnotation?(annotation: DiffLineAnnotation<LAnnotation>): HTMLElement | undefined;
|
|
2194
2194
|
renderGutterUtility?(getHoveredRow: () => GetHoveredLineResult<'diff'> | undefined): HTMLElement | null | undefined;
|
|
2195
|
-
onPostRender?(node: HTMLElement, instance: FileDiff
|
|
2195
|
+
onPostRender?(node: HTMLElement, instance: FileDiff<LAnnotation, Caret>, phase: PostRenderPhase): unknown;
|
|
2196
2196
|
/**
|
|
2197
2197
|
* Fired for every document change of an active edit session on this
|
|
2198
2198
|
* component, with the same `EditorChangeEvent` the editor reports through
|
|
@@ -2230,7 +2230,7 @@ interface HeaderCache {
|
|
|
2230
2230
|
html: string | undefined;
|
|
2231
2231
|
fileDiff: FileDiffMetadata | undefined;
|
|
2232
2232
|
}
|
|
2233
|
-
declare class FileDiff
|
|
2233
|
+
declare class FileDiff<LAnnotation = undefined, Caret = undefined> {
|
|
2234
2234
|
options: FileDiffOptions<LAnnotation, Caret>;
|
|
2235
2235
|
protected workerManager?: WorkerPoolManager | undefined;
|
|
2236
2236
|
protected isContainerManaged: boolean;
|
|
@@ -2574,7 +2574,7 @@ interface SyncDiffRenderViewProps<LAnnotation> extends SyncRenderViewBaseProps {
|
|
|
2574
2574
|
externalDocument?: boolean;
|
|
2575
2575
|
}
|
|
2576
2576
|
type SyncRenderViewProps<EType extends EditorType, LAnnotation> = EType extends 'file' ? SyncFileRenderViewProps<LAnnotation> : SyncDiffRenderViewProps<LAnnotation>;
|
|
2577
|
-
type EditorComponent<EType extends EditorType, LAnnotation, Caret> = EType extends 'file' ? File<LAnnotation, Caret> : FileDiff
|
|
2577
|
+
type EditorComponent<EType extends EditorType, LAnnotation, Caret> = EType extends 'file' ? File<LAnnotation, Caret> : FileDiff<LAnnotation, Caret>;
|
|
2578
2578
|
interface EditorOptions<EType extends EditorType, LAnnotation, Caret> {
|
|
2579
2579
|
/** The maximum number of entries to keep in the undo stack. */
|
|
2580
2580
|
historyMaxEntries?: number;
|
|
@@ -3083,7 +3083,7 @@ declare class Virtualizer {
|
|
|
3083
3083
|
//#region ../../node_modules/.pnpm/@pierre+diffs@1.5.2_@shikijs+themes@4.5.0_react-dom@19.2.8_react@19.2.6__react@19.2.6/node_modules/@pierre/diffs/dist/components/VirtualizedFileDiff.d.ts
|
|
3084
3084
|
//#region src/components/VirtualizedFileDiff.d.ts
|
|
3085
3085
|
type LoadedPartialDiffContents = Awaited<ReturnType<NonNullable<BaseDiffOptions['loadDiffFiles']>>>;
|
|
3086
|
-
declare class VirtualizedFileDiff<LAnnotation = undefined, Caret = undefined> extends FileDiff
|
|
3086
|
+
declare class VirtualizedFileDiff<LAnnotation = undefined, Caret = undefined> extends FileDiff<LAnnotation, Caret> {
|
|
3087
3087
|
readonly __id: string;
|
|
3088
3088
|
readonly renderType = "virtualized";
|
|
3089
3089
|
top: number | undefined;
|
|
@@ -3099,7 +3099,7 @@ declare class VirtualizedFileDiff<LAnnotation = undefined, Caret = undefined> ex
|
|
|
3099
3099
|
private pendingHydratedDiff;
|
|
3100
3100
|
private pendingExpansions;
|
|
3101
3101
|
private pendingRender;
|
|
3102
|
-
constructor(options: FileDiffOptions<LAnnotation, Caret> | undefined, virtualizer: Virtualizer | CodeView
|
|
3102
|
+
constructor(options: FileDiffOptions<LAnnotation, Caret> | undefined, virtualizer: Virtualizer | CodeView<LAnnotation, Caret>, metrics?: Partial<VirtualFileMetrics>, workerManager?: WorkerPoolManager, isContainerManaged?: boolean);
|
|
3103
3103
|
setMetrics(metrics?: Partial<VirtualFileMetrics>, force?: boolean): void;
|
|
3104
3104
|
setLineAnnotations(lineAnnotations: DiffLineAnnotation<LAnnotation>[]): void;
|
|
3105
3105
|
private syncLineAnnotations;
|
|
@@ -3242,7 +3242,7 @@ interface CodeViewCoordinator<LAnnotation, Caret> {
|
|
|
3242
3242
|
hasGutterRenderer: boolean;
|
|
3243
3243
|
onSnapshotChange(snapshot: CodeViewSlotSnapshot<LAnnotation, Caret> | undefined): void;
|
|
3244
3244
|
}
|
|
3245
|
-
type CodeViewScrollListener<LAnnotation, Caret> = (scrollTop: number, viewer: CodeView
|
|
3245
|
+
type CodeViewScrollListener<LAnnotation, Caret> = (scrollTop: number, viewer: CodeView<LAnnotation, Caret>) => void;
|
|
3246
3246
|
type OverloadCallbackArgs<TCallback> = TCallback extends ((...args: infer TArgs) => unknown) ? TArgs : never;
|
|
3247
3247
|
type CallbackReturn<TCallback> = TCallback extends ((...args: never[]) => infer TReturn) ? TReturn : never;
|
|
3248
3248
|
type OverloadFileCallbackArgs<LAnnotation, Caret, TKey extends keyof FileOptions<LAnnotation, Caret>> = OverloadCallbackArgs<NonNullable<FileOptions<LAnnotation, Caret>[TKey]>>;
|
|
@@ -3336,7 +3336,7 @@ interface CodeViewOptions<LAnnotation, Caret> extends CodeViewPassThroughOptions
|
|
|
3336
3336
|
__devOnlyValidateItemHeights?: boolean;
|
|
3337
3337
|
}
|
|
3338
3338
|
type CodeViewItemMap<LAnnotation, Caret> = Map<string, CodeViewContextItem<LAnnotation, Caret>>;
|
|
3339
|
-
declare class CodeView
|
|
3339
|
+
declare class CodeView<LAnnotation = undefined, Caret = undefined> {
|
|
3340
3340
|
static __STOP: boolean;
|
|
3341
3341
|
static __lastScrollPosition: number;
|
|
3342
3342
|
type: 'advanced';
|
|
@@ -3697,7 +3697,7 @@ declare class VirtualizedFile<LAnnotation = undefined, Caret = undefined> extend
|
|
|
3697
3697
|
private layoutDirty;
|
|
3698
3698
|
private forceRenderOverride;
|
|
3699
3699
|
private currentCollapsed;
|
|
3700
|
-
constructor(options: FileOptions<LAnnotation, Caret> | undefined, virtualizer: Virtualizer | CodeView
|
|
3700
|
+
constructor(options: FileOptions<LAnnotation, Caret> | undefined, virtualizer: Virtualizer | CodeView<LAnnotation, Caret>, metrics?: VirtualFileMetrics, workerManager?: WorkerPoolManager, isContainerManaged?: boolean);
|
|
3701
3701
|
setMetrics(metrics?: Partial<VirtualFileMetrics>, force?: boolean): void;
|
|
3702
3702
|
setLineAnnotations(lineAnnotations: LineAnnotation<LAnnotation>[]): void;
|
|
3703
3703
|
private syncLineAnnotations;
|
|
@@ -3786,12 +3786,12 @@ declare class UnresolvedFileHunksRenderer<LAnnotation = undefined> extends DiffH
|
|
|
3786
3786
|
//#endregion
|
|
3787
3787
|
//#region ../../node_modules/.pnpm/@pierre+diffs@1.5.2_@shikijs+themes@4.5.0_react-dom@19.2.8_react@19.2.6__react@19.2.6/node_modules/@pierre/diffs/dist/components/UnresolvedFile.d.ts
|
|
3788
3788
|
//#region src/components/UnresolvedFile.d.ts
|
|
3789
|
-
type RenderMergeConflictActions<LAnnotation> = (action: MergeConflictDiffAction, instance: UnresolvedFile
|
|
3789
|
+
type RenderMergeConflictActions<LAnnotation> = (action: MergeConflictDiffAction, instance: UnresolvedFile<LAnnotation>) => HTMLElement | DocumentFragment | null | undefined;
|
|
3790
3790
|
type MergeConflictActionsTypeOption<LAnnotation> = 'none' | 'default' | RenderMergeConflictActions<LAnnotation>;
|
|
3791
3791
|
interface UnresolvedFileOptions<LAnnotation> extends Omit<FileDiffOptions<LAnnotation, undefined>, 'diffStyle' | 'onPostRender'> {
|
|
3792
|
-
onPostRender?(node: HTMLElement, instance: UnresolvedFile
|
|
3792
|
+
onPostRender?(node: HTMLElement, instance: UnresolvedFile<LAnnotation>, phase: PostRenderPhase): unknown;
|
|
3793
3793
|
mergeConflictActionsType?: MergeConflictActionsTypeOption<LAnnotation>;
|
|
3794
|
-
onMergeConflictAction?(payload: MergeConflictActionPayload, instance: UnresolvedFile
|
|
3794
|
+
onMergeConflictAction?(payload: MergeConflictActionPayload, instance: UnresolvedFile<LAnnotation>): void;
|
|
3795
3795
|
onMergeConflictResolve?(file: FileContents, payload: MergeConflictActionPayload): void;
|
|
3796
3796
|
maxContextLines?: number;
|
|
3797
3797
|
}
|
|
@@ -3818,7 +3818,7 @@ interface ResolveConflictReturn {
|
|
|
3818
3818
|
markerRows: MergeConflictMarkerRow[];
|
|
3819
3819
|
}
|
|
3820
3820
|
type UnresolvedFileDataCache = GetOrComputeDiffProps;
|
|
3821
|
-
declare class UnresolvedFile
|
|
3821
|
+
declare class UnresolvedFile<LAnnotation = undefined> extends FileDiff<LAnnotation, undefined> {
|
|
3822
3822
|
options: UnresolvedFileOptions<LAnnotation>;
|
|
3823
3823
|
readonly __id: string;
|
|
3824
3824
|
readonly type = "unresolved-file";
|
|
@@ -3874,218 +3874,4 @@ declare function parseDiffFromFile(oldFile: FileContents | null, newFile: FileCo
|
|
|
3874
3874
|
*/
|
|
3875
3875
|
declare function parsePatchFiles(data: string, cacheKeyPrefix?: string, throwOnError?: boolean): ParsedPatch[];
|
|
3876
3876
|
//#endregion
|
|
3877
|
-
|
|
3878
|
-
declare const PatchDiff: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3879
|
-
patch: {
|
|
3880
|
-
required: true;
|
|
3881
|
-
type: StringConstructor;
|
|
3882
|
-
};
|
|
3883
|
-
lineAnnotations: {
|
|
3884
|
-
type: import("vue").PropType<DiffLineAnnotation<unknown>[]>;
|
|
3885
|
-
};
|
|
3886
|
-
options: {
|
|
3887
|
-
type: import("vue").PropType<FileDiffOptions<unknown, unknown>>;
|
|
3888
|
-
};
|
|
3889
|
-
selectedLines: {
|
|
3890
|
-
default: undefined;
|
|
3891
|
-
type: import("vue").PropType<SelectedLineRange | null | undefined>;
|
|
3892
|
-
};
|
|
3893
|
-
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
3894
|
-
[key: string]: any;
|
|
3895
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
3896
|
-
patch: {
|
|
3897
|
-
required: true;
|
|
3898
|
-
type: StringConstructor;
|
|
3899
|
-
};
|
|
3900
|
-
lineAnnotations: {
|
|
3901
|
-
type: import("vue").PropType<DiffLineAnnotation<unknown>[]>;
|
|
3902
|
-
};
|
|
3903
|
-
options: {
|
|
3904
|
-
type: import("vue").PropType<FileDiffOptions<unknown, unknown>>;
|
|
3905
|
-
};
|
|
3906
|
-
selectedLines: {
|
|
3907
|
-
default: undefined;
|
|
3908
|
-
type: import("vue").PropType<SelectedLineRange | null | undefined>;
|
|
3909
|
-
};
|
|
3910
|
-
}>> & Readonly<{}>, {
|
|
3911
|
-
selectedLines: SelectedLineRange | null | undefined;
|
|
3912
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
3913
|
-
declare const MultiFileDiff: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3914
|
-
newFile: {
|
|
3915
|
-
required: true;
|
|
3916
|
-
type: import("vue").PropType<FileContents | null>;
|
|
3917
|
-
};
|
|
3918
|
-
oldFile: {
|
|
3919
|
-
required: true;
|
|
3920
|
-
type: import("vue").PropType<FileContents | null>;
|
|
3921
|
-
};
|
|
3922
|
-
lineAnnotations: {
|
|
3923
|
-
type: import("vue").PropType<DiffLineAnnotation<unknown>[]>;
|
|
3924
|
-
};
|
|
3925
|
-
options: {
|
|
3926
|
-
type: import("vue").PropType<FileDiffOptions<unknown, unknown>>;
|
|
3927
|
-
};
|
|
3928
|
-
selectedLines: {
|
|
3929
|
-
default: undefined;
|
|
3930
|
-
type: import("vue").PropType<SelectedLineRange | null | undefined>;
|
|
3931
|
-
};
|
|
3932
|
-
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
3933
|
-
[key: string]: any;
|
|
3934
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
3935
|
-
newFile: {
|
|
3936
|
-
required: true;
|
|
3937
|
-
type: import("vue").PropType<FileContents | null>;
|
|
3938
|
-
};
|
|
3939
|
-
oldFile: {
|
|
3940
|
-
required: true;
|
|
3941
|
-
type: import("vue").PropType<FileContents | null>;
|
|
3942
|
-
};
|
|
3943
|
-
lineAnnotations: {
|
|
3944
|
-
type: import("vue").PropType<DiffLineAnnotation<unknown>[]>;
|
|
3945
|
-
};
|
|
3946
|
-
options: {
|
|
3947
|
-
type: import("vue").PropType<FileDiffOptions<unknown, unknown>>;
|
|
3948
|
-
};
|
|
3949
|
-
selectedLines: {
|
|
3950
|
-
default: undefined;
|
|
3951
|
-
type: import("vue").PropType<SelectedLineRange | null | undefined>;
|
|
3952
|
-
};
|
|
3953
|
-
}>> & Readonly<{}>, {
|
|
3954
|
-
selectedLines: SelectedLineRange | null | undefined;
|
|
3955
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
3956
|
-
declare const FileDiff: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3957
|
-
fileDiff: {
|
|
3958
|
-
required: true;
|
|
3959
|
-
type: import("vue").PropType<FileDiffMetadata>;
|
|
3960
|
-
};
|
|
3961
|
-
lineAnnotations: {
|
|
3962
|
-
type: import("vue").PropType<DiffLineAnnotation<unknown>[]>;
|
|
3963
|
-
};
|
|
3964
|
-
options: {
|
|
3965
|
-
type: import("vue").PropType<FileDiffOptions<unknown, unknown>>;
|
|
3966
|
-
};
|
|
3967
|
-
selectedLines: {
|
|
3968
|
-
default: undefined;
|
|
3969
|
-
type: import("vue").PropType<SelectedLineRange | null | undefined>;
|
|
3970
|
-
};
|
|
3971
|
-
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
3972
|
-
[key: string]: any;
|
|
3973
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
3974
|
-
fileDiff: {
|
|
3975
|
-
required: true;
|
|
3976
|
-
type: import("vue").PropType<FileDiffMetadata>;
|
|
3977
|
-
};
|
|
3978
|
-
lineAnnotations: {
|
|
3979
|
-
type: import("vue").PropType<DiffLineAnnotation<unknown>[]>;
|
|
3980
|
-
};
|
|
3981
|
-
options: {
|
|
3982
|
-
type: import("vue").PropType<FileDiffOptions<unknown, unknown>>;
|
|
3983
|
-
};
|
|
3984
|
-
selectedLines: {
|
|
3985
|
-
default: undefined;
|
|
3986
|
-
type: import("vue").PropType<SelectedLineRange | null | undefined>;
|
|
3987
|
-
};
|
|
3988
|
-
}>> & Readonly<{}>, {
|
|
3989
|
-
selectedLines: SelectedLineRange | null | undefined;
|
|
3990
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
3991
|
-
declare const FileView: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3992
|
-
file: {
|
|
3993
|
-
required: true;
|
|
3994
|
-
type: import("vue").PropType<FileContents>;
|
|
3995
|
-
};
|
|
3996
|
-
lineAnnotations: {
|
|
3997
|
-
type: import("vue").PropType<LineAnnotation<unknown>[]>;
|
|
3998
|
-
};
|
|
3999
|
-
options: {
|
|
4000
|
-
type: import("vue").PropType<FileOptions<unknown, unknown>>;
|
|
4001
|
-
};
|
|
4002
|
-
selectedLines: {
|
|
4003
|
-
default: undefined;
|
|
4004
|
-
type: import("vue").PropType<SelectedLineRange | null | undefined>;
|
|
4005
|
-
};
|
|
4006
|
-
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
4007
|
-
[key: string]: any;
|
|
4008
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
4009
|
-
file: {
|
|
4010
|
-
required: true;
|
|
4011
|
-
type: import("vue").PropType<FileContents>;
|
|
4012
|
-
};
|
|
4013
|
-
lineAnnotations: {
|
|
4014
|
-
type: import("vue").PropType<LineAnnotation<unknown>[]>;
|
|
4015
|
-
};
|
|
4016
|
-
options: {
|
|
4017
|
-
type: import("vue").PropType<FileOptions<unknown, unknown>>;
|
|
4018
|
-
};
|
|
4019
|
-
selectedLines: {
|
|
4020
|
-
default: undefined;
|
|
4021
|
-
type: import("vue").PropType<SelectedLineRange | null | undefined>;
|
|
4022
|
-
};
|
|
4023
|
-
}>> & Readonly<{}>, {
|
|
4024
|
-
selectedLines: SelectedLineRange | null | undefined;
|
|
4025
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
4026
|
-
declare const UnresolvedFile: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4027
|
-
file: {
|
|
4028
|
-
required: true;
|
|
4029
|
-
type: import("vue").PropType<FileContents>;
|
|
4030
|
-
};
|
|
4031
|
-
lineAnnotations: {
|
|
4032
|
-
type: import("vue").PropType<DiffLineAnnotation<unknown>[]>;
|
|
4033
|
-
};
|
|
4034
|
-
options: {
|
|
4035
|
-
type: import("vue").PropType<UnresolvedFileOptions<unknown>>;
|
|
4036
|
-
};
|
|
4037
|
-
selectedLines: {
|
|
4038
|
-
default: undefined;
|
|
4039
|
-
type: import("vue").PropType<SelectedLineRange | null | undefined>;
|
|
4040
|
-
};
|
|
4041
|
-
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
4042
|
-
[key: string]: any;
|
|
4043
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
4044
|
-
file: {
|
|
4045
|
-
required: true;
|
|
4046
|
-
type: import("vue").PropType<FileContents>;
|
|
4047
|
-
};
|
|
4048
|
-
lineAnnotations: {
|
|
4049
|
-
type: import("vue").PropType<DiffLineAnnotation<unknown>[]>;
|
|
4050
|
-
};
|
|
4051
|
-
options: {
|
|
4052
|
-
type: import("vue").PropType<UnresolvedFileOptions<unknown>>;
|
|
4053
|
-
};
|
|
4054
|
-
selectedLines: {
|
|
4055
|
-
default: undefined;
|
|
4056
|
-
type: import("vue").PropType<SelectedLineRange | null | undefined>;
|
|
4057
|
-
};
|
|
4058
|
-
}>> & Readonly<{}>, {
|
|
4059
|
-
selectedLines: SelectedLineRange | null | undefined;
|
|
4060
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
4061
|
-
declare const CodeView: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4062
|
-
items: {
|
|
4063
|
-
required: true;
|
|
4064
|
-
type: import("vue").PropType<readonly CodeViewItem<unknown>[]>;
|
|
4065
|
-
};
|
|
4066
|
-
options: {
|
|
4067
|
-
type: import("vue").PropType<CodeViewOptions<unknown, unknown>>;
|
|
4068
|
-
};
|
|
4069
|
-
selectedLines: {
|
|
4070
|
-
default: undefined;
|
|
4071
|
-
type: import("vue").PropType<CodeViewLineSelection | null | undefined>;
|
|
4072
|
-
};
|
|
4073
|
-
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
4074
|
-
[key: string]: any;
|
|
4075
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
4076
|
-
items: {
|
|
4077
|
-
required: true;
|
|
4078
|
-
type: import("vue").PropType<readonly CodeViewItem<unknown>[]>;
|
|
4079
|
-
};
|
|
4080
|
-
options: {
|
|
4081
|
-
type: import("vue").PropType<CodeViewOptions<unknown, unknown>>;
|
|
4082
|
-
};
|
|
4083
|
-
selectedLines: {
|
|
4084
|
-
default: undefined;
|
|
4085
|
-
type: import("vue").PropType<CodeViewLineSelection | null | undefined>;
|
|
4086
|
-
};
|
|
4087
|
-
}>> & Readonly<{}>, {
|
|
4088
|
-
selectedLines: CodeViewLineSelection | null | undefined;
|
|
4089
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
4090
|
-
//#endregion
|
|
4091
|
-
export { FileContents as _, PatchDiff as a, SelectedLineRange as b, parseDiffFromFile as c, CodeViewLineSelection as d, CodeViewOptions as f, DiffLineAnnotation as g, CodeViewItem as h, MultiFileDiff as i, getSingularPatch as l, FileOptions as m, FileDiff as n, UnresolvedFile as o, FileDiffOptions as p, FileView as r, parsePatchFiles as s, CodeView as t, UnresolvedFileOptions as u, FileDiffMetadata as v, LineAnnotation as y };
|
|
3877
|
+
export { CodeViewLineSelection as a, FileOptions as c, FileContents as d, FileDiffMetadata as f, UnresolvedFileOptions as i, CodeViewItem as l, SelectedLineRange as m, parseDiffFromFile as n, CodeViewOptions as o, LineAnnotation as p, getSingularPatch as r, FileDiffOptions as s, parsePatchFiles as t, DiffLineAnnotation as u };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,58 +1,56 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { t as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { a as
|
|
12
|
-
import {
|
|
13
|
-
import { a as
|
|
14
|
-
import { a as
|
|
15
|
-
import {
|
|
16
|
-
import { n as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
20
|
-
import { t as
|
|
21
|
-
import {
|
|
22
|
-
import
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
export declare
|
|
55
|
-
export declare function fileToUIPart(file: File): Promise<FileUIPart>;
|
|
56
|
-
export declare function useAgentAttachments(options?: UseAgentAttachmentsOptions): AgentAttachments;
|
|
1
|
+
import { AgentSession, AgentSessionDetailsRow, AgentSessionDetailsSection, AgentSessionItem, AgentSessionSurface, AgentSessionTimeline, AgentSessionWorkEntry, AgentSessionWorkGroup, AgentSessionWorkKind } from "./parts/components/agent-session.js";
|
|
2
|
+
import { Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentOrientation, AttachmentSize, AttachmentState, AttachmentTitle, AttachmentTrigger } from "./parts/components/attachment.js";
|
|
3
|
+
import { i as AvatarStackVariant, n as AvatarStackPerson, r as AvatarStackSize, t as AvatarStack } from "./avatar-stack-DPRFuezh.js";
|
|
4
|
+
import { Bubble, BubbleAlign, BubbleContent, BubbleGroup, BubbleReactions, BubbleVariant } from "./parts/components/bubble.js";
|
|
5
|
+
import { ChatMessage } from "./parts/components/chat-message.js";
|
|
6
|
+
import { n as TraceRunView, r as TraceStepView, t as TraceEventLogEntry } from "./index-BYRFQfCd.js";
|
|
7
|
+
import { i as ViteHubUISession, n as AgentToolInspection, r as ViteHubUIMessage, t as AgentInspectionValue } from "./types-Dj7vp0lZ.js";
|
|
8
|
+
import { ChatSession } from "./parts/components/chat-session.js";
|
|
9
|
+
import { Chat, chatActivity } from "./parts/components/chat.js";
|
|
10
|
+
import { CodeBlock, CodeBlockActions, CodeBlockContent, CodeBlockCopyButton, CodeBlockFooter, CodeBlockHeader, CodeBlockLine, CodeBlockLineVariant, CodeBlockSize, CodeBlockTitle, CodeBlockVariant } from "./parts/components/code-block.js";
|
|
11
|
+
import { a as CodeViewLineSelection, c as FileOptions, d as FileContents, f as FileDiffMetadata, i as UnresolvedFileOptions, l as CodeViewItem, m as SelectedLineRange, n as parseDiffFromFile, o as CodeViewOptions, p as LineAnnotation, r as getSingularPatch, s as FileDiffOptions, t as parsePatchFiles, u as DiffLineAnnotation } from "./index-CNY1uNTh.js";
|
|
12
|
+
import { CodeView, FileDiff, FileView, MultiFileDiff, PatchDiff, UnresolvedFile } from "./parts/components/code-view.js";
|
|
13
|
+
import { a as CommentComposerSubmit, c as CommentMentionItemScope, i as CommentComposerSlots, n as CommentComposerFrame, o as CommentComposerVariant, r as CommentComposerSize, s as CommentMentionEmptyScope, t as CommentComposer } from "./comment-composer-fINL5bxo.js";
|
|
14
|
+
import { a as createCommentVisibility, i as commentLeaveMs, n as CommentVisibilityModel, r as CommentVisibilityOptions, t as CommentVisibility } from "./comment-visibility-DsVuVndP.js";
|
|
15
|
+
import { a as CommentThreadAction, c as UseCommentsOptions, d as provideComments, f as useComments, i as CommentScope, l as defaultCommentCan, n as CommentDraft, o as CommentsOutboxState, p as useCommentsContext, r as CommentFilterState, s as CommentsState, t as CommentCan, u as draftPositionKey } from "./comments-D8hulVPy.js";
|
|
16
|
+
import { a as CommentReplySlots, c as CommentThreadSlotScope, d as repliedSinceResolved, i as CommentReplySlotScope, l as CommentThreadSlots, n as CommentAttachmentUrl, o as CommentStatusSlotScope, r as CommentReply, s as CommentThread, t as CommentAttachmentLink, u as messagesSinceResolved } from "./comment-thread-DKJjmWN0.js";
|
|
17
|
+
import { a as CommentPanelVariant, c as CommentUpload, i as CommentPanelSlots, n as CommentGroupSlotScope, o as CommentRowSlotScope, r as CommentPanel, s as CommentRowSlots, t as CommentGroup } from "./comment-panel-CfvdRUMX.js";
|
|
18
|
+
import { n as CommentPlacement, t as CommentLayer } from "./comment-layer-C_sbPIR5.js";
|
|
19
|
+
import { n as CommentList, r as CommentToolbar, t as CommentFilters } from "./comment-list-BcSaLngS.js";
|
|
20
|
+
import { t as CommentPin } from "./comment-pin-DHOdRvUw.js";
|
|
21
|
+
import { n as CommentSelectionBarSide, t as CommentSelectionBar } from "./comment-selection-bar-CyVBNYl9.js";
|
|
22
|
+
import "./parts/components/comments.js";
|
|
23
|
+
import { ConnectionStatus, ConnectionStatusIndicator, ConnectionStatusLabel, ConnectionStatusState, ConnectionStatusValue } from "./parts/components/connection-status.js";
|
|
24
|
+
import { CopyButton, CopyButtonSize, CopyButtonVariant, CopyValue, UseCopyOptions, UseCopyReturn, useCopy } from "./parts/components/copy-button.js";
|
|
25
|
+
import { DEVICE_FRAME_BREAKPOINTS, DEVICE_FRAME_PRESETS, DeviceFrame, DeviceFrameBreakpoint, DeviceFramePreset, DeviceFrameSize } from "./parts/components/device-frame.js";
|
|
26
|
+
import { a as useFileTreeSelection, i as useFileTree, n as FileTreeModel, r as FileTreeOptions, t as FileTree } from "./file-tree-DlT9RGhu.js";
|
|
27
|
+
import { a as ChoicesInputSource, i as ChoicesInputField, n as ChoicesInputClear, o as ChoicesInputState, r as ChoicesInputError, s as ChoicesInputStatus, t as ChoicesInput } from "./choices-input-ByXJvDn1.js";
|
|
28
|
+
import { FilterSearch, FilterSearchSize } from "./parts/components/filter-search.js";
|
|
29
|
+
import { Markdown, MarkdownValue } from "./parts/components/markdown.js";
|
|
30
|
+
import { Marker, MarkerContent, MarkerIcon, MarkerVariant } from "./parts/components/marker.js";
|
|
31
|
+
import { MessageParts } from "./parts/components/message-parts.js";
|
|
32
|
+
import { Message, MessageAlign, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader } from "./parts/components/message.js";
|
|
33
|
+
import "./parts/components/patch-parsers.js";
|
|
34
|
+
import { PromptInput, PromptInputSubmit } from "./parts/components/prompt-input.js";
|
|
35
|
+
import { RelativeTime, RelativeTimeFormat, RelativeTimeValue, provideRelativeNow } from "./parts/components/relative-time.js";
|
|
36
|
+
import { Status, StatusSize, StatusTone } from "./parts/components/status.js";
|
|
37
|
+
import { SyncStatus, SyncStatusIndicator, SyncStatusLabel, SyncStatusValue } from "./parts/components/sync-status.js";
|
|
38
|
+
import { ToolList } from "./parts/components/tool-list.js";
|
|
39
|
+
import { TraceRun } from "./parts/components/trace-run.js";
|
|
40
|
+
import { Trace, TraceCollapsible, TraceCollapsibleContent, TraceCollapsibleTrigger, TraceDescription, TraceIcon, TraceLine, TraceLineStatus, TraceTitle } from "./parts/components/trace.js";
|
|
41
|
+
import { AgentAttachments, PendingAttachment, UseAgentAttachmentsOptions, fileToDataUrl, fileToUIPart, useAgentAttachments } from "./parts/composables/attachments.js";
|
|
42
|
+
import { useHighlightedCode } from "./parts/composables/highlighted-code.js";
|
|
43
|
+
import { a as MessageScrollerContent, c as MessageScrollerViewport, i as MessageScrollerButton, l as calculatePrependScrollTop, n as MessageScrollPosition, o as MessageScrollerContext, r as MessageScroller, s as MessageScrollerItem, t as MessageScrollBehavior, u as useMessageScroller } from "./message-scroller-jrYN9dG9.js";
|
|
44
|
+
import "./headless.js";
|
|
45
|
+
import { t as PlaygroundFiles } from "./share-DM4eNy4q.js";
|
|
46
|
+
import { PlaygroundIssue, PlaygroundOpenEvent, PlaygroundPane, PlaygroundPaneSlotProps, PlaygroundPreset, PlaygroundRender, PlaygroundRenderer, PlaygroundResult } from "./parts/playground/playground-render.js";
|
|
47
|
+
import { a as ViteHubUIOptions, c as useViteHubUI, d as ViteHubUIComponents, i as ViteHubUIInjectionKey, l as useViteHubUIIcons, n as ViteHubUIDefaults, o as createViteHubUI, r as ViteHubUIIconOptions, s as resolveViteHubUIDefaults, t as ResolvedViteHubUIDefaults, u as ViteHubUIComponentName } from "./config-DgxBW013.js";
|
|
48
|
+
//#region src/ui-sdk/components.d.ts
|
|
49
|
+
/**
|
|
50
|
+
* The components that the parts render, on ui-sdk instead of Nuxt UI. Give them to `createViteHubUI({ components })`
|
|
51
|
+
* and load the kit style family. `UIcon` draws the icons that the parts use; to show other icons, such as your own in
|
|
52
|
+
* `createViteHubUI({ icons })`, pass your own `UIcon` next to these.
|
|
53
|
+
*/
|
|
54
|
+
export declare const uiSdkComponents: ViteHubUIComponents;
|
|
57
55
|
//#endregion
|
|
58
|
-
export { type AgentInspectionValue, type AgentToolInspection, Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentOrientation, AttachmentSize, AttachmentState, AttachmentTitle, AttachmentTrigger, AvatarStack, AvatarStackPerson, AvatarStackSize, AvatarStackVariant, Bubble, BubbleAlign, BubbleContent, BubbleGroup, BubbleReactions, BubbleVariant, Chat, ChatMessage, ChatSession, CodeBlock, CodeBlockActions, CodeBlockContent, CodeBlockCopyButton, CodeBlockFooter, CodeBlockHeader, CodeBlockLine, CodeBlockLineVariant, CodeBlockSize, CodeBlockTitle, CodeBlockVariant, CodeView, type CodeViewItem, type CodeViewLineSelection, type CodeViewOptions, CommentComposer, CommentComposerSubmit, CommentComposerVariant, CommentDraft, CommentFilterState, CommentFilters, CommentLayer, CommentList, CommentPin, CommentReply, CommentScope, CommentThread, CommentToolbar, CommentsState, ConnectionStatus, ConnectionStatusIndicator, ConnectionStatusLabel, ConnectionStatusState, ConnectionStatusValue, type DiffLineAnnotation, type FileContents, FileDiff, type FileDiffMetadata, type FileDiffOptions, type FileOptions, FileTree, FileTreeModel, FileTreeOptions, FileView, type LineAnnotation, Markdown, Marker, MarkerContent, MarkerIcon, MarkerVariant, Message, MessageAlign, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader, MessageParts, MessageScrollBehavior, MessageScrollPosition, MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerContext, MessageScrollerItem, MessageScrollerViewport, MultiFileDiff, PatchDiff, PromptInput, PromptInputSubmit, ResolvedViteHubUIDefaults, type SelectedLineRange, SyncStatus, SyncStatusIndicator, SyncStatusLabel, SyncStatusValue, ToolList, Trace, TraceCollapsible, TraceCollapsibleContent, TraceCollapsibleTrigger, TraceDescription, type TraceEventLogEntry, TraceIcon, TraceLine, TraceLineStatus, TraceRun, type TraceRunView, type TraceStepView, TraceTitle, UnresolvedFile, type UnresolvedFileOptions, UseCommentsOptions, ViteHubUIDefaults, ViteHubUIInjectionKey, type ViteHubUIMessage, ViteHubUIOptions, type ViteHubUISession, calculatePrependScrollTop, createViteHubUI, draftPositionKey, getSingularPatch, parseDiffFromFile, parsePatchFiles, provideComments, resolveViteHubUIDefaults, useComments, useCommentsContext, useFileTree, useFileTreeSelection, useHighlightedCode, useMessageScroller, useViteHubUI };
|
|
56
|
+
export { AgentAttachments, type AgentInspectionValue, AgentSession, AgentSessionDetailsRow, AgentSessionDetailsSection, AgentSessionItem, AgentSessionSurface, AgentSessionTimeline, AgentSessionWorkEntry, AgentSessionWorkGroup, AgentSessionWorkKind, type AgentToolInspection, Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentOrientation, AttachmentSize, AttachmentState, AttachmentTitle, AttachmentTrigger, AvatarStack, AvatarStackPerson, AvatarStackSize, AvatarStackVariant, Bubble, BubbleAlign, BubbleContent, BubbleGroup, BubbleReactions, BubbleVariant, Chat, ChatMessage, ChatSession, ChoicesInput, ChoicesInputClear, ChoicesInputError, ChoicesInputField, ChoicesInputSource, ChoicesInputState, ChoicesInputStatus, CodeBlock, CodeBlockActions, CodeBlockContent, CodeBlockCopyButton, CodeBlockFooter, CodeBlockHeader, CodeBlockLine, CodeBlockLineVariant, CodeBlockSize, CodeBlockTitle, CodeBlockVariant, CodeView, type CodeViewItem, type CodeViewLineSelection, type CodeViewOptions, CommentAttachmentLink, CommentAttachmentUrl, CommentCan, CommentComposer, CommentComposerFrame, CommentComposerSize, CommentComposerSlots, CommentComposerSubmit, CommentComposerVariant, CommentDraft, CommentFilterState, CommentFilters, CommentGroup, CommentGroupSlotScope, CommentLayer, CommentList, CommentMentionEmptyScope, CommentMentionItemScope, CommentPanel, CommentPanelSlots, CommentPanelVariant, CommentPin, CommentPlacement, CommentReply, CommentReplySlotScope, CommentReplySlots, CommentRowSlotScope, CommentRowSlots, CommentScope, CommentSelectionBar, CommentSelectionBarSide, CommentStatusSlotScope, CommentThread, CommentThreadAction, CommentThreadSlotScope, CommentThreadSlots, CommentToolbar, CommentUpload, CommentVisibility, CommentVisibilityModel, CommentVisibilityOptions, CommentsOutboxState, CommentsState, ConnectionStatus, ConnectionStatusIndicator, ConnectionStatusLabel, ConnectionStatusState, ConnectionStatusValue, CopyButton, CopyButtonSize, CopyButtonVariant, CopyValue, DEVICE_FRAME_BREAKPOINTS, DEVICE_FRAME_PRESETS, DeviceFrame, DeviceFrameBreakpoint, DeviceFramePreset, DeviceFrameSize, type DiffLineAnnotation, type FileContents, FileDiff, type FileDiffMetadata, type FileDiffOptions, type FileOptions, FileTree, FileTreeModel, FileTreeOptions, FileView, FilterSearch, FilterSearchSize, type LineAnnotation, Markdown, MarkdownValue, Marker, MarkerContent, MarkerIcon, MarkerVariant, Message, MessageAlign, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader, MessageParts, MessageScrollBehavior, MessageScrollPosition, MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerContext, MessageScrollerItem, MessageScrollerViewport, MultiFileDiff, PatchDiff, PendingAttachment, type PlaygroundFiles, type PlaygroundIssue, type PlaygroundOpenEvent, type PlaygroundPane, type PlaygroundPaneSlotProps, type PlaygroundPreset, PlaygroundRender, type PlaygroundRenderer, type PlaygroundResult, PromptInput, PromptInputSubmit, RelativeTime, RelativeTimeFormat, RelativeTimeValue, ResolvedViteHubUIDefaults, type SelectedLineRange, Status, StatusSize, StatusTone, SyncStatus, SyncStatusIndicator, SyncStatusLabel, SyncStatusValue, ToolList, Trace, TraceCollapsible, TraceCollapsibleContent, TraceCollapsibleTrigger, TraceDescription, type TraceEventLogEntry, TraceIcon, TraceLine, TraceLineStatus, TraceRun, type TraceRunView, type TraceStepView, TraceTitle, UnresolvedFile, type UnresolvedFileOptions, UseAgentAttachmentsOptions, UseCommentsOptions, UseCopyOptions, UseCopyReturn, type ViteHubUIComponentName, type ViteHubUIComponents, ViteHubUIDefaults, ViteHubUIIconOptions, ViteHubUIInjectionKey, type ViteHubUIMessage, ViteHubUIOptions, type ViteHubUISession, calculatePrependScrollTop, chatActivity, commentLeaveMs, createCommentVisibility, createViteHubUI, defaultCommentCan, draftPositionKey, fileToDataUrl, fileToUIPart, getSingularPatch, messagesSinceResolved, parseDiffFromFile, parsePatchFiles, provideComments, provideRelativeNow, repliedSinceResolved, resolveViteHubUIDefaults, useAgentAttachments, useComments, useCommentsContext, useCopy, useFileTree, useFileTreeSelection, useHighlightedCode, useMessageScroller, useViteHubUI, useViteHubUIIcons };
|