@altimateai/ui-components 0.0.42 → 0.0.44

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, 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, u as AgentStreamResponse } from '../types-B5SwoCQb.js';
3
- export { v as AssistantMeta, x as ChatbotUrls, D as Datamate, w as FileUploadProps, H as FinalResponseData, z as InteractionChoice, y as InteractionType, M as Mode, G as ProgressUpdate, E as ToolUsageData, J as agentStreamResponseSchema, B as todoItemSchema } from '../types-B5SwoCQb.js';
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, u as AgentStreamResponse } from '../types-BR-ZVRob.js';
3
+ export { v as AssistantMeta, x as ChatbotUrls, D as Datamate, w as FileUploadProps, H as FinalResponseData, z as InteractionChoice, y as InteractionType, M as Mode, G as ProgressUpdate, E as ToolUsageData, J as agentStreamResponseSchema, B as todoItemSchema } from '../types-BR-ZVRob.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';
@@ -11,8 +11,11 @@ declare const Chatbot: FC<ChatbotProps>;
11
11
  interface ChatContextType extends ChatState {
12
12
  dispatch: React__default.Dispatch<UnknownAction>;
13
13
  }
14
+ interface ChatProviderRef {
15
+ resetSession: () => void;
16
+ }
14
17
  declare const useChatContext: () => ChatContextType;
15
- declare const ChatProvider: React__default.FC<ChatbotProviderProps>;
18
+ declare const ChatProvider: React__default.ForwardRefExoticComponent<ChatbotProviderProps & React__default.RefAttributes<ChatProviderRef>>;
16
19
 
