@elevasis/ui 2.15.0 → 2.17.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 (78) hide show
  1. package/dist/api/index.js +3 -2
  2. package/dist/app/index.js +9 -7
  3. package/dist/auth/index.js +4 -3
  4. package/dist/charts/index.js +11 -10
  5. package/dist/{chunk-C7BX547M.js → chunk-2TDZBYXI.js} +9 -3
  6. package/dist/{chunk-5IBTTMWX.js → chunk-34NQLV2W.js} +2 -2
  7. package/dist/{chunk-FL67C3WY.js → chunk-6IA2OMAE.js} +1 -1
  8. package/dist/{chunk-L4XXM55J.js → chunk-7YQKVWSD.js} +1 -1
  9. package/dist/{chunk-XJ7KC54A.js → chunk-ABUDMATM.js} +7 -8
  10. package/dist/{chunk-TUXTSEAF.js → chunk-DK2HVHCY.js} +1 -1
  11. package/dist/{chunk-GHIPBT5V.js → chunk-E4WQGJNS.js} +1 -1
  12. package/dist/{chunk-5SXYCICG.js → chunk-FNWWVX5N.js} +8 -6
  13. package/dist/{chunk-IOKL7BKE.js → chunk-GCBWGGI6.js} +133 -1
  14. package/dist/chunk-GRGRBWIO.js +383 -0
  15. package/dist/{chunk-SLVC5OJ2.js → chunk-HQ7M6PBW.js} +1 -1
  16. package/dist/chunk-IRW7JMQ4.js +28 -0
  17. package/dist/{chunk-YNPVQDNB.js → chunk-JU6UB4YA.js} +4 -4
  18. package/dist/{chunk-SFW573HS.js → chunk-MDO4UCEJ.js} +4 -4
  19. package/dist/{chunk-STZJ7SY5.js → chunk-MJ6YV2B5.js} +3 -2
  20. package/dist/{chunk-D7HBX5US.js → chunk-MUZIYL5Q.js} +5 -4
  21. package/dist/{chunk-DKQQK3WX.js → chunk-OCCZRPER.js} +1 -1
  22. package/dist/{chunk-FFXHKADZ.js → chunk-OXWQQCDR.js} +13 -32
  23. package/dist/{chunk-ZB5GAV7J.js → chunk-P3TFNFZS.js} +6 -5
  24. package/dist/{chunk-QEPXAWE2.js → chunk-QHSW4WHM.js} +3 -26
  25. package/dist/{chunk-LXHZYSMQ.js → chunk-QSTH6T77.js} +2 -52
  26. package/dist/{chunk-U2RXVZGY.js → chunk-R7GKX4HW.js} +66 -461
  27. package/dist/{chunk-X75JEGHS.js → chunk-S6CYH4RI.js} +7 -6
  28. package/dist/{chunk-MTJ43R2E.js → chunk-SLH2QLKV.js} +1 -1
  29. package/dist/{chunk-32NXXCQU.js → chunk-TP5NMF6K.js} +6 -7
  30. package/dist/{chunk-SQQGLGHW.js → chunk-TTP62HWW.js} +3 -3
  31. package/dist/{chunk-NVOCKXUQ.js → chunk-VDM6DQES.js} +1 -1
  32. package/dist/chunk-ZTWA5H77.js +94 -0
  33. package/dist/components/index.d.ts +2640 -2640
  34. package/dist/components/index.js +38 -35
  35. package/dist/execution/index.js +2 -2
  36. package/dist/features/auth/index.js +5 -4
  37. package/dist/features/crm/index.d.ts +51 -51
  38. package/dist/features/crm/index.js +21 -19
  39. package/dist/features/dashboard/index.js +23 -21
  40. package/dist/features/delivery/index.d.ts +2604 -2604
  41. package/dist/features/delivery/index.js +21 -19
  42. package/dist/features/lead-gen/index.js +29 -26
  43. package/dist/features/monitoring/index.js +26 -24
  44. package/dist/features/monitoring/requests/index.d.ts +26 -26
  45. package/dist/features/monitoring/requests/index.js +21 -19
  46. package/dist/features/operations/index.d.ts +10 -10
  47. package/dist/features/operations/index.js +28 -25
  48. package/dist/features/seo/index.js +1 -1
  49. package/dist/features/settings/index.d.ts +34 -34
  50. package/dist/features/settings/index.js +22 -20
  51. package/dist/hooks/delivery/index.css +589 -0
  52. package/dist/hooks/delivery/index.d.ts +3044 -0
  53. package/dist/hooks/delivery/index.js +4 -0
  54. package/dist/hooks/index.d.ts +3103 -3120
  55. package/dist/hooks/index.js +20 -18
  56. package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +506 -0
  57. package/dist/hooks/operations/command-view/utils/transformCommandViewData.js +1 -0
  58. package/dist/hooks/published.d.ts +3103 -3120
  59. package/dist/hooks/published.js +20 -18
  60. package/dist/index.d.ts +3409 -3361
  61. package/dist/index.js +21 -19
  62. package/dist/initialization/index.js +4 -3
  63. package/dist/layout/index.js +3 -3
  64. package/dist/organization/index.js +4 -3
  65. package/dist/profile/index.js +2 -1
  66. package/dist/provider/ElevasisServiceContext.d.ts +54 -0
  67. package/dist/provider/ElevasisServiceContext.js +1 -0
  68. package/dist/provider/index.d.ts +244 -240
  69. package/dist/provider/index.js +17 -16
  70. package/dist/provider/published.d.ts +244 -240
  71. package/dist/provider/published.js +15 -14
  72. package/dist/types/index.d.ts +2349 -2332
  73. package/dist/utils/index.d.ts +73 -1
  74. package/dist/utils/index.js +2 -1
  75. package/dist/zustand/index.d.ts +7 -7
  76. package/package.json +3 -3
  77. package/dist/{chunk-4BF74JVD.js → chunk-6GUW5GGF.js} +1 -1
  78. package/dist/{chunk-ELJIFLCB.js → chunk-KRWALB24.js} +6 -6
