@vite-hub/ui 0.3.1 → 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 +5 -5
- package/dist/{avatar-stack-DXmCQhxd.d.ts → avatar-stack-DPRFuezh.d.ts} +1 -1
- package/dist/{code-view-D0bqhogi.js → code-view-DsU-xzic.js} +4 -4
- package/dist/comment-attachments-C4yNbcx5.js +20 -0
- package/dist/{comment-composer-Cc8Jvu6u.d.ts → comment-composer-fINL5bxo.d.ts} +3 -3
- package/dist/{comment-layer-ClH4MLj4.d.ts → comment-layer-C_sbPIR5.d.ts} +18 -7
- package/dist/{comment-list-B8hphLfS.d.ts → comment-list-BcSaLngS.d.ts} +3 -3
- package/dist/{comment-panel-fcKSKwLC.d.ts → comment-panel-CfvdRUMX.d.ts} +16 -5
- package/dist/{comment-pin-CvwgRSDR.d.ts → comment-pin-DHOdRvUw.d.ts} +1 -1
- package/dist/{comment-row-Bbm9WwuF.js → comment-row-Bn3nr8l5.js} +1 -1
- package/dist/comment-selection-bar-CyVBNYl9.d.ts +42 -0
- package/dist/{comment-thread-CoTLrdal.d.ts → comment-thread-DKJjmWN0.d.ts} +23 -6
- package/dist/{comments-CkWc2Khc.js → comments-D0d26ghV.js} +65 -9
- package/dist/{comments-Bx2WRsYy.d.ts → comments-D8hulVPy.d.ts} +34 -6
- package/dist/format-orwcdZL_.js +39 -0
- package/dist/headless.d.ts +3 -3
- package/dist/headless.js +1 -1
- package/dist/{index-BD1e8vx5.d.ts → index-BYRFQfCd.d.ts} +6 -0
- package/dist/index.d.ts +13 -12
- package/dist/index.js +4 -3
- package/dist/{markdown-editor-DqdZfIEn.d.ts → markdown-editor-wQF0yD5o.d.ts} +1 -1
- package/dist/markdown-editor.d.ts +1 -1
- package/dist/{message-scroller-Bm1YWTeY.d.ts → message-scroller-jrYN9dG9.d.ts} +2 -2
- package/dist/nuxt.d.ts +1 -1
- package/dist/nuxt.js +8 -2
- package/dist/parts/components/attachment.d.ts +1 -1
- package/dist/parts/components/avatar-stack.d.ts +1 -1
- package/dist/parts/components/avatar-stack.js +1 -1
- package/dist/parts/components/bubble.d.ts +1 -1
- package/dist/parts/components/chat-session.d.ts +1 -1
- package/dist/parts/components/code-block.d.ts +1 -1
- package/dist/parts/components/code-view.js +1 -1
- package/dist/parts/components/comment-composer.d.ts +1 -1
- package/dist/parts/components/comment-layer.d.ts +1 -1
- package/dist/parts/components/comment-layer.js +32 -19
- package/dist/parts/components/comment-list.d.ts +1 -1
- package/dist/parts/components/comment-list.js +3 -2
- package/dist/parts/components/comment-panel.d.ts +1 -1
- package/dist/parts/components/comment-panel.js +24 -12
- package/dist/parts/components/comment-pin.d.ts +1 -1
- package/dist/parts/components/comment-pin.js +1 -1
- 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 -2
- package/dist/parts/components/comment-thread.js +33 -6
- package/dist/parts/components/comments.d.ts +8 -7
- package/dist/parts/components/comments.js +3 -2
- package/dist/parts/components/copy-button.d.ts +1 -1
- package/dist/parts/components/device-frame.d.ts +2 -2
- package/dist/parts/components/markdown-editor.d.ts +1 -1
- package/dist/parts/components/marker.d.ts +1 -1
- package/dist/parts/components/prompt-input.d.ts +3 -3
- package/dist/parts/components/tool-list.d.ts +1 -1
- package/dist/parts/components/trace-run.d.ts +1 -1
- package/dist/parts/components/trace-run.js +1 -1
- package/dist/parts/components/trace.d.ts +1 -1
- package/dist/parts/headless/comments.d.ts +2 -2
- package/dist/parts/headless/comments.js +1 -1
- package/dist/parts/headless/message-scroller.d.ts +1 -1
- package/dist/parts/workspace/browser-support-notice.d.ts +1 -1
- package/dist/parts/workspace/connect-panel.d.ts +1 -1
- package/dist/parts/workspace/playground-container.d.ts +2 -2
- package/dist/parts/workspace/workspace-boot-status.js +1 -1
- package/dist/parts/workspace/workspace-shell.d.ts +1 -1
- package/dist/{pierre-code-view-xgBL6DO7.js → pierre-code-view-NE35tkmR.js} +37 -17
- package/dist/styles.css +119 -1
- package/dist/{types-Dyr6CfBW.d.ts → types-Dj7vp0lZ.d.ts} +1 -1
- package/dist/workspace.d.ts +1 -1
- package/dist/workspace.js +1 -1
- package/package.json +7 -7
- package/dist/format-Du58PlsG.js +0 -18
|
@@ -8,6 +8,12 @@ declare global {
|
|
|
8
8
|
}
|
|
9
9
|
//#endregion
|
|
10
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
|
+
}
|
|
11
17
|
interface TraceContext {
|
|
12
18
|
id: string;
|
|
13
19
|
parentId?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import { AgentSession, AgentSessionDetailsRow, AgentSessionDetailsSection, AgentSessionItem, AgentSessionSurface, AgentSessionTimeline, AgentSessionWorkEntry, AgentSessionWorkGroup, AgentSessionWorkKind } from "./parts/components/agent-session.js";
|
|
2
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-
|
|
3
|
+
import { i as AvatarStackVariant, n as AvatarStackPerson, r as AvatarStackSize, t as AvatarStack } from "./avatar-stack-DPRFuezh.js";
|
|
4
4
|
import { Bubble, BubbleAlign, BubbleContent, BubbleGroup, BubbleReactions, BubbleVariant } from "./parts/components/bubble.js";
|
|
5
5
|
import { ChatMessage } from "./parts/components/chat-message.js";
|
|
6
|
-
import { n as TraceRunView, r as TraceStepView, t as TraceEventLogEntry } from "./index-
|
|
7
|
-
import { i as ViteHubUISession, n as AgentToolInspection, r as ViteHubUIMessage, t as AgentInspectionValue } from "./types-
|
|
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
8
|
import { ChatSession } from "./parts/components/chat-session.js";
|
|
9
9
|
import { Chat, chatActivity } from "./parts/components/chat.js";
|
|
10
10
|
import { CodeBlock, CodeBlockActions, CodeBlockContent, CodeBlockCopyButton, CodeBlockFooter, CodeBlockHeader, CodeBlockLine, CodeBlockLineVariant, CodeBlockSize, CodeBlockTitle, CodeBlockVariant } from "./parts/components/code-block.js";
|
|
11
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
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-
|
|
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
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
|
|
16
|
-
import { a as CommentReplySlots, c as
|
|
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-
|
|
18
|
-
import { n as CommentPlacement, t as CommentLayer } from "./comment-layer-
|
|
19
|
-
import { n as CommentList, r as CommentToolbar, t as CommentFilters } from "./comment-list-
|
|
20
|
-
import { t as CommentPin } from "./comment-pin-
|
|
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";
|
|
21
22
|
import "./parts/components/comments.js";
|
|
22
23
|
import { ConnectionStatus, ConnectionStatusIndicator, ConnectionStatusLabel, ConnectionStatusState, ConnectionStatusValue } from "./parts/components/connection-status.js";
|
|
23
24
|
import { CopyButton, CopyButtonSize, CopyButtonVariant, CopyValue, UseCopyOptions, UseCopyReturn, useCopy } from "./parts/components/copy-button.js";
|
|
@@ -39,7 +40,7 @@ import { TraceRun } from "./parts/components/trace-run.js";
|
|
|
39
40
|
import { Trace, TraceCollapsible, TraceCollapsibleContent, TraceCollapsibleTrigger, TraceDescription, TraceIcon, TraceLine, TraceLineStatus, TraceTitle } from "./parts/components/trace.js";
|
|
40
41
|
import { AgentAttachments, PendingAttachment, UseAgentAttachmentsOptions, fileToDataUrl, fileToUIPart, useAgentAttachments } from "./parts/composables/attachments.js";
|
|
41
42
|
import { useHighlightedCode } from "./parts/composables/highlighted-code.js";
|
|
42
|
-
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-
|
|
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";
|
|
43
44
|
import "./headless.js";
|
|
44
45
|
import { t as PlaygroundFiles } from "./share-DM4eNy4q.js";
|
|
45
46
|
import { PlaygroundIssue, PlaygroundOpenEvent, PlaygroundPane, PlaygroundPaneSlotProps, PlaygroundPreset, PlaygroundRender, PlaygroundRenderer, PlaygroundResult } from "./parts/playground/playground-render.js";
|
|
@@ -52,4 +53,4 @@ import { a as ViteHubUIOptions, c as useViteHubUI, d as ViteHubUIComponents, i a
|
|
|
52
53
|
*/
|
|
53
54
|
export declare const uiSdkComponents: ViteHubUIComponents;
|
|
54
55
|
//#endregion
|
|
55
|
-
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, CommentThread, CommentThreadAction, CommentThreadSlotScope, CommentThreadSlots, CommentToolbar, CommentUpload, CommentVisibility, CommentVisibilityModel, CommentVisibilityOptions, 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 };
|
|
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 };
|
package/dist/index.js
CHANGED
|
@@ -13,12 +13,12 @@ import { Chat, chatActivity } from "./parts/components/chat.js";
|
|
|
13
13
|
import { ChatSession } from "./parts/components/chat-session.js";
|
|
14
14
|
import { n as useCopy, t as CopyButton } from "./copy-button-CRN3kmSD.js";
|
|
15
15
|
import { CodeBlock, CodeBlockActions, CodeBlockContent, CodeBlockCopyButton, CodeBlockFooter, CodeBlockHeader, CodeBlockLine, CodeBlockTitle } from "./parts/components/code-block.js";
|
|
16
|
-
import { a as PatchDiff, i as MultiFileDiff, n as FileDiff, o as UnresolvedFile, r as FileView, t as CodeView } from "./code-view-
|
|
16
|
+
import { a as PatchDiff, i as MultiFileDiff, n as FileDiff, o as UnresolvedFile, r as FileView, t as CodeView } from "./code-view-DsU-xzic.js";
|
|
17
17
|
import { t as CommentComposer } from "./comment-composer-jYv2ULNP.js";
|
|
18
18
|
import { n as fileToUIPart, r as useAgentAttachments, t as fileToDataUrl } from "./attachments-BzTwqRTU.js";
|
|
19
19
|
import { PromptInput } from "./parts/components/prompt-input.js";
|
|
20
20
|
import { commentLeaveMs, createCommentVisibility } from "./parts/headless/comment-visibility.js";
|
|
21
|
-
import { a as useCommentsContext,
|
|
21
|
+
import { a as useCommentsContext, c as messagesSinceResolved, i as useComments, l as repliedSinceResolved, n as draftPositionKey, r as provideComments, t as defaultCommentCan } from "./comments-D0d26ghV.js";
|
|
22
22
|
import { n as provideRelativeNow, t as RelativeTime } from "./relative-time-BVmjOsYG.js";
|
|
23
23
|
import { CommentFilters, CommentList, CommentToolbar } from "./parts/components/comment-list.js";
|
|
24
24
|
import { CommentPin } from "./parts/components/comment-pin.js";
|
|
@@ -26,6 +26,7 @@ import { Marker, MarkerContent, MarkerIcon } from "./parts/components/marker.js"
|
|
|
26
26
|
import { CommentReply, CommentThread } from "./parts/components/comment-thread.js";
|
|
27
27
|
import { CommentLayer } from "./parts/components/comment-layer.js";
|
|
28
28
|
import { CommentPanel } from "./parts/components/comment-panel.js";
|
|
29
|
+
import { CommentSelectionBar } from "./parts/components/comment-selection-bar.js";
|
|
29
30
|
import "./parts/components/comments.js";
|
|
30
31
|
import { ConnectionStatus, ConnectionStatusIndicator, ConnectionStatusLabel } from "./parts/components/connection-status.js";
|
|
31
32
|
import { DEVICE_FRAME_BREAKPOINTS, DEVICE_FRAME_PRESETS, DeviceFrame } from "./parts/components/device-frame.js";
|
|
@@ -676,4 +677,4 @@ const uiSdkComponents = {
|
|
|
676
677
|
UTabs
|
|
677
678
|
};
|
|
678
679
|
//#endregion
|
|
679
|
-
export { AgentSession, AgentSessionDetailsRow, AgentSessionDetailsSection, AgentSessionTimeline, AgentSessionWorkGroup, Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentTitle, AttachmentTrigger, AvatarStack, Bubble, BubbleContent, BubbleGroup, BubbleReactions, Chat, ChatMessage, ChatSession, ChoicesInput, ChoicesInputClear, ChoicesInputError, ChoicesInputField, ChoicesInputStatus, CodeBlock, CodeBlockActions, CodeBlockContent, CodeBlockCopyButton, CodeBlockFooter, CodeBlockHeader, CodeBlockLine, CodeBlockTitle, CodeView, CommentComposer, CommentFilters, CommentLayer, CommentList, CommentPanel, CommentPin, CommentReply, CommentThread, CommentToolbar, ConnectionStatus, ConnectionStatusIndicator, ConnectionStatusLabel, CopyButton, DEVICE_FRAME_BREAKPOINTS, DEVICE_FRAME_PRESETS, DeviceFrame, FileDiff, FileTree, FileView, FilterSearch, Markdown, Marker, MarkerContent, MarkerIcon, Message, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader, MessageParts, MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerViewport, MultiFileDiff, PatchDiff, PlaygroundRender, PromptInput, RelativeTime, Status, SyncStatus, SyncStatusIndicator, SyncStatusLabel, ToolList, Trace, TraceCollapsible, TraceCollapsibleContent, TraceCollapsibleTrigger, TraceDescription, TraceIcon, TraceLine, TraceRun, TraceTitle, UnresolvedFile, ViteHubUIInjectionKey, calculatePrependScrollTop, chatActivity, commentLeaveMs, createCommentVisibility, createViteHubUI, defaultCommentCan, draftPositionKey, fileToDataUrl, fileToUIPart, getSingularPatch, messagesSinceResolved, parseDiffFromFile, parsePatchFiles, provideComments, provideRelativeNow, repliedSinceResolved, resolveViteHubUIDefaults, uiSdkComponents, useAgentAttachments, useComments, useCommentsContext, useCopy, useFileTree, useFileTreeSelection, useHighlightedCode, useMessageScroller, useViteHubUI, useViteHubUIIcons };
|
|
680
|
+
export { AgentSession, AgentSessionDetailsRow, AgentSessionDetailsSection, AgentSessionTimeline, AgentSessionWorkGroup, Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentTitle, AttachmentTrigger, AvatarStack, Bubble, BubbleContent, BubbleGroup, BubbleReactions, Chat, ChatMessage, ChatSession, ChoicesInput, ChoicesInputClear, ChoicesInputError, ChoicesInputField, ChoicesInputStatus, CodeBlock, CodeBlockActions, CodeBlockContent, CodeBlockCopyButton, CodeBlockFooter, CodeBlockHeader, CodeBlockLine, CodeBlockTitle, CodeView, CommentComposer, CommentFilters, CommentLayer, CommentList, CommentPanel, CommentPin, CommentReply, CommentSelectionBar, CommentThread, CommentToolbar, ConnectionStatus, ConnectionStatusIndicator, ConnectionStatusLabel, CopyButton, DEVICE_FRAME_BREAKPOINTS, DEVICE_FRAME_PRESETS, DeviceFrame, FileDiff, FileTree, FileView, FilterSearch, Markdown, Marker, MarkerContent, MarkerIcon, Message, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader, MessageParts, MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerViewport, MultiFileDiff, PatchDiff, PlaygroundRender, PromptInput, RelativeTime, Status, SyncStatus, SyncStatusIndicator, SyncStatusLabel, ToolList, Trace, TraceCollapsible, TraceCollapsibleContent, TraceCollapsibleTrigger, TraceDescription, TraceIcon, TraceLine, TraceRun, TraceTitle, UnresolvedFile, ViteHubUIInjectionKey, calculatePrependScrollTop, chatActivity, commentLeaveMs, createCommentVisibility, createViteHubUI, defaultCommentCan, draftPositionKey, fileToDataUrl, fileToUIPart, getSingularPatch, messagesSinceResolved, parseDiffFromFile, parsePatchFiles, provideComments, provideRelativeNow, repliedSinceResolved, resolveViteHubUIDefaults, uiSdkComponents, useAgentAttachments, useComments, useCommentsContext, useCopy, useFileTree, useFileTreeSelection, useHighlightedCode, useMessageScroller, useViteHubUI, useViteHubUIIcons };
|
|
@@ -187,8 +187,8 @@ declare const MarkdownEditor: import("vue").DefineComponent<import("vue").Extrac
|
|
|
187
187
|
modelValue: string;
|
|
188
188
|
accept: (file: File) => boolean;
|
|
189
189
|
plugins: readonly import("comark").ComarkPlugin<any, any>[];
|
|
190
|
-
editor: Editor;
|
|
191
190
|
upload: string | MarkdownEditorUpload;
|
|
191
|
+
editor: Editor;
|
|
192
192
|
extensions: AnyExtension[];
|
|
193
193
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
194
194
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as MarkdownEditorUpload, r as blobUpload, t as MarkdownEditor } from "./markdown-editor-
|
|
1
|
+
import { n as MarkdownEditorUpload, r as blobUpload, t as MarkdownEditor } from "./markdown-editor-wQF0yD5o.js";
|
|
2
2
|
import { PropType, VNode } from "vue";
|
|
3
3
|
import { Editor, JSONContent } from "@tiptap/core";
|
|
4
4
|
import { PluginKey } from "@tiptap/pm/state";
|
|
@@ -62,10 +62,10 @@ declare const MessageScroller: import("vue").DefineComponent<import("vue").Extra
|
|
|
62
62
|
};
|
|
63
63
|
}>> & Readonly<{}>, {
|
|
64
64
|
as: string;
|
|
65
|
-
edgeThreshold: number;
|
|
66
|
-
previousItemPeek: number;
|
|
67
65
|
autoScroll: boolean;
|
|
68
66
|
defaultScrollPosition: MessageScrollPosition;
|
|
67
|
+
edgeThreshold: number;
|
|
68
|
+
previousItemPeek: number;
|
|
69
69
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
70
70
|
declare const MessageScrollerViewport: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
71
71
|
as: {
|
package/dist/nuxt.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as ViteHubUIOptions, r as ViteHubUIIconOptions } from "./config-DgxBW013.js";
|
|
2
2
|
//#region ../icons/dist/index.d.ts
|
|
3
3
|
/** Name of an icon in the ViteHub set, such as `kv` for `i-vitehub-kv`. */
|
|
4
|
-
type ViteHubIconName = "agent" | "auth" | "blob" | "browser" | "bundle" | "cache" | "channels" | "cms" | "codemods" | "comments" | "compare" | "connections" | "
|
|
4
|
+
type ViteHubIconName = "agent" | "auth" | "blob" | "browser" | "bundle" | "cache" | "channels" | "choices" | "cli" | "cms" | "codemods" | "comments" | "compare" | "connections" | "console" | "content" | "database" | "development" | "device" | "docs" | "email" | "env" | "forge" | "forms" | "gateways" | "guides" | "hosts" | "i18n" | "kv" | "logs" | "markdown-template" | "mcp" | "presets" | "queue" | "rate-limit" | "realtime" | "reference" | "runtime" | "sandbox" | "schedule" | "shell" | "skills" | "source" | "start" | "sync" | "ui" | "usage" | "web-container" | "webhooks" | "workflow" | "workspace";
|
|
5
5
|
/** The ViteHub icon set in the Iconify JSON format, as `@iconify-json/*` packages export it. */
|
|
6
6
|
interface ViteHubIconSet {
|
|
7
7
|
prefix: "vitehub";
|
package/dist/nuxt.js
CHANGED
|
@@ -5,7 +5,7 @@ const icons = {
|
|
|
5
5
|
"prefix": "vitehub",
|
|
6
6
|
"info": {
|
|
7
7
|
"name": "ViteHub",
|
|
8
|
-
"total":
|
|
8
|
+
"total": 51,
|
|
9
9
|
"author": {
|
|
10
10
|
"name": "ViteHub",
|
|
11
11
|
"url": "https://github.com/vite-hub/vitehub/tree/main/packages/icons"
|
|
@@ -27,14 +27,16 @@ const icons = {
|
|
|
27
27
|
"bundle": { "body": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"m21 7.5-9-4.5-9 4.5v9l9 4.5 9-4.5zM3 7.5l9 4.5 9-4.5M12 12v9\"/><g data-motion=\"\"><path d=\"m7 5.5 9 4.5\"/></g></g>" },
|
|
28
28
|
"cache": { "body": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><rect x=\"3\" y=\"4\" width=\"18\" height=\"16\" rx=\"2\"/><g data-motion=\"\"><path d=\"M13 7.5 9 12.5h3.5l-1 4 4-5H12z\"/></g></g>" },
|
|
29
29
|
"channels": { "body": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"M3 16.5V6a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2H6.5z\"/><g data-motion=\"\"><path d=\"M18 8h1a2 2 0 0 1 2 2v10.5L17.5 17H11a2 2 0 0 1-2-2v-.5\"/></g></g>" },
|
|
30
|
+
"choices": { "body": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"M12 21v-9\"/><path d=\"M12 12 3 3M3 7.5V3h4.5M12 12l9-9\"/><g data-motion=\"\"><path d=\"M21 7.5V3h-4.5\"/></g></g>" },
|
|
31
|
+
"cli": { "body": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"m4 6.5 6 5.5-6 5.5\"/><g data-motion=\"\"><path d=\"M12.5 18H20\"/></g></g>" },
|
|
30
32
|
"cms": { "body": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"M19 10.5V5a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5\"/><path d=\"M9 7.5h6M9 11.5h3\"/><g data-motion=\"\"><path d=\"M17.5 13.5l2.5 2.5-5 5h-2.5v-2.5z\"/></g></g>" },
|
|
31
33
|
"codemods": { "body": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"m7.5 7-4.5 5 4.5 5\"/><g data-motion=\"\"><path d=\"M11 12h10m-3.5-3.5L21 12l-3.5 3.5\"/></g></g>" },
|
|
32
34
|
"comments": { "body": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"M12 20H4v-8a8 8 0 1 1 8 8z\"/><g data-motion=\"\"><path d=\"M8.5 10.5h7M8.5 14h4.5\"/></g></g>" },
|
|
33
35
|
"compare": { "body": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"M4 8h16M16 4l4 4-4 4\"/><g data-motion=\"\"><path d=\"M20 16H4M8 12l-4 4 4 4\"/></g></g>" },
|
|
34
36
|
"connections": { "body": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"M12 16.5V21\"/><g data-motion=\"\"><path d=\"M9 3v4M15 3v4M6.5 7h11v4a5.5 5.5 0 0 1-11 0z\"/></g></g>" },
|
|
37
|
+
"console": { "body": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><rect x=\"3\" y=\"4.5\" width=\"18\" height=\"15\" rx=\"2\"/><path d=\"M8.5 4.5v15\"/><g data-motion=\"\"><path d=\"M11.5 9H17M11.5 12h4M11.5 15H16\"/></g></g>" },
|
|
35
38
|
"content": { "body": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><rect x=\"5\" y=\"3\" width=\"14\" height=\"18\" rx=\"2\"/><path d=\"M9 7.5h6\"/><g data-motion=\"\"><path d=\"M9 11.5h6M9 15.5h4\"/></g></g>" },
|
|
36
39
|
"database": { "body": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"M4 6v12c0 1.66 3.58 3 8 3s8-1.34 8-3V6\"/><path d=\"M4 12c0 1.66 3.58 3 8 3s8-1.34 8-3\"/><g data-motion=\"\"><path d=\"M4 6c0-1.66 3.58-3 8-3s8 1.34 8 3-3.58 3-8 3-8-1.34-8-3z\"/></g></g>" },
|
|
37
|
-
"decisions": { "body": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"M12 21v-9\"/><path d=\"M12 12 3 3M3 7.5V3h4.5M12 12l9-9\"/><g data-motion=\"\"><path d=\"M21 7.5V3h-4.5\"/></g></g>" },
|
|
38
40
|
"development": { "body": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"m8 7-5 5 5 5M16 7l5 5-5 5\"/><g data-motion=\"\"><path d=\"m13.5 5-3 14\"/></g></g>" },
|
|
39
41
|
"device": { "body": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><rect x=\"6.5\" y=\"3\" width=\"11\" height=\"18\" rx=\"2.5\"/><path d=\"M10.5 18h3\"/><g data-motion=\"\"><path d=\"M9.5 7.5h5M9.5 10.5h5M9.5 13.5h3\"/></g></g>" },
|
|
40
42
|
"docs": { "body": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"M12 6.5C10.5 5 8 4.5 3 4.5v14c5 0 7.5.5 9 2\"/><g data-motion=\"\"><path d=\"M12 6.5c1.5-1.5 4-2 9-2v14c-5 0-7.5.5-9 2V6.5\"/></g></g>" },
|
|
@@ -48,11 +50,14 @@ const icons = {
|
|
|
48
50
|
"i18n": { "body": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"M3.5 6h9M8 3.5V6\"/><path d=\"M5 9.5l5 5M4 15l5-5 2-4\"/><g data-motion=\"\"><path d=\"M12.5 21l4-9 4 9M14 18h5\"/></g></g>" },
|
|
49
51
|
"kv": { "body": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><rect x=\"3\" y=\"5\" width=\"18\" height=\"14\" rx=\"2\"/><path d=\"M9 5v14M3 12h18\"/><g data-motion=\"\"><path d=\"M12.5 8.5h5M12.5 15.5h3.5\"/></g></g>" },
|
|
50
52
|
"logs": { "body": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"M4 6h2M4 12h2M4 18h2\"/><g data-motion=\"\"><path d=\"M9.5 6H20M9.5 12h7.5M9.5 18H19\"/></g></g>" },
|
|
53
|
+
"markdown-template": { "body": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><rect x=\"3\" y=\"5\" width=\"18\" height=\"14\" rx=\"2\"/><path d=\"M6.5 15.5v-7l2.5 3 2.5-3v7\"/><g data-motion=\"\"><path d=\"M16.5 8.5v7M14.5 13.5l2 2 2-2\"/></g></g>" },
|
|
51
54
|
"mcp": { "body": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><rect x=\"3\" y=\"3\" width=\"18\" height=\"18\" rx=\"2\"/><path d=\"M12 15.5v1.5\"/><g data-motion=\"\"><path d=\"M9.5 8.5v3.5M14.5 8.5v3.5\"/></g></g>" },
|
|
55
|
+
"presets": { "body": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"M17 3H5a2 2 0 0 0-2 2v12\"/><g data-motion=\"\"><rect x=\"7\" y=\"7\" width=\"14\" height=\"14\" rx=\"2\"/><path d=\"M12 12.5v2M16 12.5v2\"/></g></g>" },
|
|
52
56
|
"queue": { "body": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"M16.5 12H21M18 9l3 3-3 3\"/><g data-motion=\"\"><rect x=\"3\" y=\"7\" width=\"5\" height=\"10\" rx=\"1.5\"/><rect x=\"9.5\" y=\"7\" width=\"5\" height=\"10\" rx=\"1.5\"/></g></g>" },
|
|
53
57
|
"rate-limit": { "body": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"M3 16a9 9 0 0 1 18 0M6 20h12\"/><path d=\"M12 16h.01\"/><g data-motion=\"\"><path d=\"m12 16 4-5\"/></g></g>" },
|
|
54
58
|
"realtime": { "body": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><circle cx=\"12\" cy=\"12\" r=\"1.5\"/><path d=\"M8.5 8.5a5 5 0 0 0 0 7M15.5 8.5a5 5 0 0 1 0 7\"/><g data-motion=\"\"><path d=\"M5.5 5.5a9.2 9.2 0 0 0 0 13M18.5 5.5a9.2 9.2 0 0 1 0 13\"/></g></g>" },
|
|
55
59
|
"reference": { "body": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"M8 3.5H7a2 2 0 0 0-2 2V10a2 2 0 0 1-2 2 2 2 0 0 1 2 2v4.5a2 2 0 0 0 2 2h1\"/><g data-motion=\"\"><path d=\"M16 3.5h1a2 2 0 0 1 2 2V10a2 2 0 0 0 2 2 2 2 0 0 0-2 2v4.5a2 2 0 0 1-2 2h-1\"/></g></g>" },
|
|
60
|
+
"runtime": { "body": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><rect x=\"6\" y=\"6\" width=\"12\" height=\"12\" rx=\"2\"/><path d=\"M9.5 3v3M14.5 3v3M9.5 18v3M14.5 18v3M3 9.5h3M3 14.5h3M18 9.5h3M18 14.5h3\"/><g data-motion=\"\"><rect x=\"9.5\" y=\"9.5\" width=\"5\" height=\"5\" rx=\"1\"/></g></g>" },
|
|
56
61
|
"sandbox": { "body": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><path d=\"M3 8V5a2 2 0 0 1 2-2h3M16 3h3a2 2 0 0 1 2 2v3M21 16v3a2 2 0 0 1-2 2h-3M8 21H5a2 2 0 0 1-2-2v-3\"/><g data-motion=\"\"><rect x=\"8\" y=\"8\" width=\"8\" height=\"8\" rx=\"1.5\"/></g></g>" },
|
|
57
62
|
"schedule": { "body": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><rect x=\"3\" y=\"5\" width=\"18\" height=\"16\" rx=\"2\"/><path d=\"M3 10h18M8 3v4M16 3v4\"/><g data-motion=\"\"><rect x=\"7\" y=\"13.5\" width=\"3.5\" height=\"3.5\" rx=\"1\"/></g></g>" },
|
|
58
63
|
"shell": { "body": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><rect x=\"3\" y=\"4\" width=\"18\" height=\"16\" rx=\"2\"/><path d=\"m7 9.5 3 2.5-3 2.5\"/><g data-motion=\"\"><path d=\"M12.5 15h4.5\"/></g></g>" },
|
|
@@ -109,6 +114,7 @@ const partFamilies = {
|
|
|
109
114
|
"CommentPanel",
|
|
110
115
|
"CommentPin",
|
|
111
116
|
"CommentReply",
|
|
117
|
+
"CommentSelectionBar",
|
|
112
118
|
"CommentThread",
|
|
113
119
|
"CommentToolbar"
|
|
114
120
|
],
|
|
@@ -52,7 +52,7 @@ export declare const AttachmentMedia: import("vue").DefineComponent<import("vue"
|
|
|
52
52
|
type: PropType<"icon" | "image">;
|
|
53
53
|
};
|
|
54
54
|
}>> & Readonly<{}>, {
|
|
55
|
-
variant: "
|
|
55
|
+
variant: "image" | "icon";
|
|
56
56
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
57
57
|
export declare const AttachmentContent: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
58
58
|
[key: string]: any;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as AvatarStackVariant, n as AvatarStackPerson, r as AvatarStackSize, t as AvatarStack } from "../../avatar-stack-
|
|
1
|
+
import { i as AvatarStackVariant, n as AvatarStackPerson, r as AvatarStackSize, t as AvatarStack } from "../../avatar-stack-DPRFuezh.js";
|
|
2
2
|
export { AvatarStack, AvatarStackPerson, AvatarStackSize, AvatarStackVariant };
|
|
@@ -26,8 +26,8 @@ export declare const Bubble: import("vue").DefineComponent<import("vue").Extract
|
|
|
26
26
|
type: PropType<BubbleVariant>;
|
|
27
27
|
};
|
|
28
28
|
}>> & Readonly<{}>, {
|
|
29
|
-
align: BubbleAlign;
|
|
30
29
|
variant: BubbleVariant;
|
|
30
|
+
align: BubbleAlign;
|
|
31
31
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
32
32
|
export declare const BubbleContent: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
33
33
|
as: {
|
|
@@ -97,8 +97,8 @@ export declare const CodeBlockContent: import("vue").DefineComponent<import("vue
|
|
|
97
97
|
type: BooleanConstructor;
|
|
98
98
|
};
|
|
99
99
|
}>> & Readonly<{}>, {
|
|
100
|
-
wrap: boolean;
|
|
101
100
|
lineNumbers: boolean;
|
|
102
101
|
startLine: number;
|
|
102
|
+
wrap: boolean;
|
|
103
103
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
104
104
|
//#endregion
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as PatchDiff, i as MultiFileDiff, n as FileDiff, o as UnresolvedFile, r as FileView, t as CodeView } from "../../code-view-
|
|
1
|
+
import { a as PatchDiff, i as MultiFileDiff, n as FileDiff, o as UnresolvedFile, r as FileView, t as CodeView } from "../../code-view-DsU-xzic.js";
|
|
2
2
|
export { CodeView, FileDiff, FileView, MultiFileDiff, PatchDiff, UnresolvedFile };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
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-
|
|
1
|
+
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";
|
|
2
2
|
export { CommentComposer, CommentComposerFrame, CommentComposerSize, CommentComposerSlots, CommentComposerSubmit, CommentComposerVariant, CommentMentionEmptyScope, CommentMentionItemScope };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as CommentPlacement, t as CommentLayer } from "../../comment-layer-
|
|
1
|
+
import { n as CommentPlacement, t as CommentLayer } from "../../comment-layer-C_sbPIR5.js";
|
|
2
2
|
export { CommentLayer, CommentPlacement };
|
|
@@ -2,8 +2,9 @@ import { t as uiErrorDiagnostics } from "../../error-diagnostics-SXtnk6bz.js";
|
|
|
2
2
|
import { r as consumedPointerEvents } from "../../comments-context-C2lOZyQ5.js";
|
|
3
3
|
import { n as excerpt } from "../../comment-person-CLPlW_SS.js";
|
|
4
4
|
import { t as CommentComposer } from "../../comment-composer-jYv2ULNP.js";
|
|
5
|
-
import { i as useComments, n as draftPositionKey, r as provideComments } from "../../comments-
|
|
6
|
-
import {
|
|
5
|
+
import { i as useComments, n as draftPositionKey, o as commentTitle, r as provideComments, s as deliveryAttributes, u as commentThreadKey } from "../../comments-D0d26ghV.js";
|
|
6
|
+
import { t as useCommentAttachments } from "../../comment-attachments-C4yNbcx5.js";
|
|
7
|
+
import { n as threadRow } from "../../comment-row-Bn3nr8l5.js";
|
|
7
8
|
import { CommentList, CommentToolbar } from "./comment-list.js";
|
|
8
9
|
import { CommentPin } from "./comment-pin.js";
|
|
9
10
|
import { CommentThread } from "./comment-thread.js";
|
|
@@ -73,8 +74,13 @@ const CommentLayer = defineComponent({
|
|
|
73
74
|
navigate: { type: Function },
|
|
74
75
|
/** What the signed-in user may do in a thread. Defaults to the `can` of the comments state. */
|
|
75
76
|
can: { type: Function },
|
|
76
|
-
/** Turns attached files into attachment keys
|
|
77
|
+
/** Turns attached files into attachment keys before the comment is saved or sent. */
|
|
77
78
|
upload: { type: Function },
|
|
79
|
+
/** Save raw files with outbox entries. Set only when the server accepts file uploads. `upload` takes precedence. */
|
|
80
|
+
queueFiles: {
|
|
81
|
+
default: false,
|
|
82
|
+
type: Boolean
|
|
83
|
+
},
|
|
78
84
|
/** The file types that the boxes take, such as `image/*`. */
|
|
79
85
|
accept: { type: String },
|
|
80
86
|
/** Gives the URL of an attachment key. With it, image attachments show as thumbnails. */
|
|
@@ -119,8 +125,7 @@ const CommentLayer = defineComponent({
|
|
|
119
125
|
watch(() => state.draft.value, (next, previous) => {
|
|
120
126
|
if (next !== previous) draftFiles.value = next?.files ? [...next.files] : [];
|
|
121
127
|
});
|
|
122
|
-
const
|
|
123
|
-
const keys = async (files) => attachmentsOn.value && files.length > 0 && props.upload ? props.upload(files) : [];
|
|
128
|
+
const { enabled: attachmentsOn, prepare } = useCommentAttachments(state, props);
|
|
124
129
|
const user = computed(() => state.user.value);
|
|
125
130
|
const pinned = computed(() => state.threads.value.filter((thread) => state.pageThreads.value.includes(thread) || state.shown.value.has(thread.id) || state.leaving.value.has(thread.id)));
|
|
126
131
|
const drawn = computed(() => pinned.value.filter((thread) => state.shown.value.has(thread.id) || state.leaving.value.has(thread.id)));
|
|
@@ -179,11 +184,11 @@ const CommentLayer = defineComponent({
|
|
|
179
184
|
};
|
|
180
185
|
let returnTo = null;
|
|
181
186
|
let restoring = false;
|
|
187
|
+
watch(() => state.opened.value && commentThreadKey(state.opened.value), (key) => {
|
|
188
|
+
if (key) nextTick(() => layer.value?.querySelector("[data-slot='comment-thread']:not([data-preview])")?.focus());
|
|
189
|
+
});
|
|
182
190
|
watch(() => state.openId.value, (id, previous) => {
|
|
183
|
-
if (id)
|
|
184
|
-
nextTick(() => layer.value?.querySelector("[data-slot='comment-thread']:not([data-preview])")?.focus());
|
|
185
|
-
return;
|
|
186
|
-
}
|
|
191
|
+
if (id) return;
|
|
187
192
|
returnTo = null;
|
|
188
193
|
const active = uiRoot().activeElement;
|
|
189
194
|
const thread = layer.value?.querySelector("[data-slot='comment-thread']:not([data-preview])");
|
|
@@ -331,10 +336,10 @@ const CommentLayer = defineComponent({
|
|
|
331
336
|
const body = draft.body;
|
|
332
337
|
const mentions = draft.mentions;
|
|
333
338
|
try {
|
|
334
|
-
const attachments = await
|
|
339
|
+
const { attachments, files } = await prepare(submit.files);
|
|
335
340
|
if (state.draft.value !== draft || draft.body !== body || draft.mentions !== mentions || draftFiles.value !== submitted) return;
|
|
336
341
|
draft.attachments = attachments;
|
|
337
|
-
if (await state.send() && draftFiles.value === submitted) draftFiles.value = [];
|
|
342
|
+
if (await state.send({ files }) && draftFiles.value === submitted) draftFiles.value = [];
|
|
338
343
|
} catch (error) {
|
|
339
344
|
draft.error = error instanceof Error ? error.message : "The files could not be uploaded. Try again.";
|
|
340
345
|
} finally {
|
|
@@ -349,12 +354,15 @@ const CommentLayer = defineComponent({
|
|
|
349
354
|
user: user.value,
|
|
350
355
|
users: state.users
|
|
351
356
|
});
|
|
352
|
-
const screenWidth = ref(
|
|
357
|
+
const screenWidth = ref(0);
|
|
353
358
|
const onResize = () => {
|
|
354
359
|
screenWidth.value = window.innerWidth;
|
|
355
360
|
measureDraft();
|
|
356
361
|
};
|
|
357
|
-
onMounted(() =>
|
|
362
|
+
onMounted(() => {
|
|
363
|
+
screenWidth.value = window.innerWidth;
|
|
364
|
+
window.addEventListener("resize", onResize, { passive: true });
|
|
365
|
+
});
|
|
358
366
|
onBeforeUnmount(() => window.removeEventListener("resize", onResize));
|
|
359
367
|
const inMargin = computed(() => props.placement === "margin" && screenWidth.value >= marginMinWidth);
|
|
360
368
|
const cardHeights = reactive(/* @__PURE__ */ new Map());
|
|
@@ -375,12 +383,13 @@ const CommentLayer = defineComponent({
|
|
|
375
383
|
measure?.observe(element);
|
|
376
384
|
} else cards.delete(key);
|
|
377
385
|
};
|
|
386
|
+
const statusSlot = () => slots.status ? { status: slots.status } : void 0;
|
|
378
387
|
const threadView = (thread) => h(CommentThread, {
|
|
379
388
|
accept: props.accept,
|
|
380
389
|
attachmentUrl: props.attachmentUrl,
|
|
381
390
|
attachments: attachmentsOn.value,
|
|
382
391
|
can: props.can,
|
|
383
|
-
key: thread
|
|
392
|
+
key: commentThreadKey(thread),
|
|
384
393
|
detached: state.positions.value.get(thread.id)?.detached === true,
|
|
385
394
|
readOnly: props.readOnly,
|
|
386
395
|
size: props.size,
|
|
@@ -388,14 +397,17 @@ const CommentLayer = defineComponent({
|
|
|
388
397
|
onDelete: (messageId) => state.remove(thread.id, messageId),
|
|
389
398
|
onEdit: (messageId, body, mentions) => state.edit(thread.id, messageId, body, mentions),
|
|
390
399
|
onReopen: () => state.reopen(thread.id),
|
|
391
|
-
onReply: async (body, mentions,
|
|
400
|
+
onReply: async (body, mentions, list) => {
|
|
401
|
+
const { attachments, files } = await prepare(list);
|
|
402
|
+
return state.reply(thread.id, body, mentions, attachments, files);
|
|
403
|
+
},
|
|
392
404
|
onResolve: async () => {
|
|
393
405
|
await state.resolve(thread.id);
|
|
394
406
|
state.close();
|
|
395
407
|
},
|
|
396
408
|
thread,
|
|
397
409
|
user: user.value
|
|
398
|
-
});
|
|
410
|
+
}, statusSlot());
|
|
399
411
|
const marginLayout = (spots, draftY) => {
|
|
400
412
|
const entries = pinned.value.flatMap((thread) => {
|
|
401
413
|
const spot = state.shown.value.has(thread.id) ? spots.get(thread.id) : void 0;
|
|
@@ -432,10 +444,11 @@ const CommentLayer = defineComponent({
|
|
|
432
444
|
const thread = entry.thread;
|
|
433
445
|
if (!thread || entry.active) return [];
|
|
434
446
|
return [h("button", {
|
|
435
|
-
"aria-label":
|
|
447
|
+
"aria-label": `${commentTitle(thread)}: ${excerpt(thread.messages[0]?.body ?? "")}`,
|
|
436
448
|
"data-margin-key": entry.key,
|
|
437
449
|
"data-slot": "comment-margin-card",
|
|
438
450
|
"data-status": thread.status,
|
|
451
|
+
...deliveryAttributes(thread.delivery),
|
|
439
452
|
key: entry.key,
|
|
440
453
|
onClick: () => state.open(thread),
|
|
441
454
|
onPointerenter: () => {
|
|
@@ -492,7 +505,7 @@ const CommentLayer = defineComponent({
|
|
|
492
505
|
"data-shape": pinShape(thread.anchor.kind),
|
|
493
506
|
"data-thread-id": thread.id,
|
|
494
507
|
excerpt: excerpt(thread.messages[0]?.body ?? ""),
|
|
495
|
-
n: thread.n,
|
|
508
|
+
...thread.n ? { n: thread.n } : {},
|
|
496
509
|
onHover: () => {
|
|
497
510
|
if (!open && !restoring && !state.draft.value) state.hoverId.value = thread.id;
|
|
498
511
|
},
|
|
@@ -508,7 +521,7 @@ const CommentLayer = defineComponent({
|
|
|
508
521
|
preview: true,
|
|
509
522
|
size: props.size,
|
|
510
523
|
thread
|
|
511
|
-
})) : null])];
|
|
524
|
+
}, statusSlot())) : null])];
|
|
512
525
|
});
|
|
513
526
|
const draft = state.draft.value;
|
|
514
527
|
const draftPosition = draft && state.positions.value.get("draft");
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as CommentList, r as CommentToolbar, t as CommentFilters } from "../../comment-list-
|
|
1
|
+
import { n as CommentList, r as CommentToolbar, t as CommentFilters } from "../../comment-list-BcSaLngS.js";
|
|
2
2
|
export { CommentFilters, CommentList, CommentToolbar };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as useUIComponent } from "../../nuxt-ui-DSQFzq3s.js";
|
|
2
2
|
import { a as useViteHubUIIcons } from "../../config-Dk67emQt.js";
|
|
3
3
|
import { AvatarStack } from "./avatar-stack.js";
|
|
4
|
-
import { a as useCommentsContext } from "../../comments-
|
|
5
|
-
import { n as threadRow, t as rowSlotScope } from "../../comment-row-
|
|
4
|
+
import { a as useCommentsContext, s as deliveryAttributes } from "../../comments-D0d26ghV.js";
|
|
5
|
+
import { n as threadRow, t as rowSlotScope } from "../../comment-row-Bn3nr8l5.js";
|
|
6
6
|
import { defineComponent, h } from "vue";
|
|
7
7
|
//#region src/components/comment-list.ts
|
|
8
8
|
const commentsProp = { type: Object };
|
|
@@ -85,6 +85,7 @@ const CommentList = defineComponent({
|
|
|
85
85
|
"data-focus-inset": "",
|
|
86
86
|
"data-slot": "comment-list-item",
|
|
87
87
|
"data-status": thread.status,
|
|
88
|
+
...deliveryAttributes(thread.delivery),
|
|
88
89
|
href: comments.link(thread),
|
|
89
90
|
onClick: (event) => select(thread, event)
|
|
90
91
|
}, slots.row?.(rowSlotScope(thread)) ?? threadRow(thread, {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
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-
|
|
1
|
+
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";
|
|
2
2
|
export { CommentGroup, CommentGroupSlotScope, CommentPanel, CommentPanelSlots, CommentPanelVariant, CommentRowSlotScope, CommentRowSlots, CommentUpload };
|
|
@@ -2,8 +2,9 @@ import { r as useUIComponent } from "../../nuxt-ui-DSQFzq3s.js";
|
|
|
2
2
|
import { t as uiErrorDiagnostics } from "../../error-diagnostics-SXtnk6bz.js";
|
|
3
3
|
import { n as injectComments } from "../../comments-context-C2lOZyQ5.js";
|
|
4
4
|
import { t as CommentComposer } from "../../comment-composer-jYv2ULNP.js";
|
|
5
|
-
import { a as useCommentsContext, i as useComments, r as provideComments, s as
|
|
6
|
-
import {
|
|
5
|
+
import { a as useCommentsContext, d as useSelectedComment, i as useComments, l as repliedSinceResolved, o as commentTitle, r as provideComments, s as deliveryAttributes, u as commentThreadKey } from "../../comments-D0d26ghV.js";
|
|
6
|
+
import { t as useCommentAttachments } from "../../comment-attachments-C4yNbcx5.js";
|
|
7
|
+
import { n as threadRow, t as rowSlotScope } from "../../comment-row-Bn3nr8l5.js";
|
|
7
8
|
import { CommentThread } from "./comment-thread.js";
|
|
8
9
|
import { computed, defineComponent, h, nextTick, ref, watch } from "vue";
|
|
9
10
|
//#region src/components/comment-panel.ts
|
|
@@ -50,8 +51,13 @@ const CommentPanel = defineComponent({
|
|
|
50
51
|
default: false,
|
|
51
52
|
type: Boolean
|
|
52
53
|
},
|
|
53
|
-
/** Turns attached files into attachment keys
|
|
54
|
+
/** Turns attached files into attachment keys before the comment is saved or sent. */
|
|
54
55
|
upload: { type: Function },
|
|
56
|
+
/** Save raw files with outbox entries. Set only when the server accepts file uploads. `upload` takes precedence. */
|
|
57
|
+
queueFiles: {
|
|
58
|
+
default: false,
|
|
59
|
+
type: Boolean
|
|
60
|
+
},
|
|
55
61
|
/** The file types that the boxes take, such as `image/*`. */
|
|
56
62
|
accept: { type: String },
|
|
57
63
|
/** Gives the URL of an attachment key. With it, image attachments show as thumbnails. */
|
|
@@ -98,13 +104,16 @@ const CommentPanel = defineComponent({
|
|
|
98
104
|
const status = computed(() => props.status ?? localStatus.value);
|
|
99
105
|
const scoped = computed(() => state.threads.value.filter((thread) => state.scope.value === "site" || sameSubject(thread.subject, state.subject.value)));
|
|
100
106
|
const rows = computed(() => scoped.value.filter((thread) => thread.status === status.value || status.value === "open" && repliedSinceResolved(thread)));
|
|
101
|
-
const opened =
|
|
107
|
+
const opened = useSelectedComment(state.threads, threadId);
|
|
102
108
|
watch(opened, (thread, _previous, onCleanup) => {
|
|
103
109
|
if (thread) onCleanup(state.retainMark(thread.id));
|
|
104
110
|
}, {
|
|
105
111
|
immediate: true,
|
|
106
112
|
flush: "sync"
|
|
107
113
|
});
|
|
114
|
+
watch(opened, (thread) => {
|
|
115
|
+
if (thread && thread.id !== threadId.value) setThread(thread.id);
|
|
116
|
+
});
|
|
108
117
|
const body = ref("");
|
|
109
118
|
const mentions = ref([]);
|
|
110
119
|
const files = ref([]);
|
|
@@ -124,14 +133,13 @@ const CommentPanel = defineComponent({
|
|
|
124
133
|
nextTick(() => root.value?.querySelector("[data-slot='comment-thread']")?.focus());
|
|
125
134
|
}
|
|
126
135
|
function back() {
|
|
127
|
-
const id =
|
|
136
|
+
const id = opened.value?.id;
|
|
128
137
|
setThread(null);
|
|
129
138
|
nextTick(() => {
|
|
130
139
|
[...root.value?.querySelectorAll("[data-slot='comment-panel-item']") ?? []].find((row) => row.dataset.threadId === id)?.focus();
|
|
131
140
|
});
|
|
132
141
|
}
|
|
133
|
-
const
|
|
134
|
-
const keys = async (list) => attachmentsOn.value && list.length > 0 && props.upload ? props.upload(list) : [];
|
|
142
|
+
const { enabled: attachmentsOn, prepare } = useCommentAttachments(state, props);
|
|
135
143
|
const subjectKey = () => `${state.subject.value.kind}\u0000${state.subject.value.id}`;
|
|
136
144
|
let sending = 0;
|
|
137
145
|
watch(subjectKey, () => {
|
|
@@ -153,10 +161,10 @@ const CommentPanel = defineComponent({
|
|
|
153
161
|
mentions: mentions.value
|
|
154
162
|
};
|
|
155
163
|
try {
|
|
156
|
-
const
|
|
164
|
+
const attached = await prepare(submit.files);
|
|
157
165
|
if (run !== sending) return;
|
|
158
166
|
await state.create({
|
|
159
|
-
|
|
167
|
+
...attached,
|
|
160
168
|
body: submit.body,
|
|
161
169
|
mentions: submit.mentions
|
|
162
170
|
});
|
|
@@ -189,6 +197,7 @@ const CommentPanel = defineComponent({
|
|
|
189
197
|
"data-focus-inset": "",
|
|
190
198
|
"data-slot": "comment-panel-item",
|
|
191
199
|
"data-status": thread.status,
|
|
200
|
+
...deliveryAttributes(thread.delivery),
|
|
192
201
|
"data-thread-id": thread.id,
|
|
193
202
|
onClick: () => select(thread),
|
|
194
203
|
type: "button"
|
|
@@ -270,7 +279,7 @@ const CommentPanel = defineComponent({
|
|
|
270
279
|
can: props.can,
|
|
271
280
|
detached: state.positions.value.get(thread.id)?.detached === true,
|
|
272
281
|
dismissible: false,
|
|
273
|
-
key: thread
|
|
282
|
+
key: commentThreadKey(thread),
|
|
274
283
|
navigation: "back",
|
|
275
284
|
onClose: back,
|
|
276
285
|
onDelete: async (messageId) => {
|
|
@@ -278,7 +287,10 @@ const CommentPanel = defineComponent({
|
|
|
278
287
|
},
|
|
279
288
|
onEdit: (messageId, text, ids) => state.edit(thread.id, messageId, text, ids),
|
|
280
289
|
onReopen: () => state.reopen(thread.id),
|
|
281
|
-
onReply: async (text, ids,
|
|
290
|
+
onReply: async (text, ids, list) => {
|
|
291
|
+
const { attachments, files } = await prepare(list);
|
|
292
|
+
return state.reply(thread.id, text, ids, attachments, files);
|
|
293
|
+
},
|
|
282
294
|
onResolve: () => state.resolve(thread.id),
|
|
283
295
|
people: props.people,
|
|
284
296
|
readOnly: props.readOnly,
|
|
@@ -286,7 +298,7 @@ const CommentPanel = defineComponent({
|
|
|
286
298
|
user: state.user.value
|
|
287
299
|
}, threadSlots());
|
|
288
300
|
return () => h("section", {
|
|
289
|
-
"aria-label": opened.value ?
|
|
301
|
+
"aria-label": opened.value ? commentTitle(opened.value) : props.title,
|
|
290
302
|
"data-comments-ui": "",
|
|
291
303
|
"data-slot": "comment-panel",
|
|
292
304
|
"data-variant": props.variant,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as CommentPin } from "../../comment-pin-
|
|
1
|
+
import { t as CommentPin } from "../../comment-pin-DHOdRvUw.js";
|
|
2
2
|
export { CommentPin };
|