@agentiffai/design 0.1.4 → 0.1.6

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 (64) hide show
  1. package/dist/{Window-CukhSS8T.d.cts → StreamStatusIndicator-DM5n4MI1.d.cts} +141 -4
  2. package/dist/{Window-CukhSS8T.d.ts → StreamStatusIndicator-DM5n4MI1.d.ts} +141 -4
  3. package/dist/copilotkit/index.cjs +937 -206
  4. package/dist/copilotkit/index.cjs.map +1 -1
  5. package/dist/copilotkit/index.d.cts +1 -1
  6. package/dist/copilotkit/index.d.ts +1 -1
  7. package/dist/copilotkit/index.js +935 -207
  8. package/dist/copilotkit/index.js.map +1 -1
  9. package/dist/index.cjs +1819 -164
  10. package/dist/index.cjs.map +1 -1
  11. package/dist/index.d.cts +17 -3
  12. package/dist/index.d.ts +17 -3
  13. package/dist/index.js +1812 -165
  14. package/dist/index.js.map +1 -1
  15. package/dist/layout/index.cjs +85 -50
  16. package/dist/layout/index.cjs.map +1 -1
  17. package/dist/layout/index.d.cts +10 -3
  18. package/dist/layout/index.d.ts +10 -3
  19. package/dist/layout/index.js +85 -50
  20. package/dist/layout/index.js.map +1 -1
  21. package/dist/theme/index.cjs +6 -1
  22. package/dist/theme/index.cjs.map +1 -1
  23. package/dist/theme/index.d.cts +8 -0
  24. package/dist/theme/index.d.ts +8 -0
  25. package/dist/theme/index.js +6 -1
  26. package/dist/theme/index.js.map +1 -1
  27. package/dist/workflow/index.cjs +995 -0
  28. package/dist/workflow/index.cjs.map +1 -0
  29. package/dist/workflow/index.d.cts +168 -0
  30. package/dist/workflow/index.d.ts +168 -0
  31. package/dist/workflow/index.js +986 -0
  32. package/dist/workflow/index.js.map +1 -0
  33. package/package.json +16 -3
  34. package/public/assets/bg-set/brand-logos/Google.svg +1 -0
  35. package/public/assets/bg-set/brand-logos/Google2.svg +1 -0
  36. package/public/assets/bg-set/brand-logos/Microsoft.svg +1 -0
  37. package/public/assets/bg-set/brand-logos/Microsoft2.svg +1 -0
  38. package/public/assets/bg-set/brand-logos/Slack.svg +1 -0
  39. package/public/assets/bg-set/brand-logos/Slack2.svg +1 -0
  40. package/public/assets/bg-set/brand-logos/YouTube.svg +1 -0
  41. package/public/assets/bg-set/brand-logos/YouTube2.svg +1 -0
  42. package/public/assets/bg-set/pattern/Size=lg, Type=Waves Rays2.svg +1 -0
  43. package/public/assets/bg-set/pattern/Size=md, Type=Waves Rays2.svg +1 -0
  44. package/public/assets/bg-set/pattern/Size=sm, Type=Waves Rays2.svg +1 -0
  45. package/public/assets/bg-set/pattern/Size=xl, Type=Waves Rays2.svg +1 -0
  46. package/public/assets/bg-set/pattern/Size=xs, Type=Waves Rays2.svg +1 -0
  47. package/public/assets/icon-set/Icon-add-circle-fill.svg +1 -0
  48. package/public/assets/icon-set/Icon-arrow-left-fill.svg +1 -0
  49. package/public/assets/icon-set/Icon-calendar-fill.svg +1 -0
  50. package/public/assets/icon-set/Icon-chat-1-fill.svg +1 -0
  51. package/public/assets/icon-set/Icon-check-fill.svg +3 -0
  52. package/public/assets/icon-set/Icon-close-fill.svg +3 -0
  53. package/public/assets/icon-set/Icon-download-2-fill.svg +1 -0
  54. package/public/assets/icon-set/Icon-home-fill.svg +1 -0
  55. package/public/assets/icon-set/Icon-hourglass-line.svg +3 -0
  56. package/public/assets/icon-set/Icon-loader-2-line.svg +3 -0
  57. package/public/assets/icon-set/Icon-mic-fill.svg +1 -0
  58. package/public/assets/icon-set/Icon-radio-button-line.svg +3 -0
  59. package/public/assets/icon-set/Icon-settings-3-fill.svg +1 -0
  60. package/public/assets/icon-set/Icon-settings-fill.svg +1 -0
  61. package/public/assets/icon-set/Icon-settings-line.svg +1 -0
  62. package/public/assets/icon-set/Icon-shield-check-fill.svg +3 -0
  63. package/public/assets/icon-set/Icon-shield-cross-fill.svg +3 -0
  64. package/public/assets/icon-set/logout-box-fill.svg +1 -0