17
20
  interface ArtifactsProps {
18
21
  artifacts: Artifact[];
@@ -170,6 +173,7 @@ declare const updateContext: _reduxjs_toolkit.ActionCreatorWithPayload<UpdateCon
170
173
  declare const updateMode: _reduxjs_toolkit.ActionCreatorWithPayload<UpdateModePayload, "chat/updateMode">;
171
174
  declare const updateDatamates: _reduxjs_toolkit.ActionCreatorWithPayload<UpdateDatamatesPayload, "chat/updateDatamates">;
172
175
  declare const setSessions: _reduxjs_toolkit.ActionCreatorWithPayload<Record<string, ChatSession>, "chat/setSessions">;
176
+ declare const resetSession: _reduxjs_toolkit.ActionCreatorWithoutPayload<"chat/resetSession">;
173
177
 
174
178
  interface StreamProcessorCallbacks {
175
179
  onAction?: (action: AgentAction) => void;
@@ -235,7 +239,7 @@ declare function processPlaygroundSessionTurns(turns: Array<{
235
239
  }>, sessionId: string, modes: {
236
240
  label: string;
237
241
  value: string;
238
- }[]): Record<string, {
242
+ }[], datamates: string[], context?: Record<string, unknown>): Record<string, {
239
243
  id: string;
240
244
  messages: Array<{
241
245
  id: string;
@@ -265,4 +269,4 @@ declare const Citations: ({ citations, frontEndUrl, }: {
265
269
  frontEndUrl: string;
266
270
  }) => JSX.Element | null;
267
271
 
268
- 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, MessageItem, MessageList, MessageMenu, QuestionForm, RegenerateButton, StatusUpdates, TodoItem, addAction, addMessage, clearActions, clearHistory, clearTodos, createSession, deleteMessage, initialState, processAgentMessageContent, processAgentStream, processExistingConversation, processPlaygroundSessionTurns, sendMessageAndProcessStream, setAbortController, setCurrentSession, setError, setLoadingState, setSelectedModel, setSessions, setTodos, streamResponseToAgentMessages, updateContext, updateDatamates, updateMessageFeedback, updateMode, useAgentChat, useChatContext };
272
+ 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, MessageItem, MessageList, MessageMenu, QuestionForm, RegenerateButton, StatusUpdates, TodoItem, addAction, addMessage, clearActions, 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 };
@@ -1,4 +1,4 @@
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 g, F as c, I as u, L as C, n as S, M as p, e as l, f as m, Q as M, R as A, S as h, H as x, x as I, o as L, J as P, z as T, N as b, r as k, B, q as F, k as R, p as f, j as v, l as y, s as E, G as D, w as G, E as H, D as Q, v as U, U as j, K as q, i as w, t as z, O as J, T as K, y as N, P as O, h as V, u as W } from "../CoachForm.js";
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 g, F as c, I as u, L as C, n as S, M as p, e as l, f as m, Q as M, R as A, S as h, H as x, x as I, o as L, J as P, z as T, N as b, r as k, B, q as F, k as R, p as f, j as v, l as y, V as E, s as D, G, w as H, E as Q, D as U, v as V, U as j, K as q, i as w, t as z, O as J, T as K, y as N, P as O, h as W, u as X } from "../CoachForm.js";
2
2
  export {
3
3
  e as Artifacts,
4
4
  t as CancelGenerationButton,
@@ -31,12 +31,13 @@ export {
31
31
  f as processAgentStream,
32
32
  v as processExistingConversation,
33
33
  y as processPlaygroundSessionTurns,
34
- E as sendMessageAndProcessStream,
35
- D as setAbortController,
36
- G as setCurrentSession,
37
- H as setError,
38
- Q as setLoadingState,
39
- U as setSelectedModel,
34
+ E as resetSession,
35
+ D as sendMessageAndProcessStream,
36
+ G as setAbortController,
37
+ H as setCurrentSession,
38
+ Q as setError,
39
+ U as setLoadingState,
40
+ V as setSelectedModel,
40
41
  j as setSessions,
41
42
  q as setTodos,
42
43
  w as streamResponseToAgentMessages,
@@ -45,6 +46,6 @@ export {
45
46
  K as updateDatamates,
46
47
  N as updateMessageFeedback,
47
48
  O as updateMode,
48
- V as useAgentChat,
49
- W as useChatContext
49
+ W as useAgentChat,
50
+ X as useChatContext
50
51
  };
@@ -1,4 +1,4 @@
1
- import { a2 as DH, a3 as wMe, a4 as gMe, Z as K1, Y as J1n, a5 as pMe, _ as vMe, a6 as Y1n, a7 as mMe, a8 as kMe, a9 as Uee, aa as yMe, ab as Q1n, ac as $H, ad as jMe, ae as EMe } from "./CoachForm.js";
1
+ import { a3 as DH, a4 as wMe, a5 as gMe, _ as K1, Z as J1n, a6 as pMe, $ as vMe, a7 as Y1n, a8 as mMe, a9 as kMe, aa as Uee, ab as yMe, ac as Q1n, ad as $H, ae as jMe, af as EMe } from "./CoachForm.js";
2
2
  import { c as Hee, g as CMe, s as bI } from "./redux-toolkit.modern.js";
3
3
  var Wee = { exports: {} };
4
4
  (function(Ae, It) {
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-B5SwoCQb.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-B5SwoCQb.js';
6
+ import { T as TaskLabels, a as TeamMateContextProps, b as TeamMateState, c as TeamMateConfig, d as TeamMateActionType, e as TeamMateAvailability } from './types-BR-ZVRob.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-BR-ZVRob.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/index.js CHANGED
@@ -1,35 +1,35 @@
1
1
  import { j as e, i as s, h as r, C as t, D as n, L as i, T as m, m as c, l, k as p } from "./main.js";
2
2
  import { C as T, T as v } from "./Table.js";
3
- import { aw as u, al as M, ai as P, av as d, au as f, am as h, at as x, ak as A, az as g, aA as y, ay as S, as as b, ax as j, ap as B, aq as D, ar as F, ao as G } from "./CoachForm.js";
3
+ import { ax as M, am as P, aj as d, aw as f, av as h, an as k, au as x, al as A, aA as g, aB as y, az as S, at as j, ay as B, aq as b, ar as D, as as F, ap as G } from "./CoachForm.js";
4
4
  import { A as w, C as I, I as z } from "./redux-toolkit.modern.js";
5
5
  import { a2 as H } from "./Stack.js";
6
6
  export {
7
7
  w as ApiHelper,
8
- u as CoachForm,
8
+ M as CoachForm,
9
9
  e as CoachFormButton,
10
10
  I as CodeBlock,
11
11
  T as Collapse,
12
- M as ContentCategory,
12
+ P as ContentCategory,
13
13
  s as ConversationGroupProvider,
14
14
  r as ConversationInputForm,
15
15
  t as ConversationSources,
16
16
  n as DbtDocs,
17
17
  z as IconButton,
18
18
  i as Learnings,
19
- P as LoadingButton,
20
- d as Markdown,
21
- f as MermaidDiagram,
22
- h as PersonalizationScope,
19
+ d as LoadingButton,
20
+ f as Markdown,
21
+ h as MermaidDiagram,
22
+ k as PersonalizationScope,
23
23
  x as Plotly,
24
24
  A as Popconfirm,
25
25
  g as ProjectGovernorAllowedFiles,
26
26
  y as ProjectGovernorCheckSchema,
27
27
  S as ProjectGovernorCheckTypes,
28
- b as Spinner,
28
+ j as Spinner,
29
29
  H as Stack,
30
30
  v as Table,
31
- j as TaskLabels,
32
- B as TeamMateActionType,
31
+ B as TaskLabels,
32
+ b as TeamMateActionType,
33
33
  D as TeamMateAvailability,
34
34
  m as TeamMateProvider,
35
35
  c as TeamMates,
package/dist/is_dark.js CHANGED
@@ -1,4 +1,4 @@
1
- import { af as s, ag as r } from "./CoachForm.js";
1
+ import { ag as s, ah as r } from "./CoachForm.js";
2
2
  const i = (n) => {
3
3
  const { r: a, g: t, b: o } = s.parse(n), e = 0.2126 * r.channel.toLinear(a) + 0.7152 * r.channel.toLinear(t) + 0.0722 * r.channel.toLinear(o);
4
4
  return r.lang.round(e);
package/dist/main.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { C as Yn } from "./Table.js";
2
- import { ai as un, aj as dt, ak as Wn, al as Kn, am as Xn, an as Gn, ao as Zn, ap as rt, aq as Qn, ar as Jn } from "./CoachForm.js";
2
+ import { aj as un, ak as dt, al as Wn, am as Kn, an as Xn, ao as Gn, ap as Zn, aq as rt, ar as Qn, as as Jn } from "./CoachForm.js";
3
3
  import { g as yt, a as ln, A as ve, C as er, I as Ie, u as cn, b as tr } from "./redux-toolkit.modern.js";
4
4
  import { U as ye, $ as $e, a0 as He, a1 as nr, a2 as oe, a3 as rr, a4 as or, Y as ft, a5 as ir } from "./Stack.js";
5
5
  import { j as h, A as dn, f as sr, g as ar, b as ur, C as lr, D as cr, E as dr, e as fr, d as pr } from "./index2.js";
@@ -1,4 +1,4 @@
1
- import { ah as Zy, Y as Dn, Z as fa, _ as Qy, $ as Jy, a0 as jy } from "./CoachForm.js";
1
+ import { ai as Zy, Z as Dn, _ as fa, $ as Qy, a0 as Jy, a1 as jy } from "./CoachForm.js";
2
2
  import { c as za, g as Vu, s as Cn } from "./redux-toolkit.modern.js";
3
3
  import { i as em } from "./is_dark.js";
4
4
  var Uu = { exports: {} };
@@ -1,4 +1,4 @@
1
- import { V as kt, W as vt, X as wt, Y as rt, Z as I, _ as St, $ as Et, a0 as Tt, a1 as et } from "./CoachForm.js";
1
+ import { W as kt, X as vt, Y as wt, Z as rt, _ as I, $ as St, a0 as Et, a1 as Tt, a2 as et } from "./CoachForm.js";
2
2
  import { s as Z } from "./redux-toolkit.modern.js";
3
3
  import { i as It } from "./is_dark.js";
4
4
  var X = function() {
@@ -215,7 +215,7 @@ interface FinalResponseData {
215
215
  }
216
216
  declare const agentStreamResponseSchema: z.ZodObject<{
217
217
  id: z.ZodOptional<z.ZodString>;
218
- type: z.ZodEnum<["info", "agent_outcome", "require_user_action", "analysis", "error", "citations", "text", "tool_use", "final_response", "complete"]>;
218
+ type: z.ZodEnum<["info", "agent_outcome", "require_user_action", "analysis", "error", "citations", "text", "tool_use", "final_response", "complete", "custom"]>;
219
219
  heading: z.ZodOptional<z.ZodString>;
220
220
  content: z.ZodOptional<z.ZodString>;
221
221
  tool: z.ZodOptional<z.ZodString>;
@@ -330,7 +330,7 @@ declare const agentStreamResponseSchema: z.ZodObject<{
330
330
  entity: string;
331
331
  }>, "many">>;
332
332
  }, "strip", z.ZodTypeAny, {
333
- type: "text" | "info" | "error" | "analysis" | "agent_outcome" | "require_user_action" | "citations" | "tool_use" | "final_response" | "complete";
333
+ type: "text" | "info" | "error" | "custom" | "analysis" | "agent_outcome" | "require_user_action" | "citations" | "tool_use" | "final_response" | "complete";
334
334
  id?: string | undefined;
335
335
  content?: string | undefined;
336
336
  heading?: string | undefined;
@@ -372,7 +372,7 @@ declare const agentStreamResponseSchema: z.ZodObject<{
372
372
  entity: string;
373
373
  }[] | undefined;
374
374
  }, {
375
- type: "text" | "info" | "error" | "analysis" | "agent_outcome" | "require_user_action" | "citations" | "tool_use" | "final_response" | "complete";
375
+ type: "text" | "info" | "error" | "custom" | "analysis" | "agent_outcome" | "require_user_action" | "citations" | "tool_use" | "final_response" | "complete";
376
376
  id?: string | undefined;
377
377
  content?: string | undefined;
378
378
  heading?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altimateai/ui-components",
3
- "version": "0.0.42",
3
+ "version": "0.0.44",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/AltimateAI/altimate-components.git"