@swisper.ai/web-chat-ui 0.3.0 → 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.
Files changed (32) hide show
  1. package/README.md +2 -1
  2. package/dist/components/chat-reasoning/chat-reasoning.d.ts +194 -0
  3. package/dist/components/chat-reasoning/chat-reasoning.d.ts.map +1 -0
  4. package/dist/components/chat-reasoning/chat-reasoning.stories.d.ts +38 -0
  5. package/dist/components/chat-reasoning/chat-reasoning.stories.d.ts.map +1 -0
  6. package/dist/components/chat-reasoning/index.d.ts +2 -0
  7. package/dist/components/chat-reasoning/index.d.ts.map +1 -0
  8. package/dist/components/chat-thinking-process/chat-thinking-process.d.ts +55 -18
  9. package/dist/components/chat-thinking-process/chat-thinking-process.d.ts.map +1 -1
  10. package/dist/components/chat-thinking-process/chat-thinking-process.stories.d.ts +11 -6
  11. package/dist/components/chat-thinking-process/chat-thinking-process.stories.d.ts.map +1 -1
  12. package/dist/components/index.d.ts +1 -0
  13. package/dist/components/index.d.ts.map +1 -1
  14. package/dist/docs/agent.stories.d.ts.map +1 -1
  15. package/dist/docs/chatbot-panel.d.ts.map +1 -1
  16. package/dist/index.css +1 -1
  17. package/dist/index.es.js +1371 -883
  18. package/dist/index.es.js.map +1 -1
  19. package/package.json +4 -3
  20. package/src/components/chat-message/__stories__/tool-steps.tsx +44 -20
  21. package/src/components/chat-reasoning/__stories__/fixtures.ts +144 -0
  22. package/src/components/chat-reasoning/chat-reasoning.json +241 -0
  23. package/src/components/chat-reasoning/chat-reasoning.stories.tsx +462 -0
  24. package/src/components/chat-reasoning/chat-reasoning.tsx +1042 -0
  25. package/src/components/chat-reasoning/index.ts +51 -0
  26. package/src/components/chat-thinking-process/chat-thinking-process.json +23 -14
  27. package/src/components/chat-thinking-process/chat-thinking-process.stories.tsx +115 -25
  28. package/src/components/chat-thinking-process/chat-thinking-process.tsx +93 -10
  29. package/src/components/index.ts +1 -0
  30. package/src/docs/agent.stories.tsx +28 -23
  31. package/src/docs/chatbot-panel.tsx +48 -22
  32. package/src/docs/chatbot.mdx +5 -4
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
- | `ChatThinkingProcess` and its parts | A collapsible list of the model's reasoning or tool steps above its answer. |
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,E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AE,SAAS,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"}
@@ -1,63 +1,100 @@
1
- import { ComponentProps, ReactNode } from 'react';
1
+ import { default as React, ComponentProps, ReactNode } from 'react';
2
2
  import { CollapsibleProps } from '@swisper.ai/ui';
3
3
  export interface ChatThinkingProcessProps extends Omit<CollapsibleProps, 'isDisabled'> {
4
4
  children: ReactNode;
5
5
  className?: string;
6
- /** The model is still thinking: the label shimmers. */
6
+ /** The model is still thinking: the label shimmers and, while collapsed, the last step is previewed. */
7
7
  isStreaming?: boolean;
8
8
  }
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
- export declare const ChatThinkingProcess: import('react').ForwardRefExoticComponent<ChatThinkingProcessProps & import('react').RefAttributes<HTMLDivElement>>;
15
+ export declare const ChatThinkingProcess: React.ForwardRefExoticComponent<ChatThinkingProcessProps & React.RefAttributes<HTMLDivElement>>;
14
16
  export interface ChatThinkingProcessTriggerProps extends ComponentProps<'button'> {
15
17
  children: ReactNode;
16
18
  className?: string;
17
19
  isLoading?: boolean;
18
20
  }
