@elevasis/ui 1.2.0 → 1.3.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 (54) hide show
  1. package/dist/api/hooks/useApiClient.d.ts +54 -0
  2. package/dist/api/hooks/useApiClient.d.ts.map +1 -0
  3. package/dist/api/hooks/useApiClient.js +185 -0
  4. package/dist/api/index.d.ts +49 -11
  5. package/dist/api/index.js +3 -2
  6. package/dist/auth/index.d.ts +88 -2
  7. package/dist/auth/index.js +6 -2
  8. package/dist/{chunk-5UWFGBFM.js → chunk-4KAG5U7A.js} +18 -4
  9. package/dist/chunk-4VGWQ5AN.js +91 -0
  10. package/dist/{chunk-JKERRYVS.js → chunk-BLO4SISK.js} +7 -3
  11. package/dist/chunk-BWCC6ZJC.js +202 -0
  12. package/dist/{chunk-WNWKOCGJ.js → chunk-BZTA7IIL.js} +1 -1
  13. package/dist/chunk-DD3CCMCZ.js +15 -0
  14. package/dist/{chunk-GEFB5YIR.js → chunk-EZMRFWZQ.js} +1 -1
  15. package/dist/chunk-FDCVFCOQ.js +105 -0
  16. package/dist/chunk-FLJXZ7YC.js +150 -0
  17. package/dist/{chunk-7AI5ZYJ4.js → chunk-JVAZHVNV.js} +2 -94
  18. package/dist/{chunk-ZGHDPDTF.js → chunk-JYSYHVLU.js} +3 -3
  19. package/dist/{chunk-J3FALDQE.js → chunk-NXHL23JW.js} +7 -13
  20. package/dist/{chunk-OUHGHTE7.js → chunk-O3PY6B6E.js} +3 -2
  21. package/dist/chunk-OLD3NQLI.js +91 -0
  22. package/dist/{chunk-XVPEDNIM.js → chunk-PCBXNHKY.js} +325 -152
  23. package/dist/chunk-QQOLC46E.js +75 -0
  24. package/dist/{chunk-KSG4C5DD.js → chunk-QSVZP2NU.js} +2 -1
  25. package/dist/chunk-RNP5R5I3.js +1 -0
  26. package/dist/{chunk-YULUKCS6.js → chunk-SITSZUFW.js} +1 -1
  27. package/dist/chunk-TIRMFDM4.js +33 -0
  28. package/dist/{chunk-PYL4XW6H.js → chunk-TMFCNFLW.js} +1 -1
  29. package/dist/{chunk-S66I2PYB.js → chunk-TN3PU2WK.js} +1 -1
  30. package/dist/components/command-queue/index.js +6 -4
  31. package/dist/components/index.js +9 -7
  32. package/dist/components/notifications/index.js +4 -3
  33. package/dist/display/index.js +3 -2
  34. package/dist/hooks/index.d.ts +1 -1
  35. package/dist/hooks/index.js +5 -4
  36. package/dist/hooks/published.d.ts +1 -1
  37. package/dist/hooks/published.js +4 -3
  38. package/dist/index.d.ts +458 -120
  39. package/dist/index.js +23 -17
  40. package/dist/initialization/index.d.ts +49 -1
  41. package/dist/initialization/index.js +5 -2
  42. package/dist/organization/index.d.ts +61 -2
  43. package/dist/organization/index.js +5 -2
  44. package/dist/profile/index.d.ts +30 -2
  45. package/dist/profile/index.js +2 -1
  46. package/dist/provider/index.d.ts +123 -30
  47. package/dist/provider/index.js +11 -6
  48. package/dist/provider/published.d.ts +96 -16
  49. package/dist/provider/published.js +10 -4
  50. package/dist/utils/index.js +2 -1
  51. package/package.json +17 -4
  52. package/dist/chunk-GDV44UWF.js +0 -138
  53. package/dist/chunk-HBRMWW6V.js +0 -43
  54. package/dist/chunk-QGEFP2EU.js +0 -399
