@altimateai/ui-components 0.0.47-beta.1 → 0.0.47
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 +10772 -10673
- package/dist/TagsInput.js +1880 -1892
- package/dist/chatbotV2/index.d.ts +8 -6
- package/dist/chatbotV2/index.js +5 -5
- package/dist/index.d.ts +2 -2
- package/dist/shadcn/index.d.ts +1 -5
- package/dist/{types-B6AwtPBm.d.ts → types-CqeMsC8t.d.ts} +10 -1
- 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, n as ContextOption, I as InteractionRequest, o as ChatMessage, p as AgentAction, q as ChatResponse, F as Feedback, r as LoadingState, s as ChatSession, i as Citation, t as TodoItem, M as MessageAttachment, u as AgentStreamResponse } from '../types-
|
|
3
|
-
export { v as AssistantMeta, x as ChatbotUrls, D as Datamate, w as FileUploadProps, J as FinalResponseData, B as InteractionChoice, z as InteractionType, y as Mode, H as ProgressUpdate, G as ToolUsageData, U as UploadedFile, K as agentStreamResponseSchema, E as todoItemSchema } from '../types-
|
|
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, F as Feedback, r as LoadingState, s as ChatSession, i as Citation, t as TodoItem, M as MessageAttachment, u as AgentStreamResponse } from '../types-CqeMsC8t.js';
|
|
3
|
+
export { v as AssistantMeta, x as ChatbotUrls, D as Datamate, w as FileUploadProps, J as FinalResponseData, B as InteractionChoice, z as InteractionType, y as Mode, H as ProgressUpdate, G as ToolUsageData, U as UploadedFile, K as agentStreamResponseSchema, E as todoItemSchema } from '../types-CqeMsC8t.js';
|
|
4
4
|
import * as _reduxjs_toolkit from '@reduxjs/toolkit';
|
|
5
5
|
import { UnknownAction } from '@reduxjs/toolkit';
|
|
6
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
@@ -117,6 +117,7 @@ interface AddMessagePayload {
|
|
|
117
117
|
citations?: Citation[];
|
|
118
118
|
todos?: TodoItem[];
|
|
119
119
|
attachments?: MessageAttachment[];
|
|
120
|
+
confidence_str?: string;
|
|
120
121
|
}
|
|
121
122
|
interface DeleteMessagePayload {
|
|
122
123
|
sessionId: string;
|
|
@@ -130,9 +131,9 @@ interface UpdateModePayload {
|
|
|
130
131
|
sessionId: string;
|
|
131
132
|
mode: string;
|
|
132
133
|
}
|
|
133
|
-
interface
|
|
134
|
+
interface UpdateDatamatesPayload {
|
|
134
135
|
sessionId: string;
|
|
135
|
-
datamates
|
|
136
|
+
datamates?: string[];
|
|
136
137
|
}
|
|
137
138
|
declare const initialState: ChatState;
|
|
138
139
|
declare const createSession: _reduxjs_toolkit.ActionCreatorWithPayload<{
|
|
@@ -175,7 +176,7 @@ declare const clearContext: _reduxjs_toolkit.ActionCreatorWithPayload<{
|
|
|
175
176
|
sessionId: string;
|
|
176
177
|
}, "chat/clearContext">;
|
|
177
178
|
declare const updateMode: _reduxjs_toolkit.ActionCreatorWithPayload<UpdateModePayload, "chat/updateMode">;
|
|
178
|
-
declare const
|
|
179
|
+
declare const updateDatamates: _reduxjs_toolkit.ActionCreatorWithPayload<UpdateDatamatesPayload, "chat/updateDatamates">;
|
|
179
180
|
declare const setSessions: _reduxjs_toolkit.ActionCreatorWithPayload<Record<string, ChatSession>, "chat/setSessions">;
|
|
180
181
|
declare const resetSession: _reduxjs_toolkit.ActionCreatorWithoutPayload<"chat/resetSession">;
|
|
181
182
|
|
|
@@ -205,6 +206,7 @@ interface ProcessedStreamResult {
|
|
|
205
206
|
artifacts?: Artifact[];
|
|
206
207
|
heading?: string;
|
|
207
208
|
interaction?: AgentStreamResponse["interaction"];
|
|
209
|
+
confidence_str?: string;
|
|
208
210
|
}
|
|
209
211
|
/**
|
|
210
212
|
* Processes a stream of AgentStreamResponse messages
|
|
@@ -275,4 +277,4 @@ declare const Citations: ({ citations, frontEndUrl, }: {
|
|
|
275
277
|
frontEndUrl: string;
|
|
276
278
|
}) => JSX.Element | null;
|
|
277
279
|
|
|
278
|
-
export { AgentAction, AgentStreamResponse, Artifact, Artifacts, CancelGenerationButton, ChatMessage, ChatProvider, ChatResponse, ChatSession, ChatState, ChatTriggerLink, ChatbotProps, ChatbotProviderProps, Chatbot as ChatbotV2, Citations, CoachAI, ContextOption, ContextPanel, Feedback, FeedbackButtons, InteractionPrompt, InteractionRequest, LoadingIndicator, LoadingState, MessageAttachment, MessageItem, MessageList, MessageMenu, QuestionForm, RegenerateButton, StatusUpdates, TodoItem, addAction, addMessage, clearActions, clearContext, clearHistory, clearTodos, createSession, deleteMessage, initialState, processAgentMessageContent, processAgentStream, processExistingConversation, processPlaygroundSessionTurns, resetSession, sendMessageAndProcessStream, setAbortController, setCurrentSession, setError, setLoadingState, setSelectedModel, setSessions, setTodos, streamResponseToAgentMessages, updateContext,
|
|
280
|
+
export { AgentAction, AgentStreamResponse, Artifact, Artifacts, CancelGenerationButton, ChatMessage, ChatProvider, ChatResponse, ChatSession, ChatState, ChatTriggerLink, ChatbotProps, ChatbotProviderProps, Chatbot as ChatbotV2, Citations, CoachAI, ContextOption, ContextPanel, Feedback, FeedbackButtons, InteractionPrompt, InteractionRequest, LoadingIndicator, LoadingState, MessageAttachment, MessageItem, MessageList, MessageMenu, QuestionForm, RegenerateButton, StatusUpdates, TodoItem, addAction, addMessage, clearActions, clearContext, clearHistory, clearTodos, createSession, deleteMessage, initialState, processAgentMessageContent, processAgentStream, processExistingConversation, processPlaygroundSessionTurns, resetSession, sendMessageAndProcessStream, setAbortController, setCurrentSession, setError, setLoadingState, setSelectedModel, setSessions, setTodos, streamResponseToAgentMessages, updateContext, updateDatamates, updateMessageFeedback, updateMode, useAgentChat, useChatContext };
|
package/dist/chatbotV2/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as
|
|
1
|
+
import { A as e, b as t, a as o, g as n, C as r, m as i, c as d, d as c, F as g, I as C, L as u, n as S, M as l, e as p, f as m, Q as M, R as A, S as h, H as x, x as I, o as L, J as P, P as T, z as b, N as k, r as B, B as F, q as R, k as f, p as v, j as y, l as E, W as D, s as G, G as H, w as Q, E as U, D as V, v as j, V as q, K as w, i as z, t as J, O as K, U as N, y as O, T as W, h as X, u as Y } from "../CoachForm.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
e as Artifacts,
|
|
4
4
|
t as CancelGenerationButton,
|
|
5
5
|
o as ChatProvider,
|
|
6
6
|
n as ChatTriggerLink,
|
|
@@ -10,8 +10,8 @@ export {
|
|
|
10
10
|
c as ContextPanel,
|
|
11
11
|
g as FeedbackButtons,
|
|
12
12
|
C as InteractionPrompt,
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
u as LoadingIndicator,
|
|
14
|
+
S as LoadingState,
|
|
15
15
|
l as MessageItem,
|
|
16
16
|
p as MessageList,
|
|
17
17
|
m as MessageMenu,
|
|
@@ -44,7 +44,7 @@ export {
|
|
|
44
44
|
z as streamResponseToAgentMessages,
|
|
45
45
|
J as todoItemSchema,
|
|
46
46
|
K as updateContext,
|
|
47
|
-
N as
|
|
47
|
+
N as updateDatamates,
|
|
48
48
|
O as updateMessageFeedback,
|
|
49
49
|
W as updateMode,
|
|
50
50
|
X as useAgentChat,
|
package/dist/index.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import { HTMLAttributes, ButtonHTMLAttributes, ReactNode, FC, MouseEvent } from
|
|
|
3
3
|
import { B as ButtonProps } from './Button-CVsSwe4f.js';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import { PlotParams } from 'react-plotly.js';
|
|
6
|
-
import { T as TaskLabels, a as TeamMateContextProps, b as TeamMateState, c as TeamMateConfig, d as TeamMateActionType, e as TeamMateAvailability } from './types-
|
|
7
|
-
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-
|
|
6
|
+
import { T as TaskLabels, a as TeamMateContextProps, b as TeamMateState, c as TeamMateConfig, d as TeamMateActionType, e as TeamMateAvailability } from './types-CqeMsC8t.js';
|
|
7
|
+
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-CqeMsC8t.js';
|
|
8
8
|
import * as _reduxjs_toolkit from '@reduxjs/toolkit';
|
|
9
9
|
import { PayloadAction } from '@reduxjs/toolkit';
|
|
10
10
|
import * as immer from 'immer';
|
package/dist/shadcn/index.d.ts
CHANGED
|
@@ -426,10 +426,6 @@ interface Props<TMultiSelect extends boolean = false> {
|
|
|
426
426
|
buttonProps?: ButtonProps;
|
|
427
427
|
id?: string;
|
|
428
428
|
icon?: ReactNode;
|
|
429
|
-
renderOption?: (option: {
|
|
430
|
-
value: string;
|
|
431
|
-
label: string;
|
|
432
|
-
}) => ReactNode;
|
|
433
429
|
multiSelect?: TMultiSelect;
|
|
434
430
|
showOnlyPlaceholder?: boolean;
|
|
435
431
|
showApplyButton?: boolean;
|
|
@@ -441,7 +437,7 @@ interface Props<TMultiSelect extends boolean = false> {
|
|
|
441
437
|
onOpenChange?: (open: boolean) => void;
|
|
442
438
|
popoverContentProps?: Omit<ComponentPropsWithoutRef<typeof PopoverContent>, "children">;
|
|
443
439
|
}
|
|
444
|
-
declare const Combobox: <TMultiSelect extends boolean = false>({ options, value, onChange, placeholder, searchPlaceholder, buttonProps, id, icon,
|
|
440
|
+
declare const Combobox: <TMultiSelect extends boolean = false>({ options, value, onChange, placeholder, searchPlaceholder, buttonProps, id, icon, multiSelect, showOnlyPlaceholder, showApplyButton, showClearButton, onLoadMore, hasMore, valueLabels, onSearch, onOpenChange, popoverContentProps, }: Props<TMultiSelect>) => react_jsx_runtime.JSX.Element;
|
|
445
441
|
|
|
446
442
|
type SidebarContextType = {
|
|
447
443
|
state: "expanded" | "collapsed";
|
|
@@ -57,6 +57,7 @@ interface ChatbotUrls {
|
|
|
57
57
|
interface Datamate {
|
|
58
58
|
id: string;
|
|
59
59
|
label: string;
|
|
60
|
+
endAdornment?: ReactNode;
|
|
60
61
|
}
|
|
61
62
|
interface Mode {
|
|
62
63
|
value: string;
|
|
@@ -72,13 +73,14 @@ interface ChatbotProps {
|
|
|
72
73
|
contextOptions?: ContextOption[];
|
|
73
74
|
placeholder?: string;
|
|
74
75
|
autoFocus?: boolean;
|
|
76
|
+
enableDatamatesSelection?: boolean;
|
|
77
|
+
datamates?: Datamate[];
|
|
75
78
|
modes?: Mode[];
|
|
76
79
|
classNames?: {
|
|
77
80
|
chatbot?: string;
|
|
78
81
|
chatMessages?: string;
|
|
79
82
|
};
|
|
80
83
|
initialMessage?: string;
|
|
81
|
-
questionFormLeftActions?: ReactNode[];
|
|
82
84
|
}
|
|
83
85
|
interface ChatbotProviderProps extends ChatbotProps {
|
|
84
86
|
taskLabel?: keyof typeof TaskLabels;
|
|
@@ -149,6 +151,7 @@ interface ChatMessage {
|
|
|
149
151
|
citations?: Citation[];
|
|
150
152
|
todos?: TodoItem[];
|
|
151
153
|
attachments?: MessageAttachment[];
|
|
154
|
+
confidence_str?: string;
|
|
152
155
|
}
|
|
153
156
|
interface Artifact {
|
|
154
157
|
content: string;
|
|
@@ -190,6 +193,8 @@ interface ChatState {
|
|
|
190
193
|
feedback?: ReactNode;
|
|
191
194
|
questionFormButtons?: (userPrompt: string, onAccept: (improvedPrompt: string) => void) => ReactNode;
|
|
192
195
|
};
|
|
196
|
+
enableDatamatesSelection?: boolean;
|
|
197
|
+
datamates?: Datamate[];
|
|
193
198
|
modes?: Mode[];
|
|
194
199
|
classNames?: {
|
|
195
200
|
chatbot?: string;
|
|
@@ -344,6 +349,7 @@ declare const agentStreamResponseSchema: z.ZodObject<{
|
|
|
344
349
|
type: string;
|
|
345
350
|
entity: string;
|
|
346
351
|
}>, "many">>;
|
|
352
|
+
confidence_str: z.ZodOptional<z.ZodString>;
|
|
347
353
|
}, "strip", z.ZodTypeAny, {
|
|
348
354
|
type: "text" | "info" | "error" | "custom" | "analysis" | "agent_outcome" | "require_user_action" | "citations" | "tool_use" | "final_response" | "complete";
|
|
349
355
|
id?: string | undefined;
|
|
@@ -386,6 +392,7 @@ declare const agentStreamResponseSchema: z.ZodObject<{
|
|
|
386
392
|
type: string;
|
|
387
393
|
entity: string;
|
|
388
394
|
}[] | undefined;
|
|
395
|
+
confidence_str?: string | undefined;
|
|
389
396
|
}, {
|
|
390
397
|
type: "text" | "info" | "error" | "custom" | "analysis" | "agent_outcome" | "require_user_action" | "citations" | "tool_use" | "final_response" | "complete";
|
|
391
398
|
id?: string | undefined;
|
|
@@ -428,6 +435,7 @@ declare const agentStreamResponseSchema: z.ZodObject<{
|
|
|
428
435
|
type: string;
|
|
429
436
|
entity: string;
|
|
430
437
|
}[] | undefined;
|
|
438
|
+
confidence_str?: string | undefined;
|
|
431
439
|
}>;
|
|
432
440
|
interface AgentStreamResponse {
|
|
433
441
|
id?: string;
|
|
@@ -451,6 +459,7 @@ interface AgentStreamResponse {
|
|
|
451
459
|
};
|
|
452
460
|
artifacts?: Artifact[];
|
|
453
461
|
citations?: Citation[];
|
|
462
|
+
confidence_str?: string;
|
|
454
463
|
}
|
|
455
464
|
|
|
456
465
|
interface TeamMateState {
|