@alquimia-ai/ui 1.9.3 → 2.2.1

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 (90) hide show
  1. package/dist/{alert-dialog-CP71C4vl.d.mts → alert-dialog-HrXEPlTh.d.mts} +1 -1
  2. package/dist/{alert-dialog-CP71C4vl.d.ts → alert-dialog-HrXEPlTh.d.ts} +1 -1
  3. package/dist/components/atoms/index.d.mts +48 -3
  4. package/dist/components/atoms/index.d.ts +48 -3
  5. package/dist/components/atoms/index.js +2086 -1427
  6. package/dist/components/atoms/index.js.map +1 -1
  7. package/dist/components/atoms/index.mjs +1658 -1408
  8. package/dist/components/atoms/index.mjs.map +1 -1
  9. package/dist/components/genui/index.d.mts +79 -0
  10. package/dist/components/genui/index.d.ts +79 -0
  11. package/dist/components/genui/index.js +4693 -0
  12. package/dist/components/genui/index.js.map +1 -0
  13. package/dist/components/genui/index.mjs +4622 -0
  14. package/dist/components/genui/index.mjs.map +1 -0
  15. package/dist/components/hooks/index.d.mts +2 -1
  16. package/dist/components/hooks/index.d.ts +2 -1
  17. package/dist/components/hooks/index.js +572 -211
  18. package/dist/components/hooks/index.js.map +1 -1
  19. package/dist/components/hooks/index.mjs +505 -193
  20. package/dist/components/hooks/index.mjs.map +1 -1
  21. package/dist/components/molecules/documents/index.d.mts +1 -0
  22. package/dist/components/molecules/documents/index.d.ts +1 -0
  23. package/dist/components/molecules/documents/index.js +2596 -1889
  24. package/dist/components/molecules/documents/index.js.map +1 -1
  25. package/dist/components/molecules/documents/index.mjs +2435 -1769
  26. package/dist/components/molecules/documents/index.mjs.map +1 -1
  27. package/dist/components/molecules/index.d.mts +2 -2
  28. package/dist/components/molecules/index.d.ts +2 -2
  29. package/dist/components/molecules/index.js +2464 -2119
  30. package/dist/components/molecules/index.js.map +1 -1
  31. package/dist/components/molecules/index.mjs +2283 -2095
  32. package/dist/components/molecules/index.mjs.map +1 -1
  33. package/dist/components/molecules/viewers/index.js +1485 -1188
  34. package/dist/components/molecules/viewers/index.js.map +1 -1
  35. package/dist/components/molecules/viewers/index.mjs +1436 -1170
  36. package/dist/components/molecules/viewers/index.mjs.map +1 -1
  37. package/dist/components/organisms/index.d.mts +16 -2
  38. package/dist/components/organisms/index.d.ts +16 -2
  39. package/dist/components/organisms/index.js +3289 -2637
  40. package/dist/components/organisms/index.js.map +1 -1
  41. package/dist/components/organisms/index.mjs +3210 -2610
  42. package/dist/components/organisms/index.mjs.map +1 -1
  43. package/dist/components/templates/index.d.mts +25 -3
  44. package/dist/components/templates/index.d.ts +25 -3
  45. package/dist/components/templates/index.js +1671 -1302
  46. package/dist/components/templates/index.js.map +1 -1
  47. package/dist/components/templates/index.mjs +1594 -1283
  48. package/dist/components/templates/index.mjs.map +1 -1
  49. package/dist/index.d.mts +11 -6
  50. package/dist/index.d.ts +11 -6
  51. package/dist/index.js +4233 -3012
  52. package/dist/index.js.map +1 -1
  53. package/dist/index.mjs +3619 -2987
  54. package/dist/index.mjs.map +1 -1
  55. package/dist/lib/index.js +106 -54
  56. package/dist/lib/index.js.map +1 -1
  57. package/dist/lib/index.mjs +42 -43
  58. package/dist/lib/index.mjs.map +1 -1
  59. package/dist/providers/index.d.mts +17 -0
  60. package/dist/providers/index.d.ts +17 -0
  61. package/dist/providers/index.js +177 -0
  62. package/dist/providers/index.js.map +1 -0
  63. package/dist/providers/index.mjs +101 -0
  64. package/dist/providers/index.mjs.map +1 -0
  65. package/dist/styles.css +68 -0
  66. package/dist/styles.css.map +1 -0
  67. package/dist/styles.d.mts +2 -0
  68. package/dist/styles.d.ts +2 -0
  69. package/dist/tailwind.config.js +4 -10
  70. package/dist/{toast-2xT7L1tJ.d.mts → toast-DEc6eGUE.d.mts} +1 -1
  71. package/dist/{toast-2xT7L1tJ.d.ts → toast-DEc6eGUE.d.ts} +1 -1
  72. package/dist/types/index.d.mts +5 -5
  73. package/dist/types/index.d.ts +5 -5
  74. package/dist/types/index.js +52 -19
  75. package/dist/types/index.js.map +1 -1
  76. package/dist/types/index.mjs +6 -8
  77. package/dist/types/index.mjs.map +1 -1
  78. package/package.json +29 -9
  79. package/dist/components/index.d.mts +0 -23
  80. package/dist/components/index.d.ts +0 -23
  81. package/dist/components/index.js +0 -1734
  82. package/dist/components/index.js.map +0 -1
  83. package/dist/components/index.mjs +0 -1702
  84. package/dist/components/index.mjs.map +0 -1
  85. package/dist/components/templates/cards/index.d.mts +0 -26
  86. package/dist/components/templates/cards/index.d.ts +0 -26
  87. package/dist/components/templates/cards/index.js +0 -1536
  88. package/dist/components/templates/cards/index.js.map +0 -1
  89. package/dist/components/templates/cards/index.mjs +0 -1504
  90. package/dist/components/templates/cards/index.mjs.map +0 -1
