@elevasis/ui 2.21.0 → 2.23.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/app/index.js +2 -2
- package/dist/{chunk-DMYELNGA.js → chunk-3HEUGBOT.js} +1 -1
- package/dist/{chunk-EGKNRM6P.js → chunk-7PGEGSUM.js} +2 -2
- package/dist/{chunk-KVW56ERD.js → chunk-AXXTN44Z.js} +5 -3
- package/dist/{chunk-I5WRKH25.js → chunk-D3KQAABP.js} +1 -1
- package/dist/{chunk-S7RL77QS.js → chunk-DDZOHLHB.js} +1 -1
- package/dist/{chunk-EDX6WIN3.js → chunk-EPV7NU2E.js} +24 -10
- package/dist/{chunk-ATEHYDL3.js → chunk-FXWETLEB.js} +6 -2
- package/dist/{chunk-7GG6OSD7.js → chunk-GUJUK6EH.js} +2830 -2381
- package/dist/{chunk-GBMNCNHX.js → chunk-KVJ3LFH2.js} +3 -1
- package/dist/{chunk-VQESMHQV.js → chunk-LJWV4TWV.js} +1 -2
- package/dist/{chunk-BJWIKEQG.js → chunk-N6WLOWOD.js} +6 -14
- package/dist/{chunk-XLZZOFGM.js → chunk-PTUOINQ2.js} +275 -76
- package/dist/{chunk-CZK67OHH.js → chunk-PXGSJNBH.js} +3 -3
- package/dist/{chunk-TIIPYB2Z.js → chunk-QZJM3RYI.js} +1 -1
- package/dist/{chunk-7YQKVWSD.js → chunk-SQ5JGELM.js} +25 -5
- package/dist/{chunk-RX4UWZZR.js → chunk-TKAYX2SP.js} +8 -3
- package/dist/{chunk-Q5HC6ENG.js → chunk-XOTJNW4Q.js} +1 -1
- package/dist/{chunk-LQU62KHD.js → chunk-YU6MBDVO.js} +1993 -870
- package/dist/{chunk-ULZ2B3NC.js → chunk-ZBCTB5CA.js} +1 -1
- package/dist/components/index.css +85 -85
- package/dist/components/index.d.ts +1651 -1388
- package/dist/components/index.js +253 -40
- package/dist/components/navigation/index.css +589 -0
- package/dist/components/navigation/index.js +3 -3
- package/dist/features/auth/index.css +2 -2
- package/dist/features/auth/index.d.ts +188 -10
- package/dist/features/crm/index.css +2 -2
- package/dist/features/crm/index.d.ts +193 -10
- package/dist/features/crm/index.js +10 -10
- package/dist/features/dashboard/index.css +2 -2
- package/dist/features/dashboard/index.js +9 -9
- package/dist/features/delivery/index.css +85 -85
- package/dist/features/delivery/index.d.ts +193 -10
- package/dist/features/delivery/index.js +10 -10
- package/dist/features/lead-gen/index.css +2 -2
- package/dist/features/lead-gen/index.d.ts +5 -0
- package/dist/features/lead-gen/index.js +10 -10
- package/dist/features/monitoring/index.css +85 -85
- package/dist/features/monitoring/index.d.ts +6 -1
- package/dist/features/monitoring/index.js +11 -11
- package/dist/features/monitoring/requests/index.css +2 -2
- package/dist/features/monitoring/requests/index.d.ts +5 -0
- package/dist/features/monitoring/requests/index.js +9 -9
- package/dist/features/operations/index.css +2 -2
- package/dist/features/operations/index.d.ts +7 -4
- package/dist/features/operations/index.js +12 -12
- package/dist/features/seo/index.d.ts +5 -0
- package/dist/features/settings/index.css +2 -2
- package/dist/features/settings/index.d.ts +214 -16
- package/dist/features/settings/index.js +11 -11
- package/dist/graph/index.css +2 -2
- package/dist/hooks/delivery/index.css +2 -2
- package/dist/hooks/delivery/index.d.ts +188 -10
- package/dist/hooks/index.css +85 -85
- package/dist/hooks/index.d.ts +1843 -1538
- package/dist/hooks/index.js +8 -8
- package/dist/hooks/published.css +85 -85
- package/dist/hooks/published.d.ts +1843 -1538
- package/dist/hooks/published.js +8 -8
- package/dist/index.css +12 -12
- package/dist/index.d.ts +346 -35
- package/dist/index.js +9 -9
- package/dist/initialization/index.d.ts +188 -10
- package/dist/layout/index.js +2 -2
- package/dist/organization/index.css +589 -0
- package/dist/organization/index.js +1 -1
- package/dist/profile/index.d.ts +188 -10
- package/dist/provider/index.css +384 -0
- package/dist/provider/index.d.ts +6 -0
- package/dist/provider/index.js +7 -7
- package/dist/provider/published.css +463 -0
- package/dist/provider/published.d.ts +6 -0
- package/dist/provider/published.js +4 -4
- package/dist/supabase/index.d.ts +367 -20
- package/dist/test-utils/index.d.ts +46 -2
- package/dist/test-utils/index.js +102 -1
- package/dist/theme/index.js +2 -2
- package/dist/types/index.d.ts +199 -13
- package/package.json +4 -4
- /package/dist/{chunk-6GUW5GGF.js → chunk-6Z3G4U2R.js} +0 -0
package/dist/app/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ElevasisUIProvider } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
import { ElevasisUIProvider } from '../chunk-3HEUGBOT.js';
|
|
2
|
+
import '../chunk-XOTJNW4Q.js';
|
|
3
3
|
import '../chunk-WLOQ4IBG.js';
|
|
4
4
|
import '../chunk-LVUCBY7X.js';
|
|
5
5
|
import '../chunk-SZHARWKU.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PRESETS, getPreset, generateShades, mantineThemeOverride, createCssVariablesResolver, PresetsProvider } from './chunk-
|
|
1
|
+
import { PRESETS, getPreset, generateShades, mantineThemeOverride, createCssVariablesResolver, PresetsProvider } from './chunk-XOTJNW4Q.js';
|
|
2
2
|
import { AppBackground } from './chunk-WLOQ4IBG.js';
|
|
3
3
|
import { ElevasisCoreProvider } from './chunk-LVUCBY7X.js';
|
|
4
4
|
import { ElevasisLoader } from './chunk-SZHARWKU.js';
|
|
@@ -2,9 +2,9 @@ import { ResourceHealthChart } from './chunk-LGKLC5MG.js';
|
|
|
2
2
|
import { useCyberColors, HeroStatsRow } from './chunk-TSSKOQBX.js';
|
|
3
3
|
import { AppShellCenteredContainer, AppShellLoader } from './chunk-M25JL54Z.js';
|
|
4
4
|
import { STATUS_COLORS, getStatusIcon, formatDuration, getStatusColors, AGENT_CONSTANTS, shouldAnimateEdge, TIMELINE_CONSTANTS, calculateBarPosition, CONTAINER_CONSTANTS, useExecutionPath, useUnifiedWorkflowLayout, WORKFLOW_CONSTANTS, useReactFlowAgent } from './chunk-E4WQGJNS.js';
|
|
5
|
-
import { useExecuteResource, useDashboardMetrics, useResources, useTimeRangeDates, useUnresolvedErrors, useRecentExecutionsByResource, useCommandQueue, useScheduledTasks, useResourcesHealth } from './chunk-
|
|
5
|
+
import { useExecuteResource, useDashboardMetrics, useResources, useTimeRangeDates, useUnresolvedErrors, useRecentExecutionsByResource, useCommandQueue, useScheduledTasks, useResourcesHealth } from './chunk-GUJUK6EH.js';
|
|
6
6
|
import { Graph_module_css_default, useDirectedChainHighlighting, useNodeSelection, useFitViewTrigger } from './chunk-22UVE3RA.js';
|
|
7
|
-
import { glassBase } from './chunk-
|
|
7
|
+
import { glassBase } from './chunk-XOTJNW4Q.js';
|
|
8
8
|
import { GlowDot, CardHeader, EmptyState, PageTitleCaption, TabCountBadge } from './chunk-XUYBOO32.js';
|
|
9
9
|
import { formatTimeAgo, getTimeRangeDates, formatRelativeTime } from './chunk-SGXXJE52.js';
|
|
10
10
|
import { ResourceStatusColors } from './chunk-KRWALB24.js';
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { useElevasisFeatures } from './chunk-
|
|
2
|
-
import { SubshellContainer, SubshellSidebar, SubshellRightSideContainer } from './chunk-
|
|
1
|
+
import { useElevasisFeatures } from './chunk-LJWV4TWV.js';
|
|
2
|
+
import { SubshellContainer, SubshellSidebar, SubshellRightSideContainer } from './chunk-TKAYX2SP.js';
|
|
3
3
|
import { FeatureUnavailableState } from './chunk-XUYBOO32.js';
|
|
4
4
|
import { useRouterContext } from './chunk-Q7DJKLEN.js';
|
|
5
5
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
6
6
|
|
|
7
|
+
var defaultFeatureSidebarWidth = 250;
|
|
7
8
|
function FeatureShell({ children }) {
|
|
8
9
|
const { shellRuntime } = useElevasisFeatures();
|
|
9
10
|
const { currentPath } = useRouterContext();
|
|
@@ -15,8 +16,9 @@ function FeatureShell({ children }) {
|
|
|
15
16
|
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
16
17
|
}
|
|
17
18
|
const SidebarComponent = routeMatch.feature.sidebar;
|
|
19
|
+
const sidebarWidth = typeof routeMatch.feature.sidebarWidth === "function" ? routeMatch.feature.sidebarWidth({ currentPath }) : routeMatch.feature.sidebarWidth ?? defaultFeatureSidebarWidth;
|
|
18
20
|
return /* @__PURE__ */ jsxs(SubshellContainer, { children: [
|
|
19
|
-
/* @__PURE__ */ jsx(SubshellSidebar, { width:
|
|
21
|
+
/* @__PURE__ */ jsx(SubshellSidebar, { width: sidebarWidth, children: /* @__PURE__ */ jsx(SidebarComponent, {}) }),
|
|
20
22
|
/* @__PURE__ */ jsx(SubshellRightSideContainer, { children })
|
|
21
23
|
] });
|
|
22
24
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCyberColors, CyberLegendItem, CyberAreaChart } from './chunk-TSSKOQBX.js';
|
|
2
|
-
import { useResourcesHealth } from './chunk-
|
|
2
|
+
import { useResourcesHealth } from './chunk-GUJUK6EH.js';
|
|
3
3
|
import { CardHeader, EmptyState } from './chunk-XUYBOO32.js';
|
|
4
4
|
import { getTimeRangeDates, formatBucketTime } from './chunk-SGXXJE52.js';
|
|
5
5
|
import { Paper, Center, Loader, Group } from '@mantine/core';
|
|
@@ -3,9 +3,9 @@ import { TableSelectionToolbar, SortableHeader } from './chunk-TUMSNGTX.js';
|
|
|
3
3
|
import { SubshellNavItem } from './chunk-CEWTOKE7.js';
|
|
4
4
|
import { SubshellSidebarSection } from './chunk-IIMU5YAJ.js';
|
|
5
5
|
import { FilterBar } from './chunk-PDHTXPSF.js';
|
|
6
|
-
import { CustomModal } from './chunk-
|
|
7
|
-
import { useDealTasksDue, useDealsLookup, useCreateDealTask, useDealsSummary, useDeleteDeal, usePaginationState, useDeals, useTableSort, sortData, useTableSelection, useDealDetail, useCompany } from './chunk-
|
|
8
|
-
import { SubshellContentContainer } from './chunk-
|
|
6
|
+
import { CustomModal } from './chunk-KVJ3LFH2.js';
|
|
7
|
+
import { useDealTasksDue, useDealsLookup, useCreateDealTask, useDealsSummary, useDeleteDeal, usePaginationState, useDeals, useTableSort, sortData, useTableSelection, useDealDetail, useCompany } from './chunk-GUJUK6EH.js';
|
|
8
|
+
import { SubshellContentContainer } from './chunk-TKAYX2SP.js';
|
|
9
9
|
import { CenteredErrorState, CardHeader, PageTitleCaption, EmptyState, ActivityTimeline } from './chunk-XUYBOO32.js';
|
|
10
10
|
import { useRouterContext } from './chunk-Q7DJKLEN.js';
|
|
11
11
|
import { PAGE_SIZE_DEFAULT, formatTimeAgo } from './chunk-SGXXJE52.js';
|
|
@@ -695,7 +695,7 @@ var sortAccessors = {
|
|
|
695
695
|
company: (deal) => deal.contact?.company?.name || deal.discovery_data?.company || deal.contact_email?.split("@")[1] || "",
|
|
696
696
|
contact: (deal) => [deal.contact?.first_name, deal.contact?.last_name].filter(Boolean).join(" ") || "",
|
|
697
697
|
email: (deal) => deal.contact_email || "",
|
|
698
|
-
stage: (deal) => deal.
|
|
698
|
+
stage: (deal) => deal.stage_key || "",
|
|
699
699
|
updated: (deal) => deal.updated_at || ""
|
|
700
700
|
};
|
|
701
701
|
function DealsListPage() {
|
|
@@ -705,7 +705,12 @@ function DealsListPage() {
|
|
|
705
705
|
const [searchQuery, setSearchQuery] = useState("");
|
|
706
706
|
const [showBatchDelete, setShowBatchDelete] = useState(false);
|
|
707
707
|
const pagination = usePaginationState(PAGE_SIZE_DEFAULT, [stageFilter, searchQuery]);
|
|
708
|
-
const {
|
|
708
|
+
const {
|
|
709
|
+
data: deals,
|
|
710
|
+
total,
|
|
711
|
+
isLoading,
|
|
712
|
+
error
|
|
713
|
+
} = useDeals({
|
|
709
714
|
stage: stageFilter || void 0,
|
|
710
715
|
search: searchQuery || void 0,
|
|
711
716
|
limit: PAGE_SIZE_DEFAULT,
|
|
@@ -800,7 +805,7 @@ function DealsListPage() {
|
|
|
800
805
|
/* @__PURE__ */ jsx(Table.Td, { children: /* @__PURE__ */ jsx(Text, { fw: 500, children: companyName }) }),
|
|
801
806
|
/* @__PURE__ */ jsx(Table.Td, { children: /* @__PURE__ */ jsx(Text, { size: "sm", children: contactName || "-" }) }),
|
|
802
807
|
/* @__PURE__ */ jsx(Table.Td, { children: /* @__PURE__ */ jsx(Text, { size: "sm", c: "dimmed", children: deal.contact_email || "-" }) }),
|
|
803
|
-
/* @__PURE__ */ jsx(Table.Td, { children: /* @__PURE__ */ jsx(Badge, { variant: "light", color: DEAL_STAGE_COLORS[deal.
|
|
808
|
+
/* @__PURE__ */ jsx(Table.Td, { children: /* @__PURE__ */ jsx(Badge, { variant: "light", color: DEAL_STAGE_COLORS[deal.stage_key || ""] || "gray", size: "sm", children: formatDealStageLabel(deal.stage_key) }) }),
|
|
804
809
|
/* @__PURE__ */ jsx(Table.Td, { children: /* @__PURE__ */ jsx(Text, { size: "sm", c: "dimmed", children: formatTimeAgo(deal.updated_at) }) })
|
|
805
810
|
]
|
|
806
811
|
},
|
|
@@ -891,7 +896,16 @@ function DealDetailPage({ dealId, renderActions, onDealLoaded }) {
|
|
|
891
896
|
),
|
|
892
897
|
renderActions?.(deal),
|
|
893
898
|
/* @__PURE__ */ jsx(ActionIcon, { variant: "subtle", color: "red", onClick: () => setDeleteModalOpen(true), children: /* @__PURE__ */ jsx(IconTrash, { size: 16 }) })
|
|
894
|
-
] }) : /* @__PURE__ */ jsx(
|
|
899
|
+
] }) : /* @__PURE__ */ jsx(
|
|
900
|
+
Button,
|
|
901
|
+
{
|
|
902
|
+
variant: "light",
|
|
903
|
+
size: "sm",
|
|
904
|
+
leftSection: /* @__PURE__ */ jsx(IconArrowLeft, { size: 16 }),
|
|
905
|
+
onClick: () => navigate({ to: "/crm/deals" }),
|
|
906
|
+
children: "Deals"
|
|
907
|
+
}
|
|
908
|
+
);
|
|
895
909
|
if (isLoading) {
|
|
896
910
|
return /* @__PURE__ */ jsx(SubshellContentContainer, { children: /* @__PURE__ */ jsxs(PageContainer, { children: [
|
|
897
911
|
/* @__PURE__ */ jsx(Stack, { children: /* @__PURE__ */ jsx(PageTitleCaption, { title, caption: "Loading deal details...", rightSection: headerActions }) }),
|
|
@@ -916,7 +930,7 @@ function DealDetailPage({ dealId, renderActions, onDealLoaded }) {
|
|
|
916
930
|
PageTitleCaption,
|
|
917
931
|
{
|
|
918
932
|
title,
|
|
919
|
-
caption: `${companyName || "Unknown"} - ${formatDealStageLabel(deal.
|
|
933
|
+
caption: `${companyName || "Unknown"} - ${formatDealStageLabel(deal.stage_key)}`,
|
|
920
934
|
rightSection: headerActions
|
|
921
935
|
}
|
|
922
936
|
) }),
|
|
@@ -931,7 +945,7 @@ function DealDetailPage({ dealId, renderActions, onDealLoaded }) {
|
|
|
931
945
|
/* @__PURE__ */ jsx(Title, { order: 4, children: "Deal" }),
|
|
932
946
|
/* @__PURE__ */ jsxs(Group, { children: [
|
|
933
947
|
/* @__PURE__ */ jsx(Text, { fw: 500, children: "Stage:" }),
|
|
934
|
-
/* @__PURE__ */ jsx(Badge, { color: DEAL_STAGE_COLORS[deal.
|
|
948
|
+
/* @__PURE__ */ jsx(Badge, { color: DEAL_STAGE_COLORS[deal.stage_key || ""] || "gray", children: formatDealStageLabel(deal.stage_key) })
|
|
935
949
|
] }),
|
|
936
950
|
/* @__PURE__ */ jsxs(Group, { children: [
|
|
937
951
|
/* @__PURE__ */ jsx(Text, { fw: 500, children: "Sent:" }),
|
|
@@ -1003,7 +1017,7 @@ function DealDetailPage({ dealId, renderActions, onDealLoaded }) {
|
|
|
1003
1017
|
] })
|
|
1004
1018
|
] })
|
|
1005
1019
|
] }) }),
|
|
1006
|
-
["
|
|
1020
|
+
["closing", "closed_won"].includes(deal.stage_key || "") && /* @__PURE__ */ jsx(Card, { withBorder: true, children: /* @__PURE__ */ jsxs(Stack, { gap: "sm", children: [
|
|
1007
1021
|
/* @__PURE__ */ jsx(Title, { order: 4, children: "Payment" }),
|
|
1008
1022
|
/* @__PURE__ */ jsxs(SimpleGrid, { cols: { base: 1, sm: 2 }, spacing: "sm", children: [
|
|
1009
1023
|
/* @__PURE__ */ jsxs(Group, { children: [
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CyberAreaChart, CostTrendChart, ActivityTrendChart } from './chunk-TSSKOQBX.js';
|
|
2
2
|
import { AppShellLoader } from './chunk-M25JL54Z.js';
|
|
3
3
|
import { FilterBar } from './chunk-PDHTXPSF.js';
|
|
4
|
-
import { CustomModal } from './chunk-
|
|
4
|
+
import { CustomModal } from './chunk-KVJ3LFH2.js';
|
|
5
5
|
import { formatDuration } from './chunk-E4WQGJNS.js';
|
|
6
|
-
import { useResolveError, useResolveAllErrors, usePaginationState, useErrorDetails, useMarkAsRead, useExecutionLogsFilters, useExecutionLogs, useExecutionHealth, useErrorAnalysis, useTimeRangeDates, useErrorDetail, useResolveErrorsByExecution, useResources, useCostTrends, useCostSummary, useCostByModel, useCostBreakdown, useActivityFilters, useActivityTrend, useActivities, useNotifications, useMarkAllAsRead, useTestNotification } from './chunk-
|
|
6
|
+
import { useResolveError, useResolveAllErrors, usePaginationState, useErrorDetails, useMarkAsRead, useExecutionLogsFilters, useExecutionLogs, useExecutionHealth, useErrorAnalysis, useTimeRangeDates, useErrorDetail, useResolveErrorsByExecution, useResources, useCostTrends, useCostSummary, useCostByModel, useCostBreakdown, useActivityFilters, useActivityTrend, useActivities, useNotifications, useMarkAllAsRead, useTestNotification } from './chunk-GUJUK6EH.js';
|
|
7
7
|
import { CenteredErrorState, CardHeader, StatsCardSkeleton, TrendIndicator, DetailCardSkeleton, EmptyState, PageTitleCaption, JsonViewer } from './chunk-XUYBOO32.js';
|
|
8
8
|
import { useRouterContext } from './chunk-Q7DJKLEN.js';
|
|
9
9
|
import { formatBucketTime, PAGE_SIZE_DEFAULT, getTimeRangeDates } from './chunk-SGXXJE52.js';
|
|
@@ -175,6 +175,7 @@ var activityTypeLabels = {
|
|
|
175
175
|
webhook_executed: "Webhook Out",
|
|
176
176
|
webhook_failed: "Webhook Fail",
|
|
177
177
|
credential_change: "Credential",
|
|
178
|
+
credential_read: "Credential Read",
|
|
178
179
|
api_key_change: "API Key",
|
|
179
180
|
deployment_change: "Deployment",
|
|
180
181
|
membership_change: "Membership"
|
|
@@ -243,6 +244,7 @@ var activityTypeOptions = [
|
|
|
243
244
|
{ value: "webhook_executed", label: "Webhook Executed" },
|
|
244
245
|
{ value: "webhook_failed", label: "Webhook Failed" },
|
|
245
246
|
{ value: "credential_change", label: "Credential Changes" },
|
|
247
|
+
{ value: "credential_read", label: "Credential Reads" },
|
|
246
248
|
{ value: "api_key_change", label: "API Key Changes" },
|
|
247
249
|
{ value: "deployment_change", label: "Deployment Changes" },
|
|
248
250
|
{ value: "membership_change", label: "Membership Changes" }
|
|
@@ -323,6 +325,7 @@ function getNavigationPath(activity) {
|
|
|
323
325
|
case "hitl_action":
|
|
324
326
|
return "/command-queue";
|
|
325
327
|
case "credential_change":
|
|
328
|
+
case "credential_read":
|
|
326
329
|
return "/settings/credentials";
|
|
327
330
|
case "api_key_change":
|
|
328
331
|
return "/settings/api-keys";
|
|
@@ -1599,6 +1602,7 @@ function getNavigationPath2(activity) {
|
|
|
1599
1602
|
case "hitl_action":
|
|
1600
1603
|
return "/operations/command-queue";
|
|
1601
1604
|
case "credential_change":
|
|
1605
|
+
case "credential_read":
|
|
1602
1606
|
return "/settings/credentials";
|
|
1603
1607
|
case "api_key_change":
|
|
1604
1608
|
return "/settings/api-keys";
|