@elevasis/ui 1.6.0 → 1.7.1

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.
@@ -85,12 +85,12 @@ function useConnectionHighlight(nodes, edges) {
85
85
  };
86
86
  }
87
87
 
88
- // src/graph/Graph.module.css
89
- var Graph_exports = {};
90
- __export(Graph_exports, {
91
- default: () => Graph_default
88
+ // src/graph/Graph.module.css.js
89
+ var Graph_module_css_exports = {};
90
+ __export(Graph_module_css_exports, {
91
+ default: () => Graph_module_css_default
92
92
  });
93
- var Graph_default = {};
93
+ var Graph_module_css_default = { "livePulse": "livePulse", "graphContainer": "graphContainer", "react-flow__node": "react-flow__node", "selected": "selected", "node": "node", "nodeCard": "nodeCard", "nodeCardSelected": "nodeCardSelected", "nodeAgent": "nodeAgent", "nodeWorkflow": "nodeWorkflow", "nodeTrigger": "nodeTrigger", "nodeIntegration": "nodeIntegration", "nodeExternal": "nodeExternal", "nodeHuman": "nodeHuman", "nodePrimary": "nodePrimary", "handle": "handle", "nodeIcon": "nodeIcon", "badge": "badge", "badgeProd": "badgeProd", "edge": "edge", "edgeAnimated": "edgeAnimated", "edgeGlow": "edgeGlow", "edgeHighlighted": "edgeHighlighted", "edgeLabel": "edgeLabel", "legend": "legend", "legendDot": "legendDot", "nodeHighlighted": "nodeHighlighted", "nodeDimmed": "nodeDimmed", "edgeDimmed": "edgeDimmed", "edgeLabelDimmed": "edgeLabelDimmed" };
94
94
 
95
95
  // src/graph/hooks/useGraphHighlighting.ts
96
96
  function useGraphHighlighting(layoutNodes, layoutEdges) {
@@ -104,7 +104,7 @@ function useGraphHighlighting(layoutNodes, layoutEdges) {
104
104
  const nodes = useMemo(() => {
105
105
  return layoutNodes.map((node) => ({
106
106
  ...node,
107
- className: hoveredNodeId ? highlightedNodeIds.has(node.id) ? Graph_default.nodeHighlighted : Graph_default.nodeDimmed : ""
107
+ className: hoveredNodeId ? highlightedNodeIds.has(node.id) ? Graph_module_css_default.nodeHighlighted : Graph_module_css_default.nodeDimmed : ""
108
108
  }));
109
109
  }, [layoutNodes, hoveredNodeId, highlightedNodeIds]);
110
110
  const edges = useMemo(() => {
@@ -112,7 +112,7 @@ function useGraphHighlighting(layoutNodes, layoutEdges) {
112
112
  const isDimmed = hoveredNodeId ? !highlightedEdgeIds.has(edge.id) : false;
113
113
  return {
114
114
  ...edge,
115
- className: hoveredNodeId ? highlightedEdgeIds.has(edge.id) ? Graph_default.edgeHighlighted : Graph_default.edgeDimmed : "",
115
+ className: hoveredNodeId ? highlightedEdgeIds.has(edge.id) ? Graph_module_css_default.edgeHighlighted : Graph_module_css_default.edgeDimmed : "",
116
116
  data: {
117
117
  ...edge.data,
118
118
  dimmed: isDimmed
@@ -221,7 +221,7 @@ function useDirectedChainHighlighting(layoutNodes, layoutEdges, options = {}) {
221
221
  const isDimmed = hasHighlight ? !highlightedNodeIds.has(node.id) : false;
222
222
  return {
223
223
  ...node,
224
- className: isDimmed ? Graph_default.nodeDimmed : "",
224
+ className: isDimmed ? Graph_module_css_default.nodeDimmed : "",
225
225
  data: {
226
226
  ...node.data,
227
227
  highlighted: isHighlighted
@@ -234,7 +234,7 @@ function useDirectedChainHighlighting(layoutNodes, layoutEdges, options = {}) {
234
234
  const isDimmed = hasHighlight ? !highlightedEdgeIds.has(edge.id) : false;
235
235
  return {
236
236
  ...edge,
237
- className: hasHighlight ? highlightedEdgeIds.has(edge.id) ? Graph_default.edgeHighlighted : Graph_default.edgeDimmed : "",
237
+ className: hasHighlight ? highlightedEdgeIds.has(edge.id) ? Graph_module_css_default.edgeHighlighted : Graph_module_css_default.edgeDimmed : "",
238
238
  data: {
239
239
  ...edge.data,
240
240
  dimmed: isDimmed
@@ -315,4 +315,4 @@ function calculateGraphHeight({
315
315
  return Math.min(calculated, maxHeight);
316
316
  }
317
317
 
318
- export { GRAPH_CONSTANTS, Graph_default, Graph_exports, calculateGraphHeight, useConnectionHighlight, useDirectedChainHighlighting, useFitViewTrigger, useGraphHighlighting, useNodeSelection };
318
+ export { GRAPH_CONSTANTS, Graph_module_css_default, Graph_module_css_exports, calculateGraphHeight, useConnectionHighlight, useDirectedChainHighlighting, useFitViewTrigger, useGraphHighlighting, useNodeSelection };
@@ -117,12 +117,12 @@ var NavigationButton = ({
117
117
  );
118
118
  };
119
119
 
120
- // src/components/display/ElevasisLoader.module.css
121
- var ElevasisLoader_default = {};
122
- var ElevasisLoader = forwardRef(({ style, className, ...others }, ref) => /* @__PURE__ */ jsx("div", { ref, style, className: `${ElevasisLoader_default.wrapper} ${className ?? ""}`, ...others, children: /* @__PURE__ */ jsxs("svg", { className: ElevasisLoader_default.loader, viewBox: "-10 -5 60 50", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
123
- /* @__PURE__ */ jsx("polyline", { className: `${ElevasisLoader_default.chevron} ${ElevasisLoader_default.c1}`, points: "5,36 20,25 35,36" }),
124
- /* @__PURE__ */ jsx("polyline", { className: `${ElevasisLoader_default.chevron} ${ElevasisLoader_default.c2}`, points: "9,23 20,14 31,23" }),
125
- /* @__PURE__ */ jsx("polyline", { className: `${ElevasisLoader_default.chevron} ${ElevasisLoader_default.c3}`, points: "13,11 20,5 27,11" })
120
+ // src/components/display/ElevasisLoader.module.css.js
121
+ var ElevasisLoader_module_css_default = { "wrapper": "wrapper", "loader": "loader", "chevron": "chevron", "c1": "c1", "c2": "c2", "c3": "c3" };
122
+ var ElevasisLoader = forwardRef(({ style, className, ...others }, ref) => /* @__PURE__ */ jsx("div", { ref, style, className: `${ElevasisLoader_module_css_default.wrapper} ${className ?? ""}`, ...others, children: /* @__PURE__ */ jsxs("svg", { className: ElevasisLoader_module_css_default.loader, viewBox: "-10 -5 60 50", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
123
+ /* @__PURE__ */ jsx("polyline", { className: `${ElevasisLoader_module_css_default.chevron} ${ElevasisLoader_module_css_default.c1}`, points: "5,36 20,25 35,36" }),
124
+ /* @__PURE__ */ jsx("polyline", { className: `${ElevasisLoader_module_css_default.chevron} ${ElevasisLoader_module_css_default.c2}`, points: "9,23 20,14 31,23" }),
125
+ /* @__PURE__ */ jsx("polyline", { className: `${ElevasisLoader_module_css_default.chevron} ${ElevasisLoader_module_css_default.c3}`, points: "13,11 20,5 27,11" })
126
126
  ] }) }));
127
127
  ElevasisLoader.displayName = "ElevasisLoader";
128
128
 
@@ -1,10 +1,10 @@
1
- export { ElevasisLoader, NavigationButton } from '../chunk-R56VC63S.js';
1
+ export { ElevasisLoader, NavigationButton } from '../chunk-YGYF6G7W.js';
2
2
  import '../chunk-TYV5NJV2.js';
3
3
  import { useMarkAsRead, useMarkAllAsRead, useNotificationCount, useNotifications, useSubmitAction, useDeleteTask } from '../chunk-G4TAF3T6.js';
4
4
  import '../chunk-JGJSZ3UE.js';
5
5
  import '../chunk-LHQTTUL2.js';
6
- import { Graph_default, Graph_exports, useDirectedChainHighlighting, useNodeSelection, useFitViewTrigger, useGraphHighlighting, calculateGraphHeight, GRAPH_CONSTANTS } from '../chunk-MS45MNFM.js';
7
- export { Graph_exports as graphStyles } from '../chunk-MS45MNFM.js';
6
+ import { Graph_module_css_default, Graph_module_css_exports, useDirectedChainHighlighting, useNodeSelection, useFitViewTrigger, useGraphHighlighting, calculateGraphHeight, GRAPH_CONSTANTS } from '../chunk-2ISUX46O.js';
7
+ export { Graph_module_css_exports as graphStyles } from '../chunk-2ISUX46O.js';
8
8
  import { STATUS_COLORS, getStatusIcon, formatDuration, getStatusColors, AGENT_CONSTANTS, shouldAnimateEdge, ResourceStatusColors, TIMELINE_CONSTANTS, calculateBarPosition, CONTAINER_CONSTANTS, useExecutionPath, useUnifiedWorkflowLayout, WORKFLOW_CONSTANTS, useReactFlowAgent } from '../chunk-YJFTZUJJ.js';
9
9
  export { CONTAINER_CONSTANTS, SHARED_VIZ_CONSTANTS } from '../chunk-YJFTZUJJ.js';
10
10
  import '../chunk-TIRMFDM4.js';
@@ -237,8 +237,8 @@ function APIErrorAlert({
237
237
  ] });
238
238
  }
239
239
 
240
- // src/components/display/StatCard.module.css
241
- var StatCard_default = {};
240
+ // src/components/display/StatCard.module.css.js
241
+ var StatCard_module_css_default = { "heroCard": "heroCard", "iconRing": "iconRing", "iconRingSm": "iconRingSm", "heroValue": "heroValue", "heroValueSm": "heroValueSm", "heroLabel": "heroLabel", "heroLabelSm": "heroLabelSm" };
242
242
  function StatCard(props) {
243
243
  if (props.variant === "hero") {
244
244
  return /* @__PURE__ */ jsx(HeroStatCard, { ...props });
@@ -264,7 +264,7 @@ function HeroStatCard({
264
264
  const sm = size === "sm";
265
265
  const iconSize = sm ? 36 : 46;
266
266
  if (isLoading) {
267
- return /* @__PURE__ */ jsx(Paper, { p: sm ? "md" : "lg", className: StatCard_default.heroCard, children: /* @__PURE__ */ jsxs(Group, { gap: sm ? "sm" : "md", wrap: "nowrap", children: [
267
+ return /* @__PURE__ */ jsx(Paper, { p: sm ? "md" : "lg", className: StatCard_module_css_default.heroCard, children: /* @__PURE__ */ jsxs(Group, { gap: sm ? "sm" : "md", wrap: "nowrap", children: [
268
268
  /* @__PURE__ */ jsx(Skeleton, { circle: true, height: iconSize }),
269
269
  /* @__PURE__ */ jsxs(Stack, { gap: 4, children: [
270
270
  /* @__PURE__ */ jsx(Skeleton, { height: sm ? 24 : 32, width: 60 }),
@@ -272,21 +272,21 @@ function HeroStatCard({
272
272
  ] })
273
273
  ] }) });
274
274
  }
275
- return /* @__PURE__ */ jsx(Paper, { p: sm ? "md" : "lg", className: StatCard_default.heroCard, children: /* @__PURE__ */ jsxs(Group, { gap: sm ? "sm" : "md", wrap: "nowrap", children: [
276
- /* @__PURE__ */ jsx("div", { className: sm ? StatCard_default.iconRingSm : StatCard_default.iconRing, children: /* @__PURE__ */ jsx(IconComponent, { size: sm ? 18 : 22 }) }),
275
+ return /* @__PURE__ */ jsx(Paper, { p: sm ? "md" : "lg", className: StatCard_module_css_default.heroCard, children: /* @__PURE__ */ jsxs(Group, { gap: sm ? "sm" : "md", wrap: "nowrap", children: [
276
+ /* @__PURE__ */ jsx("div", { className: sm ? StatCard_module_css_default.iconRingSm : StatCard_module_css_default.iconRing, children: /* @__PURE__ */ jsx(IconComponent, { size: sm ? 18 : 22 }) }),
277
277
  /* @__PURE__ */ jsxs(Stack, { gap: 2, style: { flex: children ? 1 : void 0 }, children: [
278
278
  /* @__PURE__ */ jsx(
279
279
  "span",
280
280
  {
281
- className: sm ? StatCard_default.heroValueSm : StatCard_default.heroValue,
281
+ className: sm ? StatCard_module_css_default.heroValueSm : StatCard_module_css_default.heroValue,
282
282
  style: valueColor ? { color: valueColor } : void 0,
283
283
  children: value
284
284
  }
285
285
  ),
286
286
  children ? /* @__PURE__ */ jsxs(Group, { gap: "sm", wrap: "nowrap", style: { flex: 1 }, children: [
287
- /* @__PURE__ */ jsx("span", { className: sm ? StatCard_default.heroLabelSm : StatCard_default.heroLabel, children: label }),
287
+ /* @__PURE__ */ jsx("span", { className: sm ? StatCard_module_css_default.heroLabelSm : StatCard_module_css_default.heroLabel, children: label }),
288
288
  /* @__PURE__ */ jsx("div", { style: { flex: 1 }, children })
289
- ] }) : /* @__PURE__ */ jsx("span", { className: sm ? StatCard_default.heroLabelSm : StatCard_default.heroLabel, children: label })
289
+ ] }) : /* @__PURE__ */ jsx("span", { className: sm ? StatCard_module_css_default.heroLabelSm : StatCard_module_css_default.heroLabel, children: label })
290
290
  ] })
291
291
  ] }) });
292
292
  }
@@ -1731,7 +1731,7 @@ var BaseEdge = memo(function BaseEdge2({
1731
1731
  strokeWidth: selected ? 4 : 3,
1732
1732
  strokeOpacity: 0.3,
1733
1733
  strokeDasharray: "12 6",
1734
- className: Graph_default.edgeAnimated,
1734
+ className: Graph_module_css_default.edgeAnimated,
1735
1735
  style: { filter: `drop-shadow(0 0 3px ${glowColor})` }
1736
1736
  }
1737
1737
  ),
@@ -1756,14 +1756,14 @@ var BaseEdge = memo(function BaseEdge2({
1756
1756
  strokeWidth: 2,
1757
1757
  strokeOpacity: 0.6,
1758
1758
  strokeDasharray: "4 20",
1759
- className: Graph_default.edgeAnimated,
1759
+ className: Graph_module_css_default.edgeAnimated,
1760
1760
  style: { filter: "drop-shadow(0 0 2px white)" }
1761
1761
  }
1762
1762
  ),
1763
1763
  label && /* @__PURE__ */ jsx(EdgeLabelRenderer, { children: /* @__PURE__ */ jsx(
1764
1764
  "div",
1765
1765
  {
1766
- className: `${Graph_default.edgeLabel} ${dimmed ? Graph_default.edgeLabelDimmed : ""}`,
1766
+ className: `${Graph_module_css_default.edgeLabel} ${dimmed ? Graph_module_css_default.edgeLabelDimmed : ""}`,
1767
1767
  style: {
1768
1768
  position: "absolute",
1769
1769
  transform: `translate(-50%, -50%) translate(${labelX}px, ${labelY}px)`,
@@ -1976,7 +1976,7 @@ function UnifiedWorkflowGraph({
1976
1976
  selectNodesOnDrag: false,
1977
1977
  zoomOnScroll: true,
1978
1978
  panOnDrag: true,
1979
- className: Graph_exports.graphContainer,
1979
+ className: Graph_module_css_exports.graphContainer,
1980
1980
  children: [
1981
1981
  /* @__PURE__ */ jsx(GraphBackground, {}),
1982
1982
  /* @__PURE__ */ jsx(Panel, { position: "top-right", style: { marginTop: 12, marginRight: 12 }, children: /* @__PURE__ */ jsx(
@@ -2101,7 +2101,7 @@ var AgentIterationNode = memo(function AgentIterationNode2({ data, selected }) {
2101
2101
  top: 4,
2102
2102
  right: 4
2103
2103
  },
2104
- children: /* @__PURE__ */ jsx("span", { className: Graph_exports.livePulse, children: "LIVE" })
2104
+ children: /* @__PURE__ */ jsx("span", { className: Graph_module_css_exports.livePulse, children: "LIVE" })
2105
2105
  }
2106
2106
  )
2107
2107
  ] });
@@ -2226,7 +2226,7 @@ function AgentExecutionVisualizer({
2226
2226
  selectNodesOnDrag: false,
2227
2227
  zoomOnScroll: false,
2228
2228
  panOnDrag: false,
2229
- className: Graph_exports.graphContainer,
2229
+ className: Graph_module_css_exports.graphContainer,
2230
2230
  children: [
2231
2231
  /* @__PURE__ */ jsx(GraphBackground, {}),
2232
2232
  /* @__PURE__ */ jsx(GraphFitViewButton, { padding: AGENT_CONSTANTS.FIT_VIEW_PADDING, variant: "mantine", duration: 300 }),
@@ -2947,7 +2947,7 @@ function NewKnowledgeMapGraphInner({ knowledgeMap, agentName, compact, fitViewTr
2947
2947
  /* @__PURE__ */ jsx(
2948
2948
  Box,
2949
2949
  {
2950
- className: Graph_default.graphContainer,
2950
+ className: Graph_module_css_default.graphContainer,
2951
2951
  style: {
2952
2952
  width: "100%",
2953
2953
  height: containerHeight,
@@ -1,2 +1,2 @@
1
- export { GRAPH_CONSTANTS, calculateGraphHeight, useConnectionHighlight, useDirectedChainHighlighting, useFitViewTrigger, useGraphHighlighting, useNodeSelection } from '../chunk-MS45MNFM.js';
1
+ export { GRAPH_CONSTANTS, calculateGraphHeight, useConnectionHighlight, useDirectedChainHighlighting, useFitViewTrigger, useGraphHighlighting, useNodeSelection } from '../chunk-2ISUX46O.js';
2
2
  import '../chunk-MLKGABMK.js';
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ import './chunk-TYV5NJV2.js';
7
7
  export { OperationsService, createUseFeatureAccess, executionsKeys, observabilityKeys, scheduleKeys, sortData, useActivities, useActivityTrend, useBatchDelete, useBulkDeleteExecutions, useBusinessImpact, useCancelExecution, useCancelSchedule, useCommandQueue, useCommandQueueTotals, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateSchedule, useDashboardMetrics, useDeleteExecution, useDeleteSchedule, useDeleteTask, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorNotification, useErrorTrends, useExecuteAsync, useExecution, useExecutionHealth, useExecutionLogs, useExecutions, useGetExecutionHistory, useGetSchedule, useListSchedules, useMarkAllAsRead, useMarkAsRead, useNotificationCount, useNotifications, usePaginationState, usePatchTask, usePauseSchedule, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResourceDefinition, useResources, useResumeSchedule, useRetryExecution, useSSEConnection, useSortedData, useSubmitAction, useSuccessNotification, useTableSelection, useTableSort, useTopFailingResources, useUnresolveError, useUpdateAnchor, useUpdateSchedule, useWarningNotification } from './chunk-G4TAF3T6.js';
8
8
  import './chunk-JGJSZ3UE.js';
9
9
  export { TanStackRouterBridge } from './chunk-LHQTTUL2.js';
10
- export { GRAPH_CONSTANTS, calculateGraphHeight, useConnectionHighlight, useDirectedChainHighlighting, useFitViewTrigger, useGraphHighlighting, useNodeSelection } from './chunk-MS45MNFM.js';
10
+ export { GRAPH_CONSTANTS, calculateGraphHeight, useConnectionHighlight, useDirectedChainHighlighting, useFitViewTrigger, useGraphHighlighting, useNodeSelection } from './chunk-2ISUX46O.js';
11
11
  export { AGENT_CONSTANTS, CONTAINER_CONSTANTS, SHARED_VIZ_CONSTANTS, STATUS_COLORS, TIMELINE_CONSTANTS, WORKFLOW_CONSTANTS, calculateBarPosition, formatDuration, getEdgeColor, getEdgeOpacity, getResourceStatusColor, getStatusColors, getStatusIcon, shouldAnimateEdge, useAgentIterationData, useExecutionPath, useMergedExecution, useReactFlowAgent, useTimelineData, useUnifiedWorkflowLayout, useWorkflowStepsLayout } from './chunk-YJFTZUJJ.js';
12
12
  export { ElevasisProvider, ElevasisUIProvider, mantineNotificationAdapter } from './chunk-54S7KNJV.js';
13
13
  export { TOKEN_VAR_MAP, componentThemes, createCssVariablesResolver, generateShades, getPreset, mantineThemeOverride } from './chunk-KB5NKPTN.js';
@@ -1,4 +1,4 @@
1
- import { NavigationButton, ElevasisLoader } from '../chunk-R56VC63S.js';
1
+ import { NavigationButton, ElevasisLoader } from '../chunk-YGYF6G7W.js';
2
2
  import '../chunk-LHQTTUL2.js';
3
3
  import { useRouterContext } from '../chunk-Q7DJKLEN.js';
4
4
  import '../chunk-MLKGABMK.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elevasis/ui",
3
- "version": "1.6.0",
3
+ "version": "1.7.1",
4
4
  "description": "UI components and platform-aware hooks for building custom frontends on the Elevasis platform",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -15,6 +15,10 @@
15
15
  "types": "./dist/provider/published.d.ts",
16
16
  "import": "./dist/provider/published.js"
17
17
  },
18
+ "./provider/ui": {
19
+ "types": "./dist/provider/index.d.ts",
20
+ "import": "./dist/provider/index.js"
21
+ },
18
22
  "./auth": {
19
23
  "types": "./dist/auth/index.d.ts",
20
24
  "import": "./dist/auth/index.js"
@@ -143,24 +147,24 @@
143
147
  }
144
148
  },
145
149
  "peerDependencies": {
146
- "react": "^19.2.0",
147
- "react-dom": "^19.2.0",
148
- "@xyflow/react": "^12.8.5",
150
+ "@mantine/charts": "8.2.7",
149
151
  "@mantine/core": "8.2.7",
152
+ "@mantine/form": "8.2.7",
150
153
  "@mantine/hooks": "8.2.7",
151
- "@mantine/charts": "8.2.7",
152
154
  "@mantine/notifications": "8.2.7",
153
- "@mantine/form": "8.2.7",
155
+ "@supabase/supabase-js": "^2.49.4",
154
156
  "@tabler/icons-react": "^3.27.0",
157
+ "@tanstack/react-query": "^5.76.2",
155
158
  "@tanstack/react-router": "^1.131.28",
156
- "@supabase/supabase-js": "^2.49.4",
157
159
  "@workos-inc/authkit-react": "^0.11.0",
158
- "@tanstack/react-query": "^5.76.2",
159
- "zustand": "^5.0.5",
160
- "immer": "^10.1.1",
160
+ "@xyflow/react": "^12.8.5",
161
161
  "date-fns": "^4.1.0",
162
+ "immer": "^10.1.1",
163
+ "react": "^19.2.0",
164
+ "react-dom": "^19.2.0",
165
+ "recharts": "^3.2.1",
162
166
  "zod": "^4.1.0",
163
- "recharts": "^3.2.1"
167
+ "zustand": "^5.0.5"
164
168
  },
165
169
  "devDependencies": {
166
170
  "@mantine/charts": "8.2.7",