@altimateai/ui-components 0.0.44 → 0.0.46

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,4 +1,4 @@
1
- import { A as a, N as s, J as c, g as I, i as e, B as r, q as t, n as i, b as l, W as C, d as h, p as d, a as m, e as p, S as b, C as f, h as v, U as D, V as g, f as S, y as U, K as k, k as u, D as w, w as A, E as R, F as G, G as L, T as F, L as T, Q as B, P as H, s as M, H as P, I as x, $ as y, M as z, r as E, X as N, R as O, O as V, Z 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 $, _ as j, Y as oo } from "../../index2.js";
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-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';
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 };
@@ -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, 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";
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
- g as ContextPanel,
11
- c as FeedbackButtons,
12
- u as InteractionPrompt,
13
- C as LoadingIndicator,
10
+ c as ContextPanel,
11
+ g as FeedbackButtons,
12
+ C as InteractionPrompt,
13
+ u as LoadingIndicator,
14
14
  S as LoadingState,
15
- p as MessageItem,
16
- l as MessageList,
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 clearHistory,
26
- b as clearTodos,
27
- k as createSession,
28
- B as deleteMessage,
29
- F as initialState,
30
- R as processAgentMessageContent,
31
- f as processAgentStream,
32
- v as processExistingConversation,
33
- y as processPlaygroundSessionTurns,
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,
41
- j as setSessions,
42
- q as setTodos,
43
- w as streamResponseToAgentMessages,
44
- z as todoItemSchema,
45
- J as updateContext,
46
- K as updateDatamates,
47
- N as updateMessageFeedback,
48
- O as updateMode,
49
- W as useAgentChat,
50
- X as useChatContext
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 { 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";
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-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';
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,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 { 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";
3
+ import { ax as u, am as M, ak as P, aw as d, av as f, an as h, au as x, al as A, aA as g, aB as y, az as S, at as B, ay as b, aq as j, 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
- M as CoachForm,
8
+ u as CoachForm,
9
9
  e as CoachFormButton,
10
10
  I as CodeBlock,
11
11
  T as Collapse,
12
- P as ContentCategory,
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
- d as LoadingButton,
20
- f as Markdown,
21
- h as MermaidDiagram,
22
- k as PersonalizationScope,
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
- j as Spinner,
28
+ B as Spinner,
29
29
  H as Stack,
30
30
  v as Table,
31
- B as TaskLabels,
32
- b as TeamMateActionType,
31
+ b as TaskLabels,
32
+ j as TeamMateActionType,
33
33
  D as TeamMateAvailability,
34
34
  m as TeamMateProvider,
35
35
  c as TeamMates,
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
- b0 as G,
642
+ O0 as G,
643
643
  E0 as H,
644
644
  o1 as I,
645
- O0 as J,
646
- A0 as K,
647
- T0 as L,
645
+ A0 as J,
646
+ T0 as K,
647
+ P0 as L,
648
648
  a1 as M,
649
- P0 as N,
650
- G0 as O,
651
- W0 as P,
652
- $0 as Q,
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
- Y0 as T,
656
- N0 as U,
657
- J0 as V,
658
- z0 as W,
659
- X0 as X,
660
- f1 as Y,
661
- v0 as Z,
662
- g0 as _,
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 { ag as s, ah as r } from "./CoachForm.js";
2
- const i = (n) => {
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);
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) => i(n) >= 0.5, u = (n) => !c(n);
5
+ }, c = (n) => s(n) >= 0.5, u = (n) => !c(n);
6
6
  export {
7
7
  u as i
8
8
  };