@@ -0,0 +1,33 @@
1
+ import { getErrorInfo, getErrorTitle, formatErrorMessage } from './chunk-4VGWQ5AN.js';
2
+ import { createContext, useContext } from 'react';
3
+ import { jsx } from 'react/jsx-runtime';
4
+
5
+ var consoleAdapter = {
6
+ success(title, message) {
7
+ console.log(`[Notification][Success] ${title}: ${message}`);
8
+ },
9
+ error(title, message) {
10
+ console.warn(`[Notification][Error] ${title}: ${message}`);
11
+ },
12
+ info(title, message) {
13
+ console.log(`[Notification][Info] ${title}: ${message}`);
14
+ },
15
+ warning(title, message) {
16
+ console.warn(`[Notification][Warning] ${title}: ${message}`);
17
+ },
18
+ apiError(error) {
19
+ const { message, code, requestId, fields, retryAfter } = getErrorInfo(error);
20
+ const title = getErrorTitle(code);
21
+ const formatted = formatErrorMessage(message, requestId, fields, retryAfter);
22
+ console.warn(`[Notification][API Error] ${title}: ${formatted}`);
23
+ }
24
+ };
25
+ var NotificationContext = createContext(consoleAdapter);
26
+ function NotificationProvider({ adapter, children }) {
27
+ return /* @__PURE__ */ jsx(NotificationContext.Provider, { value: adapter, children });
28
+ }
29
+ function useNotificationAdapter() {
30
+ return useContext(NotificationContext);
31
+ }
32
+
33
+ export { NotificationProvider, useNotificationAdapter };
@@ -1,4 +1,4 @@
1
- import { useMarkAsRead, useMarkAllAsRead, useNotificationCount, useNotifications } from './chunk-JKERRYVS.js';
1
+ import { useMarkAsRead, useMarkAllAsRead, useNotificationCount, useNotifications } from './chunk-BLO4SISK.js';
2
2
  import { UnstyledButton, Group, Box, Stack, Text, Center, Loader, Button, Divider, ScrollArea, Popover, Tooltip, Indicator, ActionIcon } from '@mantine/core';
3
3
  import { IconCircle, IconCircleFilled, IconBell } from '@tabler/icons-react';
4
4
  import { formatDistanceToNow } from 'date-fns';
@@ -1,4 +1,4 @@
1
- import { CustomModal } from './chunk-ZGHDPDTF.js';
1
+ import { CustomModal } from './chunk-JYSYHVLU.js';
2
2
  import { StyledMarkdown } from './chunk-3KMDHCAR.js';
3
3
  import { memo, useState, useCallback, cloneElement, useRef, useEffect, useMemo } from 'react';
4
4
  import { Stack, Group, Text, Tooltip, ActionIcon, Paper, Textarea, Box, Collapse, Center, Space, Button, Title, TextInput, Alert, Badge, Progress, Loader } from '@mantine/core';
@@ -1,10 +1,12 @@
1
- export { ActionModal, TaskCard, getIcon, iconMap } from '../../chunk-ZGHDPDTF.js';
2
- import '../../chunk-J3FALDQE.js';
1
+ export { ActionModal, TaskCard, getIcon, iconMap } from '../../chunk-JYSYHVLU.js';
2
+ import '../../chunk-NXHL23JW.js';
3
3
  export { FormFieldRenderer } from '../../chunk-PSLKGOBZ.js';
4
- import '../../chunk-OUHGHTE7.js';
4
+ import '../../chunk-O3PY6B6E.js';
5
5
  import '../../chunk-3KMDHCAR.js';
6
6
  import '../../chunk-YZ6GTZXL.js';
7
+ import '../../chunk-TIRMFDM4.js';
8
+ import '../../chunk-JVAZHVNV.js';
9
+ import '../../chunk-4VGWQ5AN.js';
7
10
  import '../../chunk-KA7LO7U5.js';
8
- import '../../chunk-7AI5ZYJ4.js';
9
11
  import '../../chunk-7PLEQFHO.js';
10
12
  import '../../chunk-Q7DJKLEN.js';
@@ -1,18 +1,20 @@
1
- export { ChatHeader, ChatInputArea, ChatInterface, ChatSidebar, ConfirmationInputModal, ConfirmationModal, MessageBubble } from '../chunk-S66I2PYB.js';
1
+ export { ChatHeader, ChatInputArea, ChatInterface, ChatSidebar, ConfirmationInputModal, ConfirmationModal, MessageBubble } from '../chunk-TN3PU2WK.js';
2
2
  export { ExecutionLogsTable, ResourceHealthChart, getHealthColor } from '../chunk-NE36BUGQ.js';
3
3
  import '../chunk-W7ZBF5AA.js';
4
- export { ActionModal, CustomModal, TaskCard, getIcon, iconMap } from '../chunk-ZGHDPDTF.js';
5
- import '../chunk-J3FALDQE.js';
4
+ export { ActionModal, CustomModal, TaskCard, getIcon, iconMap } from '../chunk-JYSYHVLU.js';
5
+ import '../chunk-NXHL23JW.js';
6
6
  export { FormFieldRenderer } from '../chunk-PSLKGOBZ.js';
