@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.
- package/dist/Carousel.js +8523 -0
- package/dist/CoachForm.js +8524 -8512
- package/dist/Stack.js +3 -3
- package/dist/assets/icons/index.js +1 -1
- package/dist/chatbotV2/index.d.ts +16 -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-DbY7DJ8y.d.ts} +14 -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,10 @@ interface ChatbotProps {
|
|
|
104
104
|
};
|
|
105
105
|
initialMessage?: string;
|
|
106
106
|
questionFormLeftActions?: ReactNode[];
|
|
107
|
-
|
|
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: "
|
|
238
|
+
status: "pending" | "in_progress" | "completed";
|
|
237
239
|
priority: "high" | "low" | "medium";
|
|
238
240
|
}, {
|
|
239
241
|
id: string;
|
|
240
242
|
content: string;
|
|
241
|
-
status: "
|
|
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: "
|
|
276
|
+
status: "pending" | "in_progress" | "completed";
|
|
275
277
|
priority: "high" | "low" | "medium";
|
|
276
278
|
}, {
|
|
277
279
|
id: string;
|
|
278
280
|
content: string;
|
|
279
|
-
status: "
|
|
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: "
|
|
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: "
|
|
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,
|
|
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 };
|