19
- /** The button that expands and collapses the steps; holds the icon and the label. */
20
- export declare function ChatThinkingProcessTrigger({ children, className, ...rest }: ChatThinkingProcessTriggerProps): import('react').JSX.Element;
21
+ /**
22
+ * The button that expands and collapses the steps; holds the icon, the label and the arrow.
23
+ *
24
+ * @deprecated Use `ChatReasoningTrigger`.
25
+ */
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
- /** The icon before the label: what kind of work the process is. */
26
- export declare function ChatThinkingProcessTriggerIcon({ children, className, ...rest }: ChatThinkingProcessTriggerIconProps): import('react').JSX.Element;
31
+ /**
32
+ * The icon before the label: what kind of work the process is.
33
+ *
34
+ * @deprecated Use `ChatReasoningTriggerSymbol`, with `ChatReasoningTriggerSymbolSwisper` inside.
35
+ */
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
- /** The trigger's text and accessible name; shimmers while the root is streaming. */
32
- export declare function ChatThinkingProcessTriggerLabel({ children, className, ...rest }: ChatThinkingProcessTriggerLabelProps): import('react').JSX.Element;
41
+ /**
42
+ * The trigger's text and accessible name; shimmers while the root is streaming.
43
+ *
44
+ * @deprecated Use `ChatReasoningTriggerLabel`.
45
+ */
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
  /**
37
51
  * The chevron after the label; points up while the steps are expanded. Hidden from assistive tech.
38
52
  *
39
- * @deprecated The trigger no longer shows an arrow; leave it out. Kept so existing imports compile.
53
+ * @deprecated Use `ChatReasoningTriggerArrow`.
40
54
  */
41
- export declare function ChatThinkingProcessTriggerArrow({ className, ...rest }: ChatThinkingProcessTriggerArrowProps): import('react').JSX.Element;
55
+ export declare function ChatThinkingProcessTriggerArrow({ className, ...rest }: ChatThinkingProcessTriggerArrowProps): React.JSX.Element;
42
56
  export interface ChatThinkingProcessContentProps extends ComponentProps<'div'> {
43
57
  children: ReactNode;
44
- /** Classes for the outer wrapper, which holds the list of steps. */
58
+ /** Classes for the outer wrapper, which holds the preview and the list of steps. */
45
59
  className?: string;
46
60
  /** Classes for the expanded list of steps. */
47
61
  itemsClassName?: string;
62
+ /** Classes for the faded preview of the last step. */
63
+ previewClassName?: string;
64
+ /** Previews the last step while the root is streaming and collapsed. */
65
+ hasLastMessagePreview?: boolean;
66
+ }
67
+ /**
68
+ * The steps, listed under the label once expanded. The last one is previewed while the root is
69
+ * streaming and collapsed.
70
+ *
71
+ * @deprecated Use `ChatReasoningSteps`.
72
+ */
73
+ export declare function ChatThinkingProcessContent({ children, className, itemsClassName, previewClassName, hasLastMessagePreview, ...rest }: ChatThinkingProcessContentProps): React.JSX.Element;
74
+ export interface ChatThinkingProcessContentPreviewProps {
75
+ children: ReactNode;
76
+ className?: string;
77
+ contentId: string;
48
78
  }
49
- /** The steps, listed under the label once expanded. Nothing shows while collapsed. */
50
- export declare function ChatThinkingProcessContent({ children, className, itemsClassName, ...rest }: ChatThinkingProcessContentProps): import('react').JSX.Element;
79
+ export declare function ChatThinkingProcessContentPreview({ children, className, contentId, }: ChatThinkingProcessContentPreviewProps): React.JSX.Element;
51
80
  export interface ChatThinkingProcessContentItemProps extends ComponentProps<'div'> {
52
81
  children: ReactNode;
53
82
  className?: string;
54
83
  }
55
- /** One step of the process: text, or any node such as streamed Markdown, after an optional icon. */
56
- export declare function ChatThinkingProcessContentItem({ children, className, ...rest }: ChatThinkingProcessContentItemProps): import('react').JSX.Element;
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
+ */
89
+ export declare function ChatThinkingProcessContentItem({ children, className, ...rest }: ChatThinkingProcessContentItemProps): React.JSX.Element;
57
90
  export interface ChatThinkingProcessContentItemIconProps extends ComponentProps<'span'> {
58
91
  children: ReactNode;
59
92
  className?: string;
60
93
  }