@@ -3,6 +3,7 @@ import { Message } from 'ai';
3
3
  import { TTSResult, Tooler, ToolFactory, RatingData } from '../../types/index.mjs';
4
4
  import * as React$1 from 'react';
5
5
  import { AlquimiaSDK } from '@alquimia-ai/tools/sdk';
6
+ import '@alquimia-ai/tools/types';
6
7
 
7
8
  interface WhisperProps extends React.HTMLAttributes<HTMLDivElement> {
8
9
  message: Message;
@@ -22,7 +23,8 @@ interface SpeechToTextProps extends React.HTMLAttributes<HTMLDivElement> {
22
23
  declare function SpeechToText({ className, speechToText, RecordAudioIcon, IdleAudioIcon, handleReplaceInput, setIsAudioRecording, onSendAudio, ...props }: SpeechToTextProps): react_jsx_runtime.JSX.Element;
23
24
 
24
25
  interface AssistantProps extends React$1.HTMLAttributes<HTMLDivElement> {
25
- sdk: AlquimiaSDK;
26
+ /** Optional — the shell doesn't consume it; kept for API compatibility. */
27
+ sdk?: AlquimiaSDK;
26
28
  title?: string;
27
29
  description?: string;
28
30
  }
@@ -44,7 +46,7 @@ interface AssistantMessageAreaProps extends React$1.HTMLAttributes<HTMLDivElemen
44
46
  additionalInfo?: string;
45
47
  loading?: boolean;
46
48
  tooler?: Tooler[];
47
- stream_id?: string;
49
+ taskid?: string;
48
50
  })[];
49
51
  actions?: MessageAction[];
50
52
  messagesEndRef: any;
@@ -55,6 +57,18 @@ interface AssistantMessageAreaProps extends React$1.HTMLAttributes<HTMLDivElemen
55
57
  toolFactory?: ToolFactory;
56
58
  isLoading: boolean;
