@swisper.ai/web-chat-ui 0.3.1 → 0.3.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/README.md +2 -1
- package/dist/components/chat-reasoning/chat-reasoning.d.ts +194 -0
- package/dist/components/chat-reasoning/chat-reasoning.d.ts.map +1 -0
- package/dist/components/chat-reasoning/chat-reasoning.stories.d.ts +38 -0
- package/dist/components/chat-reasoning/chat-reasoning.stories.d.ts.map +1 -0
- package/dist/components/chat-reasoning/index.d.ts +2 -0
- package/dist/components/chat-reasoning/index.d.ts.map +1 -0
- package/dist/components/chat-thinking-process/chat-thinking-process.d.ts +34 -6
- package/dist/components/chat-thinking-process/chat-thinking-process.d.ts.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/docs/agent.stories.d.ts.map +1 -1
- package/dist/docs/chatbot-panel.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.es.js +1816 -1359
- package/dist/index.es.js.map +1 -1
- package/package.json +3 -3
- package/src/components/chat-message/__stories__/tool-steps.tsx +44 -23
- package/src/components/chat-reasoning/__stories__/fixtures.ts +144 -0
- package/src/components/chat-reasoning/chat-reasoning.json +241 -0
- package/src/components/chat-reasoning/chat-reasoning.stories.tsx +462 -0
- package/src/components/chat-reasoning/chat-reasoning.tsx +1042 -0
- package/src/components/chat-reasoning/index.ts +51 -0
- package/src/components/chat-thinking-process/chat-thinking-process.json +2 -0
- package/src/components/chat-thinking-process/chat-thinking-process.tsx +34 -6
- package/src/components/index.ts +1 -0
- package/src/docs/agent.stories.tsx +29 -29
- package/src/docs/chatbot-panel.tsx +48 -25
- package/src/docs/chatbot.mdx +5 -5
package/README.md
CHANGED
|
@@ -179,7 +179,8 @@ Everything is exported from the package root. Each row names a component family:
|
|
|
179
179
|
| `ChatMessage`, `ChatMessageContent`, `ChatMessageActions` | One question (an end-aligned bubble, `isQuestion`) or one answer (full width), with a row of actions that fades in on hover. |
|
|
180
180
|
| `ChatMessageResponse` | An assistant answer: Markdown through `MarkdownViewer`, already configured for a message. |
|
|
181
181
|
| `MarkdownViewer` | Renders model Markdown (GitHub-flavoured, sanitised inline HTML) through Streamdown, repairs half-received syntax while it streams, and renders `<swi-*>` tags with your components. |
|
|
182
|
-
| `
|
|
182
|
+
| `ChatReasoning` and its parts | The reasoning row above an answer and the window of steps it opens: marks, notes, pages read, and how it ended. |
|
|
183
|
+
| `ChatThinkingProcess` and its parts | Deprecated: use `ChatReasoning`. |
|
|
183
184
|
| `ChatMessageToolbar` and its parts | The row under a message: timestamp plus small icon actions (copy, edit, feedback), each with an optional tooltip. |
|
|
184
185
|
| `ChatMessageAttachmentCard` and its parts, `getAttachmentIcon` | A compact chip for a file attached to a prompt or message: file-type icon or image thumbnail, truncated name, remove button. |
|
|
185
186
|
| `ChatSuggestions`, `ChatSuggestion` and its parts, `useChatSuggestionContext` | Numbered follow-up questions or quick replies above the composer, keyboard-navigable; picking one (`onSelect`) sends it. |
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { ComponentProps, Key, ReactNode } from 'react';
|
|
2
|
+
import { CollapsibleProps } from '@swisper.ai/ui';
|
|
3
|
+
/** Where the work is: still going, finished, or stopped by the person. */
|
|
4
|
+
export type ChatReasoningStatus = 'running' | 'done' | 'stopped';
|
|
5
|
+
export interface ChatReasoningProps extends Omit<CollapsibleProps, 'isDisabled' | 'className'> {
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Where the work is. `running` turns the Swisper symbol and sweeps a light across the collapsed
|
|
10
|
+
* line; `done` and `stopped` keep it still. Defaults to `done`.
|
|
11
|
+
*/
|
|
12
|
+
status?: ChatReasoningStatus;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* The reasoning row above an assistant answer and the window of steps it opens. Collapsed by
|
|
16
|
+
* default; exposes `data-state` (`open` / `closed`) and `data-status` for its parts to style from.
|
|
17
|
+
* Open, it draws the outline box; narrow (under 448px), the row grows to 44px.
|
|
18
|
+
*/
|
|
19
|
+
export declare const ChatReasoning: import('react').ForwardRefExoticComponent<ChatReasoningProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
20
|
+
export interface ChatReasoningTriggerProps extends ComponentProps<'button'> {
|
|
21
|
+
children: ReactNode;
|
|
22
|
+
className?: string;
|
|
23
|
+
}
|
|
24
|
+
/** The row: one button that opens and closes the window. Holds the symbol, the label and the arrow. */
|
|
25
|
+
export declare const ChatReasoningTrigger: import('react').ForwardRefExoticComponent<Omit<ChatReasoningTriggerProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
26
|
+
export interface ChatReasoningTriggerSymbolProps extends ComponentProps<'span'> {
|
|
27
|
+
children: ReactNode;
|
|
28
|
+
className?: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* The 16px symbol before the label, hidden from assistive tech: `ChatReasoningTriggerSymbolSwisper`
|
|
32
|
+
* while running or done, a stop icon once stopped.
|
|
33
|
+
*/
|
|
34
|
+
export declare function ChatReasoningTriggerSymbol({ children, className, ...rest }: ChatReasoningTriggerSymbolProps): import('react').JSX.Element;
|
|
35
|
+
export type ChatReasoningTriggerSymbolSwisperProps = Omit<ComponentProps<'svg'>, 'children'>;
|
|
36
|
+
/**
|
|
37
|
+
* The Swisper logo for `ChatReasoningTriggerSymbol`. While the root is running, the symbol inside
|
|
38
|
+
* the shield turns 90° in each 1.1s cycle; with reduced motion, the shield pulses instead.
|
|
39
|
+
*/
|
|
40
|
+
export declare function ChatReasoningTriggerSymbolSwisper({ className, ...rest }: ChatReasoningTriggerSymbolSwisperProps): import('react').JSX.Element;
|
|
41
|
+
export interface ChatReasoningTriggerLabelProps extends ComponentProps<'span'> {
|
|
42
|
+
children: ReactNode;
|
|
43
|
+
className?: string;
|
|
44
|
+
/**
|
|
45
|
+
* What the line is, for the change animation. Defaults to the text when `children` is a string;
|
|
46
|
+
* set it when the line is any other node, or the line updates without animating.
|
|
47
|
+
*/
|
|
48
|
+
contentKey?: Key;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* The row's one line and the trigger's accessible name, cut with an ellipsis. A new line slides in
|
|
52
|
+
* from below once the old one has been up for a second. Sweeps a light while running and collapsed.
|
|
53
|
+
*/
|
|
54
|
+
export declare function ChatReasoningTriggerLabel({ children, className, contentKey, ...rest }: ChatReasoningTriggerLabelProps): import('react').JSX.Element;
|
|
55
|
+
export interface ChatReasoningTriggerArrowProps extends ComponentProps<'span'> {
|
|
56
|
+
className?: string;
|
|
57
|
+
}
|
|
58
|
+
/** The chevron at the end of the row; turns 180° while the window is open. Hidden from assistive tech. */
|
|
59
|
+
export declare function ChatReasoningTriggerArrow({ className, ...rest }: ChatReasoningTriggerArrowProps): import('react').JSX.Element;
|
|
60
|
+
export interface ChatReasoningStepsProps extends ComponentProps<'div'> {
|
|
61
|
+
children: ReactNode;
|
|
62
|
+
className?: string;
|
|
63
|
+
}
|
|
64
|
+
/** The window under the row: the steps, then the end row. Opens and closes with a height animation. */
|
|
65
|
+
export declare function ChatReasoningSteps({ children, className, ...rest }: ChatReasoningStepsProps): import('react').JSX.Element;
|
|
66
|
+
export interface ChatReasoningStepProps extends ComponentProps<'div'> {
|
|
67
|
+
children: ReactNode;
|
|
68
|
+
className?: string;
|
|
69
|
+
/**
|
|
70
|
+
* The step is happening now: its text gets the light sweep and its mark pulses. Several steps can
|
|
71
|
+
* be live at once when tools run in parallel.
|
|
72
|
+
*/
|
|
73
|
+
isLive?: boolean;
|
|
74
|
+
}
|
|
75
|
+
/** One step: a head (mark and text) and, optionally, notes hanging under it as a tree. */
|
|
76
|
+
export declare function ChatReasoningStep({ children, className, isLive, ...rest }: ChatReasoningStepProps): import('react').JSX.Element;
|
|
77
|
+
export interface ChatReasoningStepHeadProps extends ComponentProps<'div'> {
|
|
78
|
+
children: ReactNode;
|
|
79
|
+
className?: string;
|
|
80
|
+
}
|
|
81
|
+
/** The step's row: the 36px mark column and the text. Draws the tree's trunk when the step has notes. */
|
|
82
|
+
export declare function ChatReasoningStepHead({ children, className, ...rest }: ChatReasoningStepHeadProps): import('react').JSX.Element;
|
|
83
|
+
export interface ChatReasoningStepIconProps extends ComponentProps<'span'> {
|
|
84
|
+
children: ReactNode;
|
|
85
|
+
className?: string;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* The step's 20px mark, centred in the 36px mark column (the tree's lines run from that column's
|
|
89
|
+
* centre): a `ChatReasoningStepIconDot` for Swisper's own steps, or a `ChatReasoningStepIconLogo` /
|
|
90
|
+
* `ChatReasoningStepIconWeb` for a source.
|
|
91
|
+
*/
|
|
92
|
+
export declare function ChatReasoningStepIcon({ children, className, ...rest }: ChatReasoningStepIconProps): import('react').JSX.Element;
|
|
93
|
+
export type ChatReasoningStepIconDotProps = Omit<ComponentProps<'span'>, 'children'>;
|
|
94
|
+
/** The mark of Swisper's own steps: a 4px dot, 6px and pulsing while the step is live. */
|
|
95
|
+
export declare function ChatReasoningStepIconDot({ className, ...rest }: ChatReasoningStepIconDotProps): import('react').JSX.Element;
|
|
96
|
+
export interface ChatReasoningStepIconLogoProps extends ComponentProps<'span'> {
|
|
97
|
+
/** The source's logo, an icon or image of 16px. Give it a label ("SBB"), which the text may not name. */
|
|
98
|
+
children: ReactNode;
|
|
99
|
+
className?: string;
|
|
100
|
+
}
|
|
101
|
+
/** A source's logo in the mark column. While the step is live it sits on a 20px tile that pulses. */
|
|
102
|
+
export declare function ChatReasoningStepIconLogo({ children, className, ...rest }: ChatReasoningStepIconLogoProps): import('react').JSX.Element;
|
|
103
|
+
export interface ChatReasoningStepIconWebProps extends ComponentProps<'span'> {
|
|
104
|
+
/** The web search icon, 16px. Give it a label ("Web search"), which the text may not name. */
|
|
105
|
+
children: ReactNode;
|
|
106
|
+
className?: string;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* The web search mark in the mark column, on a round tile. While the step is live the tile shows and
|
|
110
|
+
* pulses, and the icon brightens.
|
|
111
|
+
*/
|
|
112
|
+
export declare function ChatReasoningStepIconWeb({ children, className, ...rest }: ChatReasoningStepIconWebProps): import('react').JSX.Element;
|
|
113
|
+
export interface ChatReasoningStepTextProps extends ComponentProps<'span'> {
|
|
114
|
+
children: ReactNode;
|
|
115
|
+
className?: string;
|
|
116
|
+
/**
|
|
117
|
+
* What the text is, for the change fade. Defaults to the text when `children` is a string; set it
|
|
118
|
+
* when the text is any other node, such as streamed Markdown.
|
|
119
|
+
*/
|
|
120
|
+
contentKey?: Key;
|
|
121
|
+
}
|
|
122
|
+
/** The step's text. Fades when it changes (what Swisper says it will do, then what it did). */
|
|
123
|
+
export declare function ChatReasoningStepText({ children, className, contentKey, ...rest }: ChatReasoningStepTextProps): import('react').JSX.Element;
|
|
124
|
+
export interface ChatReasoningStepNotesProps extends ComponentProps<'div'> {
|
|
125
|
+
children: ReactNode;
|
|
126
|
+
className?: string;
|
|
127
|
+
}
|
|
128
|
+
/** The details under a step, joined to its mark by a tree drawn from their order. */
|
|
129
|
+
export declare function ChatReasoningStepNotes({ children, className, ...rest }: ChatReasoningStepNotesProps): import('react').JSX.Element;
|
|
130
|
+
export interface ChatReasoningStepNoteProps extends ComponentProps<'div'> {
|
|
131
|
+
children: ReactNode;
|
|
132
|
+
className?: string;
|
|
133
|
+
}
|
|
134
|
+
/** A detail under a step in 12px text, lined up with the step's text. */
|
|
135
|
+
export declare function ChatReasoningStepNote({ children, className, ...rest }: ChatReasoningStepNoteProps): import('react').JSX.Element;
|
|
136
|
+
export interface ChatReasoningStepNotePagesProps extends ComponentProps<'div'> {
|
|
137
|
+
children: ReactNode;
|
|
138
|
+
className?: string;
|
|
139
|
+
}
|
|
140
|
+
/** The pages Swisper read for a web step: a plain list of `ChatReasoningStepNotePageRow`. */
|
|
141
|
+
export declare function ChatReasoningStepNotePages({ children, className, ...rest }: ChatReasoningStepNotePagesProps): import('react').JSX.Element;
|
|
142
|
+
export interface ChatReasoningStepNotePageRowProps extends ComponentProps<'div'> {
|
|
143
|
+
children: ReactNode;
|
|
144
|
+
className?: string;
|
|
145
|
+
/**
|
|
146
|
+
* Merges the row onto its one child, usually your `<a>` or router link, so the whole row is the
|
|
147
|
+
* link. The hover fill, the brighter title and domain, and the focus outline apply to it.
|
|
148
|
+
*/
|
|
149
|
+
asChild?: boolean;
|
|
150
|
+
}
|
|
151
|
+
/** One page: favicon, title and domain in a 26px row. Pass `asChild` to render it as your link. */
|
|
152
|
+
export declare const ChatReasoningStepNotePageRow: import('react').ForwardRefExoticComponent<Omit<ChatReasoningStepNotePageRowProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
153
|
+
export interface ChatReasoningStepNotePageIconProps extends ComponentProps<'span'> {
|
|
154
|
+
/** The page's favicon as an `<img>` (decorative, `alt=""`), or a letter when there is none. */
|
|
155
|
+
children: ReactNode;
|
|
156
|
+
className?: string;
|
|
157
|
+
}
|
|
158
|
+
/** The page's 16px favicon tile; a letter stands in when there is no favicon. */
|
|
159
|
+
export declare function ChatReasoningStepNotePageIcon({ children, className, ...rest }: ChatReasoningStepNotePageIconProps): import('react').JSX.Element;
|
|
160
|
+
export interface ChatReasoningStepNotePageTitleProps extends ComponentProps<'span'> {
|
|
161
|
+
children: ReactNode;
|
|
162
|
+
className?: string;
|
|
163
|
+
}
|
|
164
|
+
/** The page's title, cut with an ellipsis. Brightens while the row is hovered. */
|
|
165
|
+
export declare function ChatReasoningStepNotePageTitle({ children, className, ...rest }: ChatReasoningStepNotePageTitleProps): import('react').JSX.Element;
|
|
166
|
+
export interface ChatReasoningStepNotePageDomainProps extends ComponentProps<'span'> {
|
|
167
|
+
children: ReactNode;
|
|
168
|
+
className?: string;
|
|
169
|
+
}
|
|
170
|
+
/** The page's domain at the end of the row. Turns blue while the row is hovered or focused. */
|
|
171
|
+
export declare function ChatReasoningStepNotePageDomain({ children, className, ...rest }: ChatReasoningStepNotePageDomainProps): import('react').JSX.Element;
|
|
172
|
+
export interface ChatReasoningEndProps extends ComponentProps<'div'> {
|
|
173
|
+
children: ReactNode;
|
|
174
|
+
className?: string;
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* The last row of the window: how the work ended ("Done in 40 s", "Stopped"). Render it once the
|
|
178
|
+
* root is done or stopped, after the last step.
|
|
179
|
+
*/
|
|
180
|
+
export declare function ChatReasoningEnd({ children, className, ...rest }: ChatReasoningEndProps): import('react').JSX.Element;
|
|
181
|
+
export interface ChatReasoningEndIconProps extends ComponentProps<'span'> {
|
|
182
|
+
/** A check once done, a stop icon once stopped. */
|
|
183
|
+
children: ReactNode;
|
|
184
|
+
className?: string;
|
|
185
|
+
}
|
|
186
|
+
/** The end row's 14px icon, in the mark column. Hidden from assistive tech: the text says it. */
|
|
187
|
+
export declare function ChatReasoningEndIcon({ children, className, ...rest }: ChatReasoningEndIconProps): import('react').JSX.Element;
|
|
188
|
+
export interface ChatReasoningEndTextProps extends ComponentProps<'span'> {
|
|
189
|
+
children: ReactNode;
|
|
190
|
+
className?: string;
|
|
191
|
+
}
|
|
192
|
+
/** The end row's text: "Done in 40 s" or "Stopped". */
|
|
193
|
+
export declare function ChatReasoningEndText({ children, className, ...rest }: ChatReasoningEndTextProps): import('react').JSX.Element;
|
|
194
|
+
//# sourceMappingURL=chat-reasoning.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-reasoning.d.ts","sourceRoot":"","sources":["../../../src/components/chat-reasoning/chat-reasoning.tsx"],"names":[],"mappings":"AAEA,OAAO,EASL,KAAK,cAAc,EACnB,KAAK,GAAG,EACR,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAEf,OAAO,EAML,KAAK,gBAAgB,EACtB,MAAM,gBAAgB,CAAC;AAGxB,0EAA0E;AAC1E,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;AAqFjE,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,gBAAgB,EAAE,YAAY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CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,+FAA+F;AAC/F,wBAAgB,+BAA+B,CAAC,EAC9C,QAAQ,EACR,SAAS,EACT,GAAG,IAAI,EACR,EAAE,oCAAoC,+BAkBtC;AAED,MAAM,WAAW,qBAAsB,SAAQ,cAAc,CAAC,KAAK,CAAC;IAClE,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,qBAAqB,+BAiBvF;AAED,MAAM,WAAW,yBAA0B,SAAQ,cAAc,CAAC,MAAM,CAAC;IACvE,mDAAmD;IACnD,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,iGAAiG;AACjG,wBAAgB,oBAAoB,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,yBAAyB,+BAiB/F;AAED,MAAM,WAAW,yBAA0B,SAAQ,cAAc,CAAC,MAAM,CAAC;IACvE,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,uDAAuD;AACvD,wBAAgB,oBAAoB,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,yBAAyB,+BAgB/F"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { ChatReasoning } from './chat-reasoning';
|
|
3
|
+
declare const meta: Meta<typeof ChatReasoning>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof ChatReasoning>;
|
|
6
|
+
/** The finished reasoning above an answer: collapsed, saying what was checked and how long it took. */
|
|
7
|
+
export declare const Default: Story;
|
|
8
|
+
/**
|
|
9
|
+
* Opened after the answer: every step with its mark, notes hanging under it as a tree, the pages
|
|
10
|
+
* Swisper read under the web step, and the end row.
|
|
11
|
+
*/
|
|
12
|
+
export declare const DoneOpen: Story;
|
|
13
|
+
/** Still working, collapsed: the symbol turns and a light sweeps across the current step's line. */
|
|
14
|
+
export declare const Running: Story;
|
|
15
|
+
/**
|
|
16
|
+
* Tools running in parallel, open: the line says "Working on your request" and each live row gets
|
|
17
|
+
* the light sweep; live source marks pulse on their tile.
|
|
18
|
+
*/
|
|
19
|
+
export declare const Parallel: Story;
|
|
20
|
+
/** Stopped by the person: a stop square in place of the symbol, and the end row says so. */
|
|
21
|
+
export declare const Stopped: Story;
|
|
22
|
+
/** A quick answer: only the row, from its first step to the done line. The window never opens. */
|
|
23
|
+
export declare const WithoutSteps: Story;
|
|
24
|
+
/**
|
|
25
|
+
* The pages Swisper read under a web step. Each row is the consumer's link through `asChild`: hover
|
|
26
|
+
* fills it, focus outlines it, and the domain turns blue.
|
|
27
|
+
*/
|
|
28
|
+
export declare const PageRows: Story;
|
|
29
|
+
/** In a column narrower than 448px the row grows to 44px; the line still ends in an ellipsis. */
|
|
30
|
+
export declare const Narrow: Story;
|
|
31
|
+
/**
|
|
32
|
+
* The open and close rules, played: the row shows from the first step, the window opens with the
|
|
33
|
+
* second and closes when the answer starts. Rows ease in, and each line stays up at least a second.
|
|
34
|
+
*/
|
|
35
|
+
export declare const Streaming: Story;
|
|
36
|
+
/** The reasoning where it's allowed: in an assistant message, above the answer. */
|
|
37
|
+
export declare const Examples: Story;
|
|
38
|
+
//# sourceMappingURL=chat-reasoning.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-reasoning.stories.d.ts","sourceRoot":"","sources":["../../../src/components/chat-reasoning/chat-reasoning.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAqB5D,OAAO,EACL,aAAa,EA0Bd,MAAM,kBAAkB,CAAC;AAE1B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,aAAa,CAyEpC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,aAAa,CAAC,CAAC;AAgG5C,uGAAuG;AACvG,eAAO,MAAM,OAAO,EAAE,KAiBrB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,QAAQ,EAAE,KAGtB,CAAC;AAEF,oGAAoG;AACpG,eAAO,MAAM,OAAO,EAAE,KAOrB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,QAAQ,EAAE,KAYtB,CAAC;AAEF,4FAA4F;AAC5F,eAAO,MAAM,OAAO,EAAE,KAkBrB,CAAC;AAEF,kGAAkG;AAClG,eAAO,MAAM,YAAY,EAAE,KAW1B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,QAAQ,EAAE,KAUtB,CAAC;AAEF,iGAAiG;AACjG,eAAO,MAAM,MAAM,EAAE,KAmBpB,CAAC;AAIF;;;GAGG;AACH,eAAO,MAAM,SAAS,EAAE,KAyEvB,CAAC;AAEF,mFAAmF;AACnF,eAAO,MAAM,QAAQ,EAAE,KA2BtB,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { ChatReasoning, ChatReasoningTrigger, ChatReasoningTriggerSymbol, ChatReasoningTriggerSymbolSwisper, ChatReasoningTriggerLabel, ChatReasoningTriggerArrow, ChatReasoningSteps, ChatReasoningStep, ChatReasoningStepHead, ChatReasoningStepIcon, ChatReasoningStepIconDot, ChatReasoningStepIconLogo, ChatReasoningStepIconWeb, ChatReasoningStepText, ChatReasoningStepNotes, ChatReasoningStepNote, ChatReasoningStepNotePages, ChatReasoningStepNotePageRow, ChatReasoningStepNotePageIcon, ChatReasoningStepNotePageTitle, ChatReasoningStepNotePageDomain, ChatReasoningEnd, ChatReasoningEndIcon, ChatReasoningEndText, type ChatReasoningStatus, type ChatReasoningProps, type ChatReasoningTriggerProps, type ChatReasoningTriggerSymbolProps, type ChatReasoningTriggerSymbolSwisperProps, type ChatReasoningTriggerLabelProps, type ChatReasoningTriggerArrowProps, type ChatReasoningStepsProps, type ChatReasoningStepProps, type ChatReasoningStepHeadProps, type ChatReasoningStepIconProps, type ChatReasoningStepIconDotProps, type ChatReasoningStepIconLogoProps, type ChatReasoningStepIconWebProps, type ChatReasoningStepTextProps, type ChatReasoningStepNotesProps, type ChatReasoningStepNoteProps, type ChatReasoningStepNotePagesProps, type ChatReasoningStepNotePageRowProps, type ChatReasoningStepNotePageIconProps, type ChatReasoningStepNotePageTitleProps, type ChatReasoningStepNotePageDomainProps, type ChatReasoningEndProps, type ChatReasoningEndIconProps, type ChatReasoningEndTextProps, } from './chat-reasoning';
|
|
2
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/chat-reasoning/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,0BAA0B,EAC1B,iCAAiC,EACjC,yBAAyB,EACzB,yBAAyB,EACzB,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,EACrB,qBAAqB,EACrB,wBAAwB,EACxB,yBAAyB,EACzB,wBAAwB,EACxB,qBAAqB,EACrB,sBAAsB,EACtB,qBAAqB,EACrB,0BAA0B,EAC1B,4BAA4B,EAC5B,6BAA6B,EAC7B,8BAA8B,EAC9B,+BAA+B,EAC/B,gBAAgB,EAChB,oBAAoB,EACpB,oBAAoB,EACpB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,+BAA+B,EACpC,KAAK,sCAAsC,EAC3C,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACnC,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,6BAA6B,EAClC,KAAK,8BAA8B,EACnC,KAAK,6BAA6B,EAClC,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAChC,KAAK,0BAA0B,EAC/B,KAAK,+BAA+B,EACpC,KAAK,iCAAiC,EACtC,KAAK,kCAAkC,EACvC,KAAK,mCAAmC,EACxC,KAAK,oCAAoC,EACzC,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,GAC/B,MAAM,kBAAkB,CAAC"}
|
|
@@ -9,6 +9,8 @@ export interface ChatThinkingProcessProps extends Omit<CollapsibleProps, 'isDisa
|
|
|
9
9
|
/**
|
|
10
10
|
* Collapsible disclosure of the assistant's reasoning or tool steps. Collapsed by default; exposes
|
|
11
11
|
* `data-state` (`open` / `closed`) and `data-streaming` for its parts to style from.
|
|
12
|
+
*
|
|
13
|
+
* @deprecated Use `ChatReasoning` (chat-reasoning), with `status` in place of `isStreaming`.
|
|
12
14
|
*/
|
|
13
15
|
export declare const ChatThinkingProcess: React.ForwardRefExoticComponent<ChatThinkingProcessProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
16
|
export interface ChatThinkingProcessTriggerProps extends ComponentProps<'button'> {
|
|
@@ -16,24 +18,40 @@ export interface ChatThinkingProcessTriggerProps extends ComponentProps<'button'
|
|
|
16
18
|
className?: string;
|
|
17
19
|
isLoading?: boolean;
|
|
18
20
|
}
|
|
19
|
-
/**
|
|
21
|
+
/**
|
|
22
|
+
* The button that expands and collapses the steps; holds the icon, the label and the arrow.
|
|
23
|
+
*
|
|
24
|
+
* @deprecated Use `ChatReasoningTrigger`.
|
|
25
|
+
*/
|
|
20
26
|
export declare function ChatThinkingProcessTrigger({ children, className, ...rest }: ChatThinkingProcessTriggerProps): React.JSX.Element;
|
|
21
27
|
export interface ChatThinkingProcessTriggerIconProps extends ComponentProps<'span'> {
|
|
22
28
|
children: ReactNode;
|
|
23
29
|
className?: string;
|
|
24
30
|
}
|
|
25
|
-
/**
|
|
31
|
+
/**
|
|
32
|
+
* The icon before the label: what kind of work the process is.
|
|
33
|
+
*
|
|
34
|
+
* @deprecated Use `ChatReasoningTriggerSymbol`, with `ChatReasoningTriggerSymbolSwisper` inside.
|
|
35
|
+
*/
|
|
26
36
|
export declare function ChatThinkingProcessTriggerIcon({ children, className, ...rest }: ChatThinkingProcessTriggerIconProps): React.JSX.Element;
|
|
27
37
|
export interface ChatThinkingProcessTriggerLabelProps extends ComponentProps<'span'> {
|
|
28
38
|
children: ReactNode;
|
|
29
39
|
className?: string;
|
|
30
40
|
}
|
|
31
|
-
/**
|
|
41
|
+
/**
|
|
42
|
+
* The trigger's text and accessible name; shimmers while the root is streaming.
|
|
43
|
+
*
|
|
44
|
+
* @deprecated Use `ChatReasoningTriggerLabel`.
|
|
45
|
+
*/
|
|
32
46
|
export declare function ChatThinkingProcessTriggerLabel({ children, className, ...rest }: ChatThinkingProcessTriggerLabelProps): React.JSX.Element;
|
|
33
47
|
export interface ChatThinkingProcessTriggerArrowProps extends ComponentProps<'span'> {
|
|
34
48
|
className?: string;
|
|
35
49
|
}
|
|
36
|
-
/**
|
|
50
|
+
/**
|
|
51
|
+
* The chevron after the label; points up while the steps are expanded. Hidden from assistive tech.
|
|
52
|
+
*
|
|
53
|
+
* @deprecated Use `ChatReasoningTriggerArrow`.
|
|
54
|
+
*/
|
|
37
55
|
export declare function ChatThinkingProcessTriggerArrow({ className, ...rest }: ChatThinkingProcessTriggerArrowProps): React.JSX.Element;
|
|
38
56
|
export interface ChatThinkingProcessContentProps extends ComponentProps<'div'> {
|
|
39
57
|
children: ReactNode;
|
|
@@ -49,6 +67,8 @@ export interface ChatThinkingProcessContentProps extends ComponentProps<'div'> {
|
|
|
49
67
|
/**
|
|
50
68
|
* The steps, listed under the label once expanded. The last one is previewed while the root is
|
|
51
69
|
* streaming and collapsed.
|
|
70
|
+
*
|
|
71
|
+
* @deprecated Use `ChatReasoningSteps`.
|
|
52
72
|
*/
|
|
53
73
|
export declare function ChatThinkingProcessContent({ children, className, itemsClassName, previewClassName, hasLastMessagePreview, ...rest }: ChatThinkingProcessContentProps): React.JSX.Element;
|
|
54
74
|
export interface ChatThinkingProcessContentPreviewProps {
|
|
@@ -61,12 +81,20 @@ export interface ChatThinkingProcessContentItemProps extends ComponentProps<'div
|
|
|
61
81
|
children: ReactNode;
|
|
62
82
|
className?: string;
|
|
63
83
|
}
|
|
64
|
-
/**
|
|
84
|
+
/**
|
|
85
|
+
* One step of the process: text, or any node such as streamed Markdown, after an optional icon.
|
|
86
|
+
*
|
|
87
|
+
* @deprecated Use `ChatReasoningStep` with a `ChatReasoningStepHead` and a `ChatReasoningStepText`.
|
|
88
|
+
*/
|
|
65
89
|
export declare function ChatThinkingProcessContentItem({ children, className, ...rest }: ChatThinkingProcessContentItemProps): React.JSX.Element;
|
|
66
90
|
export interface ChatThinkingProcessContentItemIconProps extends ComponentProps<'span'> {
|
|
67
91
|
children: ReactNode;
|
|
68
92
|
className?: string;
|
|
69
93
|
}
|
|
70
|
-
/**
|
|
94
|
+
/**
|
|
95
|
+
* The logo or icon before a step's text: which tool the step used. The height is fixed; a logo's width follows its image.
|
|
96
|
+
*
|
|
97
|
+
* @deprecated Use `ChatReasoningStepIcon` with a `ChatReasoningStepIconDot`, `-Logo` or `-Web` inside.
|
|
98
|
+
*/
|
|
71
99
|
export declare function ChatThinkingProcessContentItemIcon({ children, className, ...rest }: ChatThinkingProcessContentItemIconProps): React.JSX.Element;
|
|
72
100
|
//# sourceMappingURL=chat-thinking-process.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-thinking-process.d.ts","sourceRoot":"","sources":["../../../src/components/chat-thinking-process/chat-thinking-process.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAc,KAAK,cAAc,EAAE,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;AAExF,OAAO,EAML,KAAK,gBAAgB,EACtB,MAAM,gBAAgB,CAAC;AAGxB,MAAM,WAAW,wBAAyB,SAAQ,IAAI,CAAC,gBAAgB,EAAE,YAAY,CAAC;IACpF,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wGAAwG;IACxG,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED
|
|
1
|
+
{"version":3,"file":"chat-thinking-process.d.ts","sourceRoot":"","sources":["../../../src/components/chat-thinking-process/chat-thinking-process.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAc,KAAK,cAAc,EAAE,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;AAExF,OAAO,EAML,KAAK,gBAAgB,EACtB,MAAM,gBAAgB,CAAC;AAGxB,MAAM,WAAW,wBAAyB,SAAQ,IAAI,CAAC,gBAAgB,EAAE,YAAY,CAAC;IACpF,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wGAAwG;IACxG,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,iGAmB/B,CAAC;AAIF,MAAM,WAAW,+BAAgC,SAAQ,cAAc,CAAC,QAAQ,CAAC;IAC/E,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,EACzC,QAAQ,EACR,SAAS,EACT,GAAG,IAAI,EACR,EAAE,+BAA+B,qBAqBjC;AAED,MAAM,WAAW,mCAAoC,SAAQ,cAAc,CAAC,MAAM,CAAC;IACjF,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,wBAAgB,8BAA8B,CAAC,EAC7C,QAAQ,EACR,SAAS,EACT,GAAG,IAAI,EACR,EAAE,mCAAmC,qBAgBrC;AAED,MAAM,WAAW,oCAAqC,SAAQ,cAAc,CA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gB,8BAA8B,CAAC,EAC7C,QAAQ,EACR,SAAS,EACT,GAAG,IAAI,EACR,EAAE,mCAAmC,qBAYrC;AAED,MAAM,WAAW,uCAAwC,SAAQ,cAAc,CAAC,MAAM,CAAC;IACrF,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,wBAAgB,kCAAkC,CAAC,EACjD,QAAQ,EACR,SAAS,EACT,GAAG,IAAI,EACR,EAAE,uCAAuC,qBAgBzC"}
|
|
@@ -17,6 +17,7 @@ export * from './chat-thread';
|
|
|
17
17
|
export * from './chat-artifact';
|
|
18
18
|
export * from './canvas-shell';
|
|
19
19
|
export * from './new-chat-trigger';
|
|
20
|
+
export * from './chat-reasoning';
|
|
20
21
|
export * from './chat-thinking-process';
|
|
21
22
|
export * from './deprecated-empty-state';
|
|
22
23
|
export * from './markdown-viewer';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.stories.d.ts","sourceRoot":"","sources":["../../src/docs/agent.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAA+B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"agent.stories.d.ts","sourceRoot":"","sources":["../../src/docs/agent.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,M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version":3,"file":"chatbot-panel.d.ts","sourceRoot":"","sources":["../../src/docs/chatbot-panel.tsx"],"names":[],"mappings":"AAqDA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAMzC,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,mFAAmF;IACnF,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,MAAM,EAAE,QAAQ,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd;AAID,eAAO,MAAM,OAAO,EAAE,IAAI,EAkCzB,CAAC;AAEF,eAAO,MAAM,WAAW,UAIvB,CAAC;AA+EF,MAAM,WAAW,iBAAiB;IAChC,8DAA8D;IAC9D,YAAY,EAAE,IAAI,EAAE,CAAC;IACrB,6EAA6E;IAC7E,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,wBAAgB,YAAY,CAAC,EAAE,YAAY,EAAE,eAAe,EAAE,OAAO,EAAE,EAAE,iBAAiB,+BA2HzF"}
|