@elevasis/ui 2.67.0 → 2.69.0
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/api/index.d.ts +1 -1
- package/dist/api/index.js +3 -3
- package/dist/app/index.d.ts +575 -370
- package/dist/app/index.js +17 -23
- package/dist/auth/index.css +149 -149
- package/dist/auth/index.d.ts +5 -0
- package/dist/auth/index.js +11 -13
- package/dist/charts/index.css +208 -208
- package/dist/charts/index.js +11 -13
- package/dist/{chunk-M535KHLW.js → chunk-26BTE3Z4.js} +1 -1
- package/dist/chunk-3KMDHCAR.js +52 -0
- package/dist/chunk-3MEXPLWT.js +265 -0
- package/dist/chunk-4JHLS234.js +39 -0
- package/dist/chunk-6PZFOHJK.js +1764 -0
- package/dist/chunk-7WJEPTE7.js +194 -0
- package/dist/chunk-AH52XQB7.js +1 -0
- package/dist/{chunk-UFTM5SZZ.js → chunk-AKANHRQ5.js} +9 -3
- package/dist/chunk-BZZCNLT6.js +12 -0
- package/dist/chunk-C75XWBYZ.js +383 -0
- package/dist/chunk-DLR4SDZW.js +51 -0
- package/dist/{chunk-4OEVLV66.js → chunk-FLECOYUS.js} +113 -148
- package/dist/chunk-IRV6KJPV.js +425 -0
- package/dist/chunk-IT7GTJCB.js +10 -0
- package/dist/chunk-LGKLC5MG.js +44 -0
- package/dist/chunk-MFLM7BVC.js +85 -0
- package/dist/chunk-MRVGQLWN.js +1595 -0
- package/dist/{chunk-4DV4ECMG.js → chunk-N7U24M2J.js} +4 -0
- package/dist/{chunk-I7BZVVVU.js → chunk-NM4A63KJ.js} +104 -415
- package/dist/chunk-NU3NBXHP.js +1194 -0
- package/dist/chunk-PDHTXPSF.js +12 -0
- package/dist/chunk-RW64UJWT.js +1934 -0
- package/dist/{chunk-JFBZ6XDW.js → chunk-SNZDFCOQ.js} +3 -49
- package/dist/chunk-TUMSNGTX.js +35 -0
- package/dist/chunk-UD657ICS.js +589 -0
- package/dist/{chunk-XNW3O6QW.js → chunk-VDX6DL7Z.js} +1 -1
- package/dist/chunk-WXHAHKKI.js +16411 -0
- package/dist/chunk-XAZR3T6Y.js +2162 -0
- package/dist/chunk-XQ3ILKYN.js +37 -0
- package/dist/chunk-YCRINA2D.js +67 -0
- package/dist/chunk-YGCMMOY4.js +1484 -0
- package/dist/chunk-YNRYIXUT.js +10945 -0
- package/dist/chunk-ZD6LM53O.js +4528 -0
- package/dist/chunk-ZPTEGGKU.js +631 -0
- package/dist/components/chat/index.js +2 -1
- package/dist/components/index.css +208 -208
- package/dist/components/index.d.ts +1634 -264
- package/dist/components/index.js +2774 -14
- package/dist/components/navigation/index.css +149 -149
- package/dist/components/navigation/index.js +12 -13
- package/dist/features/auth/index.css +149 -149
- package/dist/features/auth/index.d.ts +457 -167
- package/dist/features/auth/index.js +13 -14
- package/dist/features/clients/index.css +208 -208
- package/dist/features/clients/index.d.ts +39 -1
- package/dist/features/clients/index.js +16 -13
- package/dist/features/content/index.d.ts +1788 -0
- package/dist/features/content/index.js +2180 -0
- package/dist/features/crm/index.d.ts +1802 -231
- package/dist/features/crm/index.js +16 -13
- package/dist/features/dashboard/index.d.ts +1 -8
- package/dist/features/dashboard/index.js +17 -13
- package/dist/features/delivery/index.d.ts +457 -167
- package/dist/features/delivery/index.js +16 -13
- package/dist/features/knowledge/index.css +149 -149
- package/dist/features/knowledge/index.js +11 -13
- package/dist/features/lead-gen/index.d.ts +53 -104
- package/dist/features/lead-gen/index.js +17 -13
- package/dist/features/monitoring/index.js +16 -13
- package/dist/features/monitoring/requests/index.js +15 -20
- package/dist/features/operations/index.d.ts +1 -86
- package/dist/features/operations/index.js +22 -12
- package/dist/features/public-agent-chat/index.js +2 -1
- package/dist/features/seo/index.js +2 -1
- package/dist/features/settings/index.d.ts +457 -167
- package/dist/features/settings/index.js +15 -13
- package/dist/hooks/access/index.css +149 -149
- package/dist/hooks/access/index.d.ts +5 -0
- package/dist/hooks/access/index.js +11 -13
- package/dist/hooks/delivery/index.d.ts +457 -167
- package/dist/hooks/delivery/index.js +2 -23
- package/dist/hooks/index.d.ts +2203 -244
- package/dist/hooks/index.js +11 -13
- package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +1 -8
- package/dist/hooks/published.d.ts +2203 -244
- package/dist/hooks/published.js +11 -13
- package/dist/initialization/index.d.ts +465 -169
- package/dist/knowledge/index.css +149 -149
- package/dist/knowledge/index.d.ts +5 -90
- package/dist/knowledge/index.js +3215 -3203
- package/dist/{knowledge-search-index-6EZNBNSR.js → knowledge-search-index-LP2WVSQX.js} +689 -695
- package/dist/layout/index.css +149 -149
- package/dist/layout/index.js +15 -13
- package/dist/organization/index.d.ts +10 -4
- package/dist/organization/index.js +1 -21
- package/dist/profile/index.d.ts +457 -167
- package/dist/provider/index.d.ts +576 -372
- package/dist/provider/index.js +11 -13
- package/dist/provider/published.css +149 -149
- package/dist/provider/published.d.ts +576 -372
- package/dist/provider/published.js +11 -13
- package/dist/supabase/index.d.ts +906 -347
- package/dist/test-utils/index.d.ts +15 -2
- package/dist/test-utils/index.js +41 -12
- package/dist/test-utils/setup-integration.js +1 -1
- package/dist/test-utils/setup.js +1 -1
- package/dist/theme/index.js +3 -2
- package/dist/theme/presets/index.js +1 -1
- package/dist/typeform/index.js +2049 -1
- package/dist/types/index.d.ts +477 -177
- package/dist/utils/index.d.ts +1 -8
- package/dist/utils/index.js +1 -1
- package/dist/vite/index.js +2 -2
- package/dist/vite-plugin-knowledge/index.js +1 -1
- package/package.json +7 -3
- package/src/features/README.md +28 -28
- package/dist/chunk-5TERYXOO.js +0 -51390
- package/dist/chunk-AUDNF2Q7.js +0 -2050
- package/dist/index.d.ts +0 -17888
- package/dist/index.js +0 -30
- package/dist/{chunk-GMXGDO3I.js → chunk-MISHPEJX.js} +1 -1
- package/dist/{chunk-RBGVNPA6.js → chunk-XQBURFKM.js} +0 -0
- package/dist/{index.css → features/content/index.css} +149 -149
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { useAppearance } from './chunk-WXHAHKKI.js';
|
|
2
|
+
import { topbarHeight } from './chunk-MISHPEJX.js';
|
|
3
|
+
import { Stack, Title, Button } from '@mantine/core';
|
|
4
|
+
import { IconAlertCircle } from '@tabler/icons-react';
|
|
5
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
var standardMdSpacing = 16;
|
|
8
|
+
var topAndBottomSpacing = standardMdSpacing * 2;
|
|
9
|
+
var AppShellCenteredContainer = ({ children }) => {
|
|
10
|
+
return /* @__PURE__ */ jsx(
|
|
11
|
+
"div",
|
|
12
|
+
{
|
|
13
|
+
style: {
|
|
14
|
+
display: "flex",
|
|
15
|
+
alignItems: "center",
|
|
16
|
+
justifyContent: "center",
|
|
17
|
+
margin: "auto auto",
|
|
18
|
+
height: `calc(100vh - ${topbarHeight + topAndBottomSpacing}px)`,
|
|
19
|
+
textAlign: "center"
|
|
20
|
+
},
|
|
21
|
+
children
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
};
|
|
25
|
+
var AppShellLoader = () => {
|
|
26
|
+
const { loader } = useAppearance();
|
|
27
|
+
return /* @__PURE__ */ jsx(AppShellCenteredContainer, { children: loader });
|
|
28
|
+
};
|
|
29
|
+
var AppShellError = ({ message, retry }) => {
|
|
30
|
+
return /* @__PURE__ */ jsx(AppShellCenteredContainer, { children: /* @__PURE__ */ jsxs(Stack, { align: "center", gap: "md", children: [
|
|
31
|
+
/* @__PURE__ */ jsx(IconAlertCircle, { size: 48, color: "var(--color-error)" }),
|
|
32
|
+
/* @__PURE__ */ jsx(Title, { order: 3, c: "dimmed", children: message }),
|
|
33
|
+
retry && /* @__PURE__ */ jsx(Button, { onClick: retry, children: "Retry" })
|
|
34
|
+
] }) });
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export { AppShellCenteredContainer, AppShellError, AppShellLoader };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { useCyberColors, useResourcesHealth, EmptyState, CyberLegendItem, CyberAreaChart } from './chunk-WXHAHKKI.js';
|
|
2
|
+
import { CardHeader } from './chunk-62GVNH5U.js';
|
|
3
|
+
import { getTimeRangeDates, formatBucketTime } from './chunk-Y6I3IC45.js';
|
|
4
|
+
import { Paper, Center, Loader, Group } from '@mantine/core';
|
|
5
|
+
import { IconActivity, IconChartBar } from '@tabler/icons-react';
|
|
6
|
+
import { useMemo } from 'react';
|
|
7
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
8
|
+
|
|
9
|
+
function ResourceHealthPanel({ resourceId, resourceType, timeRange }) {
|
|
10
|
+
const colors = useCyberColors();
|
|
11
|
+
const { startDate, endDate } = useMemo(() => getTimeRangeDates(timeRange), [timeRange]);
|
|
12
|
+
const granularity = ["1h", "24h"].includes(timeRange) ? "hour" : "day";
|
|
13
|
+
const { data, isLoading } = useResourcesHealth({
|
|
14
|
+
resources: [{ entityType: resourceType, entityId: resourceId }],
|
|
15
|
+
startDate,
|
|
16
|
+
endDate,
|
|
17
|
+
granularity
|
|
18
|
+
});
|
|
19
|
+
const resourceHealth = data?.resources?.[0];
|
|
20
|
+
const chartData = useMemo(() => {
|
|
21
|
+
if (!resourceHealth?.trendData) return [];
|
|
22
|
+
return resourceHealth.trendData.map((point) => ({
|
|
23
|
+
time: point.time,
|
|
24
|
+
Success: (point.success || 0) - (point.warning || 0),
|
|
25
|
+
Warning: point.warning || 0,
|
|
26
|
+
Failed: point.failure || 0
|
|
27
|
+
}));
|
|
28
|
+
}, [resourceHealth?.trendData]);
|
|
29
|
+
const xTickFormatter = useMemo(() => (value) => formatBucketTime(value, granularity), [granularity]);
|
|
30
|
+
if (isLoading) {
|
|
31
|
+
return /* @__PURE__ */ jsx(Paper, { withBorder: true, children: /* @__PURE__ */ jsx(Center, { p: "xl", children: /* @__PURE__ */ jsx(Loader, {}) }) });
|
|
32
|
+
}
|
|
33
|
+
const summary = resourceHealth?.summary;
|
|
34
|
+
return /* @__PURE__ */ jsxs(Paper, { withBorder: true, children: [
|
|
35
|
+
/* @__PURE__ */ jsx(
|
|
36
|
+
CardHeader,
|
|
37
|
+
{
|
|
38
|
+
icon: /* @__PURE__ */ jsx(IconActivity, { size: 18 }),
|
|
39
|
+
title: "Execution Health",
|
|
40
|
+
subtitle: `${summary?.total || 0} executions, ${summary?.successRate?.toFixed(1) || 0}% success rate`
|
|
41
|
+
}
|
|
42
|
+
),
|
|
43
|
+
chartData.length === 0 ? /* @__PURE__ */ jsx(EmptyState, { icon: IconChartBar, title: "No execution data for this time range" }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
44
|
+
/* @__PURE__ */ jsxs(Group, { gap: "lg", justify: "center", mb: "xs", h: 24, align: "center", children: [
|
|
45
|
+
/* @__PURE__ */ jsx(CyberLegendItem, { color: colors.green, label: "Success" }),
|
|
46
|
+
/* @__PURE__ */ jsx(CyberLegendItem, { color: colors.yellow, label: "Warning" }),
|
|
47
|
+
/* @__PURE__ */ jsx(CyberLegendItem, { color: colors.red, label: "Failed" })
|
|
48
|
+
] }),
|
|
49
|
+
/* @__PURE__ */ jsx(
|
|
50
|
+
CyberAreaChart,
|
|
51
|
+
{
|
|
52
|
+
data: chartData,
|
|
53
|
+
series: [
|
|
54
|
+
{ dataKey: "Success", color: "green", name: "Success" },
|
|
55
|
+
{ dataKey: "Warning", color: "yellow", name: "Warning" },
|
|
56
|
+
{ dataKey: "Failed", color: "red", name: "Failed" }
|
|
57
|
+
],
|
|
58
|
+
height: 200,
|
|
59
|
+
yDomain: [0, "auto"],
|
|
60
|
+
xTickFormatter
|
|
61
|
+
}
|
|
62
|
+
)
|
|
63
|
+
] })
|
|
64
|
+
] });
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export { ResourceHealthPanel };
|