@@ -48,6 +48,58 @@ declare function formatTimeAgo(date: string | Date | null | undefined): string;
48
48
 
49
49
  declare const validateEmail: (email: string) => boolean;
50
50
 
51
+ /**
52
+ * Debounce utility for delaying function execution
53
+ *
54
+ * Creates a debounced version of a function that delays invoking until
55
+ * after `wait` milliseconds have elapsed since the last time it was invoked.
56
+ */
57
+ /**
58
+ * Creates a debounced function that delays invoking `fn` until after `wait`
59
+ * milliseconds have elapsed since the last time the debounced function was invoked.
60
+ *
61
+ * @param fn - The function to debounce
62
+ * @param wait - The number of milliseconds to delay
63
+ * @returns A debounced version of the function with a `cancel` method
64
+ *
65
+ * @example
66
+ * const debouncedSearch = debounce((query: string) => {
67
+ * console.log('Searching for:', query)
68
+ * }, 300)
69
+ *
70
+ * debouncedSearch('a')
71
+ * debouncedSearch('ab')
72
+ * debouncedSearch('abc') // Only this one executes after 300ms
73
+ *
74
+ * // Cancel pending execution
75
+ * debouncedSearch.cancel()
76
+ */
77
+ declare function debounce<T extends (...args: Parameters<T>) => void>(fn: T, wait: number): ((...args: Parameters<T>) => void) & {
78
+ cancel: () => void;
79
+ };
80
+
81
+ /**
82
+ * Time range selector for dashboard metrics
83
+ */
84
+ type TimeRange = '1h' | '24h' | '7d' | '30d';
85
+ /**
86
+ * ISO 8601 date range for API queries
87
+ */
88
+ interface TimeRangeDates {
89
+ startDate: string;
90
+ endDate: string;
91
+ }
92
+
93
+ /**
94
+ * Base Execution Engine type definitions
95
+ * Core types shared across all Execution Engine resources
96
+ */
97
+
98
+ declare const ResourceStatusColors: {
99
+ readonly dev: "var(--color-primary)";
100
+ readonly prod: "var(--color-success)";
101
+ };
102
+
51
103
  /**
52
104
  * Resource Registry type definitions
53
105
  */
@@ -143,6 +195,24 @@ declare function getResourceColor(type: ResourceDefinitionType): NodeColorType;
143
195
  */
144
196
  type APIErrorCode = 'VALIDATION_ERROR' | 'AUTHENTICATION_FAILED' | 'FORBIDDEN' | 'NOT_FOUND' | 'CONFLICT' | 'RATE_LIMIT_EXCEEDED' | 'INTERNAL_SERVER_ERROR' | 'SERVICE_UNAVAILABLE';
145
197
 
198
+ /**
199
+ * Time range utility functions
200
+ * Converts TimeRange enum to ISO 8601 date strings and labels
201
+ */
202
+
203
+ /**
204
+ * Convert TimeRange to start and end ISO 8601 date strings
205
+ * @param range - Time range enum (1h, 24h, 7d, 30d)
206
+ * @returns Object with startDate and endDate as ISO 8601 strings
207
+ */
208
+ declare function getTimeRangeDates(range: TimeRange): TimeRangeDates;
209
+ /**
210
+ * Get a human-readable label for a time range
211
+ * @param range - Time range enum
212
+ * @returns Human-readable label
213
+ */
214
+ declare function getTimeRangeLabel(range: TimeRange): string;
215
+
146
216
  /**
147
217
  * API Client Error class for type-safe error handling
148
218
  * Used by API clients to provide structured error information
@@ -272,5 +342,7 @@ declare function suppressKnownWarnings(): void;
272
342
  */
