@altimateai/ui-components 0.0.63 → 0.0.64-beta1

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,9 @@ 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;
108
110
  }
109
111
  interface ChatbotProviderProps extends ChatbotProps {
110
112
  taskLabel?: keyof typeof TaskLabels;
@@ -193,8 +195,6 @@ interface ChatResponse {
193
195
  heading: string;
194
196
  todos?: TodoItem[];
195
197
  }
196
- declare const sessionStatusSchema: z.ZodEnum<["failed", "completed", "pending", "cancelled"]>;
197
- type SessionStatusEnum = z.infer<typeof sessionStatusSchema>;
198
198
  interface ChatState {
199
199
  sessions: Record<string, ChatSession>;
200
200
  currentSessionId: string | null;
@@ -233,12 +233,12 @@ declare const todoItemSchema: z.ZodObject<{
233
233
  }, "strip", z.ZodTypeAny, {
234
234
  id: string;
235
235
  content: string;
236
- status: "completed" | "pending" | "in_progress";
236
+ status: "pending" | "in_progress" | "completed";
237
237
  priority: "high" | "low" | "medium";
238
238
  }, {
239
239
  id: string;
240
240
  content: string;
241
- status: "completed" | "pending" | "in_progress";
241
+ status: "pending" | "in_progress" | "completed";
242
242
  priority: "high" | "low" | "medium";
243
243
  }>;
244
244
  type TodoItem = z.infer<typeof todoItemSchema>;
@@ -271,12 +271,12 @@ declare const agentStreamResponseSchema: z.ZodObject<{
271
271
  }, "strip", z.ZodTypeAny, {
272
272
  id: string;
273
273
  content: string;
274
- status: "completed" | "pending" | "in_progress";
274
+ status: "pending" | "in_progress" | "completed";
275
275
  priority: "high" | "low" | "medium";
276
276
  }, {
277
277
  id: string;
278
278
  content: string;
279
- status: "completed" | "pending" | "in_progress";
279
+ status: "pending" | "in_progress" | "completed";
280
280
  priority: "high" | "low" | "medium";
281
281
  }>, "many">>;
282
282
  response: z.ZodOptional<z.ZodString>;
@@ -395,7 +395,7 @@ declare const agentStreamResponseSchema: z.ZodObject<{
395
395
  todos?: {
396
396
  id: string;
397
397
  content: string;
398
- status: "completed" | "pending" | "in_progress";
398
+ status: "pending" | "in_progress" | "completed";
399
399
  priority: "high" | "low" | "medium";
400
400
  }[] | undefined;
401
401
  response?: string | undefined;
@@ -438,7 +438,7 @@ declare const agentStreamResponseSchema: z.ZodObject<{
438
438
  todos?: {
439
439
  id: string;
440
440
  content: string;
441
- status: "completed" | "pending" | "in_progress";
441
+ status: "pending" | "in_progress" | "completed";
442
442
  priority: "high" | "low" | "medium";
443
443
  }[] | undefined;
444
444
  response?: string | undefined;
@@ -594,4 +594,4 @@ interface Citation {
594
594
  taskLabel: TaskLabels;
595
595
  }
596
596
 
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 };
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, 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-beta1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/AltimateAI/altimate-components.git"