@altimateai/ui-components 0.0.54 → 0.0.56
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 +8151 -7988
- package/dist/chatbotV2/index.d.ts +14 -3
- package/dist/chatbotV2/index.js +43 -40
- package/dist/flowchart-elk-definition-170a3958.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +15 -15
- package/dist/is_dark.js +4 -4
- package/dist/main.js +1 -1
- package/dist/mindmap-definition-44684416.js +1 -1
- package/dist/shadcn/index.js +1 -1
- package/dist/timeline-definition-8e5a9bc6.js +20 -20
- package/dist/{types-699Daj8S.d.ts → types-Bg8l4_6q.d.ts} +24 -1
- package/package.json +1 -1
|
@@ -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, u as AgentStreamResponse } from '../types-
|
|
3
|
-
export { v as AssistantMeta, x as ChatbotUrls,
|
|
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-Bg8l4_6q.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-Bg8l4_6q.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,6 +135,15 @@ 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
|
+
}
|
|
138
147
|
declare const initialState: ChatState;
|
|
139
148
|
declare const createSession: _reduxjs_toolkit.ActionCreatorWithPayload<{
|
|
140
149
|
context?: Record<string, unknown>;
|
|
@@ -177,6 +186,8 @@ declare const clearContext: _reduxjs_toolkit.ActionCreatorWithPayload<{
|
|
|
177
186
|
}, "chat/clearContext">;
|
|
178
187
|
declare const updateMode: _reduxjs_toolkit.ActionCreatorWithPayload<UpdateModePayload, "chat/updateMode">;
|
|
179
188
|
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">;
|
|
180
191
|
declare const setSessions: _reduxjs_toolkit.ActionCreatorWithPayload<Record<string, ChatSession>, "chat/setSessions">;
|
|
181
192
|
declare const resetSession: _reduxjs_toolkit.ActionCreatorWithoutPayload<"chat/resetSession">;
|
|
182
193
|
|
|
@@ -277,4 +288,4 @@ declare const Citations: ({ citations, frontEndUrl, }: {
|
|
|
277
288
|
frontEndUrl: string;
|
|
278
289
|
}) => JSX.Element | null;
|
|
279
290
|
|
|
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 };
|
|
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 };
|
package/dist/chatbotV2/index.js
CHANGED
|
@@ -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,
|
|
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";
|
|
2
2
|
export {
|
|
3
3
|
a as Artifacts,
|
|
4
4
|
t as CancelGenerationButton,
|
|
@@ -8,45 +8,48 @@ export {
|
|
|
8
8
|
i as Citations,
|
|
9
9
|
d as CoachAI,
|
|
10
10
|
c as ContextPanel,
|
|
11
|
-
g as
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
g as EntityType,
|
|
12
|
+
p as FeedbackButtons,
|
|
13
|
+
u as InteractionPrompt,
|
|
14
|
+
C as LoadingIndicator,
|
|
15
|
+
S as LoadingState,
|
|
15
16
|
l as MessageItem,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
m as MessageList,
|
|
18
|
+
M as MessageMenu,
|
|
19
|
+
A as QuestionForm,
|
|
20
|
+
h as RegenerateButton,
|
|
21
|
+
T as StatusUpdates,
|
|
21
22
|
x as addAction,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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
|
|
52
55
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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";
|
|
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-Bg8l4_6q.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-Bg8l4_6q.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 { 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";
|
|
4
4
|
import { A as w, C as I, I as z } from "./redux-toolkit.modern.js";
|
|
5
|
-
import { a4 as
|
|
5
|
+
import { a4 as E } from "./Stack.js";
|
|
6
6
|
export {
|
|
7
7
|
w as ApiHelper,
|
|
8
|
-
|
|
8
|
+
M as CoachForm,
|
|
9
9
|
e as CoachFormButton,
|
|
10
10
|
I as CodeBlock,
|
|
11
11
|
T as Collapse,
|
|
12
|
-
|
|
12
|
+
P 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
|
+
d as LoadingButton,
|
|
20
|
+
f as Markdown,
|
|
21
|
+
h as MermaidDiagram,
|
|
22
|
+
k 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
|
+
E as Stack,
|
|
30
30
|
v as Table,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
D as TaskLabels,
|
|
32
|
+
b as TeamMateActionType,
|
|
33
|
+
j 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/is_dark.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const
|
|
3
|
-
const { r: a, g: t, b: o } =
|
|
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);
|
|
4
4
|
return r.lang.round(e);
|
|
5
|
-
}, c = (n) =>
|
|
5
|
+
}, c = (n) => i(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 { an as un, ao as Wn, ap as Kn, aq as Xn, ar as Zn, as as Gn, at as rt, au as Qn, av 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 { _ as ye, a1 as $e, a2 as He, a3 as nr, a4 as oe, a5 as rr, a6 as or, Z as ft, S 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 {
|
|
1
|
+
import { am as Zy, a1 as Dn, a2 as fa, a3 as Qy, a4 as Jy, a5 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: {} };
|
package/dist/shadcn/index.js
CHANGED
|
@@ -7398,7 +7398,7 @@ const Ln = h.forwardRef(({ className: e, orientation: t = "vertical", ...n }, a)
|
|
|
7398
7398
|
ref: a,
|
|
7399
7399
|
orientation: t,
|
|
7400
7400
|
className: N(
|
|
7401
|
-
"al-flex al-touch-none al-select-none al-transition-colors",
|
|
7401
|
+
"al-flex al-touch-none al-select-none al-transition-colors al-z-[10]",
|
|
7402
7402
|
t === "vertical" && "al-h-full al-w-2.5 al-border-l al-border-l-transparent al-p-[1px]",
|
|
7403
7403
|
t === "horizontal" && "al-h-2.5 al-flex-col al-border-t al-border-t-transparent al-p-[1px]",
|
|
7404
7404
|
e
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { s as
|
|
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";
|
|
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 = [],
|
|
378
|
+
const Y = [], U = [], B = [], ct = () => kt, ot = (n, t, e) => {
|
|
379
379
|
vt(globalThis, n, t, e);
|
|
380
380
|
}, lt = function() {
|
|
381
|
-
Y.length = 0,
|
|
381
|
+
Y.length = 0, U.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 = [], q = [], 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
|
|
392
|
+
return U.push(...B), U;
|
|
393
393
|
}, pt = function(n, t, e) {
|
|
394
394
|
const s = {
|
|
395
395
|
id: at++,
|
|
@@ -411,7 +411,7 @@ const Y = [], q = [], B = [], ct = () => kt, ot = (n, t, e) => {
|
|
|
411
411
|
task: n,
|
|
412
412
|
classes: []
|
|
413
413
|
};
|
|
414
|
-
|
|
414
|
+
U.push(t);
|
|
415
415
|
}, nt = function() {
|
|
416
416
|
const n = function(e) {
|
|
417
417
|
return B[e].processed;
|
|
@@ -442,7 +442,7 @@ const Y = [], q = [], 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,
|
|
445
|
+
}, Symbol.toStringTag, { value: "Module" })), Lt = 12, Z = 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 = [], q = [], 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,
|
|
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)(
|
|
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,
|
|
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)(
|
|
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
|
-
|
|
514
|
+
Z(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 =
|
|
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");
|
|
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:
|
|
594
|
+
drawRect: Z,
|
|
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 =
|
|
617
|
-
const d = (l === "sandbox" ?
|
|
616
|
+
l === "sandbox" && (p = q("#i" + t));
|
|
617
|
+
const d = (l === "sandbox" ? q(p.nodes()[0].contentDocument.body) : q("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 +
|
|
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(
|
|
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
|
-
},
|
|
732
|
+
}, qt = 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
|
-
},
|
|
750
|
+
}, Ut = {
|
|
751
751
|
setConf: jt,
|
|
752
752
|
draw: Gt
|
|
753
|
-
},
|
|
753
|
+
}, Zt = (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
|
-
${
|
|
798
|
+
${Zt(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:
|
|
819
|
+
renderer: Ut,
|
|
820
820
|
parser: $t,
|
|
821
821
|
styles: Kt
|
|
822
822
|
};
|
|
@@ -53,11 +53,34 @@ interface ChatbotUrls {
|
|
|
53
53
|
proceedPath?: string;
|
|
54
54
|
frontendUrl?: string;
|
|
55
55
|
followupPath?: string;
|
|
56
|
+
entityDetectionUrl?: string;
|
|
56
57
|
}
|
|
57
58
|
interface Datamate {
|
|
58
59
|
id: string;
|
|
59
60
|
label: string;
|
|
60
61
|
}
|
|
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
|
+
}
|
|
61
84
|
interface Mode {
|
|
62
85
|
value: string;
|
|
63
86
|
label: string;
|
|
@@ -566,4 +589,4 @@ interface Citation {
|
|
|
566
589
|
taskLabel: TaskLabels;
|
|
567
590
|
}
|
|
568
591
|
|
|
569
|
-
export { type Artifact as A, type
|
|
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 };
|