7
- export { NotificationBell, NotificationItem, NotificationList, NotificationPanel } from '../chunk-PYL4XW6H.js';
8
- import '../chunk-JKERRYVS.js';
7
+ export { NotificationBell, NotificationItem, NotificationList, NotificationPanel } from '../chunk-TMFCNFLW.js';
8
+ import '../chunk-BLO4SISK.js';
9
9
  export { AgentDefinitionDisplay, CollapsibleJsonSection, ConfigCard, ContractDisplay, NewKnowledgeMapEdge, NewKnowledgeMapGraph, NewKnowledgeMapNode, ResourceDefinitionSection, ToolsListDisplay, WorkflowDefinitionDisplay, useNewKnowledgeMapLayout } from '../chunk-OXVOHOP3.js';
10
10
  import '../chunk-6BJOYF6E.js';
11
11
  import '../chunk-HUWJXLLF.js';
12
- export { APIErrorAlert, CollapsibleSection, ContextViewer, CustomSelector, DetailCardSkeleton, EmptyState, JsonViewer, ListSkeleton, NavigationButton, PageNotFound, PageTitleCaption, ResourceCard, StatCard, StatCardSkeleton, StatsCardSkeleton, TabCountBadge, TimeRangeSelector, TrendIndicator, catalogItemToResourceDefinition } from '../chunk-OUHGHTE7.js';
12
+ export { APIErrorAlert, CollapsibleSection, ContextViewer, CustomSelector, DetailCardSkeleton, EmptyState, JsonViewer, ListSkeleton, NavigationButton, PageNotFound, PageTitleCaption, ResourceCard, StatCard, StatCardSkeleton, StatsCardSkeleton, TabCountBadge, TimeRangeSelector, TrendIndicator, catalogItemToResourceDefinition } from '../chunk-O3PY6B6E.js';
13
13
  export { StyledMarkdown } from '../chunk-3KMDHCAR.js';
14
14
  import '../chunk-YZ6GTZXL.js';
15
+ import '../chunk-TIRMFDM4.js';
16
+ import '../chunk-JVAZHVNV.js';
17
+ import '../chunk-4VGWQ5AN.js';
15
18
  import '../chunk-KA7LO7U5.js';
16
- import '../chunk-7AI5ZYJ4.js';
17
19
  import '../chunk-7PLEQFHO.js';
18
20
  import '../chunk-Q7DJKLEN.js';
@@ -1,4 +1,5 @@
1
- export { NotificationBell, NotificationItem, NotificationList, NotificationPanel } from '../../chunk-PYL4XW6H.js';
2
- import '../../chunk-JKERRYVS.js';
1
+ export { NotificationBell, NotificationItem, NotificationList, NotificationPanel } from '../../chunk-TMFCNFLW.js';
2
+ import '../../chunk-BLO4SISK.js';
3
+ import '../../chunk-TIRMFDM4.js';
4
+ import '../../chunk-4VGWQ5AN.js';
3
5
  import '../../chunk-KA7LO7U5.js';
4
- import '../../chunk-7AI5ZYJ4.js';
@@ -1,6 +1,7 @@
1
- export { APIErrorAlert, CollapsibleSection, ContextViewer, CustomSelector, DetailCardSkeleton, EmptyState, JsonViewer, ListSkeleton, NavigationButton, PageNotFound, PageTitleCaption, ResourceCard, StatCard, StatCardSkeleton, StatsCardSkeleton, TabCountBadge, TimeRangeSelector, TrendIndicator, catalogItemToResourceDefinition } from '../chunk-OUHGHTE7.js';
1
+ export { APIErrorAlert, CollapsibleSection, ContextViewer, CustomSelector, DetailCardSkeleton, EmptyState, JsonViewer, ListSkeleton, NavigationButton, PageNotFound, PageTitleCaption, ResourceCard, StatCard, StatCardSkeleton, StatsCardSkeleton, TabCountBadge, TimeRangeSelector, TrendIndicator, catalogItemToResourceDefinition } from '../chunk-O3PY6B6E.js';
2
2
  export { StyledMarkdown } from '../chunk-3KMDHCAR.js';
3
3
  import '../chunk-YZ6GTZXL.js';
4
- import '../chunk-7AI5ZYJ4.js';
4
+ import '../chunk-JVAZHVNV.js';
5
+ import '../chunk-4VGWQ5AN.js';
5
6
  import '../chunk-7PLEQFHO.js';
6
7
  import '../chunk-Q7DJKLEN.js';
