@altimateai/ui-components 0.0.51-beta.1 → 0.0.52

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 } 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-Dqrpza7-.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-Dqrpza7-.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-oWZJEjV7.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-oWZJEjV7.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';
@@ -135,15 +135,6 @@ interface UpdateDatamateInSessionPayload {
135
135
  sessionId: string;
136
136
  datamates: string[];
137
137
  }
138
- interface UpdateEntitiesPayload {
139
- sessionId: string;
140
- entities: DetectedEntity[];
141
- }
142
- interface UpdateEntityTypePayload {
143
- sessionId: string;
144
- entityName: string;
145
- newType: EntityType;
146
- }
147
138
  declare const initialState: ChatState;
148
139
  declare const createSession: _reduxjs_toolkit.ActionCreatorWithPayload<{
149
140
  context?: Record<string, unknown>;
@@ -186,8 +177,6 @@ declare const clearContext: _reduxjs_toolkit.ActionCreatorWithPayload<{
186
177
  }, "chat/clearContext">;
187
178
  declare const updateMode: _reduxjs_toolkit.ActionCreatorWithPayload<UpdateModePayload, "chat/updateMode">;
188
179
  declare const updateDatamateInSession: _reduxjs_toolkit.ActionCreatorWithPayload<UpdateDatamateInSessionPayload, "chat/updateDatamateInSession">;
189
- declare const updateEntities: _reduxjs_toolkit.ActionCreatorWithPayload<UpdateEntitiesPayload, "chat/updateEntities">;
190
- declare const updateEntityType: _reduxjs_toolkit.ActionCreatorWithPayload<UpdateEntityTypePayload, "chat/updateEntityType">;
191
180
  declare const setSessions: _reduxjs_toolkit.ActionCreatorWithPayload<Record<string, ChatSession>, "chat/setSessions">;
192
181
  declare const resetSession: _reduxjs_toolkit.ActionCreatorWithoutPayload<"chat/resetSession">;
193
182
 
@@ -288,4 +277,4 @@ declare const Citations: ({ citations, frontEndUrl, }: {
288
277
  frontEndUrl: string;
289
278
  }) => JSX.Element | null;
290
279
 
291
- export { AgentAction, AgentStreamResponse, Artifact, Artifacts, CancelGenerationButton, ChatMessage, ChatProvider, ChatResponse, ChatSession, ChatState, ChatTriggerLink, ChatbotProps, ChatbotProviderProps, Chatbot as ChatbotV2, Citations, CoachAI, ContextOption, ContextPanel, DetectedEntity, EntityType, 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, updateDatamateInSession, updateEntities, updateEntityType, updateMessageFeedback, updateMode, useAgentChat, useChatContext };
280
+ 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, updateDatamateInSession, updateMessageFeedback, updateMode, useAgentChat, useChatContext };
@@ -1,4 +1,4 @@
1
- import { A as a, b as t, a as o, g as n, C as r, m as i, c as d, d as c, E as g, F as p, I as u, L as C, n as S, M as l, e as m, f as M, Q as A, R as h, S as T, J as x, x as y, o as I, K as E, T as L, z as P, O as b, r as k, B, q as F, k as R, p as f, j as v, l as D, Z as G, s as H, H as Q, w as U, G as V, D as j, v as q, Y as w, N as z, i as J, t as K, P as N, V as O, W, X, y as Y, U as Z, h as _, u as $ } from "../CoachForm.js";
1
+ import { A as a, 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 S, n as u, 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
  a as Artifacts,
4
4
  t as CancelGenerationButton,
@@ -8,48 +8,45 @@ export {
8
8
  i as Citations,
9
9
  d as CoachAI,
10
10
  c as ContextPanel,
11
- g as EntityType,
12
- p as FeedbackButtons,
13
- u as InteractionPrompt,
14
- C as LoadingIndicator,
15
- S as LoadingState,
11
+ g as FeedbackButtons,
12
+ C as InteractionPrompt,
13
+ S as LoadingIndicator,
14
+ u as LoadingState,
16
15
  l as MessageItem,
17
- m as MessageList,
18
- M as MessageMenu,
19
- A as QuestionForm,
20
- h as RegenerateButton,
21
- T as StatusUpdates,
16
+ p as MessageList,
17
+ m as MessageMenu,
18
+ M as QuestionForm,
19
+ A as RegenerateButton,
20
+ h as StatusUpdates,
22
21
  x as addAction,
23
- y as addMessage,
24
- I as agentStreamResponseSchema,
25
- E as clearActions,
26
- L as clearContext,
27
- P as clearHistory,
28
- b as clearTodos,
29
- k as createSession,
30
- B as deleteMessage,
31
- F as initialState,
32
- R as processAgentMessageContent,
33
- f as processAgentStream,
34
- v as processExistingConversation,
35
- D as processPlaygroundSessionTurns,
36
- G as resetSession,
37
- H as sendMessageAndProcessStream,
38
- Q as setAbortController,
39
- U as setCurrentSession,
40
- V as setError,
41
- j as setLoadingState,
42
- q as setSelectedModel,
43
- w as setSessions,
44
- z as setTodos,
45
- J as streamResponseToAgentMessages,
46
- K as todoItemSchema,
47
- N as updateContext,
48
- O as updateDatamateInSession,
49
- W as updateEntities,
50
- X as updateEntityType,
51
- Y as updateMessageFeedback,
52
- Z as updateMode,
53
- _ as useAgentChat,
54
- $ as useChatContext
22
+ I as addMessage,
23
+ L as agentStreamResponseSchema,
24
+ P as clearActions,
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 updateDatamateInSession,
48
+ O as updateMessageFeedback,
49
+ W as updateMode,
50
+ X as useAgentChat,
51
+ Y as useChatContext
55
52
  };
@@ -1,4 +1,4 @@
1
- import { a7 as DH, a8 as wMe, a9 as gMe, a2 as K1, a1 as J1n, aa as pMe, a3 as vMe, ab as Y1n, ac as mMe, ad as kMe, ae as Uee, af as yMe, ag as Q1n, ah as $H, ai as jMe, aj 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-Dqrpza7-.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-Dqrpza7-.js';
6
+ import { T as TaskLabels, a as TeamMateContextProps, b as TeamMateState, c as TeamMateConfig, d as TeamMateActionType, e as TeamMateAvailability } from './types-oWZJEjV7.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-oWZJEjV7.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 as C, k as l } from "./main.js";
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 { aA as M, ap as P, an as d, az as f, ay as h, aq as k, ax as x, ao as A, aD as g, aE as y, aC as S, aw as B, aB as D, at as b, au as j, av as F, as 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
- import { a3 as E } from "./Stack.js";
5
+ import { a3 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
28
  B as Spinner,
29
- E as Stack,
29
+ H as Stack,
30
30
  v as Table,
31
- D as TaskLabels,
32
- b as TeamMateActionType,
33
- j as TeamMateAvailability,
31
+ b as TaskLabels,
32
+ j as TeamMateActionType,
33
+ D as TeamMateAvailability,
34
34
  m as TeamMateProvider,
35
35
  c as TeamMates,
36
36
  F as TeamMatesConfig,
37
- C as TeammateActions,
37
+ l as TeammateActions,
38
38
  G as learningSchema,
39
- l as useTeamMateContext
39
+ p as useTeamMateContext
40
40
  };
package/dist/is_dark.js CHANGED
@@ -1,8 +1,8 @@
1
- import { ak as s, al 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
  };
package/dist/main.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { C as Yn } from "./Table.js";
2
- import { an as un, ao as Wn, ap as Xn, aq as Kn, ar as Zn, as as Gn, at as rt, au as Qn, av as Jn } from "./CoachForm.js";
2
+ import { ak as un, al as Wn, am as Xn, an as Kn, ao as Zn, ap as Gn, aq as rt, ar as Qn, as as Jn } from "./CoachForm.js";
3
3
  import { g as yt, a as ln, A as ve, C as er, I as Ie, d as dt, u as cn, b as tr } from "./redux-toolkit.modern.js";
4
4
  import { X as ye, a0 as $e, a1 as He, a2 as nr, a3 as oe, a4 as rr, a5 as or, Z as ft, Q as ir } from "./Stack.js";
5
5
  import { j as h, A as dn, f as sr, g as ar, a as ur, e as lr, D as cr, E as dr, d as fr, c as pr } from "./index2.js";
@@ -1,4 +1,4 @@
1
- import { am as Zy, a1 as Dn, a2 as fa, a3 as Qy, a4 as Jy, a5 as jy } from "./CoachForm.js";
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: {} };
@@ -440,12 +440,13 @@ interface Props<TMultiSelect extends boolean = false> {
440
440
  valueLabels?: Record<string, string>;
441
441
  onOpenChange?: (open: boolean) => void;
442
442
  popoverContentProps?: Omit<ComponentPropsWithoutRef<typeof PopoverContent>, "children">;
443
+ popoverProps?: Omit<ComponentPropsWithoutRef<typeof Popover>, "children">;
443
444
  exactSearch?: boolean;
444
445
  disableAllDeselect?: boolean;
445
446
  onPageReset?: () => void;
446
447
  hoverDelayMs?: number;
447
448
  }
448
- declare const Combobox: <TMultiSelect extends boolean = false>({ options, value, onChange, placeholder, header, searchPlaceholder, buttonProps, id, icon, multiSelect, showOnlyPlaceholder, showApplyButton, showClearButton, onLoadMore, hasMore, valueLabels, onOpenChange, popoverContentProps, exactSearch, disableAllDeselect, onPageReset, hoverDelayMs, }: Props<TMultiSelect>) => react_jsx_runtime.JSX.Element;
449
+ declare const Combobox: <TMultiSelect extends boolean = false>({ options, value, onChange, placeholder, header, searchPlaceholder, buttonProps, id, icon, multiSelect, showOnlyPlaceholder, showApplyButton, showClearButton, onLoadMore, hasMore, valueLabels, onOpenChange, popoverContentProps, popoverProps, exactSearch, disableAllDeselect, onPageReset, hoverDelayMs, }: Props<TMultiSelect>) => react_jsx_runtime.JSX.Element;
449
450
 
450
451
  type SidebarContextType = {
451
452
  state: "expanded" | "collapsed";
@@ -1,5 +1,5 @@
1
1
  import { Meta, StoryFn } from "@storybook/react";
2
- import { AutosizeTextarea } from "./AutosizeTextarea";
2
+ import { AutosizeTextarea } from "../shadcn";
3
3
  import { useState } from "react";
4
4
 
5
5
  export default {
@@ -1,5 +1,5 @@
1
1
  import { Meta, StoryFn } from "@storybook/react";
2
- import { Tabs, TabsList, TabsTrigger, TabsContent } from "./Tabs";
2
+ import { Tabs, TabsList, TabsTrigger, TabsContent } from "../shadcn";
3
3
 
4
4
  export default {
5
5
  title: "Shadcn/Components/Tabs",
@@ -7,7 +7,7 @@ import {
7
7
  TagsInputInput,
8
8
  TagsInputItem,
9
9
  TagsInputClear,
10
- } from "./TagsInput.tsx";
10
+ } from "../shadcn";
11
11
 
12
12
  const meta = {
13
13
  title: "Shadcn/Components/TagsInput",
@@ -1,5 +1,5 @@
1
- import { _ as kt, $ as vt, a0 as wt, a1 as rt, a2 as I, a3 as St, a4 as Et, a5 as Tt, a6 as et } from "./CoachForm.js";
2
- import { s as q } from "./redux-toolkit.modern.js";
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
+ import { s as Z } from "./redux-toolkit.modern.js";
3
3
  import { i as It } from "./is_dark.js";
4
4
  var X = function() {
5
5
  var n = function(k, r, a, h) {
@@ -375,10 +375,10 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[T] || T) + "'" : Q = "
375
375
  X.parser = X;
376
376
  const $t = X;
377
377
  let F = "", at = 0;
378
- const Y = [], U = [], B = [], ct = () => kt, ot = (n, t, e) => {
378
+ const Y = [], q = [], B = [], ct = () => kt, ot = (n, t, e) => {
379
379
  vt(globalThis, n, t, e);
380
380
  }, lt = function() {
381
- Y.length = 0, U.length = 0, F = "", B.length = 0, wt();
381
+ Y.length = 0, q.length = 0, F = "", B.length = 0, wt();
382
382
  }, ht = function(n) {
383
383
  F = n, Y.push(n);
384
384
  }, dt = function() {
@@ -389,7 +389,7 @@ const Y = [], U = [], B = [], ct = () => kt, ot = (n, t, e) => {
389
389
  let e = 0;
390
390
  for (; !n && e < t; )
391
391
  n = nt(), e++;
392
- return U.push(...B), U;
392
+ return q.push(...B), q;
393
393
  }, pt = function(n, t, e) {
394
394
  const s = {
395
395
  id: at++,
@@ -411,7 +411,7 @@ const Y = [], U = [], B = [], ct = () => kt, ot = (n, t, e) => {
411
411
  task: n,
412
412
  classes: []
413
413
  };
414
- U.push(t);
414
+ q.push(t);
415
415
  }, nt = function() {
416
416
  const n = function(e) {
417
417
  return B[e].processed;
@@ -442,7 +442,7 @@ const Y = [], U = [], B = [], ct = () => kt, ot = (n, t, e) => {
442
442
  getSections: dt,
443
443
  getTasks: ut,
444
444
  parseDirective: ot
445
- }, Symbol.toStringTag, { value: "Module" })), Lt = 12, Z = function(n, t) {
445
+ }, Symbol.toStringTag, { value: "Module" })), Lt = 12, U = function(n, t) {
446
446
  const e = n.append("rect");
447
447
  return e.attr("x", t.x), e.attr("y", t.y), e.attr("fill", t.fill), e.attr("stroke", t.stroke), e.attr("width", t.width), e.attr("height", t.height), e.attr("rx", t.rx), e.attr("ry", t.ry), t.class !== void 0 && e.attr("class", t.class), e;
448
448
  }, At = function(n, t) {
@@ -476,7 +476,7 @@ const Y = [], U = [], B = [], ct = () => kt, ot = (n, t, e) => {
476
476
  s.attr("points", e(t.x, t.y, 50, 20, 7)), s.attr("class", "labelBox"), t.y = t.y + t.labelMargin, t.x = t.x + 0.5 * t.labelMargin, ft(n, t);
477
477
  }, Ct = function(n, t, e) {
478
478
  const s = n.append("g"), i = D();
479
- i.x = t.x, i.y = t.y, i.fill = t.fill, i.width = e.width, i.height = e.height, i.class = "journey-section section-type-" + t.num, i.rx = 3, i.ry = 3, Z(s, i), mt(e)(
479
+ i.x = t.x, i.y = t.y, i.fill = t.fill, i.width = e.width, i.height = e.height, i.class = "journey-section section-type-" + t.num, i.rx = 3, i.ry = 3, U(s, i), mt(e)(
480
480
  t.text,
481
481
  s,
482
482
  i.x,
@@ -499,7 +499,7 @@ const Vt = function(n, t, e) {
499
499
  score: t.score
500
500
  });
501
501
  const l = D();
502
- l.x = t.x, l.y = t.y, l.fill = t.fill, l.width = e.width, l.height = e.height, l.class = "task task-type-" + t.num, l.rx = 3, l.ry = 3, Z(i, l), t.x + 14, mt(e)(
502
+ l.x = t.x, l.y = t.y, l.fill = t.fill, l.width = e.width, l.height = e.height, l.class = "task task-type-" + t.num, l.rx = 3, l.ry = 3, U(i, l), t.x + 14, mt(e)(
503
503
  t.task,
504
504
  i,
505
505
  l.x,
@@ -511,7 +511,7 @@ const Vt = function(n, t, e) {
511
511
  t.colour
512
512
  );
513
513
  }, zt = function(n, t) {
514
- Z(n, {
514
+ U(n, {
515
515
  x: t.startx,
516
516
  y: t.starty,
517
517
  width: t.stopx - t.startx,
@@ -569,7 +569,7 @@ const Vt = function(n, t, e) {
569
569
  };
570
570
  function xt(n, t) {
571
571
  n.each(function() {
572
- var e = q(this), s = e.text().split(/(\s+|<br>)/).reverse(), i, o = [], l = 1.1, p = e.attr("y"), g = parseFloat(e.attr("dy")), d = e.text(null).append("tspan").attr("x", 0).attr("y", p).attr("dy", g + "em");
572
+ var e = Z(this), s = e.text().split(/(\s+|<br>)/).reverse(), i, o = [], l = 1.1, p = e.attr("y"), g = parseFloat(e.attr("dy")), d = e.text(null).append("tspan").attr("x", 0).attr("y", p).attr("dy", g + "em");
573
573
  for (let f = 0; f < s.length; f++)
574
574
  i = s[s.length - 1 - f], o.push(i), d.text(o.join(" ").trim()), (d.node().getComputedTextLength() > t || i === "<br>") && (o.pop(), d.text(o.join(" ").trim()), i === "<br>" ? o = [""] : o = [i], d = e.append("tspan").attr("x", 0).attr("y", p).attr("dy", l + "em").text(i));
575
575
  });
@@ -591,7 +591,7 @@ const Ft = function(n, t, e, s) {
591
591
  `M0 ${t.height - 5} v${-t.height + 2 * 5} q0,-5 5,-5 h${t.width - 2 * 5} q5,0 5,5 v${t.height - 5} H0 Z`
592
592
  ), n.append("line").attr("class", "node-line-" + e).attr("x1", 0).attr("y1", t.height).attr("x2", t.width).attr("y2", t.height);
593
593
  }, R = {
594
- drawRect: Z,
594
+ drawRect: U,
595
595
  drawCircle: Pt,
596
596
  drawSection: Ct,
597
597
  drawText: ft,
@@ -613,8 +613,8 @@ const Ft = function(n, t, e, s) {
613
613
  `), I.debug("timeline", s.db);
614
614
  const l = i.securityLevel;
615
615
  let p;
616
- l === "sandbox" && (p = q("#i" + t));
617
- const d = (l === "sandbox" ? q(p.nodes()[0].contentDocument.body) : q("body")).select("#" + t);
616
+ l === "sandbox" && (p = Z("#i" + t));
617
+ const d = (l === "sandbox" ? Z(p.nodes()[0].contentDocument.body) : Z("body")).select("#" + t);
618
618
  d.append("g");
619
619
  const f = s.db.getTasks(), v = s.db.getCommonDb().getDiagramTitle();
620
620
  I.debug("task", f), R.initGraphics(d);
@@ -721,7 +721,7 @@ const Ft = function(n, t, e, s) {
721
721
  if (I.debug("taskHeight after draw", E), b.attr("transform", `translate(${s}, ${i})`), o = Math.max(o, E), v.events) {
722
722
  const k = n.append("g").attr("class", "lineWrapper");
723
723
  let r = o;
724
- i += 100, r = r + qt(n, v.events, e, s, i, l), i -= 100, k.append("line").attr("x1", s + 190 / 2).attr("y1", i + o).attr("x2", s + 190 / 2).attr(
724
+ i += 100, r = r + Zt(n, v.events, e, s, i, l), i -= 100, k.append("line").attr("x1", s + 190 / 2).attr("y1", i + o).attr("x2", s + 190 / 2).attr(
725
725
  "y2",
726
726
  i + o + (f ? o : d) + g + 120
727
727
  ).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", "url(#arrowhead)").attr("stroke-dasharray", "5,5");
@@ -729,7 +729,7 @@ const Ft = function(n, t, e, s) {
729
729
  s = s + 200, f && !rt().timeline.disableMulticolor && e++;
730
730
  }
731
731
  i = i - 10;
732
- }, qt = function(n, t, e, s, i, o) {
732
+ }, Zt = function(n, t, e, s, i, o) {
733
733
  let l = 0;
734
734
  const p = i;
735
735
  i = i + 100;
@@ -747,10 +747,10 @@ const Ft = function(n, t, e, s) {
747
747
  l = l + _, f.attr("transform", `translate(${s}, ${i})`), i = i + 10 + _;
748
748
  }
749
749
  return i = p, l;
750
- }, Ut = {
750
+ }, qt = {
751
751
  setConf: jt,
752
752
  draw: Gt
753
- }, Zt = (n) => {
753
+ }, Ut = (n) => {
754
754
  let t = "";
755
755
  for (let e = 0; e < n.THEME_COLOR_LIMIT; e++)
756
756
  n["lineColor" + e] = n["lineColor" + e] || n["cScaleInv" + e], It(n["lineColor" + e]) ? n["lineColor" + e] = Et(n["lineColor" + e], 20) : n["lineColor" + e] = Tt(n["lineColor" + e], 20);
@@ -795,7 +795,7 @@ const Ft = function(n, t, e, s) {
795
795
  .edge {
796
796
  stroke-width: 3;
797
797
  }
798
- ${Zt(n)}
798
+ ${Ut(n)}
799
799
  .section-root rect, .section-root path, .section-root circle {
800
800
  fill: ${n.git0};
801
801
  }
@@ -816,7 +816,7 @@ const Ft = function(n, t, e, s) {
816
816
  }
817
817
  `, Kt = Jt, Dt = {
818
818
  db: Mt,
819
- renderer: Ut,
819
+ renderer: qt,
820
820
  parser: $t,
821
821
  styles: Kt
822
822
  };
@@ -53,34 +53,11 @@ interface ChatbotUrls {
53
53
  proceedPath?: string;
54
54
  frontendUrl?: string;
55
55
  followupPath?: string;
56
- entityDetectionUrl?: string;
57
56
  }
58
57
  interface Datamate {
59
58
  id: string;
60
59
  label: string;
61
60
  }
62
- declare enum EntityType {
63
- SNOWFLAKE_ACCOUNT = "snowflake_account",
64
- SNOWFLAKE_WAREHOUSE = "snowflake_warehouse",
65
- SNOWFLAKE_DATABASE = "snowflake_database",
66
- SNOWFLAKE_TABLE = "snowflake_table",
67
- SNOWFLAKE_USER = "snowflake_user",
68
- SNOWFLAKE_ROLE = "snowflake_role",
69
- UNKNOWN = "unknown"
70
- }
71
- interface DetectedEntity {
72
- name: string;
73
- types_found: EntityType[];
74
- selected_type: EntityType;
75
- }
76
- interface EntityDetectionRequest {
77
- text: string;
78
- detected_entities?: string[];
79
- }
80
- interface EntityDetectionResponse {
81
- entities: Pick<DetectedEntity, "name" | "types_found">[];
82
- original_text: string;
83
- }
84
61
  interface Mode {
85
62
  value: string;
86
63
  label: string;
@@ -589,4 +566,4 @@ interface Citation {
589
566
  taskLabel: TaskLabels;
590
567
  }
591
568
 
592
- export { type Artifact as A, type EntityDetectionResponse as B, type CoachAiResponse as C, type DetectedEntity as D, EntityType as E, type Feedback as F, type Mode as G, type InteractionType as H, type InteractionRequest as I, type InteractionChoice as J, todoItemSchema as K, type Learning as L, type MessageAttachment as M, type ToolUsageData as N, type ProgressUpdate as O, PersonalizationScope as P, type FinalResponseData as Q, agentStreamResponseSchema as R, 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 Datamate as y, type EntityDetectionRequest as z };
569
+ 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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altimateai/ui-components",
3
- "version": "0.0.51-beta.1",
3
+ "version": "0.0.52",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/AltimateAI/altimate-components.git"