@altimateai/ui-components 0.0.24-beta.2 → 0.0.24
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 +10692 -10831
- package/dist/chatbotV2/index.d.ts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/{types-CPlzEfL7.d.ts → types-MLsaGOQh.d.ts} +3 -31
- package/package.json +2 -2
|
@@ -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, i as Citation } from '../types-
|
|
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, i as Citation } from '../types-MLsaGOQh.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-MLsaGOQh.js';
|
|
4
4
|
import { UnknownAction } from '@reduxjs/toolkit';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
import 'zod';
|
package/dist/index.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import * as React$1 from 'react';
|
|
|
2
2
|
import { HTMLAttributes, ButtonHTMLAttributes, ReactNode, FC, MouseEvent } from 'react';
|
|
3
3
|
import { B as ButtonProps } from './Button-C4jhPGlR.js';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
|
-
import { T as TaskLabels, a as TeamMateContextProps, b as TeamMateState, c as TeamMateConfig, d as TeamMateActionType, e as TeamMateAvailability } from './types-
|
|
6
|
-
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-
|
|
5
|
+
import { T as TaskLabels, a as TeamMateContextProps, b as TeamMateState, c as TeamMateConfig, d as TeamMateActionType, e as TeamMateAvailability } from './types-MLsaGOQh.js';
|
|
6
|
+
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-MLsaGOQh.js';
|
|
7
7
|
import * as _reduxjs_toolkit from '@reduxjs/toolkit';
|
|
8
8
|
import { PayloadAction } from '@reduxjs/toolkit';
|
|
9
9
|
import * as immer from 'immer';
|
|
@@ -104,7 +104,6 @@ interface ChatMessage {
|
|
|
104
104
|
artifacts?: Artifact[];
|
|
105
105
|
heading: string;
|
|
106
106
|
citations?: Citation[];
|
|
107
|
-
todos?: TodoItem[];
|
|
108
107
|
}
|
|
109
108
|
interface Artifact {
|
|
110
109
|
content: string;
|
|
@@ -120,7 +119,6 @@ interface ChatResponse {
|
|
|
120
119
|
timestamp: number;
|
|
121
120
|
artifacts?: Artifact[];
|
|
122
121
|
heading: string;
|
|
123
|
-
todos?: TodoItem[];
|
|
124
122
|
}
|
|
125
123
|
interface ChatState {
|
|
126
124
|
sessions: Record<string, ChatSession>;
|
|
@@ -129,7 +127,6 @@ interface ChatState {
|
|
|
129
127
|
error: string | null;
|
|
130
128
|
abortController: AbortController | null;
|
|
131
129
|
currentActions: AgentAction[];
|
|
132
|
-
currentTodos: TodoItem[];
|
|
133
130
|
taskLabel?: keyof typeof TaskLabels;
|
|
134
131
|
initialValidation?: (data: {
|
|
135
132
|
context: ChatSession["context"];
|
|
@@ -146,36 +143,11 @@ interface ChatState {
|
|
|
146
143
|
feedback?: ReactNode;
|
|
147
144
|
};
|
|
148
145
|
}
|
|
149
|
-
interface TodoItem {
|
|
150
|
-
id: string;
|
|
151
|
-
content: string;
|
|
152
|
-
status: "pending" | "in_progress" | "completed";
|
|
153
|
-
priority: "high" | "medium" | "low";
|
|
154
|
-
}
|
|
155
|
-
interface ToolUsageData {
|
|
156
|
-
tool: string;
|
|
157
|
-
id: string;
|
|
158
|
-
}
|
|
159
|
-
interface ProgressUpdate {
|
|
160
|
-
timestamp: string;
|
|
161
|
-
todos: TodoItem[];
|
|
162
|
-
}
|
|
163
|
-
interface FinalResponseData {
|
|
164
|
-
tool_usage?: ToolUsageData[];
|
|
165
|
-
turns?: number;
|
|
166
|
-
tools_used?: number;
|
|
167
|
-
progress_updates?: ProgressUpdate[];
|
|
168
|
-
total_progress_updates?: number;
|
|
169
|
-
}
|
|
170
146
|
interface AgentStreamResponse {
|
|
171
147
|
id?: string;
|
|
172
|
-
type: "info" | "agent_outcome" | "require_user_action" | "analysis" | "error" | "citations"
|
|
148
|
+
type: "info" | "agent_outcome" | "require_user_action" | "analysis" | "error" | "citations";
|
|
173
149
|
heading?: string;
|
|
174
|
-
content
|
|
175
|
-
tool?: string;
|
|
176
|
-
todos?: TodoItem[];
|
|
177
|
-
response?: string;
|
|
178
|
-
data?: FinalResponseData;
|
|
150
|
+
content: string;
|
|
179
151
|
interaction?: {
|
|
180
152
|
type: "text" | "multiSelect" | "confirm" | "select";
|
|
181
153
|
id: string;
|
|
@@ -299,4 +271,4 @@ interface Citation {
|
|
|
299
271
|
taskLabel: TaskLabels;
|
|
300
272
|
}
|
|
301
273
|
|
|
302
|
-
export { type Artifact as A, type
|
|
274
|
+
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.24
|
|
3
|
+
"version": "0.0.24",
|
|
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
|
+
}
|