@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.
- package/dist/Carousel.js +8523 -0
- package/dist/CoachForm.js +7830 -7853
- package/dist/Stack.js +3 -3
- package/dist/assets/icons/index.js +1 -1
- package/dist/chatbotV2/index.d.ts +13 -7
- package/dist/chatbotV2/index.js +21 -21
- package/dist/index.d.ts +2 -2
- package/dist/index2.js +6 -6
- package/dist/lineage/index.js +1 -1
- package/dist/main.js +1 -1
- package/dist/shadcn/index.d.ts +36 -2
- package/dist/shadcn/index.js +3490 -2805
- package/dist/storybook/TagsInput.stories.tsx +34 -1
- package/dist/{types-B4_bdpWO.d.ts → types-C-PrgKT_.d.ts} +12 -12
- package/package.json +1 -1
- package/dist/TagsInput.js +0 -6935
|
@@ -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
|
-
|
|
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?:
|
|
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
|
-
|
|
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: "
|
|
236
|
+
status: "pending" | "in_progress" | "completed";
|
|
237
237
|
priority: "high" | "low" | "medium";
|
|
238
238
|
}, {
|
|
239
239
|
id: string;
|
|
240
240
|
content: string;
|
|
241
|
-
status: "
|
|
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: "
|
|
274
|
+
status: "pending" | "in_progress" | "completed";
|
|
275
275
|
priority: "high" | "low" | "medium";
|
|
276
276
|
}, {
|
|
277
277
|
id: string;
|
|
278
278
|
content: string;
|
|
279
|
-
status: "
|
|
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: "
|
|
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: "
|
|
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,
|
|
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 };
|