@reforma/components 0.2.1 → 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.
Files changed (32) hide show
  1. package/dist/Button/Button.module.css +1 -1
  2. package/dist/List/Menu.d.ts.map +1 -1
  3. package/dist/List/Menu.js +98 -84
  4. package/dist/List/Menu.js.map +1 -1
  5. package/dist/chat/Chip/Chip.js +9 -9
  6. package/dist/chat/Chip/Chip.module.css.js +8 -8
  7. package/dist/chat/Chip/helpers/cursorLines.d.ts +1 -0
  8. package/dist/chat/Chip/helpers/cursorLines.d.ts.map +1 -1
  9. package/dist/chat/Chip/helpers/cursorLines.js +27 -21
  10. package/dist/chat/Chip/helpers/cursorLines.js.map +1 -1
  11. package/dist/chat/Chip/index.d.ts +1 -1
  12. package/dist/chat/Chip/index.d.ts.map +1 -1
  13. package/dist/chat/Chip/index.js +9 -8
  14. package/dist/chat/Message/segments/MessagePhaseSection.module.css +1 -1
  15. package/dist/chat/Message/streamdown/options.d.ts +2 -0
  16. package/dist/chat/Message/streamdown/options.d.ts.map +1 -1
  17. package/dist/chat/Message/streamdown/options.js +13 -12
  18. package/dist/chat/Message/streamdown/options.js.map +1 -1
  19. package/dist/chat/Message/turn/MessageUserBubble.d.ts.map +1 -1
  20. package/dist/chat/Message/turn/MessageUserBubble.js +57 -54
  21. package/dist/chat/Message/turn/MessageUserBubble.js.map +1 -1
  22. package/dist/chat/Tool/mountTool.d.ts.map +1 -1
  23. package/dist/chat/Tool/remove-file/RemoveFileTool.d.ts +1 -1
  24. package/dist/chat/Tool/remove-file/RemoveFileTool.d.ts.map +1 -1
  25. package/dist/chat/Tool/remove-file/RemoveFileTool.js +82 -38
  26. package/dist/chat/Tool/remove-file/RemoveFileTool.js.map +1 -1
  27. package/dist/chat/Tool/remove-file/RemoveFileTool.module.css +1 -0
  28. package/dist/chat/Tool/remove-file/RemoveFileTool.module.css.js +8 -0
  29. package/dist/chat/Tool/remove-file/RemoveFileTool.module.css.js.map +1 -0
  30. package/dist/chat/index.js +110 -109
  31. package/dist/index.js +417 -416
  32. package/package.json +1 -1
