@altimateai/ui-components 0.0.3-beta.4 → 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.
|
@@ -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,12 +23,19 @@ 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
|
};
|
|
34
41
|
selectedModel?: string | null;
|
|
@@ -49,6 +56,7 @@ interface ChatbotProps {
|
|
|
49
56
|
assistantMeta?: AssistantMeta;
|
|
50
57
|
context?: Record<string, unknown>;
|
|
51
58
|
fileUploadProps?: FileUploadProps;
|
|
59
|
+
contextOptions?: ContextOption[];
|
|
52
60
|
}
|
|
53
61
|
interface ChatbotProviderProps extends ChatbotProps {
|
|
54
62
|
taskLabel?: keyof typeof TaskLabels;
|
|
@@ -60,6 +68,7 @@ interface ChatbotProviderProps extends ChatbotProps {
|
|
|
60
68
|
components?: {
|
|
61
69
|
feedback?: ReactNode;
|
|
62
70
|
};
|
|
71
|
+
contextOptions?: ContextOption[];
|
|
63
72
|
isMarkdownResponse?: boolean;
|
|
64
73
|
models?: string[];
|
|
65
74
|
}
|
|
@@ -229,6 +238,8 @@ interface TeamMateComponentProps<T = void> {
|
|
|
229
238
|
frontendUrl?: string;
|
|
230
239
|
urls?: ChatbotUrls;
|
|
231
240
|
requestParams?: RequestInit;
|
|
241
|
+
context?: ChatSession["context"];
|
|
242
|
+
contextOptions?: ContextOption[];
|
|
232
243
|
}
|
|
233
244
|
interface TeamMateConfig<T = unknown> {
|
|
234
245
|
name: string;
|
|
@@ -252,4 +263,4 @@ interface Citation {
|
|
|
252
263
|
taskLabel: TaskLabels;
|
|
253
264
|
}
|
|
254
265
|
|
|
255
|
-
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 };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@altimateai/ui-components",
|
|
3
|
-
"version": "0.0.3-beta.
|
|
3
|
+
"version": "0.0.3-beta.5",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/AltimateAI/altimate-components.git"
|
|
@@ -52,4 +52,4 @@
|
|
|
52
52
|
"react": "^17.0.0 || ^18.0.0",
|
|
53
53
|
"react-dom": "^17.0.0 || ^18.0.0"
|
|
54
54
|
}
|
|
55
|
-
}
|
|
55
|
+
}
|