@reforma/components 0.2.0 → 0.2.2
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/dist/Button/Button.module.css +1 -1
- package/dist/List/Menu.d.ts.map +1 -1
- package/dist/List/Menu.js +98 -84
- package/dist/List/Menu.js.map +1 -1
- package/dist/chat/Chip/Chip.js +9 -9
- package/dist/chat/Chip/Chip.module.css.js +8 -8
- package/dist/chat/Chip/helpers/cursorLines.d.ts +1 -0
- package/dist/chat/Chip/helpers/cursorLines.d.ts.map +1 -1
- package/dist/chat/Chip/helpers/cursorLines.js +27 -21
- package/dist/chat/Chip/helpers/cursorLines.js.map +1 -1
- package/dist/chat/Chip/index.d.ts +1 -1
- package/dist/chat/Chip/index.d.ts.map +1 -1
- package/dist/chat/Chip/index.js +9 -8
- package/dist/chat/Message/segments/MessagePhaseSection.module.css +1 -1
- package/dist/chat/Message/streamdown/options.d.ts +2 -0
- package/dist/chat/Message/streamdown/options.d.ts.map +1 -1
- package/dist/chat/Message/streamdown/options.js +13 -12
- package/dist/chat/Message/streamdown/options.js.map +1 -1
- package/dist/chat/Message/turn/MessageUserBubble.d.ts.map +1 -1
- package/dist/chat/Message/turn/MessageUserBubble.js +57 -54
- package/dist/chat/Message/turn/MessageUserBubble.js.map +1 -1
- package/dist/chat/Tool/mountTool.d.ts.map +1 -1
- package/dist/chat/Tool/remove-file/RemoveFileTool.d.ts +1 -1
- package/dist/chat/Tool/remove-file/RemoveFileTool.d.ts.map +1 -1
- package/dist/chat/Tool/remove-file/RemoveFileTool.js +82 -38
- package/dist/chat/Tool/remove-file/RemoveFileTool.js.map +1 -1
- package/dist/chat/Tool/remove-file/RemoveFileTool.module.css +1 -0
- package/dist/chat/Tool/remove-file/RemoveFileTool.module.css.js +8 -0
- package/dist/chat/Tool/remove-file/RemoveFileTool.module.css.js.map +1 -0
- package/dist/chat/index.js +110 -109
- package/dist/index.js +417 -416
- package/dist/openui/functions/index.d.ts +59 -59
- package/dist/openui/functions/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/chat/index.js
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
import { Approval as r, ApprovalAccepted as t, ApprovalButtons as s, ApprovalRejected as a, ApprovalRequest as l } from "./Approval/Approval.js";
|
|
2
|
-
import { Attachment as i, AttachmentPreview as p, Attachments as m, PreviewableAttachment as f, getAttachmentLabel as
|
|
2
|
+
import { Attachment as i, AttachmentPreview as p, Attachments as m, PreviewableAttachment as f, getAttachmentLabel as h } from "./Attachment/Attachment.js";
|
|
3
3
|
import { ChatProvider as x, useChat as T, useChatHandlers as u } from "./ChatContext.js";
|
|
4
4
|
import { Chip as c } from "./Chip/Chip.js";
|
|
5
5
|
import { ChipContent as S } from "./Chip/ChipContent.js";
|
|
6
6
|
import { ChipIcon as A, chipIconForLinkHost as v } from "./Chip/ChipIcon.js";
|
|
7
7
|
import { getFileKind as F } from "./Chip/helpers/chipKind.js";
|
|
8
|
-
import { chipItemFromPath as
|
|
9
|
-
import { fileChipDisplay as
|
|
10
|
-
import { ComposerBanner as
|
|
11
|
-
import { Conversation as
|
|
12
|
-
import { ConversationPendingLoader as
|
|
13
|
-
import { INVISIBLE_PART_TYPES as
|
|
14
|
-
import { collectMessageSources as
|
|
15
|
-
import { MessageFileParts as
|
|
16
|
-
import { MessagePart as
|
|
17
|
-
import { MessageSourceParts as
|
|
8
|
+
import { chipItemFromPath as I, chipLabelFromPath as E, chipTooltipFromPath as R, configureScratchRoots as b, normalizeChipPath as U } from "./Chip/helpers/chipPath.js";
|
|
9
|
+
import { clipLayerChipLabel as B, fileChipDisplay as D, fileCite as H } from "./Chip/helpers/cursorLines.js";
|
|
10
|
+
import { ComposerBanner as G, ComposerBannerStatus as N } from "./ComposerBanner/ComposerBanner.js";
|
|
11
|
+
import { Conversation as k, ConversationEmptyState as q, ConversationScrollButton as V } from "./Conversation/Conversation.js";
|
|
12
|
+
import { ConversationPendingLoader as K } from "./Conversation/ConversationPendingLoader.js";
|
|
13
|
+
import { INVISIBLE_PART_TYPES as j, groupMessageParts as z, isVisiblePart as W, lastPendingAskUserQuestionPart as Y, lastPendingChooseDesignDirectionPart as J, lastVisiblePartFromGroups as X, partsFromSegmentGroups as Z, partsHaveOpenToolCalls as $, partsRequireUserAction as oo, segmentMessage as eo, segmentRequiresUserAction as ro, splitUserMessageParts as to } from "./Message/normalize/normalizeMessageParts.js";
|
|
14
|
+
import { collectMessageSources as ao } from "./Message/parts/collectMessageSources.js";
|
|
15
|
+
import { MessageFileParts as no } from "./Message/parts/MessageFileParts.js";
|
|
16
|
+
import { MessagePart as po } from "./Message/parts/MessagePart.js";
|
|
17
|
+
import { MessageSourceParts as fo } from "./Message/parts/MessageSourceParts.js";
|
|
18
18
|
import { MessageText as go } from "./Message/streamdown/MessageText.js";
|
|
19
|
-
import { MessageAssistantBody as
|
|
20
|
-
import { MessageAssistant as
|
|
21
|
-
import { MessageTurnProvider as
|
|
22
|
-
import { MESSAGE_USER_COLLAPSE_MIN_CHARS as
|
|
23
|
-
import { MessageUserFiles as
|
|
24
|
-
import { MessageWrapper as
|
|
25
|
-
import { Reasoning as
|
|
26
|
-
import { defaultStaticThoughtMessage as
|
|
27
|
-
import { Source as
|
|
28
|
-
import { subagentActivityLabel as
|
|
29
|
-
import { AskUserQuestionTool as
|
|
30
|
-
import { ChooseDesignDirectionTool as
|
|
31
|
-
import { DefaultTool as
|
|
32
|
-
import { fileChangesFromToolParts as
|
|
33
|
-
import { TOOL_INTERRUPTED_MESSAGE as
|
|
34
|
-
import { IntegrationActionCard as
|
|
35
|
-
import { ReadFilesTool as
|
|
36
|
-
import { ToolHoverCard as
|
|
37
|
-
import { ToolLineCounts as
|
|
38
|
-
import { ToolPathListHoverCard as
|
|
39
|
-
import { ToolShell as
|
|
40
|
-
import { ToolShellCard as
|
|
41
|
-
import { ToolShellStatusIcon as
|
|
42
|
-
import { ToolSummaryBadges as
|
|
43
|
-
import { Tool as Be, renderedToolName as
|
|
19
|
+
import { MessageAssistantBody as To } from "./Message/turn/MessageAssistantBody.js";
|
|
20
|
+
import { MessageAssistant as Co, MessageUser as co } from "./Message/turn/MessagePresets.js";
|
|
21
|
+
import { MessageTurnProvider as So, useMessageStreaming as Ao, useMessageTurn as vo } from "./Message/turn/messageTurnContext.js";
|
|
22
|
+
import { MESSAGE_USER_COLLAPSE_MIN_CHARS as Fo, MessageUserBubble as Lo } from "./Message/turn/MessageUserBubble.js";
|
|
23
|
+
import { MessageUserFiles as Eo } from "./Message/turn/MessageUserFiles.js";
|
|
24
|
+
import { MessageWrapper as bo } from "./Message/turn/MessageWrapper.js";
|
|
25
|
+
import { Reasoning as yo } from "./Reasoning/Reasoning.js";
|
|
26
|
+
import { defaultStaticThoughtMessage as Do, defaultStreamingThoughtMessage as Ho, formatThoughtLabel as _o, useThoughtDuration as Go } from "./Reasoning/thoughtLabel.js";
|
|
27
|
+
import { Source as Oo, Sources as ko } from "./Sources/Sources.js";
|
|
28
|
+
import { subagentActivityLabel as Vo, subagentComposerCopy as wo } from "./Tool/agent/AgentTool.js";
|
|
29
|
+
import { AskUserQuestionTool as Qo } from "./Tool/ask-user-question/AskUserQuestionTool.js";
|
|
30
|
+
import { ChooseDesignDirectionTool as zo } from "./Tool/choose-design-direction/ChooseDesignDirectionTool.js";
|
|
31
|
+
import { DefaultTool as Yo } from "./Tool/default/Default.js";
|
|
32
|
+
import { fileChangesFromToolParts as Xo } from "./Tool/fileChangesFromToolParts.js";
|
|
33
|
+
import { TOOL_INTERRUPTED_MESSAGE as $o, isToolInvocationInProgress as oe, isToolInvocationStalled as ee, isToolInvocationTerminal as re, lineCountsByPathFromEditingToolPart as te, lineCountsFromEditingToolPart as se, removeFileLinesRemoved as ae, toolPathKey as le } from "./Tool/helpers.js";
|
|
34
|
+
import { IntegrationActionCard as ie } from "./Tool/integration-card/IntegrationActionCard.js";
|
|
35
|
+
import { ReadFilesTool as me } from "./Tool/read/ReadFilesTool.js";
|
|
36
|
+
import { ToolHoverCard as he } from "./Tool/shell/ToolHoverCard.js";
|
|
37
|
+
import { ToolLineCounts as xe } from "./Tool/shell/ToolLineCounts.js";
|
|
38
|
+
import { ToolPathListHoverCard as ue, ToolPathListPopover as Ce } from "./Tool/shell/ToolPathListHoverCard.js";
|
|
39
|
+
import { ToolShell as Pe, ToolShellContent as Se, ToolShellFooter as de, ToolShellHeader as Ae } from "./Tool/shell/ToolShell.js";
|
|
40
|
+
import { ToolShellCard as Me, ToolShellCardContent as Fe, ToolShellCardFooter as Le, ToolShellCardHeader as Ie } from "./Tool/shell/ToolShellCard.js";
|
|
41
|
+
import { ToolShellStatusIcon as Re } from "./Tool/shell/ToolShellStatusIcon.js";
|
|
42
|
+
import { ToolSummaryBadges as Ue } from "./Tool/shell/ToolSummaryBadge.js";
|
|
43
|
+
import { Tool as Be, renderedToolName as De } from "./Tool/Tool.js";
|
|
44
44
|
export {
|
|
45
45
|
r as Approval,
|
|
46
46
|
t as ApprovalAccepted,
|
|
47
47
|
s as ApprovalButtons,
|
|
48
48
|
a as ApprovalRejected,
|
|
49
49
|
l as ApprovalRequest,
|
|
50
|
-
|
|
50
|
+
Qo as AskUserQuestionTool,
|
|
51
51
|
i as Attachment,
|
|
52
52
|
p as AttachmentPreview,
|
|
53
53
|
m as Attachments,
|
|
@@ -55,89 +55,90 @@ export {
|
|
|
55
55
|
c as Chip,
|
|
56
56
|
S as ChipContent,
|
|
57
57
|
A as ChipIcon,
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
58
|
+
zo as ChooseDesignDirectionTool,
|
|
59
|
+
G as ComposerBanner,
|
|
60
|
+
N as ComposerBannerStatus,
|
|
61
|
+
k as Conversation,
|
|
62
|
+
q as ConversationEmptyState,
|
|
63
|
+
K as ConversationPendingLoader,
|
|
64
|
+
V as ConversationScrollButton,
|
|
65
|
+
Yo as DefaultTool,
|
|
66
|
+
j as INVISIBLE_PART_TYPES,
|
|
67
|
+
ie as IntegrationActionCard,
|
|
68
|
+
Fo as MESSAGE_USER_COLLAPSE_MIN_CHARS,
|
|
69
|
+
Co as MessageAssistant,
|
|
70
|
+
To as MessageAssistantBody,
|
|
71
|
+
no as MessageFileParts,
|
|
72
|
+
po as MessagePart,
|
|
73
|
+
fo as MessageSourceParts,
|
|
74
74
|
go as MessageText,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
75
|
+
So as MessageTurnProvider,
|
|
76
|
+
co as MessageUser,
|
|
77
|
+
Lo as MessageUserBubble,
|
|
78
|
+
Eo as MessageUserFiles,
|
|
79
|
+
bo as MessageWrapper,
|
|
80
80
|
f as PreviewableAttachment,
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
81
|
+
me as ReadFilesTool,
|
|
82
|
+
yo as Reasoning,
|
|
83
|
+
Oo as Source,
|
|
84
|
+
ko as Sources,
|
|
85
|
+
$o as TOOL_INTERRUPTED_MESSAGE,
|
|
86
86
|
Be as Tool,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
87
|
+
he as ToolHoverCard,
|
|
88
|
+
xe as ToolLineCounts,
|
|
89
|
+
ue as ToolPathListHoverCard,
|
|
90
|
+
Ce as ToolPathListPopover,
|
|
91
|
+
Pe as ToolShell,
|
|
92
|
+
Me as ToolShellCard,
|
|
93
|
+
Fe as ToolShellCardContent,
|
|
94
|
+
Le as ToolShellCardFooter,
|
|
95
95
|
Ie as ToolShellCardHeader,
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
96
|
+
Se as ToolShellContent,
|
|
97
|
+
de as ToolShellFooter,
|
|
98
|
+
Ae as ToolShellHeader,
|
|
99
|
+
Re as ToolShellStatusIcon,
|
|
100
|
+
Ue as ToolSummaryBadges,
|
|
101
101
|
v as chipIconForLinkHost,
|
|
102
|
-
|
|
102
|
+
I as chipItemFromPath,
|
|
103
103
|
E as chipLabelFromPath,
|
|
104
104
|
R as chipTooltipFromPath,
|
|
105
|
-
|
|
105
|
+
B as clipLayerChipLabel,
|
|
106
|
+
ao as collectMessageSources,
|
|
106
107
|
b as configureScratchRoots,
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
108
|
+
Do as defaultStaticThoughtMessage,
|
|
109
|
+
Ho as defaultStreamingThoughtMessage,
|
|
110
|
+
Xo as fileChangesFromToolParts,
|
|
111
|
+
D as fileChipDisplay,
|
|
112
|
+
H as fileCite,
|
|
113
|
+
_o as formatThoughtLabel,
|
|
114
|
+
h as getAttachmentLabel,
|
|
114
115
|
F as getFileKind,
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
116
|
+
z as groupMessageParts,
|
|
117
|
+
oe as isToolInvocationInProgress,
|
|
118
|
+
ee as isToolInvocationStalled,
|
|
119
|
+
re as isToolInvocationTerminal,
|
|
120
|
+
W as isVisiblePart,
|
|
121
|
+
Y as lastPendingAskUserQuestionPart,
|
|
122
|
+
J as lastPendingChooseDesignDirectionPart,
|
|
123
|
+
X as lastVisiblePartFromGroups,
|
|
124
|
+
te as lineCountsByPathFromEditingToolPart,
|
|
125
|
+
se as lineCountsFromEditingToolPart,
|
|
125
126
|
U as normalizeChipPath,
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
127
|
+
Z as partsFromSegmentGroups,
|
|
128
|
+
$ as partsHaveOpenToolCalls,
|
|
129
|
+
oo as partsRequireUserAction,
|
|
130
|
+
ae as removeFileLinesRemoved,
|
|
131
|
+
De as renderedToolName,
|
|
132
|
+
eo as segmentMessage,
|
|
133
|
+
ro as segmentRequiresUserAction,
|
|
134
|
+
to as splitUserMessageParts,
|
|
135
|
+
Vo as subagentActivityLabel,
|
|
136
|
+
wo as subagentComposerCopy,
|
|
137
|
+
le as toolPathKey,
|
|
137
138
|
T as useChat,
|
|
138
139
|
u as useChatHandlers,
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
140
|
+
Ao as useMessageStreaming,
|
|
141
|
+
vo as useMessageTurn,
|
|
142
|
+
Go as useThoughtDuration
|
|
142
143
|
};
|
|
143
144
|
//# sourceMappingURL=index.js.map
|