@altimateai/ui-components 0.0.46 → 0.0.47-beta.2

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, M as MessageAttachment, u as AgentStreamResponse } from '../types-B9-bNXLo.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-B9-bNXLo.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, M as MessageAttachment, u as AgentStreamResponse } from '../types-B6AwtPBm.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-B6AwtPBm.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';
@@ -130,9 +130,9 @@ interface UpdateModePayload {
130
130
  sessionId: string;
131
131
  mode: string;
132
132
  }
133
- interface UpdateDatamatesPayload {
133
+ interface UpdateDatamateInSessionPayload {
134
134
  sessionId: string;
135
- datamates?: string[];
135
+ datamates: string[];
136
136
  }
137
137
  declare const initialState: ChatState;
138
138
  declare const createSession: _reduxjs_toolkit.ActionCreatorWithPayload<{
@@ -175,7 +175,7 @@ declare const clearContext: _reduxjs_toolkit.ActionCreatorWithPayload<{
175
175
  sessionId: string;
176
176
  }, "chat/clearContext">;
177
177
  declare const updateMode: _reduxjs_toolkit.ActionCreatorWithPayload<UpdateModePayload, "chat/updateMode">;
178
- declare const updateDatamates: _reduxjs_toolkit.ActionCreatorWithPayload<UpdateDatamatesPayload, "chat/updateDatamates">;
178
+ declare const updateDatamateInSession: _reduxjs_toolkit.ActionCreatorWithPayload<UpdateDatamateInSessionPayload, "chat/updateDatamateInSession">;
179
179
  declare const setSessions: _reduxjs_toolkit.ActionCreatorWithPayload<Record<string, ChatSession>, "chat/setSessions">;
180
180
  declare const resetSession: _reduxjs_toolkit.ActionCreatorWithoutPayload<"chat/resetSession">;
181
181
 
@@ -275,4 +275,4 @@ declare const Citations: ({ citations, frontEndUrl, }: {
275
275
  frontEndUrl: string;
276
276
  }) => JSX.Element | null;
277
277
 
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, updateDatamates, updateMessageFeedback, updateMode, useAgentChat, useChatContext };
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, updateDatamateInSession, updateMessageFeedback, updateMode, useAgentChat, useChatContext };
@@ -1,6 +1,6 @@
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";
1
+ import { A as a, 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 S, n as u, 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
- e as Artifacts,
3
+ a 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
- u as LoadingIndicator,
14
- S as LoadingState,
13
+ S as LoadingIndicator,
14
+ u 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 updateDatamates,
47
+ N as updateDatamateInSession,
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-B9-bNXLo.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-B9-bNXLo.js';
6
+ import { T as TaskLabels, a as TeamMateContextProps, b as TeamMateState, c as TeamMateConfig, d as TeamMateActionType, e as TeamMateAvailability } from './types-B6AwtPBm.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-B6AwtPBm.js';
8
8
  import * as _reduxjs_toolkit from '@reduxjs/toolkit';
9
9
  import { PayloadAction } from '@reduxjs/toolkit';
10
10
  import * as immer from 'immer';
@@ -426,6 +426,10 @@ 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;
429
433
  multiSelect?: TMultiSelect;
430
434
  showOnlyPlaceholder?: boolean;
431
435
  showApplyButton?: boolean;
@@ -437,7 +441,7 @@ interface Props<TMultiSelect extends boolean = false> {
437
441
  onOpenChange?: (open: boolean) => void;
438
442
  popoverContentProps?: Omit<ComponentPropsWithoutRef<typeof PopoverContent>, "children">;
439
443
  }
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;
444
+ declare const Combobox: <TMultiSelect extends boolean = false>({ options, value, onChange, placeholder, searchPlaceholder, buttonProps, id, icon, renderOption, multiSelect, showOnlyPlaceholder, showApplyButton, showClearButton, onLoadMore, hasMore, valueLabels, onSearch, onOpenChange, popoverContentProps, }: Props<TMultiSelect>) => react_jsx_runtime.JSX.Element;
441
445
 
442
446
  type SidebarContextType = {
443
447
  state: "expanded" | "collapsed";
@@ -57,7 +57,6 @@ interface ChatbotUrls {
57
57
  interface Datamate {
58
58
  id: string;
59
59
  label: string;
60
- endAdornment?: ReactNode;
61
60
  }
62
61
  interface Mode {
63
62
  value: string;
@@ -73,14 +72,13 @@ interface ChatbotProps {
73
72
  contextOptions?: ContextOption[];
74
73
  placeholder?: string;
75
74
  autoFocus?: boolean;
76
- enableDatamatesSelection?: boolean;
77
- datamates?: Datamate[];
78
75
  modes?: Mode[];
79
76
  classNames?: {
80
77
  chatbot?: string;
81
78
  chatMessages?: string;
82
79
  };
83
80
  initialMessage?: string;
81
+ questionFormLeftActions?: ReactNode[];
84
82
  }
85
83
  interface ChatbotProviderProps extends ChatbotProps {
86
84
  taskLabel?: keyof typeof TaskLabels;
@@ -192,8 +190,6 @@ interface ChatState {
192
190
  feedback?: ReactNode;
193
191
  questionFormButtons?: (userPrompt: string, onAccept: (improvedPrompt: string) => void) => ReactNode;
194
192
  };
195
- enableDatamatesSelection?: boolean;
196
- datamates?: Datamate[];
197
193
  modes?: Mode[];
198
194
  classNames?: {
199
195
  chatbot?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altimateai/ui-components",
3
- "version": "0.0.46",
3
+ "version": "0.0.47-beta.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/AltimateAI/altimate-components.git"