@altimateai/ui-components 0.0.44 → 0.0.45
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 +9830 -9690
- package/dist/assets/icons/index.js +1 -1
- package/dist/chatbotV2/index.d.ts +9 -3
- package/dist/chatbotV2/index.js +34 -33
- package/dist/flowchart-elk-definition-170a3958.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +13 -13
- package/dist/index2.js +16 -16
- package/dist/is_dark.js +4 -4
- package/dist/main.js +1 -1
- package/dist/mindmap-definition-44684416.js +1 -1
- package/dist/timeline-definition-8e5a9bc6.js +1 -1
- package/dist/{types-BR-ZVRob.d.ts → types-B9-bNXLo.d.ts} +20 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as a,
|
|
1
|
+
import { A as a, L as s, G as c, g as I, i as e, B as r, q as t, n as i, b as l, V as C, d as h, p as d, a as m, e as p, S as b, C as f, h as v, T as D, U as g, f as S, y as U, J as k, k as u, D as w, w as A, E as R, F as G, _ as L, Q as F, K as T, P as B, O as H, s as M, H as P, I as x, $ as y, M as z, r as E, W as N, R as O, N as V, Y as W, c as q, x as J, o as K, l as Q, m as X, z as Y, v as Z, u as _, t as $, Z as j, X as oo } from "../../index2.js";
|
|
2
2
|
export {
|
|
3
3
|
a as AddIcon,
|
|
4
4
|
s as ArrowLeftIcon,
|
|
@@ -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-
|
|
3
|
-
export { v as AssistantMeta, x as ChatbotUrls, D as Datamate, w as FileUploadProps,
|
|
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';
|
|
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';
|
|
@@ -116,6 +116,7 @@ interface AddMessagePayload {
|
|
|
116
116
|
heading: string;
|
|
117
117
|
citations?: Citation[];
|
|
118
118
|
todos?: TodoItem[];
|
|
119
|
+
attachments?: MessageAttachment[];
|
|
119
120
|
}
|
|
120
121
|
interface DeleteMessagePayload {
|
|
121
122
|
sessionId: string;
|
|
@@ -170,6 +171,9 @@ declare const setTodos: _reduxjs_toolkit.ActionCreatorWithPayload<{
|
|
|
170
171
|
}[], "chat/setTodos">;
|
|
171
172
|
declare const clearTodos: _reduxjs_toolkit.ActionCreatorWithoutPayload<"chat/clearTodos">;
|
|
172
173
|
declare const updateContext: _reduxjs_toolkit.ActionCreatorWithPayload<UpdateContextPayload, "chat/updateContext">;
|
|
174
|
+
declare const clearContext: _reduxjs_toolkit.ActionCreatorWithPayload<{
|
|
175
|
+
sessionId: string;
|
|
176
|
+
}, "chat/clearContext">;
|
|
173
177
|
declare const updateMode: _reduxjs_toolkit.ActionCreatorWithPayload<UpdateModePayload, "chat/updateMode">;
|
|
174
178
|
declare const updateDatamates: _reduxjs_toolkit.ActionCreatorWithPayload<UpdateDatamatesPayload, "chat/updateDatamates">;
|
|
175
179
|
declare const setSessions: _reduxjs_toolkit.ActionCreatorWithPayload<Record<string, ChatSession>, "chat/setSessions">;
|
|
@@ -236,6 +240,7 @@ declare function processPlaygroundSessionTurns(turns: Array<{
|
|
|
236
240
|
content: AgentStreamResponse[];
|
|
237
241
|
id?: string;
|
|
238
242
|
timestamp?: number;
|
|
243
|
+
attachments?: MessageAttachment[];
|
|
239
244
|
}>, sessionId: string, modes: {
|
|
240
245
|
label: string;
|
|
241
246
|
value: string;
|
|
@@ -252,6 +257,7 @@ declare function processPlaygroundSessionTurns(turns: Array<{
|
|
|
252
257
|
citations?: Citation[];
|
|
253
258
|
todos?: TodoItem[];
|
|
254
259
|
interaction?: AgentStreamResponse["interaction"];
|
|
260
|
+
attachments?: MessageAttachment[];
|
|
255
261
|
}>;
|
|
256
262
|
}>;
|
|
257
263
|
/**
|
|
@@ -269,4 +275,4 @@ declare const Citations: ({ citations, frontEndUrl, }: {
|
|
|
269
275
|
frontEndUrl: string;
|
|
270
276
|
}) => JSX.Element | null;
|
|
271
277
|
|
|
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 };
|
|
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 };
|
package/dist/chatbotV2/index.js
CHANGED
|
@@ -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
|
|
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";
|
|
2
2
|
export {
|
|
3
3
|
e as Artifacts,
|
|
4
4
|
t as CancelGenerationButton,
|
|
@@ -7,13 +7,13 @@ export {
|
|
|
7
7
|
r as ChatbotV2,
|
|
8
8
|
i as Citations,
|
|
9
9
|
d as CoachAI,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
c as ContextPanel,
|
|
11
|
+
g as FeedbackButtons,
|
|
12
|
+
C as InteractionPrompt,
|
|
13
|
+
u as LoadingIndicator,
|
|
14
14
|
S as LoadingState,
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
l as MessageItem,
|
|
16
|
+
p as MessageList,
|
|
17
17
|
m as MessageMenu,
|
|
18
18
|
M as QuestionForm,
|
|
19
19
|
A as RegenerateButton,
|
|
@@ -22,30 +22,31 @@ export {
|
|
|
22
22
|
I as addMessage,
|
|
23
23
|
L as agentStreamResponseSchema,
|
|
24
24
|
P as clearActions,
|
|
25
|
-
T as
|
|
26
|
-
b as
|
|
27
|
-
k as
|
|
28
|
-
B as
|
|
29
|
-
F as
|
|
30
|
-
R as
|
|
31
|
-
f as
|
|
32
|
-
v as
|
|
33
|
-
y as
|
|
34
|
-
E as
|
|
35
|
-
D as
|
|
36
|
-
G as
|
|
37
|
-
H as
|
|
38
|
-
Q as
|
|
39
|
-
U as
|
|
40
|
-
V as
|
|
41
|
-
j as
|
|
42
|
-
q as
|
|
43
|
-
w as
|
|
44
|
-
z as
|
|
45
|
-
J as
|
|
46
|
-
K as
|
|
47
|
-
N as
|
|
48
|
-
O as
|
|
49
|
-
W as
|
|
50
|
-
X as
|
|
25
|
+
T as clearContext,
|
|
26
|
+
b as clearHistory,
|
|
27
|
+
k as clearTodos,
|
|
28
|
+
B as createSession,
|
|
29
|
+
F as deleteMessage,
|
|
30
|
+
R as initialState,
|
|
31
|
+
f as processAgentMessageContent,
|
|
32
|
+
v as processAgentStream,
|
|
33
|
+
y as processExistingConversation,
|
|
34
|
+
E as processPlaygroundSessionTurns,
|
|
35
|
+
D as resetSession,
|
|
36
|
+
G as sendMessageAndProcessStream,
|
|
37
|
+
H as setAbortController,
|
|
38
|
+
Q as setCurrentSession,
|
|
39
|
+
U as setError,
|
|
40
|
+
V as setLoadingState,
|
|
41
|
+
j as setSelectedModel,
|
|
42
|
+
q as setSessions,
|
|
43
|
+
w as setTodos,
|
|
44
|
+
z as streamResponseToAgentMessages,
|
|
45
|
+
J as todoItemSchema,
|
|
46
|
+
K as updateContext,
|
|
47
|
+
N as updateDatamates,
|
|
48
|
+
O as updateMessageFeedback,
|
|
49
|
+
W as updateMode,
|
|
50
|
+
X as useAgentChat,
|
|
51
|
+
Y as useChatContext
|
|
51
52
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a4 as DH, a5 as wMe, a6 as gMe, $ as K1, _ as J1n, a7 as pMe, a0 as vMe, a8 as Y1n, a9 as mMe, aa as kMe, ab as Uee, ac as yMe, ad as Q1n, ae as $H, af as jMe, ag 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-
|
|
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-
|
|
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';
|
|
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,40 +1,40 @@
|
|
|
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
|
|
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 as C, k as l } from "./main.js";
|
|
2
2
|
import { C as T, T as v } from "./Table.js";
|
|
3
|
-
import {
|
|
3
|
+
import { ay as u, an as M, ak as P, ax as d, aw as f, ao as h, av as x, am as A, aB as g, aC as y, aA as S, au as B, az as b, ar as j, as as D, at as F, aq 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
|
-
|
|
8
|
+
u as CoachForm,
|
|
9
9
|
e as CoachFormButton,
|
|
10
10
|
I as CodeBlock,
|
|
11
11
|
T as Collapse,
|
|
12
|
-
|
|
12
|
+
M 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
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
P as LoadingButton,
|
|
20
|
+
d as Markdown,
|
|
21
|
+
f as MermaidDiagram,
|
|
22
|
+
h 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
|
-
|
|
28
|
+
B as Spinner,
|
|
29
29
|
H as Stack,
|
|
30
30
|
v as Table,
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
b as TaskLabels,
|
|
32
|
+
j as TeamMateActionType,
|
|
33
33
|
D as TeamMateAvailability,
|
|
34
34
|
m as TeamMateProvider,
|
|
35
35
|
c as TeamMates,
|
|
36
36
|
F as TeamMatesConfig,
|
|
37
|
-
|
|
37
|
+
C as TeammateActions,
|
|
38
38
|
G as learningSchema,
|
|
39
|
-
|
|
39
|
+
l as useTeamMateContext
|
|
40
40
|
};
|
package/dist/index2.js
CHANGED
|
@@ -639,27 +639,27 @@ export {
|
|
|
639
639
|
H0 as D,
|
|
640
640
|
s1 as E,
|
|
641
641
|
u1 as F,
|
|
642
|
-
|
|
642
|
+
O0 as G,
|
|
643
643
|
E0 as H,
|
|
644
644
|
o1 as I,
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
645
|
+
A0 as J,
|
|
646
|
+
T0 as K,
|
|
647
|
+
P0 as L,
|
|
648
648
|
a1 as M,
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
649
|
+
G0 as N,
|
|
650
|
+
W0 as O,
|
|
651
|
+
$0 as P,
|
|
652
|
+
Y0 as Q,
|
|
653
653
|
Q0 as R,
|
|
654
654
|
S0 as S,
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
655
|
+
N0 as T,
|
|
656
|
+
J0 as U,
|
|
657
|
+
z0 as V,
|
|
658
|
+
X0 as W,
|
|
659
|
+
f1 as X,
|
|
660
|
+
v0 as Y,
|
|
661
|
+
g0 as Z,
|
|
662
|
+
b0 as _,
|
|
663
663
|
n1 as a,
|
|
664
664
|
q0 as b,
|
|
665
665
|
C1 as c,
|
package/dist/is_dark.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const
|
|
3
|
-
const { r: a, g: t, b: o } =
|
|
1
|
+
import { ah as i, ai as r } from "./CoachForm.js";
|
|
2
|
+
const s = (n) => {
|
|
3
|
+
const { r: a, g: t, b: o } = i.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);
|
|
5
|
-
}, c = (n) =>
|
|
5
|
+
}, c = (n) => s(n) >= 0.5, u = (n) => !c(n);
|
|
6
6
|
export {
|
|
7
7
|
u as i
|
|
8
8
|
};
|
package/dist/main.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { C as Yn } from "./Table.js";
|
|
2
|
-
import {
|
|
2
|
+
import { ak as un, al as dt, am as Wn, an as Kn, ao as Xn, ap as Gn, aq as Zn, ar as rt, as as Qn, at 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 {
|
|
1
|
+
import { aj as Zy, _ as Dn, $ as fa, a0 as Qy, a1 as Jy, a2 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 {
|
|
1
|
+
import { X as kt, Y as vt, Z as wt, _ as rt, $ as I, a0 as St, a1 as Et, a2 as Tt, a3 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() {
|
|
@@ -121,6 +121,24 @@ interface InteractionRequest {
|
|
|
121
121
|
message?: string;
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
|
+
interface UploadedFile {
|
|
125
|
+
filename: string;
|
|
126
|
+
content: string;
|
|
127
|
+
content_type: string;
|
|
128
|
+
size: number;
|
|
129
|
+
}
|
|
130
|
+
interface MessageAttachment {
|
|
131
|
+
id: string;
|
|
132
|
+
attachment_name: string;
|
|
133
|
+
file_type: string | null;
|
|
134
|
+
s3_url: string | null;
|
|
135
|
+
extracted_content: string | null;
|
|
136
|
+
order: number;
|
|
137
|
+
attachment_type: string;
|
|
138
|
+
attachment_reference_id: string | null;
|
|
139
|
+
file_size: number | null;
|
|
140
|
+
created_on: string;
|
|
141
|
+
}
|
|
124
142
|
interface ChatMessage {
|
|
125
143
|
id: string;
|
|
126
144
|
content: string;
|
|
@@ -132,6 +150,7 @@ interface ChatMessage {
|
|
|
132
150
|
heading: string;
|
|
133
151
|
citations?: Citation[];
|
|
134
152
|
todos?: TodoItem[];
|
|
153
|
+
attachments?: MessageAttachment[];
|
|
135
154
|
}
|
|
136
155
|
interface Artifact {
|
|
137
156
|
content: string;
|
|
@@ -546,4 +565,4 @@ interface Citation {
|
|
|
546
565
|
taskLabel: TaskLabels;
|
|
547
566
|
}
|
|
548
567
|
|
|
549
|
-
export { type Artifact as A,
|
|
568
|
+
export { type Artifact as A, type InteractionChoice as B, type CoachAiResponse as C, type Datamate as D, todoItemSchema as E, type Feedback as F, type ToolUsageData as G, type ProgressUpdate as H, type InteractionRequest as I, type FinalResponseData as J, agentStreamResponseSchema as K, type Learning as L, type MessageAttachment as M, PersonalizationScope as P, TaskLabels as T, type UploadedFile as U, 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 ChatSession as s, type TodoItem as t, type AgentStreamResponse as u, type AssistantMeta as v, type FileUploadProps as w, type ChatbotUrls as x, type Mode as y, type InteractionType as z };
|