@@ -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 g } from "./Attachment/Attachment.js";
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 L, chipLabelFromPath as E, chipTooltipFromPath as R, configureScratchRoots as b, normalizeChipPath as U } from "./Chip/helpers/chipPath.js";
9
- import { fileChipDisplay as y, fileCite as D } from "./Chip/helpers/cursorLines.js";
10
- import { ComposerBanner as _, ComposerBannerStatus as G } from "./ComposerBanner/ComposerBanner.js";
11
- import { Conversation as O, ConversationEmptyState as k, ConversationScrollButton as q } from "./Conversation/Conversation.js";
12
- import { ConversationPendingLoader as w } from "./Conversation/ConversationPendingLoader.js";
13
- import { INVISIBLE_PART_TYPES as Q, groupMessageParts as j, isVisiblePart as z, lastPendingAskUserQuestionPart as W, lastPendingChooseDesignDirectionPart as Y, lastVisiblePartFromGroups as J, partsFromSegmentGroups as X, partsHaveOpenToolCalls as Z, partsRequireUserAction as $, segmentMessage as oo, segmentRequiresUserAction as eo, splitUserMessageParts as ro } from "./Message/normalize/normalizeMessageParts.js";
14
- import { collectMessageSources as so } from "./Message/parts/collectMessageSources.js";
15
- import { MessageFileParts as lo } from "./Message/parts/MessageFileParts.js";
16
- import { MessagePart as io } from "./Message/parts/MessagePart.js";
17
- import { MessageSourceParts as mo } from "./Message/parts/MessageSourceParts.js";
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 xo } from "./Message/turn/MessageAssistantBody.js";
20
- import { MessageAssistant as uo, MessageUser as Co } from "./Message/turn/MessagePresets.js";
21
- import { MessageTurnProvider as Po, useMessageStreaming as So, useMessageTurn as Ao } from "./Message/turn/messageTurnContext.js";
22
- import { MESSAGE_USER_COLLAPSE_MIN_CHARS as Mo, MessageUserBubble as Fo } from "./Message/turn/MessageUserBubble.js";
23
- import { MessageUserFiles as Lo } from "./Message/turn/MessageUserFiles.js";
24
- import { MessageWrapper as Ro } from "./Message/turn/MessageWrapper.js";
25
- import { Reasoning as Uo } from "./Reasoning/Reasoning.js";
26
- import { defaultStaticThoughtMessage as yo, defaultStreamingThoughtMessage as Do, formatThoughtLabel as Ho, useThoughtDuration as _o } from "./Reasoning/thoughtLabel.js";
27
- import { Source as No, Sources as Oo } from "./Sources/Sources.js";
28
- import { subagentActivityLabel as qo, subagentComposerCopy as Vo } from "./Tool/agent/AgentTool.js";
29
- import { AskUserQuestionTool as Ko } from "./Tool/ask-user-question/AskUserQuestionTool.js";
30
- import { ChooseDesignDirectionTool as jo } from "./Tool/choose-design-direction/ChooseDesignDirectionTool.js";
31
- import { DefaultTool as Wo } from "./Tool/default/Default.js";
32
- import { fileChangesFromToolParts as Jo } from "./Tool/fileChangesFromToolParts.js";
33
- import { TOOL_INTERRUPTED_MESSAGE as Zo, isToolInvocationInProgress as $o, isToolInvocationStalled as oe, isToolInvocationTerminal as ee, lineCountsByPathFromEditingToolPart as re, lineCountsFromEditingToolPart as te, removeFileLinesRemoved as se, toolPathKey as ae } from "./Tool/helpers.js";
34
- import { IntegrationActionCard as ne } from "./Tool/integration-card/IntegrationActionCard.js";
35
- import { ReadFilesTool as pe } from "./Tool/read/ReadFilesTool.js";
36
- import { ToolHoverCard as fe } from "./Tool/shell/ToolHoverCard.js";
37
- import { ToolLineCounts as he } from "./Tool/shell/ToolLineCounts.js";
38
- import { ToolPathListHoverCard as Te, ToolPathListPopover as ue } from "./Tool/shell/ToolPathListHoverCard.js";
39
- import { ToolShell as ce, ToolShellContent as Pe, ToolShellFooter as Se, ToolShellHeader as de } from "./Tool/shell/ToolShell.js";
40
- import { ToolShellCard as ve, ToolShellCardContent as Me, ToolShellCardFooter as Fe, ToolShellCardHeader as Ie } from "./Tool/shell/ToolShellCard.js";
41
- import { ToolShellStatusIcon as Ee } from "./Tool/shell/ToolShellStatusIcon.js";
42
- import { ToolSummaryBadges as be } from "./Tool/shell/ToolSummaryBadge.js";
43
- import { Tool as Be, renderedToolName as ye } from "./Tool/Tool.js";
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
- Ko as AskUserQuestionTool,
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
- jo as ChooseDesignDirectionTool,
59
- _ as ComposerBanner,
60
- G as ComposerBannerStatus,
61
- O as Conversation,
62
- k as ConversationEmptyState,
63
- w as ConversationPendingLoader,
64
- q as ConversationScrollButton,
65
- Wo as DefaultTool,
66
- Q as INVISIBLE_PART_TYPES,
67
- ne as IntegrationActionCard,
68
- Mo as MESSAGE_USER_COLLAPSE_MIN_CHARS,
69
- uo as MessageAssistant,
70
- xo as MessageAssistantBody,
71
- lo as MessageFileParts,
72
- io as MessagePart,
73
- mo as MessageSourceParts,
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
- Po as MessageTurnProvider,
76
- Co as MessageUser,
77
- Fo as MessageUserBubble,
78
- Lo as MessageUserFiles,
79
- Ro as MessageWrapper,
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
- pe as ReadFilesTool,
82
- Uo as Reasoning,
83
- No as Source,
84
- Oo as Sources,
85
- Zo as TOOL_INTERRUPTED_MESSAGE,
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
- fe as ToolHoverCard,
88
- he as ToolLineCounts,
89
- Te as ToolPathListHoverCard,
90
- ue as ToolPathListPopover,
91
- ce as ToolShell,
92
- ve as ToolShellCard,
93
- Me as ToolShellCardContent,
94
- Fe as ToolShellCardFooter,
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
- Pe as ToolShellContent,
97
- Se as ToolShellFooter,
98
- de as ToolShellHeader,
99
- Ee as ToolShellStatusIcon,
100
- be as ToolSummaryBadges,
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
- L as chipItemFromPath,
102
+ I as chipItemFromPath,
103
103
  E as chipLabelFromPath,
104
104
  R as chipTooltipFromPath,
105
- so as collectMessageSources,
105
+ B as clipLayerChipLabel,
106
+ ao as collectMessageSources,
106
107
  b as configureScratchRoots,
107
- yo as defaultStaticThoughtMessage,
108
- Do as defaultStreamingThoughtMessage,
109
- Jo as fileChangesFromToolParts,
110
- y as fileChipDisplay,
111
- D as fileCite,
112
- Ho as formatThoughtLabel,
113
- g as getAttachmentLabel,
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
- j as groupMessageParts,
116
- $o as isToolInvocationInProgress,
117
- oe as isToolInvocationStalled,
118
- ee as isToolInvocationTerminal,
119
- z as isVisiblePart,
120
- W as lastPendingAskUserQuestionPart,
121
- Y as lastPendingChooseDesignDirectionPart,
122
- J as lastVisiblePartFromGroups,
123
- re as lineCountsByPathFromEditingToolPart,
124
- te as lineCountsFromEditingToolPart,
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
- X as partsFromSegmentGroups,
127
- Z as partsHaveOpenToolCalls,
128
- $ as partsRequireUserAction,
129
- se as removeFileLinesRemoved,
130
- ye as renderedToolName,
131
- oo as segmentMessage,
132
- eo as segmentRequiresUserAction,
133
- ro as splitUserMessageParts,
134
- qo as subagentActivityLabel,
135
- Vo as subagentComposerCopy,
136
- ae as toolPathKey,
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
- So as useMessageStreaming,
140
- Ao as useMessageTurn,
141
- _o as useThoughtDuration
140
+ Ao as useMessageStreaming,
141
+ vo as useMessageTurn,
142
+ Go as useThoughtDuration
142
143
  };
143
144
  //# sourceMappingURL=index.js.map