@altimateai/ui-components 0.0.64-beta1 → 0.0.64-beta2
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 +4687 -4652
- package/dist/chatbotV2/index.d.ts +5 -2
- package/dist/index.d.ts +2 -2
- package/dist/{types-C-PrgKT_.d.ts → types-DbY7DJ8y.d.ts} +2 -0
- package/package.json +1 -1
|
@@ -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-
|
|
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-
|
|
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-DbY7DJ8y.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-DbY7DJ8y.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,14 @@ declare const LoadingIndicator: FC;
|
|
|
54
54
|
interface MessageItemProps {
|
|
55
55
|
message: ChatMessage;
|
|
56
56
|
isLastMessage?: boolean;
|
|
57
|
+
isFirstMessage?: boolean;
|
|
58
|
+
handleSavePrompt?: (message: ChatMessage) => void;
|
|
57
59
|
}
|
|
58
60
|
declare const MessageItem: FC<MessageItemProps>;
|
|
59
61
|
|
|
60
62
|
interface MessageListProps {
|
|
61
63
|
messages: ChatMessage[];
|
|
64
|
+
handleSavePrompt?: (message: ChatMessage) => void;
|
|
62
65
|
}
|
|
63
66
|
declare const MessageList: FC<MessageListProps>;
|
|
64
67
|
|
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-
|
|
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-
|
|
7
|
+
import { T as TaskLabels, a as TeamMateContextProps, b as TeamMateState, c as TeamMateConfig, d as TeamMateActionType, e as TeamMateAvailability } from './types-DbY7DJ8y.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-DbY7DJ8y.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,7 @@ interface ChatbotProps {
|
|
|
107
107
|
contextPanelDropdowns?: ReactNode[];
|
|
108
108
|
chatboxStartPosition?: "middle" | "bottom";
|
|
109
109
|
helloMessageFooter?: ReactNode;
|
|
110
|
+
handleSavePrompt?: (message: ChatMessage) => void;
|
|
110
111
|
}
|
|
111
112
|
interface ChatbotProviderProps extends ChatbotProps {
|
|
112
113
|
taskLabel?: keyof typeof TaskLabels;
|
|
@@ -129,6 +130,7 @@ interface ChatbotProviderProps extends ChatbotProps {
|
|
|
129
130
|
sessions?: Record<string, ChatSession>;
|
|
130
131
|
currentSessionId?: string;
|
|
131
132
|
selectedDatamateId?: string;
|
|
133
|
+
handleSavePrompt?: (message: ChatMessage) => void;
|
|
132
134
|
}
|
|
133
135
|
type InteractionType = "text" | "select" | "multiSelect" | "confirm";
|
|
134
136
|
interface InteractionChoice {
|