@elevasis/ui 2.25.5 → 2.25.6

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.
Files changed (61) hide show
  1. package/dist/app/index.css +3 -24
  2. package/dist/app/index.d.ts +63 -56
  3. package/dist/app/index.js +3 -2
  4. package/dist/chunk-5RLYII6P.js +314 -0
  5. package/dist/chunk-6U7AIIHF.js +880 -0
  6. package/dist/{chunk-NHHCUECV.js → chunk-7F3IQMLI.js} +1 -1
  7. package/dist/{chunk-N2AP4I5N.js → chunk-ARJPZ66V.js} +39 -757
  8. package/dist/{chunk-IS53MXE4.js → chunk-BDKM56TP.js} +1 -1
  9. package/dist/{chunk-KINQW4JT.js → chunk-C7IBFI5B.js} +1 -1
  10. package/dist/{chunk-5BJXMZN4.js → chunk-CPAJXBTL.js} +9 -5
  11. package/dist/chunk-HAEJ4M54.js +94 -0
  12. package/dist/{chunk-QNCVK3ZF.js → chunk-JXSBOG2R.js} +1 -1
  13. package/dist/{chunk-3KY2GNPE.js → chunk-KNISO652.js} +1 -1
  14. package/dist/{chunk-VMAWXEVG.js → chunk-L7D6KNHV.js} +457 -290
  15. package/dist/{chunk-JMI7L7Y7.js → chunk-LPM7O6XM.js} +2 -233
  16. package/dist/{chunk-FVKLHLF4.js → chunk-QARSVM7Q.js} +1 -1
  17. package/dist/{chunk-F7JDHS2I.js → chunk-SBQ4MYQV.js} +3 -2
  18. package/dist/{chunk-MU4VPAMR.js → chunk-YRKQNPK2.js} +1 -1
  19. package/dist/components/index.css +3 -24
  20. package/dist/components/index.d.ts +11 -2
  21. package/dist/components/index.js +18 -16
  22. package/dist/components/navigation/index.css +3 -24
  23. package/dist/features/auth/index.css +3 -24
  24. package/dist/features/crm/index.css +3 -24
  25. package/dist/features/crm/index.js +5 -4
  26. package/dist/features/dashboard/index.css +3 -24
  27. package/dist/features/dashboard/index.js +5 -4
  28. package/dist/features/delivery/index.css +3 -24
  29. package/dist/features/delivery/index.js +5 -4
  30. package/dist/features/knowledge/index.js +397 -1
  31. package/dist/features/lead-gen/index.css +3 -24
  32. package/dist/features/lead-gen/index.d.ts +158 -151
  33. package/dist/features/lead-gen/index.js +6 -5
  34. package/dist/features/monitoring/index.css +3 -24
  35. package/dist/features/monitoring/index.js +6 -5
  36. package/dist/features/monitoring/requests/index.css +3 -24
  37. package/dist/features/monitoring/requests/index.js +4 -3
  38. package/dist/features/operations/index.css +3 -24
  39. package/dist/features/operations/index.js +9 -7
  40. package/dist/features/settings/index.css +3 -24
  41. package/dist/features/settings/index.js +5 -4
  42. package/dist/hooks/delivery/index.css +3 -24
  43. package/dist/hooks/index.css +3 -24
  44. package/dist/hooks/index.d.ts +14 -3
  45. package/dist/hooks/index.js +4 -3
  46. package/dist/hooks/published.css +3 -24
  47. package/dist/hooks/published.d.ts +14 -3
  48. package/dist/hooks/published.js +4 -3
  49. package/dist/index.css +3 -24
  50. package/dist/index.d.ts +611 -593
  51. package/dist/index.js +4 -3
  52. package/dist/knowledge/index.d.ts +14 -4
  53. package/dist/knowledge/index.js +20 -119
  54. package/dist/organization/index.css +3 -24
  55. package/dist/provider/index.css +3 -24
  56. package/dist/provider/index.d.ts +346 -339
  57. package/dist/provider/index.js +3 -2
  58. package/dist/provider/published.css +3 -24
  59. package/dist/provider/published.d.ts +346 -339
  60. package/dist/provider/published.js +2 -1
  61. package/package.json +33 -33
