@elevasis/ui 1.20.1 → 1.22.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/charts/index.js +3 -2
- package/dist/chunk-3KMDHCAR.js +52 -0
- package/dist/{chunk-4SY4EQSK.js → chunk-5266RV46.js} +3 -3
- package/dist/{chunk-UMFPUM7Q.js → chunk-7TLPKXC2.js} +12 -12
- package/dist/{chunk-OFAXUZPZ.js → chunk-AJPFSMEH.js} +528 -336
- package/dist/chunk-AWT255UH.js +255 -0
- package/dist/{chunk-EMN755L5.js → chunk-CTF6FS2M.js} +10 -216
- package/dist/{chunk-C7AD6N23.js → chunk-DLI3F5IV.js} +364 -364
- package/dist/{chunk-AQ5MQDSS.js → chunk-EDAYKRPJ.js} +404 -2
- package/dist/{chunk-XOTN3X3Z.js → chunk-FATKFO7X.js} +3 -54
- package/dist/{chunk-JZEXFQ6N.js → chunk-HOYZWSNV.js} +91 -80
- package/dist/{chunk-AWMZCYKH.js → chunk-IAZT3VO6.js} +158 -82
- package/dist/{chunk-ERVB3QJQ.js → chunk-N5SDJP44.js} +1 -1
- package/dist/{chunk-3DIU726S.js → chunk-NVSKJG3L.js} +25 -4
- package/dist/{chunk-VLTVZXP6.js → chunk-QZS5FOIR.js} +2 -2
- package/dist/chunk-ROSMICXG.js +668 -0
- package/dist/{chunk-JIABC3AE.js → chunk-WAEKXBP3.js} +516 -266
- package/dist/{chunk-COTI2QPO.js → chunk-ZHJGTOXP.js} +4 -3
- package/dist/components/chat/index.d.ts +202 -0
- package/dist/components/chat/index.js +2 -0
- package/dist/components/index.css +0 -3
- package/dist/components/index.d.ts +37 -37
- package/dist/components/index.js +2652 -2902
- package/dist/features/auth/index.css +0 -3
- package/dist/features/dashboard/index.css +0 -3
- package/dist/features/dashboard/index.js +9 -9
- package/dist/features/monitoring/index.css +0 -3
- package/dist/features/monitoring/index.js +10 -10
- package/dist/features/operations/index.css +0 -3
- package/dist/features/operations/index.d.ts +245 -10
- package/dist/features/operations/index.js +1115 -170
- package/dist/features/settings/index.css +0 -3
- package/dist/features/settings/index.js +9 -9
- package/dist/hooks/index.css +68 -3
- package/dist/hooks/index.d.ts +1165 -4
- package/dist/hooks/index.js +5 -6
- package/dist/hooks/published.css +68 -3
- package/dist/hooks/published.d.ts +1165 -4
- package/dist/hooks/published.js +4 -5
- package/dist/index.css +68 -3
- package/dist/index.d.ts +1166 -5
- package/dist/index.js +6 -7
- package/dist/layout/index.d.ts +4 -4
- package/dist/layout/index.js +3 -4
- package/dist/provider/index.css +0 -3
- package/dist/provider/index.d.ts +1 -1
- package/dist/provider/index.js +3 -4
- package/dist/provider/published.d.ts +1 -1
- package/dist/theme/index.d.ts +1 -1
- package/dist/theme/index.js +3 -3
- package/dist/types/index.d.ts +1 -1
- package/package.json +7 -2
- package/dist/chunk-JFRG2JJE.js +0 -47
- package/dist/chunk-R3R367QY.js +0 -14
- package/dist/theme/presets/__tests__/getPreset.test.d.ts +0 -2
- package/dist/theme/presets/__tests__/getPreset.test.d.ts.map +0 -1
- package/dist/theme/presets/__tests__/getPreset.test.js +0 -92
- package/dist/theme/presets/cyber-volt.d.ts +0 -12
- package/dist/theme/presets/cyber-volt.d.ts.map +0 -1
- package/dist/theme/presets/cyber-volt.js +0 -70
- package/dist/theme/presets/regal.d.ts +0 -8
- package/dist/theme/presets/regal.d.ts.map +0 -1
- package/dist/theme/presets/regal.js +0 -69
- package/dist/theme/presets/rose-gold.d.ts +0 -12
- package/dist/theme/presets/rose-gold.d.ts.map +0 -1
- package/dist/theme/presets/rose-gold.js +0 -76
package/dist/charts/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export { ActivityTrendChart, ChartFrame, CombinedTrendChart, CostTrendChart, CyberAreaChart, CyberDonut, CyberDonutTooltip, CyberLegendItem, HeroStatsRow, getSeriesColor, useCyberColors } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { ActivityTrendChart, ChartFrame, CombinedTrendChart, CostTrendChart, CyberAreaChart, CyberDonut, CyberDonutTooltip, CyberLegendItem, HeroStatsRow, getSeriesColor, useCyberColors } from '../chunk-N5SDJP44.js';
|
|
2
|
+
import '../chunk-IAZT3VO6.js';
|
|
3
|
+
import '../chunk-3KMDHCAR.js';
|
|
3
4
|
import '../chunk-NNKKBSJN.js';
|
|
4
5
|
import '../chunk-QJ2S46NI.js';
|
|
5
6
|
import '../chunk-LXHZYSMQ.js';
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Text, Box, Code, Title } from '@mantine/core';
|
|
2
|
+
import Markdown from 'react-markdown';
|
|
3
|
+
import { Prism } from 'react-syntax-highlighter';
|
|
4
|
+
import { oneDark } from 'react-syntax-highlighter/dist/esm/styles/prism';
|
|
5
|
+
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
// src/components/display/StyledMarkdown.tsx
|
|
8
|
+
var customCodeTheme = Object.fromEntries(
|
|
9
|
+
Object.entries(oneDark).map(([key, value]) => [
|
|
10
|
+
key,
|
|
11
|
+
typeof value === "object" && value !== null ? { ...value, background: "none", backgroundColor: "none" } : value
|
|
12
|
+
])
|
|
13
|
+
);
|
|
14
|
+
var defaultComponents = {
|
|
15
|
+
h1: ({ children }) => /* @__PURE__ */ jsx(Title, { order: 3, c: "var(--color-primary)", mb: "xs", mt: "md", children }),
|
|
16
|
+
h2: ({ children }) => /* @__PURE__ */ jsx(Title, { order: 4, c: "var(--color-primary)", mb: "xs", mt: "sm", children }),
|
|
17
|
+
ul: ({ children }) => /* @__PURE__ */ jsx("ul", { style: { margin: "0.5rem 0", paddingLeft: "1.5rem" }, children }),
|
|
18
|
+
ol: ({ children }) => /* @__PURE__ */ jsx("ol", { style: { margin: "0.5rem 0", paddingLeft: "1.5rem" }, children }),
|
|
19
|
+
li: ({ children }) => /* @__PURE__ */ jsx("li", { style: { marginBottom: "0.25rem", fontSize: "var(--mantine-font-size-sm)" }, children }),
|
|
20
|
+
code: ({ className, children, ...props }) => {
|
|
21
|
+
const match = /language-(\w+)/.exec(className || "");
|
|
22
|
+
const codeString = String(children).replace(/\n$/, "");
|
|
23
|
+
if (match) {
|
|
24
|
+
return /* @__PURE__ */ jsx(
|
|
25
|
+
Prism,
|
|
26
|
+
{
|
|
27
|
+
style: customCodeTheme,
|
|
28
|
+
language: match[1],
|
|
29
|
+
PreTag: "div",
|
|
30
|
+
customStyle: {
|
|
31
|
+
margin: "0.5rem 0",
|
|
32
|
+
borderRadius: "var(--mantine-radius-default)",
|
|
33
|
+
fontSize: "0.8rem"
|
|
34
|
+
},
|
|
35
|
+
children: codeString
|
|
36
|
+
}
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
return /* @__PURE__ */ jsx(Code, { ...props, children });
|
|
40
|
+
},
|
|
41
|
+
pre: ({ children }) => /* @__PURE__ */ jsx(Fragment, { children }),
|
|
42
|
+
blockquote: ({ children }) => /* @__PURE__ */ jsx(Box, { pl: "sm", my: "xs", style: { borderLeft: "2px solid var(--color-border)" }, children }),
|
|
43
|
+
p: ({ children }) => /* @__PURE__ */ jsx(Text, { size: "sm", m: 0, children }),
|
|
44
|
+
strong: ({ children }) => /* @__PURE__ */ jsx(Text, { component: "span", fw: 700, children }),
|
|
45
|
+
em: ({ children }) => /* @__PURE__ */ jsx(Text, { component: "span", fs: "italic", children })
|
|
46
|
+
};
|
|
47
|
+
function StyledMarkdown({ children, components, className, style }) {
|
|
48
|
+
const mergedComponents = components ? { ...defaultComponents, ...components } : defaultComponents;
|
|
49
|
+
return /* @__PURE__ */ jsx("div", { className, style, children: /* @__PURE__ */ jsx(Markdown, { components: mergedComponents, children }) });
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export { StyledMarkdown };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { useCyberColors, CyberLegendItem, CyberAreaChart } from './chunk-
|
|
2
|
-
import { CardHeader, EmptyState } from './chunk-
|
|
3
|
-
import { useResourcesHealth } from './chunk-
|
|
1
|
+
import { useCyberColors, CyberLegendItem, CyberAreaChart } from './chunk-N5SDJP44.js';
|
|
2
|
+
import { CardHeader, EmptyState } from './chunk-IAZT3VO6.js';
|
|
3
|
+
import { useResourcesHealth } from './chunk-EDAYKRPJ.js';
|
|
4
4
|
import { getTimeRangeDates, formatBucketTime } from './chunk-LXHZYSMQ.js';
|
|
5
5
|
import { Paper, Center, Loader, Group } from '@mantine/core';
|
|
6
6
|
import { IconActivity, IconChartBar } from '@tabler/icons-react';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FilterBar } from './chunk-PDHTXPSF.js';
|
|
2
|
-
import { CyberAreaChart } from './chunk-
|
|
3
|
-
import { APIErrorAlert, CardHeader, StatsCardSkeleton, TrendIndicator, DetailCardSkeleton, EmptyState } from './chunk-
|
|
4
|
-
import { useResolveError, useResolveAllErrors, usePaginationState, useErrorDetails, useMarkAsRead } from './chunk-
|
|
2
|
+
import { CyberAreaChart } from './chunk-N5SDJP44.js';
|
|
3
|
+
import { APIErrorAlert, CardHeader, StatsCardSkeleton, TrendIndicator, DetailCardSkeleton, EmptyState } from './chunk-IAZT3VO6.js';
|
|
4
|
+
import { useResolveError, useResolveAllErrors, usePaginationState, useErrorDetails, useMarkAsRead } from './chunk-EDAYKRPJ.js';
|
|
5
5
|
import { formatBucketTime } from './chunk-LXHZYSMQ.js';
|
|
6
6
|
import { formatDuration } from './chunk-XA34RETF.js';
|
|
7
7
|
import { PAGE_SIZE_DEFAULT } from './chunk-IOKL7BKE.js';
|
|
@@ -1221,6 +1221,15 @@ function ErrorBreakdownTable({ startDate, endDate, onErrorClick }) {
|
|
|
1221
1221
|
totalPages(total) > 1 && /* @__PURE__ */ jsx(Group, { justify: "flex-start", children: /* @__PURE__ */ jsx(Pagination, { total: totalPages(total), value: page, onChange: setPage, size: "sm", boundaries: 1 }) })
|
|
1222
1222
|
] }) });
|
|
1223
1223
|
}
|
|
1224
|
+
function NotificationList({ notifications, isLoading, onClose, onNavigate }) {
|
|
1225
|
+
if (isLoading) {
|
|
1226
|
+
return /* @__PURE__ */ jsx(Center, { p: "xl", children: /* @__PURE__ */ jsx(Loader, { size: "sm" }) });
|
|
1227
|
+
}
|
|
1228
|
+
if (notifications.length === 0) {
|
|
1229
|
+
return /* @__PURE__ */ jsx(Center, { p: "xl", children: /* @__PURE__ */ jsx(Text, { size: "sm", c: "dimmed", children: "No notifications" }) });
|
|
1230
|
+
}
|
|
1231
|
+
return /* @__PURE__ */ jsx(Stack, { gap: 0, children: notifications.map((notification) => /* @__PURE__ */ jsx(NotificationItem, { notification, onClose, onNavigate }, notification.id)) });
|
|
1232
|
+
}
|
|
1224
1233
|
var categoryColors = {
|
|
1225
1234
|
info: "blue",
|
|
1226
1235
|
queue: "cyan",
|
|
@@ -1268,14 +1277,5 @@ function NotificationItem({ notification, onClose, onNavigate }) {
|
|
|
1268
1277
|
}
|
|
1269
1278
|
);
|
|
1270
1279
|
}
|
|
1271
|
-
function NotificationList({ notifications, isLoading, onClose, onNavigate }) {
|
|
1272
|
-
if (isLoading) {
|
|
1273
|
-
return /* @__PURE__ */ jsx(Center, { p: "xl", children: /* @__PURE__ */ jsx(Loader, { size: "sm" }) });
|
|
1274
|
-
}
|
|
1275
|
-
if (notifications.length === 0) {
|
|
1276
|
-
return /* @__PURE__ */ jsx(Center, { p: "xl", children: /* @__PURE__ */ jsx(Text, { size: "sm", c: "dimmed", children: "No notifications" }) });
|
|
1277
|
-
}
|
|
1278
|
-
return /* @__PURE__ */ jsx(Stack, { gap: 0, children: notifications.map((notification) => /* @__PURE__ */ jsx(NotificationItem, { notification, onClose, onNavigate }, notification.id)) });
|
|
1279
|
-
}
|
|
1280
1280
|
|
|
1281
1281
|
export { ActivityCard, ActivityFilters, ActivityTable, BusinessImpactCard, CostBreakdownCard, CostByModelTable, CostMetricsCard, ErrorAnalysisCard, ErrorBreakdownTable, ExecutionBreakdownTable, ExecutionHealthCard, ExecutionLogsFilters, ExecutionLogsTable, NotificationItem, NotificationList };
|