61
- /** 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. */
62
- export declare function ChatThinkingProcessContentItemIcon({ children, className, ...rest }: ChatThinkingProcessContentItemIconProps): import('react').JSX.Element;
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
+ */
99
+ export declare function ChatThinkingProcessContentItemIcon({ children, className, ...rest }: ChatThinkingProcessContentItemIconProps): React.JSX.Element;
63
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":"AAAA,OAAO,EAAc,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAExE,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,uDAAuD;IACvD,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;;GAGG;AACH,eAAO,MAAM,mBAAmB,qHAmB/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,qFAAqF;AACrF,wBAAgB,0BAA0B,CAAC,EACzC,QAAQ,EACR,SAAS,EACT,GAAG,IAAI,EACR,EAAE,+BAA+B,+BAqBjC;AAED,MAAM,WAAW,mCAAoC,SAAQ,cAAc,CAAC,MAAM,CAAC;IACjF,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,mEAAmE;AACnE,wBAAgB,8BAA8B,CAAC,EAC7C,QAAQ,EACR,SAAS,EACT,GAAG,IAAI,EACR,EAAE,mCAAmC,+BAgBrC;AAED,MAAM,WAAW,oCAAqC,SAAQ,cAAc,CAAC,MAAM,CAAC;IAClF,QAAQ,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AIG;AACH,wBAAgB,kCAAkC,CAAC,EACjD,QAAQ,EACR,SAAS,EACT,GAAG,IAAI,EACR,EAAE,uCAAuC,qBAgBzC"}
@@ -8,7 +8,9 @@ type Story = StoryObj<typeof ChatThinkingProcess>;
8
8
  export declare const Default: Story;
9
9
  /** Expanded steps that each open with the logo of the tool they used. Logos keep their own width. */
10
10
  export declare const WithItemIcons: Story;
11
- /** Still thinking: the label shimmers, and the steps show only once expanded. */
11
+ /** Still thinking with the preview switched off: the label shimmers, and the steps show only once expanded. */
12
+ export declare const WithoutPreview: Story;
13
+ /** Still thinking: the label shimmers and the latest step is previewed under the collapsed trigger. */
12
14
  export declare const Streaming: Story;
13
15
  /** A step whose text grows as it streams in; the label changes to a summary once the stream ends. */
14
16
  export declare const StreamingWithContent: Story;
@@ -16,17 +18,20 @@ export declare const StreamingWithContent: Story;
16
18
  export declare const DefaultOpenAndClose: Story;
17
19
  /** Focuses the trigger with Tab, expands the steps with Enter and collapses them with Space. */
18
20
  export declare const DefaultKeyboard: Story;
19
- /** While streaming, a collapsed process shows no step until it is expanded. */
20
- export declare const StreamingHidesSteps: Story;
21
+ /** While streaming, the collapsed process previews its last step and drops the preview once expanded. */
22
+ export declare const StreamingPreview: Story;
23
+ /** With the preview off, a streaming process shows no step until it is expanded. */
24
+ export declare const WithoutPreviewHidesSteps: Story;
21
25
  /** The process in each place it's allowed: in a chat message while thinking, and above the answer in a thread. */
22
26
  export declare const Examples: Story;
