@altimateai/ui-components 0.0.77-beta.6 → 0.0.77-beta.7

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/Stack.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as h, b as $s, e as Ls } from "./index3.js";
1
+ import { j as h, S as $s, d as Ls } from "./index3.js";
2
2
  import * as l from "react";
3
3
  import ve, { useLayoutEffect as Fs, useEffect as Ws, forwardRef as V, createElement as et, useState as zs } from "react";
4
4
  import * as ir from "react-dom";
@@ -4671,7 +4671,7 @@ const jl = ({
4671
4671
  title: t,
4672
4672
  ...n
4673
4673
  }) => t ? /* @__PURE__ */ h.jsxs(Dl, { ...n, children: [
4674
- /* @__PURE__ */ h.jsx(Il, { asChild: !0, children: /* @__PURE__ */ h.jsx("span", { className: "al-max-w-full al-contents", children: e }) }),
4674
+ /* @__PURE__ */ h.jsx(Il, { asChild: !0, children: /* @__PURE__ */ h.jsx("span", { className: "al-max-w-full", children: e }) }),
4675
4675
  /* @__PURE__ */ h.jsx(Yr, { children: t })
4676
4676
  ] }) : /* @__PURE__ */ h.jsx(h.Fragment, { children: e }), $l = Zt(
4677
4677
  "al-inline-flex al-items-center al-justify-center al-gap-2 al-whitespace-nowrap al-text-sm al-font-medium al-ring-offset-background al-transition-colors focus-visible:al-outline-none focus-visible:al-ring-2 focus-visible:al-ring-ring focus-visible:al-ring-offset-2 disabled:al-pointer-events-none disabled:al-opacity-50 [&_svg]:al-pointer-events-none [&_svg]:al-size-4 [&_svg]:al-shrink-0",
@@ -7626,28 +7626,28 @@ export {
7626
7626
  Wl as B,
7627
7627
  ps as C,
7628
7628
  fs as D,
7629
- ht as E,
7629
+ Ei as E,
7630
7630
  hn as F,
7631
- Ei as G,
7632
- uf as H,
7631
+ uf as G,
7632
+ Ad as H,
7633
7633
  Xc as I,
7634
- Ad as J,
7635
- pu as K,
7636
- uu as L,
7637
- Q as M,
7638
- rt as N,
7634
+ pu as J,
7635
+ uu as K,
7636
+ Q as L,
7637
+ rt as M,
7638
+ nt as N,
7639
7639
  cs as O,
7640
7640
  B as P,
7641
- nt as Q,
7641
+ zo as Q,
7642
7642
  sd as R,
7643
7643
  bf as S,
7644
- jl as T,
7645
- zo as U,
7646
- su as V,
7647
- Au as W,
7648
- mu as X,
7649
- $l as Y,
7650
- dl as Z,
7644
+ qc as T,
7645
+ su as U,
7646
+ Au as V,
7647
+ mu as W,
7648
+ $l as X,
7649
+ dl as Y,
7650
+ jl as Z,
7651
7651
  Lo as _,
7652
7652
  I as a,
7653
7653
  gf as a0,
@@ -7664,8 +7664,8 @@ export {
7664
7664
  Od as aB,
7665
7665
  Td as aC,
7666
7666
  kd as aD,
7667
- hf as aE,
7668
- lr as aF,
7667
+ lr as aE,
7668
+ hf as aF,
7669
7669
  Pd as aa,
7670
7670
  hs as ab,
7671
7671
  vc as ac,
@@ -7697,24 +7697,24 @@ export {
7697
7697
  G as d,
7698
7698
  ln as e,
7699
7699
  W as f,
7700
- qc as g,
7701
- Zt as h,
7702
- id as i,
7703
- ad as j,
7704
- us as k,
7705
- ds as l,
7706
- je as m,
7707
- ge as n,
7708
- We as o,
7709
- Pe as p,
7710
- gt as q,
7711
- Ho as r,
7712
- $o as s,
7713
- dt as t,
7700
+ Zt as g,
7701
+ id as h,
7702
+ ad as i,
7703
+ us as j,
7704
+ ds as k,
7705
+ je as l,
7706
+ ge as m,
7707
+ We as n,
7708
+ Pe as o,
7709
+ gt as p,
7710
+ Ho as q,
7711
+ $o as r,
7712
+ dt as s,
7713
+ jr as t,
7714
7714
  ue as u,
7715
- jr as v,
7716
- $r as w,
7717
- vn as x,
7718
- Fi as y,
7719
- Ir as z
7715
+ $r as v,
7716
+ vn as w,
7717
+ Fi as x,
7718
+ Ir as y,
7719
+ ht as z
7720
7720
  };
@@ -1,7 +1,7 @@
1
- import { j as d, C as Nu, a as ja, b as Iu, c as ka, d as Ru } from "./index3.js";
1
+ import { j as d, C as Nu, a as ja, S as Iu, b as ka, c as Ru } from "./index3.js";
2
2
  import * as i from "react";
3
3
  import J, { forwardRef as Ie, Fragment as Tu, useState as ke, useRef as ct, useCallback as Je, useEffect as ut, useImperativeHandle as _u } from "react";
4
- import { a as H, B as Ot, I as Fa, g as Au, h as Nt, c as nt, R as La, i as Pu, C as $a, j as Va, O as Hr, k as zr, l as Ba, D as Ua, b as ze, e as Ke, m as tt, P as ge, f as X, n as Xe, d as be, u as Ye, o as qe, p as Fe, q as $t, A as Gr, r as Wr, s as Ha, F as za, t as Kr, v as Yr, w as qr, x as Ga, y as Du, z as Vn, E as Wa, G as Mu, H as Ou, J as ju, K as ku, _ as Fu, L as Lu, M as Pt, N as $u, Q as Vu, U as Bu, V as Uu, W as Hu, X as zu, Y as Ka, Z as Gu, S as Wu, T as Ku, $ as Wo, a0 as Ko, a1 as Yo, a2 as qo, a3 as Yu, a4 as qu } from "./Stack.js";
4
+ import { a as H, B as Ot, I as Fa, T as Au, g as Nt, c as nt, R as La, h as Pu, C as $a, i as Va, O as Hr, j as zr, k as Ba, D as Ua, b as ze, e as Ke, l as tt, P as ge, f as X, m as Xe, d as be, u as Ye, n as qe, o as Fe, p as $t, A as Gr, q as Wr, r as Ha, F as za, s as Kr, t as Yr, v as qr, w as Ga, x as Du, y as Vn, z as Wa, E as Mu, G as Ou, H as ju, J as ku, _ as Fu, K as Lu, L as Pt, M as $u, N as Vu, Q as Bu, U as Uu, V as Hu, W as zu, X as Ka, Y as Gu, S as Wu, Z as Ku, $ as Wo, a0 as Ko, a1 as Yo, a2 as qo, a3 as Yu, a4 as qu } from "./Stack.js";
5
5
  import * as Xr from "react-dom";
6
6
  import Ya from "react-dom";
7
7
  function Xu({ className: e, ...t }) {
@@ -9630,7 +9630,7 @@ export {
9630
9630
  po as Z,
9631
9631
  hx as _,
9632
9632
  Uh as a,
9633
- Zr as a$,
9633
+ od as a$,
9634
9634
  ml as a0,
9635
9635
  gl as a1,
9636
9636
  hl as a2,
@@ -9665,9 +9665,9 @@ export {
9665
9665
  mu as aV,
9666
9666
  Vx as aW,
9667
9667
  Bx as aX,
9668
- G as aY,
9669
- xe as aZ,
9670
- Eh as a_,
9668
+ Zr as aY,
9669
+ id as aZ,
9670
+ nd as a_,
9671
9671
  om as aa,
9672
9672
  yx as ab,
9673
9673
  wg as ac,
@@ -9695,9 +9695,9 @@ export {
9695
9695
  Jn as ay,
9696
9696
  Ix as az,
9697
9697
  ed as b,
9698
- id as b0,
9699
- nd as b1,
9700
- od as b2,
9698
+ G as b0,
9699
+ xe as b1,
9700
+ Eh as b2,
9701
9701
  gd as b3,
9702
9702
  fd as b4,
9703
9703
  qa as b5,
@@ -1,4 +1,4 @@
1
- import { A as a, y as s, v as c, g as I, i as e, B as r, q as t, n as i, a as l, O as C, c as h, p as d, C as m, d as p, b, e as f, h as v, L as D, N as g, f as S, Z as U, w as k, k as u, D as w, u as A, E as R, F as G, _ as L, K as F, x as T, J as B, G as H, s as M, H as P, I as x, $ as y, M as z, r as E, P as N, R as O, z as V, U as W, Q as q, T as J, o as K, l as Q, m as X, S as Y, Y as Z, X as _, t as $, V as j, W as oo } from "../../index3.js";
1
+ import { A as a, y as s, v as c, f as I, h as e, B as r, p as t, m as i, a as l, O as C, b as h, o as d, C as m, c as p, S as b, d as f, g as v, L as D, N as g, e as S, Z as U, w as k, i as u, D as w, t as A, E as R, F as G, _ as L, K as F, x as T, J as B, G as H, r as M, H as P, I as x, $ as y, M as z, q as E, P as N, R as O, z as V, U as W, Q as q, T as J, n as K, k as Q, l as X, u as Y, Y as Z, X as _, s as $, V as j, W as oo } from "../../index3.js";
2
2
  export {
3
3
  a as AddIcon,
4
4
  s as ArrowLeftIcon,
@@ -1,6 +1,6 @@
1
1
  import React__default, { FC, ReactNode } from 'react';
2
- import { j as ChatbotProps, k as ChatSession, m as ChatbotProviderProps, n as ChatState, A as Artifact, o as ContextOption, I as InteractionRequest, p as ChatMessage, q as AgentAction, i as Citation, r as TodoItem, s as ChatResponse, F as Feedback, t as LoadingState, M as MessageAttachment, D as DetectedEntity, E as EntityType, u as AgentStreamResponse, S as SessionStatusEnum } from '../types-BZH4Xw79.js';
3
- export { x as AssistantMeta, w as ChatEvent, v as ChatEventStatus, z as ChatbotUrls, B as Datamate, G as EntityDetectionRequest, H as EntityDetectionResponse, y as FileUploadProps, W as FinalResponseData, N as InteractionChoice, K as InteractionType, J as Mode, V as ProgressUpdate, R as ToolUsageData, U as UploadedFile, X as agentStreamResponseSchema, O as sessionStatusSchema, Q as todoItemSchema } from '../types-BZH4Xw79.js';
2
+ import { d as ChatbotProps, a as ChatSession, e as ChatbotProviderProps, f as ChatState, A as Artifact, b as ContextOption, I as InteractionRequest, g as ChatMessage, h as AgentAction, c as Citation, i as TodoItem, j as ChatResponse, F as Feedback, L as LoadingState, M as MessageAttachment, D as DetectedEntity, E as EntityType, k as AgentStreamResponse, S as SessionStatusEnum } from '../types-UHJCpYj0.js';
3
+ export { n as AssistantMeta, m as ChatEvent, l as ChatEventStatus, C as ChatbotUrls, p as Datamate, q as EntityDetectionRequest, r as EntityDetectionResponse, o as FileUploadProps, y as FinalResponseData, u as InteractionChoice, t as InteractionType, s as Mode, P as ProgressUpdate, x as ToolUsageData, U as UploadedFile, z as agentStreamResponseSchema, v as sessionStatusSchema, w as todoItemSchema } from '../types-UHJCpYj0.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';
@@ -1,122 +1,93 @@
1
- import { bX as n, bY as i, bZ as l, b_ as d, b$ as g, c0 as h, c1 as m } from "../CoachForm.js";
2
- import { c4 as F, c5 as E, c7 as L, c3 as b, c2 as I, ck as B, c6 as R, cm as z, c8 as D, c9 as N, cl as G, ca as H, cb as q, cc as J, cd as K, cB as Q, cu as U, cp as V, cC as X, cG as Y, cw as Z, cE as _, cr as $, cx as O, cq as W, ci as P, ce as ss, ch as as, cj as es, cM as ts, cf as cs, cn as os, cA as rs, ct as ns, cz as is, cy as ls, cs as ds, cL as gs, cD as hs, cg as ms, co as Cs, cF as ps, cI as Ss, cJ as xs, cK as us, cv as ys, cH as js } from "../CoachForm.js";
3
- import { j as s, S as C } from "../index3.js";
4
- import { B as c, S as o, T as p, a as S } from "../Stack.js";
5
- import { useState as x } from "react";
6
- const A = () => {
7
- const { taskLabel: e } = n(), [a, t] = x(!1);
8
- return e ? /* @__PURE__ */ s.jsx(s.Fragment, { children: a ? /* @__PURE__ */ s.jsx(i, { taskLabel: e, onClose: () => t(!1) }) : /* @__PURE__ */ s.jsxs(c, { size: "sm", onClick: () => t(!0), variant: "outline", children: [
9
- /* @__PURE__ */ s.jsx(C, {}),
10
- "Coach Agent"
11
- ] }) }) : null;
12
- }, f = ({
13
- messageId: e,
1
+ import { bE as c, bF as n, bG as o } from "../CoachForm.js";
2
+ import { bK as p, bL as M, bP as u, bO as x, bI as A, bH as y, c1 as f, bM as j, bN as E, c3 as T, bQ as k, bR as L, c2 as I, bS as R, bT as v, bU as w, bV as B, bW as F, ci as N, cb as D, c6 as G, cj as H, cn as Q, cd as U, cl as V, c8 as q, ce as J, c7 as K, b$ as O, bX as W, b_ as X, c0 as Y, ct as Z, bY as _, c4 as $, ch as z, ca as P, cg as aa, cf as sa, c9 as ea, cs as ta, ck as ca, bZ as na, c5 as oa, cm as ra, cp as ia, cq as da, cr as la, cc as ga, co as ma, bJ as Sa } from "../CoachForm.js";
3
+ import { j as e } from "../index3.js";
4
+ import { S as r, B as i, a as d } from "../Stack.js";
5
+ const S = ({
6
+ messageId: s,
14
7
  messageContent: a,
15
8
  sessionId: t
16
- }) => /* @__PURE__ */ s.jsx("div", { role: "group", "aria-label": "Message share and download", children: /* @__PURE__ */ s.jsxs(o, { direction: "row", children: [
17
- /* @__PURE__ */ s.jsx(l, { messageId: e, messageContent: a, sessionId: t }),
18
- /* @__PURE__ */ s.jsx(
19
- d,
9
+ }) => /* @__PURE__ */ e.jsx("div", { role: "group", "aria-label": "Message share and download", children: /* @__PURE__ */ e.jsxs(r, { direction: "row", children: [
10
+ /* @__PURE__ */ e.jsx(c, { messageId: s, messageContent: a, sessionId: t }),
11
+ /* @__PURE__ */ e.jsx(
12
+ n,
20
13
  {
21
- messageId: e,
14
+ messageId: s,
22
15
  messageContent: a,
23
16
  sessionId: t
24
17
  }
25
18
  )
26
- ] }) }), k = ({ messageId: e, content: a }) => {
27
- const t = async () => {
28
- try {
29
- await navigator.clipboard.writeText(a);
30
- } catch (r) {
31
- console.error("Failed to copy message:", r);
32
- }
33
- };
34
- return /* @__PURE__ */ s.jsxs(o, { direction: "row", children: [
35
- /* @__PURE__ */ s.jsx(g, { messageId: e }),
36
- /* @__PURE__ */ s.jsx(p, { title: "Copy message", children: /* @__PURE__ */ s.jsx(
37
- c,
38
- {
39
- variant: "ghost",
40
- size: "sm",
41
- className: "al-text-gray-500",
42
- onClick: t,
43
- "aria-label": "Copy response",
44
- children: /* @__PURE__ */ s.jsx(h, { "aria-hidden": "true" })
45
- }
46
- ) })
47
- ] });
48
- }, T = ({ text: e, buttonProps: a }) => {
49
- const { sendMessage: t } = m();
50
- return /* @__PURE__ */ s.jsx(
51
- c,
19
+ ] }) }), b = ({ text: s, buttonProps: a }) => {
20
+ const { sendMessage: t } = o();
21
+ return /* @__PURE__ */ e.jsx(
22
+ i,
52
23
  {
53
24
  variant: "secondary",
54
- onClick: () => t({ message: e }),
25
+ onClick: () => t({ message: s }),
55
26
  color: "link",
56
27
  ...a,
57
- className: S(
28
+ className: d(
58
29
  "al-border al-border-primary-500 al-rounded-full al-p-2 !al-justify-start al-text-left al-h-auto",
59
30
  a == null ? void 0 : a.className
60
31
  ),
61
32
  style: { whiteSpace: "normal", ...a == null ? void 0 : a.style },
62
- children: e
33
+ children: s
63
34
  },
64
- e
35
+ s
65
36
  );
66
37
  };
67
38
  export {
68
- F as Artifacts,
69
- E as CancelGenerationButton,
70
- L as ChatFeedbackActions,
71
- k as ChatLastMessageActions,
72
- f as ChatMessageEndActions,
73
- b as ChatProvider,
74
- T as ChatTriggerLink,
75
- I as ChatbotV2,
76
- B as Citations,
77
- A as CoachAI,
78
- R as ContextPanel,
79
- z as EntityType,
80
- D as InteractionPrompt,
81
- N as LoadingIndicator,
82
- G as LoadingState,
83
- H as MessageItem,
84
- q as MessageList,
85
- J as QuestionForm,
86
- g as RegenerateButton,
87
- K as StatusUpdates,
88
- Q as addAction,
89
- U as addMessage,
90
- V as agentStreamResponseSchema,
91
- X as clearActions,
92
- Y as clearContext,
93
- Z as clearHistory,
94
- _ as clearTodos,
95
- $ as createSession,
96
- O as deleteMessage,
97
- W as initialState,
98
- P as processAgentMessageContent,
99
- ss as processAgentStream,
100
- as as processExistingConversation,
101
- es as processPlaygroundSessionTurns,
102
- ts as resetSession,
103
- cs as sendMessageAndProcessStream,
104
- os as sessionStatusSchema,
105
- rs as setAbortController,
106
- ns as setCurrentSession,
107
- is as setError,
108
- ls as setLoadingState,
109
- ds as setSelectedModel,
110
- gs as setSessions,
111
- hs as setTodos,
112
- ms as streamResponseToAgentMessages,
113
- Cs as todoItemSchema,
114
- ps as updateContext,
115
- Ss as updateDatamateInSession,
116
- xs as updateEntities,
117
- us as updateEntityType,
118
- ys as updateMessageFeedback,
119
- js as updateMode,
120
- m as useAgentChat,
121
- n as useChatContext
39
+ p as Artifacts,
40
+ M as CancelGenerationButton,
41
+ u as ChatFeedbackActions,
42
+ x as ChatLastMessageActions,
43
+ S as ChatMessageEndActions,
44
+ A as ChatProvider,
45
+ b as ChatTriggerLink,
46
+ y as ChatbotV2,
47
+ f as Citations,
48
+ j as CoachAI,
49
+ E as ContextPanel,
50
+ T as EntityType,
51
+ k as InteractionPrompt,
52
+ L as LoadingIndicator,
53
+ I as LoadingState,
54
+ R as MessageItem,
55
+ v as MessageList,
56
+ w as QuestionForm,
57
+ B as RegenerateButton,
58
+ F as StatusUpdates,
59
+ N as addAction,
60
+ D as addMessage,
61
+ G as agentStreamResponseSchema,
62
+ H as clearActions,
63
+ Q as clearContext,
64
+ U as clearHistory,
65
+ V as clearTodos,
66
+ q as createSession,
67
+ J as deleteMessage,
68
+ K as initialState,
69
+ O as processAgentMessageContent,
70
+ W as processAgentStream,
71
+ X as processExistingConversation,
72
+ Y as processPlaygroundSessionTurns,
73
+ Z as resetSession,
74
+ _ as sendMessageAndProcessStream,
75
+ $ as sessionStatusSchema,
76
+ z as setAbortController,
77
+ P as setCurrentSession,
78
+ aa as setError,
79
+ sa as setLoadingState,
80
+ ea as setSelectedModel,
81
+ ta as setSessions,
82
+ ca as setTodos,
83
+ na as streamResponseToAgentMessages,
84
+ oa as todoItemSchema,
85
+ ra as updateContext,
86
+ ia as updateDatamateInSession,
87
+ da as updateEntities,
88
+ la as updateEntityType,
89
+ ga as updateMessageFeedback,
90
+ ma as updateMode,
91
+ o as useAgentChat,
92
+ Sa as useChatContext
122
93
  };