@altimateai/ui-components 0.0.64-beta1 → 0.0.64-beta3

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, ReactNode } 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, D as DetectedEntity, E as EntityType, u as AgentStreamResponse } from '../types-C-PrgKT_.js';
3
- export { v as AssistantMeta, x as ChatbotUrls, y as Datamate, z as EntityDetectionRequest, B as EntityDetectionResponse, w as FileUploadProps, Q as FinalResponseData, J as InteractionChoice, H as InteractionType, G as Mode, O as ProgressUpdate, N as ToolUsageData, U as UploadedFile, R as agentStreamResponseSchema, K as todoItemSchema } from '../types-C-PrgKT_.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, D as DetectedEntity, E as EntityType, u as AgentStreamResponse } from '../types-CiyozQU3.js';
3
+ export { v as AssistantMeta, x as ChatbotUrls, y as Datamate, z as EntityDetectionRequest, B as EntityDetectionResponse, w as FileUploadProps, Q as FinalResponseData, J as InteractionChoice, H as InteractionType, G as Mode, O as ProgressUpdate, N as ToolUsageData, U as UploadedFile, R as agentStreamResponseSchema, K as todoItemSchema } from '../types-CiyozQU3.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';
@@ -54,11 +54,16 @@ declare const LoadingIndicator: FC;
54
54
  interface MessageItemProps {
55
55
  message: ChatMessage;
56
56
  isLastMessage?: boolean;
57
+ isFirstMessage?: boolean;
58
+ handleSavePrompt?: (message: ChatMessage) => void;
59
+ showSavePromptButton?: boolean;
57
60
  }
58
61
  declare const MessageItem: FC<MessageItemProps>;
59
62
 
60
63
  interface MessageListProps {
61
64
  messages: ChatMessage[];
65
+ handleSavePrompt?: (message: ChatMessage) => void;
66
+ showSavePromptButton?: boolean;
62
67
  }
63
68
  declare const MessageList: FC<MessageListProps>;
64
69
 
package/dist/index.d.ts CHANGED
@@ -4,8 +4,8 @@ import { B as ButtonProps } from './Button-CVsSwe4f.js';
4
4
  import { Components } from 'react-markdown';
5
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
6
6
  import { PlotParams } from 'react-plotly.js';
7
- import { T as TaskLabels, a as TeamMateContextProps, b as TeamMateState, c as TeamMateConfig, d as TeamMateActionType, e as TeamMateAvailability } from './types-C-PrgKT_.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-C-PrgKT_.js';
7
+ import { T as TaskLabels, a as TeamMateContextProps, b as TeamMateState, c as TeamMateConfig, d as TeamMateActionType, e as TeamMateAvailability } from './types-CiyozQU3.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-CiyozQU3.js';
9
9
  import * as _reduxjs_toolkit from '@reduxjs/toolkit';
10
10
  import { PayloadAction } from '@reduxjs/toolkit';
11
11
  import * as immer from 'immer';
@@ -107,6 +107,8 @@ interface ChatbotProps {
107
107
  contextPanelDropdowns?: ReactNode[];
108
108
  chatboxStartPosition?: "middle" | "bottom";
109
109
  helloMessageFooter?: ReactNode;
110
+ handleSavePrompt?: (message: ChatMessage) => void;
111
+ showSavePromptButton?: boolean;
110
112
  }
111
113
  interface ChatbotProviderProps extends ChatbotProps {
112
114
  taskLabel?: keyof typeof TaskLabels;
@@ -129,6 +131,7 @@ interface ChatbotProviderProps extends ChatbotProps {
129
131
  sessions?: Record<string, ChatSession>;
130
132
  currentSessionId?: string;
131
133
  selectedDatamateId?: string;
134
+ handleSavePrompt?: (message: ChatMessage) => void;
132
135
  }
133
136
  type InteractionType = "text" | "select" | "multiSelect" | "confirm";
134
137
  interface InteractionChoice {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altimateai/ui-components",
3
- "version": "0.0.64-beta1",
3
+ "version": "0.0.64-beta3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/AltimateAI/altimate-components.git"