@elevasis/ui 1.4.0 → 1.6.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.
Files changed (56) hide show
  1. package/dist/{CoreAuthKitInner-3J4RVQO6.js → CoreAuthKitInner-Y6LQYIPX.js} +1 -0
  2. package/dist/api/index.js +1 -0
  3. package/dist/auth/context.js +1 -0
  4. package/dist/auth/index.js +1 -0
  5. package/dist/charts/index.d.ts +96 -0
  6. package/dist/charts/index.js +384 -0
  7. package/dist/chunk-54S7KNJV.js +112 -0
  8. package/dist/{chunk-6IX5JZEH.js → chunk-G4TAF3T6.js} +166 -1
  9. package/dist/{chunk-Y2I5JJ3N.js → chunk-K3YVC5RW.js} +2 -2
  10. package/dist/chunk-KB5NKPTN.js +1455 -0
  11. package/dist/chunk-MLKGABMK.js +7 -0
  12. package/dist/{chunk-GIFAF5ZS.js → chunk-MS45MNFM.js} +6 -1
  13. package/dist/chunk-R56VC63S.js +129 -0
  14. package/dist/chunk-TYV5NJV2.js +1 -0
  15. package/dist/{chunk-JQLT6HBI.js → chunk-YJFTZUJJ.js} +22 -2
  16. package/dist/components/index.css +486 -0
  17. package/dist/components/index.d.ts +2047 -1
  18. package/dist/components/index.js +3350 -0
  19. package/dist/components/navigation/index.js +1 -0
  20. package/dist/execution/index.d.ts +15 -3
  21. package/dist/execution/index.js +2 -1
  22. package/dist/graph/index.js +2 -1
  23. package/dist/hooks/index.d.ts +270 -0
  24. package/dist/hooks/index.js +3 -2
  25. package/dist/hooks/published.d.ts +546 -2
  26. package/dist/hooks/published.js +3 -2
  27. package/dist/index.css +62 -0
  28. package/dist/index.d.ts +351 -4
  29. package/dist/index.js +12 -1038
  30. package/dist/initialization/index.d.ts +270 -0
  31. package/dist/initialization/index.js +1 -0
  32. package/dist/layout/index.css +44 -0
  33. package/dist/layout/index.d.ts +330 -0
  34. package/dist/layout/index.js +1440 -0
  35. package/dist/organization/index.js +1 -0
  36. package/dist/profile/index.d.ts +270 -0
  37. package/dist/profile/index.js +1 -0
  38. package/dist/provider/index.css +61 -0
  39. package/dist/provider/index.d.ts +54 -2
  40. package/dist/provider/index.js +5 -3
  41. package/dist/provider/published.d.ts +6 -0
  42. package/dist/provider/published.js +3 -2
  43. package/dist/router/context.js +1 -0
  44. package/dist/router/index.js +1 -0
  45. package/dist/sse/index.js +1 -1
  46. package/dist/supabase/index.d.ts +525 -0
  47. package/dist/supabase/index.js +1 -0
  48. package/dist/theme/index.d.ts +107 -0
  49. package/dist/theme/index.js +3 -0
  50. package/dist/typeform/index.js +1 -0
  51. package/dist/typeform/schemas.js +1 -0
  52. package/dist/types/index.d.ts +3636 -368
  53. package/dist/utils/index.js +1 -0
  54. package/package.json +96 -3
  55. package/dist/chunk-XXDDMASA.js +0 -170
  56. /package/dist/{chunk-BUZONXAW.js → chunk-ARQRKA6J.js} +0 -0
@@ -0,0 +1,7 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __export = (target, all) => {
3
+ for (var name in all)
4
+ __defProp(target, name, { get: all[name], enumerable: true });
5
+ };
6
+
7
+ export { __export };
@@ -1,3 +1,4 @@
1
+ import { __export } from './chunk-MLKGABMK.js';
1
2
  import { useState, useMemo, useCallback, useEffect } from 'react';
2
3
 
3
4
  // src/graph/constants.ts
@@ -85,6 +86,10 @@ function useConnectionHighlight(nodes, edges) {
85
86
  }
86
87
 
87
88
  // src/graph/Graph.module.css
89
+ var Graph_exports = {};
90
+ __export(Graph_exports, {
91
+ default: () => Graph_default
92
+ });
88
93
  var Graph_default = {};
89
94
 
90
95
  // src/graph/hooks/useGraphHighlighting.ts