@@ -209,6 +209,11 @@ interface FileAttachmentProps extends Omit<AriaButtonProps$1, 'children'> {
209
209
  */
210
210
  declare const FileAttachment: React__default.FC<FileAttachmentProps>;
211
211
 
212
+ interface ActionButtonType$1 {
213
+ label: string;
214
+ onClick: () => void;
215
+ icon?: React__default.ReactNode;
216
+ }
212
217
  interface AssistantMessageProps {
213
218
  /** Message content to display */
214
219
  content?: string;
@@ -218,12 +223,18 @@ interface AssistantMessageProps {
218
223
  avatarInitials?: string;
219
224
  /** Whether to show loading state */
220
225
  isLoading?: boolean;
226
+ /** Whether message is currently streaming */
227
+ isStreaming?: boolean;
221
228
  /** Custom className for styling */
222
229
  className?: string;
223
230
  /** Support for markdown rendering (future enhancement) */
224
231
  enableMarkdown?: boolean;
225
232
  /** File attachments to display below the message */
226
233
  attachments?: FileAttachmentProps[];
234
+ /** Optional timestamp */
235
+ timestamp?: string;
236
+ /** Action buttons to display */
237
+ actions?: ActionButtonType$1[];
227
238
  }
228
239
  /**
229
240
  * AssistantMessage component displays AI assistant messages with avatar
@@ -231,8 +242,12 @@ interface AssistantMessageProps {
231
242
  * Features:
232
243
  * - Avatar with image or initials fallback
233
244
  * - Loading state with animated dots
245
+ * - Streaming state indicator
234
246
  * - Markdown support (optional)
235
- * - Clean, modern design
247
+ * - Dark gray bubble (#2D2D3D) from Figma design
248
+ * - Left-aligned layout
249
+ * - Action buttons support
250
+ * - Timestamp display
236
251
  */
237
252
  declare const AssistantMessage: React__default.FC<AssistantMessageProps>;
238
253
 
@@ -305,6 +320,11 @@ declare const MessagesListContainer: styled_components_dist_types.IStyledCompone
305
320
  }>> & string;
306
321
  declare const MessagesListContent: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
307
322
 
323
+ interface ActionButtonType {
324
+ label: string;
325
+ onClick: () => void;
326
+ icon?: React__default.ReactNode;
327
+ }
308
328
  interface UserMessageProps {
309
329
  /** The message content to display */
310
330
  content: string;
@@ -316,12 +336,24 @@ interface UserMessageProps {
316
336
  avatarUrl?: string;
317
337
  /** Optional username */
318
338
  username?: string;
339
+ /** Whether the message is currently streaming */
340
+ isStreaming?: boolean;
341
+ /** Action buttons to display below the message */
342
+ actions?: ActionButtonType[];
319
343
  }
320
344
  /**
321
345
  * UserMessage component displays a user's message in a chat interface.
322
- * Styled with right alignment and distinct styling from assistant messages.
346
+ * Styled with right alignment and pink/purple gradient from Figma design.
347
+ *
348
+ * Features:
349
+ * - Right-aligned layout
350
+ * - Pink/purple gradient background (#D8B4FE)
351
+ * - Support for streaming state
352
+ * - Optional timestamp display
353
+ * - Action buttons support
354
+ * - Avatar display
323
355
  */
324
- declare const UserMessage: ({ content, timestamp, className, avatarUrl, username, }: UserMessageProps) => react_jsx_runtime.JSX.Element;
356
+ declare const UserMessage: ({ content, timestamp, className, avatarUrl, username, isStreaming, actions, }: UserMessageProps) => react_jsx_runtime.JSX.Element;
325
357
 
326
358
  interface ResponseProps {
327
359
  /** Loading state - shows animated dots */
@@ -428,4 +460,109 @@ interface WindowProps {
428
460
  */
429
461
  declare const Window: React__default.FC<WindowProps>;
430
462
 
431
- export { type Action as A, type ButtonProps as B, type FooterProps as F, type HeaderProps as H, type InputProps as I, type Message as M, type ResponseProps as R, type SuggestionsProps as S, type UserMessageProps as U, type WindowProps as W, type ActionsLayout as a, type ActionsProps as b, type ActionVariant as c, Actions as d, type AgentStateProps as e, AgentState as f, type ButtonSize as g, type ButtonVariant as h, Button as i, Footer as j, Header as k, Input as l, type AssistantMessageProps as m, type FileAttachmentProps as n, type MessagesListProps as o, type MessagesProps as p, AssistantMessage as q, FileAttachment as r, Messages as s, MessagesList as t, MessagesListContainer as u, MessagesListContent as v, UserMessage as w, Response as x, Suggestions as y, Window as z };
463
+ /**
464
+ * StreamingText Component
465
+ *
466
+ * Provides typewriter animation for streaming AI responses.
467
+ *
468
+ * @see specs/015-restyle-ai-chat/spec.md:FR-031, FR-042
469
+ * @see UI_COMPONENTS_SSE.md:548-595
470
+ */
471
+ interface StreamingTextProps {
472
+ /** The text content to display */
473
+ content: string;
474
+ /** Whether text is currently streaming */
475
+ isStreaming?: boolean;
476
+ /** Typing speed in milliseconds per character */
477
+ typingSpeed?: number;
478
+ /** Whether to show blinking cursor */
479
+ cursor?: boolean;
480
+ /** Visual variant */
481
+ variant?: 'default' | 'code' | 'markdown';
482
+ /** Callback when streaming completes */
483
+ onStreamComplete?: () => void;
484
+ /** Additional CSS class name */
485
+ className?: string;
486
+ }
487
+ /**
488
+ * StreamingText component with typewriter animation
489
+ *
490
+ * Features:
491
+ * - Character-by-character streaming animation
492
+ * - Configurable typing speed
493
+ * - Optional blinking cursor
494
+ * - Code and markdown variants
495
+ * - Completion callback
496
+ */
497
+ declare const StreamingText: React.FC<StreamingTextProps>;
498
+
499
+ /**
500
+ * StreamErrorMessage Component
501
+ *
502
+ * Displays inline chat errors with retry support.
503
+ *
504
+ * @see specs/015-restyle-ai-chat/spec.md
505
+ */
506
+
507
+ interface StreamErrorMessageProps {
508
+ /** Error message to display */
509
+ error: string | Error;
510
+ /** Visual variant */
511
+ variant?: 'inline' | 'banner';
512
+ /** Whether the error can be retried */
513
+ retryable?: boolean;
514
+ /** Callback when retry is clicked */
515
+ onRetry?: () => void;
516
+ /** Callback when dismiss is clicked */
517
+ onDismiss?: () => void;
518
+ /** Additional error details */
519
+ details?: string;
520
+ /** Custom className */
521
+ className?: string;
522
+ }
523
+ /**
524
+ * StreamErrorMessage component for inline chat errors
525
+ *
526
+ * Features:
527
+ * - Inline and banner variants
528
+ * - Retry support for recoverable errors
529
+ * - Dismissible errors
530
+ * - Error details display
531
+ * - Accessible error reporting
532
+ */
533
+ declare const StreamErrorMessage: React__default.FC<StreamErrorMessageProps>;
534
+
535
+ /**
536
+ * StreamStatusIndicator Component
537
+ *
538
+ * Displays connection status for streaming chat (SSE).
539
+ *
540
+ * @see specs/015-restyle-ai-chat/spec.md
541
+ */
542
+
543
+ interface StreamStatusIndicatorProps {
544
+ /** Connection status */
545
+ status: 'connected' | 'streaming' | 'disconnected' | 'reconnecting';
546
+ /** Visual variant */
547
+ variant?: 'dot' | 'badge';
548
+ /** Size of the indicator */
549
+ size?: 'sm' | 'md' | 'lg';
550
+ /** Whether to show text label */
551
+ showLabel?: boolean;
552
+ /** Custom className */
553
+ className?: string;
554
+ }
555
+ /**
556
+ * StreamStatusIndicator component for showing connection status
557
+ *
558
+ * Features:
559
+ * - Visual status indicators (connected/streaming/disconnected/reconnecting)
560
+ * - Color-coded status (green/blue/red/yellow)
561
+ * - Pulsing animation for streaming state
562
+ * - Dot and badge variants
563
+ * - Size options (sm/md/lg)
564
+ * - Optional text labels
565
+ */
566
+ declare const StreamStatusIndicator: React__default.FC<StreamStatusIndicatorProps>;
567
+
568
+ export { type Action as A, type ButtonProps as B, StreamingText as C, type StreamingTextProps as D, StreamErrorMessage as E, type FooterProps as F, type StreamErrorMessageProps as G, type HeaderProps as H, type InputProps as I, StreamStatusIndicator as J, type StreamStatusIndicatorProps as K, type Message as M, type ResponseProps as R, type SuggestionsProps as S, type UserMessageProps as U, type WindowProps as W, type ActionsLayout as a, type ActionsProps as b, type ActionVariant as c, Actions as d, type AgentStateProps as e, AgentState as f, type ButtonSize as g, type ButtonVariant as h, Button as i, Footer as j, Header as k, Input as l, type AssistantMessageProps as m, type FileAttachmentProps as n, type MessagesListProps as o, type MessagesProps as p, AssistantMessage as q, FileAttachment as r, Messages as s, MessagesList as t, MessagesListContainer as u, MessagesListContent as v, UserMessage as w, Response as x, Suggestions as y, Window as z };
@@ -209,6 +209,11 @@ interface FileAttachmentProps extends Omit<AriaButtonProps$1, 'children'> {
209
209
  */
210
210
  declare const FileAttachment: React__default.FC<FileAttachmentProps>;
211
211
 
212
+ interface ActionButtonType$1 {
213
+ label: string;
214
+ onClick: () => void;
215
+ icon?: React__default.ReactNode;
216
+ }
212
217
  interface AssistantMessageProps {
213
218
  /** Message content to display */
214
219
  content?: string;
@@ -218,12 +223,18 @@ interface AssistantMessageProps {
218
223
  avatarInitials?: string;
219
224
  /** Whether to show loading state */
220
225
  isLoading?: boolean;
226
+ /** Whether message is currently streaming */
227
+ isStreaming?: boolean;
221
228
  /** Custom className for styling */
222
229
  className?: string;
223
230
  /** Support for markdown rendering (future enhancement) */
224
231
  enableMarkdown?: boolean;
225
232
  /** File attachments to display below the message */
226
233
  attachments?: FileAttachmentProps[];
234
+ /** Optional timestamp */
235
+ timestamp?: string;
236
+ /** Action buttons to display */
237
+ actions?: ActionButtonType$1[];
227
238
  }
228
239
  /**
229
240
  * AssistantMessage component displays AI assistant messages with avatar
@@ -231,8 +242,12 @@ interface AssistantMessageProps {
231
242
  * Features:
232
243
  * - Avatar with image or initials fallback
233
244
  * - Loading state with animated dots
245
+ * - Streaming state indicator
234
246
  * - Markdown support (optional)
235
- * - Clean, modern design
247
+ * - Dark gray bubble (#2D2D3D) from Figma design
248
+ * - Left-aligned layout
249
+ * - Action buttons support
250
+ * - Timestamp display
236
251
  */
237
252
  declare const AssistantMessage: React__default.FC<AssistantMessageProps>;
238
253
 
@@ -305,6 +320,11 @@ declare const MessagesListContainer: styled_components_dist_types.IStyledCompone
305
320
  }>> & string;
306
321
  declare const MessagesListContent: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
307
322
 
323
+ interface ActionButtonType {
324
+ label: string;
325
+ onClick: () => void;
326
+ icon?: React__default.ReactNode;
327
+ }
308
328
  interface UserMessageProps {
309
329
  /** The message content to display */
310
330
  content: string;
@@ -316,12 +336,24 @@ interface UserMessageProps {
316
336
  avatarUrl?: string;
317
337
  /** Optional username */
318
338
  username?: string;
339
+ /** Whether the message is currently streaming */
340
+ isStreaming?: boolean;
341
+ /** Action buttons to display below the message */
342
+ actions?: ActionButtonType[];
319
343
  }
320
344
  /**
321
345
  * UserMessage component displays a user's message in a chat interface.
322
- * Styled with right alignment and distinct styling from assistant messages.
346
+ * Styled with right alignment and pink/purple gradient from Figma design.
347
+ *
348
+ * Features:
349
+ * - Right-aligned layout
350
+ * - Pink/purple gradient background (#D8B4FE)
351
+ * - Support for streaming state
352
+ * - Optional timestamp display
353
+ * - Action buttons support
354
+ * - Avatar display
323
355
  */
324
- declare const UserMessage: ({ content, timestamp, className, avatarUrl, username, }: UserMessageProps) => react_jsx_runtime.JSX.Element;
356
+ declare const UserMessage: ({ content, timestamp, className, avatarUrl, username, isStreaming, actions, }: UserMessageProps) => react_jsx_runtime.JSX.Element;
325
357
 
326
358
  interface ResponseProps {
327
359
  /** Loading state - shows animated dots */
@@ -428,4 +460,109 @@ interface WindowProps {
428
460
  */
429
461
  declare const Window: React__default.FC<WindowProps>;
430
462
 
431
- export { type Action as A, type ButtonProps as B, type FooterProps as F, type HeaderProps as H, type InputProps as I, type Message as M, type ResponseProps as R, type SuggestionsProps as S, type UserMessageProps as U, type WindowProps as W, type ActionsLayout as a, type ActionsProps as b, type ActionVariant as c, Actions as d, type AgentStateProps as e, AgentState as f, type ButtonSize as g, type ButtonVariant as h, Button as i, Footer as j, Header as k, Input as l, type AssistantMessageProps as m, type FileAttachmentProps as n, type MessagesListProps as o, type MessagesProps as p, AssistantMessage as q, FileAttachment as r, Messages as s, MessagesList as t, MessagesListContainer as u, MessagesListContent as v, UserMessage as w, Response as x, Suggestions as y, Window as z };
463
+ /**
464
+ * StreamingText Component
465
+ *
466
+ * Provides typewriter animation for streaming AI responses.
467
+ *
468
+ * @see specs/015-restyle-ai-chat/spec.md:FR-031, FR-042
469
+ * @see UI_COMPONENTS_SSE.md:548-595
470
+ */
471
+ interface StreamingTextProps {
472
+ /** The text content to display */
473
+ content: string;
474
+ /** Whether text is currently streaming */
475
+ isStreaming?: boolean;
476
+ /** Typing speed in milliseconds per character */
477
+ typingSpeed?: number;
478
+ /** Whether to show blinking cursor */
479
+ cursor?: boolean;
480
+ /** Visual variant */
481
+ variant?: 'default' | 'code' | 'markdown';
482
+ /** Callback when streaming completes */
483
+ onStreamComplete?: () => void;
484
+ /** Additional CSS class name */
485
+ className?: string;
486
+ }
487
+ /**
488
+ * StreamingText component with typewriter animation
489
+ *
490
+ * Features:
491
+ * - Character-by-character streaming animation
492
+ * - Configurable typing speed
493
+ * - Optional blinking cursor
494
+ * - Code and markdown variants
495
+ * - Completion callback
496
+ */
497
+ declare const StreamingText: React.FC<StreamingTextProps>;
498
+
499
+ /**
500
+ * StreamErrorMessage Component
501
+ *
502
+ * Displays inline chat errors with retry support.
503
+ *
504
+ * @see specs/015-restyle-ai-chat/spec.md
505
+ */
506
+
507
+ interface StreamErrorMessageProps {
508
+ /** Error message to display */
509
+ error: string | Error;
510
+ /** Visual variant */
511
+ variant?: 'inline' | 'banner';
512
+ /** Whether the error can be retried */
513
+ retryable?: boolean;
514
+ /** Callback when retry is clicked */
515
+ onRetry?: () => void;
516
+ /** Callback when dismiss is clicked */
517
+ onDismiss?: () => void;
518
+ /** Additional error details */
519
+ details?: string;
520
+ /** Custom className */
521
+ className?: string;
522
+ }
523
+ /**
524
+ * StreamErrorMessage component for inline chat errors
525
+ *
526
+ * Features:
527
+ * - Inline and banner variants
528
+ * - Retry support for recoverable errors
529
+ * - Dismissible errors
530
+ * - Error details display
531
+ * - Accessible error reporting
532
+ */
533
+ declare const StreamErrorMessage: React__default.FC<StreamErrorMessageProps>;
534
+
535
+ /**
536
+ * StreamStatusIndicator Component
537
+ *
538
+ * Displays connection status for streaming chat (SSE).
539
+ *
540
+ * @see specs/015-restyle-ai-chat/spec.md
541
+ */
542
+
543
+ interface StreamStatusIndicatorProps {
544
+ /** Connection status */
545
+ status: 'connected' | 'streaming' | 'disconnected' | 'reconnecting';
546
+ /** Visual variant */
547
+ variant?: 'dot' | 'badge';
548
+ /** Size of the indicator */
549
+ size?: 'sm' | 'md' | 'lg';
550
+ /** Whether to show text label */
551
+ showLabel?: boolean;
552
+ /** Custom className */
553
+ className?: string;
554
+ }
555
+ /**
556
+ * StreamStatusIndicator component for showing connection status
557
+ *
558
+ * Features:
559
+ * - Visual status indicators (connected/streaming/disconnected/reconnecting)
560
+ * - Color-coded status (green/blue/red/yellow)
561
+ * - Pulsing animation for streaming state
562
+ * - Dot and badge variants
563
+ * - Size options (sm/md/lg)
564
+ * - Optional text labels
565
+ */
566
+ declare const StreamStatusIndicator: React__default.FC<StreamStatusIndicatorProps>;
567
+
568
+ export { type Action as A, type ButtonProps as B, StreamingText as C, type StreamingTextProps as D, StreamErrorMessage as E, type FooterProps as F, type StreamErrorMessageProps as G, type HeaderProps as H, type InputProps as I, StreamStatusIndicator as J, type StreamStatusIndicatorProps as K, type Message as M, type ResponseProps as R, type SuggestionsProps as S, type UserMessageProps as U, type WindowProps as W, type ActionsLayout as a, type ActionsProps as b, type ActionVariant as c, Actions as d, type AgentStateProps as e, AgentState as f, type ButtonSize as g, type ButtonVariant as h, Button as i, Footer as j, Header as k, Input as l, type AssistantMessageProps as m, type FileAttachmentProps as n, type MessagesListProps as o, type MessagesProps as p, AssistantMessage as q, FileAttachment as r, Messages as s, MessagesList as t, MessagesListContainer as u, MessagesListContent as v, UserMessage as w, Response as x, Suggestions as y, Window as z };