@altimateai/ui-components 0.0.63 → 0.0.64-beta2

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.
@@ -1,5 +1,5 @@
1
1
  import type { Meta, StoryObj } from "@storybook/react";
2
- import { useState } from "react";
2
+ import React, { useState } from "react";
3
3
  import {
4
4
  TagsInput,
5
5
  TagsInputLabel,
@@ -226,3 +226,36 @@ export const Interactive: Story = {
226
226
  );
227
227
  },
228
228
  };
229
+
230
+ export const WithSuggestions: Story = {
231
+ render: () => {
232
+ const [tags, setTags] = React.useState<string[]>([]);
233
+ return (
234
+ <div className="al-space-y-4 al-p-2">
235
+ <TagsInput
236
+ value={tags}
237
+ onValueChange={setTags}
238
+ suggestions={["React", "Vue", "Angular", "Svelte", "TypeScript", "JavaScript"]}
239
+ onSuggestionSelect={suggestion => {
240
+ setTags([...tags, suggestion]);
241
+ }}
242
+ >
243
+ <TagsInputLabel>With Suggestions Demo</TagsInputLabel>
244
+ <TagsInputList>
245
+ {tags.map(tag => (
246
+ <TagsInputItem key={tag} value={tag}>
247
+ {tag}
248
+ </TagsInputItem>
249
+ ))}
250
+ <TagsInputInput placeholder="Type and press Enter..." />
251
+ <TagsInputClear />
252
+ </TagsInputList>
253
+ </TagsInput>
254
+
255
+ <div className="al-text-sm al-text-muted-foreground">
256
+ <strong>Current tags:</strong> {tags.length > 0 ? tags.join(", ") : "None"}
257
+ </div>
258
+ </div>
259
+ );
260
+ },
261
+ };
@@ -42,7 +42,7 @@ interface ChatSession {
42
42
  selectedModel?: string | null;
43
43
  mode?: string;
44
44
  datamates?: string[];
45
- status?: SessionStatusEnum;
45
+ userInput?: string;
46
46
  }