@@ -310,4 +315,4 @@ function calculateGraphHeight({
310
315
  return Math.min(calculated, maxHeight);
311
316
  }
312
317
 
313
- export { GRAPH_CONSTANTS, calculateGraphHeight, useConnectionHighlight, useDirectedChainHighlighting, useFitViewTrigger, useGraphHighlighting, useNodeSelection };
318
+ export { GRAPH_CONSTANTS, Graph_default, Graph_exports, calculateGraphHeight, useConnectionHighlight, useDirectedChainHighlighting, useFitViewTrigger, useGraphHighlighting, useNodeSelection };
@@ -0,0 +1,129 @@
1
+ import { UnstyledButton, Group, Box, ThemeIcon } from '@mantine/core';
2
+ import { IconChevronRight } from '@tabler/icons-react';
3
+ import { jsx, jsxs } from 'react/jsx-runtime';
4
+ import { forwardRef } from 'react';
5
+
6
+ // src/components/display/NavigationButton.tsx
7
+ var NavigationButton = ({
8
+ icon: Icon,
9
+ label,
10
+ isCollapsed = false,
11
+ hasSubItems = false,
12
+ isExpanded = false,
13
+ isActive = false,
14
+ hasActiveBackground = false,
15
+ onClick,
16
+ style,
17
+ transitionDuration = 200
18
+ }) => {
19
+ const activeColor = "var(--color-primary)";
20
+ const textColor = isActive ? activeColor : "var(--color-text)";
21
+ const bgColor = hasActiveBackground ? `color-mix(in srgb, ${activeColor} 10%, transparent)` : "transparent";
22
+ return /* @__PURE__ */ jsx(
23
+ UnstyledButton,
24
+ {
25
+ onClick: (event) => {
26
+ event.preventDefault();
27
+ event.stopPropagation();
28
+ onClick?.();
29
+ },
30
+ style: {
31
+ height: 46,
32
+ display: "flex",
33
+ alignItems: "center",
34
+ width: "100%",
35
+ padding: "var(--mantine-spacing-xs)",
36
+ color: textColor,
37
+ backgroundColor: bgColor,
38
+ transition: `all var(--duration-fast) var(--easing)`,
39
+ cursor: "pointer",
40
+ overflow: "hidden",
41
+ borderRadius: "var(--mantine-radius-default)",
42
+ ...style
43
+ },
44
+ onMouseEnter: (e) => {
45
+ if (!hasActiveBackground) {
46
+ e.currentTarget.style.backgroundColor = "var(--color-surface-hover)";
47
+ }
48
+ },
49
+ onMouseLeave: (e) => {
50
+ if (!hasActiveBackground) {
51
+ e.currentTarget.style.backgroundColor = "transparent";
52
+ }
53
+ },
54
+ children: /* @__PURE__ */ jsxs(Group, { justify: "space-between", gap: 0, style: { width: "100%", overflow: "hidden" }, children: [
55
+ /* @__PURE__ */ jsxs(
56
+ Box,
57
+ {
58
+ style: {
59
+ display: "flex",
60
+ alignItems: "center",
61
+ justifyContent: "flex-start",
62
+ flex: hasSubItems && !isCollapsed ? 1 : "initial",
63
+ minWidth: 0,
64
+ overflow: "hidden"
65
+ },
66
+ children: [
67
+ /* @__PURE__ */ jsx(
68
+ ThemeIcon,
69
+ {
70
+ variant: "light",
71
+ size: 30,
72
+ style: {
73
+ backgroundColor: isActive ? activeColor : "var(--color-surface)",
74
+ color: isActive ? "white" : activeColor,
75
+ marginRight: isCollapsed ? 0 : "var(--mantine-spacing-sm)",
76
+ transition: `margin ${transitionDuration}ms var(--easing)`,
77
+ flexShrink: 0
78
+ },
79
+ children: /* @__PURE__ */ jsx(Icon, { size: 18, stroke: 1.5 })
80
+ }
81
+ ),
82
+ !isCollapsed && /* @__PURE__ */ jsx(
83
+ Box,
84
+ {
85
+ style: {
86
+ fontFamily: "var(--elevasis-font-family-subtitle)",
87
+ fontSize: "var(--mantine-font-size-md)",
88
+ fontWeight: isActive ? 600 : 500,
89
+ color: textColor,
90
+ transition: `opacity ${transitionDuration}ms var(--easing)`,
91
+ whiteSpace: "nowrap",
92
+ overflow: "hidden",
93
+ textOverflow: "ellipsis"
94
+ },
95
+ children: label
96
+ }
97
+ )
98
+ ]
99
+ }
100
+ ),
101
+ hasSubItems && !isCollapsed && /* @__PURE__ */ jsx(
102
+ IconChevronRight,
103
+ {
104
+ size: 14,
105
+ stroke: 1.5,
106
+ style: {
107
+ transform: isExpanded ? "rotate(90deg)" : "rotate(0deg)",
108
+ transition: `transform var(--duration-fast) var(--easing)`,
109
+ color: "var(--color-text-subtle)",
110
+ flexShrink: 0,
111
+ marginLeft: "auto"
112
+ }
113
+ }
114
+ )
115
+ ] })
116
+ }
117
+ );
118
+ };
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" })
126
+ ] }) }));
127
+ ElevasisLoader.displayName = "ElevasisLoader";
128
+
129
+ export { ElevasisLoader, NavigationButton };
@@ -0,0 +1 @@
1
+
@@ -59,6 +59,12 @@ function isToolCallEvent(ctx) {
59
59
  return "eventType" in ctx && ctx.eventType === "tool-call";
60
60
  }