@@ -1740,7 +1740,7 @@ declare function useGetExecutionHistory(scheduleId: string | undefined, options?
1740
1740
  executions: {
1741
1741
  id: string;
1742
1742
  createdAt: string;
1743
- status: "running" | "completed" | "failed" | "cancelled";
1743
+ status: "completed" | "failed" | "running" | "cancelled";
1744
1744
  step: number | null;
1745
1745
  itemLabel: string | null;
1746
1746
  duration: number | null;
@@ -1,6 +1,7 @@
1
1
  import '../chunk-Q47SPRY7.js';
2
- export { OperationsService, executionsKeys, observabilityKeys, scheduleKeys, useActivities, useActivityTrend, useBulkDeleteExecutions, useBusinessImpact, useCancelExecution, useCancelSchedule, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateSchedule, useDashboardMetrics, useDeleteExecution, useDeleteSchedule, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorTrends, useExecuteAsync, useExecution, useExecutionHealth, useExecutionLogs, useExecutions, useGetExecutionHistory, useGetSchedule, useListSchedules, usePauseSchedule, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResourceDefinition, useResources, useResumeSchedule, useRetryExecution, useTopFailingResources, useUnresolveError, useUpdateAnchor, useUpdateSchedule } from '../chunk-WNWKOCGJ.js';
3
- export { useCommandQueue, useCommandQueueTotals, useDeleteTask, usePatchTask, useSubmitAction } from '../chunk-J3FALDQE.js';
4
- export { useMarkAllAsRead, useMarkAsRead, useNotificationCount, useNotifications } from '../chunk-JKERRYVS.js';
2
+ export { OperationsService, executionsKeys, observabilityKeys, scheduleKeys, useActivities, useActivityTrend, useBulkDeleteExecutions, useBusinessImpact, useCancelExecution, useCancelSchedule, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateSchedule, useDashboardMetrics, useDeleteExecution, useDeleteSchedule, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorTrends, useExecuteAsync, useExecution, useExecutionHealth, useExecutionLogs, useExecutions, useGetExecutionHistory, useGetSchedule, useListSchedules, usePauseSchedule, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResourceDefinition, useResources, useResumeSchedule, useRetryExecution, useTopFailingResources, useUnresolveError, useUpdateAnchor, useUpdateSchedule } from '../chunk-BZTA7IIL.js';
3
+ export { useCommandQueue, useCommandQueueTotals, useDeleteTask, usePatchTask, useSubmitAction } from '../chunk-NXHL23JW.js';
4
+ export { useMarkAllAsRead, useMarkAsRead, useNotificationCount, useNotifications } from '../chunk-BLO4SISK.js';
5
+ import '../chunk-TIRMFDM4.js';
6
+ import '../chunk-4VGWQ5AN.js';
5
7
  import '../chunk-KA7LO7U5.js';
6
- import '../chunk-7AI5ZYJ4.js';
@@ -1225,7 +1225,7 @@ declare function useGetExecutionHistory(scheduleId: string | undefined, options?
1225
1225
  executions: {
1226
1226
  id: string;
1227
1227
  createdAt: string;
1228
- status: "running" | "completed" | "failed" | "cancelled";
1228
+ status: "completed" | "failed" | "running" | "cancelled";
1229
1229
  step: number | null;
1230
1230
  itemLabel: string | null;
1231
1231
  duration: number | null;
@@ -1,4 +1,5 @@
1
- export { OperationsService, executionsKeys, observabilityKeys, scheduleKeys, useActivities, useActivityTrend, useBulkDeleteExecutions, useBusinessImpact, useCancelExecution, useCancelSchedule, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateSchedule, useDashboardMetrics, useDeleteExecution, useDeleteSchedule, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorTrends, useExecuteAsync, useExecution, useExecutionHealth, useExecutionLogs, useExecutions, useGetExecutionHistory, useGetSchedule, useListSchedules, usePauseSchedule, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResourceDefinition, useResources, useResumeSchedule, useRetryExecution, useTopFailingResources, useUnresolveError, useUpdateAnchor, useUpdateSchedule } from '../chunk-WNWKOCGJ.js';
2
- export { useMarkAllAsRead, useMarkAsRead, useNotificationCount, useNotifications } from '../chunk-JKERRYVS.js';
1
+ export { OperationsService, executionsKeys, observabilityKeys, scheduleKeys, useActivities, useActivityTrend, useBulkDeleteExecutions, useBusinessImpact, useCancelExecution, useCancelSchedule, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateSchedule, useDashboardMetrics, useDeleteExecution, useDeleteSchedule, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorTrends, useExecuteAsync, useExecution, useExecutionHealth, useExecutionLogs, useExecutions, useGetExecutionHistory, useGetSchedule, useListSchedules, usePauseSchedule, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResourceDefinition, useResources, useResumeSchedule, useRetryExecution, useTopFailingResources, useUnresolveError, useUpdateAnchor, useUpdateSchedule } from '../chunk-BZTA7IIL.js';
2
+ export { useMarkAllAsRead, useMarkAsRead, useNotificationCount, useNotifications } from '../chunk-BLO4SISK.js';
3
+ import '../chunk-TIRMFDM4.js';
4
+ import '../chunk-4VGWQ5AN.js';
3
5
  import '../chunk-KA7LO7U5.js';
4
- import '../chunk-7AI5ZYJ4.js';