47
47
  interface FileUploadProps {
48
48
  allowedFiles: string;
@@ -90,7 +90,7 @@ interface Mode {
90
90
  icon?: ReactNode;
91
91
  }
92
92
  interface ChatbotProps {
93
- helloMessage?: React.ReactNode;
93
+ helloMessage?: ReactNode;
94
94
  assistantMeta?: AssistantMeta;
95
95
  context?: Record<string, unknown>;
96
96
  fileUploadProps?: FileUploadProps;
@@ -104,7 +104,10 @@ interface ChatbotProps {
104
104
  };
105
105
  initialMessage?: string;
106
106
  questionFormLeftActions?: ReactNode[];
107
- refetchSession?: () => Promise<unknown>;
107
+ contextPanelDropdowns?: ReactNode[];
108
+ chatboxStartPosition?: "middle" | "bottom";
109
+ helloMessageFooter?: ReactNode;
110
+ handleSavePrompt?: (message: ChatMessage) => void;
108
111
  }
109
112
  interface ChatbotProviderProps extends ChatbotProps {
110
113
  taskLabel?: keyof typeof TaskLabels;
@@ -127,6 +130,7 @@ interface ChatbotProviderProps extends ChatbotProps {
127
130
  sessions?: Record<string, ChatSession>;
128
131
  currentSessionId?: string;
129
132
  selectedDatamateId?: string;
133
+ handleSavePrompt?: (message: ChatMessage) => void;
130
134
  }
131
135
  type InteractionType = "text" | "select" | "multiSelect" | "confirm";
132
136
  interface InteractionChoice {
@@ -193,8 +197,6 @@ interface ChatResponse {
193
197
  heading: string;
194
198
  todos?: TodoItem[];
195
199
  }
196
- declare const sessionStatusSchema: z.ZodEnum<["failed", "completed", "pending", "cancelled"]>;
197
- type SessionStatusEnum = z.infer<typeof sessionStatusSchema>;
198
200
  interface ChatState {
199
201
  sessions: Record<string, ChatSession>;
200
202
  currentSessionId: string | null;
@@ -233,12 +235,12 @@ declare const todoItemSchema: z.ZodObject<{
233
235
  }, "strip", z.ZodTypeAny, {
234
236
  id: string;
235
237
  content: string;
236
- status: "completed" | "pending" | "in_progress";
238
+ status: "pending" | "in_progress" | "completed";
237
239
  priority: "high" | "low" | "medium";
238
240
  }, {
239
241
  id: string;
240
242
  content: string;
241
- status: "completed" | "pending" | "in_progress";
243
+ status: "pending" | "in_progress" | "completed";
242
244
  priority: "high" | "low" | "medium";
243
245
  }>;
244
246
  type TodoItem = z.infer<typeof todoItemSchema>;
@@ -271,12 +273,12 @@ declare const agentStreamResponseSchema: z.ZodObject<{
271
273
  }, "strip", z.ZodTypeAny, {
272
274
  id: string;
273
275
  content: string;
274
- status: "completed" | "pending" | "in_progress";
276
+ status: "pending" | "in_progress" | "completed";
275
277
  priority: "high" | "low" | "medium";
276
278
  }, {
277
279
  id: string;
278
280
  content: string;
279
- status: "completed" | "pending" | "in_progress";
281
+ status: "pending" | "in_progress" | "completed";
280
282
  priority: "high" | "low" | "medium";
281
283
  }>, "many">>;
282
284
  response: z.ZodOptional<z.ZodString>;
@@ -395,7 +397,7 @@ declare const agentStreamResponseSchema: z.ZodObject<{
395
397
  todos?: {
396
398
  id: string;
397
399
  content: string;
398
- status: "completed" | "pending" | "in_progress";
400
+ status: "pending" | "in_progress" | "completed";
399
401
  priority: "high" | "low" | "medium";
400
402
  }[] | undefined;
401
403
  response?: string | undefined;
@@ -438,7 +440,7 @@ declare const agentStreamResponseSchema: z.ZodObject<{
438
440
  todos?: {
439
441
  id: string;
440
442
  content: string;
441
- status: "completed" | "pending" | "in_progress";
443
+ status: "pending" | "in_progress" | "completed";
442
444
  priority: "high" | "low" | "medium";
443
445
  }[] | undefined;
444
446
  response?: string | undefined;
@@ -594,4 +596,4 @@ interface Citation {
594
596
  taskLabel: TaskLabels;
595
597
  }
596
598
 
597
- export { type Artifact as A, type EntityDetectionResponse as B, type CoachAiResponse as C, type DetectedEntity as D, EntityType as E, type Feedback as F, type Mode as G, type InteractionType as H, type InteractionRequest as I, type InteractionChoice as J, sessionStatusSchema as K, type Learning as L, type MessageAttachment as M, todoItemSchema as N, type ToolUsageData as O, PersonalizationScope as P, type ProgressUpdate as Q, type FinalResponseData as R, type SessionStatusEnum as S, TaskLabels as T, type UploadedFile as U, agentStreamResponseSchema as V, type TeamMateContextProps as a, type TeamMateState as b, type TeamMateConfig as c, TeamMateActionType as d, TeamMateAvailability as e, type CoachAiConfirmationResponse as f, ContentCategory as g, type TeamMateComponentProps as h, type Citation as i, type ChatbotProps as j, type ChatbotProviderProps as k, learningSchema as l, type ChatState as m, type ContextOption as n, type ChatMessage as o, type AgentAction as p, type ChatResponse as q, LoadingState as r, type ChatSession as s, type TodoItem as t, type AgentStreamResponse as u, type AssistantMeta as v, type FileUploadProps as w, type ChatbotUrls as x, type Datamate as y, type EntityDetectionRequest as z };
599
+ export { type Artifact as A, type EntityDetectionResponse as B, type CoachAiResponse as C, type DetectedEntity as D, EntityType as E, type Feedback as F, type Mode as G, type InteractionType as H, type InteractionRequest as I, type InteractionChoice as J, todoItemSchema as K, type Learning as L, type MessageAttachment as M, type ToolUsageData as N, type ProgressUpdate as O, PersonalizationScope as P, type FinalResponseData as Q, agentStreamResponseSchema as R, TaskLabels as T, type UploadedFile as U, type TeamMateContextProps as a, type TeamMateState as b, type TeamMateConfig as c, TeamMateActionType as d, TeamMateAvailability as e, type CoachAiConfirmationResponse as f, ContentCategory as g, type TeamMateComponentProps as h, type Citation as i, type ChatbotProps as j, type ChatbotProviderProps as k, learningSchema as l, type ChatState as m, type ContextOption as n, type ChatMessage as o, type AgentAction as p, type ChatResponse as q, LoadingState as r, type ChatSession as s, type TodoItem as t, type AgentStreamResponse as u, type AssistantMeta as v, type FileUploadProps as w, type ChatbotUrls as x, type Datamate as y, type EntityDetectionRequest as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altimateai/ui-components",
3
- "version": "0.0.63",
3
+ "version": "0.0.64-beta2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/AltimateAI/altimate-components.git"