@@ -1,4 +1,4 @@
1
- import { DisplayMetadataSchema, ModelIdSchema, DescriptionSchema } from './chunk-JMI7L7Y7.js';
1
+ import { DisplayMetadataSchema, ModelIdSchema, DescriptionSchema } from './chunk-5RLYII6P.js';
2
2
  import { z } from 'zod';
3
3
 
4
4
  var ProspectingLifecycleStageSchema = DisplayMetadataSchema.extend({
@@ -2,7 +2,7 @@ import { AppShellLoader } from './chunk-RYTEQBAO.js';
2
2
  import { FilterBar } from './chunk-PDHTXPSF.js';
3
3
  import { CustomModal } from './chunk-KVJ3LFH2.js';
4
4
  import { useAvailablePresets } from './chunk-SNHGSCKH.js';
5
- import { useDeleteCredential, useCreateCredential, useCredentials, MEMBERSHIP_STATUS_COLORS, transformMembershipToTableRow, useUserMemberships, useUpdateWebhookEndpoint, useResources, useDeleteWebhookEndpoint, useCreateWebhookEndpoint, useListWebhookEndpoints, useOrgRoles, useAssignRole, useRevokeRole, useHasPermission, useUpdateMemberConfig, useOrganizationMembers, useUpdateCredential, CredentialSchemas } from './chunk-5BJXMZN4.js';
5
+ import { useDeleteCredential, useCreateCredential, useCredentials, MEMBERSHIP_STATUS_COLORS, transformMembershipToTableRow, useUserMemberships, useUpdateWebhookEndpoint, useResources, useDeleteWebhookEndpoint, useCreateWebhookEndpoint, useListWebhookEndpoints, useOrgRoles, useAssignRole, useRevokeRole, useHasPermission, useUpdateMemberConfig, useOrganizationMembers, useUpdateCredential, CredentialSchemas } from './chunk-CPAJXBTL.js';
6
6
  import { showApiErrorNotification, showErrorNotification, showSuccessNotification } from './chunk-HKBEURCV.js';
7
7
  import { ListSkeleton, EmptyState, PageTitleCaption, CardHeader, APIErrorAlert, StatCard } from './chunk-U36X6NZM.js';
8
8
  import { RoleBadge } from './chunk-GESXCQWY.js';
@@ -2,7 +2,7 @@ import { observabilityKeys } from './chunk-VKMNWHTL.js';
2
2
  import { showApiErrorNotification, showSuccessNotification, projectKeys, noteKeys, taskKeys, milestoneKeys } from './chunk-HKBEURCV.js';
3
3
  import { useSupabase } from './chunk-BRXELOHC.js';
4
4
  import { GRAPH_CONSTANTS } from './chunk-22UVE3RA.js';
5
- import { useNotificationAdapter, deriveActions } from './chunk-JMI7L7Y7.js';
5
+ import { useNotificationAdapter, deriveActions } from './chunk-LPM7O6XM.js';
6
6
  import { useOptionalElevasisFeatures } from './chunk-V3HUIZJX.js';
7
7
  import { HTTP_HEADERS } from './chunk-T6INEVX6.js';
8
8
  import { ResourceTypeSchema, NonEmptyStringSchema, OriginResourceTypeSchema, UuidSchema, CredentialNameSchema, STALE_TIME_DEFAULT, REFETCH_INTERVAL_DASHBOARD, STALE_TIME_MONITORING, STALE_TIME_ADMIN, getTimeRangeDates, REFETCH_INTERVAL_RUNNING, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, APIClientError, GC_TIME_MEDIUM, GC_TIME_SHORT } from './chunk-SGXXJE52.js';
@@ -3552,7 +3552,7 @@ var acquisitionListKeys = {
3552
3552
  detail: (organizationId, listId) => [...acquisitionListKeys.all, organizationId, listId],
3553
3553
  telemetry: (organizationId) => [...acquisitionListKeys.all, "telemetry", organizationId],
3554
3554
  progress: (organizationId, listId) => [...acquisitionListKeys.all, "progress", organizationId, listId],
3555
- executions: (organizationId, listId) => [...acquisitionListKeys.all, "executions", organizationId, listId]
3555
+ executions: (organizationId, listId, filters) => [...acquisitionListKeys.all, "executions", organizationId, listId, filters?.resourceId ?? null, filters?.limit ?? null]
3556
3556
  };
3557
3557
  function useLists() {
3558
3558
  const { apiRequest, isReady, organizationId } = useElevasisServices();
@@ -3586,11 +3586,15 @@ function useListProgress(listId) {
3586
3586
  enabled: isReady && !!listId
3587
3587
  });
3588
3588
  }
3589
- function useListExecutions(listId) {
3589
+ function useListExecutions(listId, filters = {}) {
3590
3590
  const { apiRequest, isReady, organizationId } = useElevasisServices();
3591
3591
  return useQuery({
3592
- queryKey: acquisitionListKeys.executions(organizationId, listId),
3593
- queryFn: () => apiRequest(`/acquisition/lists/${listId}/executions`),
3592
+ queryKey: acquisitionListKeys.executions(organizationId, listId, filters),
3593
+ queryFn: async () => {
3594
+ const executions = await apiRequest(`/acquisition/lists/${listId}/executions`);
3595
+ const filteredExecutions = filters.resourceId ? executions.filter((execution) => execution.resourceId === filters.resourceId) : executions;
3596
+ return typeof filters.limit === "number" ? filteredExecutions.slice(0, filters.limit) : filteredExecutions;
3597
+ },
3594
3598
  enabled: isReady && !!listId
3595
3599
  });
3596
3600
  }
@@ -0,0 +1,94 @@
1
+ import { useMemo } from 'react';
2
+ import { Stack, Text, Group, Badge, UnstyledButton } from '@mantine/core';
3
+ import { jsx, jsxs } from 'react/jsx-runtime';
4
+
5
+ // src/knowledge/KnowledgeTree.tsx
6
+
7
+ // ../core/src/knowledge/queries.ts
8
+ function toGraphNodeId(omNodeId) {
9
+ return `knowledge:${omNodeId}`;
10
+ }
11
+ function buildKnowledgeSourceIdMap(graph) {
12
+ const map = /* @__PURE__ */ new Map();
13
+ for (const node of graph.nodes) {
14
+ if (node.kind === "knowledge" && node.sourceId) {
15
+ map.set(node.id, node.sourceId);
16
+ }
17
+ }
18
+ return map;
19
+ }
20
+ function byFeature(graph, featureId, knowledgeNodes) {
21
+ const targetGraphNodeId = `feature:${featureId}`;
22
+ const governingKnowledgeNodeIds = /* @__PURE__ */ new Set();
23
+ for (const edge of graph.edges) {
24
+ if (edge.kind === "governs" && edge.targetId === targetGraphNodeId && edge.sourceId.startsWith("knowledge:")) {
25
+ governingKnowledgeNodeIds.add(edge.sourceId);
26
+ }
27
+ }
28
+ const sourceIdMap = buildKnowledgeSourceIdMap(graph);
29
+ const matchingOmIds = /* @__PURE__ */ new Set();
30
+ for (const graphNodeId of governingKnowledgeNodeIds) {
31
+ const omId = sourceIdMap.get(graphNodeId);
32
+ if (omId) matchingOmIds.add(omId);
33
+ }
34
+ return knowledgeNodes.filter((n) => matchingOmIds.has(n.id));
35
+ }
36
+ function governs(graph, nodeId) {
37
+ const graphNodeId = nodeId.startsWith("knowledge:") ? nodeId : toGraphNodeId(nodeId);
38
+ const results = [];
39
+ for (const edge of graph.edges) {
40
+ if (edge.kind === "governs" && edge.sourceId === graphNodeId) {
41
+ results.push(edge.targetId);
42
+ }
43
+ }
44
+ return results;
45
+ }
46
+ function governedBy(graph, nodeId) {
47
+ const targetId = nodeId.startsWith("feature:") || nodeId.startsWith("knowledge:") || nodeId.startsWith("resource:") ? nodeId : `feature:${nodeId}`;
48
+ const results = [];
49
+ for (const edge of graph.edges) {
50
+ if (edge.kind === "governs" && edge.targetId === targetId) {
51
+ results.push(edge.sourceId);
52
+ }
53
+ }
54
+ return results;
55
+ }
56
+ function KnowledgeTree({ graph, knowledgeNodes, onSelectNode, selectedNodeId }) {
57
+ const groups = useMemo(() => {
58
+ const featureNodes = graph.nodes.filter((n) => n.kind === "feature");
59
+ return featureNodes.map((feature) => {
60
+ const featureId = feature.featureId ?? feature.sourceId ?? feature.id.replace(/^feature:/, "");
61
+ const nodes = byFeature(graph, featureId, knowledgeNodes);
62
+ return { feature, nodes };
63
+ }).filter((group) => group.nodes.length > 0);
64
+ }, [graph, knowledgeNodes]);
65
+ if (groups.length === 0) {
66
+ return /* @__PURE__ */ jsx(Stack, { gap: "xs", style: { padding: "var(--mantine-spacing-md)" }, children: /* @__PURE__ */ jsx(Text, { size: "sm", c: "dimmed", children: "No knowledge nodes governing any feature." }) });
67
+ }
68
+ return /* @__PURE__ */ jsx(Stack, { gap: "md", style: { padding: "var(--mantine-spacing-sm)" }, children: groups.map(({ feature, nodes }) => /* @__PURE__ */ jsxs(Stack, { gap: 4, children: [
69
+ /* @__PURE__ */ jsxs(Group, { gap: "xs", children: [
70
+ /* @__PURE__ */ jsx(Text, { size: "xs", fw: 600, tt: "uppercase", c: "dimmed", style: { letterSpacing: "0.05em" }, children: feature.label }),
71
+ /* @__PURE__ */ jsx(Badge, { size: "xs", variant: "light", color: "gray", children: nodes.length })
72
+ ] }),
73
+ /* @__PURE__ */ jsx(Stack, { gap: 2, children: nodes.map((node) => {
74
+ const isActive = node.id === selectedNodeId;
75
+ return /* @__PURE__ */ jsx(
76
+ UnstyledButton,
77
+ {
78
+ onClick: () => onSelectNode(node),
79
+ style: {
80
+ padding: "6px 10px",
81
+ borderRadius: "var(--mantine-radius-sm)",
82
+ backgroundColor: isActive ? "color-mix(in srgb, var(--color-primary) 10%, transparent)" : "transparent",
83
+ width: "100%",
84
+ textAlign: "left"
85
+ },
86
+ children: /* @__PURE__ */ jsx(Text, { size: "sm", c: isActive ? "var(--color-primary)" : void 0, fw: isActive ? 600 : 400, children: node.title })
87
+ },
88
+ node.id
89
+ );
90
+ }) })
91
+ ] }, feature.id)) });
92
+ }
93
+
94
+ export { KnowledgeTree, governedBy, governs };
@@ -3,7 +3,7 @@ import { AppShellLoader } from './chunk-RYTEQBAO.js';
3
3
  import { FilterBar } from './chunk-PDHTXPSF.js';
4
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-5BJXMZN4.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-CPAJXBTL.js';
7
7
  import { CenteredErrorState, CardHeader, StatsCardSkeleton, TrendIndicator, DetailCardSkeleton, EmptyState, PageTitleCaption, JsonViewer } from './chunk-U36X6NZM.js';
8
8
  import { useRouterContext } from './chunk-Q7DJKLEN.js';
9
9
  import { formatBucketTime, PAGE_SIZE_DEFAULT, getTimeRangeDates } from './chunk-SGXXJE52.js';
@@ -5,7 +5,7 @@ import { SubshellNavItem } from './chunk-X4WBGKJQ.js';
5
5
  import { SubshellSidebarSection } from './chunk-IIMU5YAJ.js';
6
6
  import { FilterBar } from './chunk-PDHTXPSF.js';
7
7
  import { CustomModal } from './chunk-KVJ3LFH2.js';
8
- import { useProjectRealtime, useTableSort, sortData, usePaginationState, useTableSelection, useProjectActivities } from './chunk-5BJXMZN4.js';
8
+ import { useProjectRealtime, useTableSort, sortData, usePaginationState, useTableSelection, useProjectActivities } from './chunk-CPAJXBTL.js';
9
9
  import { useCreateTask, useCreateMilestone, useProjectMilestones, useUpdateTask, useProjects, useDeleteProject, useProject, useProjectNotes, useUpdateMilestone, useCreateNote, showApiErrorNotification, projectKeys } from './chunk-HKBEURCV.js';
10
10
  import { SubshellContentContainer } from './chunk-TKAYX2SP.js';
11
11
  import { StatusBadge, EmptyState, PageTitleCaption, CenteredErrorState, StatCard, CardHeader } from './chunk-U36X6NZM.js';