23
- interface ChatThinkingProcessPlaygroundProps extends Omit<ChatThinkingProcessProps, 'children'>, Pick<ChatThinkingProcessContentProps, 'itemsClassName'> {
27
+ interface ChatThinkingProcessPlaygroundProps extends Omit<ChatThinkingProcessProps, 'children'>, Pick<ChatThinkingProcessContentProps, 'itemsClassName' | 'previewClassName' | 'hasLastMessagePreview'> {
24
28
  label: string;
25
29
  icon: ReactNode;
26
30
  stepCount: number;
31
+ hasArrow: boolean;
27
32
  hasItemIcons: boolean;
28
33
  }
29
- declare function ChatThinkingProcessPlayground({ label, icon, stepCount, itemsClassName, defaultOpen, hasItemIcons, ...rest }: ChatThinkingProcessPlaygroundProps): import('react').JSX.Element;
30
- /** Every supported part at once, with each part and prop of the root and the content on the Controls panel. */
34
+ declare function ChatThinkingProcessPlayground({ label, icon, stepCount, itemsClassName, previewClassName, defaultOpen, hasArrow, hasLastMessagePreview, hasItemIcons, ...rest }: ChatThinkingProcessPlaygroundProps): import('react').JSX.Element;
35
+ /** Every part at once, with each part and prop of the root and the content on the Controls panel. */
31
36
  export declare const Playground: StoryObj<typeof ChatThinkingProcessPlayground>;
32
37
  //# sourceMappingURL=chat-thinking-process.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"chat-thinking-process.stories.d.ts","sourceRoot":"","sources":["../../../src/components/chat-thinking-process/chat-thinking-process.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAiBvC,OAAO,EACL,mBAAmB,EAQnB,KAAK,+BAA+B,EACpC,KAAK,wBAAwB,EAC9B,MAAM,yBAAyB,CAAC;AAEjC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,mBAAmB,CAuD1C,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAElD,8FAA8F;AAC9F,eAAO,MAAM,OAAO,EAAE,KAkBrB,CAAC;AAEF,qGAAqG;AACrG,eAAO,MAAM,aAAa,EAAE,KA0B3B,CAAC;AAEF,iFAAiF;AACjF,eAAO,MAAM,SAAS,EAAE,KAiBvB,CAAC;AAEF,qGAAqG;AACrG,eAAO,MAAM,oBAAoB,EAAE,KAuBlC,CAAC;AAEF,wGAAwG;AACxG,eAAO,MAAM,mBAAmB,EAAE,KA8BjC,CAAC;AAEF,gGAAgG;AAChG,eAAO,MAAM,eAAe,EAAE,KA2B7B,CAAC;AAEF,+EAA+E;AAC/E,eAAO,MAAM,mBAAmB,EAAE,KA0BjC,CAAC;AAEF,kHAAkH;AAClH,eAAO,MAAM,QAAQ,EAAE,KA2CtB,CAAC;AAEF,UAAU,kCACR,SACE,IAAI,CAAC,wBAAwB,EAAE,UAAU,CAAC,EAC1C,IAAI,CAAC,+BAA+B,EAAE,gBAAgB,CAAC;IACzD,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,SAAS,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,OAAO,CAAC;CACvB;AAED,iBAAS,6BAA6B,CAAC,EACrC,KAAK,EACL,IAAI,EACJ,SAAS,EACT,cAAc,EACd,WAAW,EACX,YAAY,EACZ,GAAG,IAAI,EACR,EAAE,kCAAkC,+BAuBpC;AAED,+GAA+G;AAC/G,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,OAAO,6BAA6B,CA0CrE,CAAC"}
1
+ {"version":3,"file":"chat-thinking-process.stories.d.ts","sourceRoot":"","sources":["../../../src/components/chat-thinking-process/chat-thinking-process.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAiBvC,OAAO,EACL,mBAAmB,EAQnB,KAAK,+BAA+B,EACpC,KAAK,wBAAwB,EAC9B,MAAM,yBAAyB,CAAC;AAEjC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,mBAAmB,CAwD1C,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAElD,8FAA8F;AAC9F,eAAO,MAAM,OAAO,EAAE,KAoBrB,CAAC;AAEF,qGAAqG;AACrG,eAAO,MAAM,aAAa,EAAE,KA4B3B,CAAC;AAEF,+GAA+G;AAC/G,eAAO,MAAM,cAAc,EAAE,KAmB5B,CAAC;AAEF,uGAAuG;AACvG,eAAO,MAAM,SAAS,EAAE,KAmBvB,CAAC;AAEF,qGAAqG;AACrG,eAAO,MAAM,oBAAoB,EAAE,KAyBlC,CAAC;AAEF,wGAAwG;AACxG,eAAO,MAAM,mBAAmB,EAAE,KAiCjC,CAAC;AAEF,gGAAgG;AAChG,eAAO,MAAM,eAAe,EAAE,KA2B7B,CAAC;AAEF,yGAAyG;AACzG,eAAO,MAAM,gBAAgB,EAAE,KA+B9B,CAAC;AAEF,oFAAoF;AACpF,eAAO,MAAM,wBAAwB,EAAE,KAmBtC,CAAC;AAEF,kHAAkH;AAClH,eAAO,MAAM,QAAQ,EAAE,KA+CtB,CAAC;AAEF,UAAU,kCACR,SACE,IAAI,CAAC,wBAAwB,EAAE,UAAU,CAAC,EAC1C,IAAI,CACF,+BAA+B,EAC/B,gBAAgB,GAAG,kBAAkB,GAAG,uBAAuB,CAChE;IACH,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,SAAS,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,YAAY,EAAE,OAAO,CAAC;CACvB;AAED,iBAAS,6BAA6B,CAAC,EACrC,KAAK,EACL,IAAI,EACJ,SAAS,EACT,cAAc,EACd,gBAAgB,EAChB,WAAW,EACX,QAAQ,EACR,qBAAqB,EACrB,YAAY,EACZ,GAAG,IAAI,EACR,EAAE,kCAAkC,+BA4BpC;AAED,qGAAqG;AACrG,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,OAAO,6BAA6B,CAuDrE,CAAC"}
@@ -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;AAC9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AU,CAAC,EAAE,WAAW,EAAE,aAAa,EAAE,EAAE,eAAe,+BA4GlE;AAiHD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,UAAU,CA+BjC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAC;AAEzC;;;GAGG;AACH,eAAO,MAAM,KAAK,EAAE,KAkBnB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"chatbot-panel.d.ts","sourceRoot":"","sources":["../../src/docs/chatbot-panel.tsx"],"names":[],"mappings":"AA4CA,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"}
1
+ {"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;I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