61
61
 
62
+ // ../core/src/execution/engine/base/types.ts
63
+ var ResourceStatusColors = {
64
+ dev: "var(--color-primary)",
65
+ prod: "var(--color-success)"
66
+ };
67
+
62
68
  // src/execution/hooks/useExecutionPath.ts
63
69
  function useExecutionPath(executionLogs, workflowDefinition) {
64
70
  return useMemo(() => {
@@ -615,12 +621,13 @@ function useUnifiedWorkflowLayout(workflow, executionPath, selectedStepId, mode
615
621
  }, [baseNodes, baseEdges, workflow, executionPath, selectedStepId, graphHeight, mode]);
616
622
  }
617
623
 
618
- // src/execution/constants.ts
624
+ // src/components/execution/constants.ts
619
625
  var TIMELINE_CONSTANTS = {
620
626
  // Bar dimensions
621
627
  BAR_HEIGHT: 24,
622
628
  ROW_GAP: 8,
623
629
  MIN_BAR_WIDTH_PERCENT: 0.5,
630
+ // Minimum bar width as percentage (0.5% = ~8px on typical screen)
624
631
  // Label column
625
632
  LABEL_WIDTH: 200,
626
633
  // Indentation for nested rows
@@ -630,28 +637,41 @@ var TIMELINE_CONSTANTS = {
630
637
  CONTAINER_BORDER_RADIUS: 8
631
638
  };
632
639
  var SHARED_VIZ_CONSTANTS = {
640
+ // Node dimensions
633
641
  NODE_WIDTH: 160,
634
642
  NODE_SPACING: 220,
635
643
  HANDLE_SIZE: 8,
644
+ // Zoom settings
636
645
  MIN_ZOOM: 0.5,
637
646
  MAX_ZOOM: 2
638
647
  };
648
+ var CONTAINER_CONSTANTS = {
649
+ CONTAINER_HEIGHT: 400
650
+ };
639
651
  var AGENT_CONSTANTS = {
652
+ // Inherited from shared constants
640
653
  ...SHARED_VIZ_CONSTANTS,
654
+ // Agent-specific layout
641
655
  NODE_HEIGHT: 140,
642
656
  CONTAINER_HEIGHT: 430,
643
657
  FIT_VIEW_PADDING: 0.2,
658
+ // Icon and circle sizes
644
659
  ICON_SIZE: 16,
645
660
  STATUS_ICON_SIZE: 16,
646
661
  CIRCLE_SIZE: 40,
662
+ // Animation
647
663
  PULSE_DURATION: "2s",
648
664
  TRANSITION_DURATION: "0.2s"
649
665
  };
650
666
  var WORKFLOW_CONSTANTS = {
667
+ // Inherited from shared constants
651
668
  ...SHARED_VIZ_CONSTANTS,
669
+ // Workflow-specific layout
652
670
  FIT_VIEW_PADDING: 0.4,
671
+ // Workflow-specific dimensions
653
672
  ICON_SIZE: 20,
654
673
  CIRCLE_SIZE: 40,
674
+ // Animation
655
675
  SPIN_DURATION: "1s"
656
676
  };
657
677
 
@@ -847,4 +867,4 @@ function calculateBarPosition(startTime, endTime, executionStart, executionEnd)
847
867
  };
848
868
  }
849
869
 
850
- export { AGENT_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 };
870
+ export { AGENT_CONSTANTS, CONTAINER_CONSTANTS, ResourceStatusColors, SHARED_VIZ_CONSTANTS, STATUS_COLORS, TIMELINE_CONSTANTS, WORKFLOW_CONSTANTS, calculateBarPosition, formatDuration, getEdgeColor, getEdgeOpacity, getResourceStatusColor, getStatusColors, getStatusIcon, shouldAnimateEdge, useAgentIterationData, useExecutionPath, useMergedExecution, useReactFlowAgent, useTimelineData, useUnifiedWorkflowLayout, useWorkflowStepsLayout };