273
343
  declare function restoreConsole(): void;
274
344
 
275
- export { APIClientError, API_URL, DEBOUNCE_FILTER, DEBOUNCE_SLIDER, GC_TIME_LONG, GC_TIME_MEDIUM, GC_TIME_SHORT, LIMIT_ACTIVITY_FEED, OAUTH_FLOW_TIMEOUT, OAUTH_POPUP_CHECK_INTERVAL, PAGE_SIZE_DEFAULT, REFETCH_INTERVAL_DASHBOARD, REFETCH_INTERVAL_REALTIME, REFETCH_INTERVAL_RUNNING, REFETCH_INTERVAL_RUNNING_FAST, SSE_CLOSE_GRACE_PERIOD, SSE_TOKEN_REFRESH_DELAY, STALE_TIME_ADMIN, STALE_TIME_DEFAULT, STALE_TIME_MONITORING, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, formatChartAxisDate, formatDate, formatDateTime, formatErrorMessage, formatRelativeTime, formatTimeAgo, getErrorInfo, getErrorTitle, getResourceColor, getResourceIcon, isAPIClientError, restoreConsole, suppressKnownWarnings, validateEmail };
345
+ declare function setupBrowserMocks(): void;
346
+
347
+ export { APIClientError, API_URL, DEBOUNCE_FILTER, DEBOUNCE_SLIDER, GC_TIME_LONG, GC_TIME_MEDIUM, GC_TIME_SHORT, LIMIT_ACTIVITY_FEED, OAUTH_FLOW_TIMEOUT, OAUTH_POPUP_CHECK_INTERVAL, PAGE_SIZE_DEFAULT, REFETCH_INTERVAL_DASHBOARD, REFETCH_INTERVAL_REALTIME, REFETCH_INTERVAL_RUNNING, REFETCH_INTERVAL_RUNNING_FAST, ResourceStatusColors, SSE_CLOSE_GRACE_PERIOD, SSE_TOKEN_REFRESH_DELAY, STALE_TIME_ADMIN, STALE_TIME_DEFAULT, STALE_TIME_MONITORING, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, debounce, formatChartAxisDate, formatDate, formatDateTime, formatErrorMessage, formatRelativeTime, formatTimeAgo, getErrorInfo, getErrorTitle, getResourceColor, getResourceIcon, getTimeRangeDates, getTimeRangeLabel, isAPIClientError, restoreConsole, setupBrowserMocks, suppressKnownWarnings, validateEmail };
276
348
  export type { TablerIcon };
@@ -1 +1,2 @@
1
- export { APIClientError, API_URL, DEBOUNCE_FILTER, DEBOUNCE_SLIDER, GC_TIME_LONG, GC_TIME_MEDIUM, GC_TIME_SHORT, LIMIT_ACTIVITY_FEED, OAUTH_FLOW_TIMEOUT, OAUTH_POPUP_CHECK_INTERVAL, PAGE_SIZE_DEFAULT, REFETCH_INTERVAL_DASHBOARD, REFETCH_INTERVAL_REALTIME, REFETCH_INTERVAL_RUNNING, REFETCH_INTERVAL_RUNNING_FAST, SSE_CLOSE_GRACE_PERIOD, SSE_TOKEN_REFRESH_DELAY, STALE_TIME_ADMIN, STALE_TIME_DEFAULT, STALE_TIME_MONITORING, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, formatChartAxisDate, formatDate, formatDateTime, formatErrorMessage, formatRelativeTime, formatTimeAgo, getErrorInfo, getErrorTitle, getResourceColor, getResourceIcon, isAPIClientError, restoreConsole, suppressKnownWarnings, validateEmail } from '../chunk-IOKL7BKE.js';
1
+ export { APIClientError, API_URL, DEBOUNCE_FILTER, DEBOUNCE_SLIDER, GC_TIME_LONG, GC_TIME_MEDIUM, GC_TIME_SHORT, LIMIT_ACTIVITY_FEED, OAUTH_FLOW_TIMEOUT, OAUTH_POPUP_CHECK_INTERVAL, PAGE_SIZE_DEFAULT, REFETCH_INTERVAL_DASHBOARD, REFETCH_INTERVAL_REALTIME, REFETCH_INTERVAL_RUNNING, REFETCH_INTERVAL_RUNNING_FAST, SSE_CLOSE_GRACE_PERIOD, SSE_TOKEN_REFRESH_DELAY, STALE_TIME_ADMIN, STALE_TIME_DEFAULT, STALE_TIME_MONITORING, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, debounce, formatChartAxisDate, formatDate, formatDateTime, formatErrorMessage, formatRelativeTime, formatTimeAgo, getErrorInfo, getErrorTitle, getResourceColor, getResourceIcon, getTimeRangeDates, getTimeRangeLabel, isAPIClientError, restoreConsole, setupBrowserMocks, suppressKnownWarnings, validateEmail } from '../chunk-GCBWGGI6.js';
2
+ export { ResourceStatusColors } from '../chunk-KRWALB24.js';
@@ -50,13 +50,13 @@ declare function resetThemeState(state: Draft<{
50
50
  }>, options?: ThemeSliceOptions): void;
