@elevasis/ui 2.29.0 → 2.31.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/{CoreAuthKitInner-QC62UHTZ.js → CoreAuthKitInner-KSEGSB67.js} +1 -1
- package/dist/api/index.js +3 -3
- package/dist/app/index.d.ts +176 -1
- package/dist/app/index.js +11 -11
- package/dist/auth/context.js +1 -1
- package/dist/auth/index.js +5 -5
- package/dist/charts/index.d.ts +2 -1
- package/dist/charts/index.js +9 -9
- package/dist/{chunk-XTVZFT7U.js → chunk-2Q2JQSQO.js} +1 -1
- package/dist/{chunk-LH4GPYDX.js → chunk-3BAPR3KA.js} +19 -3
- package/dist/{chunk-HLFFKKT3.js → chunk-3FV6HBXS.js} +17 -17
- package/dist/{chunk-WKJ47GIW.js → chunk-533DUEQY.js} +1 -1
- package/dist/{chunk-SZWXQHKO.js → chunk-542WPQU2.js} +9 -8
- package/dist/{chunk-5CW2HXQA.js → chunk-5LJAEZMA.js} +7 -28
- package/dist/{chunk-V3HUIZJX.js → chunk-6IXOKUBC.js} +1 -1
- package/dist/{chunk-VKMNWHTL.js → chunk-6YT4IKJ7.js} +3 -3
- package/dist/{chunk-CEHUFNAL.js → chunk-7HMCB26R.js} +12 -12
- package/dist/chunk-7KC4P3AU.js +357 -0
- package/dist/{chunk-OWESKPTJ.js → chunk-CQZ3DNQY.js} +30 -11
- package/dist/{chunk-ROSMICXG.js → chunk-CXY7FMUM.js} +35 -20
- package/dist/{chunk-I2KLQ2HA.js → chunk-DZTG5IAC.js} +7 -1
- package/dist/{chunk-JCGD4GM6.js → chunk-GRDLB6LM.js} +1 -0
- package/dist/{chunk-FGDUK74A.js → chunk-HQGF4ATG.js} +10 -56
- package/dist/{chunk-HOIT677G.js → chunk-HUJCU55S.js} +1 -1
- package/dist/{chunk-OIMPGKDB.js → chunk-HYNYEBHM.js} +4 -4
- package/dist/{chunk-GESXCQWY.js → chunk-JA5ECJJB.js} +1 -1
- package/dist/{chunk-KU7ZDWQ7.js → chunk-JBWJ6WHZ.js} +1 -1
- package/dist/{chunk-HNFQCOD2.js → chunk-JKSUN5GN.js} +1107 -370
- package/dist/{chunk-5WWZXCS5.js → chunk-KJ3QUBNU.js} +9 -2
- package/dist/{chunk-OHGNCWJP.js → chunk-L2NVFLXU.js} +3 -3
- package/dist/{chunk-6WXDE5LZ.js → chunk-L3BVJWML.js} +1 -1
- package/dist/{chunk-3DUOPXOJ.js → chunk-MVFCLZSK.js} +691 -222
- package/dist/{chunk-A7R2URMV.js → chunk-ND42LPY4.js} +44 -10
- package/dist/{chunk-CLUP5H3C.js → chunk-O2QOPJI5.js} +360 -126
- package/dist/{chunk-VMJVQAFZ.js → chunk-OAVTMITG.js} +1 -1
- package/dist/{chunk-X2SUMO3P.js → chunk-P55BJZZW.js} +2 -1
- package/dist/{chunk-QNL7UI5G.js → chunk-Q6OYNEGR.js} +6 -6
- package/dist/{chunk-Y3YJKKEB.js → chunk-QDEETKYT.js} +5 -2
- package/dist/{chunk-XBMCDGHA.js → chunk-QHEWXU7I.js} +1 -1
- package/dist/chunk-R2XR4FCV.js +48 -0
- package/dist/chunk-R66W5UDG.js +26 -0
- package/dist/{chunk-65RQE3XF.js → chunk-SHQXMW4F.js} +1051 -380
- package/dist/{chunk-AK5E6ILJ.js → chunk-T3IPHEYJ.js} +1893 -305
- package/dist/{chunk-7E3FUTND.js → chunk-TOIXUWR6.js} +1 -1
- package/dist/{chunk-FFDAE2QI.js → chunk-TVRQ6AQI.js} +172 -26
- package/dist/{chunk-CN2HC4D4.js → chunk-UFTM5SZZ.js} +2 -2
- package/dist/{chunk-WFTNY755.js → chunk-VKIZUUPM.js} +1 -1
- package/dist/{chunk-KVJ3LFH2.js → chunk-VNFR57DF.js} +4 -24
- package/dist/{chunk-S66IQSSR.js → chunk-WF227UBV.js} +1 -1
- package/dist/{chunk-6NHCE7JM.js → chunk-Y4FWCG7Y.js} +159 -314
- package/dist/components/chat/index.d.ts +2 -1
- package/dist/components/chat/index.js +2 -2
- package/dist/components/index.d.ts +205 -11
- package/dist/components/index.js +51 -48
- package/dist/components/navigation/index.js +9 -9
- package/dist/execution/index.d.ts +2 -1
- package/dist/execution/index.js +1 -1
- package/dist/features/auth/index.d.ts +121 -0
- package/dist/features/auth/index.js +6 -6
- package/dist/features/clients/index.css +611 -0
- package/dist/features/clients/index.d.ts +86 -0
- package/dist/features/clients/index.js +719 -0
- package/dist/features/crm/index.d.ts +148 -2
- package/dist/features/crm/index.js +27 -25
- package/dist/features/dashboard/index.d.ts +36 -1
- package/dist/features/dashboard/index.js +23 -23
- package/dist/features/delivery/index.d.ts +121 -0
- package/dist/features/delivery/index.js +27 -25
- package/dist/features/knowledge/index.js +52 -29
- package/dist/features/lead-gen/index.d.ts +116 -12
- package/dist/features/lead-gen/index.js +28 -26
- package/dist/features/monitoring/index.js +26 -25
- package/dist/features/monitoring/requests/index.js +23 -22
- package/dist/features/operations/index.d.ts +38 -2
- package/dist/features/operations/index.js +32 -31
- package/dist/features/seo/index.js +1 -1
- package/dist/features/settings/index.d.ts +121 -0
- package/dist/features/settings/index.js +25 -24
- package/dist/graph/index.js +1 -1
- package/dist/hooks/delivery/index.d.ts +140 -0
- package/dist/hooks/delivery/index.js +4 -4
- package/dist/hooks/index.d.ts +844 -21
- package/dist/hooks/index.js +21 -21
- package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +82 -1
- package/dist/hooks/operations/command-view/utils/transformCommandViewData.js +1 -1
- package/dist/hooks/published.d.ts +844 -21
- package/dist/hooks/published.js +21 -21
- package/dist/index.d.ts +1056 -27
- package/dist/index.js +22 -22
- package/dist/initialization/index.d.ts +121 -0
- package/dist/initialization/index.js +5 -5
- package/dist/knowledge/index.d.ts +151 -1
- package/dist/knowledge/index.js +1692 -1039
- package/dist/layout/index.d.ts +6 -0
- package/dist/layout/index.js +4 -4
- package/dist/organization/index.js +5 -5
- package/dist/profile/index.d.ts +121 -0
- package/dist/profile/index.js +3 -3
- package/dist/provider/ElevasisServiceContext.d.ts +11 -5
- package/dist/provider/ElevasisServiceContext.js +2 -2
- package/dist/provider/index.d.ts +337 -7
- package/dist/provider/index.js +18 -18
- package/dist/provider/published.d.ts +337 -7
- package/dist/provider/published.js +14 -14
- package/dist/router/context.js +1 -1
- package/dist/router/index.js +1 -1
- package/dist/sse/index.js +1 -1
- package/dist/supabase/index.d.ts +232 -0
- package/dist/supabase/index.js +1 -1
- package/dist/test-utils/index.d.ts +3 -0
- package/dist/test-utils/index.js +31 -7
- package/dist/test-utils/setup-integration.js +1 -1
- package/dist/test-utils/setup.js +2 -2
- package/dist/theme/index.js +4 -4
- package/dist/theme/presets/index.js +2 -2
- package/dist/typeform/index.js +1 -1
- package/dist/typeform/schemas.js +1 -1
- package/dist/types/index.d.ts +204 -1
- package/dist/utils/index.d.ts +36 -1
- package/dist/utils/index.js +2 -2
- package/dist/vite/index.js +3 -3
- package/dist/vite-plugin-knowledge/index.js +2 -2
- package/dist/zustand/index.js +1 -1
- package/package.json +14 -5
- /package/dist/{chunk-HXZQWMKE.js → chunk-XQHZBA65.js} +0 -0
|
@@ -381,7 +381,8 @@ var isOverviewLink = (label, link) => {
|
|
|
381
381
|
var SubLinkItem = ({ linkItem, currentPath }) => {
|
|
382
382
|
const { Link } = useRouterContext();
|
|
383
383
|
const isKnowledgeBaseActive = linkItem.link === "/knowledge" && currentPath.startsWith("/knowledge") && !currentPath.startsWith("/knowledge/command-view");
|
|
384
|
-
const
|
|
384
|
+
const matchesExtraPath = linkItem.activeMatchPaths?.some((path) => isPathActive(path, currentPath)) ?? false;
|
|
385
|
+
const isActive = isKnowledgeBaseActive ? true : linkItem.exact || isOverviewLink(linkItem.label, linkItem.link) ? currentPath === linkItem.link || matchesExtraPath : isPathActive(linkItem.link, currentPath) || matchesExtraPath;
|
|
385
386
|
const activeColor2 = "var(--color-primary)";
|
|
386
387
|
const activeColorBg = "color-mix(in srgb, var(--color-primary) 10%, transparent)";
|
|
387
388
|
const defaultColor = "var(--color-text-subtle)";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { ZodFormRenderer } from './chunk-3MEXPLWT.js';
|
|
2
2
|
import { ResourceHealthChart } from './chunk-LGKLC5MG.js';
|
|
3
|
-
import { HeroStatsRow } from './chunk-
|
|
3
|
+
import { HeroStatsRow } from './chunk-542WPQU2.js';
|
|
4
4
|
import { useCyberColors } from './chunk-CW3UNAF2.js';
|
|
5
5
|
import { AppShellCenteredContainer, AppShellLoader } from './chunk-RYTEQBAO.js';
|
|
6
6
|
import { Graph_module_css_default, useDirectedChainHighlighting, useNodeSelection, useFitViewTrigger } from './chunk-22UVE3RA.js';
|
|
7
7
|
import { STATUS_COLORS, getStatusIcon, formatDuration, getStatusColors, AGENT_CONSTANTS, shouldAnimateEdge, TIMELINE_CONSTANTS, calculateBarPosition, CONTAINER_CONSTANTS, useExecutionPath, useUnifiedWorkflowLayout, WORKFLOW_CONSTANTS, useReactFlowAgent } from './chunk-E4WQGJNS.js';
|
|
8
|
-
import { useExecuteResource, useDashboardMetrics, useResources, useTimeRangeDates, useUnresolvedErrors, useRecentExecutionsByResource, useCommandQueue, useScheduledTasks, useResourcesHealth } from './chunk-
|
|
9
|
-
import { glassBase } from './chunk-
|
|
10
|
-
import { GlowDot, CardHeader, EmptyState, PageTitleCaption, TabCountBadge } from './chunk-
|
|
11
|
-
import { formatTimeAgo, getTimeRangeDates, formatRelativeTime } from './chunk-
|
|
8
|
+
import { useExecuteResource, useDashboardMetrics, useResources, useTimeRangeDates, useUnresolvedErrors, useRecentExecutionsByResource, useCommandQueue, useScheduledTasks, useResourcesHealth } from './chunk-JKSUN5GN.js';
|
|
9
|
+
import { glassBase } from './chunk-3BAPR3KA.js';
|
|
10
|
+
import { GlowDot, CardHeader, EmptyState, PageTitleCaption, TabCountBadge } from './chunk-L3BVJWML.js';
|
|
11
|
+
import { formatTimeAgo, getTimeRangeDates, formatRelativeTime } from './chunk-XQHZBA65.js';
|
|
12
12
|
import { ResourceStatusColors } from './chunk-KRWALB24.js';
|
|
13
|
-
import { useInitialization } from './chunk-
|
|
13
|
+
import { useInitialization } from './chunk-533DUEQY.js';
|
|
14
14
|
import { memo, useMemo, useEffect, useState, useCallback, Fragment } from 'react';
|
|
15
15
|
import { Paper, Stack, Text, Group, Badge, Box, useComputedColorScheme, Card, ActionIcon, Loader, SegmentedControl, Button, Modal, Center, SimpleGrid, Title, Tabs, Grid, ThemeIcon } from '@mantine/core';
|
|
16
16
|
import { jsxs, jsx, Fragment as Fragment$1 } from 'react/jsx-runtime';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useElevasisFeatures } from './chunk-6IXOKUBC.js';
|
|
2
|
+
import { FeatureUnavailableState } from './chunk-L3BVJWML.js';
|
|
3
3
|
import { SubshellContainer, SubshellSidebar, SubshellRightSideContainer } from './chunk-TKAYX2SP.js';
|
|
4
4
|
import { useRouterContext } from './chunk-Q7DJKLEN.js';
|
|
5
5
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
@@ -17,6 +17,9 @@ function FeatureShell({ children }) {
|
|
|
17
17
|
}
|
|
18
18
|
const SidebarComponent = routeMatch.feature.sidebar;
|
|
19
19
|
const sidebarWidth = typeof routeMatch.feature.sidebarWidth === "function" ? routeMatch.feature.sidebarWidth({ currentPath }) : routeMatch.feature.sidebarWidth ?? defaultFeatureSidebarWidth;
|
|
20
|
+
if (sidebarWidth === 0) {
|
|
21
|
+
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
22
|
+
}
|
|
20
23
|
return /* @__PURE__ */ jsxs(SubshellContainer, { children: [
|
|
21
24
|
/* @__PURE__ */ jsx(SubshellSidebar, { width: sidebarWidth, children: /* @__PURE__ */ jsx(SidebarComponent, {}) }),
|
|
22
25
|
/* @__PURE__ */ jsx(SubshellRightSideContainer, { children })
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// src/features/delivery/_shared.ts
|
|
2
|
+
var projectStatusColors = {
|
|
3
|
+
active: "blue",
|
|
4
|
+
on_track: "green",
|
|
5
|
+
at_risk: "yellow",
|
|
6
|
+
blocked: "red",
|
|
7
|
+
completed: "teal",
|
|
8
|
+
paused: "gray"
|
|
9
|
+
};
|
|
10
|
+
var milestoneStatusColors = {
|
|
11
|
+
upcoming: "gray",
|
|
12
|
+
in_progress: "blue",
|
|
13
|
+
completed: "green",
|
|
14
|
+
overdue: "red",
|
|
15
|
+
blocked: "orange"
|
|
16
|
+
};
|
|
17
|
+
var taskStatusColors = {
|
|
18
|
+
pending: "gray",
|
|
19
|
+
planned: "gray",
|
|
20
|
+
in_progress: "blue",
|
|
21
|
+
submitted: "yellow",
|
|
22
|
+
approved: "green",
|
|
23
|
+
rejected: "red",
|
|
24
|
+
revision_requested: "orange"
|
|
25
|
+
};
|
|
26
|
+
var taskTypeColors = {
|
|
27
|
+
documentation: "blue",
|
|
28
|
+
code: "violet",
|
|
29
|
+
report: "cyan",
|
|
30
|
+
design: "pink",
|
|
31
|
+
other: "gray"
|
|
32
|
+
};
|
|
33
|
+
var noteTypeColors = {
|
|
34
|
+
call_note: "blue",
|
|
35
|
+
status_update: "green",
|
|
36
|
+
issue: "yellow",
|
|
37
|
+
blocker: "red",
|
|
38
|
+
agent_learning: "grape"
|
|
39
|
+
};
|
|
40
|
+
function formatStatusLabel(status) {
|
|
41
|
+
return status.split("_").map((word) => word.charAt(0).toUpperCase() + word.slice(1)).join(" ");
|
|
42
|
+
}
|
|
43
|
+
function calculateProgress(completed, total) {
|
|
44
|
+
if (total === 0) return 0;
|
|
45
|
+
return Math.round(completed / total * 100);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export { calculateProgress, formatStatusLabel, milestoneStatusColors, noteTypeColors, projectStatusColors, taskStatusColors, taskTypeColors };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Modal } from '@mantine/core';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
// src/components/modal/CustomModal.tsx
|
|
5
|
+
var FULL_SIZE = "80%";
|
|
6
|
+
var CustomModal = ({ children, opened, onClose, loading, style, size }) => {
|
|
7
|
+
const canClose = loading === true ? false : true;
|
|
8
|
+
const resolvedSize = size === "full" ? FULL_SIZE : size;
|
|
9
|
+
return /* @__PURE__ */ jsx(
|
|
10
|
+
Modal,
|
|
11
|
+
{
|
|
12
|
+
opened,
|
|
13
|
+
onClose,
|
|
14
|
+
padding: "xs",
|
|
15
|
+
withCloseButton: false,
|
|
16
|
+
closeOnClickOutside: canClose,
|
|
17
|
+
closeOnEscape: canClose,
|
|
18
|
+
centered: true,
|
|
19
|
+
style,
|
|
20
|
+
size: resolvedSize,
|
|
21
|
+
children
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export { CustomModal };
|