57
59
  showDetailedErrors?: boolean;
60
+ /**
61
+ * Optional injection seam for content rendered between messages. Called with `0`
62
+ * before the first message and `i + 1` after the message at index `i`, so callers
63
+ * can interleave extra nodes (e.g. GenUI surfaces anchored to a message count).
64
+ * Generic on purpose — the organism stays unaware of GenUI.
65
+ */
66
+ interleave?: (afterIndex: number) => React$1.ReactNode;
67
+ /**
68
+ * When true, suppresses the trailing typing indicator — used when an interactive
69
+ * surface is awaiting the user, so the chat doesn't look like it's still thinking.
70
+ */
71
+ awaitingUser?: boolean;
58
72
  }
59
73
  declare const AssistantMessageArea: React$1.ForwardRefExoticComponent<AssistantMessageAreaProps & React$1.RefAttributes<HTMLDivElement>>;
60
74
  interface AssistantInputProps extends React$1.FormHTMLAttributes<HTMLFormElement> {
@@ -3,6 +3,7 @@ import { Message } from 'ai';
3
3
  import { TTSResult, Tooler, ToolFactory, RatingData } from '../../types/index.js';
4
4
  import * as React$1 from 'react';
5
5
  import { AlquimiaSDK } from '@alquimia-ai/tools/sdk';
6
+ import '@alquimia-ai/tools/types';
6
7
 
7
8
  interface WhisperProps extends React.HTMLAttributes<HTMLDivElement> {
8
9
  message: Message;
@@ -22,7 +23,8 @@ interface SpeechToTextProps extends React.HTMLAttributes<HTMLDivElement> {
22
23
  declare function SpeechToText({ className, speechToText, RecordAudioIcon, IdleAudioIcon, handleReplaceInput, setIsAudioRecording, onSendAudio, ...props }: SpeechToTextProps): react_jsx_runtime.JSX.Element;
23
24
 
24
25
  interface AssistantProps extends React$1.HTMLAttributes<HTMLDivElement> {
25
- sdk: AlquimiaSDK;
26
+ /** Optional — the shell doesn't consume it; kept for API compatibility. */
27
+ sdk?: AlquimiaSDK;
26
28
  title?: string;
27
29
  description?: string;
28
30
  }
@@ -44,7 +46,7 @@ interface AssistantMessageAreaProps extends React$1.HTMLAttributes<HTMLDivElemen
44
46
  additionalInfo?: string;
45
47
  loading?: boolean;
46
48
  tooler?: Tooler[];
47
- stream_id?: string;
49
+ taskid?: string;
48
50
  })[];
49
51
  actions?: MessageAction[];
50
52
  messagesEndRef: any;
@@ -55,6 +57,18 @@ interface AssistantMessageAreaProps extends React$1.HTMLAttributes<HTMLDivElemen
55
57
  toolFactory?: ToolFactory;
56
58
  isLoading: boolean;
57
59
  showDetailedErrors?: boolean;
60
+ /**
61
+ * Optional injection seam for content rendered between messages. Called with `0`
62
+ * before the first message and `i + 1` after the message at index `i`, so callers
63
+ * can interleave extra nodes (e.g. GenUI surfaces anchored to a message count).
64
+ * Generic on purpose — the organism stays unaware of GenUI.
65
+ */
66
+ interleave?: (afterIndex: number) => React$1.ReactNode;
67
+ /**
68
+ * When true, suppresses the trailing typing indicator — used when an interactive
69
+ * surface is awaiting the user, so the chat doesn't look like it's still thinking.
70
+ */
71
+ awaitingUser?: boolean;
58
72
  }
59
73
  declare const AssistantMessageArea: React$1.ForwardRefExoticComponent<AssistantMessageAreaProps & React$1.RefAttributes<HTMLDivElement>>;
60
74
  interface AssistantInputProps extends React$1.FormHTMLAttributes<HTMLFormElement> {