51
51
  declare function createThemeSlice(set: ImmerSet$1, options?: ThemeSliceOptions): ThemeSliceState;
52
52
 
53
- // ============================================================================
54
- // API Request/Response Types (Dashboard Observability)
55
- // ============================================================================
56
-
57
- /**
58
- * Time range selector for dashboard metrics
59
- */
53
+ // ============================================================================
54
+ // API Request/Response Types (Dashboard Observability)
55
+ // ============================================================================
56
+
57
+ /**
58
+ * Time range selector for dashboard metrics
59
+ */
60
60
  type TimeRange = '1h' | '24h' | '7d' | '30d'
61
61
 
62
62
  interface TimeRangeSliceState {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elevasis/ui",
3
- "version": "2.15.0",
3
+ "version": "2.17.0",
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",
@@ -206,9 +206,9 @@
206
206
  "tsup": "^8.0.0",
207
207
  "typescript": "5.9.2",
208
208
  "vite": "^7.0.0",
209
- "@repo/core": "0.7.0",
209
+ "@repo/eslint-config": "0.0.0",
210
210
  "@repo/typescript-config": "0.0.0",
211
- "@repo/eslint-config": "0.0.0"
211
+ "@repo/core": "0.8.0"
212
212
  },
213
213
  "dependencies": {
214
214
  "@dagrejs/dagre": "^1.1.4",
@@ -1,8 +1,8 @@
1
1
  import { SubshellNavItem } from './chunk-CEWTOKE7.js';
2
2
  import { NavigationButton } from './chunk-NYBEU5TE.js';
3
+ import { useRouterContext } from './chunk-Q7DJKLEN.js';
3
4
  import { useAppearance } from './chunk-QJ2KCHKX.js';
4
5
  import { sidebarItemGap, sidebarSubLinkPaddingY, sidebarSubLinkPaddingX, sidebarSubLinkIndent, sidebarHoverDelay, sidebarTransitionDuration, sidebarCollapsedWidth, sidebarWidth, topbarHeight, sidebarToggleIconSize, sidebarSectionPadding, sidebarGroupChevronSize, sidebarIconInnerSize } from './chunk-DT3QYZVU.js';
5
- import { useRouterContext } from './chunk-Q7DJKLEN.js';
6
6
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
7
7
  import { createContext, memo, useEffect, createElement, useContext, useRef, useLayoutEffect, useState } from 'react';
8
8
  import { Collapse, HoverCard, Stack, Group, Text, UnstyledButton, Tooltip, ScrollArea, Menu, Avatar, Box, useMantineColorScheme, Switch, Code } from '@mantine/core';
@@ -1,3 +1,9 @@
1
+ // ../core/src/execution/engine/base/types.ts
2
+ var ResourceStatusColors = {
3
+ dev: "var(--color-primary)",
4
+ prod: "var(--color-success)"
5
+ };
6
+
1
7
  // ../core/src/execution/engine/workflow/logging.ts
2
8
  function isStepStartedContext(ctx) {
3
9
  return ctx.contextType === "step-started" || "stepStatus" in ctx && ctx.stepStatus === "started";
@@ -42,10 +48,4 @@ function isToolCallEvent(ctx) {
42
48
  return "eventType" in ctx && ctx.eventType === "tool-call";
43
49
  }
44
50
 
45
- // ../core/src/execution/engine/base/types.ts
46
- var ResourceStatusColors = {
47
- dev: "var(--color-primary)",
48
- prod: "var(--color-success)"
49
- };
50
-
51
51
  export { ResourceStatusColors, isConditionalRouteContext, isIterationEvent, isLifecycleEvent, isStepCompletedContext, isStepFailedContext, isStepStartedContext, isToolCallEvent, toWorkflowLogMessage, toWorkflowLogMessages };