@altimateai/ui-components 0.0.3-beta.3 → 0.0.3-beta.5
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/CoachForm.js +10402 -10278
- package/dist/chatbotV2/index.d.ts +4 -3
- package/dist/index.d.ts +2 -2
- package/dist/storybook/Sheet.stories.tsx +1 -1
- package/dist/{types-2N1LeUat.d.ts → types-BKWf381e.d.ts} +16 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default, { FC } from 'react';
|
|
2
|
-
import { j as ChatbotProps, k as ChatbotProviderProps, m as ChatState, A as Artifact, I as InteractionRequest,
|
|
3
|
-
export {
|
|
2
|
+
import { j as ChatbotProps, k as ChatbotProviderProps, m as ChatState, A as Artifact, n as ContextOption, I as InteractionRequest, o as ChatMessage, p as AgentAction, q as ChatResponse } from '../types-BKWf381e.js';
|
|
3
|
+
export { y as AgentStreamResponse, s as AssistantMeta, t as ChatSession, v as ChatbotUrls, F as Feedback, u as FileUploadProps, x as InteractionChoice, w as InteractionType, r as LoadingState } from '../types-BKWf381e.js';
|
|
4
4
|
import { UnknownAction } from '@reduxjs/toolkit';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
import 'zod';
|
|
@@ -27,6 +27,7 @@ interface ContextPanelProps {
|
|
|
27
27
|
allowedFiles: string;
|
|
28
28
|
contextFieldKey: string;
|
|
29
29
|
};
|
|
30
|
+
contextOptions?: ContextOption[];
|
|
30
31
|
}
|
|
31
32
|
declare const ContextPanel: React.FC<ContextPanelProps>;
|
|
32
33
|
|
|
@@ -91,4 +92,4 @@ declare const useAgentChat: () => {
|
|
|
91
92
|
updateContextAndSendMessage: (message: string, context: Record<string, unknown>) => Promise<void>;
|
|
92
93
|
};
|
|
93
94
|
|
|
94
|
-
export { AgentAction, Artifact, Artifacts, CancelGenerationButton, ChatMessage, ChatProvider, ChatResponse, ChatState, ChatTriggerLink, ChatbotProps, ChatbotProviderProps, Chatbot as ChatbotV2, CoachAI, ContextPanel, FeedbackButtons, InteractionPrompt, InteractionRequest, LoadingIndicator, MessageItem, MessageList, MessageMenu, QuestionForm, RegenerateButton, StatusUpdates, useAgentChat, useChatContext };
|
|
95
|
+
export { AgentAction, Artifact, Artifacts, CancelGenerationButton, ChatMessage, ChatProvider, ChatResponse, ChatState, ChatTriggerLink, ChatbotProps, ChatbotProviderProps, Chatbot as ChatbotV2, CoachAI, ContextOption, ContextPanel, FeedbackButtons, InteractionPrompt, InteractionRequest, LoadingIndicator, MessageItem, MessageList, MessageMenu, QuestionForm, RegenerateButton, StatusUpdates, useAgentChat, useChatContext };
|
package/dist/index.d.ts
CHANGED
|
@@ -4,8 +4,8 @@ import * as React$1 from 'react';
|
|
|
4
4
|
import { ButtonHTMLAttributes, ReactNode, HTMLAttributes, FC, MouseEvent } from 'react';
|
|
5
5
|
import { B as ButtonProps } from './Button-Dln4BC6y.js';
|
|
6
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
|
-
import { T as TaskLabels, a as TeamMateContextProps, b as TeamMateState, c as TeamMateConfig, d as TeamMateActionType, e as TeamMateAvailability } from './types-
|
|
8
|
-
export { i as Citation, f as CoachAiConfirmationResponse, C as CoachAiResponse, g as ContentCategory, L as Learning, P as PersonalizationScope, h as TeamMateComponentProps, l as learningSchema } from './types-
|
|
7
|
+
import { T as TaskLabels, a as TeamMateContextProps, b as TeamMateState, c as TeamMateConfig, d as TeamMateActionType, e as TeamMateAvailability } from './types-BKWf381e.js';
|
|
8
|
+
export { i as Citation, f as CoachAiConfirmationResponse, C as CoachAiResponse, g as ContentCategory, L as Learning, P as PersonalizationScope, h as TeamMateComponentProps, l as learningSchema } from './types-BKWf381e.js';
|
|
9
9
|
import * as _reduxjs_toolkit from '@reduxjs/toolkit';
|
|
10
10
|
import { PayloadAction } from '@reduxjs/toolkit';
|
|
11
11
|
import * as immer from 'immer';
|
|
@@ -18,7 +18,7 @@ const Template: StoryFn = ({ side = "right" }) => (
|
|
|
18
18
|
<SheetTrigger asChild>
|
|
19
19
|
<Button variant="outline">Open Sheet</Button>
|
|
20
20
|
</SheetTrigger>
|
|
21
|
-
<SheetContent side={side}
|
|
21
|
+
<SheetContent side={side}>
|
|
22
22
|
<SheetHeader>
|
|
23
23
|
<SheetTitle>Sheet Title</SheetTitle>
|
|
24
24
|
</SheetHeader>
|
|
@@ -23,14 +23,22 @@ interface Feedback {
|
|
|
23
23
|
rating?: "up" | "down";
|
|
24
24
|
comment?: string;
|
|
25
25
|
}
|
|
26
|
+
interface ContextOption {
|
|
27
|
+
label: string;
|
|
28
|
+
key: string;
|
|
29
|
+
options: {
|
|
30
|
+
id: string;
|
|
31
|
+
label: string;
|
|
32
|
+
}[];
|
|
33
|
+
}
|
|
26
34
|
interface ChatSession {
|
|
27
35
|
id: string;
|
|
28
36
|
messages: ChatMessage[];
|
|
29
37
|
context?: {
|
|
30
38
|
files?: File[];
|
|
31
|
-
selectedOptions?: string[];
|
|
32
39
|
[x: string]: unknown;
|
|
33
40
|
};
|
|
41
|
+
selectedModel?: string | null;
|
|
34
42
|
}
|
|
35
43
|
interface FileUploadProps {
|
|
36
44
|
allowedFiles: string;
|
|
@@ -48,6 +56,7 @@ interface ChatbotProps {
|
|
|
48
56
|
assistantMeta?: AssistantMeta;
|
|
49
57
|
context?: Record<string, unknown>;
|
|
50
58
|
fileUploadProps?: FileUploadProps;
|
|
59
|
+
contextOptions?: ContextOption[];
|
|
51
60
|
}
|
|
52
61
|
interface ChatbotProviderProps extends ChatbotProps {
|
|
53
62
|
taskLabel?: keyof typeof TaskLabels;
|
|
@@ -59,7 +68,9 @@ interface ChatbotProviderProps extends ChatbotProps {
|
|
|
59
68
|
components?: {
|
|
60
69
|
feedback?: ReactNode;
|
|
61
70
|
};
|
|
71
|
+
contextOptions?: ContextOption[];
|
|
62
72
|
isMarkdownResponse?: boolean;
|
|
73
|
+
models?: string[];
|
|
63
74
|
}
|
|
64
75
|
type InteractionType = "text" | "select" | "multiSelect" | "confirm";
|
|
65
76
|
interface InteractionChoice {
|
|
@@ -119,6 +130,7 @@ interface ChatState {
|
|
|
119
130
|
disableContext?: boolean;
|
|
120
131
|
requestParams?: RequestInit;
|
|
121
132
|
isMarkdownResponse?: boolean;
|
|
133
|
+
models?: string[];
|
|
122
134
|
components?: {
|
|
123
135
|
feedback?: ReactNode;
|
|
124
136
|
};
|
|
@@ -226,6 +238,8 @@ interface TeamMateComponentProps<T = void> {
|
|
|
226
238
|
frontendUrl?: string;
|
|
227
239
|
urls?: ChatbotUrls;
|
|
228
240
|
requestParams?: RequestInit;
|
|
241
|
+
context?: ChatSession["context"];
|
|
242
|
+
contextOptions?: ContextOption[];
|
|
229
243
|
}
|
|
230
244
|
interface TeamMateConfig<T = unknown> {
|
|
231
245
|
name: string;
|
|
@@ -249,4 +263,4 @@ interface Citation {
|
|
|
249
263
|
taskLabel: TaskLabels;
|
|
250
264
|
}
|
|
251
265
|
|
|
252
|
-
export { type Artifact as A, type CoachAiResponse as C, type Feedback as F, type InteractionRequest as I, type Learning as L, PersonalizationScope as P, TaskLabels as T, 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
|
|
266
|
+
export { type Artifact as A, type CoachAiResponse as C, type Feedback as F, type InteractionRequest as I, type Learning as L, PersonalizationScope as P, TaskLabels as T, 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 AssistantMeta as s, type ChatSession as t, type FileUploadProps as u, type ChatbotUrls as v, type InteractionType as w, type InteractionChoice as x, type AgentStreamResponse as y };
|